Class: Klarna::Checkout::MerchantReference
- Defined in:
- lib/klarna/checkout/merchant_reference.rb
Instance Attribute Summary collapse
-
#orderid1 ⇒ Object
Returns the value of attribute orderid1.
-
#orderid2 ⇒ Object
Returns the value of attribute orderid2.
Instance Method Summary collapse
Methods inherited from Resource
defaults, defaults=, #initialize, #json_sanitize, #to_json
Methods included from HasOne
Methods included from HasMany
Constructor Details
This class inherits a constructor from Klarna::Checkout::Resource
Instance Attribute Details
#orderid1 ⇒ Object
Returns the value of attribute orderid1.
6 7 8 |
# File 'lib/klarna/checkout/merchant_reference.rb', line 6 def orderid1 @orderid1 end |
#orderid2 ⇒ Object
Returns the value of attribute orderid2.
6 7 8 |
# File 'lib/klarna/checkout/merchant_reference.rb', line 6 def orderid2 @orderid2 end |
Instance Method Details
#as_json ⇒ Object
8 9 10 11 12 13 |
# File 'lib/klarna/checkout/merchant_reference.rb', line 8 def as_json json_sanitize({ :orderid1 => @orderid1, :orderid2 => @orderid2 }) end |