Class: GOBL::Bill::InvoiceType

Inherits:
Enum show all
Defined in:
lib/gobl/bill/invoice_type.rb

Overview

Defines an invoice type according to a subset of the UNTDID 1001 standard list.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL InvoiceType structure

'https://gobl.org/draft-0/bill/invoice#/$defs/InvoiceType'
ENUM =

The enumeration of values of the object and their descriptions (Values different to these are not allowed)

{
  'proforma' => 'Proforma invoice, for a clients validation before sending a final invoice.',
  'simplified' => 'Simplified invoice or receipt typically used for small transactions that dont require customer details.t require customer details.',
  'partial' => 'Partial invoice',
  'commercial' => 'Commercial invoice, usually cross-border transactions requiring an invoice for customs.',
  'corrected' => 'Corrected invoice',
  'credit-note' => 'Credit note',
  'self-billed' => 'Self billed invoice'
}.freeze

Instance Method Summary collapse

Methods inherited from Enum

all, #description, find_by_inquirer, find_by_sym, #initialize, #method_missing, #respond_to_missing?

Methods inherited from Value

#==, #as_json, #eql?, #hash, #initialize, #to_s, #to_sym

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Constructor Details

This class inherits a constructor from GOBL::Enum

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GOBL::Enum

Instance Method Details

#strict_enum?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/gobl/bill/invoice_type.rb', line 27

def strict_enum?
  true
end