Class: OnlinePayments::SDK::Domain::PaymentProduct5001 Deprecated

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

Overview

Deprecated.

Deprecated by pendingAuthentication. Contains the third party data for payment product 5001 (Bizum)

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#messageString

Returns the current value of message.

Returns:

  • (String)

    the current value of message



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

def message
  @message
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_product5001.rb', line 12

def polling_url
  @polling_url
end

Instance Method Details

#from_hash(hash) ⇒ Object



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

def from_hash(hash)
  super
  if hash.has_key? 'message'
    @message = hash['message']
  end
  if hash.has_key? 'pollingUrl'
    @polling_url = hash['pollingUrl']
  end
end

#to_hHash

Returns:

  • (Hash)


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

def to_h
  hash = super
  hash['message'] = @message unless @message.nil?
  hash['pollingUrl'] = @polling_url unless @polling_url.nil?
  hash
end