shopify_api 11.1.0 → 12.4.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/workflows/build.yml +0 -3
- data/.github/workflows/close-waiting-for-response-issues.yml +20 -0
- data/.github/workflows/remove-labels-on-activity.yml +16 -0
- data/.github/workflows/stale.yml +33 -0
- data/CHANGELOG.md +30 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +55 -39
- data/README.md +12 -14
- data/docs/getting_started.md +1 -1
- data/docs/usage/oauth.md +3 -4
- data/docs/usage/session_storage.md +1 -1
- data/lib/shopify_api/admin_versions.rb +3 -2
- data/lib/shopify_api/auth/jwt_payload.rb +2 -2
- data/lib/shopify_api/auth/oauth/auth_query.rb +1 -1
- data/lib/shopify_api/auth/oauth.rb +18 -12
- data/lib/shopify_api/auth/session.rb +1 -1
- data/lib/shopify_api/clients/graphql/client.rb +3 -3
- data/lib/shopify_api/clients/graphql/storefront.rb +2 -2
- data/lib/shopify_api/clients/http_client.rb +4 -4
- data/lib/shopify_api/clients/rest/admin.rb +10 -10
- data/lib/shopify_api/context.rb +57 -16
- data/lib/shopify_api/errors/feature_deprecated_error.rb +9 -0
- data/lib/shopify_api/errors/http_response_error.rb +7 -3
- data/lib/shopify_api/errors/log_level_not_found_error.rb +9 -0
- data/lib/shopify_api/logger.rb +82 -0
- data/lib/shopify_api/rest/base.rb +14 -7
- data/lib/shopify_api/rest/resources/2022_01/abandoned_checkout.rb +4 -3
- data/lib/shopify_api/rest/resources/2022_01/assigned_fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/2022_01/customer.rb +35 -1
- data/lib/shopify_api/rest/resources/2022_01/draft_order.rb +3 -1
- data/lib/shopify_api/rest/resources/2022_01/fulfillment.rb +5 -1
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_order.rb +3 -3
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_request.rb +5 -1
- data/lib/shopify_api/rest/resources/2022_01/gift_card.rb +9 -1
- data/lib/shopify_api/rest/resources/2022_01/metafield.rb +12 -5
- data/lib/shopify_api/rest/resources/2022_04/abandoned_checkout.rb +4 -3
- data/lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/2022_04/customer.rb +35 -1
- data/lib/shopify_api/rest/resources/2022_04/draft_order.rb +3 -1
- data/lib/shopify_api/rest/resources/2022_04/fulfillment.rb +5 -1
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb +3 -3
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_request.rb +5 -1
- data/lib/shopify_api/rest/resources/2022_04/gift_card.rb +9 -1
- data/lib/shopify_api/rest/resources/2022_04/metafield.rb +10 -8
- data/lib/shopify_api/rest/resources/2022_07/abandoned_checkout.rb +4 -3
- data/lib/shopify_api/rest/resources/2022_07/assigned_fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/2022_07/customer.rb +29 -1
- data/lib/shopify_api/rest/resources/2022_07/dispute_evidence.rb +2 -2
- 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 +9 -1
- data/lib/shopify_api/rest/resources/2022_07/metafield.rb +10 -8
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/abandoned_checkout.rb +4 -3
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/assigned_fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/carrier_service.rb +0 -3
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/customer.rb +38 -1
- data/lib/shopify_api/rest/resources/2022_10/dispute_evidence.rb +117 -0
- data/lib/shopify_api/rest/resources/2022_10/dispute_file_upload.rb +81 -0
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/draft_order.rb +3 -1
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/fulfillment.rb +7 -50
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/fulfillment_order.rb +33 -4
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/fulfillment_request.rb +5 -1
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/fulfillment_service.rb +3 -3
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/gift_card.rb +9 -1
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/metafield.rb +10 -8
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/order.rb +3 -0
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/price_rule.rb +3 -3
- data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/shop.rb +3 -0
- data/lib/shopify_api/rest/resources/2023_01/abandoned_checkout.rb +190 -0
- data/lib/shopify_api/rest/resources/2023_01/access_scope.rb +58 -0
- data/lib/shopify_api/rest/resources/2023_01/apple_pay_certificate.rb +105 -0
- data/lib/shopify_api/rest/resources/2023_01/application_charge.rb +104 -0
- data/lib/shopify_api/rest/resources/2023_01/application_credit.rb +87 -0
- data/lib/shopify_api/rest/resources/2023_01/article.rb +265 -0
- data/lib/shopify_api/rest/resources/2023_01/asset.rb +118 -0
- data/lib/shopify_api/rest/resources/2023_01/assigned_fulfillment_order.rb +86 -0
- data/lib/shopify_api/rest/resources/2023_01/balance.rb +50 -0
- data/lib/shopify_api/rest/resources/2023_01/blog.rb +162 -0
- data/lib/shopify_api/rest/resources/2023_01/cancellation_request.rb +83 -0
- data/lib/shopify_api/rest/resources/2023_01/carrier_service.rb +113 -0
- data/lib/shopify_api/rest/resources/2023_01/checkout.rb +209 -0
- data/lib/shopify_api/rest/resources/2023_01/collect.rb +142 -0
- data/lib/shopify_api/rest/resources/2023_01/collection.rb +110 -0
- data/lib/shopify_api/rest/resources/2023_01/collection_listing.rb +155 -0
- data/lib/shopify_api/rest/resources/2023_01/comment.rb +283 -0
- data/lib/shopify_api/rest/resources/2023_01/country.rb +137 -0
- data/lib/shopify_api/rest/resources/2023_01/currency.rb +57 -0
- data/lib/shopify_api/rest/resources/2023_01/custom_collection.rb +187 -0
- data/lib/shopify_api/rest/resources/2023_01/customer.rb +329 -0
- data/lib/shopify_api/rest/resources/2023_01/customer_address.rb +201 -0
- data/lib/shopify_api/rest/resources/2023_01/customer_saved_search.rb +169 -0
- data/lib/shopify_api/rest/resources/2023_01/deprecated_api_call.rb +57 -0
- data/lib/shopify_api/rest/resources/2023_01/discount_code.rb +219 -0
- data/lib/shopify_api/rest/resources/2023_01/dispute.rb +111 -0
- data/lib/shopify_api/rest/resources/2023_01/draft_order.rb +275 -0
- data/lib/shopify_api/rest/resources/2023_01/event.rb +148 -0
- data/lib/shopify_api/rest/resources/2023_01/fulfillment.rb +225 -0
- data/lib/shopify_api/rest/resources/2023_01/fulfillment_event.rb +166 -0
- data/lib/shopify_api/rest/resources/2023_01/fulfillment_order.rb +316 -0
- data/lib/shopify_api/rest/resources/2023_01/fulfillment_request.rb +87 -0
- data/lib/shopify_api/rest/resources/2023_01/fulfillment_service.rb +130 -0
- data/lib/shopify_api/rest/resources/2023_01/gift_card.rb +215 -0
- data/lib/shopify_api/rest/resources/2023_01/gift_card_adjustment.rb +118 -0
- data/lib/shopify_api/rest/resources/2023_01/image.rb +157 -0
- data/lib/shopify_api/rest/resources/2023_01/inventory_item.rb +108 -0
- data/lib/shopify_api/rest/resources/2023_01/inventory_level.rb +179 -0
- data/lib/shopify_api/rest/resources/2023_01/location.rb +167 -0
- data/lib/shopify_api/rest/resources/2023_01/locations_for_move.rb +56 -0
- data/lib/shopify_api/rest/resources/2023_01/marketing_event.rb +209 -0
- data/lib/shopify_api/rest/resources/2023_01/metafield.rb +344 -0
- data/lib/shopify_api/rest/resources/2023_01/mobile_platform_application.rb +110 -0
- data/lib/shopify_api/rest/resources/2023_01/order.rb +479 -0
- data/lib/shopify_api/rest/resources/2023_01/order_risk.rb +135 -0
- data/lib/shopify_api/rest/resources/2023_01/page.rb +194 -0
- data/lib/shopify_api/rest/resources/2023_01/payment.rb +140 -0
- data/lib/shopify_api/rest/resources/2023_01/payment_gateway.rb +143 -0
- data/lib/shopify_api/rest/resources/2023_01/payment_transaction.rb +107 -0
- data/lib/shopify_api/rest/resources/2023_01/payout.rb +97 -0
- data/lib/shopify_api/rest/resources/2023_01/policy.rb +69 -0
- data/lib/shopify_api/rest/resources/2023_01/price_rule.rb +223 -0
- data/lib/shopify_api/rest/resources/2023_01/product.rb +223 -0
- data/lib/shopify_api/rest/resources/2023_01/product_listing.rb +196 -0
- data/lib/shopify_api/rest/resources/2023_01/product_resource_feedback.rb +88 -0
- data/lib/shopify_api/rest/resources/2023_01/province.rb +132 -0
- data/lib/shopify_api/rest/resources/2023_01/recurring_application_charge.rb +167 -0
- data/lib/shopify_api/rest/resources/2023_01/redirect.rb +139 -0
- data/lib/shopify_api/rest/resources/2023_01/refund.rb +151 -0
- data/lib/shopify_api/rest/resources/2023_01/report.rb +121 -0
- data/lib/shopify_api/rest/resources/2023_01/resource_feedback.rb +73 -0
- data/lib/shopify_api/rest/resources/2023_01/script_tag.rb +155 -0
- data/lib/shopify_api/rest/resources/2023_01/shipping_zone.rb +83 -0
- data/lib/shopify_api/rest/resources/2023_01/shop.rb +221 -0
- data/lib/shopify_api/rest/resources/2023_01/smart_collection.rb +216 -0
- data/lib/shopify_api/rest/resources/2023_01/storefront_access_token.rb +87 -0
- data/lib/shopify_api/rest/resources/2023_01/tender_transaction.rb +93 -0
- data/lib/shopify_api/rest/resources/2023_01/theme.rb +120 -0
- data/lib/shopify_api/rest/resources/2023_01/transaction.rb +181 -0
- data/lib/shopify_api/rest/resources/2023_01/usage_charge.rb +97 -0
- data/lib/shopify_api/rest/resources/2023_01/user.rb +138 -0
- data/lib/shopify_api/rest/resources/2023_01/variant.rb +212 -0
- data/lib/shopify_api/rest/resources/2023_01/webhook.rb +168 -0
- data/lib/shopify_api/utils/graphql_proxy.rb +2 -2
- data/lib/shopify_api/utils/session_utils.rb +42 -25
- data/lib/shopify_api/version.rb +1 -1
- data/lib/shopify_api/webhooks/registrations/http.rb +7 -1
- data/lib/shopify_api/webhooks/registry.rb +8 -8
- data/service.yml +0 -1
- data/shopify_api.gemspec +4 -2
- metadata +195 -78
- data/.github/ISSUE_TEMPLATE.md +0 -35
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/access_scope.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/android_pay_key.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/apple_pay_certificate.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/application_charge.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/application_credit.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/article.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/asset.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/balance.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/blog.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/cancellation_request.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/checkout.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/collect.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/collection.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/collection_listing.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/comment.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/country.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/currency.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/custom_collection.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/customer_address.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/customer_saved_search.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/deprecated_api_call.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/discount_code.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/dispute.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/event.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/fulfillment_event.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/gift_card_adjustment.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/image.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/inventory_item.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/inventory_level.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/location.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/locations_for_move.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/marketing_event.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/mobile_platform_application.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/order_risk.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/page.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/payment.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/payment_gateway.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/payment_transaction.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/payout.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/policy.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/product.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/product_listing.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/product_resource_feedback.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/province.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/recurring_application_charge.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/redirect.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/refund.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/report.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/resource_feedback.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/script_tag.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/shipping_zone.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/smart_collection.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/storefront_access_token.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/tender_transaction.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/theme.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/transaction.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/usage_charge.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/user.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/variant.rb +0 -0
- /data/lib/shopify_api/rest/resources/{2021_10 → 2022_10}/webhook.rb +0 -0
@@ -31,7 +31,7 @@ module ShopifyAPI
|
|
31
31
|
@product_description = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
32
32
|
@refund_policy_disclosure = T.let(nil, T.nilable(String))
|
33
33
|
@refund_refusal_explanation = T.let(nil, T.nilable(String))
|
34
|
-
@
|
34
|
+
@shipping_address = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
35
35
|
@submitted = T.let(nil, T.nilable(T::Boolean))
|
36
36
|
@uncategorized_text = T.let(nil, T.nilable(String))
|
37
37
|
@updated_on = T.let(nil, T.nilable(String))
|
@@ -77,7 +77,7 @@ module ShopifyAPI
|
|
77
77
|
sig { returns(T.nilable(String)) }
|
78
78
|
attr_reader :refund_refusal_explanation
|
79
79
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
80
|
-
attr_reader :
|
80
|
+
attr_reader :shipping_address
|
81
81
|
sig { returns(T.nilable(T::Boolean)) }
|
82
82
|
attr_reader :submitted
|
83
83
|
sig { returns(T.nilable(String)) }
|
@@ -198,11 +198,15 @@ module ShopifyAPI
|
|
198
198
|
|
199
199
|
sig do
|
200
200
|
params(
|
201
|
+
notify_customer: T.untyped,
|
202
|
+
tracking_info: T.untyped,
|
201
203
|
body: T.untyped,
|
202
204
|
kwargs: T.untyped
|
203
205
|
).returns(T.untyped)
|
204
206
|
end
|
205
207
|
def update_tracking(
|
208
|
+
notify_customer: nil,
|
209
|
+
tracking_info: nil,
|
206
210
|
body: nil,
|
207
211
|
**kwargs
|
208
212
|
)
|
@@ -211,7 +215,7 @@ module ShopifyAPI
|
|
211
215
|
operation: :update_tracking,
|
212
216
|
session: @session,
|
213
217
|
ids: {id: @id},
|
214
|
-
params: {}.merge(kwargs).compact,
|
218
|
+
params: {notify_customer: notify_customer, tracking_info: tracking_info}.merge(kwargs).compact,
|
215
219
|
body: body,
|
216
220
|
entity: self,
|
217
221
|
)
|
@@ -197,13 +197,13 @@ module ShopifyAPI
|
|
197
197
|
|
198
198
|
sig do
|
199
199
|
params(
|
200
|
-
|
200
|
+
fulfillment_order: T.untyped,
|
201
201
|
body: T.untyped,
|
202
202
|
kwargs: T.untyped
|
203
203
|
).returns(T.untyped)
|
204
204
|
end
|
205
205
|
def move(
|
206
|
-
|
206
|
+
fulfillment_order: nil,
|
207
207
|
body: nil,
|
208
208
|
**kwargs
|
209
209
|
)
|
@@ -212,7 +212,7 @@ module ShopifyAPI
|
|
212
212
|
operation: :move,
|
213
213
|
session: @session,
|
214
214
|
ids: {id: @id},
|
215
|
-
params: {
|
215
|
+
params: {fulfillment_order: fulfillment_order}.merge(kwargs).compact,
|
216
216
|
body: body,
|
217
217
|
entity: self,
|
218
218
|
)
|
@@ -157,6 +157,10 @@ module ShopifyAPI
|
|
157
157
|
query: T.untyped,
|
158
158
|
limit: T.untyped,
|
159
159
|
fields: T.untyped,
|
160
|
+
created_at_min: T.untyped,
|
161
|
+
created_at_max: T.untyped,
|
162
|
+
updated_at_min: T.untyped,
|
163
|
+
updated_at_max: T.untyped,
|
160
164
|
session: Auth::Session,
|
161
165
|
kwargs: T.untyped
|
162
166
|
).returns(T.untyped)
|
@@ -166,6 +170,10 @@ module ShopifyAPI
|
|
166
170
|
query: nil,
|
167
171
|
limit: nil,
|
168
172
|
fields: nil,
|
173
|
+
created_at_min: nil,
|
174
|
+
created_at_max: nil,
|
175
|
+
updated_at_min: nil,
|
176
|
+
updated_at_max: nil,
|
169
177
|
session: ShopifyAPI::Context.active_session,
|
170
178
|
**kwargs
|
171
179
|
)
|
@@ -174,7 +182,7 @@ module ShopifyAPI
|
|
174
182
|
operation: :search,
|
175
183
|
session: session,
|
176
184
|
ids: {},
|
177
|
-
params: {order: order, query: query, limit: limit, fields: fields}.merge(kwargs).compact,
|
185
|
+
params: {order: order, query: query, limit: limit, fields: fields, created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max}.merge(kwargs).compact,
|
178
186
|
body: {},
|
179
187
|
entity: nil,
|
180
188
|
)
|
@@ -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"},
|
@@ -55,6 +55,7 @@ module ShopifyAPI
|
|
55
55
|
{http_method: :delete, operation: :delete, ids: [:variant_id, :id], path: "variants/<variant_id>/metafields/<id>.json"},
|
56
56
|
{http_method: :get, operation: :count, ids: [:article_id], path: "articles/<article_id>/metafields/count.json"},
|
57
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"},
|
58
59
|
{http_method: :get, operation: :count, ids: [:collection_id], path: "collections/<collection_id>/metafields/count.json"},
|
59
60
|
{http_method: :get, operation: :count, ids: [:customer_id], path: "customers/<customer_id>/metafields/count.json"},
|
60
61
|
{http_method: :get, operation: :count, ids: [:draft_order_id], path: "draft_orders/<draft_order_id>/metafields/count.json"},
|
@@ -67,6 +68,8 @@ module ShopifyAPI
|
|
67
68
|
{http_method: :get, operation: :get, ids: [:article_id], path: "articles/<article_id>/metafields.json"},
|
68
69
|
{http_method: :get, operation: :get, ids: [:article_id, :id], path: "articles/<article_id>/metafields/<id>.json"},
|
69
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"},
|
70
73
|
{http_method: :get, operation: :get, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
71
74
|
{http_method: :get, operation: :get, ids: [:collection_id], path: "collections/<collection_id>/metafields.json"},
|
72
75
|
{http_method: :get, operation: :get, ids: [:collection_id, :id], path: "collections/<collection_id>/metafields/<id>.json"},
|
@@ -75,7 +78,6 @@ module ShopifyAPI
|
|
75
78
|
{http_method: :get, operation: :get, ids: [:draft_order_id], path: "draft_orders/<draft_order_id>/metafields.json"},
|
76
79
|
{http_method: :get, operation: :get, ids: [:draft_order_id, :id], path: "draft_orders/<draft_order_id>/metafields/<id>.json"},
|
77
80
|
{http_method: :get, operation: :get, ids: [], path: "metafields.json"},
|
78
|
-
{http_method: :get, operation: :get, ids: [], path: "metafields.json"},
|
79
81
|
{http_method: :get, operation: :get, ids: [:id], path: "metafields/<id>.json"},
|
80
82
|
{http_method: :get, operation: :get, ids: [:order_id], path: "orders/<order_id>/metafields.json"},
|
81
83
|
{http_method: :get, operation: :get, ids: [:order_id, :id], path: "orders/<order_id>/metafields/<id>.json"},
|
@@ -89,6 +91,7 @@ module ShopifyAPI
|
|
89
91
|
{http_method: :get, operation: :get, ids: [:variant_id, :id], path: "variants/<variant_id>/metafields/<id>.json"},
|
90
92
|
{http_method: :post, operation: :post, ids: [:article_id], path: "articles/<article_id>/metafields.json"},
|
91
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"},
|
92
95
|
{http_method: :post, operation: :post, ids: [:collection_id], path: "collections/<collection_id>/metafields.json"},
|
93
96
|
{http_method: :post, operation: :post, ids: [:customer_id], path: "customers/<customer_id>/metafields.json"},
|
94
97
|
{http_method: :post, operation: :post, ids: [:draft_order_id], path: "draft_orders/<draft_order_id>/metafields.json"},
|
@@ -100,6 +103,7 @@ module ShopifyAPI
|
|
100
103
|
{http_method: :post, operation: :post, ids: [:variant_id], path: "variants/<variant_id>/metafields.json"},
|
101
104
|
{http_method: :put, operation: :put, ids: [:article_id, :id], path: "articles/<article_id>/metafields/<id>.json"},
|
102
105
|
{http_method: :put, operation: :put, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
106
|
+
{http_method: :put, operation: :put, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
103
107
|
{http_method: :put, operation: :put, ids: [:collection_id, :id], path: "collections/<collection_id>/metafields/<id>.json"},
|
104
108
|
{http_method: :put, operation: :put, ids: [:customer_id, :id], path: "customers/<customer_id>/metafields/<id>.json"},
|
105
109
|
{http_method: :put, operation: :put, ids: [:draft_order_id, :id], path: "draft_orders/<draft_order_id>/metafields/<id>.json"},
|
@@ -149,8 +153,6 @@ module ShopifyAPI
|
|
149
153
|
attr_reader :type
|
150
154
|
sig { returns(T.nilable(String)) }
|
151
155
|
attr_reader :updated_at
|
152
|
-
sig { returns(T.nilable(String)) }
|
153
|
-
attr_reader :value_type
|
154
156
|
sig { returns(T.nilable(Integer)) }
|
155
157
|
attr_reader :variant_id
|
156
158
|
|
@@ -168,6 +170,7 @@ module ShopifyAPI
|
|
168
170
|
product_image_id: T.nilable(T.any(Integer, String)),
|
169
171
|
product_id: T.nilable(T.any(Integer, String)),
|
170
172
|
variant_id: T.nilable(T.any(Integer, String)),
|
173
|
+
fields: T.untyped,
|
171
174
|
session: Auth::Session
|
172
175
|
).returns(T.nilable(Metafield))
|
173
176
|
end
|
@@ -183,12 +186,13 @@ module ShopifyAPI
|
|
183
186
|
product_image_id: nil,
|
184
187
|
product_id: nil,
|
185
188
|
variant_id: nil,
|
189
|
+
fields: nil,
|
186
190
|
session: ShopifyAPI::Context.active_session
|
187
191
|
)
|
188
192
|
result = base_find(
|
189
193
|
session: session,
|
190
194
|
ids: {id: id, 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},
|
191
|
-
params: {},
|
195
|
+
params: {fields: fields},
|
192
196
|
)
|
193
197
|
T.cast(result[0], T.nilable(Metafield))
|
194
198
|
end
|
@@ -253,7 +257,6 @@ module ShopifyAPI
|
|
253
257
|
namespace: T.untyped,
|
254
258
|
key: T.untyped,
|
255
259
|
type: T.untyped,
|
256
|
-
value_type: T.untyped,
|
257
260
|
fields: T.untyped,
|
258
261
|
metafield: T.nilable(T::Hash[T.untyped, T.untyped]),
|
259
262
|
session: Auth::Session,
|
@@ -280,7 +283,6 @@ module ShopifyAPI
|
|
280
283
|
namespace: nil,
|
281
284
|
key: nil,
|
282
285
|
type: nil,
|
283
|
-
value_type: nil,
|
284
286
|
fields: nil,
|
285
287
|
metafield: nil,
|
286
288
|
session: ShopifyAPI::Context.active_session,
|
@@ -289,7 +291,7 @@ module ShopifyAPI
|
|
289
291
|
response = base_find(
|
290
292
|
session: session,
|
291
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},
|
292
|
-
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,
|
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,
|
293
295
|
)
|
294
296
|
|
295
297
|
T.cast(response, T::Array[Metafield])
|
@@ -65,6 +65,7 @@ module ShopifyAPI
|
|
65
65
|
discount_codes: DiscountCode
|
66
66
|
}, T::Hash[Symbol, Class])
|
67
67
|
@paths = T.let([
|
68
|
+
{http_method: :get, operation: :checkouts, ids: [], path: "checkouts.json"},
|
68
69
|
{http_method: :get, operation: :checkouts, ids: [], path: "checkouts.json"}
|
69
70
|
], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
|
70
71
|
|
@@ -150,25 +151,25 @@ module ShopifyAPI
|
|
150
151
|
class << self
|
151
152
|
sig do
|
152
153
|
params(
|
153
|
-
limit: T.untyped,
|
154
154
|
since_id: T.untyped,
|
155
155
|
created_at_min: T.untyped,
|
156
156
|
created_at_max: T.untyped,
|
157
157
|
updated_at_min: T.untyped,
|
158
158
|
updated_at_max: T.untyped,
|
159
159
|
status: T.untyped,
|
160
|
+
limit: T.untyped,
|
160
161
|
session: Auth::Session,
|
161
162
|
kwargs: T.untyped
|
162
163
|
).returns(T.untyped)
|
163
164
|
end
|
164
165
|
def checkouts(
|
165
|
-
limit: nil,
|
166
166
|
since_id: nil,
|
167
167
|
created_at_min: nil,
|
168
168
|
created_at_max: nil,
|
169
169
|
updated_at_min: nil,
|
170
170
|
updated_at_max: nil,
|
171
171
|
status: nil,
|
172
|
+
limit: nil,
|
172
173
|
session: ShopifyAPI::Context.active_session,
|
173
174
|
**kwargs
|
174
175
|
)
|
@@ -177,7 +178,7 @@ module ShopifyAPI
|
|
177
178
|
operation: :checkouts,
|
178
179
|
session: session,
|
179
180
|
ids: {},
|
180
|
-
params: {
|
181
|
+
params: {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, status: status, limit: limit}.merge(kwargs).compact,
|
181
182
|
body: {},
|
182
183
|
entity: nil,
|
183
184
|
)
|
@@ -20,7 +20,6 @@ module ShopifyAPI
|
|
20
20
|
@admin_graphql_api_id = T.let(nil, T.nilable(String))
|
21
21
|
@callback_url = T.let(nil, T.nilable(String))
|
22
22
|
@carrier_service_type = T.let(nil, T.nilable(String))
|
23
|
-
@format = T.let(nil, T.nilable(String))
|
24
23
|
@id = T.let(nil, T.nilable(Integer))
|
25
24
|
@name = T.let(nil, T.nilable(String))
|
26
25
|
@service_discovery = T.let(nil, T.nilable(T::Boolean))
|
@@ -44,8 +43,6 @@ module ShopifyAPI
|
|
44
43
|
attr_reader :callback_url
|
45
44
|
sig { returns(T.nilable(String)) }
|
46
45
|
attr_reader :carrier_service_type
|
47
|
-
sig { returns(T.nilable(String)) }
|
48
|
-
attr_reader :format
|
49
46
|
sig { returns(T.nilable(Integer)) }
|
50
47
|
attr_reader :id
|
51
48
|
sig { returns(T.nilable(String)) }
|
@@ -23,6 +23,7 @@ module ShopifyAPI
|
|
23
23
|
@currency = T.let(nil, T.nilable(String))
|
24
24
|
@default_address = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
25
25
|
@email = T.let(nil, T.nilable(String))
|
26
|
+
@email_marketing_consent = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
26
27
|
@first_name = T.let(nil, T.nilable(String))
|
27
28
|
@id = T.let(nil, T.nilable(Integer))
|
28
29
|
@last_name = T.let(nil, T.nilable(String))
|
@@ -33,6 +34,8 @@ module ShopifyAPI
|
|
33
34
|
@multipass_identifier = T.let(nil, T.nilable(String))
|
34
35
|
@note = T.let(nil, T.nilable(String))
|
35
36
|
@orders_count = T.let(nil, T.nilable(Integer))
|
37
|
+
@password = T.let(nil, T.nilable(String))
|
38
|
+
@password_confirmation = T.let(nil, T.nilable(String))
|
36
39
|
@phone = T.let(nil, T.nilable(String))
|
37
40
|
@sms_marketing_consent = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
38
41
|
@state = T.let(nil, T.nilable(String))
|
@@ -49,6 +52,7 @@ module ShopifyAPI
|
|
49
52
|
}, T::Hash[Symbol, Class])
|
50
53
|
@has_many = T.let({}, T::Hash[Symbol, Class])
|
51
54
|
@paths = T.let([
|
55
|
+
{http_method: :delete, operation: :delete, ids: [:id], path: "customers/<id>.json"},
|
52
56
|
{http_method: :get, operation: :count, ids: [], path: "customers/count.json"},
|
53
57
|
{http_method: :get, operation: :get, ids: [], path: "customers.json"},
|
54
58
|
{http_method: :get, operation: :get, ids: [:id], path: "customers/<id>.json"},
|
@@ -74,6 +78,8 @@ module ShopifyAPI
|
|
74
78
|
attr_reader :default_address
|
75
79
|
sig { returns(T.nilable(String)) }
|
76
80
|
attr_reader :email
|
81
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
82
|
+
attr_reader :email_marketing_consent
|
77
83
|
sig { returns(T.nilable(String)) }
|
78
84
|
attr_reader :first_name
|
79
85
|
sig { returns(T.nilable(Integer)) }
|
@@ -95,6 +101,10 @@ module ShopifyAPI
|
|
95
101
|
sig { returns(T.nilable(Integer)) }
|
96
102
|
attr_reader :orders_count
|
97
103
|
sig { returns(T.nilable(String)) }
|
104
|
+
attr_reader :password
|
105
|
+
sig { returns(T.nilable(String)) }
|
106
|
+
attr_reader :password_confirmation
|
107
|
+
sig { returns(T.nilable(String)) }
|
98
108
|
attr_reader :phone
|
99
109
|
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
100
110
|
attr_reader :sms_marketing_consent
|
@@ -134,6 +144,25 @@ module ShopifyAPI
|
|
134
144
|
T.cast(result[0], T.nilable(Customer))
|
135
145
|
end
|
136
146
|
|
147
|
+
sig do
|
148
|
+
params(
|
149
|
+
id: T.any(Integer, String),
|
150
|
+
session: Auth::Session
|
151
|
+
).returns(T.untyped)
|
152
|
+
end
|
153
|
+
def delete(
|
154
|
+
id:,
|
155
|
+
session: ShopifyAPI::Context.active_session
|
156
|
+
)
|
157
|
+
request(
|
158
|
+
http_method: :delete,
|
159
|
+
operation: :delete,
|
160
|
+
session: session,
|
161
|
+
ids: {id: id},
|
162
|
+
params: {},
|
163
|
+
)
|
164
|
+
end
|
165
|
+
|
137
166
|
sig do
|
138
167
|
params(
|
139
168
|
ids: T.untyped,
|
@@ -171,11 +200,19 @@ module ShopifyAPI
|
|
171
200
|
|
172
201
|
sig do
|
173
202
|
params(
|
203
|
+
created_at_min: T.untyped,
|
204
|
+
created_at_max: T.untyped,
|
205
|
+
updated_at_min: T.untyped,
|
206
|
+
updated_at_max: T.untyped,
|
174
207
|
session: Auth::Session,
|
175
208
|
kwargs: T.untyped
|
176
209
|
).returns(T.untyped)
|
177
210
|
end
|
178
211
|
def count(
|
212
|
+
created_at_min: nil,
|
213
|
+
created_at_max: nil,
|
214
|
+
updated_at_min: nil,
|
215
|
+
updated_at_max: nil,
|
179
216
|
session: ShopifyAPI::Context.active_session,
|
180
217
|
**kwargs
|
181
218
|
)
|
@@ -184,7 +221,7 @@ module ShopifyAPI
|
|
184
221
|
operation: :count,
|
185
222
|
session: session,
|
186
223
|
ids: {},
|
187
|
-
params: {}.merge(kwargs).compact,
|
224
|
+
params: {created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max}.merge(kwargs).compact,
|
188
225
|
body: {},
|
189
226
|
entity: nil,
|
190
227
|
)
|
@@ -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
|
@@ -0,0 +1,81 @@
|
|
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 DisputeFileUpload < 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
|
+
@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))
|
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))
|
28
|
+
end
|
29
|
+
|
30
|
+
@has_one = T.let({}, T::Hash[Symbol, Class])
|
31
|
+
@has_many = T.let({}, T::Hash[Symbol, Class])
|
32
|
+
@paths = T.let([
|
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"}
|
35
|
+
], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
|
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
|
47
|
+
sig { returns(T.nilable(Integer)) }
|
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
|
55
|
+
|
56
|
+
class << self
|
57
|
+
sig do
|
58
|
+
params(
|
59
|
+
id: T.any(Integer, String),
|
60
|
+
dispute_id: T.nilable(T.any(Integer, String)),
|
61
|
+
session: Auth::Session
|
62
|
+
).returns(T.untyped)
|
63
|
+
end
|
64
|
+
def delete(
|
65
|
+
id:,
|
66
|
+
dispute_id: nil,
|
67
|
+
session: ShopifyAPI::Context.active_session
|
68
|
+
)
|
69
|
+
request(
|
70
|
+
http_method: :delete,
|
71
|
+
operation: :delete,
|
72
|
+
session: session,
|
73
|
+
ids: {id: id, dispute_id: dispute_id},
|
74
|
+
params: {},
|
75
|
+
)
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
end
|
@@ -248,12 +248,14 @@ module ShopifyAPI
|
|
248
248
|
|
249
249
|
sig do
|
250
250
|
params(
|
251
|
+
payment_gateway_id: T.untyped,
|
251
252
|
payment_pending: T.untyped,
|
252
253
|
body: T.untyped,
|
253
254
|
kwargs: T.untyped
|
254
255
|
).returns(T.untyped)
|
255
256
|
end
|
256
257
|
def complete(
|
258
|
+
payment_gateway_id: nil,
|
257
259
|
payment_pending: nil,
|
258
260
|
body: nil,
|
259
261
|
**kwargs
|
@@ -263,7 +265,7 @@ module ShopifyAPI
|
|
263
265
|
operation: :complete,
|
264
266
|
session: @session,
|
265
267
|
ids: {id: @id},
|
266
|
-
params: {payment_pending: payment_pending}.merge(kwargs).compact,
|
268
|
+
params: {payment_gateway_id: payment_gateway_id, payment_pending: payment_pending}.merge(kwargs).compact,
|
267
269
|
body: body,
|
268
270
|
entity: self,
|
269
271
|
)
|