shopify_api 12.4.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/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/stale.yml +20 -10
- data/CHANGELOG.md +11 -4
- data/CONTRIBUTING.md +2 -2
- data/Gemfile.lock +6 -6
- 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 +2 -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 +3 -1
- 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/gift_card.rb +4 -4
- data/lib/shopify_api/rest/resources/2022_07/metafield.rb +2 -2
- 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/gift_card.rb +4 -4
- data/lib/shopify_api/rest/resources/2022_10/metafield.rb +2 -2
- 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/2023_01/application_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/2023_01/application_credit.rb +6 -1
- data/lib/shopify_api/rest/resources/2023_01/dispute_evidence.rb +117 -0
- data/lib/shopify_api/rest/resources/{2022_04/storefront_access_token.rb → 2023_01/dispute_file_upload.rb} +27 -33
- data/lib/shopify_api/rest/resources/2023_01/gift_card.rb +4 -4
- data/lib/shopify_api/rest/resources/2023_01/metafield.rb +2 -2
- data/lib/shopify_api/rest/resources/2023_01/order.rb +2 -2
- data/lib/shopify_api/rest/resources/2023_01/recurring_application_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/2023_01/shipping_zone.rb +6 -6
- data/lib/shopify_api/rest/resources/2023_01/usage_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/application_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/application_credit.rb +6 -1
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/carrier_service.rb +0 -3
- data/lib/shopify_api/rest/resources/2023_04/dispute_evidence.rb +117 -0
- data/lib/shopify_api/rest/resources/{2022_04/android_pay_key.rb → 2023_04/dispute_file_upload.rb} +29 -25
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/fulfillment.rb +2 -49
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/fulfillment_order.rb +36 -8
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/fulfillment_service.rb +3 -3
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/gift_card.rb +4 -4
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/metafield.rb +2 -2
- data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/order.rb +14 -2
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/recurring_application_charge.rb +6 -1
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/shipping_zone.rb +6 -6
- data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/shop.rb +3 -0
- data/lib/shopify_api/rest/resources/{2022_01 → 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 +85 -152
- data/lib/shopify_api/rest/resources/2022_01/android_pay_key.rb +0 -77
- data/lib/shopify_api/rest/resources/2022_01/customer.rb +0 -326
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_order.rb +0 -281
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_service.rb +0 -130
- data/lib/shopify_api/rest/resources/2022_01/gift_card.rb +0 -215
- data/lib/shopify_api/rest/resources/2022_01/metafield.rb +0 -349
- data/lib/shopify_api/rest/resources/2022_01/order.rb +0 -473
- data/lib/shopify_api/rest/resources/2022_01/price_rule.rb +0 -223
- data/lib/shopify_api/rest/resources/2022_01/usage_charge.rb +0 -97
- data/lib/shopify_api/rest/resources/2022_04/abandoned_checkout.rb +0 -190
- data/lib/shopify_api/rest/resources/2022_04/access_scope.rb +0 -58
- data/lib/shopify_api/rest/resources/2022_04/apple_pay_certificate.rb +0 -105
- data/lib/shopify_api/rest/resources/2022_04/application_charge.rb +0 -104
- data/lib/shopify_api/rest/resources/2022_04/application_credit.rb +0 -87
- data/lib/shopify_api/rest/resources/2022_04/article.rb +0 -265
- data/lib/shopify_api/rest/resources/2022_04/asset.rb +0 -118
- data/lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb +0 -86
- data/lib/shopify_api/rest/resources/2022_04/balance.rb +0 -50
- data/lib/shopify_api/rest/resources/2022_04/blog.rb +0 -162
- data/lib/shopify_api/rest/resources/2022_04/cancellation_request.rb +0 -83
- data/lib/shopify_api/rest/resources/2022_04/carrier_service.rb +0 -116
- data/lib/shopify_api/rest/resources/2022_04/checkout.rb +0 -209
- data/lib/shopify_api/rest/resources/2022_04/collect.rb +0 -142
- data/lib/shopify_api/rest/resources/2022_04/collection.rb +0 -110
- data/lib/shopify_api/rest/resources/2022_04/collection_listing.rb +0 -155
- data/lib/shopify_api/rest/resources/2022_04/comment.rb +0 -283
- data/lib/shopify_api/rest/resources/2022_04/country.rb +0 -137
- data/lib/shopify_api/rest/resources/2022_04/currency.rb +0 -57
- data/lib/shopify_api/rest/resources/2022_04/custom_collection.rb +0 -187
- data/lib/shopify_api/rest/resources/2022_04/customer_address.rb +0 -201
- data/lib/shopify_api/rest/resources/2022_04/customer_saved_search.rb +0 -169
- data/lib/shopify_api/rest/resources/2022_04/deprecated_api_call.rb +0 -57
- data/lib/shopify_api/rest/resources/2022_04/discount_code.rb +0 -219
- data/lib/shopify_api/rest/resources/2022_04/dispute.rb +0 -111
- data/lib/shopify_api/rest/resources/2022_04/draft_order.rb +0 -275
- data/lib/shopify_api/rest/resources/2022_04/event.rb +0 -148
- data/lib/shopify_api/rest/resources/2022_04/fulfillment.rb +0 -272
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_event.rb +0 -166
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_request.rb +0 -87
- data/lib/shopify_api/rest/resources/2022_04/gift_card_adjustment.rb +0 -118
- data/lib/shopify_api/rest/resources/2022_04/image.rb +0 -157
- data/lib/shopify_api/rest/resources/2022_04/inventory_item.rb +0 -108
- data/lib/shopify_api/rest/resources/2022_04/inventory_level.rb +0 -179
- data/lib/shopify_api/rest/resources/2022_04/location.rb +0 -167
- data/lib/shopify_api/rest/resources/2022_04/locations_for_move.rb +0 -56
- data/lib/shopify_api/rest/resources/2022_04/marketing_event.rb +0 -209
- data/lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb +0 -110
- data/lib/shopify_api/rest/resources/2022_04/order_risk.rb +0 -135
- data/lib/shopify_api/rest/resources/2022_04/page.rb +0 -194
- data/lib/shopify_api/rest/resources/2022_04/payment.rb +0 -140
- data/lib/shopify_api/rest/resources/2022_04/payment_gateway.rb +0 -143
- data/lib/shopify_api/rest/resources/2022_04/payment_transaction.rb +0 -107
- data/lib/shopify_api/rest/resources/2022_04/payout.rb +0 -97
- data/lib/shopify_api/rest/resources/2022_04/policy.rb +0 -69
- data/lib/shopify_api/rest/resources/2022_04/product.rb +0 -223
- data/lib/shopify_api/rest/resources/2022_04/product_listing.rb +0 -196
- data/lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb +0 -88
- data/lib/shopify_api/rest/resources/2022_04/province.rb +0 -132
- data/lib/shopify_api/rest/resources/2022_04/recurring_application_charge.rb +0 -167
- data/lib/shopify_api/rest/resources/2022_04/redirect.rb +0 -139
- data/lib/shopify_api/rest/resources/2022_04/refund.rb +0 -151
- data/lib/shopify_api/rest/resources/2022_04/report.rb +0 -121
- data/lib/shopify_api/rest/resources/2022_04/resource_feedback.rb +0 -73
- data/lib/shopify_api/rest/resources/2022_04/script_tag.rb +0 -155
- data/lib/shopify_api/rest/resources/2022_04/shipping_zone.rb +0 -83
- data/lib/shopify_api/rest/resources/2022_04/shop.rb +0 -218
- data/lib/shopify_api/rest/resources/2022_04/smart_collection.rb +0 -216
- data/lib/shopify_api/rest/resources/2022_04/tender_transaction.rb +0 -93
- data/lib/shopify_api/rest/resources/2022_04/theme.rb +0 -120
- data/lib/shopify_api/rest/resources/2022_04/transaction.rb +0 -181
- data/lib/shopify_api/rest/resources/2022_04/user.rb +0 -138
- data/lib/shopify_api/rest/resources/2022_04/variant.rb +0 -212
- data/lib/shopify_api/rest/resources/2022_04/webhook.rb +0 -168
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/abandoned_checkout.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/access_scope.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/apple_pay_certificate.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/article.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/asset.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/assigned_fulfillment_order.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/balance.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/blog.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/cancellation_request.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/checkout.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/collect.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/collection.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/collection_listing.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/comment.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/country.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/currency.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/custom_collection.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/customer.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/customer_address.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/customer_saved_search.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/deprecated_api_call.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/discount_code.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/dispute.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/draft_order.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/event.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/fulfillment_event.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/fulfillment_request.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/gift_card_adjustment.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/image.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/inventory_item.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/inventory_level.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/location.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/locations_for_move.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/marketing_event.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/mobile_platform_application.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/order_risk.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/page.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/payment.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/payment_gateway.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/payment_transaction.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/payout.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/policy.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/price_rule.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/product.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/product_listing.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/product_resource_feedback.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/province.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/redirect.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/refund.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/report.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/resource_feedback.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/script_tag.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/smart_collection.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/storefront_access_token.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/tender_transaction.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/theme.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/user.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/variant.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/webhook.rb +0 -0
@@ -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))
|
@@ -119,7 +119,7 @@ module ShopifyAPI
|
|
119
119
|
attr_reader :key
|
120
120
|
sig { returns(T.nilable(String)) }
|
121
121
|
attr_reader :namespace
|
122
|
-
sig { returns(T.nilable(T.any(String, Integer, Float))) }
|
122
|
+
sig { returns(T.nilable(T.any(String, Integer, Float, T::Boolean, String))) }
|
123
123
|
attr_reader :value
|
124
124
|
sig { returns(T.nilable(Integer)) }
|
125
125
|
attr_reader :article_id
|
@@ -72,7 +72,7 @@ module ShopifyAPI
|
|
72
72
|
@source_identifier = T.let(nil, T.nilable(String))
|
73
73
|
@source_name = T.let(nil, T.nilable(String))
|
74
74
|
@source_url = T.let(nil, T.nilable(String))
|
75
|
-
@subtotal_price = T.let(nil, T.nilable(
|
75
|
+
@subtotal_price = T.let(nil, T.nilable(String))
|
76
76
|
@subtotal_price_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
77
77
|
@tags = T.let(nil, T.nilable(String))
|
78
78
|
@tax_lines = T.let(nil, T.nilable(T::Array[T.untyped]))
|
@@ -227,7 +227,7 @@ module ShopifyAPI
|
|
227
227
|
attr_reader :source_name
|
228
228
|
sig { returns(T.nilable(String)) }
|
229
229
|
attr_reader :source_url
|
230
|
-
sig { returns(T.nilable(
|
230
|
+
sig { returns(T.nilable(String)) }
|
231
231
|
attr_reader :subtotal_price
|
232
232
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
233
233
|
attr_reader :subtotal_price_set
|
@@ -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)) }
|
@@ -21,10 +21,10 @@ module ShopifyAPI
|
|
21
21
|
@id = T.let(nil, T.nilable(Integer))
|
22
22
|
@location_group_id = T.let(nil, T.nilable(Integer))
|
23
23
|
@name = T.let(nil, T.nilable(String))
|
24
|
-
@price_based_shipping_rates = T.let(nil, T.nilable(T::
|
25
|
-
@profile_id = T.let(nil, T.nilable(
|
24
|
+
@price_based_shipping_rates = T.let(nil, T.nilable(T::Array[T.untyped]))
|
25
|
+
@profile_id = T.let(nil, T.nilable(String))
|
26
26
|
@provinces = T.let(nil, T.nilable(T::Array[T.untyped]))
|
27
|
-
@weight_based_shipping_rates = T.let(nil, T.nilable(T::
|
27
|
+
@weight_based_shipping_rates = T.let(nil, T.nilable(T::Array[T.untyped]))
|
28
28
|
end
|
29
29
|
|
30
30
|
@has_one = T.let({}, T::Hash[Symbol, Class])
|
@@ -46,13 +46,13 @@ module ShopifyAPI
|
|
46
46
|
attr_reader :location_group_id
|
47
47
|
sig { returns(T.nilable(String)) }
|
48
48
|
attr_reader :name
|
49
|
-
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
49
|
+
sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
|
50
50
|
attr_reader :price_based_shipping_rates
|
51
|
-
sig { returns(T.nilable(
|
51
|
+
sig { returns(T.nilable(String)) }
|
52
52
|
attr_reader :profile_id
|
53
53
|
sig { returns(T.nilable(T::Array[Province])) }
|
54
54
|
attr_reader :provinces
|
55
|
-
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
55
|
+
sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
|
56
56
|
attr_reader :weight_based_shipping_rates
|
57
57
|
|
58
58
|
class << self
|
@@ -17,6 +17,7 @@ module ShopifyAPI
|
|
17
17
|
super(session: session)
|
18
18
|
|
19
19
|
@created_at = T.let(nil, T.nilable(String))
|
20
|
+
@currency = T.let(nil, T.nilable(Currency))
|
20
21
|
@description = T.let(nil, T.nilable(String))
|
21
22
|
@id = T.let(nil, T.nilable(Integer))
|
22
23
|
@price = T.let(nil, T.nilable(Integer))
|
@@ -24,7 +25,9 @@ module ShopifyAPI
|
|
24
25
|
@updated_at = T.let(nil, T.nilable(String))
|
25
26
|
end
|
26
27
|
|
27
|
-
@has_one = T.let({
|
28
|
+
@has_one = T.let({
|
29
|
+
currency: Currency
|
30
|
+
}, T::Hash[Symbol, Class])
|
28
31
|
@has_many = T.let({}, T::Hash[Symbol, Class])
|
29
32
|
@paths = T.let([
|
30
33
|
{http_method: :get, operation: :get, ids: [:recurring_application_charge_id], path: "recurring_application_charges/<recurring_application_charge_id>/usage_charges.json"},
|
@@ -34,6 +37,8 @@ module ShopifyAPI
|
|
34
37
|
|
35
38
|
sig { returns(T.nilable(String)) }
|
36
39
|
attr_reader :created_at
|
40
|
+
sig { returns(T.nilable(Currency)) }
|
41
|
+
attr_reader :currency
|
37
42
|
sig { returns(T.nilable(String)) }
|
38
43
|
attr_reader :description
|
39
44
|
sig { returns(T.nilable(Integer)) }
|
@@ -18,6 +18,7 @@ module ShopifyAPI
|
|
18
18
|
|
19
19
|
@confirmation_url = T.let(nil, T.nilable(String))
|
20
20
|
@created_at = T.let(nil, T.nilable(String))
|
21
|
+
@currency = T.let(nil, T.nilable(Currency))
|
21
22
|
@id = T.let(nil, T.nilable(Integer))
|
22
23
|
@name = T.let(nil, T.nilable(String))
|
23
24
|
@price = T.let(nil, T.nilable(T.any(String, Float)))
|
@@ -27,7 +28,9 @@ module ShopifyAPI
|
|
27
28
|
@updated_at = T.let(nil, T.nilable(String))
|
28
29
|
end
|
29
30
|
|
30
|
-
@has_one = T.let({
|
31
|
+
@has_one = T.let({
|
32
|
+
currency: Currency
|
33
|
+
}, T::Hash[Symbol, Class])
|
31
34
|
@has_many = T.let({}, T::Hash[Symbol, Class])
|
32
35
|
@paths = T.let([
|
33
36
|
{http_method: :get, operation: :get, ids: [], path: "application_charges.json"},
|
@@ -39,6 +42,8 @@ module ShopifyAPI
|
|
39
42
|
attr_reader :confirmation_url
|
40
43
|
sig { returns(T.nilable(String)) }
|
41
44
|
attr_reader :created_at
|
45
|
+
sig { returns(T.nilable(Currency)) }
|
46
|
+
attr_reader :currency
|
42
47
|
sig { returns(T.nilable(Integer)) }
|
43
48
|
attr_reader :id
|
44
49
|
sig { returns(T.nilable(String)) }
|
@@ -17,12 +17,15 @@ module ShopifyAPI
|
|
17
17
|
super(session: session)
|
18
18
|
|
19
19
|
@amount = T.let(nil, T.nilable(Integer))
|
20
|
+
@currency = T.let(nil, T.nilable(Currency))
|
20
21
|
@description = T.let(nil, T.nilable(String))
|
21
22
|
@id = T.let(nil, T.nilable(Integer))
|
22
23
|
@test = T.let(nil, T.nilable(T::Boolean))
|
23
24
|
end
|
24
25
|
|
25
|
-
@has_one = T.let({
|
26
|
+
@has_one = T.let({
|
27
|
+
currency: Currency
|
28
|
+
}, T::Hash[Symbol, Class])
|
26
29
|
@has_many = T.let({}, T::Hash[Symbol, Class])
|
27
30
|
@paths = T.let([
|
28
31
|
{http_method: :get, operation: :get, ids: [], path: "application_credits.json"},
|
@@ -32,6 +35,8 @@ module ShopifyAPI
|
|
32
35
|
|
33
36
|
sig { returns(T.nilable(Integer)) }
|
34
37
|
attr_reader :amount
|
38
|
+
sig { returns(T.nilable(Currency)) }
|
39
|
+
attr_reader :currency
|
35
40
|
sig { returns(T.nilable(String)) }
|
36
41
|
attr_reader :description
|
37
42
|
sig { returns(T.nilable(Integer)) }
|
@@ -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))
|
@@ -119,7 +119,7 @@ module ShopifyAPI
|
|
119
119
|
attr_reader :key
|
120
120
|
sig { returns(T.nilable(String)) }
|
121
121
|
attr_reader :namespace
|
122
|
-
sig { returns(T.nilable(T.any(String, Integer, Float))) }
|
122
|
+
sig { returns(T.nilable(T.any(String, Integer, Float, T::Boolean, String))) }
|
123
123
|
attr_reader :value
|
124
124
|
sig { returns(T.nilable(Integer)) }
|
125
125
|
attr_reader :article_id
|
@@ -73,7 +73,7 @@ module ShopifyAPI
|
|
73
73
|
@source_identifier = T.let(nil, T.nilable(String))
|
74
74
|
@source_name = T.let(nil, T.nilable(String))
|
75
75
|
@source_url = T.let(nil, T.nilable(String))
|
76
|
-
@subtotal_price = T.let(nil, T.nilable(
|
76
|
+
@subtotal_price = T.let(nil, T.nilable(String))
|
77
77
|
@subtotal_price_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
78
78
|
@tags = T.let(nil, T.nilable(String))
|
79
79
|
@tax_lines = T.let(nil, T.nilable(T::Array[T.untyped]))
|
@@ -230,7 +230,7 @@ module ShopifyAPI
|
|
230
230
|
attr_reader :source_name
|
231
231
|
sig { returns(T.nilable(String)) }
|
232
232
|
attr_reader :source_url
|
233
|
-
sig { returns(T.nilable(
|
233
|
+
sig { returns(T.nilable(String)) }
|
234
234
|
attr_reader :subtotal_price
|
235
235
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
236
236
|
attr_reader :subtotal_price_set
|
@@ -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)) }
|
@@ -21,10 +21,10 @@ module ShopifyAPI
|
|
21
21
|
@id = T.let(nil, T.nilable(Integer))
|
22
22
|
@location_group_id = T.let(nil, T.nilable(Integer))
|
23
23
|
@name = T.let(nil, T.nilable(String))
|
24
|
-
@price_based_shipping_rates = T.let(nil, T.nilable(T::
|
25
|
-
@profile_id = T.let(nil, T.nilable(
|
24
|
+
@price_based_shipping_rates = T.let(nil, T.nilable(T::Array[T.untyped]))
|
25
|
+
@profile_id = T.let(nil, T.nilable(String))
|
26
26
|
@provinces = T.let(nil, T.nilable(T::Array[T.untyped]))
|
27
|
-
@weight_based_shipping_rates = T.let(nil, T.nilable(T::
|
27
|
+
@weight_based_shipping_rates = T.let(nil, T.nilable(T::Array[T.untyped]))
|
28
28
|
end
|
29
29
|
|
30
30
|
@has_one = T.let({}, T::Hash[Symbol, Class])
|
@@ -46,13 +46,13 @@ module ShopifyAPI
|
|
46
46
|
attr_reader :location_group_id
|
47
47
|
sig { returns(T.nilable(String)) }
|
48
48
|
attr_reader :name
|
49
|
-
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
49
|
+
sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
|
50
50
|
attr_reader :price_based_shipping_rates
|
51
|
-
sig { returns(T.nilable(
|
51
|
+
sig { returns(T.nilable(String)) }
|
52
52
|
attr_reader :profile_id
|
53
53
|
sig { returns(T.nilable(T::Array[Province])) }
|
54
54
|
attr_reader :provinces
|
55
|
-
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
55
|
+
sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
|
56
56
|
attr_reader :weight_based_shipping_rates
|
57
57
|
|
58
58
|
class << self
|
@@ -17,6 +17,7 @@ module ShopifyAPI
|
|
17
17
|
super(session: session)
|
18
18
|
|
19
19
|
@created_at = T.let(nil, T.nilable(String))
|
20
|
+
@currency = T.let(nil, T.nilable(Currency))
|
20
21
|
@description = T.let(nil, T.nilable(String))
|
21
22
|
@id = T.let(nil, T.nilable(Integer))
|
22
23
|
@price = T.let(nil, T.nilable(Integer))
|
@@ -24,7 +25,9 @@ module ShopifyAPI
|
|
24
25
|
@updated_at = T.let(nil, T.nilable(String))
|
25
26
|
end
|
26
27
|
|
27
|
-
@has_one = T.let({
|
28
|
+
@has_one = T.let({
|
29
|
+
currency: Currency
|
30
|
+
}, T::Hash[Symbol, Class])
|
28
31
|
@has_many = T.let({}, T::Hash[Symbol, Class])
|
29
32
|
@paths = T.let([
|
30
33
|
{http_method: :get, operation: :get, ids: [:recurring_application_charge_id], path: "recurring_application_charges/<recurring_application_charge_id>/usage_charges.json"},
|
@@ -34,6 +37,8 @@ module ShopifyAPI
|
|
34
37
|
|
35
38
|
sig { returns(T.nilable(String)) }
|
36
39
|
attr_reader :created_at
|
40
|
+
sig { returns(T.nilable(Currency)) }
|
41
|
+
attr_reader :currency
|
37
42
|
sig { returns(T.nilable(String)) }
|
38
43
|
attr_reader :description
|
39
44
|
sig { returns(T.nilable(Integer)) }
|
@@ -18,6 +18,7 @@ module ShopifyAPI
|
|
18
18
|
|
19
19
|
@confirmation_url = T.let(nil, T.nilable(String))
|
20
20
|
@created_at = T.let(nil, T.nilable(String))
|
21
|
+
@currency = T.let(nil, T.nilable(Currency))
|
21
22
|
@id = T.let(nil, T.nilable(Integer))
|
22
23
|
@name = T.let(nil, T.nilable(String))
|
23
24
|
@price = T.let(nil, T.nilable(T.any(String, Float)))
|
@@ -27,7 +28,9 @@ module ShopifyAPI
|
|
27
28
|
@updated_at = T.let(nil, T.nilable(String))
|
28
29
|
end
|
29
30
|
|
30
|
-
@has_one = T.let({
|
31
|
+
@has_one = T.let({
|
32
|
+
currency: Currency
|
33
|
+
}, T::Hash[Symbol, Class])
|
31
34
|
@has_many = T.let({}, T::Hash[Symbol, Class])
|
32
35
|
@paths = T.let([
|
33
36
|
{http_method: :get, operation: :get, ids: [], path: "application_charges.json"},
|
@@ -39,6 +42,8 @@ module ShopifyAPI
|
|
39
42
|
attr_reader :confirmation_url
|
40
43
|
sig { returns(T.nilable(String)) }
|
41
44
|
attr_reader :created_at
|
45
|
+
sig { returns(T.nilable(Currency)) }
|
46
|
+
attr_reader :currency
|
42
47
|
sig { returns(T.nilable(Integer)) }
|
43
48
|
attr_reader :id
|
44
49
|
sig { returns(T.nilable(String)) }
|
@@ -17,12 +17,15 @@ module ShopifyAPI
|
|
17
17
|
super(session: session)
|
18
18
|
|
19
19
|
@amount = T.let(nil, T.nilable(Integer))
|
20
|
+
@currency = T.let(nil, T.nilable(Currency))
|
20
21
|
@description = T.let(nil, T.nilable(String))
|
21
22
|
@id = T.let(nil, T.nilable(Integer))
|
22
23
|
@test = T.let(nil, T.nilable(T::Boolean))
|
23
24
|
end
|
24
25
|
|
25
|
-
@has_one = T.let({
|
26
|
+
@has_one = T.let({
|
27
|
+
currency: Currency
|
28
|
+
}, T::Hash[Symbol, Class])
|
26
29
|
@has_many = T.let({}, T::Hash[Symbol, Class])
|
27
30
|
@paths = T.let([
|
28
31
|
{http_method: :get, operation: :get, ids: [], path: "application_credits.json"},
|
@@ -32,6 +35,8 @@ module ShopifyAPI
|
|
32
35
|
|
33
36
|
sig { returns(T.nilable(Integer)) }
|
34
37
|
attr_reader :amount
|
38
|
+
sig { returns(T.nilable(Currency)) }
|
39
|
+
attr_reader :currency
|
35
40
|
sig { returns(T.nilable(String)) }
|
36
41
|
attr_reader :description
|
37
42
|
sig { returns(T.nilable(Integer)) }
|
@@ -0,0 +1,117 @@
|
|
1
|
+
# typed: false
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
8
|
+
module ShopifyAPI
|
9
|
+
class DisputeEvidence < ShopifyAPI::Rest::Base
|
10
|
+
extend T::Sig
|
11
|
+
|
12
|
+
@prev_page_info = T.let(Concurrent::ThreadLocalVar.new { nil }, Concurrent::ThreadLocalVar)
|
13
|
+
@next_page_info = T.let(Concurrent::ThreadLocalVar.new { nil }, Concurrent::ThreadLocalVar)
|
14
|
+
|
15
|
+
sig { params(session: T.nilable(ShopifyAPI::Auth::Session)).void }
|
16
|
+
def initialize(session: ShopifyAPI::Context.active_session)
|
17
|
+
super(session: session)
|
18
|
+
|
19
|
+
@access_activity_log = T.let(nil, T.nilable(String))
|
20
|
+
@billing_address = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
21
|
+
@cancellation_policy_disclosure = T.let(nil, T.nilable(String))
|
22
|
+
@cancellation_rebuttal = T.let(nil, T.nilable(String))
|
23
|
+
@created_at = T.let(nil, T.nilable(String))
|
24
|
+
@customer_email_address = T.let(nil, T.nilable(String))
|
25
|
+
@customer_first_name = T.let(nil, T.nilable(String))
|
26
|
+
@customer_last_name = T.let(nil, T.nilable(String))
|
27
|
+
@dispute_evidence_files = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
28
|
+
@fulfillments = T.let(nil, T.nilable(T::Array[T.untyped]))
|
29
|
+
@id = T.let(nil, T.nilable(Integer))
|
30
|
+
@payments_dispute_id = T.let(nil, T.nilable(Integer))
|
31
|
+
@product_description = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
32
|
+
@refund_policy_disclosure = T.let(nil, T.nilable(String))
|
33
|
+
@refund_refusal_explanation = T.let(nil, T.nilable(String))
|
34
|
+
@shipping_address = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
35
|
+
@submitted = T.let(nil, T.nilable(T::Boolean))
|
36
|
+
@uncategorized_text = T.let(nil, T.nilable(String))
|
37
|
+
@updated_on = T.let(nil, T.nilable(String))
|
38
|
+
end
|
39
|
+
|
40
|
+
@has_one = T.let({}, T::Hash[Symbol, Class])
|
41
|
+
@has_many = T.let({
|
42
|
+
fulfillments: Fulfillment
|
43
|
+
}, T::Hash[Symbol, Class])
|
44
|
+
@paths = T.let([
|
45
|
+
{http_method: :get, operation: :get, ids: [:dispute_id], path: "shopify_payments/disputes/<dispute_id>/dispute_evidences.json"},
|
46
|
+
{http_method: :put, operation: :put, ids: [:dispute_id], path: "shopify_payments/disputes/<dispute_id>/dispute_evidences.json"}
|
47
|
+
], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
|
48
|
+
|
49
|
+
sig { returns(T.nilable(String)) }
|
50
|
+
attr_reader :access_activity_log
|
51
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
52
|
+
attr_reader :billing_address
|
53
|
+
sig { returns(T.nilable(String)) }
|
54
|
+
attr_reader :cancellation_policy_disclosure
|
55
|
+
sig { returns(T.nilable(String)) }
|
56
|
+
attr_reader :cancellation_rebuttal
|
57
|
+
sig { returns(T.nilable(String)) }
|
58
|
+
attr_reader :created_at
|
59
|
+
sig { returns(T.nilable(String)) }
|
60
|
+
attr_reader :customer_email_address
|
61
|
+
sig { returns(T.nilable(String)) }
|
62
|
+
attr_reader :customer_first_name
|
63
|
+
sig { returns(T.nilable(String)) }
|
64
|
+
attr_reader :customer_last_name
|
65
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
66
|
+
attr_reader :dispute_evidence_files
|
67
|
+
sig { returns(T.nilable(T::Array[Fulfillment])) }
|
68
|
+
attr_reader :fulfillments
|
69
|
+
sig { returns(T.nilable(Integer)) }
|
70
|
+
attr_reader :id
|
71
|
+
sig { returns(T.nilable(Integer)) }
|
72
|
+
attr_reader :payments_dispute_id
|
73
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
74
|
+
attr_reader :product_description
|
75
|
+
sig { returns(T.nilable(String)) }
|
76
|
+
attr_reader :refund_policy_disclosure
|
77
|
+
sig { returns(T.nilable(String)) }
|
78
|
+
attr_reader :refund_refusal_explanation
|
79
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
80
|
+
attr_reader :shipping_address
|
81
|
+
sig { returns(T.nilable(T::Boolean)) }
|
82
|
+
attr_reader :submitted
|
83
|
+
sig { returns(T.nilable(String)) }
|
84
|
+
attr_reader :uncategorized_text
|
85
|
+
sig { returns(T.nilable(String)) }
|
86
|
+
attr_reader :updated_on
|
87
|
+
|
88
|
+
class << self
|
89
|
+
sig do
|
90
|
+
returns(String)
|
91
|
+
end
|
92
|
+
def primary_key()
|
93
|
+
"dispute_id"
|
94
|
+
end
|
95
|
+
|
96
|
+
sig do
|
97
|
+
params(
|
98
|
+
dispute_id: T.any(Integer, String),
|
99
|
+
session: Auth::Session
|
100
|
+
).returns(T.nilable(DisputeEvidence))
|
101
|
+
end
|
102
|
+
def find(
|
103
|
+
dispute_id:,
|
104
|
+
session: ShopifyAPI::Context.active_session
|
105
|
+
)
|
106
|
+
result = base_find(
|
107
|
+
session: session,
|
108
|
+
ids: {dispute_id: dispute_id},
|
109
|
+
params: {},
|
110
|
+
)
|
111
|
+
T.cast(result[0], T.nilable(DisputeEvidence))
|
112
|
+
end
|
113
|
+
|
114
|
+
end
|
115
|
+
|
116
|
+
end
|
117
|
+
end
|
@@ -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,71 +16,65 @@ module ShopifyAPI
|
|
16
16
|
def initialize(session: ShopifyAPI::Context.active_session)
|
17
17
|
super(session: session)
|
18
18
|
|
19
|
-
@
|
20
|
-
@
|
21
|
-
@
|
22
|
-
@
|
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))
|
23
24
|
@id = T.let(nil, T.nilable(Integer))
|
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))
|
24
28
|
end
|
25
29
|
|
26
30
|
@has_one = T.let({}, T::Hash[Symbol, Class])
|
27
31
|
@has_many = T.let({}, T::Hash[Symbol, Class])
|
28
32
|
@paths = T.let([
|
29
|
-
{http_method: :delete, operation: :delete, ids: [:id], path: "
|
30
|
-
{http_method: :
|
31
|
-
{http_method: :post, operation: :post, ids: [], path: "storefront_access_tokens.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"}
|
32
35
|
], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
|
33
36
|
|
37
|
+
sig { returns(T.nilable(Integer)) }
|
38
|
+
attr_reader :dispute_evidence_id
|
34
39
|
sig { returns(T.nilable(String)) }
|
35
|
-
attr_reader :
|
36
|
-
sig { returns(T.nilable(
|
37
|
-
attr_reader :
|
40
|
+
attr_reader :dispute_evidence_type
|
41
|
+
sig { returns(T.nilable(Integer)) }
|
42
|
+
attr_reader :file_size
|
38
43
|
sig { returns(T.nilable(String)) }
|
39
|
-
attr_reader :
|
44
|
+
attr_reader :file_type
|
40
45
|
sig { returns(T.nilable(String)) }
|
41
|
-
attr_reader :
|
46
|
+
attr_reader :filename
|
42
47
|
sig { returns(T.nilable(Integer)) }
|
43
48
|
attr_reader :id
|
49
|
+
sig { returns(T.nilable(String)) }
|
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
|
44
55
|
|
45
56
|
class << self
|
46
57
|
sig do
|
47
58
|
params(
|
48
59
|
id: T.any(Integer, String),
|
60
|
+
dispute_id: T.nilable(T.any(Integer, String)),
|
49
61
|
session: Auth::Session
|
50
62
|
).returns(T.untyped)
|
51
63
|
end
|
52
64
|
def delete(
|
53
65
|
id:,
|
66
|
+
dispute_id: nil,
|
54
67
|
session: ShopifyAPI::Context.active_session
|
55
68
|
)
|
56
69
|
request(
|
57
70
|
http_method: :delete,
|
58
71
|
operation: :delete,
|
59
72
|
session: session,
|
60
|
-
ids: {id: id},
|
73
|
+
ids: {id: id, dispute_id: dispute_id},
|
61
74
|
params: {},
|
62
75
|
)
|
63
76
|
end
|
64
77
|
|
65
|
-
sig do
|
66
|
-
params(
|
67
|
-
session: Auth::Session,
|
68
|
-
kwargs: T.untyped
|
69
|
-
).returns(T::Array[StorefrontAccessToken])
|
70
|
-
end
|
71
|
-
def all(
|
72
|
-
session: ShopifyAPI::Context.active_session,
|
73
|
-
**kwargs
|
74
|
-
)
|
75
|
-
response = base_find(
|
76
|
-
session: session,
|
77
|
-
ids: {},
|
78
|
-
params: {}.merge(kwargs).compact,
|
79
|
-
)
|
80
|
-
|
81
|
-
T.cast(response, T::Array[StorefrontAccessToken])
|
82
|
-
end
|
83
|
-
|
84
78
|
end
|
85
79
|
|
86
80
|
end
|
@@ -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))
|
@@ -119,7 +119,7 @@ module ShopifyAPI
|
|
119
119
|
attr_reader :key
|
120
120
|
sig { returns(T.nilable(String)) }
|
121
121
|
attr_reader :namespace
|
122
|
-
sig { returns(T.nilable(T.any(String, Integer, Float))) }
|
122
|
+
sig { returns(T.nilable(T.any(String, Integer, Float, T::Boolean, String))) }
|
123
123
|
attr_reader :value
|
124
124
|
sig { returns(T.nilable(Integer)) }
|
125
125
|
attr_reader :article_id
|