Class: Spree::BankPayments::TransferData

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

Instance Method Summary collapse

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: , **rest)
end

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount

Returns:

  • (Object)

    the current value of amount



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

def amount
  @amount
end

#currencyObject (readonly)

Returns the value of attribute currency

Returns:

  • (Object)

    the current value of currency



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

def currency
  @currency
end

#occurred_atObject (readonly)

Returns the value of attribute occurred_at

Returns:

  • (Object)

    the current value of occurred_at



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

def occurred_at
  @occurred_at
end

#payer_nameObject (readonly)

Returns the value of attribute payer_name

Returns:

  • (Object)

    the current value of payer_name



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

def payer_name
  @payer_name
end

#providerObject (readonly)

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



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

def provider
  @provider
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/transfer_data.rb', line 6

def 
  @provider_account_id
end

#provider_transaction_idObject (readonly)

Returns the value of attribute provider_transaction_id

Returns:

  • (Object)

    the current value of 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

#rawObject (readonly)

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



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

def raw
  @raw
end

#referenceObject (readonly)

Returns the value of attribute reference

Returns:

  • (Object)

    the current value of reference



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

def reference
  @reference
end