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.',
  '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

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:



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

property :card, Card

#credit_transferArray<CreditTransfer> (readonly)

Instructions for sending payment via a bank transfer.

Returns:



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

property :credit_transfer, [CreditTransfer]

#detailString (readonly)

Optional text description of the payment method

Returns:

  • (String)


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

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:



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

property :direct_debit, DirectDebit

#keyGOBL::CBC::Key (readonly)

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

Returns:



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

property :key, GOBL::CBC::Key

#metaGOBL::CBC::Meta (readonly)

Non-structured additional data that may be useful.

Returns:



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

property :meta, GOBL::CBC::Meta

#notesString (readonly)

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

Returns:

  • (String)


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

property :notes, String

#onlineArray<Online> (readonly)

Array of online payment options

Returns:



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

property :online, [Online]

#refString (readonly)

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

Returns:

  • (String)


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

property :ref, String