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
@@ -74,7 +74,7 @@ module ShopifyAPI
74
74
  @source_identifier = T.let(nil, T.nilable(String))
75
75
  @source_name = T.let(nil, T.nilable(String))
76
76
  @source_url = T.let(nil, T.nilable(String))
77
- @subtotal_price = T.let(nil, T.nilable(Float))
77
+ @subtotal_price = T.let(nil, T.nilable(String))
78
78
  @subtotal_price_set = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
79
79
  @tags = T.let(nil, T.nilable(String))
80
80
  @tax_lines = T.let(nil, T.nilable(T::Array[T.untyped]))
@@ -233,7 +233,7 @@ module ShopifyAPI
233
233
  attr_reader :source_name
234
234
  sig { returns(T.nilable(String)) }
235
235
  attr_reader :source_url
236
- sig { returns(T.nilable(Float)) }
236
+ sig { returns(T.nilable(String)) }
237
237
  attr_reader :subtotal_price
238
238
  sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
239
239
  attr_reader :subtotal_price_set
@@ -22,6 +22,7 @@ module ShopifyAPI
22
22
  @capped_amount = T.let(nil, T.nilable(T.any(String, Integer)))
23
23
  @confirmation_url = T.let(nil, T.nilable(String))
24
24
  @created_at = T.let(nil, T.nilable(String))
25
+ @currency = T.let(nil, T.nilable(Currency))
25
26
  @id = T.let(nil, T.nilable(Integer))
26
27
  @name = T.let(nil, T.nilable(String))
27
28
  @price = T.let(nil, T.nilable(T.any(String, Float)))
@@ -34,7 +35,9 @@ module ShopifyAPI
34
35
  @updated_at = T.let(nil, T.nilable(String))
35
36
  end
36
37
 
37
- @has_one = T.let({}, T::Hash[Symbol, Class])
38
+ @has_one = T.let({
39
+ currency: Currency
40
+ }, T::Hash[Symbol, Class])
38
41
  @has_many = T.let({}, T::Hash[Symbol, Class])
39
42
  @paths = T.let([
40
43
  {http_method: :delete, operation: :delete, ids: [:id], path: "recurring_application_charges/<id>.json"},
@@ -56,6 +59,8 @@ module ShopifyAPI
56
59
  attr_reader :confirmation_url
57
60
  sig { returns(T.nilable(String)) }
58
61
  attr_reader :created_at
62
+ sig { returns(T.nilable(Currency)) }
63
+ attr_reader :currency
59
64
  sig { returns(T.nilable(Integer)) }
60
65
  attr_reader :id
61
66
  sig { returns(T.nilable(String)) }
@@ -21,10 +21,10 @@ module ShopifyAPI
21
21
  @id = T.let(nil, T.nilable(Integer))
22
22
  @location_group_id = T.let(nil, T.nilable(Integer))
23
23
  @name = T.let(nil, T.nilable(String))
24
- @price_based_shipping_rates = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
25
- @profile_id = T.let(nil, T.nilable(Integer))
24
+ @price_based_shipping_rates = T.let(nil, T.nilable(T::Array[T.untyped]))
25
+ @profile_id = T.let(nil, T.nilable(String))
26
26
  @provinces = T.let(nil, T.nilable(T::Array[T.untyped]))
27
- @weight_based_shipping_rates = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
27
+ @weight_based_shipping_rates = T.let(nil, T.nilable(T::Array[T.untyped]))
28
28
  end
29
29
 
30
30
  @has_one = T.let({}, T::Hash[Symbol, Class])
@@ -46,13 +46,13 @@ module ShopifyAPI
46
46
  attr_reader :location_group_id
47
47
  sig { returns(T.nilable(String)) }
48
48
  attr_reader :name
49
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
49
+ sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
50
50
  attr_reader :price_based_shipping_rates
51
- sig { returns(T.nilable(Integer)) }
51
+ sig { returns(T.nilable(String)) }
52
52
  attr_reader :profile_id
53
53
  sig { returns(T.nilable(T::Array[Province])) }
54
54
  attr_reader :provinces
55
- sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
55
+ sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
56
56
  attr_reader :weight_based_shipping_rates
57
57
 
58
58
  class << self
@@ -17,6 +17,7 @@ module ShopifyAPI
17
17
  super(session: session)
18
18
 
19
19
  @created_at = T.let(nil, T.nilable(String))
20
+ @currency = T.let(nil, T.nilable(Currency))
20
21
  @description = T.let(nil, T.nilable(String))
21
22
  @id = T.let(nil, T.nilable(Integer))
22
23
  @price = T.let(nil, T.nilable(Integer))
@@ -24,7 +25,9 @@ module ShopifyAPI
24
25
  @updated_at = T.let(nil, T.nilable(String))
25
26
  end
26
27
 
27
- @has_one = T.let({}, T::Hash[Symbol, Class])
28
+ @has_one = T.let({
29
+ currency: Currency
30
+ }, T::Hash[Symbol, Class])
28
31
  @has_many = T.let({}, T::Hash[Symbol, Class])
29
32
  @paths = T.let([
30
33
  {http_method: :get, operation: :get, ids: [:recurring_application_charge_id], path: "recurring_application_charges/<recurring_application_charge_id>/usage_charges.json"},
@@ -34,6 +37,8 @@ module ShopifyAPI
34
37
 
35
38
  sig { returns(T.nilable(String)) }
36
39
  attr_reader :created_at
40
+ sig { returns(T.nilable(Currency)) }
41
+ attr_reader :currency
37
42
  sig { returns(T.nilable(String)) }
38
43
  attr_reader :description
39
44
  sig { returns(T.nilable(Integer)) }
@@ -18,6 +18,7 @@ module ShopifyAPI
18
18
 
19
19
  @confirmation_url = T.let(nil, T.nilable(String))
20
20
  @created_at = T.let(nil, T.nilable(String))
21
+ @currency = T.let(nil, T.nilable(Currency))
21
22
  @id = T.let(nil, T.nilable(Integer))
22
23
  @name = T.let(nil, T.nilable(String))
23
24
  @price = T.let(nil, T.nilable(T.any(String, Float)))
@@ -27,7 +28,9 @@ module ShopifyAPI
27
28
  @updated_at = T.let(nil, T.nilable(String))
28
29
  end
29
30
 
30
- @has_one = T.let({}, T::Hash[Symbol, Class])
31
+ @has_one = T.let({
32
+ currency: Currency
33
+ }, T::Hash[Symbol, Class])
31
34
  @has_many = T.let({}, T::Hash[Symbol, Class])
32
35
  @paths = T.let([
33
36
  {http_method: :get, operation: :get, ids: [], path: "application_charges.json"},
@@ -39,6 +42,8 @@ module ShopifyAPI
39
42
  attr_reader :confirmation_url
40
43
  sig { returns(T.nilable(String)) }
41
44
  attr_reader :created_at
45
+ sig { returns(T.nilable(Currency)) }
46
+ attr_reader :currency
42
47
  sig { returns(T.nilable(Integer)) }
43
48
  attr_reader :id
44
49
  sig { returns(T.nilable(String)) }
@@ -17,12 +17,15 @@ module ShopifyAPI
17
17
  super(session: session)
18
18
 
19
19
  @amount = T.let(nil, T.nilable(Integer))
20
+ @currency = T.let(nil, T.nilable(Currency))
20
21
  @description = T.let(nil, T.nilable(String))
21
22
  @id = T.let(nil, T.nilable(Integer))
22
23
  @test = T.let(nil, T.nilable(T::Boolean))
23
24
  end
24
25
 
25
- @has_one = T.let({}, T::Hash[Symbol, Class])
26
+ @has_one = T.let({
27
+ currency: Currency
28
+ }, T::Hash[Symbol, Class])
26
29
  @has_many = T.let({}, T::Hash[Symbol, Class])
27
30
  @paths = T.let([
28
31
  {http_method: :get, operation: :get, ids: [], path: "application_credits.json"},
@@ -32,6 +35,8 @@ module ShopifyAPI
32
35
 
33
36
  sig { returns(T.nilable(Integer)) }
34
37
  attr_reader :amount
38
+ sig { returns(T.nilable(Currency)) }
39
+ attr_reader :currency
35
40
  sig { returns(T.nilable(String)) }
36
41
  attr_reader :description
37
42
  sig { returns(T.nilable(Integer)) }
@@ -20,7 +20,6 @@ module ShopifyAPI
20
20
  @admin_graphql_api_id = T.let(nil, T.nilable(String))
21
21
  @callback_url = T.let(nil, T.nilable(String))
22
22
  @carrier_service_type = T.let(nil, T.nilable(String))
23
- @format = T.let(nil, T.nilable(String))
24
23
  @id = T.let(nil, T.nilable(Integer))
25
24
  @name = T.let(nil, T.nilable(String))
26
25
  @service_discovery = T.let(nil, T.nilable(T::Boolean))
@@ -44,8 +43,6 @@ module ShopifyAPI
44
43
  attr_reader :callback_url
45
44
  sig { returns(T.nilable(String)) }
46
45
  attr_reader :carrier_service_type
47
- sig { returns(T.nilable(String)) }
48
- attr_reader :format
49
46
  sig { returns(T.nilable(Integer)) }
50
47
  attr_reader :id
51
48
  sig { returns(T.nilable(String)) }
@@ -0,0 +1,117 @@
1
+ # typed: false
2
+ # frozen_string_literal: true
3
+
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
8
+ module ShopifyAPI
9
+ class DisputeEvidence < ShopifyAPI::Rest::Base
10
+ extend T::Sig
11
+
12
+ @prev_page_info = T.let(Concurrent::ThreadLocalVar.new { nil }, Concurrent::ThreadLocalVar)
13
+ @next_page_info = T.let(Concurrent::ThreadLocalVar.new { nil }, Concurrent::ThreadLocalVar)
14
+
15
+ sig { params(session: T.nilable(ShopifyAPI::Auth::Session)).void }
16
+ def initialize(session: ShopifyAPI::Context.active_session)
17
+ super(session: session)
18
+
19
+ @access_activity_log = T.let(nil, T.nilable(String))
20
+ @billing_address = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
21
+ @cancellation_policy_disclosure = T.let(nil, T.nilable(String))
22
+ @cancellation_rebuttal = T.let(nil, T.nilable(String))
23
+ @created_at = T.let(nil, T.nilable(String))
24
+ @customer_email_address = T.let(nil, T.nilable(String))
25
+ @customer_first_name = T.let(nil, T.nilable(String))
26
+ @customer_last_name = T.let(nil, T.nilable(String))
27
+ @dispute_evidence_files = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
28
+ @fulfillments = T.let(nil, T.nilable(T::Array[T.untyped]))
29
+ @id = T.let(nil, T.nilable(Integer))
30
+ @payments_dispute_id = T.let(nil, T.nilable(Integer))
31
+ @product_description = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
32
+ @refund_policy_disclosure = T.let(nil, T.nilable(String))
33
+ @refund_refusal_explanation = T.let(nil, T.nilable(String))
34
+ @shipping_address = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
35
+ @submitted = T.let(nil, T.nilable(T::Boolean))
36
+ @uncategorized_text = T.let(nil, T.nilable(String))
37
+ @updated_on = T.let(nil, T.nilable(String))
38
+ end
39
+
40
+ @has_one = T.let({}, T::Hash[Symbol, Class])
41
+ @has_many = T.let({
42
+ fulfillments: Fulfillment
43
+ }, T::Hash[Symbol, Class])
44
+ @paths = T.let([
45
+ {http_method: :get, operation: :get, ids: [:dispute_id], path: "shopify_payments/disputes/<dispute_id>/dispute_evidences.json"},
46
+ {http_method: :put, operation: :put, ids: [:dispute_id], path: "shopify_payments/disputes/<dispute_id>/dispute_evidences.json"}
47
+ ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
48
+
49
+ sig { returns(T.nilable(String)) }
50
+ attr_reader :access_activity_log
51
+ sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
52
+ attr_reader :billing_address
53
+ sig { returns(T.nilable(String)) }
54
+ attr_reader :cancellation_policy_disclosure
55
+ sig { returns(T.nilable(String)) }
56
+ attr_reader :cancellation_rebuttal
57
+ sig { returns(T.nilable(String)) }
58
+ attr_reader :created_at
59
+ sig { returns(T.nilable(String)) }
60
+ attr_reader :customer_email_address
61
+ sig { returns(T.nilable(String)) }
62
+ attr_reader :customer_first_name
63
+ sig { returns(T.nilable(String)) }
64
+ attr_reader :customer_last_name
65
+ sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
66
+ attr_reader :dispute_evidence_files
67
+ sig { returns(T.nilable(T::Array[Fulfillment])) }
68
+ attr_reader :fulfillments
69
+ sig { returns(T.nilable(Integer)) }
70
+ attr_reader :id
71
+ sig { returns(T.nilable(Integer)) }
72
+ attr_reader :payments_dispute_id
73
+ sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
74
+ attr_reader :product_description
75
+ sig { returns(T.nilable(String)) }
76
+ attr_reader :refund_policy_disclosure
77
+ sig { returns(T.nilable(String)) }
78
+ attr_reader :refund_refusal_explanation
79
+ sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
80
+ attr_reader :shipping_address
81
+ sig { returns(T.nilable(T::Boolean)) }
82
+ attr_reader :submitted
83
+ sig { returns(T.nilable(String)) }
84
+ attr_reader :uncategorized_text
85
+ sig { returns(T.nilable(String)) }
86
+ attr_reader :updated_on
87
+
88
+ class << self
89
+ sig do
90
+ returns(String)
91
+ end
92
+ def primary_key()
93
+ "dispute_id"
94
+ end
95
+
96
+ sig do
97
+ params(
98
+ dispute_id: T.any(Integer, String),
99
+ session: Auth::Session
100
+ ).returns(T.nilable(DisputeEvidence))
101
+ end
102
+ def find(
103
+ dispute_id:,
104
+ session: ShopifyAPI::Context.active_session
105
+ )
106
+ result = base_find(
107
+ session: session,
108
+ ids: {dispute_id: dispute_id},
109
+ params: {},
110
+ )
111
+ T.cast(result[0], T.nilable(DisputeEvidence))
112
+ end
113
+
114
+ end
115
+
116
+ end
117
+ end
@@ -6,7 +6,7 @@
6
6
  ########################################################################################################################
7
7
 
8
8
  module ShopifyAPI
9
- class AndroidPayKey < ShopifyAPI::Rest::Base
9
+ class DisputeFileUpload < ShopifyAPI::Rest::Base
10
10
  extend T::Sig
11
11
 
12
12
  @prev_page_info = T.let(Concurrent::ThreadLocalVar.new { nil }, Concurrent::ThreadLocalVar)
@@ -16,57 +16,61 @@ module ShopifyAPI
16
16
  def initialize(session: ShopifyAPI::Context.active_session)
17
17
  super(session: session)
18
18
 
19
+ @dispute_evidence_id = T.let(nil, T.nilable(Integer))
20
+ @dispute_evidence_type = T.let(nil, T.nilable(String))
21
+ @file_size = T.let(nil, T.nilable(Integer))
22
+ @file_type = T.let(nil, T.nilable(String))
23
+ @filename = T.let(nil, T.nilable(String))
19
24
  @id = T.let(nil, T.nilable(Integer))
20
- @public_key = T.let(nil, T.nilable(String))
25
+ @original_filename = T.let(nil, T.nilable(String))
26
+ @shop_id = T.let(nil, T.nilable(Integer))
27
+ @url = T.let(nil, T.nilable(String))
21
28
  end
22
29
 
23
30
  @has_one = T.let({}, T::Hash[Symbol, Class])
24
31
  @has_many = T.let({}, T::Hash[Symbol, Class])
25
32
  @paths = T.let([
26
- {http_method: :delete, operation: :delete, ids: [:id], path: "android_pay_keys/<id>.json"},
27
- {http_method: :get, operation: :get, ids: [:id], path: "android_pay_keys/<id>.json"},
28
- {http_method: :post, operation: :post, ids: [], path: "android_pay_keys.json"}
33
+ {http_method: :delete, operation: :delete, ids: [:dispute_id, :id], path: "shopify_payments/disputes/<dispute_id>/dispute_file_uploads/<id>.json"},
34
+ {http_method: :post, operation: :post, ids: [:dispute_id], path: "shopify_payments/disputes/<dispute_id>/dispute_file_uploads.json"}
29
35
  ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
30
36
 
37
+ sig { returns(T.nilable(Integer)) }
38
+ attr_reader :dispute_evidence_id
39
+ sig { returns(T.nilable(String)) }
40
+ attr_reader :dispute_evidence_type
41
+ sig { returns(T.nilable(Integer)) }
42
+ attr_reader :file_size
43
+ sig { returns(T.nilable(String)) }
44
+ attr_reader :file_type
45
+ sig { returns(T.nilable(String)) }
46
+ attr_reader :filename
31
47
  sig { returns(T.nilable(Integer)) }
32
48
  attr_reader :id
33
49
  sig { returns(T.nilable(String)) }
34
- attr_reader :public_key
50
+ attr_reader :original_filename
51
+ sig { returns(T.nilable(Integer)) }
52
+ attr_reader :shop_id
53
+ sig { returns(T.nilable(String)) }
54
+ attr_reader :url
35
55
 
36
56
  class << self
37
57
  sig do
38
58
  params(
39
59
  id: T.any(Integer, String),
40
- session: Auth::Session
41
- ).returns(T.nilable(AndroidPayKey))
42
- end
43
- def find(
44
- id:,
45
- session: ShopifyAPI::Context.active_session
46
- )
47
- result = base_find(
48
- session: session,
49
- ids: {id: id},
50
- params: {},
51
- )
52
- T.cast(result[0], T.nilable(AndroidPayKey))
53
- end
54
-
55
- sig do
56
- params(
57
- id: T.any(Integer, String),
60
+ dispute_id: T.nilable(T.any(Integer, String)),
58
61
  session: Auth::Session
59
62
  ).returns(T.untyped)
60
63
  end
61
64
  def delete(
62
65
  id:,
66
+ dispute_id: nil,
63
67
  session: ShopifyAPI::Context.active_session
64
68
  )
65
69
  request(
66
70
  http_method: :delete,
67
71
  operation: :delete,
68
72
  session: session,
69
- ids: {id: id},
73
+ ids: {id: id, dispute_id: dispute_id},
70
74
  params: {},
71
75
  )
72
76
  end
@@ -43,13 +43,8 @@ module ShopifyAPI
43
43
  {http_method: :get, operation: :get, ids: [:order_id], path: "orders/<order_id>/fulfillments.json"},
44
44
  {http_method: :get, operation: :get, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>.json"},
45
45
  {http_method: :post, operation: :cancel, ids: [:id], path: "fulfillments/<id>/cancel.json"},
46
- {http_method: :post, operation: :cancel, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>/cancel.json"},
47
- {http_method: :post, operation: :complete, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>/complete.json"},
48
- {http_method: :post, operation: :open, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>/open.json"},
49
46
  {http_method: :post, operation: :post, ids: [], path: "fulfillments.json"},
50
- {http_method: :post, operation: :post, ids: [:order_id], path: "orders/<order_id>/fulfillments.json"},
51
- {http_method: :post, operation: :update_tracking, ids: [:id], path: "fulfillments/<id>/update_tracking.json"},
52
- {http_method: :put, operation: :put, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>.json"}
47
+ {http_method: :post, operation: :update_tracking, ids: [:id], path: "fulfillments/<id>/update_tracking.json"}
53
48
  ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
54
49
 
55
50
  sig { returns(T.nilable(String)) }
@@ -194,49 +189,7 @@ module ShopifyAPI
194
189
  http_method: :post,
195
190
  operation: :cancel,
196
191
  session: @session,
197
- ids: {id: @id, order_id: @order_id},
198
- params: {}.merge(kwargs).compact,
199
- body: body,
200
- entity: self,
201
- )
202
- end
203
-
204
- sig do
205
- params(
206
- body: T.untyped,
207
- kwargs: T.untyped
208
- ).returns(T.untyped)
209
- end
210
- def complete(
211
- body: nil,
212
- **kwargs
213
- )
214
- self.class.request(
215
- http_method: :post,
216
- operation: :complete,
217
- session: @session,
218
- ids: {id: @id, order_id: @order_id},
219
- params: {}.merge(kwargs).compact,
220
- body: body,
221
- entity: self,
222
- )
223
- end
224
-
225
- sig do
226
- params(
227
- body: T.untyped,
228
- kwargs: T.untyped
229
- ).returns(T.untyped)
230
- end
231
- def open(
232
- body: nil,
233
- **kwargs
234
- )
235
- self.class.request(
236
- http_method: :post,
237
- operation: :open,
238
- session: @session,
239
- ids: {id: @id, order_id: @order_id},
192
+ ids: {id: @id},
240
193
  params: {}.merge(kwargs).compact,
241
194
  body: body,
242
195
  entity: self,
@@ -18,6 +18,7 @@ module ShopifyAPI
18
18
 
19
19
  @assigned_location = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
20
20
  @assigned_location_id = T.let(nil, T.nilable(Integer))
21
+ @created_at = T.let(nil, T.nilable(String))
21
22
  @delivery_method = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
22
23
  @destination = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
23
24
  @fulfill_at = T.let(nil, T.nilable(String))
@@ -32,6 +33,7 @@ module ShopifyAPI
32
33
  @shop_id = T.let(nil, T.nilable(Integer))
33
34
  @status = T.let(nil, T.nilable(String))
34
35
  @supported_actions = T.let(nil, T.nilable(T::Array[T.untyped]))
36
+ @updated_at = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
35
37
  end
36
38
 
37
39
  @has_one = T.let({}, T::Hash[Symbol, Class])
@@ -45,13 +47,16 @@ module ShopifyAPI
45
47
  {http_method: :post, operation: :move, ids: [:id], path: "fulfillment_orders/<id>/move.json"},
46
48
  {http_method: :post, operation: :open, ids: [:id], path: "fulfillment_orders/<id>/open.json"},
47
49
  {http_method: :post, operation: :release_hold, ids: [:id], path: "fulfillment_orders/<id>/release_hold.json"},
48
- {http_method: :post, operation: :reschedule, ids: [:id], path: "fulfillment_orders/<id>/reschedule.json"}
50
+ {http_method: :post, operation: :reschedule, ids: [:id], path: "fulfillment_orders/<id>/reschedule.json"},
51
+ {http_method: :post, operation: :set_fulfillment_orders_deadline, ids: [], path: "fulfillment_orders/set_fulfillment_orders_deadline.json"}
49
52
  ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
50
53
 
51
54
  sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
52
55
  attr_reader :assigned_location
53
56
  sig { returns(T.nilable(Integer)) }
54
57
  attr_reader :assigned_location_id
58
+ sig { returns(T.nilable(String)) }
59
+ attr_reader :created_at
55
60
  sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
56
61
  attr_reader :delivery_method
57
62
  sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
@@ -80,6 +85,8 @@ module ShopifyAPI
80
85
  attr_reader :status
81
86
  sig { returns(T.nilable(T::Array[String])) }
82
87
  attr_reader :supported_actions
88
+ sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
89
+ attr_reader :updated_at
83
90
 
84
91
  class << self
85
92
  sig do
@@ -169,17 +176,13 @@ module ShopifyAPI
169
176
 
170
177
  sig do
171
178
  params(
172
- reason: T.untyped,
173
- reason_notes: T.untyped,
174
- notify_merchant: T.untyped,
179
+ fulfillment_hold: T.untyped,
175
180
  body: T.untyped,
176
181
  kwargs: T.untyped
177
182
  ).returns(T.untyped)
178
183
  end
179
184
  def hold(
180
- reason: nil,
181
- reason_notes: nil,
182
- notify_merchant: nil,
185
+ fulfillment_hold: nil,
183
186
  body: nil,
184
187
  **kwargs
185
188
  )
@@ -188,7 +191,7 @@ module ShopifyAPI
188
191
  operation: :hold,
189
192
  session: @session,
190
193
  ids: {id: @id},
191
- params: {reason: reason, reason_notes: reason_notes, notify_merchant: notify_merchant}.merge(kwargs).compact,
194
+ params: {fulfillment_hold: fulfillment_hold}.merge(kwargs).compact,
192
195
  body: body,
193
196
  entity: self,
194
197
  )
@@ -280,5 +283,30 @@ module ShopifyAPI
280
283
  )
281
284
  end
282
285
 
286
+ sig do
287
+ params(
288
+ fulfillment_order_ids: T.untyped,
289
+ fulfillment_deadline: T.untyped,
290
+ body: T.untyped,
291
+ kwargs: T.untyped
292
+ ).returns(T.untyped)
293
+ end
294
+ def set_fulfillment_orders_deadline(
295
+ fulfillment_order_ids: nil,
296
+ fulfillment_deadline: nil,
297
+ body: nil,
298
+ **kwargs
299
+ )
300
+ self.class.request(
301
+ http_method: :post,
302
+ operation: :set_fulfillment_orders_deadline,
303
+ session: @session,
304
+ ids: {},
305
+ params: {fulfillment_order_ids: fulfillment_order_ids, fulfillment_deadline: fulfillment_deadline}.merge(kwargs).compact,
306
+ body: body,
307
+ entity: self,
308
+ )
309
+ end
310
+
283
311
  end
284
312
  end
@@ -18,13 +18,13 @@ module ShopifyAPI
18
18
 
19
19
  @admin_graphql_api_id = T.let(nil, T.nilable(String))
20
20
  @callback_url = T.let(nil, T.nilable(String))
21
- @format = T.let(nil, T.nilable(String))
22
21
  @fulfillment_orders_opt_in = T.let(nil, T.nilable(T::Boolean))
23
22
  @handle = T.let(nil, T.nilable(String))
24
23
  @id = T.let(nil, T.nilable(Integer))
25
24
  @inventory_management = T.let(nil, T.nilable(T::Boolean))
26
25
  @location_id = T.let(nil, T.nilable(Integer))
27
26
  @name = T.let(nil, T.nilable(String))
27
+ @permits_sku_sharing = T.let(nil, T.nilable(T::Boolean))
28
28
  @provider_id = T.let(nil, T.nilable(String))
29
29
  @requires_shipping_method = T.let(nil, T.nilable(T::Boolean))
30
30
  @tracking_support = T.let(nil, T.nilable(T::Boolean))
@@ -44,8 +44,6 @@ module ShopifyAPI
44
44
  attr_reader :admin_graphql_api_id
45
45
  sig { returns(T.nilable(String)) }
46
46
  attr_reader :callback_url
47
- sig { returns(T.nilable(String)) }
48
- attr_reader :format
49
47
  sig { returns(T.nilable(T::Boolean)) }
50
48
  attr_reader :fulfillment_orders_opt_in
51
49
  sig { returns(T.nilable(String)) }
@@ -58,6 +56,8 @@ module ShopifyAPI
58
56
  attr_reader :location_id
59
57
  sig { returns(T.nilable(String)) }
60
58
  attr_reader :name
59
+ sig { returns(T.nilable(T::Boolean)) }
60
+ attr_reader :permits_sku_sharing
61
61
  sig { returns(T.nilable(String)) }
62
62
  attr_reader :provider_id
63
63
  sig { returns(T.nilable(T::Boolean)) }
@@ -17,7 +17,7 @@ module ShopifyAPI
17
17
  super(session: session)
18
18
 
19
19
  @api_client_id = T.let(nil, T.nilable(Integer))
20
- @balance = T.let(nil, T.nilable(Float))
20
+ @balance = T.let(nil, T.nilable(String))
21
21
  @code = T.let(nil, T.nilable(String))
22
22
  @created_at = T.let(nil, T.nilable(String))
23
23
  @currency = T.let(nil, T.nilable(String))
@@ -25,7 +25,7 @@ module ShopifyAPI
25
25
  @disabled_at = T.let(nil, T.nilable(String))
26
26
  @expires_on = T.let(nil, T.nilable(String))
27
27
  @id = T.let(nil, T.nilable(Integer))
28
- @initial_value = T.let(nil, T.nilable(Float))
28
+ @initial_value = T.let(nil, T.nilable(String))
29
29
  @last_characters = T.let(nil, T.nilable(String))
30
30
  @line_item_id = T.let(nil, T.nilable(Integer))
31
31
  @note = T.let(nil, T.nilable(String))
@@ -49,7 +49,7 @@ module ShopifyAPI
49
49
 
50
50
  sig { returns(T.nilable(Integer)) }
51
51
  attr_reader :api_client_id
52
- sig { returns(T.nilable(Float)) }
52
+ sig { returns(T.nilable(String)) }
53
53
  attr_reader :balance
54
54
  sig { returns(T.nilable(String)) }
55
55
  attr_reader :code
@@ -65,7 +65,7 @@ module ShopifyAPI
65
65
  attr_reader :expires_on
66
66
  sig { returns(T.nilable(Integer)) }
67
67
  attr_reader :id
68
- sig { returns(T.nilable(Float)) }
68
+ sig { returns(T.nilable(String)) }
69
69
  attr_reader :initial_value
70
70
  sig { returns(T.nilable(String)) }
71
71
  attr_reader :last_characters
@@ -18,7 +18,7 @@ module ShopifyAPI
18
18
 
19
19
  @key = T.let(nil, T.nilable(String))
20
20
  @namespace = T.let(nil, T.nilable(String))
21
- @value = T.let(nil, T.nilable(T.any(String, Integer, Float)))
21
+ @value = T.let(nil, T.nilable(T.any(String, Integer, Float, T::Boolean, String)))
22
22
  @article_id = T.let(nil, T.nilable(Integer))
23
23
  @blog_id = T.let(nil, T.nilable(Integer))
24
24
  @collection_id = T.let(nil, T.nilable(Integer))
@@ -119,7 +119,7 @@ module ShopifyAPI
119
119
  attr_reader :key
120
120
  sig { returns(T.nilable(String)) }
121
121
  attr_reader :namespace
122
- sig { returns(T.nilable(T.any(String, Integer, Float))) }
122
+ sig { returns(T.nilable(T.any(String, Integer, Float, T::Boolean, String))) }
123
123
  attr_reader :value
124
124
  sig { returns(T.nilable(Integer)) }
125
125
  attr_reader :article_id