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.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/.github/api_update_reminder.md +25 -0
  3. data/.github/api_update_reminder_on_release.md +19 -0
  4. data/.github/workflows/api_update_reminder.yml +16 -0
  5. data/.github/workflows/api_update_reminder_on_release.yml +16 -0
  6. data/.github/workflows/stale.yml +20 -10
  7. data/CHANGELOG.md +11 -4
  8. data/CONTRIBUTING.md +2 -2
  9. data/Gemfile.lock +6 -6
  10. data/README.md +10 -10
  11. data/docs/getting_started.md +2 -2
  12. data/docs/usage/graphql.md +6 -0
  13. data/docs/usage/graphql_storefront.md +8 -2
  14. data/docs/usage/oauth.md +1 -1
  15. data/docs/usage/rest.md +9 -2
  16. data/docs/usage/webhooks.md +1 -1
  17. data/lib/shopify_api/admin_versions.rb +2 -1
  18. data/lib/shopify_api/clients/graphql/admin.rb +3 -3
  19. data/lib/shopify_api/clients/graphql/client.rb +13 -3
  20. data/lib/shopify_api/clients/graphql/storefront.rb +3 -3
  21. data/lib/shopify_api/clients/http_client.rb +8 -1
  22. data/lib/shopify_api/clients/rest/admin.rb +14 -3
  23. data/lib/shopify_api/rest/base.rb +3 -1
  24. data/lib/shopify_api/rest/resources/2022_07/application_charge.rb +6 -1
  25. data/lib/shopify_api/rest/resources/2022_07/application_credit.rb +6 -1
  26. data/lib/shopify_api/rest/resources/2022_07/gift_card.rb +4 -4
  27. data/lib/shopify_api/rest/resources/2022_07/metafield.rb +2 -2
  28. data/lib/shopify_api/rest/resources/2022_07/order.rb +2 -2
  29. data/lib/shopify_api/rest/resources/2022_07/recurring_application_charge.rb +6 -1
  30. data/lib/shopify_api/rest/resources/2022_07/shipping_zone.rb +6 -6
  31. data/lib/shopify_api/rest/resources/2022_07/usage_charge.rb +6 -1
  32. data/lib/shopify_api/rest/resources/2022_10/application_charge.rb +6 -1
  33. data/lib/shopify_api/rest/resources/2022_10/application_credit.rb +6 -1
  34. data/lib/shopify_api/rest/resources/2022_10/gift_card.rb +4 -4
  35. data/lib/shopify_api/rest/resources/2022_10/metafield.rb +2 -2
  36. data/lib/shopify_api/rest/resources/2022_10/order.rb +2 -2
  37. data/lib/shopify_api/rest/resources/2022_10/recurring_application_charge.rb +6 -1
  38. data/lib/shopify_api/rest/resources/2022_10/shipping_zone.rb +6 -6
  39. data/lib/shopify_api/rest/resources/2022_10/usage_charge.rb +6 -1
  40. data/lib/shopify_api/rest/resources/2023_01/application_charge.rb +6 -1
  41. data/lib/shopify_api/rest/resources/2023_01/application_credit.rb +6 -1
  42. data/lib/shopify_api/rest/resources/2023_01/dispute_evidence.rb +117 -0
  43. data/lib/shopify_api/rest/resources/{2022_04/storefront_access_token.rb → 2023_01/dispute_file_upload.rb} +27 -33
  44. data/lib/shopify_api/rest/resources/2023_01/gift_card.rb +4 -4
  45. data/lib/shopify_api/rest/resources/2023_01/metafield.rb +2 -2
  46. data/lib/shopify_api/rest/resources/2023_01/order.rb +2 -2
  47. data/lib/shopify_api/rest/resources/2023_01/recurring_application_charge.rb +6 -1
  48. data/lib/shopify_api/rest/resources/2023_01/shipping_zone.rb +6 -6
  49. data/lib/shopify_api/rest/resources/2023_01/usage_charge.rb +6 -1
  50. data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/application_charge.rb +6 -1
  51. data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/application_credit.rb +6 -1
  52. data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/carrier_service.rb +0 -3
  53. data/lib/shopify_api/rest/resources/2023_04/dispute_evidence.rb +117 -0
  54. data/lib/shopify_api/rest/resources/{2022_04/android_pay_key.rb → 2023_04/dispute_file_upload.rb} +29 -25
  55. data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/fulfillment.rb +2 -49
  56. data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/fulfillment_order.rb +36 -8
  57. data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/fulfillment_service.rb +3 -3
  58. data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/gift_card.rb +4 -4
  59. data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/metafield.rb +2 -2
  60. data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/order.rb +14 -2
  61. data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/recurring_application_charge.rb +6 -1
  62. data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/shipping_zone.rb +6 -6
  63. data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/shop.rb +3 -0
  64. data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/transaction.rb +3 -0
  65. data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/usage_charge.rb +6 -1
  66. data/lib/shopify_api/version.rb +1 -1
  67. data/shopify_api.gemspec +1 -1
  68. metadata +85 -152
  69. data/lib/shopify_api/rest/resources/2022_01/android_pay_key.rb +0 -77
  70. data/lib/shopify_api/rest/resources/2022_01/customer.rb +0 -326
  71. data/lib/shopify_api/rest/resources/2022_01/fulfillment_order.rb +0 -281
  72. data/lib/shopify_api/rest/resources/2022_01/fulfillment_service.rb +0 -130
  73. data/lib/shopify_api/rest/resources/2022_01/gift_card.rb +0 -215
  74. data/lib/shopify_api/rest/resources/2022_01/metafield.rb +0 -349
  75. data/lib/shopify_api/rest/resources/2022_01/order.rb +0 -473
  76. data/lib/shopify_api/rest/resources/2022_01/price_rule.rb +0 -223
  77. data/lib/shopify_api/rest/resources/2022_01/usage_charge.rb +0 -97
  78. data/lib/shopify_api/rest/resources/2022_04/abandoned_checkout.rb +0 -190
  79. data/lib/shopify_api/rest/resources/2022_04/access_scope.rb +0 -58
  80. data/lib/shopify_api/rest/resources/2022_04/apple_pay_certificate.rb +0 -105
  81. data/lib/shopify_api/rest/resources/2022_04/application_charge.rb +0 -104
  82. data/lib/shopify_api/rest/resources/2022_04/application_credit.rb +0 -87
  83. data/lib/shopify_api/rest/resources/2022_04/article.rb +0 -265
  84. data/lib/shopify_api/rest/resources/2022_04/asset.rb +0 -118
  85. data/lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb +0 -86
  86. data/lib/shopify_api/rest/resources/2022_04/balance.rb +0 -50
  87. data/lib/shopify_api/rest/resources/2022_04/blog.rb +0 -162
  88. data/lib/shopify_api/rest/resources/2022_04/cancellation_request.rb +0 -83
  89. data/lib/shopify_api/rest/resources/2022_04/carrier_service.rb +0 -116
  90. data/lib/shopify_api/rest/resources/2022_04/checkout.rb +0 -209
  91. data/lib/shopify_api/rest/resources/2022_04/collect.rb +0 -142
  92. data/lib/shopify_api/rest/resources/2022_04/collection.rb +0 -110
  93. data/lib/shopify_api/rest/resources/2022_04/collection_listing.rb +0 -155
  94. data/lib/shopify_api/rest/resources/2022_04/comment.rb +0 -283
  95. data/lib/shopify_api/rest/resources/2022_04/country.rb +0 -137
  96. data/lib/shopify_api/rest/resources/2022_04/currency.rb +0 -57
  97. data/lib/shopify_api/rest/resources/2022_04/custom_collection.rb +0 -187
  98. data/lib/shopify_api/rest/resources/2022_04/customer_address.rb +0 -201
  99. data/lib/shopify_api/rest/resources/2022_04/customer_saved_search.rb +0 -169
  100. data/lib/shopify_api/rest/resources/2022_04/deprecated_api_call.rb +0 -57
  101. data/lib/shopify_api/rest/resources/2022_04/discount_code.rb +0 -219
  102. data/lib/shopify_api/rest/resources/2022_04/dispute.rb +0 -111
  103. data/lib/shopify_api/rest/resources/2022_04/draft_order.rb +0 -275
  104. data/lib/shopify_api/rest/resources/2022_04/event.rb +0 -148
  105. data/lib/shopify_api/rest/resources/2022_04/fulfillment.rb +0 -272
  106. data/lib/shopify_api/rest/resources/2022_04/fulfillment_event.rb +0 -166
  107. data/lib/shopify_api/rest/resources/2022_04/fulfillment_request.rb +0 -87
  108. data/lib/shopify_api/rest/resources/2022_04/gift_card_adjustment.rb +0 -118
  109. data/lib/shopify_api/rest/resources/2022_04/image.rb +0 -157
  110. data/lib/shopify_api/rest/resources/2022_04/inventory_item.rb +0 -108
  111. data/lib/shopify_api/rest/resources/2022_04/inventory_level.rb +0 -179
  112. data/lib/shopify_api/rest/resources/2022_04/location.rb +0 -167
  113. data/lib/shopify_api/rest/resources/2022_04/locations_for_move.rb +0 -56
  114. data/lib/shopify_api/rest/resources/2022_04/marketing_event.rb +0 -209
  115. data/lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb +0 -110
  116. data/lib/shopify_api/rest/resources/2022_04/order_risk.rb +0 -135
  117. data/lib/shopify_api/rest/resources/2022_04/page.rb +0 -194
  118. data/lib/shopify_api/rest/resources/2022_04/payment.rb +0 -140
  119. data/lib/shopify_api/rest/resources/2022_04/payment_gateway.rb +0 -143
  120. data/lib/shopify_api/rest/resources/2022_04/payment_transaction.rb +0 -107
  121. data/lib/shopify_api/rest/resources/2022_04/payout.rb +0 -97
  122. data/lib/shopify_api/rest/resources/2022_04/policy.rb +0 -69
  123. data/lib/shopify_api/rest/resources/2022_04/product.rb +0 -223
  124. data/lib/shopify_api/rest/resources/2022_04/product_listing.rb +0 -196
  125. data/lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb +0 -88
  126. data/lib/shopify_api/rest/resources/2022_04/province.rb +0 -132
  127. data/lib/shopify_api/rest/resources/2022_04/recurring_application_charge.rb +0 -167
  128. data/lib/shopify_api/rest/resources/2022_04/redirect.rb +0 -139
  129. data/lib/shopify_api/rest/resources/2022_04/refund.rb +0 -151
  130. data/lib/shopify_api/rest/resources/2022_04/report.rb +0 -121
  131. data/lib/shopify_api/rest/resources/2022_04/resource_feedback.rb +0 -73
  132. data/lib/shopify_api/rest/resources/2022_04/script_tag.rb +0 -155
  133. data/lib/shopify_api/rest/resources/2022_04/shipping_zone.rb +0 -83
  134. data/lib/shopify_api/rest/resources/2022_04/shop.rb +0 -218
  135. data/lib/shopify_api/rest/resources/2022_04/smart_collection.rb +0 -216
  136. data/lib/shopify_api/rest/resources/2022_04/tender_transaction.rb +0 -93
  137. data/lib/shopify_api/rest/resources/2022_04/theme.rb +0 -120
  138. data/lib/shopify_api/rest/resources/2022_04/transaction.rb +0 -181
  139. data/lib/shopify_api/rest/resources/2022_04/user.rb +0 -138
  140. data/lib/shopify_api/rest/resources/2022_04/variant.rb +0 -212
  141. data/lib/shopify_api/rest/resources/2022_04/webhook.rb +0 -168
  142. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/abandoned_checkout.rb +0 -0
  143. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/access_scope.rb +0 -0
  144. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/apple_pay_certificate.rb +0 -0
  145. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/article.rb +0 -0
  146. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/asset.rb +0 -0
  147. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/assigned_fulfillment_order.rb +0 -0
  148. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/balance.rb +0 -0
  149. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/blog.rb +0 -0
  150. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/cancellation_request.rb +0 -0
  151. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/checkout.rb +0 -0
  152. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/collect.rb +0 -0
  153. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/collection.rb +0 -0
  154. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/collection_listing.rb +0 -0
  155. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/comment.rb +0 -0
  156. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/country.rb +0 -0
  157. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/currency.rb +0 -0
  158. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/custom_collection.rb +0 -0
  159. /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/customer.rb +0 -0
  160. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/customer_address.rb +0 -0
  161. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/customer_saved_search.rb +0 -0
  162. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/deprecated_api_call.rb +0 -0
  163. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/discount_code.rb +0 -0
  164. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/dispute.rb +0 -0
  165. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/draft_order.rb +0 -0
  166. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/event.rb +0 -0
  167. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/fulfillment_event.rb +0 -0
  168. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/fulfillment_request.rb +0 -0
  169. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/gift_card_adjustment.rb +0 -0
  170. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/image.rb +0 -0
  171. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/inventory_item.rb +0 -0
  172. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/inventory_level.rb +0 -0
  173. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/location.rb +0 -0
  174. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/locations_for_move.rb +0 -0
  175. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/marketing_event.rb +0 -0
  176. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/mobile_platform_application.rb +0 -0
  177. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/order_risk.rb +0 -0
  178. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/page.rb +0 -0
  179. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/payment.rb +0 -0
  180. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/payment_gateway.rb +0 -0
  181. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/payment_transaction.rb +0 -0
  182. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/payout.rb +0 -0
  183. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/policy.rb +0 -0
  184. /data/lib/shopify_api/rest/resources/{2022_04 → 2023_04}/price_rule.rb +0 -0
  185. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/product.rb +0 -0
  186. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/product_listing.rb +0 -0
  187. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/product_resource_feedback.rb +0 -0
  188. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/province.rb +0 -0
  189. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/redirect.rb +0 -0
  190. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/refund.rb +0 -0
  191. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/report.rb +0 -0
  192. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/resource_feedback.rb +0 -0
  193. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/script_tag.rb +0 -0
  194. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/smart_collection.rb +0 -0
  195. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/storefront_access_token.rb +0 -0
  196. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/tender_transaction.rb +0 -0
  197. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/theme.rb +0 -0
  198. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/user.rb +0 -0
  199. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/variant.rb +0 -0
  200. /data/lib/shopify_api/rest/resources/{2022_01 → 2023_04}/webhook.rb +0 -0
@@ -1,473 +0,0 @@
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 Order < 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
- @line_items = T.let(nil, T.nilable(T::Array[T.untyped]))
20
- @app_id = T.let(nil, T.nilable(Integer))
21
- @billing_address = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
22
- @browser_ip = T.let(nil, T.nilable(String))
23
- @buyer_accepts_marketing = T.let(nil, T.nilable(T::Boolean))
24
- @cancel_reason = T.let(nil, T.nilable(String))
25
- @cancelled_at = T.let(nil, T.nilable(String))
26
- @cart_token = T.let(nil, T.nilable(String))
27
- @checkout_token = T.let(nil, T.nilable(String))
28
- @client_details = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
29
- @closed_at = T.let(nil, T.nilable(String))
30
- @created_at = T.let(nil, T.nilable(String))
31
- @currency = T.let(nil, T.nilable(String))
32
- @current_subtotal_price = T.let(nil, T.nilable(String))
33
- @current_subtotal_price_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
34
- @current_total_discounts = T.let(nil, T.nilable(String))
35
- @current_total_discounts_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
36
- @current_total_duties_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
37
- @current_total_price = T.let(nil, T.nilable(String))
38
- @current_total_price_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
39
- @current_total_tax = T.let(nil, T.nilable(String))
40
- @current_total_tax_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
41
- @customer = T.let(nil, T.nilable(Customer))
42
- @customer_locale = T.let(nil, T.nilable(String))
43
- @discount_applications = T.let(nil, T.nilable(T::Array[T.untyped]))
44
- @discount_codes = T.let(nil, T.nilable(T::Array[T.untyped]))
45
- @email = T.let(nil, T.nilable(String))
46
- @estimated_taxes = T.let(nil, T.nilable(T::Boolean))
47
- @financial_status = T.let(nil, T.nilable(String))
48
- @fulfillment_status = T.let(nil, T.nilable(String))
49
- @fulfillments = T.let(nil, T.nilable(T::Array[T.untyped]))
50
- @gateway = T.let(nil, T.nilable(String))
51
- @id = T.let(nil, T.nilable(Integer))
52
- @landing_site = T.let(nil, T.nilable(String))
53
- @location_id = T.let(nil, T.nilable(Integer))
54
- @name = T.let(nil, T.nilable(String))
55
- @note = T.let(nil, T.nilable(String))
56
- @note_attributes = T.let(nil, T.nilable(T::Array[T.untyped]))
57
- @number = T.let(nil, T.nilable(Integer))
58
- @order_number = T.let(nil, T.nilable(Integer))
59
- @order_status_url = T.let(nil, T.nilable(String))
60
- @original_total_duties_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
61
- @payment_details = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
62
- @payment_gateway_names = T.let(nil, T.nilable(T::Array[T.untyped]))
63
- @payment_terms = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
64
- @phone = T.let(nil, T.nilable(String))
65
- @presentment_currency = T.let(nil, T.nilable(String))
66
- @processed_at = T.let(nil, T.nilable(String))
67
- @processing_method = T.let(nil, T.nilable(String))
68
- @referring_site = T.let(nil, T.nilable(String))
69
- @refunds = T.let(nil, T.nilable(T::Array[T.untyped]))
70
- @shipping_address = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
71
- @shipping_lines = T.let(nil, T.nilable(T::Array[T.untyped]))
72
- @source_identifier = T.let(nil, T.nilable(String))
73
- @source_name = T.let(nil, T.nilable(String))
74
- @source_url = T.let(nil, T.nilable(String))
75
- @subtotal_price = T.let(nil, T.nilable(Float))
76
- @subtotal_price_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
77
- @tags = T.let(nil, T.nilable(String))
78
- @tax_lines = T.let(nil, T.nilable(T::Array[T.untyped]))
79
- @taxes_included = T.let(nil, T.nilable(T::Boolean))
80
- @test = T.let(nil, T.nilable(T::Boolean))
81
- @token = T.let(nil, T.nilable(String))
82
- @total_discounts = T.let(nil, T.nilable(String))
83
- @total_discounts_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
84
- @total_line_items_price = T.let(nil, T.nilable(String))
85
- @total_line_items_price_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
86
- @total_outstanding = T.let(nil, T.nilable(String))
87
- @total_price = T.let(nil, T.nilable(String))
88
- @total_price_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
89
- @total_shipping_price_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
90
- @total_tax = T.let(nil, T.nilable(T.any(String, Float)))
91
- @total_tax_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
92
- @total_tip_received = T.let(nil, T.nilable(String))
93
- @total_weight = T.let(nil, T.nilable(Integer))
94
- @updated_at = T.let(nil, T.nilable(String))
95
- @user_id = T.let(nil, T.nilable(Integer))
96
- end
97
-
98
- @has_one = T.let({
99
- customer: Customer
100
- }, T::Hash[Symbol, Class])
101
- @has_many = T.let({
102
- discount_codes: DiscountCode,
103
- fulfillments: Fulfillment,
104
- refunds: Refund
105
- }, T::Hash[Symbol, Class])
106
- @paths = T.let([
107
- {http_method: :delete, operation: :delete, ids: [:id], path: "orders/<id>.json"},
108
- {http_method: :get, operation: :count, ids: [], path: "orders/count.json"},
109
- {http_method: :get, operation: :get, ids: [], path: "orders.json"},
110
- {http_method: :get, operation: :get, ids: [:id], path: "orders/<id>.json"},
111
- {http_method: :post, operation: :cancel, ids: [:id], path: "orders/<id>/cancel.json"},
112
- {http_method: :post, operation: :close, ids: [:id], path: "orders/<id>/close.json"},
113
- {http_method: :post, operation: :open, ids: [:id], path: "orders/<id>/open.json"},
114
- {http_method: :post, operation: :post, ids: [], path: "orders.json"},
115
- {http_method: :put, operation: :put, ids: [:id], path: "orders/<id>.json"}
116
- ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
117
-
118
- sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
119
- attr_reader :line_items
120
- sig { returns(T.nilable(Integer)) }
121
- attr_reader :app_id
122
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
123
- attr_reader :billing_address
124
- sig { returns(T.nilable(String)) }
125
- attr_reader :browser_ip
126
- sig { returns(T.nilable(T::Boolean)) }
127
- attr_reader :buyer_accepts_marketing
128
- sig { returns(T.nilable(String)) }
129
- attr_reader :cancel_reason
130
- sig { returns(T.nilable(String)) }
131
- attr_reader :cancelled_at
132
- sig { returns(T.nilable(String)) }
133
- attr_reader :cart_token
134
- sig { returns(T.nilable(String)) }
135
- attr_reader :checkout_token
136
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
137
- attr_reader :client_details
138
- sig { returns(T.nilable(String)) }
139
- attr_reader :closed_at
140
- sig { returns(T.nilable(String)) }
141
- attr_reader :created_at
142
- sig { returns(T.nilable(String)) }
143
- attr_reader :currency
144
- sig { returns(T.nilable(String)) }
145
- attr_reader :current_subtotal_price
146
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
147
- attr_reader :current_subtotal_price_set
148
- sig { returns(T.nilable(String)) }
149
- attr_reader :current_total_discounts
150
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
151
- attr_reader :current_total_discounts_set
152
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
153
- attr_reader :current_total_duties_set
154
- sig { returns(T.nilable(String)) }
155
- attr_reader :current_total_price
156
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
157
- attr_reader :current_total_price_set
158
- sig { returns(T.nilable(String)) }
159
- attr_reader :current_total_tax
160
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
161
- attr_reader :current_total_tax_set
162
- sig { returns(T.nilable(Customer)) }
163
- attr_reader :customer
164
- sig { returns(T.nilable(String)) }
165
- attr_reader :customer_locale
166
- sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
167
- attr_reader :discount_applications
168
- sig { returns(T.nilable(T::Array[DiscountCode])) }
169
- attr_reader :discount_codes
170
- sig { returns(T.nilable(String)) }
171
- attr_reader :email
172
- sig { returns(T.nilable(T::Boolean)) }
173
- attr_reader :estimated_taxes
174
- sig { returns(T.nilable(String)) }
175
- attr_reader :financial_status
176
- sig { returns(T.nilable(String)) }
177
- attr_reader :fulfillment_status
178
- sig { returns(T.nilable(T::Array[Fulfillment])) }
179
- attr_reader :fulfillments
180
- sig { returns(T.nilable(String)) }
181
- attr_reader :gateway
182
- sig { returns(T.nilable(Integer)) }
183
- attr_reader :id
184
- sig { returns(T.nilable(String)) }
185
- attr_reader :landing_site
186
- sig { returns(T.nilable(Integer)) }
187
- attr_reader :location_id
188
- sig { returns(T.nilable(String)) }
189
- attr_reader :name
190
- sig { returns(T.nilable(String)) }
191
- attr_reader :note
192
- sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
193
- attr_reader :note_attributes
194
- sig { returns(T.nilable(Integer)) }
195
- attr_reader :number
196
- sig { returns(T.nilable(Integer)) }
197
- attr_reader :order_number
198
- sig { returns(T.nilable(String)) }
199
- attr_reader :order_status_url
200
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
201
- attr_reader :original_total_duties_set
202
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
203
- attr_reader :payment_details
204
- sig { returns(T.nilable(T::Array[String])) }
205
- attr_reader :payment_gateway_names
206
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
207
- attr_reader :payment_terms
208
- sig { returns(T.nilable(String)) }
209
- attr_reader :phone
210
- sig { returns(T.nilable(String)) }
211
- attr_reader :presentment_currency
212
- sig { returns(T.nilable(String)) }
213
- attr_reader :processed_at
214
- sig { returns(T.nilable(String)) }
215
- attr_reader :processing_method
216
- sig { returns(T.nilable(String)) }
217
- attr_reader :referring_site
218
- sig { returns(T.nilable(T::Array[Refund])) }
219
- attr_reader :refunds
220
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
221
- attr_reader :shipping_address
222
- sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
223
- attr_reader :shipping_lines
224
- sig { returns(T.nilable(String)) }
225
- attr_reader :source_identifier
226
- sig { returns(T.nilable(String)) }
227
- attr_reader :source_name
228
- sig { returns(T.nilable(String)) }
229
- attr_reader :source_url
230
- sig { returns(T.nilable(Float)) }
231
- attr_reader :subtotal_price
232
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
233
- attr_reader :subtotal_price_set
234
- sig { returns(T.nilable(String)) }
235
- attr_reader :tags
236
- sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
237
- attr_reader :tax_lines
238
- sig { returns(T.nilable(T::Boolean)) }
239
- attr_reader :taxes_included
240
- sig { returns(T.nilable(T::Boolean)) }
241
- attr_reader :test
242
- sig { returns(T.nilable(String)) }
243
- attr_reader :token
244
- sig { returns(T.nilable(String)) }
245
- attr_reader :total_discounts
246
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
247
- attr_reader :total_discounts_set
248
- sig { returns(T.nilable(String)) }
249
- attr_reader :total_line_items_price
250
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
251
- attr_reader :total_line_items_price_set
252
- sig { returns(T.nilable(String)) }
253
- attr_reader :total_outstanding
254
- sig { returns(T.nilable(String)) }
255
- attr_reader :total_price
256
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
257
- attr_reader :total_price_set
258
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
259
- attr_reader :total_shipping_price_set
260
- sig { returns(T.nilable(T.any(String, Float))) }
261
- attr_reader :total_tax
262
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
263
- attr_reader :total_tax_set
264
- sig { returns(T.nilable(String)) }
265
- attr_reader :total_tip_received
266
- sig { returns(T.nilable(Integer)) }
267
- attr_reader :total_weight
268
- sig { returns(T.nilable(String)) }
269
- attr_reader :updated_at
270
- sig { returns(T.nilable(Integer)) }
271
- attr_reader :user_id
272
-
273
- class << self
274
- sig do
275
- params(
276
- id: T.any(Integer, String),
277
- fields: T.untyped,
278
- session: Auth::Session
279
- ).returns(T.nilable(Order))
280
- end
281
- def find(
282
- id:,
283
- fields: nil,
284
- session: ShopifyAPI::Context.active_session
285
- )
286
- result = base_find(
287
- session: session,
288
- ids: {id: id},
289
- params: {fields: fields},
290
- )
291
- T.cast(result[0], T.nilable(Order))
292
- end
293
-
294
- sig do
295
- params(
296
- id: T.any(Integer, String),
297
- session: Auth::Session
298
- ).returns(T.untyped)
299
- end
300
- def delete(
301
- id:,
302
- session: ShopifyAPI::Context.active_session
303
- )
304
- request(
305
- http_method: :delete,
306
- operation: :delete,
307
- session: session,
308
- ids: {id: id},
309
- params: {},
310
- )
311
- end
312
-
313
- sig do
314
- params(
315
- ids: T.untyped,
316
- limit: T.untyped,
317
- since_id: T.untyped,
318
- created_at_min: T.untyped,
319
- created_at_max: T.untyped,
320
- updated_at_min: T.untyped,
321
- updated_at_max: T.untyped,
322
- processed_at_min: T.untyped,
323
- processed_at_max: T.untyped,
324
- attribution_app_id: T.untyped,
325
- status: T.untyped,
326
- financial_status: T.untyped,
327
- fulfillment_status: T.untyped,
328
- fields: T.untyped,
329
- session: Auth::Session,
330
- kwargs: T.untyped
331
- ).returns(T::Array[Order])
332
- end
333
- def all(
334
- ids: nil,
335
- limit: nil,
336
- since_id: nil,
337
- created_at_min: nil,
338
- created_at_max: nil,
339
- updated_at_min: nil,
340
- updated_at_max: nil,
341
- processed_at_min: nil,
342
- processed_at_max: nil,
343
- attribution_app_id: nil,
344
- status: nil,
345
- financial_status: nil,
346
- fulfillment_status: nil,
347
- fields: nil,
348
- session: ShopifyAPI::Context.active_session,
349
- **kwargs
350
- )
351
- response = base_find(
352
- session: session,
353
- ids: {},
354
- params: {ids: ids, 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, processed_at_min: processed_at_min, processed_at_max: processed_at_max, attribution_app_id: attribution_app_id, status: status, financial_status: financial_status, fulfillment_status: fulfillment_status, fields: fields}.merge(kwargs).compact,
355
- )
356
-
357
- T.cast(response, T::Array[Order])
358
- end
359
-
360
- sig do
361
- params(
362
- created_at_min: T.untyped,
363
- created_at_max: T.untyped,
364
- updated_at_min: T.untyped,
365
- updated_at_max: T.untyped,
366
- status: T.untyped,
367
- financial_status: T.untyped,
368
- fulfillment_status: T.untyped,
369
- session: Auth::Session,
370
- kwargs: T.untyped
371
- ).returns(T.untyped)
372
- end
373
- def count(
374
- created_at_min: nil,
375
- created_at_max: nil,
376
- updated_at_min: nil,
377
- updated_at_max: nil,
378
- status: nil,
379
- financial_status: nil,
380
- fulfillment_status: nil,
381
- session: ShopifyAPI::Context.active_session,
382
- **kwargs
383
- )
384
- request(
385
- http_method: :get,
386
- operation: :count,
387
- session: session,
388
- ids: {},
389
- 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, status: status, financial_status: financial_status, fulfillment_status: fulfillment_status}.merge(kwargs).compact,
390
- body: {},
391
- entity: nil,
392
- )
393
- end
394
-
395
- end
396
-
397
- sig do
398
- params(
399
- amount: T.untyped,
400
- currency: T.untyped,
401
- restock: T.untyped,
402
- reason: T.untyped,
403
- email: T.untyped,
404
- refund: T.untyped,
405
- body: T.untyped,
406
- kwargs: T.untyped
407
- ).returns(T.untyped)
408
- end
409
- def cancel(
410
- amount: nil,
411
- currency: nil,
412
- restock: nil,
413
- reason: nil,
414
- email: nil,
415
- refund: nil,
416
- body: nil,
417
- **kwargs
418
- )
419
- self.class.request(
420
- http_method: :post,
421
- operation: :cancel,
422
- session: @session,
423
- ids: {id: @id},
424
- params: {amount: amount, currency: currency, restock: restock, reason: reason, email: email, refund: refund}.merge(kwargs).compact,
425
- body: body,
426
- entity: self,
427
- )
428
- end
429
-
430
- sig do
431
- params(
432
- body: T.untyped,
433
- kwargs: T.untyped
434
- ).returns(T.untyped)
435
- end
436
- def close(
437
- body: nil,
438
- **kwargs
439
- )
440
- self.class.request(
441
- http_method: :post,
442
- operation: :close,
443
- session: @session,
444
- ids: {id: @id},
445
- params: {}.merge(kwargs).compact,
446
- body: body,
447
- entity: self,
448
- )
449
- end
450
-
451
- sig do
452
- params(
453
- body: T.untyped,
454
- kwargs: T.untyped
455
- ).returns(T.untyped)
456
- end
457
- def open(
458
- body: nil,
459
- **kwargs
460
- )
461
- self.class.request(
462
- http_method: :post,
463
- operation: :open,
464
- session: @session,
465
- ids: {id: @id},
466
- params: {}.merge(kwargs).compact,
467
- body: body,
468
- entity: self,
469
- )
470
- end
471
-
472
- end
473
- end
@@ -1,223 +0,0 @@
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 PriceRule < 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
- @allocation_limit = T.let(nil, T.nilable(Integer))
20
- @allocation_method = T.let(nil, T.nilable(String))
21
- @created_at = T.let(nil, T.nilable(String))
22
- @customer_selection = T.let(nil, T.nilable(String))
23
- @ends_at = T.let(nil, T.nilable(String))
24
- @entitled_collection_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
25
- @entitled_country_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
26
- @entitled_product_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
27
- @entitled_variant_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
28
- @id = T.let(nil, T.nilable(Integer))
29
- @once_per_customer = T.let(nil, T.nilable(T::Boolean))
30
- @prerequisite_collection_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
31
- @prerequisite_customer_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
32
- @prerequisite_product_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
33
- @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
- @prerequisite_shipping_price_range = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
36
- @prerequisite_subtotal_range = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
37
- @prerequisite_to_entitlement_purchase = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
38
- @prerequisite_to_entitlement_quantity_ratio = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
39
- @prerequisite_variant_ids = T.let(nil, T.nilable(T::Array[T.untyped]))
40
- @starts_at = T.let(nil, T.nilable(String))
41
- @target_selection = T.let(nil, T.nilable(String))
42
- @target_type = T.let(nil, T.nilable(String))
43
- @title = T.let(nil, T.nilable(String))
44
- @updated_at = T.let(nil, T.nilable(String))
45
- @usage_limit = T.let(nil, T.nilable(Integer))
46
- @value = T.let(nil, T.nilable(String))
47
- @value_type = T.let(nil, T.nilable(String))
48
- end
49
-
50
- @has_one = T.let({}, T::Hash[Symbol, Class])
51
- @has_many = T.let({}, T::Hash[Symbol, Class])
52
- @paths = T.let([
53
- {http_method: :delete, operation: :delete, ids: [:id], path: "price_rules/<id>.json"},
54
- {http_method: :get, operation: :count, ids: [], path: "price_rules/count.json"},
55
- {http_method: :get, operation: :get, ids: [], path: "price_rules.json"},
56
- {http_method: :get, operation: :get, ids: [:id], path: "price_rules/<id>.json"},
57
- {http_method: :post, operation: :post, ids: [], path: "price_rules.json"},
58
- {http_method: :put, operation: :put, ids: [:id], path: "price_rules/<id>.json"}
59
- ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
60
-
61
- sig { returns(T.nilable(Integer)) }
62
- attr_reader :allocation_limit
63
- sig { returns(T.nilable(String)) }
64
- attr_reader :allocation_method
65
- sig { returns(T.nilable(String)) }
66
- attr_reader :created_at
67
- sig { returns(T.nilable(String)) }
68
- attr_reader :customer_selection
69
- sig { returns(T.nilable(String)) }
70
- attr_reader :ends_at
71
- sig { returns(T.nilable(T::Array[Integer])) }
72
- attr_reader :entitled_collection_ids
73
- sig { returns(T.nilable(T::Array[Integer])) }
74
- attr_reader :entitled_country_ids
75
- sig { returns(T.nilable(T::Array[Integer])) }
76
- attr_reader :entitled_product_ids
77
- sig { returns(T.nilable(T::Array[Integer])) }
78
- attr_reader :entitled_variant_ids
79
- sig { returns(T.nilable(Integer)) }
80
- attr_reader :id
81
- sig { returns(T.nilable(T::Boolean)) }
82
- attr_reader :once_per_customer
83
- sig { returns(T.nilable(T::Array[Integer])) }
84
- attr_reader :prerequisite_collection_ids
85
- sig { returns(T.nilable(T::Array[Integer])) }
86
- attr_reader :prerequisite_customer_ids
87
- sig { returns(T.nilable(T::Array[Integer])) }
88
- attr_reader :prerequisite_product_ids
89
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
90
- attr_reader :prerequisite_quantity_range
91
- sig { returns(T.nilable(T::Array[Integer])) }
92
- attr_reader :prerequisite_saved_search_ids
93
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
94
- attr_reader :prerequisite_shipping_price_range
95
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
96
- attr_reader :prerequisite_subtotal_range
97
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
98
- attr_reader :prerequisite_to_entitlement_purchase
99
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
100
- attr_reader :prerequisite_to_entitlement_quantity_ratio
101
- sig { returns(T.nilable(T::Array[Integer])) }
102
- attr_reader :prerequisite_variant_ids
103
- sig { returns(T.nilable(String)) }
104
- attr_reader :starts_at
105
- sig { returns(T.nilable(String)) }
106
- attr_reader :target_selection
107
- sig { returns(T.nilable(String)) }
108
- attr_reader :target_type
109
- sig { returns(T.nilable(String)) }
110
- attr_reader :title
111
- sig { returns(T.nilable(String)) }
112
- attr_reader :updated_at
113
- sig { returns(T.nilable(Integer)) }
114
- attr_reader :usage_limit
115
- sig { returns(T.nilable(String)) }
116
- attr_reader :value
117
- sig { returns(T.nilable(String)) }
118
- attr_reader :value_type
119
-
120
- class << self
121
- sig do
122
- params(
123
- id: T.any(Integer, String),
124
- session: Auth::Session
125
- ).returns(T.nilable(PriceRule))
126
- end
127
- def find(
128
- id:,
129
- session: ShopifyAPI::Context.active_session
130
- )
131
- result = base_find(
132
- session: session,
133
- ids: {id: id},
134
- params: {},
135
- )
136
- T.cast(result[0], T.nilable(PriceRule))
137
- end
138
-
139
- sig do
140
- params(
141
- id: T.any(Integer, String),
142
- session: Auth::Session
143
- ).returns(T.untyped)
144
- end
145
- def delete(
146
- id:,
147
- session: ShopifyAPI::Context.active_session
148
- )
149
- request(
150
- http_method: :delete,
151
- operation: :delete,
152
- session: session,
153
- ids: {id: id},
154
- params: {},
155
- )
156
- end
157
-
158
- sig do
159
- params(
160
- limit: T.untyped,
161
- since_id: T.untyped,
162
- created_at_min: T.untyped,
163
- created_at_max: T.untyped,
164
- updated_at_min: T.untyped,
165
- updated_at_max: T.untyped,
166
- starts_at_min: T.untyped,
167
- starts_at_max: T.untyped,
168
- ends_at_min: T.untyped,
169
- ends_at_max: T.untyped,
170
- times_used: T.untyped,
171
- session: Auth::Session,
172
- kwargs: T.untyped
173
- ).returns(T::Array[PriceRule])
174
- end
175
- def all(
176
- limit: nil,
177
- since_id: nil,
178
- created_at_min: nil,
179
- created_at_max: nil,
180
- updated_at_min: nil,
181
- updated_at_max: nil,
182
- starts_at_min: nil,
183
- starts_at_max: nil,
184
- ends_at_min: nil,
185
- ends_at_max: nil,
186
- times_used: nil,
187
- session: ShopifyAPI::Context.active_session,
188
- **kwargs
189
- )
190
- response = base_find(
191
- session: session,
192
- ids: {},
193
- 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, starts_at_min: starts_at_min, starts_at_max: starts_at_max, ends_at_min: ends_at_min, ends_at_max: ends_at_max, times_used: times_used}.merge(kwargs).compact,
194
- )
195
-
196
- T.cast(response, T::Array[PriceRule])
197
- end
198
-
199
- sig do
200
- params(
201
- session: Auth::Session,
202
- kwargs: T.untyped
203
- ).returns(T.untyped)
204
- end
205
- def count(
206
- session: ShopifyAPI::Context.active_session,
207
- **kwargs
208
- )
209
- request(
210
- http_method: :get,
211
- operation: :count,
212
- session: session,
213
- ids: {},
214
- params: {}.merge(kwargs).compact,
215
- body: {},
216
- entity: nil,
217
- )
218
- end
219
-
220
- end
221
-
222
- end
223
- end