Skip to content

Commit

Permalink
Merge pull request #6 from alipay/feature-notify
Browse files Browse the repository at this point in the history
update notify
  • Loading branch information
ScottWryyyyy authored Oct 29, 2024
2 parents 2677e09 + 782a16d commit 58c6929
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog


## 1.2.4 - 2024-10-24
* [#5](https://github.com/alipay/global-open-sdk-go/pull/5) feature-notify
- update notify

## 1.2.3 - 2024-10-21
* [#4](https://github.com/alipay/global-open-sdk-go/pull/4) feature-241022
- add AlipayVaultingSessionRequest.is3DSAuthentication哈啰集成绑卡SDK
Expand Down
2 changes: 1 addition & 1 deletion README.md
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
```

Expand Down
19 changes: 19 additions & 0 deletions com/alipay/api/model/DisputeNotificationType.go
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"
)
17 changes: 17 additions & 0 deletions com/alipay/api/model/SubscriptionStatus.go
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"
)
23 changes: 23 additions & 0 deletions com/alipay/api/request/notify/AlipayDisputeNotify.go
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"`
}
1 change: 1 addition & 0 deletions com/alipay/api/request/notify/AlipayPayResultNotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ type AlipayPayResultNotify struct {
AcquirerReferenceNo string `json:"acquirerReferenceNo,omitempty"`
PaymentResultInfo *model.PaymentResultInfo `json:"paymentResultInfo,omitempty"`
AcquirerInfo *model.AcquirerInfo `json:"acquirerInfo,omitempty"`
PromotionResult []*model.PromotionResult `json:"promotionResult,omitempty"`
}
14 changes: 14 additions & 0 deletions com/alipay/api/request/notify/AlipaySubscriptionNotify.go
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 com/alipay/api/request/notify/AlipaySubscriptionPayNotify.go
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"`
}

0 comments on commit 58c6929

Please sign in to comment.