Sha256: 6eb651504faa05c522e268ae46e62d72acef6f8c7716843c85e1ef710201b8ec
Contents?: true
Size: 575 Bytes
Versions: 28
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true module ShopifyAPI class Checkout < Base self.primary_key = :token def self.headers super.merge('X-Shopify-Checkout-Version' => '2016-09-06') end def complete post(:complete) end def ready? return false unless persisted? reload [200, 201].include?(ShopifyAPI::Base.connection.response.code.to_i) end def payments Payment.find(:all, params: { checkout_id: id }) end def shipping_rates ShippingRate.find(:all, params: { checkout_id: id }) end end end
Version data entries
28 entries across 28 versions & 2 rubygems