Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions com/alipay/api/model/AccountHolderType.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package model

type AccountHolderType string

const (
AccountHolderType_INDIVIDUAL AccountHolderType = "INDIVIDUAL"
AccountHolderType_ENTERPRISE AccountHolderType = "ENTERPRISE"
)
8 changes: 8 additions & 0 deletions com/alipay/api/model/AccountType.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package model

type AccountType string

const (
AccountType_CHECKING AccountType = "CHECKING"
AccountType_FIXED_DEPOSIT AccountType = "FIXED_DEPOSIT"
)
11 changes: 11 additions & 0 deletions com/alipay/api/model/Address.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package model

type Address struct {
Region string `json:"region,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
Address1 string `json:"address1,omitempty"`
Address2 string `json:"address2,omitempty"`
ZipCode string `json:"zipCode,omitempty"`
Label string `json:"label,omitempty"`
}
54 changes: 0 additions & 54 deletions com/alipay/api/model/AgreementInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,57 +6,3 @@ type AgreementInfo struct {
UserLoginType string `json:"userLoginType,omitempty"`
DisplayUserLoginId string `json:"displayUserLoginId,omitempty"`
}

type RiskData struct {
Order *RiskOrder `json:"order,omitempty"`
Buyer *RiskBuyer `json:"buyer,omitempty"`
Env *RiskEnv `json:"env,omitempty"`
RiskSignal *RiskSignal `json:"riskSignal,omitempty"`
Address *RiskAddress `json:"address,omitempty"`
CardVerificationResult *CardVerificationResult `json:"cardVerificationResult,omitempty"`
}

type RiskOrder struct {
OrderType string `json:"orderType,omitempty"`
ReferringSite string `json:"referringSite,omitempty"`
}

type RiskBuyer struct {
NoteToMerchant string `json:"noteToMerchant,omitempty"`
NoteToShipping string `json:"noteToShipping,omitempty"`
OrderCountIn1H string `json:"orderCountIn1H,omitempty"`
OrderCountIn24H string `json:"orderCountIn24H,omitempty"`
}

type RiskEnv struct {
IpAddressType string `json:"ipAddressType,omitempty"`
}

type RiskSignal struct {
RiskCode string `json:"riskCode,omitempty"`
RiskReason string `json:"riskReason,omitempty"`
}

type RiskAddress struct {
ShippingPhoneType string `json:"shippingPhoneType,omitempty"`
IsBillShipStateSame bool `json:"isBillShipStateSame,omitempty"`
IsPreviousStateSame bool `json:"isPreviousStateSame,omitempty"`
LocToShipDistance int `json:"locToShipDistance,omitempty"`
MinPreviousShipToBillDistance int `json:"minPreviousShipToBillDistance,omitempty"`
}

type CardVerificationResult struct {
AuthenticationType string `json:"authenticationType,omitempty"`
AuthenticationMethod string `json:"authenticationMethod,omitempty"`
CvvResult string `json:"cvvResult,omitempty"`
AvsResult string `json:"avsResult,omitempty"`
AuthorizationCode string `json:"authorizationCode,omitempty"`
ThreeDSResult *RiskThreeDSResult `json:"threeDSResult,omitempty"`
}

type RiskThreeDSResult struct {
ThreeDSVersion string `json:"threeDSVersion,omitempty"`
ThreeDSInteractionMode string `json:"threeDSInteractionMode,omitempty"`
Eci string `json:"eci,omitempty"`
Cavv string `json:"cavv,omitempty"`
}
9 changes: 1 addition & 8 deletions com/alipay/api/model/Amount.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
package model

type Amount struct {
Value string `json:"value,omitempty"`
Currency string `json:"currency,omitempty"`
}

func NewAmount(value string, currency string) *Amount {
return &Amount{
Value: value,
Currency: currency,
}
Value string `json:"value,omitempty"`
}
7 changes: 7 additions & 0 deletions com/alipay/api/model/AmountLimit.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package model

type AmountLimit struct {
MaxAmount string `json:"maxAmount,omitempty"`
MinAmount string `json:"minAmount,omitempty"`
RemainAmount string `json:"remainAmount,omitempty"`
}
12 changes: 12 additions & 0 deletions com/alipay/api/model/AssociationType.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package model

type AssociationType string

const (
AssociationType_LEGAL_REPRESENTATIVE AssociationType = "LEGAL_REPRESENTATIVE"
AssociationType_UBO AssociationType = "UBO"
AssociationType_CONTACT AssociationType = "CONTACT"
AssociationType_DIRECTOR AssociationType = "DIRECTOR"
AssociationType_AUTHORIZER AssociationType = "AUTHORIZER"
AssociationType_BOARD_MEMBER AssociationType = "BOARD_MEMBER"
)
8 changes: 8 additions & 0 deletions com/alipay/api/model/Attachment.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package model

type Attachment struct {
AttachmentType string `json:"attachmentType,omitempty"`
File string `json:"file,omitempty"`
AttachmentName string `json:"attachmentName,omitempty"`
FileKey string `json:"fileKey,omitempty"`
}
7 changes: 3 additions & 4 deletions com/alipay/api/model/AttachmentType.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ package model
type AttachmentType string

const (
AttachmentType_SIGNATURE_AUTHORIZATION_LETTER AttachmentType = "SIGNATURE_AUTHORIZATION_LETTER"
AttachmentType_ARTICLES_OF_ASSOCIATION AttachmentType = "ARTICLES_OF_ASSOCIATION"
AttachmentType_LOGO AttachmentType = "LOGO"

AttachmentType_SIGNATURE_AUTHORIZATION_LETTER AttachmentType = "SIGNATURE_AUTHORIZATION_LETTER"
AttachmentType_ARTICLES_OF_ASSOCIATION AttachmentType = "ARTICLES_OF_ASSOCIATION"
AttachmentType_LOGO AttachmentType = "LOGO"
AttachmentType_AUTHORIZER_SIGNATURE_CONFIRMATION_LETTER AttachmentType = "AUTHORIZER_SIGNATURE_CONFIRMATION_LETTER"
AttachmentType_ASSOCIATION_ARTICLE AttachmentType = "ASSOCIATION_ARTICLE"
AttachmentType_FINANCIAL_REPORT AttachmentType = "FINANCIAL_REPORT"
Expand Down
2 changes: 1 addition & 1 deletion com/alipay/api/model/AuthCodeForm.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package model

type AuthCodeForm struct {
CodeDetails []CodeDetail `json:"codeDetails,omitempty"`
CodeDetails []*CodeDetail `json:"codeDetails,omitempty"`
}
9 changes: 1 addition & 8 deletions com/alipay/api/model/AvailablePaymentMethod.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
package model

type AvailablePaymentMethod struct {
PaymentMethodTypeList []PaymentMethodTypeItem `json:"paymentMethodTypeList,omitempty"`
PaymentMethodMetaData map[string]any `json:"paymentMethodMetaData,omitempty"`
}

type PaymentMethodTypeItem struct {
PaymentMethodType string `json:"paymentMethodType,omitempty"`
PaymentMethodOrder int `json:"paymentMethodOrder,omitempty"`
ExpressCheckout bool `json:"expressCheckout,omitempty"`
PaymentMethodTypeList []*PaymentMethodTypeItem `json:"paymentMethodTypeList,omitempty"`
}
9 changes: 9 additions & 0 deletions com/alipay/api/model/BrowserInfo.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package model

type BrowserInfo struct {
AcceptHeader string `json:"acceptHeader,omitempty"`
JavaEnabled bool `json:"javaEnabled,omitempty"`
JavaScriptEnabled bool `json:"javaScriptEnabled,omitempty"`
Language string `json:"language,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
}
11 changes: 11 additions & 0 deletions com/alipay/api/model/BusinessInfo.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package model

type BusinessInfo struct {
Mcc string `json:"mcc,omitempty"`
Websites []*WebSite `json:"websites,omitempty"`
EnglishName string `json:"englishName,omitempty"`
DoingBusinessAs string `json:"doingBusinessAs,omitempty"`
MainSalesCountry string `json:"mainSalesCountry,omitempty"`
AppName string `json:"appName,omitempty"`
ServiceDescription string `json:"serviceDescription,omitempty"`
}
11 changes: 11 additions & 0 deletions com/alipay/api/model/Buyer.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package model

type Buyer struct {
ReferenceBuyerId string `json:"referenceBuyerId,omitempty"`
BuyerName *UserName `json:"buyerName,omitempty"`
BuyerPhoneNo string `json:"buyerPhoneNo,omitempty"`
BuyerEmail string `json:"buyerEmail,omitempty"`
BuyerRegistrationTime string `json:"buyerRegistrationTime,omitempty"`
IsAccountVerified bool `json:"isAccountVerified,omitempty"`
SuccessfulOrderCount int32 `json:"successfulOrderCount,omitempty"`
}
33 changes: 11 additions & 22 deletions com/alipay/api/model/CardBrand.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,16 @@ package model
type CardBrand string

const (
CardBrand_VISA CardBrand = "VISA"

CardBrand_VISA CardBrand = "VISA"
CardBrand_MASTERCARD CardBrand = "MASTERCARD"

CardBrand_MAESTRO CardBrand = "MAESTRO"

CardBrand_AMEX CardBrand = "AMEX"

CardBrand_JCB CardBrand = "JCB"

CardBrand_DINERS CardBrand = "DINERS"

CardBrand_DISCOVER CardBrand = "DISCOVER"

CardBrand_CUP CardBrand = "CUP"

CardBrand_MIR CardBrand = "MIR"

CardBrand_ELO CardBrand = "ELO"

CardBrand_HIPERCARD CardBrand = "HIPERCARD"

CardBrand_TROY CardBrand = "TROY"
CardBrand_MAESTRO CardBrand = "MAESTRO"
CardBrand_AMEX CardBrand = "AMEX"
CardBrand_JCB CardBrand = "JCB"
CardBrand_DINERS CardBrand = "DINERS"
CardBrand_DISCOVER CardBrand = "DISCOVER"
CardBrand_CUP CardBrand = "CUP"
CardBrand_MIR CardBrand = "MIR"
CardBrand_ELO CardBrand = "ELO"
CardBrand_HIPERCARD CardBrand = "HIPERCARD"
CardBrand_TROY CardBrand = "TROY"
)
14 changes: 7 additions & 7 deletions com/alipay/api/model/CardInfo.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package model

type CardInfo struct {
CardNo string `json:"cardNo,omitempty"`
CardBrand CardBrand `json:"cardBrand,omitempty"`
CardToken string `json:"cardToken,omitempty"`
IssuingCountry string `json:"issuingCountry,omitempty"`
Funding string `json:"funding,omitempty"`
PaymentMethodRegion string `json:"paymentMethodRegion,omitempty"`
ThreeDSResult ThreeDSResult `json:"threeDSResult,omitempty"`
CardNo string `json:"cardNo,omitempty"`
CardBrand string `json:"cardBrand,omitempty"`
CardToken string `json:"cardToken,omitempty"`
IssuingCountry string `json:"issuingCountry,omitempty"`
Funding string `json:"funding,omitempty"`
PaymentMethodRegion string `json:"paymentMethodRegion,omitempty"`
ThreeDSResult *ThreeDSResult `json:"threeDSResult,omitempty"`
}
40 changes: 40 additions & 0 deletions com/alipay/api/model/CardPaymentMethodDetail.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package model

type CardPaymentMethodDetail struct {
CardToken string `json:"cardToken,omitempty"`
CardNo string `json:"cardNo,omitempty"`
Brand CardBrand `json:"brand,omitempty"`
SelectedCardBrand CardBrand `json:"selectedCardBrand,omitempty"`
CardIssuer string `json:"cardIssuer,omitempty"`
CountryIssue string `json:"countryIssue,omitempty"`
InstUserName *UserName `json:"instUserName,omitempty"`
ExpiryYear string `json:"expiryYear,omitempty"`
ExpiryMonth string `json:"expiryMonth,omitempty"`
BillingAddress *Address `json:"billingAddress,omitempty"`
Mask string `json:"mask,omitempty"`
Last4 string `json:"last4,omitempty"`
PaymentMethodDetailMetadata string `json:"paymentMethodDetailMetadata,omitempty"`
MaskedCardNo string `json:"maskedCardNo,omitempty"`
Fingerprint string `json:"fingerprint,omitempty"`
AuthenticationFlow string `json:"authenticationFlow,omitempty"`
Funding string `json:"funding,omitempty"`
AvsResultRaw string `json:"avsResultRaw,omitempty"`
CvvResultRaw string `json:"cvvResultRaw,omitempty"`
Bin string `json:"bin,omitempty"`
IssuerName string `json:"issuerName,omitempty"`
IssuingCountry string `json:"issuingCountry,omitempty"`
LastFour string `json:"lastFour,omitempty"`
CardholderName *UserName `json:"cardholderName,omitempty"`
Cvv string `json:"cvv,omitempty"`
DateOfBirth string `json:"dateOfBirth,omitempty"`
BusinessNo string `json:"businessNo,omitempty"`
CardPasswordDigest string `json:"cardPasswordDigest,omitempty"`
Cpf string `json:"cpf,omitempty"`
PayerEmail string `json:"payerEmail,omitempty"`
NetworkTransactionId string `json:"networkTransactionId,omitempty"`
Is3DSAuthentication bool `json:"is3DSAuthentication,omitempty"`
Request3DS string `json:"request3DS,omitempty"`
ScaExemptionIndicator string `json:"scaExemptionIndicator,omitempty"`
EnableAuthenticationUpgrade string `json:"enableAuthenticationUpgrade,omitempty"`
MpiData *MpiData `json:"mpiData,omitempty"`
}
10 changes: 10 additions & 0 deletions com/alipay/api/model/CardVerificationResult.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package model

type CardVerificationResult struct {
AuthenticationType string `json:"authenticationType,omitempty"`
AuthenticationMethod string `json:"authenticationMethod,omitempty"`
CvvResult string `json:"cvvResult,omitempty"`
AvsResult string `json:"avsResult,omitempty"`
AuthorizationCode string `json:"authorizationCode,omitempty"`
ThreeDSResult *RiskThreeDSResult `json:"threeDSResult,omitempty"`
}
21 changes: 0 additions & 21 deletions com/alipay/api/model/Certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,4 @@ type Certificate struct {
HolderName *UserName `json:"holderName,omitempty"`
FileKeys []string `json:"fileKeys,omitempty"`
CertificateAuthority string `json:"certificateAuthority,omitempty"`
GrantType string `json:"grantType,omitempty"`
}

type CertificateType string

const (
//ENTERPRISE_REGISTRATION,
//LICENSE_INFO,
//ID_CARD,
//PASSPORT,
//DRIVING_LICENSE,
//CPF,
//CNPJ,

CertificateType_ENTERPRISE_REGISTRATION CertificateType = "ENTERPRISE_REGISTRATION"
CertificateType_LICENSE_INFO CertificateType = "LICENSE_INFO"
CertificateType_ID_CARD CertificateType = "ID_CARD"
CertificateType_PASSPORT CertificateType = "PASSPORT"
CertificateType_DRIVING_LICENSE CertificateType = "DRIVING_LICENSE"
CertificateType_CPF CertificateType = "CPF"
CertificateType_CNPJ CertificateType = "CNPJ"
)
13 changes: 13 additions & 0 deletions com/alipay/api/model/CertificateType.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package model

type CertificateType string

const (
CertificateType_ENTERPRISE_REGISTRATION CertificateType = "ENTERPRISE_REGISTRATION"
CertificateType_LICENSE_INFO CertificateType = "LICENSE_INFO"
CertificateType_ID_CARD CertificateType = "ID_CARD"
CertificateType_PASSPORT CertificateType = "PASSPORT"
CertificateType_DRIVING_LICENSE CertificateType = "DRIVING_LICENSE"
CertificateType_CPF CertificateType = "CPF"
CertificateType_CNPJ CertificateType = "CNPJ"
)
15 changes: 0 additions & 15 deletions com/alipay/api/model/ChallengeActionForm.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,3 @@ type ChallengeActionForm struct {
TriggerSource ChallengeTriggerSourceType `json:"triggerSource,omitempty"`
ExtendInfo string `json:"extendInfo,omitempty"`
}

type ChallengeType string

const (
SMS_OTP ChallengeType = "SMS_OTP"
PLAINTEXT_CARD_NO ChallengeType = "PLAINTEXT_CARD_NO"
CARD_EXPIRE_DATE ChallengeType = "CARD_EXPIRE_DATE"
)

type ChallengeTriggerSourceType string

const (
AMS ChallengeTriggerSourceType = "AMS"
CHANNEL ChallengeTriggerSourceType = "CHANNEL"
)
8 changes: 8 additions & 0 deletions com/alipay/api/model/ChallengeTriggerSourceType.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package model

type ChallengeTriggerSourceType string

const (
ChallengeTriggerSourceType_AMS ChallengeTriggerSourceType = "AMS"
ChallengeTriggerSourceType_CHANNEL ChallengeTriggerSourceType = "CHANNEL"
)
9 changes: 9 additions & 0 deletions com/alipay/api/model/ChallengeType.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package model

type ChallengeType string

const (
ChallengeType_SMS_OTP ChallengeType = "SMS_OTP"
ChallengeType_PLAINTEXT_CARD_NO ChallengeType = "PLAINTEXT_CARD_NO"
ChallengeType_CARD_EXPIRE_DATE ChallengeType = "CARD_EXPIRE_DATE"
)
Loading