Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FraudParams For InitCheckoutPayment #104

Merged
merged 1 commit into from
Aug 22, 2024
Merged
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
53 changes: 27 additions & 26 deletions adapter/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -654,32 +654,33 @@ type Complete3DSPaymentRequest struct {
}

type InitCheckoutPaymentRequest struct {
Price float64 `json:"price,omitempty"`
PaidPrice float64 `json:"paidPrice,omitempty"`
Currency Currency `json:"currency,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
BankOrderId string `json:"bankOrderId,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
PaymentPhase PaymentPhase `json:"paymentPhase,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
EnabledPaymentMethods []PaymentMethod `json:"enabledPaymentMethods,omitempty"`
MasterpassGsmNumber string `json:"masterpassGsmNumber,omitempty"`
MasterpassUserId string `json:"masterpassUserId,omitempty"`
CardUserKey string `json:"cardUserKey,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
EnabledInstallments []int `json:"enabledInstallments,omitempty"`
AlwaysStoreCardAfterPayment bool `json:"alwaysStoreCardAfterPayment,omitempty"`
AllowOnlyStoredCards bool `json:"allowOnlyStoredCards,omitempty"`
AllowOnlyCreditCard bool `json:"allowOnlyCreditCard,omitempty"`
ForceThreeDS bool `json:"forceThreeDS,omitempty"`
ForceAuthForNonCreditCards bool `json:"forceAuthForNonCreditCards,omitempty"`
DepositPayment bool `json:"depositPayment,omitempty"`
Ttl int64 `json:"ttl,omitempty"`
CustomInstallments []CustomInstallment `json:"customInstallments,omitempty"`
Items []PaymentItem `json:"items"`
Price float64 `json:"price,omitempty"`
PaidPrice float64 `json:"paidPrice,omitempty"`
Currency Currency `json:"currency,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
BankOrderId string `json:"bankOrderId,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
PaymentPhase PaymentPhase `json:"paymentPhase,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
EnabledPaymentMethods []PaymentMethod `json:"enabledPaymentMethods,omitempty"`
MasterpassGsmNumber string `json:"masterpassGsmNumber,omitempty"`
MasterpassUserId string `json:"masterpassUserId,omitempty"`
CardUserKey string `json:"cardUserKey,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
EnabledInstallments []int `json:"enabledInstallments,omitempty"`
AlwaysStoreCardAfterPayment bool `json:"alwaysStoreCardAfterPayment,omitempty"`
AllowOnlyStoredCards bool `json:"allowOnlyStoredCards,omitempty"`
AllowOnlyCreditCard bool `json:"allowOnlyCreditCard,omitempty"`
ForceThreeDS bool `json:"forceThreeDS,omitempty"`
ForceAuthForNonCreditCards bool `json:"forceAuthForNonCreditCards,omitempty"`
DepositPayment bool `json:"depositPayment,omitempty"`
Ttl int64 `json:"ttl,omitempty"`
CustomInstallments []CustomInstallment `json:"customInstallments,omitempty"`
Items []PaymentItem `json:"items"`
FraudParams *FraudCheckParameters `json:"fraudParams,omitempty"`
}

type InitApmPaymentRequest struct {
Expand Down
Loading