Skip to content

Commit b651401

Browse files
committed
补充cardCategory
1 parent 8f289f6 commit b651401

3 files changed

Lines changed: 34 additions & 23 deletions

File tree

CHANGELOG.md

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

3+
## 1.2.21 - 2025-10-23
4+
- 补充cardCategory
5+
36
## 1.2.20 - 2025-10-22
47
- 返回 3DS 是否无摩擦
58

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

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
package model
22

33
type PaymentResultInfo struct {
4-
CardNo string `json:"cardNo,omitempty"`
5-
CardBrand string `json:"cardBrand,omitempty"`
6-
CardToken string `json:"cardToken,omitempty"`
7-
IssuingCountry string `json:"issuingCountry,omitempty"`
8-
Funding string `json:"funding,omitempty"`
9-
PaymentMethodRegion string `json:"paymentMethodRegion,omitempty"`
10-
ThreeDSResult ThreeDSResult `json:"threeDSResult,omitempty"`
11-
AvsResultRaw string `json:"avsResultRaw,omitempty"`
12-
CvvResultRaw string `json:"cvvResultRaw,omitempty"`
13-
NetworkTransactionId string `json:"networkTransactionId,omitempty"`
14-
CreditPayPlan CreditPayPlan `json:"creditPayPlan,omitempty"`
15-
CardholderName string `json:"cardholderName,omitempty"`
16-
CardBin string `json:"cardBin,omitempty"`
17-
LastFour string `json:"lastFour,omitempty"`
18-
ExpiryMonth string `json:"expiryMonth,omitempty"`
19-
ExpiryYear string `json:"expiryYear,omitempty"`
20-
AccountNo string `json:"accountNo,omitempty"`
21-
RefusalCodeRaw string `json:"refusalCodeRaw,omitempty"`
22-
RefusalReasonRaw string `json:"refusalReasonRaw,omitempty"`
23-
MerchantAdviceCode string `json:"merchantAdviceCode,omitempty"`
24-
AcquirerInfo AcquirerInfo `json:"acquirerInfo,omitempty"`
25-
ExemptionRequested string `json:"exemptionRequested,omitempty"`
4+
CardNo string `json:"cardNo,omitempty"`
5+
CardBrand string `json:"cardBrand,omitempty"`
6+
CardToken string `json:"cardToken,omitempty"`
7+
IssuingCountry string `json:"issuingCountry,omitempty"`
8+
Funding string `json:"funding,omitempty"`
9+
PaymentMethodRegion string `json:"paymentMethodRegion,omitempty"`
10+
ThreeDSResult ThreeDSResult `json:"threeDSResult,omitempty"`
11+
AvsResultRaw string `json:"avsResultRaw,omitempty"`
12+
CvvResultRaw string `json:"cvvResultRaw,omitempty"`
13+
NetworkTransactionId string `json:"networkTransactionId,omitempty"`
14+
CreditPayPlan CreditPayPlan `json:"creditPayPlan,omitempty"`
15+
CardCategory CardCategoryType `json:"cardCategory,omitempty"`
16+
CardholderName string `json:"cardholderName,omitempty"`
17+
CardBin string `json:"cardBin,omitempty"`
18+
LastFour string `json:"lastFour,omitempty"`
19+
ExpiryMonth string `json:"expiryMonth,omitempty"`
20+
ExpiryYear string `json:"expiryYear,omitempty"`
21+
AccountNo string `json:"accountNo,omitempty"`
22+
RefusalCodeRaw string `json:"refusalCodeRaw,omitempty"`
23+
RefusalReasonRaw string `json:"refusalReasonRaw,omitempty"`
24+
MerchantAdviceCode string `json:"merchantAdviceCode,omitempty"`
25+
AcquirerInfo AcquirerInfo `json:"acquirerInfo,omitempty"`
26+
ExemptionRequested string `json:"exemptionRequested,omitempty"`
2627
}
2728

2829
type ThreeDSResult struct {
@@ -36,3 +37,10 @@ type ThreeDSResult struct {
3637
Challenged bool `json:"challenged,omitempty"`
3738
ExemptionType string `json:"exemptionType,omitempty"`
3839
}
40+
41+
type CardCategoryType string
42+
43+
const (
44+
CardCategoryDebit CardCategoryType = "CONSUMER"
45+
CardCategoryCredit CardCategoryType = "COMMERCIAL"
46+
)

0 commit comments

Comments
 (0)