Skip to content

Commit 2249006

Browse files
authored
Merge pull request #16 from alipay/feature-250410
update 250410
2 parents 00cfcb4 + 6031024 commit 2249006

9 files changed

+65
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.2.12 - 2025-04-10
4+
* [#14](https://github.com/alipay/global-open-sdk-go/pull/14) feature-250410
5+
- Antom 印度渠道接入AMS拒付相关接口的标准变更
6+
- Antom印度渠道接入(UPI/CARD/NETBAKING)相关接口标准变更
7+
- CKP二期支持商户传入支付方式地区和支付方式要素
38

49
## 1.2.11 - 2025-02-05
510
* [#13](https://github.com/alipay/global-open-sdk-go/pull/13) feature-250205

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
```
22
Language:GO
33
GO version:1.22.5+
4-
Tags:v1.2.11
4+
Tags:v1.2.12
55
Copyright:Ant financial services group
66
```
77

com/alipay/api/model/AvailablePaymentMethod.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package model
22

33
type AvailablePaymentMethod struct {
44
PaymentMethodTypeList []PaymentMethodTypeItem `json:"paymentMethodTypeList,omitempty"`
5+
PaymentMethodMetaData map[string]any `json:"paymentMethodMetaData,omitempty"`
56
}
67

78
type PaymentMethodTypeItem struct {

com/alipay/api/model/DisputeEvidenceFormatType.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ type DisputeEvidenceFormatType string
55
const (
66
DisputeEvidenceFormatType_PDF DisputeEvidenceFormatType = "PDF"
77
DisputeEvidenceFormatType_WORD DisputeEvidenceFormatType = "WORD"
8+
DisputeEvidenceFormatType_ZIP DisputeEvidenceFormatType = "ZIP"
9+
DisputeEvidenceFormatType_JPG DisputeEvidenceFormatType = "JPG"
810
)
911

1012
type DisputeEvidenceType string

com/alipay/api/model/DisputeNotificationType.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ type DisputeJudgedResult string
1717
const (
1818
DisputeJudgedResult_ACCEPT_BY_CUSTOMER DisputeJudgedResult = "ACCEPT_BY_CUSTOMER"
1919
DisputeJudgedResult_ACCEPT_BY_MERCHANT DisputeJudgedResult = "ACCEPT_BY_MERCHANT"
20+
DisputeJudgedResult_VALIDATE_SUCCESS DisputeJudgedResult = "VALIDATE_SUCCESS"
21+
DisputeJudgedResult_VALIDATE_FAIL DisputeJudgedResult = "VALIDATE_FAIL"
2022
)
2123

2224
type DisputeAcceptReasonType string
@@ -26,3 +28,11 @@ const (
2628
TIMEOUT DisputeAcceptReasonType = "TIMEOUT"
2729
MANUAL_PROCESSING_ACCEPTED DisputeAcceptReasonType = "MANUAL_PROCESSING_ACCEPTED"
2830
)
31+
32+
type DisputeType string
33+
34+
const (
35+
DisputeType_CHARGEBACK DisputeType = "CHARGEBACK"
36+
DisputeType_RETRIEVAL_REQUEST DisputeType = "RETRIEVAL_REQUEST"
37+
DisputeType_COMPLIANCE_REQUEST DisputeType = "COMPLIANCE_REQUEST"
38+
)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package model
2+
3+
type PaymentMethodType string
4+
5+
const (
6+
PaymentMethodType_DISCOUNT PaymentMethodType = "DISCOUNT"
7+
PaymentMethodType_INTEREST_FREE PaymentMethodType = "INTEREST_FREE"
8+
PaymentMethodType_BALANCE_ACCOUNT PaymentMethodType = "BALANCE_ACCOUNT"
9+
PaymentMethodType_SETTLEMENT_CARD PaymentMethodType = "SETTLEMENT_CARD"
10+
PaymentMethodType_APPLEPAY PaymentMethodType = "APPLEPAY"
11+
PaymentMethodType_UPI PaymentMethodType = "UPI"
12+
PaymentMethodType_ONLINEBANKING_NETBANKING PaymentMethodType = "ONLINEBANKING_NETBANKING"
13+
)

com/alipay/api/request/pay/AlipayPaymentSessionRequest.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ type AlipayPaymentSessionRequest struct {
2727
SavedPaymentMethods []*model.PaymentMethod `json:"savedPaymentMethods,omitempty"`
2828
Locale string `json:"locale,omitempty"`
2929
AvailablePaymentMethod *model.AvailablePaymentMethod `json:"availablePaymentMethod,omitempty"`
30+
AllowedPaymentMethodRegions []string `json:"allowedPaymentMethodRegions,omitempty"`
3031
}
3132

3233
func (alipayPaymentSessionRequest *AlipayPaymentSessionRequest) NewRequest() *request.AlipayRequest {
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package pay
2+
3+
import (
4+
"github.com/alipay/global-open-sdk-go/com/alipay/api/request"
5+
responsePay "github.com/alipay/global-open-sdk-go/com/alipay/api/response/pay"
6+
)
7+
8+
type AlipayUploadInvoiceShippingFileRequest struct {
9+
PaymentRequestId string `json:"paymentRequestId,omitempty"`
10+
MerchantId string `json:"merchantId,omitempty"`
11+
FileId string `json:"fileId,omitempty"`
12+
UploadFile string `json:"uploadFile,omitempty"`
13+
FileType string `json:"fileType,omitempty"`
14+
FileName string `json:"fileName,omitempty"`
15+
}
16+
17+
func (alipayUploadInvoiceShippingFileRequest *AlipayUploadInvoiceShippingFileRequest) NewRequest() *request.AlipayRequest {
18+
return request.NewAlipayRequest(&alipayUploadInvoiceShippingFileRequest, "/ams/api/v1/payments/uploadInvoiceShippingFile", &responsePay.AlipayUploadInvoiceShippingFileResponse{})
19+
}
20+
21+
func NewAlipayUploadInvoiceShippingFileRequest() (*request.AlipayRequest, *AlipayUploadInvoiceShippingFileRequest) {
22+
alipayUploadInvoiceShippingFileRequest := &AlipayUploadInvoiceShippingFileRequest{}
23+
alipayRequest := request.NewAlipayRequest(alipayUploadInvoiceShippingFileRequest, "/ams/api/v1/payments/uploadInvoiceShippingFile", &responsePay.AlipayUploadInvoiceShippingFileResponse{})
24+
return alipayRequest, alipayUploadInvoiceShippingFileRequest
25+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package responsePay
2+
3+
import "github.com/alipay/global-open-sdk-go/com/alipay/api/response"
4+
5+
type AlipayUploadInvoiceShippingFileResponse struct {
6+
response.AlipayResponse
7+
}

0 commit comments

Comments
 (0)