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,
lib/shopify_api/rest/resources/2023_10/assigned_fulfillment_order.rb,
lib/shopify_api/rest/resources/2024_01/assigned_fulfillment_order.rb,
lib/shopify_api/rest/resources/2024_04/assigned_fulfillment_order.rb,
lib/shopify_api/rest/resources/2024_07/assigned_fulfillment_order.rb,
lib/shopify_api/rest/resources/2024_10/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_names ⇒ Object
Instance Method Summary collapse
-
#initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) ⇒ AssignedFulfillmentOrder
constructor
A new instance of AssignedFulfillmentOrder.
Methods inherited from Rest::Base
api_call_limit, base_find, class_name, create_instance, create_instances_from_response, #delete, get_path, get_path_ids, has_many?, has_one?, inherited, json_body_name, #method_missing, next_page?, next_page_info, prev_page?, prev_page_info, primary_key, read_only_attributes, request, #respond_to_missing?, retry_request_after, #save, #save!, #to_hash
Constructor Details
#initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) ⇒ AssignedFulfillmentOrder
Returns a new instance of AssignedFulfillmentOrder.
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 19 def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) @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)) super(session: session, from_hash: from_hash) 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.
40 41 42 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 40 def assigned_location_id @assigned_location_id end |
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
42 43 44 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 42 def destination @destination end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
44 45 46 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 44 def id @id end |
#line_items ⇒ Object (readonly)
Returns the value of attribute line_items.
46 47 48 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 46 def line_items @line_items end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
48 49 50 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 48 def order_id @order_id end |
#request_status ⇒ Object (readonly)
Returns the value of attribute request_status.
50 51 52 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 50 def request_status @request_status end |
#shop_id ⇒ Object (readonly)
Returns the value of attribute shop_id.
52 53 54 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 52 def shop_id @shop_id end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
54 55 56 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 54 def status @status end |
Class Method Details
.all(assignment_status: nil, location_ids: nil, session: ShopifyAPI::Context.active_session, **kwargs) ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 74 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_names ⇒ Object
60 61 62 63 64 |
# File 'lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb', line 60 def json_response_body_names() [ "fulfillment_order" ] end |