generated from PenaSide/GolangTemplate
39 lines
1.2 KiB
Go
39 lines
1.2 KiB
Go
![]() |
package models
|
||
|
|
||
|
type RequestPaymentLink struct {
|
||
|
Type PaymentType `json:"type"`
|
||
|
Currency string `json:"currency"`
|
||
|
Amount int64 `json:"amount"`
|
||
|
PhoneNumber string `json:"phoneNumber,omitempty"`
|
||
|
Login string `json:"login,omitempty"`
|
||
|
BankCard *BankCard `json:"bankCard,omitempty"`
|
||
|
}
|
||
|
|
||
|
type RequestPaymentLinkResponse struct {
|
||
|
Link string `json:"link"`
|
||
|
}
|
||
|
|
||
|
type BankCard struct {
|
||
|
Number string `json:"number"`
|
||
|
ExpiryYear string `json:"expiryYear"`
|
||
|
ExpiryMonth string `json:"expiryMonth"`
|
||
|
CSC *string `json:"csc,omitempty"`
|
||
|
CardHolderName *string `json:"cardholder,omitempty"`
|
||
|
}
|
||
|
|
||
|
type PaymentType string
|
||
|
|
||
|
const (
|
||
|
PaymentTypeBankCard PaymentType = "bankCard"
|
||
|
PaymentTypeTinkoff PaymentType = "tinkoffBank"
|
||
|
PaymentTypeQiwi PaymentType = "qiwi"
|
||
|
PaymentTypeSberPay PaymentType = "sberbank"
|
||
|
PaymentTypeYoomoney PaymentType = "yoomoney"
|
||
|
PaymentTypeMobile PaymentType = "mobile"
|
||
|
PaymentTypeInstallments PaymentType = "installments"
|
||
|
PaymentTypeCash PaymentType = "cash"
|
||
|
PaymentTypeSBP PaymentType = "sbp"
|
||
|
PaymentTypeSberB2B PaymentType = "b2bSberbank"
|
||
|
PaymentTypeAlfabank PaymentType = "alfabank"
|
||
|
)
|