Class: Spree::BankPayments::TransferData
- Inherits:
-
Data
- Object
- Data
- Spree::BankPayments::TransferData
- Defined in:
- app/models/spree/bank_payments/transfer_data.rb
Overview
The single value object crossing the reconciler boundary. Both ingress paths — webhook and poll — return this, so matching is written once and the two paths cannot drift apart.
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#occurred_at ⇒ Object
readonly
Returns the value of attribute occurred_at.
-
#payer_name ⇒ Object
readonly
Returns the value of attribute payer_name.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#provider_account_id ⇒ Object
readonly
Returns the value of attribute provider_account_id.
-
#provider_transaction_id ⇒ Object
readonly
Returns the value of attribute provider_transaction_id.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
Instance Method Summary collapse
-
#initialize(payer_name: nil, reference: nil, raw: {}, provider_account_id: nil, **rest) ⇒ TransferData
constructor
A new instance of TransferData.
Constructor Details
#initialize(payer_name: nil, reference: nil, raw: {}, provider_account_id: nil, **rest) ⇒ TransferData
Returns a new instance of TransferData.
17 18 19 20 |
# File 'app/models/spree/bank_payments/transfer_data.rb', line 17 def initialize(payer_name: nil, reference: nil, raw: {}, provider_account_id: nil, **rest) super(payer_name: payer_name, reference: reference, raw: raw, provider_account_id: provider_account_id, **rest) end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount
6 7 8 |
# File 'app/models/spree/bank_payments/transfer_data.rb', line 6 def amount @amount end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency
6 7 8 |
# File 'app/models/spree/bank_payments/transfer_data.rb', line 6 def currency @currency end |
#occurred_at ⇒ Object (readonly)
Returns the value of attribute occurred_at
6 7 8 |
# File 'app/models/spree/bank_payments/transfer_data.rb', line 6 def occurred_at @occurred_at end |
#payer_name ⇒ Object (readonly)
Returns the value of attribute payer_name
6 7 8 |
# File 'app/models/spree/bank_payments/transfer_data.rb', line 6 def payer_name @payer_name end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider
6 7 8 |
# File 'app/models/spree/bank_payments/transfer_data.rb', line 6 def provider @provider end |
#provider_account_id ⇒ Object (readonly)
Returns the value of attribute provider_account_id
6 7 8 |
# File 'app/models/spree/bank_payments/transfer_data.rb', line 6 def provider_account_id @provider_account_id end |
#provider_transaction_id ⇒ Object (readonly)
Returns the value of attribute provider_transaction_id
6 7 8 |
# File 'app/models/spree/bank_payments/transfer_data.rb', line 6 def provider_transaction_id @provider_transaction_id end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw
6 7 8 |
# File 'app/models/spree/bank_payments/transfer_data.rb', line 6 def raw @raw end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference
6 7 8 |
# File 'app/models/spree/bank_payments/transfer_data.rb', line 6 def reference @reference end |