Skip to content

Commit

Permalink
Merge branch 'master' into pos-apm
Browse files Browse the repository at this point in the history
  • Loading branch information
reywyn committed Jun 20, 2023
2 parents 81a9c7a + b9dc2d4 commit fc60271
Showing 1 changed file with 29 additions and 23 deletions.
52 changes: 29 additions & 23 deletions adapter/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,29 +474,30 @@ 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"`
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"`
CustomInstallments []CustomInstallment `json:"customInstallments,omitempty"`
Items []PaymentItem `json:"items"`
}

type InitApmPaymentRequest struct {
Expand Down Expand Up @@ -945,6 +946,11 @@ type WalletTransaction struct {
WalletId *int64 `json:"walletId"`
}

type CustomInstallment struct {
Number int `json:"number,omitempty"`
TotalPrice float64 `json:"totalPrice,omitempty"`
}

type GarantiPayInstallment struct {
Number int `json:"number,omitempty"`
TotalPrice float64 `json:"totalPrice,omitempty"`
Expand Down

0 comments on commit fc60271

Please sign in to comment.