treasurer/internal/models/yandex/payment_create.go

20 lines
1.2 KiB
Go
Raw Normal View History

2023-06-13 13:22:51 +00:00
package yandex
// CreatePaymentRequest description https://yookassa.ru/developers/api#create_payment
type CreatePaymentRequest[T any] struct {
Amount Amount `json:"amount"`
Description string `json:"description,omitempty"`
PaymentMethodID *string `json:"payment_method_id,omitempty"`
PaymentMethodData *T `json:"payment_method_data,omitempty"`
Confirmation *CreateConfirmationRedirect `json:"confirmation,omitempty"`
SavePaymentMethod bool `json:"save_payment_method,omitempty"`
Capture bool `json:"capture,omitempty"`
ClientIP string `json:"client_ip,omitempty"`
Metadata any `json:"metadata,omitempty"`
Airline any `json:"airline,omitempty"`
Transfers []any `json:"transfers,omitempty"`
Deal any `json:"deal,omitempty"`
FraudData any `json:"fraud_data,omitempty"`
MerchantCustomerID any `json:"merchant_customer_id,omitempty"`
}