Class: OnlinePayments::SDK::Domain::PaymentProduct350

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

Returns the current value of app_switch_link.

Returns:

  • (String)

    the current value of app_switch_link



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

def app_switch_link
  @app_switch_link
end

#payment_request_tokenString

Returns the current value of payment_request_token.

Returns:

  • (String)

    the current value of payment_request_token



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

def payment_request_token
  @payment_request_token
end

Instance Method Details

#from_hash(hash) ⇒ Object



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

def from_hash(hash)
  super
  if hash.has_key? 'appSwitchLink'
    @app_switch_link = hash['appSwitchLink']
  end
  if hash.has_key? 'paymentRequestToken'
    @payment_request_token = hash['paymentRequestToken']
  end
end

#to_hHash

Returns:

  • (Hash)


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

def to_h
  hash = super
  hash['appSwitchLink'] = @app_switch_link unless @app_switch_link.nil?
  hash['paymentRequestToken'] = @payment_request_token unless @payment_request_token.nil?
  hash
end