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,97 +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 UsageCharge < 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
- @created_at = T.let(nil, T.nilable(String))
20
- @description = T.let(nil, T.nilable(String))
21
- @id = T.let(nil, T.nilable(Integer))
22
- @price = T.let(nil, T.nilable(Integer))
23
- @recurring_application_charge_id = T.let(nil, T.nilable(Integer))
24
- @updated_at = T.let(nil, T.nilable(String))
25
- end
26
-
27
- @has_one = T.let({}, T::Hash[Symbol, Class])
28
- @has_many = T.let({}, T::Hash[Symbol, Class])
29
- @paths = T.let([
30
- {http_method: :get, operation: :get, ids: [:recurring_application_charge_id], path: "recurring_application_charges/<recurring_application_charge_id>/usage_charges.json"},
31
- {http_method: :get, operation: :get, ids: [:recurring_application_charge_id, :id], path: "recurring_application_charges/<recurring_application_charge_id>/usage_charges/<id>.json"},
32
- {http_method: :post, operation: :post, ids: [:recurring_application_charge_id], path: "recurring_application_charges/<recurring_application_charge_id>/usage_charges.json"}
33
- ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
34
-
35
- sig { returns(T.nilable(String)) }
36
- attr_reader :created_at
37
- sig { returns(T.nilable(String)) }
38
- attr_reader :description
39
- sig { returns(T.nilable(Integer)) }
40
- attr_reader :id
41
- sig { returns(T.nilable(Integer)) }
42
- attr_reader :price
43
- sig { returns(T.nilable(Integer)) }
44
- attr_reader :recurring_application_charge_id
45
- sig { returns(T.nilable(String)) }
46
- attr_reader :updated_at
47
-
48
- class << self
49
- sig do
50
- params(
51
- id: T.any(Integer, String),
52
- recurring_application_charge_id: T.nilable(T.any(Integer, String)),
53
- fields: T.untyped,
54
- session: Auth::Session
55
- ).returns(T.nilable(UsageCharge))
56
- end
57
- def find(
58
- id:,
59
- recurring_application_charge_id: nil,
60
- fields: nil,
61
- session: ShopifyAPI::Context.active_session
62
- )
63
- result = base_find(
64
- session: session,
65
- ids: {id: id, recurring_application_charge_id: recurring_application_charge_id},
66
- params: {fields: fields},
67
- )
68
- T.cast(result[0], T.nilable(UsageCharge))
69
- end
70
-
71
- sig do
72
- params(
73
- recurring_application_charge_id: T.nilable(T.any(Integer, String)),
74
- fields: T.untyped,
75
- session: Auth::Session,
76
- kwargs: T.untyped
77
- ).returns(T::Array[UsageCharge])
78
- end
79
- def all(
80
- recurring_application_charge_id: nil,
81
- fields: nil,
82
- session: ShopifyAPI::Context.active_session,
83
- **kwargs
84
- )
85
- response = base_find(
86
- session: session,
87
- ids: {recurring_application_charge_id: recurring_application_charge_id},
88
- params: {fields: fields}.merge(kwargs).compact,
89
- )
90
-
91
- T.cast(response, T::Array[UsageCharge])
92
- end
93
-
94
- end
95
-
96
- end
97
- end
@@ -1,190 +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 AbandonedCheckout < 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
- @abandoned_checkout_url = T.let(nil, T.nilable(String))
20
- @billing_address = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
21
- @buyer_accepts_marketing = T.let(nil, T.nilable(T::Boolean))
22
- @buyer_accepts_sms_marketing = T.let(nil, T.nilable(T::Boolean))
23
- @cart_token = T.let(nil, T.nilable(String))
24
- @closed_at = T.let(nil, T.nilable(String))
25
- @completed_at = T.let(nil, T.nilable(String))
26
- @created_at = T.let(nil, T.nilable(String))
27
- @currency = T.let(nil, T.nilable(Currency))
28
- @customer = T.let(nil, T.nilable(Customer))
29
- @customer_locale = T.let(nil, T.nilable(String))
30
- @device_id = T.let(nil, T.nilable(Integer))
31
- @discount_codes = T.let(nil, T.nilable(T::Array[T.untyped]))
32
- @email = T.let(nil, T.nilable(String))
33
- @gateway = T.let(nil, T.nilable(String))
34
- @id = T.let(nil, T.nilable(Integer))
35
- @landing_site = T.let(nil, T.nilable(String))
36
- @line_items = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
37
- @location_id = T.let(nil, T.nilable(Integer))
38
- @note = T.let(nil, T.nilable(String))
39
- @phone = T.let(nil, T.nilable(String))
40
- @presentment_currency = T.let(nil, T.nilable(String))
41
- @referring_site = T.let(nil, T.nilable(String))
42
- @shipping_address = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
43
- @shipping_lines = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
44
- @sms_marketing_phone = T.let(nil, T.nilable(String))
45
- @source_name = T.let(nil, T.nilable(String))
46
- @subtotal_price = T.let(nil, T.nilable(String))
47
- @tax_lines = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
48
- @taxes_included = T.let(nil, T.nilable(T::Boolean))
49
- @token = T.let(nil, T.nilable(String))
50
- @total_discounts = T.let(nil, T.nilable(String))
51
- @total_duties = T.let(nil, T.nilable(String))
52
- @total_line_items_price = T.let(nil, T.nilable(String))
53
- @total_price = T.let(nil, T.nilable(String))
54
- @total_tax = T.let(nil, T.nilable(String))
55
- @total_weight = T.let(nil, T.nilable(Integer))
56
- @updated_at = T.let(nil, T.nilable(String))
57
- @user_id = T.let(nil, T.nilable(Integer))
58
- end
59
-
60
- @has_one = T.let({
61
- currency: Currency,
62
- customer: Customer
63
- }, T::Hash[Symbol, Class])
64
- @has_many = T.let({
65
- discount_codes: DiscountCode
66
- }, T::Hash[Symbol, Class])
67
- @paths = T.let([
68
- {http_method: :get, operation: :checkouts, ids: [], path: "checkouts.json"},
69
- {http_method: :get, operation: :checkouts, ids: [], path: "checkouts.json"}
70
- ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
71
-
72
- sig { returns(T.nilable(String)) }
73
- attr_reader :abandoned_checkout_url
74
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
75
- attr_reader :billing_address
76
- sig { returns(T.nilable(T::Boolean)) }
77
- attr_reader :buyer_accepts_marketing
78
- sig { returns(T.nilable(T::Boolean)) }
79
- attr_reader :buyer_accepts_sms_marketing
80
- sig { returns(T.nilable(String)) }
81
- attr_reader :cart_token
82
- sig { returns(T.nilable(String)) }
83
- attr_reader :closed_at
84
- sig { returns(T.nilable(String)) }
85
- attr_reader :completed_at
86
- sig { returns(T.nilable(String)) }
87
- attr_reader :created_at
88
- sig { returns(T.nilable(Currency)) }
89
- attr_reader :currency
90
- sig { returns(T.nilable(Customer)) }
91
- attr_reader :customer
92
- sig { returns(T.nilable(String)) }
93
- attr_reader :customer_locale
94
- sig { returns(T.nilable(Integer)) }
95
- attr_reader :device_id
96
- sig { returns(T.nilable(T::Array[DiscountCode])) }
97
- attr_reader :discount_codes
98
- sig { returns(T.nilable(String)) }
99
- attr_reader :email
100
- sig { returns(T.nilable(String)) }
101
- attr_reader :gateway
102
- sig { returns(T.nilable(Integer)) }
103
- attr_reader :id
104
- sig { returns(T.nilable(String)) }
105
- attr_reader :landing_site
106
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
107
- attr_reader :line_items
108
- sig { returns(T.nilable(Integer)) }
109
- attr_reader :location_id
110
- sig { returns(T.nilable(String)) }
111
- attr_reader :note
112
- sig { returns(T.nilable(String)) }
113
- attr_reader :phone
114
- sig { returns(T.nilable(String)) }
115
- attr_reader :presentment_currency
116
- sig { returns(T.nilable(String)) }
117
- attr_reader :referring_site
118
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
119
- attr_reader :shipping_address
120
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
121
- attr_reader :shipping_lines
122
- sig { returns(T.nilable(String)) }
123
- attr_reader :sms_marketing_phone
124
- sig { returns(T.nilable(String)) }
125
- attr_reader :source_name
126
- sig { returns(T.nilable(String)) }
127
- attr_reader :subtotal_price
128
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
129
- attr_reader :tax_lines
130
- sig { returns(T.nilable(T::Boolean)) }
131
- attr_reader :taxes_included
132
- sig { returns(T.nilable(String)) }
133
- attr_reader :token
134
- sig { returns(T.nilable(String)) }
135
- attr_reader :total_discounts
136
- sig { returns(T.nilable(String)) }
137
- attr_reader :total_duties
138
- sig { returns(T.nilable(String)) }
139
- attr_reader :total_line_items_price
140
- sig { returns(T.nilable(String)) }
141
- attr_reader :total_price
142
- sig { returns(T.nilable(String)) }
143
- attr_reader :total_tax
144
- sig { returns(T.nilable(Integer)) }
145
- attr_reader :total_weight
146
- sig { returns(T.nilable(String)) }
147
- attr_reader :updated_at
148
- sig { returns(T.nilable(Integer)) }
149
- attr_reader :user_id
150
-
151
- class << self
152
- sig do
153
- params(
154
- since_id: T.untyped,
155
- created_at_min: T.untyped,
156
- created_at_max: T.untyped,
157
- updated_at_min: T.untyped,
158
- updated_at_max: T.untyped,
159
- status: T.untyped,
160
- limit: T.untyped,
161
- session: Auth::Session,
162
- kwargs: T.untyped
163
- ).returns(T.untyped)
164
- end
165
- def checkouts(
166
- since_id: nil,
167
- created_at_min: nil,
168
- created_at_max: nil,
169
- updated_at_min: nil,
170
- updated_at_max: nil,
171
- status: nil,
172
- limit: nil,
173
- session: ShopifyAPI::Context.active_session,
174
- **kwargs
175
- )
176
- request(
177
- http_method: :get,
178
- operation: :checkouts,
179
- session: session,
180
- ids: {},
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,
182
- body: {},
183
- entity: nil,
184
- )
185
- end
186
-
187
- end
188
-
189
- end
190
- end
@@ -1,58 +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 AccessScope < 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
- @handle = T.let(nil, T.nilable(String))
20
- @access_scopes = T.let(nil, T.nilable(T::Array[T.untyped]))
21
- end
22
-
23
- @has_one = T.let({}, T::Hash[Symbol, Class])
24
- @has_many = T.let({}, T::Hash[Symbol, Class])
25
- @custom_prefix = T.let("/admin/oauth", T.nilable(String))
26
- @paths = T.let([
27
- {http_method: :get, operation: :get, ids: [], path: "access_scopes.json"}
28
- ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
29
-
30
- sig { returns(T.nilable(String)) }
31
- attr_reader :handle
32
- sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
33
- attr_reader :access_scopes
34
-
35
- class << self
36
- sig do
37
- params(
38
- session: Auth::Session,
39
- kwargs: T.untyped
40
- ).returns(T::Array[AccessScope])
41
- end
42
- def all(
43
- session: ShopifyAPI::Context.active_session,
44
- **kwargs
45
- )
46
- response = base_find(
47
- session: session,
48
- ids: {},
49
- params: {}.merge(kwargs).compact,
50
- )
51
-
52
- T.cast(response, T::Array[AccessScope])
53
- end
54
-
55
- end
56
-
57
- end
58
- end
@@ -1,105 +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 ApplePayCertificate < 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
- @id = T.let(nil, T.nilable(Integer))
20
- @merchant_id = T.let(nil, T.nilable(String))
21
- @status = T.let(nil, T.nilable(String))
22
- end
23
-
24
- @has_one = T.let({}, T::Hash[Symbol, Class])
25
- @has_many = T.let({}, T::Hash[Symbol, Class])
26
- @paths = T.let([
27
- {http_method: :delete, operation: :delete, ids: [:id], path: "apple_pay_certificates/<id>.json"},
28
- {http_method: :get, operation: :csr, ids: [:id], path: "apple_pay_certificates/<id>/csr.json"},
29
- {http_method: :get, operation: :get, ids: [:id], path: "apple_pay_certificates/<id>.json"},
30
- {http_method: :post, operation: :post, ids: [], path: "apple_pay_certificates.json"},
31
- {http_method: :put, operation: :put, ids: [:id], path: "apple_pay_certificates/<id>.json"}
32
- ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
33
-
34
- sig { returns(T.nilable(Integer)) }
35
- attr_reader :id
36
- sig { returns(T.nilable(String)) }
37
- attr_reader :merchant_id
38
- sig { returns(T.nilable(String)) }
39
- attr_reader :status
40
-
41
- class << self
42
- sig do
43
- params(
44
- id: T.any(Integer, String),
45
- session: Auth::Session
46
- ).returns(T.nilable(ApplePayCertificate))
47
- end
48
- def find(
49
- id:,
50
- session: ShopifyAPI::Context.active_session
51
- )
52
- result = base_find(
53
- session: session,
54
- ids: {id: id},
55
- params: {},
56
- )
57
- T.cast(result[0], T.nilable(ApplePayCertificate))
58
- end
59
-
60
- sig do
61
- params(
62
- id: T.any(Integer, String),
63
- session: Auth::Session
64
- ).returns(T.untyped)
65
- end
66
- def delete(
67
- id:,
68
- session: ShopifyAPI::Context.active_session
69
- )
70
- request(
71
- http_method: :delete,
72
- operation: :delete,
73
- session: session,
74
- ids: {id: id},
75
- params: {},
76
- )
77
- end
78
-
79
- sig do
80
- params(
81
- id: T.any(Integer, String),
82
- session: Auth::Session,
83
- kwargs: T.untyped
84
- ).returns(T.untyped)
85
- end
86
- def csr(
87
- id:,
88
- session: ShopifyAPI::Context.active_session,
89
- **kwargs
90
- )
91
- request(
92
- http_method: :get,
93
- operation: :csr,
94
- session: session,
95
- ids: {id: id},
96
- params: {}.merge(kwargs).compact,
97
- body: {},
98
- entity: nil,
99
- )
100
- end
101
-
102
- end
103
-
104
- end
105
- end
@@ -1,104 +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 ApplicationCharge < 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
- @confirmation_url = T.let(nil, T.nilable(String))
20
- @created_at = T.let(nil, T.nilable(String))
21
- @id = T.let(nil, T.nilable(Integer))
22
- @name = T.let(nil, T.nilable(String))
23
- @price = T.let(nil, T.nilable(T.any(String, Float)))
24
- @return_url = T.let(nil, T.nilable(String))
25
- @status = T.let(nil, T.nilable(String))
26
- @test = T.let(nil, T.nilable(T::Boolean))
27
- @updated_at = 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: :get, operation: :get, ids: [], path: "application_charges.json"},
34
- {http_method: :get, operation: :get, ids: [:id], path: "application_charges/<id>.json"},
35
- {http_method: :post, operation: :post, ids: [], path: "application_charges.json"}
36
- ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
37
-
38
- sig { returns(T.nilable(String)) }
39
- attr_reader :confirmation_url
40
- sig { returns(T.nilable(String)) }
41
- attr_reader :created_at
42
- sig { returns(T.nilable(Integer)) }
43
- attr_reader :id
44
- sig { returns(T.nilable(String)) }
45
- attr_reader :name
46
- sig { returns(T.nilable(T.any(String, Float))) }
47
- attr_reader :price
48
- sig { returns(T.nilable(String)) }
49
- attr_reader :return_url
50
- sig { returns(T.nilable(String)) }
51
- attr_reader :status
52
- sig { returns(T.nilable(T::Boolean)) }
53
- attr_reader :test
54
- sig { returns(T.nilable(String)) }
55
- attr_reader :updated_at
56
-
57
- class << self
58
- sig do
59
- params(
60
- id: T.any(Integer, String),
61
- fields: T.untyped,
62
- session: Auth::Session
63
- ).returns(T.nilable(ApplicationCharge))
64
- end
65
- def find(
66
- id:,
67
- fields: nil,
68
- session: ShopifyAPI::Context.active_session
69
- )
70
- result = base_find(
71
- session: session,
72
- ids: {id: id},
73
- params: {fields: fields},
74
- )
75
- T.cast(result[0], T.nilable(ApplicationCharge))
76
- end
77
-
78
- sig do
79
- params(
80
- since_id: T.untyped,
81
- fields: T.untyped,
82
- session: Auth::Session,
83
- kwargs: T.untyped
84
- ).returns(T::Array[ApplicationCharge])
85
- end
86
- def all(
87
- since_id: nil,
88
- fields: nil,
89
- session: ShopifyAPI::Context.active_session,
90
- **kwargs
91
- )
92
- response = base_find(
93
- session: session,
94
- ids: {},
95
- params: {since_id: since_id, fields: fields}.merge(kwargs).compact,
96
- )
97
-
98
- T.cast(response, T::Array[ApplicationCharge])
99
- end
100
-
101
- end
102
-
103
- end
104
- end
@@ -1,87 +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 ApplicationCredit < 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
- @amount = T.let(nil, T.nilable(Integer))
20
- @description = T.let(nil, T.nilable(String))
21
- @id = T.let(nil, T.nilable(Integer))
22
- @test = T.let(nil, T.nilable(T::Boolean))
23
- end
24
-
25
- @has_one = T.let({}, T::Hash[Symbol, Class])
26
- @has_many = T.let({}, T::Hash[Symbol, Class])
27
- @paths = T.let([
28
- {http_method: :get, operation: :get, ids: [], path: "application_credits.json"},
29
- {http_method: :get, operation: :get, ids: [:id], path: "application_credits/<id>.json"},
30
- {http_method: :post, operation: :post, ids: [], path: "application_credits.json"}
31
- ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
32
-
33
- sig { returns(T.nilable(Integer)) }
34
- attr_reader :amount
35
- sig { returns(T.nilable(String)) }
36
- attr_reader :description
37
- sig { returns(T.nilable(Integer)) }
38
- attr_reader :id
39
- sig { returns(T.nilable(T::Boolean)) }
40
- attr_reader :test
41
-
42
- class << self
43
- sig do
44
- params(
45
- id: T.any(Integer, String),
46
- fields: T.untyped,
47
- session: Auth::Session
48
- ).returns(T.nilable(ApplicationCredit))
49
- end
50
- def find(
51
- id:,
52
- fields: nil,
53
- session: ShopifyAPI::Context.active_session
54
- )
55
- result = base_find(
56
- session: session,
57
- ids: {id: id},
58
- params: {fields: fields},
59
- )
60
- T.cast(result[0], T.nilable(ApplicationCredit))
61
- end
62
-
63
- sig do
64
- params(
65
- fields: T.untyped,
66
- session: Auth::Session,
67
- kwargs: T.untyped
68
- ).returns(T::Array[ApplicationCredit])
69
- end
70
- def all(
71
- fields: nil,
72
- session: ShopifyAPI::Context.active_session,
73
- **kwargs
74
- )
75
- response = base_find(
76
- session: session,
77
- ids: {},
78
- params: {fields: fields}.merge(kwargs).compact,
79
- )
80
-
81
- T.cast(response, T::Array[ApplicationCredit])
82
- end
83
-
84
- end
85
-
86
- end
87
- end