Class: ModernTreasury::Models::InvoiceCreateParams::CounterpartyShippingAddress

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

Instance Attribute 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

#initializeObject



233
# File 'sig/modern_treasury/models/invoice_create_params.rbs', line 233

def initialize: (

Instance Attribute Details

#countryString

Country code conforms to [ISO 3166-1 alpha-2]

Parameters:

  • value (String)

Returns:

  • (String)


293
# File 'lib/modern_treasury/models/invoice_create_params.rb', line 293

required :country, String

#line1String

Parameters:

  • value (String)

Returns:

  • (String)


298
# File 'lib/modern_treasury/models/invoice_create_params.rb', line 298

required :line1, String

#line2String?

Parameters:

  • (String)

Returns:

  • (String, nil)


321
# File 'lib/modern_treasury/models/invoice_create_params.rb', line 321

optional :line2, String

#localityString

Locality or City.

Parameters:

  • value (String)

Returns:

  • (String)


304
# File 'lib/modern_treasury/models/invoice_create_params.rb', line 304

required :locality, String

#postal_codeString

The postal code of the address.

Parameters:

  • value (String)

Returns:

  • (String)


310
# File 'lib/modern_treasury/models/invoice_create_params.rb', line 310

required :postal_code, String

#regionString

Region or State.

Parameters:

  • value (String)

Returns:

  • (String)


316
# File 'lib/modern_treasury/models/invoice_create_params.rb', line 316

required :region, String

Instance Method Details

#to_hash{

Returns:

  • ({)


242
# File 'sig/modern_treasury/models/invoice_create_params.rbs', line 242

def to_hash: -> {