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:



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

property :amount, GOBL::Num::Amount

#currencyGOBL::Currency::Code (readonly)

If different from the parent document’s base currency.



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

property :currency, GOBL::Currency::Code

#dateGOBL::Cal::Date (readonly)

When the payment is due.

Returns:



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

property :date, GOBL::Cal::Date

#notesString (readonly)

Other details to take into account for the due date.

Returns:

  • (String)


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

property :notes, String

#percentGOBL::Num::Percentage (readonly)

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



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

property :percent, GOBL::Num::Percentage