-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from alipay/feature-notify
update notify
- Loading branch information
Showing
8 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
``` | ||
Language:GO | ||
GO version:1.22.5+ | ||
Tags:v1.2.3 | ||
Tags:v1.2.4 | ||
Copyright:Ant financial services group | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package model | ||
|
||
type DisputeNotificationType string | ||
|
||
const ( | ||
DisputeNotificationType_DISPUTE_CREATED DisputeNotificationType = "DISPUTE_CREATED" | ||
DisputeNotificationType_DISPUTE_JUDGED DisputeNotificationType = "DISPUTE_JUDGED" | ||
DisputeNotificationType_DISPUTE_CANCELLED DisputeEvidenceType = "DISPUTE_CANCELLED" | ||
DisputeNotificationType_DEFENSE_SUPPLIED DisputeEvidenceType = "DEFENSE_SUPPLIED" | ||
DisputeNotificationType_DEFENSE_DUE_ALERT DisputeEvidenceType = "DEFENSE_DUE_ALERT" | ||
DisputeNotificationType_DISPUTE_ACCEPTED DisputeEvidenceType = "DISPUTE_ACCEPTED" | ||
) | ||
|
||
type DisputeJudgedResult string | ||
|
||
const ( | ||
DisputeJudgedResult_ACCEPT_BY_CUSTOMER DisputeJudgedResult = "ACCEPT_BY_CUSTOMER" | ||
DisputeJudgedResult_ACCEPT_BY_MERCHANT DisputeJudgedResult = "ACCEPT_BY_MERCHANT" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package model | ||
|
||
type SubscriptionStatus string | ||
|
||
const ( | ||
SubscriptionStatus_ACTIVE SubscriptionStatus = "ACTIVE" | ||
SubscriptionStatus_TERMINATED SubscriptionStatus = "TERMINATED" | ||
) | ||
|
||
type SubscriptionNotificationType string | ||
|
||
const ( | ||
SubscriptionNotificationType_CREATE SubscriptionNotificationType = "CREATE" | ||
SubscriptionNotificationType_CHANGE SubscriptionNotificationType = "CHANGE" | ||
SubscriptionNotificationType_CANCEL SubscriptionNotificationType = "CANCEL" | ||
SubscriptionNotificationType_TERMINATE SubscriptionNotificationType = "TERMINATE" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package notify | ||
|
||
import "github.com/alipay/global-open-sdk-go/com/alipay/api/model" | ||
|
||
type AlipayDisputeNotify struct { | ||
AlipayNotify | ||
PaymentRequestId string `json:"paymentRequestId,omitempty"` | ||
DisputeId string `json:"disputeId,omitempty"` | ||
PaymentId string `json:"paymentId,omitempty"` | ||
DisputeTime string `json:"disputeTime,omitempty"` | ||
DisputeAmount *model.Amount `json:"disputeAmount,omitempty"` | ||
DisputeNotificationType model.DisputeNotificationType `json:"disputeNotificationType,omitempty"` | ||
DisputeReasonMsg string `json:"disputeReasonMsg,omitempty"` | ||
DisputeJudgedTime string `json:"disputeJudgedTime,omitempty"` | ||
DisputeJudgedAmount *model.Amount `json:"disputeJudgedAmount,omitempty"` | ||
DisputeJudgedResult model.DisputeJudgedResult `json:"disputeJudgedResult,omitempty"` | ||
DefenseDueTime string `json:"defenseDueTime,omitempty"` | ||
DisputeReasonCode string `json:"disputeReasonCode,omitempty"` | ||
DisputeSource string `json:"disputeSource,omitempty"` | ||
Rrn string `json:"arn,omitempty"` | ||
DisputeAcceptReason string `json:"disputeAcceptReason,omitempty"` | ||
DisputeAcceptTime string `json:"disputeAcceptTime,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package notify | ||
|
||
import "github.com/alipay/global-open-sdk-go/com/alipay/api/model" | ||
|
||
type AlipaySubscriptionNotify struct { | ||
AlipayNotify | ||
SubscriptionRequestId string `json:"subscriptionRequestId,omitempty"` | ||
SubscriptionId string `json:"subscriptionId,omitempty"` | ||
SubscriptionStatus model.SubscriptionStatus `json:"subscriptionStatus,omitempty"` | ||
SubscriptionNotificationType model.SubscriptionNotificationType `json:"subscriptionNotificationType,omitempty"` | ||
SubscriptionStartTime string `json:"subscriptionStartTime,omitempty"` | ||
SubscriptionEndTime string `json:"subscriptionEndTime,omitempty"` | ||
PeriodRule *model.PeriodRule `json:"periodRule,omitempty"` | ||
} |
10 changes: 10 additions & 0 deletions
10
com/alipay/api/request/notify/AlipaySubscriptionPayNotify.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package notify | ||
|
||
type AlipaySubscriptionPayNotify struct { | ||
AlipayNotify | ||
SubscriptionRequestId string `json:"subscriptionRequestId,omitempty"` | ||
SubscriptionId string `json:"subscriptionId,omitempty"` | ||
PeriodStartTime string `json:"periodStartTime,omitempty"` | ||
PeriodEndTime string `json:"periodEndTime,omitempty"` | ||
PhaseNo int `json:"phaseNo,omitempty"` | ||
} |