Class: Spree::BankPayments::AccountData

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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

#currencyObject (readonly)

Returns the value of attribute currency

Returns:

  • (Object)

    the current value of currency



11
12
13
# File 'app/models/spree/bank_payments/account_data.rb', line 11

def currency
  @currency
end

#detailsObject (readonly)

Returns the value of attribute details

Returns:

  • (Object)

    the current value of details



11
12
13
# File 'app/models/spree/bank_payments/account_data.rb', line 11

def details
  @details
end

#pooledObject (readonly)

Returns the value of attribute pooled

Returns:

  • (Object)

    the current value of pooled



11
12
13
# File 'app/models/spree/bank_payments/account_data.rb', line 11

def pooled
  @pooled
end

#provider_account_idObject (readonly)

Returns the value of attribute provider_account_id

Returns:

  • (Object)

    the current value of provider_account_id



11
12
13
# File 'app/models/spree/bank_payments/account_data.rb', line 11

def 
  @provider_account_id
end