Class: GOBL::Pay::Terms

Inherits:
Object show all
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

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#detailString (readonly)

Text detail of the chosen payment terms.

Returns:

  • (String)


38
# File 'lib/generated/gobl/pay/terms.rb', line 38

property :detail, String

#due_datesArray<DueDate> (readonly)

Set of dates for agreed payments.

Returns:



43
# File 'lib/generated/gobl/pay/terms.rb', line 43

property :due_dates, [DueDate]

#keyGOBL::CBC::Key (readonly)

Type of terms to be applied.

Returns:



32
# File 'lib/generated/gobl/pay/terms.rb', line 32

property :key, GOBL::CBC::Key

#notesString (readonly)

Description of the conditions for payment.

Returns:

  • (String)


48
# File 'lib/generated/gobl/pay/terms.rb', line 48

property :notes, String