Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct3204SpecificInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#alias_labelString

Returns the current value of alias_label.

Returns:

  • (String)

    the current value of alias_label



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

def alias_label
  @alias_label
end

#blik_codeString

Returns the current value of blik_code.

Returns:

  • (String)

    the current value of blik_code



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

def blik_code
  @blik_code
end

Instance Method Details

#from_hash(hash) ⇒ Object



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

def from_hash(hash)
  super
  if hash.has_key? 'aliasLabel'
    @alias_label = hash['aliasLabel']
  end
  if hash.has_key? 'blikCode'
    @blik_code = hash['blikCode']
  end
end

#to_hHash

Returns:

  • (Hash)


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

def to_h
  hash = super
  hash['aliasLabel'] = @alias_label unless @alias_label.nil?
  hash['blikCode'] = @blik_code unless @blik_code.nil?
  hash
end