class ShopifyAPI::FulfillmentV2
Public Class Methods
new(attributes = {}, persisted = false)
click to toggle source
Calls superclass method
# File lib/shopify_api/resources/fulfillment_v2.rb, line 6 def initialize(attributes = {}, persisted = false) ShopifyAPI::Base.version_validation!(FulfillmentOrder::MINIMUM_VERSION) super(attributes, persisted) end
Public Instance Methods
update_tracking(tracking_info:, notify_customer:)
click to toggle source
# File lib/shopify_api/resources/fulfillment_v2.rb, line 11 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