Class: Vatsense::Models::InvoiceCustomerInput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/vatsense/models/invoice_customer_input.rb

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

#addressString?

Returns:

  • (String, nil)


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

optional :address, String

#company_numberString?

Returns:

  • (String, nil)


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

optional :company_number, String

#country_codeString?

Returns:

  • (String, nil)


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

optional :country_code, String

#emailString?

Returns:

  • (String, nil)


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

optional :email, String

#logoString?

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

Returns:

  • (String, nil)


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

optional :logo, String

#nameString

The customer’s trading name.

Returns:

  • (String)


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

required :name, String

#vat_numberString?

Returns:

  • (String, nil)


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

optional :vat_number, String