Class: GOBL::Pay::Terms
- Defined in:
- lib/generated/gobl/pay/terms.rb
Overview
Terms defines when we expect the customer to pay, or have paid, for the contents of the document.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL Terms structure
'https://gobl.org/draft-0/pay/terms'
- KEY_ENUM =
Enumeration of possible values for #key with their corresponding descriptions
{ '' => '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', 'advanced' => 'Payment made in advance', 'delivery' => 'Payment on Delivery' }.freeze
Instance Attribute Summary collapse
-
#detail ⇒ String
readonly
Text detail of the chosen payment terms.
-
#due_dates ⇒ Array<DueDate>
readonly
Set of dates for agreed payments.
-
#key ⇒ GOBL::CBC::Key
readonly
Type of terms to be applied.
-
#notes ⇒ String
readonly
Description of the conditions for payment.
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#detail ⇒ String (readonly)
Text detail of the chosen payment terms.
38 |
# File 'lib/generated/gobl/pay/terms.rb', line 38 property :detail, String |
#due_dates ⇒ Array<DueDate> (readonly)
Set of dates for agreed payments.
43 |
# File 'lib/generated/gobl/pay/terms.rb', line 43 property :due_dates, [DueDate] |
#key ⇒ GOBL::CBC::Key (readonly)
Type of terms to be applied.
32 |
# File 'lib/generated/gobl/pay/terms.rb', line 32 property :key, GOBL::CBC::Key |
#notes ⇒ String (readonly)
Description of the conditions for payment.
48 |
# File 'lib/generated/gobl/pay/terms.rb', line 48 property :notes, String |