Class: GOBL::Pay::Advance
- Defined in:
- lib/generated/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'
- KEY_ENUM =
Enumeration of possible values for #key with their corresponding descriptions
{ 'any' => 'Any method available, no preference.', 'card' => 'Payment card.', 'credit-transfer' => 'Sender initiated bank or wire transfer.', 'debit-transfer' => 'Receiver initiated bank or wire transfer.', 'cash' => 'Cash in hand.', 'cheque' => 'Cheque from bank.', 'bank-draft' => 'Bankers Draft or Bank Cheque.', 'direct-debit' => 'Direct debit from the customers bank account.', 'online' => 'Online or web payment.', 'promissory-note' => 'Promissory note contract.', 'netting' => 'Intercompany clearing or clearing between partners.', 'other' => 'Other or mutually defined means of payment.' }.freeze
Instance Attribute Summary collapse
-
#amount ⇒ GOBL::Num::Amount
readonly
How much was paid.
-
#card ⇒ Card
readonly
Details of the payment that was made via a credit or debit card.
-
#credit_transfer ⇒ CreditTransfer
readonly
Details about how the payment was made by credit (bank) transfer.
-
#currency ⇒ GOBL::Currency::Code
readonly
If different from the parent document’s base currency.
-
#date ⇒ GOBL::Cal::Date
readonly
When the advance was made.
-
#description ⇒ 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.
-
#key ⇒ GOBL::CBC::Key
readonly
The payment means used to make the advance.
-
#meta ⇒ GOBL::CBC::Meta
readonly
Additional details useful for the parties involved.
-
#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 ⇒ String
readonly
Universally Unique Identifier.
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.
70 |
# File 'lib/generated/gobl/pay/advance.rb', line 70 property :amount, GOBL::Num::Amount |
#card ⇒ Card (readonly)
Details of the payment that was made via a credit or debit card.
81 |
# File 'lib/generated/gobl/pay/advance.rb', line 81 property :card, Card |
#credit_transfer ⇒ CreditTransfer (readonly)
Details about how the payment was made by credit (bank) transfer.
86 |
# File 'lib/generated/gobl/pay/advance.rb', line 86 property :credit_transfer, CreditTransfer |
#currency ⇒ GOBL::Currency::Code (readonly)
If different from the parent document’s base currency.
76 |
# File 'lib/generated/gobl/pay/advance.rb', line 76 property :currency, GOBL::Currency::Code |
#date ⇒ GOBL::Cal::Date (readonly)
When the advance was made.
23 |
# File 'lib/generated/gobl/pay/advance.rb', line 23 property :date, GOBL::Cal::Date |
#description ⇒ String (readonly)
Details about the advance.
59 |
# File 'lib/generated/gobl/pay/advance.rb', line 59 property :description, String |
#grant ⇒ Boolean (readonly)
If this “advance” payment has come from a public grant or subsidy, set this to true.
54 |
# File 'lib/generated/gobl/pay/advance.rb', line 54 property :grant, Boolean |
#key ⇒ GOBL::CBC::Key (readonly)
The payment means used to make the advance.
44 |
# File 'lib/generated/gobl/pay/advance.rb', line 44 property :key, GOBL::CBC::Key |
#meta ⇒ GOBL::CBC::Meta (readonly)
Additional details useful for the parties involved.
91 |
# File 'lib/generated/gobl/pay/advance.rb', line 91 property :meta, GOBL::CBC::Meta |
#percent ⇒ GOBL::Num::Percentage (readonly)
How much as a percentage of the total with tax was paid
65 |
# File 'lib/generated/gobl/pay/advance.rb', line 65 property :percent, GOBL::Num::Percentage |
#ref ⇒ String (readonly)
ID or reference for the advance.
49 |
# File 'lib/generated/gobl/pay/advance.rb', line 49 property :ref, String |
#uuid ⇒ String (readonly)
Universally Unique Identifier.
18 |
# File 'lib/generated/gobl/pay/advance.rb', line 18 property :uuid, String |