Class: GOBL::Pay::TermKey

Inherits:
Enum show all
Defined in:
lib/gobl/pay/term_key.rb

Overview

Payment terms key

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL TermKey structure

'https://gobl.org/draft-0/pay/terms#/$defs/TermKey'
ENUM =

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

{
  '' => 'Not yet defined',
  'end-of-month' => 'End of month',
  'due-date' => 'Due on a specific date',
  'deferred' => 'Deferred until after the due date',
  'proximo' => 'Month after the present',
  'instant' => 'On receipt of invoice',
  'elective' => 'Chosen by the buyer',
  'pending' => 'Seller to advise buyer in separate transaction',
  'advance' => 'Payment made in advance',
  'delivery' => 'Payment on Delivery'
}.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)


30
31
32
# File 'lib/gobl/pay/term_key.rb', line 30

def strict_enum?
  true
end