Class: GOBL::Pay::Advance
- Defined in:
- lib/gobl/pay/advance.rb
Overview
Advance represents a single payment that has been made already, such as a deposit on an intent to purchase, or as credit from a previous invoice which was later corrected or cancelled.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL Advance structure
'https://gobl.org/draft-0/pay/advance'
Constants included from Hashme
Instance Attribute Summary collapse
-
#amount ⇒ GOBL::Num::Amount
readonly
How much was paid.
-
#currency ⇒ GOBL::Currency::Code
readonly
If different from the parent document’s base currency.
-
#date ⇒ GOBL::Cal::Date
readonly
When the advance was made.
-
#desc ⇒ String
readonly
Details about the advance.
-
#grant ⇒ Boolean
readonly
If this “advance” payment has come from a public grant or subsidy, set this to true.
-
#percent ⇒ GOBL::Num::Percentage
readonly
How much as a percentage of the total with tax was paid.
-
#ref ⇒ String
readonly
ID or reference for the advance.
-
#uuid ⇒ GOBL::UUID::UUID
readonly
Unique identifier for this advance.
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#amount ⇒ GOBL::Num::Amount (readonly)
How much was paid.
50 |
# File 'lib/gobl/pay/advance.rb', line 50 property :amount, GOBL::Num::Amount |
#currency ⇒ GOBL::Currency::Code (readonly)
If different from the parent document’s base currency.
56 |
# File 'lib/gobl/pay/advance.rb', line 56 property :currency, GOBL::Currency::Code |
#date ⇒ GOBL::Cal::Date (readonly)
When the advance was made.
24 |
# File 'lib/gobl/pay/advance.rb', line 24 property :date, GOBL::Cal::Date |
#desc ⇒ String (readonly)
Details about the advance.
39 |
# File 'lib/gobl/pay/advance.rb', line 39 property :desc, String |
#grant ⇒ Boolean (readonly)
If this “advance” payment has come from a public grant or subsidy, set this to true.
34 |
# File 'lib/gobl/pay/advance.rb', line 34 property :grant, Boolean |
#percent ⇒ GOBL::Num::Percentage (readonly)
How much as a percentage of the total with tax was paid
45 |
# File 'lib/gobl/pay/advance.rb', line 45 property :percent, GOBL::Num::Percentage |
#ref ⇒ String (readonly)
ID or reference for the advance.
29 |
# File 'lib/gobl/pay/advance.rb', line 29 property :ref, String |
#uuid ⇒ GOBL::UUID::UUID (readonly)
Unique identifier for this advance.
19 |
# File 'lib/gobl/pay/advance.rb', line 19 property :uuid, GOBL::UUID::UUID |