Class: OnlinePayments::SDK::Domain::PaymentProduct3013SpecificInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#market_numberString

Returns the current value of market_number.

Returns:

  • (String)

    the current value of market_number



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

def market_number
  @market_number
end

#purchasing_buyer_reference1String

Returns the current value of purchasing_buyer_reference1.

Returns:

  • (String)

    the current value of purchasing_buyer_reference1



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

def purchasing_buyer_reference1
  @purchasing_buyer_reference1
end

#purchasing_buyer_reference2String

Returns the current value of purchasing_buyer_reference2.

Returns:

  • (String)

    the current value of purchasing_buyer_reference2



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

def purchasing_buyer_reference2
  @purchasing_buyer_reference2
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_product3013_specific_input.rb', line 29

def from_hash(hash)
  super
  if hash.has_key? 'marketNumber'
    @market_number = hash['marketNumber']
  end
  if hash.has_key? 'purchasingBuyerReference1'
    @purchasing_buyer_reference1 = hash['purchasingBuyerReference1']
  end
  if hash.has_key? 'purchasingBuyerReference2'
    @purchasing_buyer_reference2 = hash['purchasingBuyerReference2']
  end
end

#to_hHash

Returns:

  • (Hash)


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

def to_h
  hash = super
  hash['marketNumber'] = @market_number unless @market_number.nil?
  hash['purchasingBuyerReference1'] = @purchasing_buyer_reference1 unless @purchasing_buyer_reference1.nil?
  hash['purchasingBuyerReference2'] = @purchasing_buyer_reference2 unless @purchasing_buyer_reference2.nil?
  hash
end