PaymentMethodDataSberbank

public class PaymentMethodDataSberbank : PaymentMethodData

Payment method data for Sberbank.

  • The phone of the user which is registered in the account in Sberbank Online. Required to confirm payment by SMS (confirmation script external). Format specified in ITU-T E. 164 79000000000

    Declaration

    Swift

    public let phone: String
  • Creates instance of PaymentMethodDataSberbank.

    Declaration

    Swift

    public init(phone: String)

    Parameters

    phone

    The phone of the user which is registered in the account in Sberbank Online. Required to confirm payment by SMS (confirmation script external). Format specified in ITU-T E. 164 79000000000.

    Return Value

    Instance of PaymentMethodDataSberbank.

  • Creates a new instance by decoding from the given decoder. This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

    Declaration

    Swift

    public required convenience init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder to read data from.

  • Encodes this value into the given encoder. If the value fails to encode anything, encoder will encode an empty keyed container in its place. This function throws an error if any values are invalid for the given encoder’s format.

    Declaration

    Swift

    public override func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.