Class: OnlinePayments::SDK::Domain::PaymentProduct3013SpecificInput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::PaymentProduct3013SpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/payment_product3013_specific_input.rb
Instance Attribute Summary collapse
-
#market_number ⇒ String
The current value of market_number.
-
#purchasing_buyer_reference1 ⇒ String
The current value of purchasing_buyer_reference1.
-
#purchasing_buyer_reference2 ⇒ String
The current value of purchasing_buyer_reference2.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#market_number ⇒ String
Returns 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_reference1 ⇒ String
Returns 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_reference2 ⇒ String
Returns 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_h ⇒ 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 |