Structures

The following structures are available globally.

  • Request information about your saved payment method. The request allows you to get information about the saved payment method by its unique identifier. In response to the request, the data of the saved payment method will come.

    See more

    Declaration

    Swift

    public struct PaymentMethod
    extension PaymentMethod: Decodable
    extension PaymentMethod: PaymentsApiResponse
    extension PaymentMethod: JsonApiResponse
  • Response for payment options.

    See more

    Declaration

    Swift

    public struct PaymentOptions
    extension PaymentOptions: Decodable
    extension PaymentOptions: PaymentsApiResponse
    extension PaymentOptions: JsonApiResponse
  • Tokenization payments data.

    See more

    Declaration

    Swift

    public struct Tokens : Codable
    extension Tokens: PaymentsApiResponse
    extension Tokens: JsonApiResponse
  • Payments API error

    See more

    Declaration

    Swift

    public struct PaymentsApiError : Error, JsonApiResponse, PaymentsErrorApiResponse
  • Bank card data.

    See more

    Declaration

    Swift

    public struct BankCard : Codable
  • Payment confirmation method.

    See more

    Declaration

    Swift

    public struct Confirmation
    extension Confirmation: Codable
  • Fee charged by the payee.

    See more

    Declaration

    Swift

    public struct Counterparty : Codable
  • Fee

    Commission from the buyer in excess of the payment amount. The field is present if there are commissions in excess of the payment amount.

    See more

    Declaration

    Swift

    public struct Fee : Codable
  • The amount in the selected currency.

    See more

    Declaration

    Swift

    public struct MonetaryAmount : Decodable, Encodable
  • Bank card details

    See more

    Declaration

    Swift

    public struct PaymentMethodBankCard : Codable, Equatable
  • Commission charged by YooKassa.

    See more

    Declaration

    Swift

    public struct Service : Codable