Class: ShopifyAPI::AssignedFulfillmentOrder
- Inherits:
-
Rest::Base
- Object
- Rest::Base
- ShopifyAPI::AssignedFulfillmentOrder
- Extended by:
- T::Sig
- Defined in:
- lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb,
lib/shopify_api/rest/resources/2022_07/assigned_fulfillment_order.rb,
lib/shopify_api/rest/resources/2022_10/assigned_fulfillment_order.rb,
lib/shopify_api/rest/resources/2023_01/assigned_fulfillment_order.rb,
lib/shopify_api/rest/resources/2023_04/assigned_fulfillment_order.rb,
lib/shopify_api/rest/resources/2023_07/assigned_fulfillment_order.rb
Instance Attribute Summary collapse
-
#assigned_location_id ⇒ Object
readonly
Returns the value of attribute assigned_location_id.
-
#destination ⇒ Object
readonly
Returns the value of attribute destination.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#line_items ⇒ Object
readonly
Returns the value of attribute line_items.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#request_status ⇒ Object
readonly
Returns the value of attribute request_status.
-
#shop_id ⇒ Object
readonly
Returns the value of attribute shop_id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Attributes inherited from Rest::Base
Class Method Summary collapse
- .all(assignment_status: nil, location_ids: nil, session: ShopifyAPI::Context.active_session, **kwargs) ⇒ Object
- .json_response_body_name ⇒ Object
- .json_response_body_names ⇒ Object
Instance Method Summary collapse
-
#initialize(session: ShopifyAPI::Context.active_session) ⇒ AssignedFulfillmentOrder
constructor
A new instance of AssignedFulfillmentOrder.
Methods inherited from Rest::Base
base_find, class_name, create_instance, create_instances_from_response, #delete, get_path, has_many?, has_one?, json_body_name, #method_missing, next_page?, next_page_info, prev_page?, prev_page_info, primary_key, read_only_attributes, request, #respond_to_missing?, #save, #save!, #to_hash
Constructor Details
#initialize(session: ShopifyAPI::Context.active_session) ⇒ AssignedFulfillmentOrder
Returns a new instance of AssignedFulfillmentOrder.
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 16 def initialize(session: ShopifyAPI::Context.active_session) super(session: session) @assigned_location_id = T.let(nil, T.nilable(Integer)) @destination = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped])) @id = T.let(nil, T.nilable(Integer)) @line_items = 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)) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ShopifyAPI::Rest::Base
Instance Attribute Details
#assigned_location_id ⇒ Object (readonly)
Returns the value of attribute assigned_location_id.
36 37 38 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 36 def assigned_location_id @assigned_location_id end |
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
38 39 40 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 38 def destination @destination end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
40 41 42 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 40 def id @id end |
#line_items ⇒ Object (readonly)
Returns the value of attribute line_items.
42 43 44 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 42 def line_items @line_items end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
44 45 46 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 44 def order_id @order_id end |
#request_status ⇒ Object (readonly)
Returns the value of attribute request_status.
46 47 48 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 46 def request_status @request_status end |
#shop_id ⇒ Object (readonly)
Returns the value of attribute shop_id.
48 49 50 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 48 def shop_id @shop_id end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
50 51 52 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 50 def status @status end |
Class Method Details
.all(assignment_status: nil, location_ids: nil, session: ShopifyAPI::Context.active_session, **kwargs) ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 68 def all( assignment_status: nil, location_ids: nil, session: ShopifyAPI::Context.active_session, **kwargs ) response = base_find( session: session, ids: {}, params: {assignment_status: assignment_status, location_ids: location_ids}.merge(kwargs).compact, ) T.cast(response, T::Array[AssignedFulfillmentOrder]) end |
.json_response_body_name ⇒ Object
56 57 58 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 56 def json_response_body_name() "fulfillment_order" end |
.json_response_body_names ⇒ Object
56 57 58 59 60 |
# File 'lib/shopify_api/rest/resources/2022_10/assigned_fulfillment_order.rb', line 56 def json_response_body_names() [ "fulfillment_order" ] end |