Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct840SpecificInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#address_selection_at_pay_paltrue/false

Returns the current value of address_selection_at_pay_pal.

Returns:

  • (true/false)

    the current value of address_selection_at_pay_pal



13
14
15
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb', line 13

def address_selection_at_pay_pal
  @address_selection_at_pay_pal
end

#customString

Returns the current value of custom.

Returns:

  • (String)

    the current value of custom



13
14
15
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb', line 13

def custom
  @custom
end

#java_script_sdk_flowtrue/false

Returns the current value of java_script_sdk_flow.

Returns:

  • (true/false)

    the current value of java_script_sdk_flow



13
14
15
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb', line 13

def java_script_sdk_flow
  @java_script_sdk_flow
end

#pay_latertrue/false

Returns the current value of pay_later.

Returns:

  • (true/false)

    the current value of pay_later



13
14
15
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb', line 13

def pay_later
  @pay_later
end

Instance Method Details

#from_hash(hash) ⇒ Object



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb', line 33

def from_hash(hash)
  super
  if hash.has_key? 'JavaScriptSdkFlow'
    @java_script_sdk_flow = hash['JavaScriptSdkFlow']
  end
  if hash.has_key? 'addressSelectionAtPayPal'
    @address_selection_at_pay_pal = hash['addressSelectionAtPayPal']
  end
  if hash.has_key? 'custom'
    @custom = hash['custom']
  end
  if hash.has_key? 'payLater'
    @pay_later = hash['payLater']
  end
end

#to_hHash

Returns:

  • (Hash)


24
25
26
27
28
29
30
31
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb', line 24

def to_h
  hash = super
  hash['JavaScriptSdkFlow'] = @java_script_sdk_flow unless @java_script_sdk_flow.nil?
  hash['addressSelectionAtPayPal'] = @address_selection_at_pay_pal unless @address_selection_at_pay_pal.nil?
  hash['custom'] = @custom unless @custom.nil?
  hash['payLater'] = @pay_later unless @pay_later.nil?
  hash
end