Class: OnlinePayments::SDK::Domain::PaymentProduct5412

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#app_urlString

Returns the current value of app_url.

Returns:

  • (String)

    the current value of app_url



12
13
14
# File 'lib/onlinepayments/sdk/domain/payment_product5412.rb', line 12

def app_url
  @app_url
end

#polling_urlString

Returns the current value of polling_url.

Returns:

  • (String)

    the current value of polling_url



12
13
14
# File 'lib/onlinepayments/sdk/domain/payment_product5412.rb', line 12

def polling_url
  @polling_url
end

#qr_codeString

Returns the current value of qr_code.

Returns:

  • (String)

    the current value of qr_code



12
13
14
# File 'lib/onlinepayments/sdk/domain/payment_product5412.rb', line 12

def qr_code
  @qr_code
end

Instance Method Details

#from_hash(hash) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/onlinepayments/sdk/domain/payment_product5412.rb', line 29

def from_hash(hash)
  super
  if hash.has_key? 'appUrl'
    @app_url = hash['appUrl']
  end
  if hash.has_key? 'pollingUrl'
    @polling_url = hash['pollingUrl']
  end
  if hash.has_key? 'qrCode'
    @qr_code = hash['qrCode']
  end
end

#to_hHash

Returns:

  • (Hash)


21
22
23
24
25
26
27
# File 'lib/onlinepayments/sdk/domain/payment_product5412.rb', line 21

def to_h
  hash = super
  hash['appUrl'] = @app_url unless @app_url.nil?
  hash['pollingUrl'] = @polling_url unless @polling_url.nil?
  hash['qrCode'] = @qr_code unless @qr_code.nil?
  hash
end