Class: Yoomoney::Models::MeRetrieveResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/yoomoney/models/me_retrieve_response.rb

Overview

Defined Under Namespace

Modules: PayoutMethod Classes: Fiscalization

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(account_id:, status:, test_:, fiscalization: nil, fiscalization_enabled: nil, itn: nil, name: nil, payment_methods: nil, payout_balance: nil, payout_methods: nil) ⇒ Object

Parameters:

  • account_id (String)

    Идентификатор аккаунта.

  • status (String)

    Статус аккаунта.

  • test_ (Boolean)

    Признак тестового аккаунта.

  • fiscalization (Yoomoney::Models::MeRetrieveResponse::Fiscalization) (defaults to: nil)

    Данные о фискализации.

  • fiscalization_enabled (Boolean) (defaults to: nil)

    Признак подключенной фискализации.

  • itn (String) (defaults to: nil)

    ИНН.

  • name (String) (defaults to: nil)

    Название магазина.

  • payment_methods (Array<Symbol, Yoomoney::Models::PaymentMethodType>) (defaults to: nil)

    Доступные способы оплаты.

  • payout_balance (Yoomoney::Models::MonetaryAmount) (defaults to: nil)

    Баланс для выплат.

  • payout_methods (Array<Symbol, Yoomoney::Models::MeRetrieveResponse::PayoutMethod>) (defaults to: nil)

    Способы выплат.



# File 'lib/yoomoney/models/me_retrieve_response.rb', line 68

Instance Attribute Details

#account_idString

Идентификатор аккаунта.

Returns:

  • (String)


11
# File 'lib/yoomoney/models/me_retrieve_response.rb', line 11

required :account_id, String

#fiscalizationYoomoney::Models::MeRetrieveResponse::Fiscalization?

Данные о фискализации.



29
# File 'lib/yoomoney/models/me_retrieve_response.rb', line 29

optional :fiscalization, -> { Yoomoney::Models::MeRetrieveResponse::Fiscalization }

#fiscalization_enabledBoolean?

Признак подключенной фискализации.

Returns:

  • (Boolean, nil)


35
# File 'lib/yoomoney/models/me_retrieve_response.rb', line 35

optional :fiscalization_enabled, Yoomoney::Internal::Type::Boolean

#itnString?

ИНН.

Returns:

  • (String, nil)


41
# File 'lib/yoomoney/models/me_retrieve_response.rb', line 41

optional :itn, String

#nameString?

Название магазина.

Returns:

  • (String, nil)


47
# File 'lib/yoomoney/models/me_retrieve_response.rb', line 47

optional :name, String

#payment_methodsArray<Symbol, Yoomoney::Models::PaymentMethodType>?

Доступные способы оплаты.

Returns:



53
# File 'lib/yoomoney/models/me_retrieve_response.rb', line 53

optional :payment_methods, -> { Yoomoney::Internal::Type::ArrayOf[enum: Yoomoney::PaymentMethodType] }

#payout_balanceYoomoney::Models::MonetaryAmount?

Баланс для выплат.



59
# File 'lib/yoomoney/models/me_retrieve_response.rb', line 59

optional :payout_balance, -> { Yoomoney::MonetaryAmount }

#payout_methodsArray<Symbol, Yoomoney::Models::MeRetrieveResponse::PayoutMethod>?

Способы выплат.



65
66
# File 'lib/yoomoney/models/me_retrieve_response.rb', line 65

optional :payout_methods,
-> { Yoomoney::Internal::Type::ArrayOf[enum: Yoomoney::Models::MeRetrieveResponse::PayoutMethod] }

#statusString

Статус аккаунта.

Returns:

  • (String)


17
# File 'lib/yoomoney/models/me_retrieve_response.rb', line 17

required :status, String

#test_Boolean

Признак тестового аккаунта.

Returns:

  • (Boolean)


23
# File 'lib/yoomoney/models/me_retrieve_response.rb', line 23

required :test_, Yoomoney::Internal::Type::Boolean, api_name: :test

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/yoomoney/models/me_retrieve_response.rb', line 126