Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct5412SpecificInput

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#adjustable_amounttrue/false

Returns the current value of adjustable_amount.

Returns:

  • (true/false)

    the current value of adjustable_amount



11
12
13
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb', line 11

def adjustable_amount
  @adjustable_amount
end

#beneficiary_idString

Returns the current value of beneficiary_id.

Returns:

  • (String)

    the current value of beneficiary_id



11
12
13
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb', line 11

def beneficiary_id
  @beneficiary_id
end

Instance Method Details

#from_hash(hash) ⇒ Object



25
26
27
28
29
30
31
32
33
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb', line 25

def from_hash(hash)
  super
  if hash.has_key? 'adjustableAmount'
    @adjustable_amount = hash['adjustableAmount']
  end
  if hash.has_key? 'beneficiaryId'
    @beneficiary_id = hash['beneficiaryId']
  end
end

#to_hHash

Returns:

  • (Hash)


18
19
20
21
22
23
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb', line 18

def to_h
  hash = super
  hash['adjustableAmount'] = @adjustable_amount unless @adjustable_amount.nil?
  hash['beneficiaryId'] = @beneficiary_id unless @beneficiary_id.nil?
  hash
end