class ShopifyAPI::Checkout
Public Class Methods
headers()
click to toggle source
Calls superclass method
ShopifyAPI::Base::headers
# File lib/shopify_api/resources/checkout.rb, line 7 def self.headers super.merge('X-Shopify-Checkout-Version' => '2016-09-06') end
Public Instance Methods
complete()
click to toggle source
# File lib/shopify_api/resources/checkout.rb, line 11 def complete post(:complete) end
payments()
click to toggle source
# File lib/shopify_api/resources/checkout.rb, line 22 def payments Payment.find(:all, params: { checkout_id: id }) end
ready?()
click to toggle source
# File lib/shopify_api/resources/checkout.rb, line 15 def ready? return false unless persisted? reload [200, 201].include?(ShopifyAPI::Base.connection.response.code.to_i) end
shipping_rates()
click to toggle source
# File lib/shopify_api/resources/checkout.rb, line 26 def shipping_rates ShippingRate.find(:all, params: { checkout_id: id }) end