43 lines
1.2 KiB
Go
43 lines
1.2 KiB
Go
package yandex
|
|
|
|
type PaymentType string
|
|
|
|
const (
|
|
PaymentTypeBankCard PaymentType = "bank_card"
|
|
PaymentTypeTinkoff PaymentType = "tinkoff_bank"
|
|
PaymentTypeQiwi PaymentType = "qiwi"
|
|
PaymentTypeSberPay PaymentType = "sberbank"
|
|
PaymentTypeYoomoney PaymentType = "yoo_money"
|
|
PaymentTypeMobile PaymentType = "mobile_balance"
|
|
PaymentTypeInstallments PaymentType = "installments"
|
|
PaymentTypeCash PaymentType = "cash"
|
|
PaymentTypeSBP PaymentType = "sbp"
|
|
PaymentTypeSberB2B PaymentType = "b2b_sberbank"
|
|
PaymentTypeAlfabank PaymentType = "alfabank"
|
|
)
|
|
|
|
type PaymentMethodBankCard struct {
|
|
Type PaymentType `json:"type"`
|
|
Card *BankCardInformation `json:"card,omitempty"`
|
|
}
|
|
|
|
type PaymentMethodLogin struct {
|
|
Type PaymentType `json:"type"`
|
|
Login string `json:"login,omitempty"`
|
|
}
|
|
|
|
type PaymentMethodB2B struct {
|
|
Type PaymentType `json:"type"`
|
|
PaymentPurpose string `json:"payment_purpose"`
|
|
VatData any `json:"vat_data"`
|
|
}
|
|
|
|
type PaymentMethodPhone struct {
|
|
Type PaymentType `json:"type"`
|
|
Phone string `json:"phone,omitempty"`
|
|
}
|
|
|
|
type PaymentMethodType struct {
|
|
Type PaymentType `json:"type"`
|
|
}
|