Class: Spree::BankPayments::AccountData
- Inherits:
-
Data
- Object
- Data
- Spree::BankPayments::AccountData
- Defined in:
- app/models/spree/bank_payments/account_data.rb
Overview
One account as reported by a provider, in the gem's normalised shape. The reconciler maps its provider's response into this -- the database and views never see provider-specific schemas.
pooled marks an account whose coordinates are shared with other
customers of the provider, so the payment reference is the only thing
separating two payers. Defaults to false: every provider written before
5.3.0 omits it, and a dedicated account is the safe assumption.
Instance Attribute Summary collapse
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#pooled ⇒ Object
readonly
Returns the value of attribute pooled.
-
#provider_account_id ⇒ Object
readonly
Returns the value of attribute provider_account_id.
Instance Method Summary collapse
-
#initialize(details: [], pooled: false, **rest) ⇒ AccountData
constructor
A new instance of AccountData.
Constructor Details
#initialize(details: [], pooled: false, **rest) ⇒ AccountData
Returns a new instance of AccountData.
12 13 14 |
# File 'app/models/spree/bank_payments/account_data.rb', line 12 def initialize(details: [], pooled: false, **rest) super(details: details, pooled: pooled, **rest) end |
Instance Attribute Details
#currency ⇒ Object (readonly)
Returns the value of attribute currency
11 12 13 |
# File 'app/models/spree/bank_payments/account_data.rb', line 11 def currency @currency end |
#details ⇒ Object (readonly)
Returns the value of attribute details
11 12 13 |
# File 'app/models/spree/bank_payments/account_data.rb', line 11 def details @details end |
#pooled ⇒ Object (readonly)
Returns the value of attribute pooled
11 12 13 |
# File 'app/models/spree/bank_payments/account_data.rb', line 11 def pooled @pooled end |
#provider_account_id ⇒ Object (readonly)
Returns the value of attribute provider_account_id
11 12 13 |
# File 'app/models/spree/bank_payments/account_data.rb', line 11 def provider_account_id @provider_account_id end |