Class: Klarna::Checkout::MerchantReference

Inherits:
Resource
  • Object
show all
Defined in:
lib/klarna/checkout/merchant_reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

defaults, defaults=, #initialize, #json_sanitize, #to_json

Methods included from HasOne

#has_one

Methods included from HasMany

#has_many

Constructor Details

This class inherits a constructor from Klarna::Checkout::Resource

Instance Attribute Details

#orderid1Object

Returns the value of attribute orderid1.



6
7
8
# File 'lib/klarna/checkout/merchant_reference.rb', line 6

def orderid1
  @orderid1
end

#orderid2Object

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_jsonObject



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