Module: Klarna::Checkout::Operations::Fetch

Includes:
ApiUtilities::ConnectionUtilities
Included in:
Klarna::Checkout::Order
Defined in:
lib/klarna/checkout/operations/fetch.rb

Constant Summary collapse

PATH_CHECKOUT =
'/checkout/v3/orders/'
PATH_CONFIRMED =
'/ordermanagement/v1/orders/'

Constants included from ApiUtilities::ConnectionUtilities

ApiUtilities::ConnectionUtilities::KLARNA_PRODUCTION_URL, ApiUtilities::ConnectionUtilities::KLARNA_SANDBOX_URL

Instance Method Summary collapse

Methods included from ApiUtilities::ConnectionUtilities

#host, #https_connection

Instance Method Details

#fetch_checkout_order(ref) ⇒ Object

To fetch order during checkout stage



12
13
14
# File 'lib/klarna/checkout/operations/fetch.rb', line 12

def fetch_checkout_order(ref)
  fetch_order(PATH_CHECKOUT, ref)
end

#fetch_confirmed_order(ref) ⇒ Object

To fetch order after checkout stage



17
18
19
# File 'lib/klarna/checkout/operations/fetch.rb', line 17

def fetch_confirmed_order(ref)
  fetch_order(PATH_CONFIRMED, ref)
end