Class: WhopSDK::Models::InvoiceCreateParams::Body::CreateInvoiceInputWithProduct::BillingAddress

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

Overview

See Also:

  • WhopSDK::Models::InvoiceCreateParams::Body::CreateInvoiceInputWithProduct#billing_address

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



342
# File 'sig/whop_sdk/models/invoice_create_params.rbs', line 342

def initialize: (

Instance Attribute Details

#cityString?

The city of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


480
# File 'lib/whop_sdk/models/invoice_create_params.rb', line 480

optional :city, String, nil?: true

#countryString?

The country of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


486
# File 'lib/whop_sdk/models/invoice_create_params.rb', line 486

optional :country, String, nil?: true

#line1String?

The line 1 of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


492
# File 'lib/whop_sdk/models/invoice_create_params.rb', line 492

optional :line1, String, nil?: true

#line2String?

The line 2 of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


498
# File 'lib/whop_sdk/models/invoice_create_params.rb', line 498

optional :line2, String, nil?: true

#nameString?

The name of the customer.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


504
# File 'lib/whop_sdk/models/invoice_create_params.rb', line 504

optional :name, String, nil?: true

#phoneString?

The phone number of the customer.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


510
# File 'lib/whop_sdk/models/invoice_create_params.rb', line 510

optional :phone, String, nil?: true

#postal_codeString?

The postal code of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


516
# File 'lib/whop_sdk/models/invoice_create_params.rb', line 516

optional :postal_code, String, nil?: true

#stateString?

The state of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


522
# File 'lib/whop_sdk/models/invoice_create_params.rb', line 522

optional :state, String, nil?: true

#tax_id_typeSymbol, ...

The type of tax identifier

Parameters:

  • value (WhopSDK::Models::tax_identifier_type, nil)

Returns:



528
# File 'lib/whop_sdk/models/invoice_create_params.rb', line 528

optional :tax_id_type, enum: -> { WhopSDK::TaxIdentifierType }, nil?: true

#tax_id_valueString?

The value of the tax identifier.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


534
# File 'lib/whop_sdk/models/invoice_create_params.rb', line 534

optional :tax_id_value, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


355
# File 'sig/whop_sdk/models/invoice_create_params.rbs', line 355

def to_hash: -> {