Class: GOBL::Pay::DueDate

Inherits:
Object show all
Defined in:
lib/generated/gobl/pay/due_date.rb

Overview

DueDate contains an amount that should be paid by the given date.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL DueDate structure

'https://gobl.org/draft-0/pay/terms#/$defs/DueDate'

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

#amountGOBL::Num::Amount (readonly)

How much needs to be paid by the date.

Returns:



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

property :amount, GOBL::Num::Amount

#currencyGOBL::Currency::Code (readonly)

If different from the parent document’s base currency.



41
# File 'lib/generated/gobl/pay/due_date.rb', line 41

property :currency, GOBL::Currency::Code

#dateGOBL::Cal::Date (readonly)

When the payment is due.

Returns:



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

property :date, GOBL::Cal::Date

#notesString (readonly)

Other details to take into account for the due date.

Returns:

  • (String)


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

property :notes, String

#percentGOBL::Num::Percentage (readonly)

Percentage of the total that should be paid by the date.



36
# File 'lib/generated/gobl/pay/due_date.rb', line 36

property :percent, GOBL::Num::Percentage