Class: Inttegro::Shared::CountrySpecification

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/shared/country_specification.rb

Overview

Complete specification for a country including supported features and requirements

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#banks ⇒ Inttegro::Shared::CountryBankDirectory? (readonly)

Bank reference data available for country-specific bank accounts

Optional in the API payload; omitted values default to nil. Wire name: banks.



78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/inttegro/shared/country_specification.rb', line 78

class CountrySpecification < T::Struct
  const :country_code, String
  const :country_name, String
  const :currencies, T::Array[String]
  const :payment_methods, T::Array[String]
  const :payout_schedules, T::Array[String]
  const :bt_aging_specs, T::Array[String]
  const :legal_entity_types, T::Array[String]
  const :financial_account_types, T::Array[String]
  const :id_document_types, T::Array[String]
  const :banks, T.nilable(Inttegro::Shared::CountryBankDirectory), default: nil
end

#bt_aging_specs ⇒ Array<String> (readonly)

Balance transaction aging specifications available

Required in the API payload. Wire name: bt_aging_specs.

Returns:

  • (Array<String>)


78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/inttegro/shared/country_specification.rb', line 78

class CountrySpecification < T::Struct
  const :country_code, String
  const :country_name, String
  const :currencies, T::Array[String]
  const :payment_methods, T::Array[String]
  const :payout_schedules, T::Array[String]
  const :bt_aging_specs, T::Array[String]
  const :legal_entity_types, T::Array[String]
  const :financial_account_types, T::Array[String]
  const :id_document_types, T::Array[String]
  const :banks, T.nilable(Inttegro::Shared::CountryBankDirectory), default: nil
end

#country_code ⇒ String (readonly)

ISO 3166-1 alpha-2 country code

Required in the API payload. Wire name: country_code.

Returns:

  • (String)


78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/inttegro/shared/country_specification.rb', line 78

class CountrySpecification < T::Struct
  const :country_code, String
  const :country_name, String
  const :currencies, T::Array[String]
  const :payment_methods, T::Array[String]
  const :payout_schedules, T::Array[String]
  const :bt_aging_specs, T::Array[String]
  const :legal_entity_types, T::Array[String]
  const :financial_account_types, T::Array[String]
  const :id_document_types, T::Array[String]
  const :banks, T.nilable(Inttegro::Shared::CountryBankDirectory), default: nil
end

#country_name ⇒ String (readonly)

Full country name

Required in the API payload. Wire name: country_name.

Returns:

  • (String)


78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/inttegro/shared/country_specification.rb', line 78

class CountrySpecification < T::Struct
  const :country_code, String
  const :country_name, String
  const :currencies, T::Array[String]
  const :payment_methods, T::Array[String]
  const :payout_schedules, T::Array[String]
  const :bt_aging_specs, T::Array[String]
  const :legal_entity_types, T::Array[String]
  const :financial_account_types, T::Array[String]
  const :id_document_types, T::Array[String]
  const :banks, T.nilable(Inttegro::Shared::CountryBankDirectory), default: nil
end

#currencies ⇒ Array<String> (readonly)

Supported currencies in this country

Required in the API payload. Wire name: currencies.

Returns:

  • (Array<String>)


78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/inttegro/shared/country_specification.rb', line 78

class CountrySpecification < T::Struct
  const :country_code, String
  const :country_name, String
  const :currencies, T::Array[String]
  const :payment_methods, T::Array[String]
  const :payout_schedules, T::Array[String]
  const :bt_aging_specs, T::Array[String]
  const :legal_entity_types, T::Array[String]
  const :financial_account_types, T::Array[String]
  const :id_document_types, T::Array[String]
  const :banks, T.nilable(Inttegro::Shared::CountryBankDirectory), default: nil
end

#financial_account_types ⇒ Array<String> (readonly)

Financial account types available in this country

Required in the API payload. Wire name: financial_account_types.

Returns:

  • (Array<String>)


78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/inttegro/shared/country_specification.rb', line 78

class CountrySpecification < T::Struct
  const :country_code, String
  const :country_name, String
  const :currencies, T::Array[String]
  const :payment_methods, T::Array[String]
  const :payout_schedules, T::Array[String]
  const :bt_aging_specs, T::Array[String]
  const :legal_entity_types, T::Array[String]
  const :financial_account_types, T::Array[String]
  const :id_document_types, T::Array[String]
  const :banks, T.nilable(Inttegro::Shared::CountryBankDirectory), default: nil
end

#id_document_types ⇒ Array<String> (readonly)

Identification document types accepted in this country

Required in the API payload. Wire name: id_document_types.

Returns:

  • (Array<String>)


78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/inttegro/shared/country_specification.rb', line 78

class CountrySpecification < T::Struct
  const :country_code, String
  const :country_name, String
  const :currencies, T::Array[String]
  const :payment_methods, T::Array[String]
  const :payout_schedules, T::Array[String]
  const :bt_aging_specs, T::Array[String]
  const :legal_entity_types, T::Array[String]
  const :financial_account_types, T::Array[String]
  const :id_document_types, T::Array[String]
  const :banks, T.nilable(Inttegro::Shared::CountryBankDirectory), default: nil
end

Legal entity types that can operate in this country

Required in the API payload. Wire name: legal_entity_types.

Returns:

  • (Array<String>)


78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/inttegro/shared/country_specification.rb', line 78

class CountrySpecification < T::Struct
  const :country_code, String
  const :country_name, String
  const :currencies, T::Array[String]
  const :payment_methods, T::Array[String]
  const :payout_schedules, T::Array[String]
  const :bt_aging_specs, T::Array[String]
  const :legal_entity_types, T::Array[String]
  const :financial_account_types, T::Array[String]
  const :id_document_types, T::Array[String]
  const :banks, T.nilable(Inttegro::Shared::CountryBankDirectory), default: nil
end

#payment_methods ⇒ Array<String> (readonly)

Supported payment methods in this country

Required in the API payload. Wire name: payment_methods.

Returns:

  • (Array<String>)


78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/inttegro/shared/country_specification.rb', line 78

class CountrySpecification < T::Struct
  const :country_code, String
  const :country_name, String
  const :currencies, T::Array[String]
  const :payment_methods, T::Array[String]
  const :payout_schedules, T::Array[String]
  const :bt_aging_specs, T::Array[String]
  const :legal_entity_types, T::Array[String]
  const :financial_account_types, T::Array[String]
  const :id_document_types, T::Array[String]
  const :banks, T.nilable(Inttegro::Shared::CountryBankDirectory), default: nil
end

#payout_schedules ⇒ Array<String> (readonly)

Available payout schedules for this country

Required in the API payload. Wire name: payout_schedules.

Returns:

  • (Array<String>)


78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/inttegro/shared/country_specification.rb', line 78

class CountrySpecification < T::Struct
  const :country_code, String
  const :country_name, String
  const :currencies, T::Array[String]
  const :payment_methods, T::Array[String]
  const :payout_schedules, T::Array[String]
  const :bt_aging_specs, T::Array[String]
  const :legal_entity_types, T::Array[String]
  const :financial_account_types, T::Array[String]
  const :id_document_types, T::Array[String]
  const :banks, T.nilable(Inttegro::Shared::CountryBankDirectory), default: nil
end