Sha256: db7e7cba3b561e26358adb3e6bfc9c6499a7d4d758bf45640cf3d941be8a0d94

Contents?: true

Size: 556 Bytes

Versions: 7

Compression:

Stored size: 556 Bytes

Contents

module ShopifyAPI
  class FulfillmentV2 < Base
    self.element_name = 'fulfillment'

    def initialize(attributes = {}, persisted = false)
      ShopifyAPI::Base.version_validation!(FulfillmentOrder::MINIMUM_VERSION)
      super(attributes, persisted)
    end

    def update_tracking(tracking_info:, notify_customer:)
      body = {
        fulfillment: {
          tracking_info: tracking_info,
          notify_customer: notify_customer
        }
      }
      load_attributes_from_response(post(:update_tracking, {}, body.to_json))
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shopify_api-9.2.0 lib/shopify_api/resources/fulfillment_v2.rb
shopify_api-9.1.0 lib/shopify_api/resources/fulfillment_v2.rb
shopify_api-9.0.4 lib/shopify_api/resources/fulfillment_v2.rb
shopify_api-9.0.3 lib/shopify_api/resources/fulfillment_v2.rb
shopify_api-9.0.2 lib/shopify_api/resources/fulfillment_v2.rb
shopify_api-9.0.1 lib/shopify_api/resources/fulfillment_v2.rb
shopify_api-9.0.0 lib/shopify_api/resources/fulfillment_v2.rb