shopify_api 12.3.0 → 12.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/BUG_REPORT.md +40 -0
- data/.github/ISSUE_TEMPLATE/ENHANCEMENT.md +9 -0
- data/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +9 -0
- data/.github/api_update_reminder.md +25 -0
- data/.github/api_update_reminder_on_release.md +19 -0
- data/.github/workflows/api_update_reminder.yml +16 -0
- data/.github/workflows/api_update_reminder_on_release.yml +16 -0
- data/.github/workflows/build.yml +0 -3
- data/.github/workflows/stale.yml +21 -10
- data/CHANGELOG.md +19 -5
- data/CONTRIBUTING.md +2 -2
- data/Gemfile.lock +13 -13
- data/README.md +10 -10
- data/docs/getting_started.md +2 -2
- data/docs/usage/graphql.md +6 -0
- data/docs/usage/graphql_storefront.md +8 -2
- data/docs/usage/oauth.md +1 -1
- data/docs/usage/rest.md +9 -2
- data/docs/usage/webhooks.md +1 -1
- data/lib/shopify_api/admin_versions.rb +3 -1
- data/lib/shopify_api/clients/graphql/admin.rb +3 -3
- data/lib/shopify_api/clients/graphql/client.rb +13 -3
- data/lib/shopify_api/clients/graphql/storefront.rb +3 -3
- data/lib/shopify_api/clients/http_client.rb +8 -1
- data/lib/shopify_api/clients/rest/admin.rb +14 -3
- data/lib/shopify_api/rest/base.rb +14 -5
- data/lib/shopify_api/rest/resources/2022_07/application_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/2022_07/application_credit.rb +6 -1
- data/lib/shopify_api/rest/resources/2022_07/assigned_fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/2022_07/customer.rb +9 -1
- data/lib/shopify_api/rest/resources/2022_07/fulfillment.rb +5 -1
- data/lib/shopify_api/rest/resources/2022_07/fulfillment_order.rb +3 -3
- data/lib/shopify_api/rest/resources/2022_07/gift_card.rb +4 -4
- data/lib/shopify_api/rest/resources/2022_07/metafield.rb +7 -5
- data/lib/shopify_api/rest/resources/2022_07/order.rb +2 -2
- data/lib/shopify_api/rest/resources/2022_07/recurring_application_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/2022_07/shipping_zone.rb +6 -6
- data/lib/shopify_api/rest/resources/2022_07/usage_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/2022_10/application_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/2022_10/application_credit.rb +6 -1
- data/lib/shopify_api/rest/resources/2022_10/assigned_fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/2022_10/customer.rb +9 -1
- data/lib/shopify_api/rest/resources/2022_10/fulfillment.rb +5 -1
- data/lib/shopify_api/rest/resources/2022_10/fulfillment_order.rb +3 -3
- data/lib/shopify_api/rest/resources/2022_10/gift_card.rb +4 -4
- data/lib/shopify_api/rest/resources/2022_10/metafield.rb +7 -5
- data/lib/shopify_api/rest/resources/2022_10/order.rb +2 -2
- data/lib/shopify_api/rest/resources/2022_10/recurring_application_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/2022_10/shipping_zone.rb +6 -6
- data/lib/shopify_api/rest/resources/2022_10/usage_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/application_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/application_credit.rb +6 -1
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/assigned_fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/carrier_service.rb +0 -3
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_01}/customer.rb +9 -1
- data/lib/shopify_api/rest/resources/2023_01/dispute_evidence.rb +117 -0
- data/lib/shopify_api/rest/resources/{2022_04/android_pay_key.rb → 2023_01/dispute_file_upload.rb} +29 -25
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_01}/fulfillment.rb +7 -50
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_01}/fulfillment_order.rb +36 -4
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/fulfillment_service.rb +3 -3
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_01}/gift_card.rb +4 -4
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_01}/metafield.rb +7 -5
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_01}/order.rb +8 -2
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_01}/recurring_application_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/shipping_zone.rb +6 -6
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/shop.rb +3 -0
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/usage_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/application_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/application_credit.rb +6 -1
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/assigned_fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/carrier_service.rb +0 -3
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/customer.rb +12 -1
- data/lib/shopify_api/rest/resources/2023_04/dispute_evidence.rb +117 -0
- data/lib/shopify_api/rest/resources/{2022_01/android_pay_key.rb → 2023_04/dispute_file_upload.rb} +29 -25
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/fulfillment.rb +7 -50
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/fulfillment_order.rb +42 -11
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/fulfillment_service.rb +3 -3
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/gift_card.rb +4 -4
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/metafield.rb +8 -13
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/order.rb +14 -2
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/price_rule.rb +3 -3
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/recurring_application_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/shipping_zone.rb +6 -6
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/shop.rb +3 -0
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/transaction.rb +3 -0
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/usage_charge.rb +6 -1
- data/lib/shopify_api/version.rb +1 -1
- data/shopify_api.gemspec +1 -1
- metadata +161 -153
- data/.github/ISSUE_TEMPLATE.md +0 -35
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/abandoned_checkout.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/access_scope.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/apple_pay_certificate.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/article.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/asset.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/balance.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/blog.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/cancellation_request.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/checkout.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/collect.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/collection.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/collection_listing.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/comment.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/country.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/currency.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/custom_collection.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/customer_address.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/customer_saved_search.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/deprecated_api_call.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/discount_code.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/dispute.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/draft_order.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/event.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/fulfillment_event.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/fulfillment_request.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/gift_card_adjustment.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/image.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/inventory_item.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/inventory_level.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/location.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/locations_for_move.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/marketing_event.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/mobile_platform_application.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/order_risk.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/page.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/payment.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/payment_gateway.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/payment_transaction.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/payout.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/policy.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_01}/price_rule.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/product.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/product_listing.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/product_resource_feedback.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/province.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/redirect.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/refund.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/report.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/resource_feedback.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/script_tag.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/smart_collection.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/storefront_access_token.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/tender_transaction.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/theme.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/transaction.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/user.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/variant.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_01}/webhook.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/abandoned_checkout.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/access_scope.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/apple_pay_certificate.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/article.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/asset.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/balance.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/blog.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/cancellation_request.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/checkout.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/collect.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/collection.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/collection_listing.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/comment.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/country.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/currency.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/custom_collection.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/customer_address.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/customer_saved_search.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/deprecated_api_call.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/discount_code.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/dispute.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/draft_order.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/event.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/fulfillment_event.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/fulfillment_request.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/gift_card_adjustment.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/image.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/inventory_item.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/inventory_level.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/location.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/locations_for_move.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/marketing_event.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/mobile_platform_application.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/order_risk.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/page.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/payment.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/payment_gateway.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/payment_transaction.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/payout.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/policy.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/product.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/product_listing.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/product_resource_feedback.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/province.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/redirect.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/refund.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/report.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/resource_feedback.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/script_tag.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/smart_collection.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/storefront_access_token.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/tender_transaction.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/theme.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/user.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/variant.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/webhook.rb +0 -0
data/lib/shopify_api/rest/resources/{2022_01/android_pay_key.rb → 2023_04/dispute_file_upload.rb}
RENAMED
@@ -6,7 +6,7 @@
|
|
6
6
|
########################################################################################################################
|
7
7
|
|
8
8
|
module ShopifyAPI
|
9
|
-
class
|
9
|
+
class DisputeFileUpload < ShopifyAPI::Rest::Base
|
10
10
|
extend T::Sig
|
11
11
|
|
12
12
|
@prev_page_info = T.let(Concurrent::ThreadLocalVar.new { nil }, Concurrent::ThreadLocalVar)
|
@@ -16,57 +16,61 @@ module ShopifyAPI
|
|
16
16
|
def initialize(session: ShopifyAPI::Context.active_session)
|
17
17
|
super(session: session)
|
18
18
|
|
19
|
+
@dispute_evidence_id = T.let(nil, T.nilable(Integer))
|
20
|
+
@dispute_evidence_type = T.let(nil, T.nilable(String))
|
21
|
+
@file_size = T.let(nil, T.nilable(Integer))
|
22
|
+
@file_type = T.let(nil, T.nilable(String))
|
23
|
+
@filename = T.let(nil, T.nilable(String))
|
19
24
|
@id = T.let(nil, T.nilable(Integer))
|
20
|
-
@
|
25
|
+
@original_filename = T.let(nil, T.nilable(String))
|
26
|
+
@shop_id = T.let(nil, T.nilable(Integer))
|
27
|
+
@url = T.let(nil, T.nilable(String))
|
21
28
|
end
|
22
29
|
|
23
30
|
@has_one = T.let({}, T::Hash[Symbol, Class])
|
24
31
|
@has_many = T.let({}, T::Hash[Symbol, Class])
|
25
32
|
@paths = T.let([
|
26
|
-
{http_method: :delete, operation: :delete, ids: [:id], path: "
|
27
|
-
{http_method: :
|
28
|
-
{http_method: :post, operation: :post, ids: [], path: "android_pay_keys.json"}
|
33
|
+
{http_method: :delete, operation: :delete, ids: [:dispute_id, :id], path: "shopify_payments/disputes/<dispute_id>/dispute_file_uploads/<id>.json"},
|
34
|
+
{http_method: :post, operation: :post, ids: [:dispute_id], path: "shopify_payments/disputes/<dispute_id>/dispute_file_uploads.json"}
|
29
35
|
], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
|
30
36
|
|
37
|
+
sig { returns(T.nilable(Integer)) }
|
38
|
+
attr_reader :dispute_evidence_id
|
39
|
+
sig { returns(T.nilable(String)) }
|
40
|
+
attr_reader :dispute_evidence_type
|
41
|
+
sig { returns(T.nilable(Integer)) }
|
42
|
+
attr_reader :file_size
|
43
|
+
sig { returns(T.nilable(String)) }
|
44
|
+
attr_reader :file_type
|
45
|
+
sig { returns(T.nilable(String)) }
|
46
|
+
attr_reader :filename
|
31
47
|
sig { returns(T.nilable(Integer)) }
|
32
48
|
attr_reader :id
|
33
49
|
sig { returns(T.nilable(String)) }
|
34
|
-
attr_reader :
|
50
|
+
attr_reader :original_filename
|
51
|
+
sig { returns(T.nilable(Integer)) }
|
52
|
+
attr_reader :shop_id
|
53
|
+
sig { returns(T.nilable(String)) }
|
54
|
+
attr_reader :url
|
35
55
|
|
36
56
|
class << self
|
37
57
|
sig do
|
38
58
|
params(
|
39
59
|
id: T.any(Integer, String),
|
40
|
-
|
41
|
-
).returns(T.nilable(AndroidPayKey))
|
42
|
-
end
|
43
|
-
def find(
|
44
|
-
id:,
|
45
|
-
session: ShopifyAPI::Context.active_session
|
46
|
-
)
|
47
|
-
result = base_find(
|
48
|
-
session: session,
|
49
|
-
ids: {id: id},
|
50
|
-
params: {},
|
51
|
-
)
|
52
|
-
T.cast(result[0], T.nilable(AndroidPayKey))
|
53
|
-
end
|
54
|
-
|
55
|
-
sig do
|
56
|
-
params(
|
57
|
-
id: T.any(Integer, String),
|
60
|
+
dispute_id: T.nilable(T.any(Integer, String)),
|
58
61
|
session: Auth::Session
|
59
62
|
).returns(T.untyped)
|
60
63
|
end
|
61
64
|
def delete(
|
62
65
|
id:,
|
66
|
+
dispute_id: nil,
|
63
67
|
session: ShopifyAPI::Context.active_session
|
64
68
|
)
|
65
69
|
request(
|
66
70
|
http_method: :delete,
|
67
71
|
operation: :delete,
|
68
72
|
session: session,
|
69
|
-
ids: {id: id},
|
73
|
+
ids: {id: id, dispute_id: dispute_id},
|
70
74
|
params: {},
|
71
75
|
)
|
72
76
|
end
|
@@ -43,13 +43,8 @@ module ShopifyAPI
|
|
43
43
|
{http_method: :get, operation: :get, ids: [:order_id], path: "orders/<order_id>/fulfillments.json"},
|
44
44
|
{http_method: :get, operation: :get, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>.json"},
|
45
45
|
{http_method: :post, operation: :cancel, ids: [:id], path: "fulfillments/<id>/cancel.json"},
|
46
|
-
{http_method: :post, operation: :cancel, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>/cancel.json"},
|
47
|
-
{http_method: :post, operation: :complete, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>/complete.json"},
|
48
|
-
{http_method: :post, operation: :open, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>/open.json"},
|
49
46
|
{http_method: :post, operation: :post, ids: [], path: "fulfillments.json"},
|
50
|
-
{http_method: :post, operation: :
|
51
|
-
{http_method: :post, operation: :update_tracking, ids: [:id], path: "fulfillments/<id>/update_tracking.json"},
|
52
|
-
{http_method: :put, operation: :put, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>.json"}
|
47
|
+
{http_method: :post, operation: :update_tracking, ids: [:id], path: "fulfillments/<id>/update_tracking.json"}
|
53
48
|
], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
|
54
49
|
|
55
50
|
sig { returns(T.nilable(String)) }
|
@@ -194,49 +189,7 @@ module ShopifyAPI
|
|
194
189
|
http_method: :post,
|
195
190
|
operation: :cancel,
|
196
191
|
session: @session,
|
197
|
-
ids: {id: @id
|
198
|
-
params: {}.merge(kwargs).compact,
|
199
|
-
body: body,
|
200
|
-
entity: self,
|
201
|
-
)
|
202
|
-
end
|
203
|
-
|
204
|
-
sig do
|
205
|
-
params(
|
206
|
-
body: T.untyped,
|
207
|
-
kwargs: T.untyped
|
208
|
-
).returns(T.untyped)
|
209
|
-
end
|
210
|
-
def complete(
|
211
|
-
body: nil,
|
212
|
-
**kwargs
|
213
|
-
)
|
214
|
-
self.class.request(
|
215
|
-
http_method: :post,
|
216
|
-
operation: :complete,
|
217
|
-
session: @session,
|
218
|
-
ids: {id: @id, order_id: @order_id},
|
219
|
-
params: {}.merge(kwargs).compact,
|
220
|
-
body: body,
|
221
|
-
entity: self,
|
222
|
-
)
|
223
|
-
end
|
224
|
-
|
225
|
-
sig do
|
226
|
-
params(
|
227
|
-
body: T.untyped,
|
228
|
-
kwargs: T.untyped
|
229
|
-
).returns(T.untyped)
|
230
|
-
end
|
231
|
-
def open(
|
232
|
-
body: nil,
|
233
|
-
**kwargs
|
234
|
-
)
|
235
|
-
self.class.request(
|
236
|
-
http_method: :post,
|
237
|
-
operation: :open,
|
238
|
-
session: @session,
|
239
|
-
ids: {id: @id, order_id: @order_id},
|
192
|
+
ids: {id: @id},
|
240
193
|
params: {}.merge(kwargs).compact,
|
241
194
|
body: body,
|
242
195
|
entity: self,
|
@@ -245,11 +198,15 @@ module ShopifyAPI
|
|
245
198
|
|
246
199
|
sig do
|
247
200
|
params(
|
201
|
+
notify_customer: T.untyped,
|
202
|
+
tracking_info: T.untyped,
|
248
203
|
body: T.untyped,
|
249
204
|
kwargs: T.untyped
|
250
205
|
).returns(T.untyped)
|
251
206
|
end
|
252
207
|
def update_tracking(
|
208
|
+
notify_customer: nil,
|
209
|
+
tracking_info: nil,
|
253
210
|
body: nil,
|
254
211
|
**kwargs
|
255
212
|
)
|
@@ -258,7 +215,7 @@ module ShopifyAPI
|
|
258
215
|
operation: :update_tracking,
|
259
216
|
session: @session,
|
260
217
|
ids: {id: @id},
|
261
|
-
params: {}.merge(kwargs).compact,
|
218
|
+
params: {notify_customer: notify_customer, tracking_info: tracking_info}.merge(kwargs).compact,
|
262
219
|
body: body,
|
263
220
|
entity: self,
|
264
221
|
)
|
@@ -18,9 +18,11 @@ module ShopifyAPI
|
|
18
18
|
|
19
19
|
@assigned_location = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
20
20
|
@assigned_location_id = T.let(nil, T.nilable(Integer))
|
21
|
+
@created_at = T.let(nil, T.nilable(String))
|
21
22
|
@delivery_method = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
22
23
|
@destination = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
23
24
|
@fulfill_at = T.let(nil, T.nilable(String))
|
25
|
+
@fulfill_by = T.let(nil, T.nilable(String))
|
24
26
|
@fulfillment_holds = T.let(nil, T.nilable(T::Array[T.untyped]))
|
25
27
|
@id = T.let(nil, T.nilable(Integer))
|
26
28
|
@international_duties = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
@@ -31,6 +33,7 @@ module ShopifyAPI
|
|
31
33
|
@shop_id = T.let(nil, T.nilable(Integer))
|
32
34
|
@status = T.let(nil, T.nilable(String))
|
33
35
|
@supported_actions = T.let(nil, T.nilable(T::Array[T.untyped]))
|
36
|
+
@updated_at = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
34
37
|
end
|
35
38
|
|
36
39
|
@has_one = T.let({}, T::Hash[Symbol, Class])
|
@@ -44,19 +47,24 @@ module ShopifyAPI
|
|
44
47
|
{http_method: :post, operation: :move, ids: [:id], path: "fulfillment_orders/<id>/move.json"},
|
45
48
|
{http_method: :post, operation: :open, ids: [:id], path: "fulfillment_orders/<id>/open.json"},
|
46
49
|
{http_method: :post, operation: :release_hold, ids: [:id], path: "fulfillment_orders/<id>/release_hold.json"},
|
47
|
-
{http_method: :post, operation: :reschedule, ids: [:id], path: "fulfillment_orders/<id>/reschedule.json"}
|
50
|
+
{http_method: :post, operation: :reschedule, ids: [:id], path: "fulfillment_orders/<id>/reschedule.json"},
|
51
|
+
{http_method: :post, operation: :set_fulfillment_orders_deadline, ids: [], path: "fulfillment_orders/set_fulfillment_orders_deadline.json"}
|
48
52
|
], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
|
49
53
|
|
50
54
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
51
55
|
attr_reader :assigned_location
|
52
56
|
sig { returns(T.nilable(Integer)) }
|
53
57
|
attr_reader :assigned_location_id
|
58
|
+
sig { returns(T.nilable(String)) }
|
59
|
+
attr_reader :created_at
|
54
60
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
55
61
|
attr_reader :delivery_method
|
56
62
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
57
63
|
attr_reader :destination
|
58
64
|
sig { returns(T.nilable(String)) }
|
59
65
|
attr_reader :fulfill_at
|
66
|
+
sig { returns(T.nilable(String)) }
|
67
|
+
attr_reader :fulfill_by
|
60
68
|
sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
|
61
69
|
attr_reader :fulfillment_holds
|
62
70
|
sig { returns(T.nilable(Integer)) }
|
@@ -77,6 +85,8 @@ module ShopifyAPI
|
|
77
85
|
attr_reader :status
|
78
86
|
sig { returns(T.nilable(T::Array[String])) }
|
79
87
|
attr_reader :supported_actions
|
88
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
89
|
+
attr_reader :updated_at
|
80
90
|
|
81
91
|
class << self
|
82
92
|
sig do
|
@@ -166,17 +176,13 @@ module ShopifyAPI
|
|
166
176
|
|
167
177
|
sig do
|
168
178
|
params(
|
169
|
-
|
170
|
-
reason_notes: T.untyped,
|
171
|
-
notify_merchant: T.untyped,
|
179
|
+
fulfillment_hold: T.untyped,
|
172
180
|
body: T.untyped,
|
173
181
|
kwargs: T.untyped
|
174
182
|
).returns(T.untyped)
|
175
183
|
end
|
176
184
|
def hold(
|
177
|
-
|
178
|
-
reason_notes: nil,
|
179
|
-
notify_merchant: nil,
|
185
|
+
fulfillment_hold: nil,
|
180
186
|
body: nil,
|
181
187
|
**kwargs
|
182
188
|
)
|
@@ -185,7 +191,7 @@ module ShopifyAPI
|
|
185
191
|
operation: :hold,
|
186
192
|
session: @session,
|
187
193
|
ids: {id: @id},
|
188
|
-
params: {
|
194
|
+
params: {fulfillment_hold: fulfillment_hold}.merge(kwargs).compact,
|
189
195
|
body: body,
|
190
196
|
entity: self,
|
191
197
|
)
|
@@ -193,13 +199,13 @@ module ShopifyAPI
|
|
193
199
|
|
194
200
|
sig do
|
195
201
|
params(
|
196
|
-
|
202
|
+
fulfillment_order: T.untyped,
|
197
203
|
body: T.untyped,
|
198
204
|
kwargs: T.untyped
|
199
205
|
).returns(T.untyped)
|
200
206
|
end
|
201
207
|
def move(
|
202
|
-
|
208
|
+
fulfillment_order: nil,
|
203
209
|
body: nil,
|
204
210
|
**kwargs
|
205
211
|
)
|
@@ -208,7 +214,7 @@ module ShopifyAPI
|
|
208
214
|
operation: :move,
|
209
215
|
session: @session,
|
210
216
|
ids: {id: @id},
|
211
|
-
params: {
|
217
|
+
params: {fulfillment_order: fulfillment_order}.merge(kwargs).compact,
|
212
218
|
body: body,
|
213
219
|
entity: self,
|
214
220
|
)
|
@@ -277,5 +283,30 @@ module ShopifyAPI
|
|
277
283
|
)
|
278
284
|
end
|
279
285
|
|
286
|
+
sig do
|
287
|
+
params(
|
288
|
+
fulfillment_order_ids: T.untyped,
|
289
|
+
fulfillment_deadline: T.untyped,
|
290
|
+
body: T.untyped,
|
291
|
+
kwargs: T.untyped
|
292
|
+
).returns(T.untyped)
|
293
|
+
end
|
294
|
+
def set_fulfillment_orders_deadline(
|
295
|
+
fulfillment_order_ids: nil,
|
296
|
+
fulfillment_deadline: nil,
|
297
|
+
body: nil,
|
298
|
+
**kwargs
|
299
|
+
)
|
300
|
+
self.class.request(
|
301
|
+
http_method: :post,
|
302
|
+
operation: :set_fulfillment_orders_deadline,
|
303
|
+
session: @session,
|
304
|
+
ids: {},
|
305
|
+
params: {fulfillment_order_ids: fulfillment_order_ids, fulfillment_deadline: fulfillment_deadline}.merge(kwargs).compact,
|
306
|
+
body: body,
|
307
|
+
entity: self,
|
308
|
+
)
|
309
|
+
end
|
310
|
+
|
280
311
|
end
|
281
312
|
end
|
@@ -18,13 +18,13 @@ module ShopifyAPI
|
|
18
18
|
|
19
19
|
@admin_graphql_api_id = T.let(nil, T.nilable(String))
|
20
20
|
@callback_url = T.let(nil, T.nilable(String))
|
21
|
-
@format = T.let(nil, T.nilable(String))
|
22
21
|
@fulfillment_orders_opt_in = T.let(nil, T.nilable(T::Boolean))
|
23
22
|
@handle = T.let(nil, T.nilable(String))
|
24
23
|
@id = T.let(nil, T.nilable(Integer))
|
25
24
|
@inventory_management = T.let(nil, T.nilable(T::Boolean))
|
26
25
|
@location_id = T.let(nil, T.nilable(Integer))
|
27
26
|
@name = T.let(nil, T.nilable(String))
|
27
|
+
@permits_sku_sharing = T.let(nil, T.nilable(T::Boolean))
|
28
28
|
@provider_id = T.let(nil, T.nilable(String))
|
29
29
|
@requires_shipping_method = T.let(nil, T.nilable(T::Boolean))
|
30
30
|
@tracking_support = T.let(nil, T.nilable(T::Boolean))
|
@@ -44,8 +44,6 @@ module ShopifyAPI
|
|
44
44
|
attr_reader :admin_graphql_api_id
|
45
45
|
sig { returns(T.nilable(String)) }
|
46
46
|
attr_reader :callback_url
|
47
|
-
sig { returns(T.nilable(String)) }
|
48
|
-
attr_reader :format
|
49
47
|
sig { returns(T.nilable(T::Boolean)) }
|
50
48
|
attr_reader :fulfillment_orders_opt_in
|
51
49
|
sig { returns(T.nilable(String)) }
|
@@ -58,6 +56,8 @@ module ShopifyAPI
|
|
58
56
|
attr_reader :location_id
|
59
57
|
sig { returns(T.nilable(String)) }
|
60
58
|
attr_reader :name
|
59
|
+
sig { returns(T.nilable(T::Boolean)) }
|
60
|
+
attr_reader :permits_sku_sharing
|
61
61
|
sig { returns(T.nilable(String)) }
|
62
62
|
attr_reader :provider_id
|
63
63
|
sig { returns(T.nilable(T::Boolean)) }
|
@@ -17,7 +17,7 @@ module ShopifyAPI
|
|
17
17
|
super(session: session)
|
18
18
|
|
19
19
|
@api_client_id = T.let(nil, T.nilable(Integer))
|
20
|
-
@balance = T.let(nil, T.nilable(
|
20
|
+
@balance = T.let(nil, T.nilable(String))
|
21
21
|
@code = T.let(nil, T.nilable(String))
|
22
22
|
@created_at = T.let(nil, T.nilable(String))
|
23
23
|
@currency = T.let(nil, T.nilable(String))
|
@@ -25,7 +25,7 @@ module ShopifyAPI
|
|
25
25
|
@disabled_at = T.let(nil, T.nilable(String))
|
26
26
|
@expires_on = T.let(nil, T.nilable(String))
|
27
27
|
@id = T.let(nil, T.nilable(Integer))
|
28
|
-
@initial_value = T.let(nil, T.nilable(
|
28
|
+
@initial_value = T.let(nil, T.nilable(String))
|
29
29
|
@last_characters = T.let(nil, T.nilable(String))
|
30
30
|
@line_item_id = T.let(nil, T.nilable(Integer))
|
31
31
|
@note = T.let(nil, T.nilable(String))
|
@@ -49,7 +49,7 @@ module ShopifyAPI
|
|
49
49
|
|
50
50
|
sig { returns(T.nilable(Integer)) }
|
51
51
|
attr_reader :api_client_id
|
52
|
-
sig { returns(T.nilable(
|
52
|
+
sig { returns(T.nilable(String)) }
|
53
53
|
attr_reader :balance
|
54
54
|
sig { returns(T.nilable(String)) }
|
55
55
|
attr_reader :code
|
@@ -65,7 +65,7 @@ module ShopifyAPI
|
|
65
65
|
attr_reader :expires_on
|
66
66
|
sig { returns(T.nilable(Integer)) }
|
67
67
|
attr_reader :id
|
68
|
-
sig { returns(T.nilable(
|
68
|
+
sig { returns(T.nilable(String)) }
|
69
69
|
attr_reader :initial_value
|
70
70
|
sig { returns(T.nilable(String)) }
|
71
71
|
attr_reader :last_characters
|
@@ -18,7 +18,7 @@ module ShopifyAPI
|
|
18
18
|
|
19
19
|
@key = T.let(nil, T.nilable(String))
|
20
20
|
@namespace = T.let(nil, T.nilable(String))
|
21
|
-
@value = T.let(nil, T.nilable(T.any(String, Integer, Float)))
|
21
|
+
@value = T.let(nil, T.nilable(T.any(String, Integer, Float, T::Boolean, String)))
|
22
22
|
@article_id = T.let(nil, T.nilable(Integer))
|
23
23
|
@blog_id = T.let(nil, T.nilable(Integer))
|
24
24
|
@collection_id = T.let(nil, T.nilable(Integer))
|
@@ -35,7 +35,6 @@ module ShopifyAPI
|
|
35
35
|
@product_image_id = T.let(nil, T.nilable(Integer))
|
36
36
|
@type = T.let(nil, T.nilable(String))
|
37
37
|
@updated_at = T.let(nil, T.nilable(String))
|
38
|
-
@value_type = T.let(nil, T.nilable(String))
|
39
38
|
@variant_id = T.let(nil, T.nilable(Integer))
|
40
39
|
end
|
41
40
|
|
@@ -44,6 +43,7 @@ module ShopifyAPI
|
|
44
43
|
@paths = T.let([
|
45
44
|
{http_method: :delete, operation: :delete, ids: [:article_id, :id], path: "articles/<article_id>/metafields/<id>.json"},
|
46
45
|
{http_method: :delete, operation: :delete, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
46
|
+
{http_method: :delete, operation: :delete, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
47
47
|
{http_method: :delete, operation: :delete, ids: [:collection_id, :id], path: "collections/<collection_id>/metafields/<id>.json"},
|
48
48
|
{http_method: :delete, operation: :delete, ids: [:customer_id, :id], path: "customers/<customer_id>/metafields/<id>.json"},
|
49
49
|
{http_method: :delete, operation: :delete, ids: [:draft_order_id, :id], path: "draft_orders/<draft_order_id>/metafields/<id>.json"},
|
@@ -51,31 +51,31 @@ module ShopifyAPI
|
|
51
51
|
{http_method: :delete, operation: :delete, ids: [:order_id, :id], path: "orders/<order_id>/metafields/<id>.json"},
|
52
52
|
{http_method: :delete, operation: :delete, ids: [:page_id, :id], path: "pages/<page_id>/metafields/<id>.json"},
|
53
53
|
{http_method: :delete, operation: :delete, ids: [:product_image_id, :id], path: "product_images/<product_image_id>/metafields/<id>.json"},
|
54
|
-
{http_method: :delete, operation: :delete, ids: [:product_image_id, :id], path: "product_images/<product_image_id>/metafields/<id>.json"},
|
55
54
|
{http_method: :delete, operation: :delete, ids: [:product_id, :id], path: "products/<product_id>/metafields/<id>.json"},
|
56
55
|
{http_method: :delete, operation: :delete, ids: [:variant_id, :id], path: "variants/<variant_id>/metafields/<id>.json"},
|
57
56
|
{http_method: :get, operation: :count, ids: [:article_id], path: "articles/<article_id>/metafields/count.json"},
|
58
57
|
{http_method: :get, operation: :count, ids: [:blog_id], path: "blogs/<blog_id>/metafields/count.json"},
|
58
|
+
{http_method: :get, operation: :count, ids: [:blog_id], path: "blogs/<blog_id>/metafields/count.json"},
|
59
59
|
{http_method: :get, operation: :count, ids: [:collection_id], path: "collections/<collection_id>/metafields/count.json"},
|
60
60
|
{http_method: :get, operation: :count, ids: [:customer_id], path: "customers/<customer_id>/metafields/count.json"},
|
61
61
|
{http_method: :get, operation: :count, ids: [:draft_order_id], path: "draft_orders/<draft_order_id>/metafields/count.json"},
|
62
62
|
{http_method: :get, operation: :count, ids: [], path: "metafields/count.json"},
|
63
63
|
{http_method: :get, operation: :count, ids: [:order_id], path: "orders/<order_id>/metafields/count.json"},
|
64
64
|
{http_method: :get, operation: :count, ids: [:page_id], path: "pages/<page_id>/metafields/count.json"},
|
65
|
-
{http_method: :get, operation: :count, ids: [:page_id], path: "pages/<page_id>/metafields/count.json"},
|
66
65
|
{http_method: :get, operation: :count, ids: [:product_image_id], path: "product_images/<product_image_id>/metafields/count.json"},
|
67
66
|
{http_method: :get, operation: :count, ids: [:product_id], path: "products/<product_id>/metafields/count.json"},
|
68
67
|
{http_method: :get, operation: :count, ids: [:variant_id], path: "variants/<variant_id>/metafields/count.json"},
|
69
68
|
{http_method: :get, operation: :get, ids: [:article_id], path: "articles/<article_id>/metafields.json"},
|
70
69
|
{http_method: :get, operation: :get, ids: [:article_id, :id], path: "articles/<article_id>/metafields/<id>.json"},
|
71
70
|
{http_method: :get, operation: :get, ids: [:blog_id], path: "blogs/<blog_id>/metafields.json"},
|
71
|
+
{http_method: :get, operation: :get, ids: [:blog_id], path: "blogs/<blog_id>/metafields.json"},
|
72
|
+
{http_method: :get, operation: :get, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
72
73
|
{http_method: :get, operation: :get, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
73
74
|
{http_method: :get, operation: :get, ids: [:collection_id], path: "collections/<collection_id>/metafields.json"},
|
74
75
|
{http_method: :get, operation: :get, ids: [:collection_id, :id], path: "collections/<collection_id>/metafields/<id>.json"},
|
75
76
|
{http_method: :get, operation: :get, ids: [:customer_id], path: "customers/<customer_id>/metafields.json"},
|
76
77
|
{http_method: :get, operation: :get, ids: [:customer_id, :id], path: "customers/<customer_id>/metafields/<id>.json"},
|
77
78
|
{http_method: :get, operation: :get, ids: [:draft_order_id], path: "draft_orders/<draft_order_id>/metafields.json"},
|
78
|
-
{http_method: :get, operation: :get, ids: [:draft_order_id], path: "draft_orders/<draft_order_id>/metafields.json"},
|
79
79
|
{http_method: :get, operation: :get, ids: [:draft_order_id, :id], path: "draft_orders/<draft_order_id>/metafields/<id>.json"},
|
80
80
|
{http_method: :get, operation: :get, ids: [], path: "metafields.json"},
|
81
81
|
{http_method: :get, operation: :get, ids: [:id], path: "metafields/<id>.json"},
|
@@ -85,19 +85,18 @@ module ShopifyAPI
|
|
85
85
|
{http_method: :get, operation: :get, ids: [:page_id, :id], path: "pages/<page_id>/metafields/<id>.json"},
|
86
86
|
{http_method: :get, operation: :get, ids: [:product_image_id], path: "product_images/<product_image_id>/metafields.json"},
|
87
87
|
{http_method: :get, operation: :get, ids: [:product_image_id, :id], path: "product_images/<product_image_id>/metafields/<id>.json"},
|
88
|
-
{http_method: :get, operation: :get, ids: [:product_image_id, :id], path: "product_images/<product_image_id>/metafields/<id>.json"},
|
89
88
|
{http_method: :get, operation: :get, ids: [:product_id], path: "products/<product_id>/metafields.json"},
|
90
89
|
{http_method: :get, operation: :get, ids: [:product_id, :id], path: "products/<product_id>/metafields/<id>.json"},
|
91
90
|
{http_method: :get, operation: :get, ids: [:variant_id], path: "variants/<variant_id>/metafields.json"},
|
92
91
|
{http_method: :get, operation: :get, ids: [:variant_id, :id], path: "variants/<variant_id>/metafields/<id>.json"},
|
93
92
|
{http_method: :post, operation: :post, ids: [:article_id], path: "articles/<article_id>/metafields.json"},
|
94
93
|
{http_method: :post, operation: :post, ids: [:blog_id], path: "blogs/<blog_id>/metafields.json"},
|
94
|
+
{http_method: :post, operation: :post, ids: [:blog_id], path: "blogs/<blog_id>/metafields.json"},
|
95
95
|
{http_method: :post, operation: :post, ids: [:collection_id], path: "collections/<collection_id>/metafields.json"},
|
96
96
|
{http_method: :post, operation: :post, ids: [:customer_id], path: "customers/<customer_id>/metafields.json"},
|
97
97
|
{http_method: :post, operation: :post, ids: [:draft_order_id], path: "draft_orders/<draft_order_id>/metafields.json"},
|
98
98
|
{http_method: :post, operation: :post, ids: [], path: "metafields.json"},
|
99
99
|
{http_method: :post, operation: :post, ids: [:order_id], path: "orders/<order_id>/metafields.json"},
|
100
|
-
{http_method: :post, operation: :post, ids: [:order_id], path: "orders/<order_id>/metafields.json"},
|
101
100
|
{http_method: :post, operation: :post, ids: [:page_id], path: "pages/<page_id>/metafields.json"},
|
102
101
|
{http_method: :post, operation: :post, ids: [:product_image_id], path: "product_images/<product_image_id>/metafields.json"},
|
103
102
|
{http_method: :post, operation: :post, ids: [:product_id], path: "products/<product_id>/metafields.json"},
|
@@ -120,7 +119,7 @@ module ShopifyAPI
|
|
120
119
|
attr_reader :key
|
121
120
|
sig { returns(T.nilable(String)) }
|
122
121
|
attr_reader :namespace
|
123
|
-
sig { returns(T.nilable(T.any(String, Integer, Float))) }
|
122
|
+
sig { returns(T.nilable(T.any(String, Integer, Float, T::Boolean, String))) }
|
124
123
|
attr_reader :value
|
125
124
|
sig { returns(T.nilable(Integer)) }
|
126
125
|
attr_reader :article_id
|
@@ -154,8 +153,6 @@ module ShopifyAPI
|
|
154
153
|
attr_reader :type
|
155
154
|
sig { returns(T.nilable(String)) }
|
156
155
|
attr_reader :updated_at
|
157
|
-
sig { returns(T.nilable(String)) }
|
158
|
-
attr_reader :value_type
|
159
156
|
sig { returns(T.nilable(Integer)) }
|
160
157
|
attr_reader :variant_id
|
161
158
|
|
@@ -259,7 +256,6 @@ module ShopifyAPI
|
|
259
256
|
updated_at_max: T.untyped,
|
260
257
|
namespace: T.untyped,
|
261
258
|
key: T.untyped,
|
262
|
-
value_type: T.untyped,
|
263
259
|
type: T.untyped,
|
264
260
|
fields: T.untyped,
|
265
261
|
metafield: T.nilable(T::Hash[T.untyped, T.untyped]),
|
@@ -286,7 +282,6 @@ module ShopifyAPI
|
|
286
282
|
updated_at_max: nil,
|
287
283
|
namespace: nil,
|
288
284
|
key: nil,
|
289
|
-
value_type: nil,
|
290
285
|
type: nil,
|
291
286
|
fields: nil,
|
292
287
|
metafield: nil,
|
@@ -296,7 +291,7 @@ module ShopifyAPI
|
|
296
291
|
response = base_find(
|
297
292
|
session: session,
|
298
293
|
ids: {article_id: article_id, blog_id: blog_id, collection_id: collection_id, customer_id: customer_id, draft_order_id: draft_order_id, order_id: order_id, page_id: page_id, product_image_id: product_image_id, product_id: product_id, variant_id: variant_id},
|
299
|
-
params: {limit: limit, since_id: since_id, created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max, namespace: namespace, key: key,
|
294
|
+
params: {limit: limit, since_id: since_id, created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max, namespace: namespace, key: key, type: type, fields: fields, metafield: metafield}.merge(kwargs).compact,
|
300
295
|
)
|
301
296
|
|
302
297
|
T.cast(response, T::Array[Metafield])
|
@@ -27,10 +27,12 @@ module ShopifyAPI
|
|
27
27
|
@checkout_token = T.let(nil, T.nilable(String))
|
28
28
|
@client_details = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
29
29
|
@closed_at = T.let(nil, T.nilable(String))
|
30
|
+
@company = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
30
31
|
@created_at = T.let(nil, T.nilable(String))
|
31
32
|
@currency = T.let(nil, T.nilable(String))
|
32
33
|
@current_subtotal_price = T.let(nil, T.nilable(String))
|
33
34
|
@current_subtotal_price_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
35
|
+
@current_total_additional_fees_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
34
36
|
@current_total_discounts = T.let(nil, T.nilable(String))
|
35
37
|
@current_total_discounts_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
36
38
|
@current_total_duties_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
@@ -51,12 +53,14 @@ module ShopifyAPI
|
|
51
53
|
@id = T.let(nil, T.nilable(Integer))
|
52
54
|
@landing_site = T.let(nil, T.nilable(String))
|
53
55
|
@location_id = T.let(nil, T.nilable(Integer))
|
56
|
+
@merchant_of_record_app_id = T.let(nil, T.nilable(Integer))
|
54
57
|
@name = T.let(nil, T.nilable(String))
|
55
58
|
@note = T.let(nil, T.nilable(String))
|
56
59
|
@note_attributes = T.let(nil, T.nilable(T::Array[T.untyped]))
|
57
60
|
@number = T.let(nil, T.nilable(Integer))
|
58
61
|
@order_number = T.let(nil, T.nilable(Integer))
|
59
62
|
@order_status_url = T.let(nil, T.nilable(String))
|
63
|
+
@original_total_additional_fees_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
60
64
|
@original_total_duties_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
61
65
|
@payment_details = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
62
66
|
@payment_gateway_names = T.let(nil, T.nilable(T::Array[T.untyped]))
|
@@ -72,7 +76,7 @@ module ShopifyAPI
|
|
72
76
|
@source_identifier = T.let(nil, T.nilable(String))
|
73
77
|
@source_name = T.let(nil, T.nilable(String))
|
74
78
|
@source_url = T.let(nil, T.nilable(String))
|
75
|
-
@subtotal_price = T.let(nil, T.nilable(
|
79
|
+
@subtotal_price = T.let(nil, T.nilable(String))
|
76
80
|
@subtotal_price_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
77
81
|
@tags = T.let(nil, T.nilable(String))
|
78
82
|
@tax_lines = T.let(nil, T.nilable(T::Array[T.untyped]))
|
@@ -137,6 +141,8 @@ module ShopifyAPI
|
|
137
141
|
attr_reader :client_details
|
138
142
|
sig { returns(T.nilable(String)) }
|
139
143
|
attr_reader :closed_at
|
144
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
145
|
+
attr_reader :company
|
140
146
|
sig { returns(T.nilable(String)) }
|
141
147
|
attr_reader :created_at
|
142
148
|
sig { returns(T.nilable(String)) }
|
@@ -145,6 +151,8 @@ module ShopifyAPI
|
|
145
151
|
attr_reader :current_subtotal_price
|
146
152
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
147
153
|
attr_reader :current_subtotal_price_set
|
154
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
155
|
+
attr_reader :current_total_additional_fees_set
|
148
156
|
sig { returns(T.nilable(String)) }
|
149
157
|
attr_reader :current_total_discounts
|
150
158
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
@@ -185,6 +193,8 @@ module ShopifyAPI
|
|
185
193
|
attr_reader :landing_site
|
186
194
|
sig { returns(T.nilable(Integer)) }
|
187
195
|
attr_reader :location_id
|
196
|
+
sig { returns(T.nilable(Integer)) }
|
197
|
+
attr_reader :merchant_of_record_app_id
|
188
198
|
sig { returns(T.nilable(String)) }
|
189
199
|
attr_reader :name
|
190
200
|
sig { returns(T.nilable(String)) }
|
@@ -198,6 +208,8 @@ module ShopifyAPI
|
|
198
208
|
sig { returns(T.nilable(String)) }
|
199
209
|
attr_reader :order_status_url
|
200
210
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
211
|
+
attr_reader :original_total_additional_fees_set
|
212
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
201
213
|
attr_reader :original_total_duties_set
|
202
214
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
203
215
|
attr_reader :payment_details
|
@@ -227,7 +239,7 @@ module ShopifyAPI
|
|
227
239
|
attr_reader :source_name
|
228
240
|
sig { returns(T.nilable(String)) }
|
229
241
|
attr_reader :source_url
|
230
|
-
sig { returns(T.nilable(
|
242
|
+
sig { returns(T.nilable(String)) }
|
231
243
|
attr_reader :subtotal_price
|
232
244
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
233
245
|
attr_reader :subtotal_price_set
|
@@ -19,6 +19,7 @@ module ShopifyAPI
|
|
19
19
|
@allocation_limit = T.let(nil, T.nilable(Integer))
|
20
20
|
@allocation_method = T.let(nil, T.nilable(String))
|
21
21
|
@created_at = T.let(nil, T.nilable(String))
|
22
|
+
@customer_segment_prerequisite_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
|
22
23
|
@customer_selection = T.let(nil, T.nilable(String))
|
23
24
|
@ends_at = T.let(nil, T.nilable(String))
|
24
25
|
@entitled_collection_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
|
@@ -31,7 +32,6 @@ module ShopifyAPI
|
|
31
32
|
@prerequisite_customer_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
|
32
33
|
@prerequisite_product_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
|
33
34
|
@prerequisite_quantity_range = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
34
|
-
@prerequisite_saved_search_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
|
35
35
|
@prerequisite_shipping_price_range = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
36
36
|
@prerequisite_subtotal_range = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
37
37
|
@prerequisite_to_entitlement_purchase = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
@@ -64,6 +64,8 @@ module ShopifyAPI
|
|
64
64
|
attr_reader :allocation_method
|
65
65
|
sig { returns(T.nilable(String)) }
|
66
66
|
attr_reader :created_at
|
67
|
+
sig { returns(T.nilable(T::Array[Integer])) }
|
68
|
+
attr_reader :customer_segment_prerequisite_ids
|
67
69
|
sig { returns(T.nilable(String)) }
|
68
70
|
attr_reader :customer_selection
|
69
71
|
sig { returns(T.nilable(String)) }
|
@@ -88,8 +90,6 @@ module ShopifyAPI
|
|
88
90
|
attr_reader :prerequisite_product_ids
|
89
91
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
90
92
|
attr_reader :prerequisite_quantity_range
|
91
|
-
sig { returns(T.nilable(T::Array[Integer])) }
|
92
|
-
attr_reader :prerequisite_saved_search_ids
|
93
93
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
94
94
|
attr_reader :prerequisite_shipping_price_range
|
95
95
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
@@ -22,6 +22,7 @@ module ShopifyAPI
|
|
22
22
|
@capped_amount = T.let(nil, T.nilable(T.any(String, Integer)))
|
23
23
|
@confirmation_url = T.let(nil, T.nilable(String))
|
24
24
|
@created_at = T.let(nil, T.nilable(String))
|
25
|
+
@currency = T.let(nil, T.nilable(Currency))
|
25
26
|
@id = T.let(nil, T.nilable(Integer))
|
26
27
|
@name = T.let(nil, T.nilable(String))
|
27
28
|
@price = T.let(nil, T.nilable(T.any(String, Float)))
|
@@ -34,7 +35,9 @@ module ShopifyAPI
|
|
34
35
|
@updated_at = T.let(nil, T.nilable(String))
|
35
36
|
end
|
36
37
|
|
37
|
-
@has_one = T.let({
|
38
|
+
@has_one = T.let({
|
39
|
+
currency: Currency
|
40
|
+
}, T::Hash[Symbol, Class])
|
38
41
|
@has_many = T.let({}, T::Hash[Symbol, Class])
|
39
42
|
@paths = T.let([
|
40
43
|
{http_method: :delete, operation: :delete, ids: [:id], path: "recurring_application_charges/<id>.json"},
|
@@ -56,6 +59,8 @@ module ShopifyAPI
|
|
56
59
|
attr_reader :confirmation_url
|
57
60
|
sig { returns(T.nilable(String)) }
|
58
61
|
attr_reader :created_at
|
62
|
+
sig { returns(T.nilable(Currency)) }
|
63
|
+
attr_reader :currency
|
59
64
|
sig { returns(T.nilable(Integer)) }
|
60
65
|
attr_reader :id
|
61
66
|
sig { returns(T.nilable(String)) }
|