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,167 +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 RecurringApplicationCharge < 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
- @activated_on = T.let(nil, T.nilable(String))
20
- @billing_on = T.let(nil, T.nilable(String))
21
- @cancelled_on = T.let(nil, T.nilable(String))
22
- @capped_amount = T.let(nil, T.nilable(T.any(String, Integer)))
23
- @confirmation_url = T.let(nil, T.nilable(String))
24
- @created_at = T.let(nil, T.nilable(String))
25
- @id = T.let(nil, T.nilable(Integer))
26
- @name = T.let(nil, T.nilable(String))
27
- @price = T.let(nil, T.nilable(T.any(String, Float)))
28
- @return_url = T.let(nil, T.nilable(String))
29
- @status = T.let(nil, T.nilable(String))
30
- @terms = T.let(nil, T.nilable(String))
31
- @test = T.let(nil, T.nilable(T::Boolean))
32
- @trial_days = T.let(nil, T.nilable(Integer))
33
- @trial_ends_on = T.let(nil, T.nilable(String))
34
- @updated_at = T.let(nil, T.nilable(String))
35
- end
36
-
37
- @has_one = T.let({}, T::Hash[Symbol, Class])
38
- @has_many = T.let({}, T::Hash[Symbol, Class])
39
- @paths = T.let([
40
- {http_method: :delete, operation: :delete, ids: [:id], path: "recurring_application_charges/<id>.json"},
41
- {http_method: :get, operation: :get, ids: [], path: "recurring_application_charges.json"},
42
- {http_method: :get, operation: :get, ids: [:id], path: "recurring_application_charges/<id>.json"},
43
- {http_method: :post, operation: :post, ids: [], path: "recurring_application_charges.json"},
44
- {http_method: :put, operation: :customize, ids: [:id], path: "recurring_application_charges/<id>/customize.json"}
45
- ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
46
-
47
- sig { returns(T.nilable(String)) }
48
- attr_reader :activated_on
49
- sig { returns(T.nilable(String)) }
50
- attr_reader :billing_on
51
- sig { returns(T.nilable(String)) }
52
- attr_reader :cancelled_on
53
- sig { returns(T.nilable(T.any(String, Integer))) }
54
- attr_reader :capped_amount
55
- sig { returns(T.nilable(String)) }
56
- attr_reader :confirmation_url
57
- sig { returns(T.nilable(String)) }
58
- attr_reader :created_at
59
- sig { returns(T.nilable(Integer)) }
60
- attr_reader :id
61
- sig { returns(T.nilable(String)) }
62
- attr_reader :name
63
- sig { returns(T.nilable(T.any(String, Float))) }
64
- attr_reader :price
65
- sig { returns(T.nilable(String)) }
66
- attr_reader :return_url
67
- sig { returns(T.nilable(String)) }
68
- attr_reader :status
69
- sig { returns(T.nilable(String)) }
70
- attr_reader :terms
71
- sig { returns(T.nilable(T::Boolean)) }
72
- attr_reader :test
73
- sig { returns(T.nilable(Integer)) }
74
- attr_reader :trial_days
75
- sig { returns(T.nilable(String)) }
76
- attr_reader :trial_ends_on
77
- sig { returns(T.nilable(String)) }
78
- attr_reader :updated_at
79
-
80
- class << self
81
- sig do
82
- params(
83
- id: T.any(Integer, String),
84
- fields: T.untyped,
85
- session: Auth::Session
86
- ).returns(T.nilable(RecurringApplicationCharge))
87
- end
88
- def find(
89
- id:,
90
- fields: nil,
91
- session: ShopifyAPI::Context.active_session
92
- )
93
- result = base_find(
94
- session: session,
95
- ids: {id: id},
96
- params: {fields: fields},
97
- )
98
- T.cast(result[0], T.nilable(RecurringApplicationCharge))
99
- end
100
-
101
- sig do
102
- params(
103
- id: T.any(Integer, String),
104
- session: Auth::Session
105
- ).returns(T.untyped)
106
- end
107
- def delete(
108
- id:,
109
- session: ShopifyAPI::Context.active_session
110
- )
111
- request(
112
- http_method: :delete,
113
- operation: :delete,
114
- session: session,
115
- ids: {id: id},
116
- params: {},
117
- )
118
- end
119
-
120
- sig do
121
- params(
122
- since_id: T.untyped,
123
- fields: T.untyped,
124
- session: Auth::Session,
125
- kwargs: T.untyped
126
- ).returns(T::Array[RecurringApplicationCharge])
127
- end
128
- def all(
129
- since_id: nil,
130
- fields: nil,
131
- session: ShopifyAPI::Context.active_session,
132
- **kwargs
133
- )
134
- response = base_find(
135
- session: session,
136
- ids: {},
137
- params: {since_id: since_id, fields: fields}.merge(kwargs).compact,
138
- )
139
-
140
- T.cast(response, T::Array[RecurringApplicationCharge])
141
- end
142
-
143
- end
144
-
145
- sig do
146
- params(
147
- body: T.untyped,
148
- kwargs: T.untyped
149
- ).returns(T.untyped)
150
- end
151
- def customize(
152
- body: nil,
153
- **kwargs
154
- )
155
- self.class.request(
156
- http_method: :put,
157
- operation: :customize,
158
- session: @session,
159
- ids: {id: @id},
160
- params: {}.merge(kwargs).compact,
161
- body: body,
162
- entity: self,
163
- )
164
- end
165
-
166
- end
167
- end
@@ -1,139 +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 Redirect < 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
- @path = T.let(nil, T.nilable(String))
21
- @target = 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: "redirects/<id>.json"},
28
- {http_method: :get, operation: :count, ids: [], path: "redirects/count.json"},
29
- {http_method: :get, operation: :get, ids: [], path: "redirects.json"},
30
- {http_method: :get, operation: :get, ids: [:id], path: "redirects/<id>.json"},
31
- {http_method: :post, operation: :post, ids: [], path: "redirects.json"},
32
- {http_method: :put, operation: :put, ids: [:id], path: "redirects/<id>.json"}
33
- ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
34
-
35
- sig { returns(T.nilable(Integer)) }
36
- attr_reader :id
37
- sig { returns(T.nilable(String)) }
38
- attr_reader :path
39
- sig { returns(T.nilable(String)) }
40
- attr_reader :target
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(Redirect))
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(Redirect))
61
- end
62
-
63
- sig do
64
- params(
65
- id: T.any(Integer, String),
66
- session: Auth::Session
67
- ).returns(T.untyped)
68
- end
69
- def delete(
70
- id:,
71
- session: ShopifyAPI::Context.active_session
72
- )
73
- request(
74
- http_method: :delete,
75
- operation: :delete,
76
- session: session,
77
- ids: {id: id},
78
- params: {},
79
- )
80
- end
81
-
82
- sig do
83
- params(
84
- limit: T.untyped,
85
- since_id: T.untyped,
86
- path: T.untyped,
87
- target: T.untyped,
88
- fields: T.untyped,
89
- session: Auth::Session,
90
- kwargs: T.untyped
91
- ).returns(T::Array[Redirect])
92
- end
93
- def all(
94
- limit: nil,
95
- since_id: nil,
96
- path: nil,
97
- target: nil,
98
- fields: nil,
99
- session: ShopifyAPI::Context.active_session,
100
- **kwargs
101
- )
102
- response = base_find(
103
- session: session,
104
- ids: {},
105
- params: {limit: limit, since_id: since_id, path: path, target: target, fields: fields}.merge(kwargs).compact,
106
- )
107
-
108
- T.cast(response, T::Array[Redirect])
109
- end
110
-
111
- sig do
112
- params(
113
- path: T.untyped,
114
- target: T.untyped,
115
- session: Auth::Session,
116
- kwargs: T.untyped
117
- ).returns(T.untyped)
118
- end
119
- def count(
120
- path: nil,
121
- target: nil,
122
- session: ShopifyAPI::Context.active_session,
123
- **kwargs
124
- )
125
- request(
126
- http_method: :get,
127
- operation: :count,
128
- session: session,
129
- ids: {},
130
- params: {path: path, target: target}.merge(kwargs).compact,
131
- body: {},
132
- entity: nil,
133
- )
134
- end
135
-
136
- end
137
-
138
- end
139
- end
@@ -1,151 +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 Refund < 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
- @duties = T.let(nil, T.nilable(T::Array[T.untyped]))
21
- @id = T.let(nil, T.nilable(Integer))
22
- @note = T.let(nil, T.nilable(String))
23
- @order_adjustments = T.let(nil, T.nilable(T::Array[T.untyped]))
24
- @order_id = T.let(nil, T.nilable(Integer))
25
- @processed_at = T.let(nil, T.nilable(String))
26
- @refund_duties = T.let(nil, T.nilable(T::Array[T.untyped]))
27
- @refund_line_items = T.let(nil, T.nilable(T::Array[T.untyped]))
28
- @restock = T.let(nil, T.nilable(T::Boolean))
29
- @transactions = T.let(nil, T.nilable(T::Array[T.untyped]))
30
- @user_id = T.let(nil, T.nilable(Integer))
31
- end
32
-
33
- @has_one = T.let({}, T::Hash[Symbol, Class])
34
- @has_many = T.let({
35
- transactions: Transaction
36
- }, T::Hash[Symbol, Class])
37
- @paths = T.let([
38
- {http_method: :get, operation: :get, ids: [:order_id], path: "orders/<order_id>/refunds.json"},
39
- {http_method: :get, operation: :get, ids: [:order_id, :id], path: "orders/<order_id>/refunds/<id>.json"},
40
- {http_method: :post, operation: :calculate, ids: [:order_id], path: "orders/<order_id>/refunds/calculate.json"},
41
- {http_method: :post, operation: :post, ids: [:order_id], path: "orders/<order_id>/refunds.json"}
42
- ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
43
-
44
- sig { returns(T.nilable(String)) }
45
- attr_reader :created_at
46
- sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
47
- attr_reader :duties
48
- sig { returns(T.nilable(Integer)) }
49
- attr_reader :id
50
- sig { returns(T.nilable(String)) }
51
- attr_reader :note
52
- sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
53
- attr_reader :order_adjustments
54
- sig { returns(T.nilable(Integer)) }
55
- attr_reader :order_id
56
- sig { returns(T.nilable(String)) }
57
- attr_reader :processed_at
58
- sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
59
- attr_reader :refund_duties
60
- sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
61
- attr_reader :refund_line_items
62
- sig { returns(T.nilable(T::Boolean)) }
63
- attr_reader :restock
64
- sig { returns(T.nilable(T::Array[Transaction])) }
65
- attr_reader :transactions
66
- sig { returns(T.nilable(Integer)) }
67
- attr_reader :user_id
68
-
69
- class << self
70
- sig do
71
- params(
72
- id: T.any(Integer, String),
73
- order_id: T.nilable(T.any(Integer, String)),
74
- fields: T.untyped,
75
- in_shop_currency: T.untyped,
76
- session: Auth::Session
77
- ).returns(T.nilable(Refund))
78
- end
79
- def find(
80
- id:,
81
- order_id: nil,
82
- fields: nil,
83
- in_shop_currency: nil,
84
- session: ShopifyAPI::Context.active_session
85
- )
86
- result = base_find(
87
- session: session,
88
- ids: {id: id, order_id: order_id},
89
- params: {fields: fields, in_shop_currency: in_shop_currency},
90
- )
91
- T.cast(result[0], T.nilable(Refund))
92
- end
93
-
94
- sig do
95
- params(
96
- order_id: T.nilable(T.any(Integer, String)),
97
- limit: T.untyped,
98
- fields: T.untyped,
99
- in_shop_currency: T.untyped,
100
- session: Auth::Session,
101
- kwargs: T.untyped
102
- ).returns(T::Array[Refund])
103
- end
104
- def all(
105
- order_id: nil,
106
- limit: nil,
107
- fields: nil,
108
- in_shop_currency: nil,
109
- session: ShopifyAPI::Context.active_session,
110
- **kwargs
111
- )
112
- response = base_find(
113
- session: session,
114
- ids: {order_id: order_id},
115
- params: {limit: limit, fields: fields, in_shop_currency: in_shop_currency}.merge(kwargs).compact,
116
- )
117
-
118
- T.cast(response, T::Array[Refund])
119
- end
120
-
121
- end
122
-
123
- sig do
124
- params(
125
- shipping: T.untyped,
126
- refund_line_items: T.untyped,
127
- currency: T.untyped,
128
- body: T.untyped,
129
- kwargs: T.untyped
130
- ).returns(T.untyped)
131
- end
132
- def calculate(
133
- shipping: nil,
134
- refund_line_items: nil,
135
- currency: nil,
136
- body: nil,
137
- **kwargs
138
- )
139
- self.class.request(
140
- http_method: :post,
141
- operation: :calculate,
142
- session: @session,
143
- ids: {order_id: @order_id},
144
- params: {shipping: shipping, refund_line_items: refund_line_items, currency: currency}.merge(kwargs).compact,
145
- body: body,
146
- entity: self,
147
- )
148
- end
149
-
150
- end
151
- end
@@ -1,121 +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 Report < 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
- @category = T.let(nil, T.nilable(String))
20
- @id = T.let(nil, T.nilable(Integer))
21
- @name = T.let(nil, T.nilable(String))
22
- @shopify_ql = T.let(nil, T.nilable(String))
23
- @updated_at = T.let(nil, T.nilable(String))
24
- end
25
-
26
- @has_one = T.let({}, T::Hash[Symbol, Class])
27
- @has_many = T.let({}, T::Hash[Symbol, Class])
28
- @paths = T.let([
29
- {http_method: :delete, operation: :delete, ids: [:id], path: "reports/<id>.json"},
30
- {http_method: :get, operation: :get, ids: [], path: "reports.json"},
31
- {http_method: :get, operation: :get, ids: [:id], path: "reports/<id>.json"},
32
- {http_method: :post, operation: :post, ids: [], path: "reports.json"},
33
- {http_method: :put, operation: :put, ids: [:id], path: "reports/<id>.json"}
34
- ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
35
-
36
- sig { returns(T.nilable(String)) }
37
- attr_reader :category
38
- sig { returns(T.nilable(Integer)) }
39
- attr_reader :id
40
- sig { returns(T.nilable(String)) }
41
- attr_reader :name
42
- sig { returns(T.nilable(String)) }
43
- attr_reader :shopify_ql
44
- sig { returns(T.nilable(String)) }
45
- attr_reader :updated_at
46
-
47
- class << self
48
- sig do
49
- params(
50
- id: T.any(Integer, String),
51
- fields: T.untyped,
52
- session: Auth::Session
53
- ).returns(T.nilable(Report))
54
- end
55
- def find(
56
- id:,
57
- fields: nil,
58
- session: ShopifyAPI::Context.active_session
59
- )
60
- result = base_find(
61
- session: session,
62
- ids: {id: id},
63
- params: {fields: fields},
64
- )
65
- T.cast(result[0], T.nilable(Report))
66
- end
67
-
68
- sig do
69
- params(
70
- id: T.any(Integer, String),
71
- session: Auth::Session
72
- ).returns(T.untyped)
73
- end
74
- def delete(
75
- id:,
76
- session: ShopifyAPI::Context.active_session
77
- )
78
- request(
79
- http_method: :delete,
80
- operation: :delete,
81
- session: session,
82
- ids: {id: id},
83
- params: {},
84
- )
85
- end
86
-
87
- sig do
88
- params(
89
- ids: T.untyped,
90
- limit: T.untyped,
91
- since_id: T.untyped,
92
- updated_at_min: T.untyped,
93
- updated_at_max: T.untyped,
94
- fields: T.untyped,
95
- session: Auth::Session,
96
- kwargs: T.untyped
97
- ).returns(T::Array[Report])
98
- end
99
- def all(
100
- ids: nil,
101
- limit: nil,
102
- since_id: nil,
103
- updated_at_min: nil,
104
- updated_at_max: nil,
105
- fields: nil,
106
- session: ShopifyAPI::Context.active_session,
107
- **kwargs
108
- )
109
- response = base_find(
110
- session: session,
111
- ids: {},
112
- params: {ids: ids, limit: limit, since_id: since_id, updated_at_min: updated_at_min, updated_at_max: updated_at_max, fields: fields}.merge(kwargs).compact,
113
- )
114
-
115
- T.cast(response, T::Array[Report])
116
- end
117
-
118
- end
119
-
120
- end
121
- end
@@ -1,73 +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 ResourceFeedback < 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
- @feedback_generated_at = T.let(nil, T.nilable(String))
21
- @messages = T.let(nil, T.nilable(T::Array[T.untyped]))
22
- @resource_id = T.let(nil, T.nilable(Integer))
23
- @resource_type = T.let(nil, T.nilable(String))
24
- @state = T.let(nil, T.nilable(String))
25
- @updated_at = T.let(nil, T.nilable(String))
26
- end
27
-
28
- @has_one = T.let({}, T::Hash[Symbol, Class])
29
- @has_many = T.let({}, T::Hash[Symbol, Class])
30
- @paths = T.let([
31
- {http_method: :get, operation: :get, ids: [], path: "resource_feedback.json"},
32
- {http_method: :post, operation: :post, ids: [], path: "resource_feedback.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 :feedback_generated_at
39
- sig { returns(T.nilable(T::Array[String])) }
40
- attr_reader :messages
41
- sig { returns(T.nilable(Integer)) }
42
- attr_reader :resource_id
43
- sig { returns(T.nilable(String)) }
44
- attr_reader :resource_type
45
- sig { returns(T.nilable(String)) }
46
- attr_reader :state
47
- sig { returns(T.nilable(String)) }
48
- attr_reader :updated_at
49
-
50
- class << self
51
- sig do
52
- params(
53
- session: Auth::Session,
54
- kwargs: T.untyped
55
- ).returns(T::Array[ResourceFeedback])
56
- end
57
- def all(
58
- session: ShopifyAPI::Context.active_session,
59
- **kwargs
60
- )
61
- response = base_find(
62
- session: session,
63
- ids: {},
64
- params: {}.merge(kwargs).compact,
65
- )
66
-
67
- T.cast(response, T::Array[ResourceFeedback])
68
- end
69
-
70
- end
71
-
72
- end
73
- end