14 lines
768 B
Go
14 lines
768 B
Go
![]() |
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"`
|
||
|
PaymentMethodData *T `json:"payment_method_data,omitempty"`
|
||
|
Confirmation *CreateConfirmationRedirect `json:"confirmation,omitempty"`
|
||
|
Capture bool `json:"capture,omitempty"`
|
||
|
ClientIP string `json:"client_ip,omitempty"`
|
||
|
Deal any `json:"deal,omitempty"`
|
||
|
MerchantCustomerID any `json:"merchant_customer_id,omitempty"`
|
||
|
}
|