Class: GOBL::Pay::Instructions

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

Overview

Instructions determine how the payment has or should be made.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Instructions structure

'https://gobl.org/draft-0/pay/instructions'
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.',
  'credit-transfer+sepa' => 'Sender initiated bank or wire transfer via SEPA.',
  '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.',
  'direct-debit+sepa' => 'Direct debit from the customers bank account via SEPA.',
  '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

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#cardCard (readonly)

Details of the payment that will be made via a credit or debit card.

Returns:



57
# File 'lib/generated/gobl/pay/instructions.rb', line 57

property :card, Card

#credit_transferArray<CreditTransfer> (readonly)

Instructions for sending payment via a bank transfer.

Returns:



52
# File 'lib/generated/gobl/pay/instructions.rb', line 52

property :credit_transfer, [CreditTransfer]

#detailString (readonly)

Optional text description of the payment method

Returns:

  • (String)


42
# File 'lib/generated/gobl/pay/instructions.rb', line 42

property :detail, String

#direct_debitDirectDebit (readonly)

A group of terms that can be used by the customer or payer to consolidate direct debit payments.

Returns:



62
# File 'lib/generated/gobl/pay/instructions.rb', line 62

property :direct_debit, DirectDebit

#extGOBL::Tax::Extensions (readonly)

Extension key-pairs values defined by a tax regime.



77
# File 'lib/generated/gobl/pay/instructions.rb', line 77

property :ext, GOBL::Tax::Extensions

#keyGOBL::CBC::Key (readonly)

The payment means expected or that have been arranged to be used to make the payment.

Returns:



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

property :key, GOBL::CBC::Key

#metaGOBL::CBC::Meta (readonly)

Non-structured additional data that may be useful.

Returns:



82
# File 'lib/generated/gobl/pay/instructions.rb', line 82

property :meta, GOBL::CBC::Meta

#notesString (readonly)

Any additional instructions that may be required to make the payment.

Returns:

  • (String)


72
# File 'lib/generated/gobl/pay/instructions.rb', line 72

property :notes, String

#onlineArray<Online> (readonly)

Array of online payment options

Returns:



67
# File 'lib/generated/gobl/pay/instructions.rb', line 67

property :online, [Online]

#refGOBL::CBC::Code (readonly)

Remittance information or concept, a code value used to link the payment with the invoice.

Returns:



47
# File 'lib/generated/gobl/pay/instructions.rb', line 47

property :ref, GOBL::CBC::Code