Skip to content

Commit

Permalink
Merge pull request #11 from alipay/feature-241224
Browse files Browse the repository at this point in the history
1. CKP二期支持商户传入可选支付方式列表2. AMS独立绑卡支持MIT交易
  • Loading branch information
ScottWryyyyy authored Dec 27, 2024
2 parents 4cb31e0 + 016fb2d commit 3b6d595
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.2.8 - 2024-12-24
* [#10](https://github.com/alipay/global-open-sdk-go/pull/10) feature-241224
- CKP二期支持商户传入可选支付方式列表
- AMS独立绑卡支持MIT交易


## 1.2.7 - 2024-12-16
* [#9](https://github.com/alipay/global-open-sdk-go/pull/9) feature-241216
- RDR拒付通知优化通用能力变更
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.7
Tags:v1.2.8
Copyright:Ant financial services group
```

Expand Down
11 changes: 11 additions & 0 deletions com/alipay/api/model/AvailablePaymentMethod.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package model

type AvailablePaymentMethod struct {
PaymentMethodTypeList []PaymentMethodTypeItem `json:"paymentMethodTypeList,omitempty"`
}

type PaymentMethodTypeItem struct {
PaymentMethodType string `json:"paymentMethodType,omitempty"`
PaymentMethodOrder int `json:"paymentMethodOrder,omitempty"`
ExpressCheckout bool `json:"expressCheckout,omitempty"`
}
1 change: 1 addition & 0 deletions com/alipay/api/model/PaymentMethodDetail.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type CardPaymentMethodDetail struct {
Cpf string `json:"cpf,omitempty"`
PayerEmail string `json:"payerEmail,omitempty"`
NetworkTransactionId string `json:"networkTransactionId,omitempty"`
Is3DSAuthentication bool `json:"is3DSAuthentication,omitempty"`
}

type ExternalPaymentMethodDetail struct {
Expand Down
39 changes: 20 additions & 19 deletions com/alipay/api/request/pay/AlipayPaymentSessionRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,26 @@ import (
)

type AlipayPaymentSessionRequest struct {
ProductCode model.ProductCodeType `json:"productCode,omitempty"`
PaymentRequestId string `json:"paymentRequestId,omitempty"`
Order *model.Order `json:"order,omitempty"`
PaymentAmount *model.Amount `json:"paymentAmount,omitempty"`
PaymentMethod *model.PaymentMethod `json:"paymentMethod,omitempty"`
PaymentSessionExpiryTime string `json:"paymentSessionExpiryTime,omitempty"`
PaymentRedirectUrl string `json:"paymentRedirectUrl,omitempty"`
PaymentNotifyUrl string `json:"paymentNotifyUrl,omitempty"`
PaymentFactor *model.PaymentFactor `json:"paymentFactor,omitempty"`
SettlementStrategy *model.SettlementStrategy `json:"settlementStrategy,omitempty"`
EnableInstallmentCollection bool `json:"enableInstallmentCollection,omitempty"`
CreditPayPlan *model.CreditPayPlan `json:"creditPayPlan,omitempty"`
MerchantRegion string `json:"merchantRegion,omitempty"`
Env *model.Env `json:"env,omitempty"`
AgreementInfo *model.AgreementInfo `json:"agreementInfo,omitempty"`
RiskData *model.RiskData `json:"riskData,omitempty"`
ProductScene string `json:"productScene,omitempty"`
SavedPaymentMethods []*model.PaymentMethod `json:"savedPaymentMethods,omitempty"`
Locale string `json:"locale,omitempty"`
ProductCode model.ProductCodeType `json:"productCode,omitempty"`
PaymentRequestId string `json:"paymentRequestId,omitempty"`
Order *model.Order `json:"order,omitempty"`
PaymentAmount *model.Amount `json:"paymentAmount,omitempty"`
PaymentMethod *model.PaymentMethod `json:"paymentMethod,omitempty"`
PaymentSessionExpiryTime string `json:"paymentSessionExpiryTime,omitempty"`
PaymentRedirectUrl string `json:"paymentRedirectUrl,omitempty"`
PaymentNotifyUrl string `json:"paymentNotifyUrl,omitempty"`
PaymentFactor *model.PaymentFactor `json:"paymentFactor,omitempty"`
SettlementStrategy *model.SettlementStrategy `json:"settlementStrategy,omitempty"`
EnableInstallmentCollection bool `json:"enableInstallmentCollection,omitempty"`
CreditPayPlan *model.CreditPayPlan `json:"creditPayPlan,omitempty"`
MerchantRegion string `json:"merchantRegion,omitempty"`
Env *model.Env `json:"env,omitempty"`
AgreementInfo *model.AgreementInfo `json:"agreementInfo,omitempty"`
RiskData *model.RiskData `json:"riskData,omitempty"`
ProductScene string `json:"productScene,omitempty"`
SavedPaymentMethods []*model.PaymentMethod `json:"savedPaymentMethods,omitempty"`
Locale string `json:"locale,omitempty"`
AvailablePaymentMethod *model.AvailablePaymentMethod `json:"availablePaymentMethod,omitempty"`
}

func (alipayPaymentSessionRequest *AlipayPaymentSessionRequest) NewRequest() *request.AlipayRequest {
Expand Down

0 comments on commit 3b6d595

Please sign in to comment.