Class: GOBL::Pay::Terms

Inherits:
Object show all
Defined in:
lib/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'

Constants included from Hashme

Hashme::Boolean

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)


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

property :detail, String

#due_datesArray<DueDate> (readonly)

Set of dates for agreed payments.

Returns:



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

property :due_dates, [DueDate]

#keyTermKey (readonly)

Type of terms to be applied.

Returns:



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

property :key, TermKey

#notesString (readonly)

Description of the conditions for payment.

Returns:

  • (String)


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

property :notes, String