Class: Vatsense::Models::Invoice::InvoiceItemInput

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

Direct Known Subclasses

ItemUpdateParams

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Vatsense::Internal::Type::BaseModel

Instance Attribute Details

#discount_rateFloat?

A percentage discount to apply to the price.

Returns:

  • (Float, nil)


35
# File 'lib/vatsense/models/invoice/invoice_item_input.rb', line 35

optional :discount_rate, Float

#itemString

The description of the line item.

Returns:

  • (String)


11
# File 'lib/vatsense/models/invoice/invoice_item_input.rb', line 11

required :item, String

#price_eachFloat

The price per item. Must be a decimal with 2 decimal places.

Returns:

  • (Float)


17
# File 'lib/vatsense/models/invoice/invoice_item_input.rb', line 17

required :price_each, Float

#quantityFloat

The quantity of the item.

Returns:

  • (Float)


23
# File 'lib/vatsense/models/invoice/invoice_item_input.rb', line 23

required :quantity, Float

#vat_rateFloat

A percentage VAT rate for this item.

Returns:

  • (Float)


29
# File 'lib/vatsense/models/invoice/invoice_item_input.rb', line 29

required :vat_rate, Float