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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details: [], **rest) ⇒ AccountData

Returns a new instance of AccountData.



7
8
9
# File 'app/models/spree/bank_payments/account_data.rb', line 7

def initialize(details: [], **rest)
  super(details: details, **rest)
end

Instance Attribute Details

#currencyObject (readonly)

Returns the value of attribute currency

Returns:

  • (Object)

    the current value of currency



6
7
8
# File 'app/models/spree/bank_payments/account_data.rb', line 6

def currency
  @currency
end

#detailsObject (readonly)

Returns the value of attribute details

Returns:

  • (Object)

    the current value of details



6
7
8
# File 'app/models/spree/bank_payments/account_data.rb', line 6

def details
  @details
end

#provider_account_idObject (readonly)

Returns the value of attribute provider_account_id

Returns:

  • (Object)

    the current value of provider_account_id



6
7
8
# File 'app/models/spree/bank_payments/account_data.rb', line 6

def 
  @provider_account_id
end