Skip to content

Commit c747548

Browse files
committed
update 0709
1 parent 09c81fc commit c747548

13 files changed

+88
-27
lines changed

CHANGELOG.md

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

3+
## 1.2.14 - 2025-07-09
4+
- update 0709
35

46
## 1.2.13 - 2025-07-02
57
* [#15](https://github.com/alipay/global-open-sdk-go/pull/15) feature-250702

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.13
4+
Tags:v1.2.14
55
Copyright:Ant financial services group
66
```
77

com/alipay/api/model/AntomPathConstants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const (
1111
CONSULT_PAYMENT_PATH = "/ams/api/v1/payments/consult"
1212
PAYMENT_PATH = "/ams/api/v1/payments/pay"
1313
CREATE_SESSION_PATH = "/ams/api/v1/payments/createPaymentSession"
14+
RETRIEVE_PATH = "/ams/api//v1/payments/retrievePaymentSession"
1415
CAPTURE_PATH = "/ams/api/v1/payments/capture"
1516
INQUIRY_PAYMENT_PATH = "/ams/api/v1/payments/inquiryPayment"
1617
CANCEL_PATH = "/ams/api/v1/payments/cancel"

com/alipay/api/model/Discount.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ type Discount struct {
55
DiscountName string `json:"discountName,omitempty"`
66
SavingsAmount Amount `json:"savingsAmount,omitempty"`
77
EstimateSavingsAmount Amount `json:"estimateSavingsAmount,omitempty"`
8+
PromotionCode string `json:"promotionCode,omitempty"`
89
}

com/alipay/api/model/Order.go

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,19 @@ type Merchant struct {
2323
}
2424

2525
type Goods struct {
26-
ReferenceGoodsId string `json:"referenceGoodsId,omitempty"`
27-
GoodsName string `json:"goodsName,omitempty"`
28-
GoodsCategory string `json:"goodsCategory,omitempty"`
29-
GoodsBrand string `json:"goodsBrand,omitempty"`
30-
GoodsUnitAmount *Amount `json:"goodsUnitAmount,omitempty"`
31-
GoodsQuantity string `json:"goodsQuantity,omitempty"`
32-
GoodsSkuName string `json:"goodsSkuName,omitempty"`
33-
GoodsUrl string `json:"goodsUrl,omitempty"`
34-
DeliveryMethodType DeliveryMethodType `json:"deliveryMethodType,omitempty"`
35-
GoodsImageUrl string `json:"goodsImageUrl,omitempty"`
36-
PriceId string `json:"priceId,omitempty"`
26+
ReferenceGoodsId string `json:"referenceGoodsId,omitempty"`
27+
GoodsName string `json:"goodsName,omitempty"`
28+
GoodsCategory string `json:"goodsCategory,omitempty"`
29+
GoodsBrand string `json:"goodsBrand,omitempty"`
30+
GoodsUnitAmount *Amount `json:"goodsUnitAmount,omitempty"`
31+
GoodsQuantity string `json:"goodsQuantity,omitempty"`
32+
GoodsSkuName string `json:"goodsSkuName,omitempty"`
33+
GoodsUrl string `json:"goodsUrl,omitempty"`
34+
DeliveryMethodType DeliveryMethodType `json:"deliveryMethodType,omitempty"`
35+
GoodsImageUrl string `json:"goodsImageUrl,omitempty"`
36+
PriceId string `json:"priceId,omitempty"`
37+
GoodsDiscountAmount *Amount `json:"goodsDiscountAmount,omitempty"`
38+
CrossSell *Goods `json:"crossSell,omitempty"`
3739
}
3840
type DeliveryEstimateInfo struct {
3941
Unit string `json:"unit,omitempty"`
@@ -55,6 +57,8 @@ type Shipping struct {
5557
ShippingFee *Amount `json:"shippingFee,omitempty"`
5658
ShippingDescription string `json:"shippingDescription,omitempty"`
5759
DeliveryEstimate *DeliveryEstimate `json:"deliveryEstimate,omitempty"`
60+
ShippingNumber string `json:"shippingNumber,omitempty"`
61+
Notes string `json:"notes,omitempty"`
5862
}
5963

6064
type Buyer struct {
@@ -153,18 +157,20 @@ type Gaming struct {
153157
}
154158

155159
type Order struct {
156-
ReferenceOrderId string `json:"referenceOrderId,omitempty"`
157-
OrderDescription string `json:"orderDescription,omitempty"`
158-
OrderAmount *Amount `json:"orderAmount,omitempty"`
159-
Merchant *Merchant `json:"merchant,omitempty"`
160-
Goods []Goods `json:"goods,omitempty"`
161-
Shipping *Shipping `json:"shipping,omitempty"`
162-
Buyer *Buyer `json:"buyer,omitempty"`
163-
Env *Env `json:"env,omitempty"`
164-
ExtendInfo string `json:"extendInfo,omitempty"`
165-
Transit *Transit `json:"transit,omitempty"`
166-
Lodging *Lodging `json:"lodging,omitempty"`
167-
Gaming *Gaming `json:"gaming,omitempty"`
168-
OrderCreatedTime string `json:"orderCreatedTime,omitempty"`
169-
NeedDeclaration bool `json:"needDeclaration,omitempty"`
160+
ReferenceOrderId string `json:"referenceOrderId,omitempty"`
161+
OrderDescription string `json:"orderDescription,omitempty"`
162+
OrderAmount *Amount `json:"orderAmount,omitempty"`
163+
Merchant *Merchant `json:"merchant,omitempty"`
164+
Goods []Goods `json:"goods,omitempty"`
165+
Shipping *Shipping `json:"shipping,omitempty"`
166+
Buyer *Buyer `json:"buyer,omitempty"`
167+
Env *Env `json:"env,omitempty"`
168+
ExtendInfo string `json:"extendInfo,omitempty"`
169+
Transit *Transit `json:"transit,omitempty"`
170+
Lodging *Lodging `json:"lodging,omitempty"`
171+
Gaming *Gaming `json:"gaming,omitempty"`
172+
OrderCreatedTime string `json:"orderCreatedTime,omitempty"`
173+
NeedDeclaration bool `json:"needDeclaration,omitempty"`
174+
OrderDiscountAmount *Amount `json:"orderDiscountAmount,omitempty"`
175+
SubTotalOrderAmount *Amount `json:"subTotalOrderAmount,omitempty"`
170176
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package model
2+
3+
type SubscriptionInfo struct {
4+
SubscriptionDescription string `json:"subscriptionDescription,omitempty"`
5+
SubscriptionStartTime string `json:"subscriptionStartTime,omitempty"`
6+
SubscriptionEndTime string `json:"subscriptionEndTime,omitempty"`
7+
PeriodRule *PeriodRule `json:"periodRule,omitempty"`
8+
Trials []*Trial `json:"trials,omitempty"`
9+
SubscriptionNotifyUrl string `json:"subscriptionNotifyUrl,omitempty"`
10+
SubscriptionExpiryTime string `json:"subscriptionExpiryTime,omitempty"`
11+
}

com/alipay/api/model/WalletPaymentMethodType.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ const (
3737
SETTLEMENT_CARD = "SETTLEMENT_CARD"
3838
BALANCE_ACCOUNT = "BALANCE_ACCOUNT"
3939
APPLEPAY = "APPLEPAY"
40+
DIDI_PAY_LATER = "DIDI_PAY_LATER"
4041
)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type AlipayPayRequest struct {
2828
PaymentVerificationData *model.PaymentVerificationData `json:"paymentVerificationData,omitempty"`
2929
ExtendInfo string `json:"extendInfo,omitempty"`
3030
MerchantAccountId string `json:"merchantAccountId,omitempty"`
31+
SubscriptionInfo *model.SubscriptionInfo `json:"subscriptionInfo,omitempty"`
3132
}
3233

3334
func (alipayPayRequest *AlipayPayRequest) NewRequest() *request.AlipayRequest {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type AlipayPaymentSessionRequest struct {
2828
Locale string `json:"locale,omitempty"`
2929
AvailablePaymentMethod *model.AvailablePaymentMethod `json:"availablePaymentMethod,omitempty"`
3030
AllowedPaymentMethodRegions []string `json:"allowedPaymentMethodRegions,omitempty"`
31+
SubscriptionInfo *model.SubscriptionInfo `json:"subscriptionInfo,omitempty"`
3132
}
3233

3334
func (alipayPaymentSessionRequest *AlipayPaymentSessionRequest) NewRequest() *request.AlipayRequest {
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package pay
2+
3+
import (
4+
"github.com/alipay/global-open-sdk-go/com/alipay/api/model"
5+
"github.com/alipay/global-open-sdk-go/com/alipay/api/request"
6+
responsePay "github.com/alipay/global-open-sdk-go/com/alipay/api/response/pay"
7+
)
8+
9+
type AlipayRetrievePaymentSessionRequest struct {
10+
PaymentRequestId string `json:"paymentRequestId,omitempty"`
11+
}
12+
13+
func (alipayRetrievePaymentSessionRequest *AlipayRetrievePaymentSessionRequest) NewRequest() *request.AlipayRequest {
14+
return request.NewAlipayRequest(&alipayRetrievePaymentSessionRequest, model.RETRIEVE_PATH, &responsePay.AlipayRetrievePaymentSessionResponse{})
15+
}
16+
17+
func NewAlipayRetrievePaymentSessionRequest() (*request.AlipayRequest, *AlipayRetrievePaymentSessionRequest) {
18+
alipayRetrievePaymentSessionRequest := &AlipayRetrievePaymentSessionRequest{}
19+
alipayRequest := request.NewAlipayRequest(alipayRetrievePaymentSessionRequest, model.RETRIEVE_PATH, &responsePay.AlipayRetrievePaymentSessionResponse{})
20+
return alipayRequest, alipayRetrievePaymentSessionRequest
21+
}

0 commit comments

Comments
 (0)