11package model
22
33type 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
2829type 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