class ShopifyAPI::FulfillmentOrder
Attributes
Public Class Methods
Source
# File lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb, line 114 def all( order_id: nil, session: ShopifyAPI::Context.active_session, **kwargs ) response = base_find( session: session, ids: {order_id: order_id}, params: {}.merge(kwargs).compact, ) T.cast(response, T::Array[FulfillmentOrder]) end
Source
# File lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb, line 95 def find( id:, session: ShopifyAPI::Context.active_session ) result = base_find( session: session, ids: {id: id}, params: {}, ) T.cast(result[0], T.nilable(FulfillmentOrder)) end
Source
# File lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb, line 19 def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) @assigned_location = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped])) @assigned_location_id = T.let(nil, T.nilable(Integer)) @delivery_method = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped])) @destination = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped])) @fulfill_at = T.let(nil, T.nilable(String)) @fulfill_by = T.let(nil, T.nilable(String)) @fulfillment_holds = T.let(nil, T.nilable(T::Array[T.untyped])) @id = T.let(nil, T.nilable(Integer)) @international_duties = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped])) @line_items = T.let(nil, T.nilable(T::Array[T.untyped])) @merchant_requests = T.let(nil, T.nilable(T::Array[T.untyped])) @order_id = T.let(nil, T.nilable(Integer)) @request_status = T.let(nil, T.nilable(String)) @shop_id = T.let(nil, T.nilable(Integer)) @status = T.let(nil, T.nilable(String)) @supported_actions = T.let(nil, T.nilable(T::Array[T.untyped])) super(session: session, from_hash: from_hash) end
Calls superclass method
ShopifyAPI::Rest::Base::new
Public Instance Methods
Source
# File lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb, line 136 def cancel( body: nil, **kwargs ) self.class.request( http_method: :post, operation: :cancel, session: @session, ids: {id: @id}, params: {}.merge(kwargs).compact, body: body, entity: self, ) end
Source
# File lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb, line 158 def close( message: nil, body: nil, **kwargs ) self.class.request( http_method: :post, operation: :close, session: @session, ids: {id: @id}, params: {message: message}.merge(kwargs).compact, body: body, entity: self, ) end
Source
# File lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb, line 181 def hold( fulfillment_hold: nil, body: nil, **kwargs ) self.class.request( http_method: :post, operation: :hold, session: @session, ids: {id: @id}, params: {fulfillment_hold: fulfillment_hold}.merge(kwargs).compact, body: body, entity: self, ) end
Source
# File lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb, line 204 def move( fulfillment_order: nil, body: nil, **kwargs ) self.class.request( http_method: :post, operation: :move, session: @session, ids: {id: @id}, params: {fulfillment_order: fulfillment_order}.merge(kwargs).compact, body: body, entity: self, ) end
Source
# File lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb, line 226 def open( body: nil, **kwargs ) self.class.request( http_method: :post, operation: :open, session: @session, ids: {id: @id}, params: {}.merge(kwargs).compact, body: body, entity: self, ) end
Source
# File lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb, line 247 def release_hold( body: nil, **kwargs ) self.class.request( http_method: :post, operation: :release_hold, session: @session, ids: {id: @id}, params: {}.merge(kwargs).compact, body: body, entity: self, ) end
Source
# File lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb, line 268 def reschedule( body: nil, **kwargs ) self.class.request( http_method: :post, operation: :reschedule, session: @session, ids: {id: @id}, params: {}.merge(kwargs).compact, body: body, entity: self, ) end
Source
# File lib/shopify_api/rest/resources/2022_07/fulfillment_order.rb, line 292 def set_fulfillment_orders_deadline( fulfillment_order_ids: nil, fulfillment_deadline: nil, body: nil, **kwargs ) self.class.request( http_method: :post, operation: :set_fulfillment_orders_deadline, session: @session, ids: {}, params: {fulfillment_order_ids: fulfillment_order_ids, fulfillment_deadline: fulfillment_deadline}.merge(kwargs).compact, body: body, entity: self, ) end