Class: Vatsense::Models::InvoiceCustomerInput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/vatsense/models/invoice_customer_input.rb,
sig/vatsense/models/invoice_customer_input.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

#initialize(name:, address: nil, company_number: nil, country_code: nil, email: nil, logo: nil, vat_number: nil) ⇒ Object

Parameters:

  • name (String) —

    The customer's trading name.

  • address (String) (defaults to: nil)
  • company_number (String) (defaults to: nil)
  • country_code (String) (defaults to: nil)
  • email (String) (defaults to: nil)
  • logo (String) (defaults to: nil) —

    URL to the customer logo (HTTPS only, .jpg/.png).

  • vat_number (String) (defaults to: nil)


# File 'lib/vatsense/models/invoice_customer_input.rb', line 43

Instance Attribute Details

#address ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


15
# File 'lib/vatsense/models/invoice_customer_input.rb', line 15

optional :address, String

#company_number ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


20
# File 'lib/vatsense/models/invoice_customer_input.rb', line 20

optional :company_number, String

#country_code ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


25
# File 'lib/vatsense/models/invoice_customer_input.rb', line 25

optional :country_code, String

#email ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


30
# File 'lib/vatsense/models/invoice_customer_input.rb', line 30

optional :email, String

#logo ⇒ String?

URL to the customer logo (HTTPS only, .jpg/.png).

Parameters:

  • (String)

Returns:

  • (String, nil)


36
# File 'lib/vatsense/models/invoice_customer_input.rb', line 36

optional :logo, String

#name ⇒ String

The customer's trading name.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/vatsense/models/invoice_customer_input.rb', line 10

required :name, String

#vat_number ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


41
# File 'lib/vatsense/models/invoice_customer_input.rb', line 41

optional :vat_number, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


51
# File 'sig/vatsense/models/invoice_customer_input.rbs', line 51

def to_hash: -> {