Class: Yoomoney::Models::MeRetrieveResponse

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

Overview

See Also:

  • Yoomoney::Resources::Me#retrieve

Defined Under Namespace

Modules: PayoutMethod Classes: Fiscalization

Constant Summary collapse

Yoomoney =

Returns:

  • (:MonetaryAmount)

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_id ⇒ String

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

Parameters:

  • value (String)

Returns:

  • (String)


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

required :account_id, String

#fiscalization ⇒ Yoomoney::Models::MeRetrieveResponse::Fiscalization?

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



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

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

#fiscalization_enabled ⇒ Boolean?

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

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

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

#itn ⇒ String?

ИНН.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :itn, String

#name ⇒ String?

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

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :name, String

#payment_methods ⇒ Array<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_balance ⇒ Yoomoney::Models::MonetaryAmount?

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



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

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

#payout_methods ⇒ Array<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] }

#status ⇒ String

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

Parameters:

  • value (String)

Returns:

  • (String)


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

required :status, String

#test_ ⇒ Boolean

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

Parameters:

  • value (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

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


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

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


73
# File 'sig/yoomoney/models/me_retrieve_response.rbs', line 73

def to_hash: -> {