shopify_api 14.7.0 → 14.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/docs/usage/rest.md +2 -0
- data/lib/shopify_api/admin_versions.rb +2 -1
- data/lib/shopify_api/clients/rest/admin.rb +5 -0
- data/lib/shopify_api/context.rb +10 -1
- data/lib/shopify_api/errors/disabled_resource_error.rb +8 -0
- data/lib/shopify_api/rest/resources/2025_01/abandoned_checkout.rb +194 -0
- data/lib/shopify_api/rest/resources/2025_01/access_scope.rb +62 -0
- data/lib/shopify_api/rest/resources/2025_01/apple_pay_certificate.rb +109 -0
- data/lib/shopify_api/rest/resources/2025_01/application_charge.rb +113 -0
- data/lib/shopify_api/rest/resources/2025_01/application_credit.rb +95 -0
- data/lib/shopify_api/rest/resources/2025_01/article.rb +269 -0
- data/lib/shopify_api/rest/resources/2025_01/asset.rb +122 -0
- data/lib/shopify_api/rest/resources/2025_01/assigned_fulfillment_order.rb +92 -0
- data/lib/shopify_api/rest/resources/2025_01/balance.rb +58 -0
- data/lib/shopify_api/rest/resources/2025_01/blog.rb +166 -0
- data/lib/shopify_api/rest/resources/2025_01/cancellation_request.rb +87 -0
- data/lib/shopify_api/rest/resources/2025_01/carrier_service.rb +120 -0
- data/lib/shopify_api/rest/resources/2025_01/checkout.rb +213 -0
- data/lib/shopify_api/rest/resources/2025_01/collect.rb +146 -0
- data/lib/shopify_api/rest/resources/2025_01/collection.rb +114 -0
- data/lib/shopify_api/rest/resources/2025_01/collection_listing.rb +159 -0
- data/lib/shopify_api/rest/resources/2025_01/comment.rb +287 -0
- data/lib/shopify_api/rest/resources/2025_01/country.rb +141 -0
- data/lib/shopify_api/rest/resources/2025_01/currency.rb +61 -0
- data/lib/shopify_api/rest/resources/2025_01/custom_collection.rb +191 -0
- data/lib/shopify_api/rest/resources/2025_01/customer.rb +328 -0
- data/lib/shopify_api/rest/resources/2025_01/customer_address.rb +215 -0
- data/lib/shopify_api/rest/resources/2025_01/deprecated_api_call.rb +61 -0
- data/lib/shopify_api/rest/resources/2025_01/discount_code.rb +226 -0
- data/lib/shopify_api/rest/resources/2025_01/dispute.rb +115 -0
- data/lib/shopify_api/rest/resources/2025_01/dispute_evidence.rb +121 -0
- data/lib/shopify_api/rest/resources/2025_01/dispute_file_upload.rb +85 -0
- data/lib/shopify_api/rest/resources/2025_01/draft_order.rb +279 -0
- data/lib/shopify_api/rest/resources/2025_01/event.rb +152 -0
- data/lib/shopify_api/rest/resources/2025_01/fulfillment.rb +235 -0
- data/lib/shopify_api/rest/resources/2025_01/fulfillment_event.rb +167 -0
- data/lib/shopify_api/rest/resources/2025_01/fulfillment_order.rb +326 -0
- data/lib/shopify_api/rest/resources/2025_01/fulfillment_request.rb +116 -0
- data/lib/shopify_api/rest/resources/2025_01/fulfillment_service.rb +134 -0
- data/lib/shopify_api/rest/resources/2025_01/gift_card.rb +222 -0
- data/lib/shopify_api/rest/resources/2025_01/gift_card_adjustment.rb +122 -0
- data/lib/shopify_api/rest/resources/2025_01/image.rb +161 -0
- data/lib/shopify_api/rest/resources/2025_01/inventory_item.rb +112 -0
- data/lib/shopify_api/rest/resources/2025_01/inventory_level.rb +183 -0
- data/lib/shopify_api/rest/resources/2025_01/location.rb +171 -0
- data/lib/shopify_api/rest/resources/2025_01/locations_for_move.rb +60 -0
- data/lib/shopify_api/rest/resources/2025_01/marketing_event.rb +213 -0
- data/lib/shopify_api/rest/resources/2025_01/metafield.rb +348 -0
- data/lib/shopify_api/rest/resources/2025_01/mobile_platform_application.rb +120 -0
- data/lib/shopify_api/rest/resources/2025_01/order.rb +503 -0
- data/lib/shopify_api/rest/resources/2025_01/order_risk.rb +148 -0
- data/lib/shopify_api/rest/resources/2025_01/page.rb +198 -0
- data/lib/shopify_api/rest/resources/2025_01/payment.rb +98 -0
- data/lib/shopify_api/rest/resources/2025_01/payment_gateway.rb +147 -0
- data/lib/shopify_api/rest/resources/2025_01/payment_transaction.rb +117 -0
- data/lib/shopify_api/rest/resources/2025_01/payout.rb +101 -0
- data/lib/shopify_api/rest/resources/2025_01/policy.rb +73 -0
- data/lib/shopify_api/rest/resources/2025_01/price_rule.rb +227 -0
- data/lib/shopify_api/rest/resources/2025_01/product.rb +227 -0
- data/lib/shopify_api/rest/resources/2025_01/product_listing.rb +200 -0
- data/lib/shopify_api/rest/resources/2025_01/product_resource_feedback.rb +92 -0
- data/lib/shopify_api/rest/resources/2025_01/province.rb +136 -0
- data/lib/shopify_api/rest/resources/2025_01/recurring_application_charge.rb +184 -0
- data/lib/shopify_api/rest/resources/2025_01/redirect.rb +143 -0
- data/lib/shopify_api/rest/resources/2025_01/refund.rb +158 -0
- data/lib/shopify_api/rest/resources/2025_01/resource_feedback.rb +77 -0
- data/lib/shopify_api/rest/resources/2025_01/script_tag.rb +159 -0
- data/lib/shopify_api/rest/resources/2025_01/shipping_zone.rb +87 -0
- data/lib/shopify_api/rest/resources/2025_01/shop.rb +231 -0
- data/lib/shopify_api/rest/resources/2025_01/smart_collection.rb +220 -0
- data/lib/shopify_api/rest/resources/2025_01/storefront_access_token.rb +91 -0
- data/lib/shopify_api/rest/resources/2025_01/tender_transaction.rb +97 -0
- data/lib/shopify_api/rest/resources/2025_01/theme.rb +127 -0
- data/lib/shopify_api/rest/resources/2025_01/transaction.rb +194 -0
- data/lib/shopify_api/rest/resources/2025_01/usage_charge.rb +106 -0
- data/lib/shopify_api/rest/resources/2025_01/user.rb +142 -0
- data/lib/shopify_api/rest/resources/2025_01/variant.rb +212 -0
- data/lib/shopify_api/rest/resources/2025_01/webhook.rb +173 -0
- data/lib/shopify_api/version.rb +1 -1
- metadata +77 -6
@@ -0,0 +1,212 @@
|
|
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 Variant < 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
|
+
@api_call_limit = T.let(Concurrent::ThreadLocalVar.new { nil }, Concurrent::ThreadLocalVar)
|
16
|
+
@retry_request_after = T.let(Concurrent::ThreadLocalVar.new { nil }, Concurrent::ThreadLocalVar)
|
17
|
+
|
18
|
+
sig { params(session: T.nilable(ShopifyAPI::Auth::Session), from_hash: T.nilable(T::Hash[T.untyped, T.untyped])).void }
|
19
|
+
def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil)
|
20
|
+
|
21
|
+
@barcode = T.let(nil, T.nilable(String))
|
22
|
+
@compare_at_price = T.let(nil, T.nilable(String))
|
23
|
+
@created_at = T.let(nil, T.nilable(String))
|
24
|
+
@fulfillment_service = T.let(nil, T.nilable(String))
|
25
|
+
@grams = T.let(nil, T.nilable(Integer))
|
26
|
+
@id = T.let(nil, T.nilable(Integer))
|
27
|
+
@image_id = T.let(nil, T.nilable(Integer))
|
28
|
+
@inventory_item_id = T.let(nil, T.nilable(Integer))
|
29
|
+
@inventory_management = T.let(nil, T.nilable(String))
|
30
|
+
@inventory_policy = T.let(nil, T.nilable(String))
|
31
|
+
@inventory_quantity = T.let(nil, T.nilable(T.any(Integer, String)))
|
32
|
+
@old_inventory_quantity = T.let(nil, T.nilable(T.any(Integer, String)))
|
33
|
+
@option = T.let(nil, T.nilable(T::Hash[T.untyped, T.untyped]))
|
34
|
+
@position = T.let(nil, T.nilable(Integer))
|
35
|
+
@presentment_prices = T.let(nil, T.nilable(T::Array[T.untyped]))
|
36
|
+
@price = T.let(nil, T.nilable(String))
|
37
|
+
@product_id = T.let(nil, T.nilable(Integer))
|
38
|
+
@requires_shipping = T.let(nil, T.nilable(T::Boolean))
|
39
|
+
@sku = T.let(nil, T.nilable(String))
|
40
|
+
@tax_code = T.let(nil, T.nilable(String))
|
41
|
+
@taxable = T.let(nil, T.nilable(T::Boolean))
|
42
|
+
@title = T.let(nil, T.nilable(String))
|
43
|
+
@updated_at = T.let(nil, T.nilable(String))
|
44
|
+
@weight = T.let(nil, T.nilable(Float))
|
45
|
+
@weight_unit = T.let(nil, T.nilable(String))
|
46
|
+
|
47
|
+
super(session: session, from_hash: from_hash)
|
48
|
+
end
|
49
|
+
|
50
|
+
@has_one = T.let({}, T::Hash[Symbol, Class])
|
51
|
+
@has_many = T.let({}, T::Hash[Symbol, Class])
|
52
|
+
@paths = T.let([
|
53
|
+
{http_method: :delete, operation: :delete, ids: [:product_id, :id], path: "products/<product_id>/variants/<id>.json"},
|
54
|
+
{http_method: :get, operation: :count, ids: [:product_id], path: "products/<product_id>/variants/count.json"},
|
55
|
+
{http_method: :get, operation: :get, ids: [:product_id], path: "products/<product_id>/variants.json"},
|
56
|
+
{http_method: :get, operation: :get, ids: [:id], path: "variants/<id>.json"},
|
57
|
+
{http_method: :post, operation: :post, ids: [:product_id], path: "products/<product_id>/variants.json"},
|
58
|
+
{http_method: :put, operation: :put, ids: [:id], path: "variants/<id>.json"}
|
59
|
+
], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
|
60
|
+
@read_only_attributes = T.let([
|
61
|
+
:inventory_quantity
|
62
|
+
], T::Array[Symbol])
|
63
|
+
|
64
|
+
sig { returns(T.nilable(String)) }
|
65
|
+
attr_reader :barcode
|
66
|
+
sig { returns(T.nilable(String)) }
|
67
|
+
attr_reader :compare_at_price
|
68
|
+
sig { returns(T.nilable(String)) }
|
69
|
+
attr_reader :created_at
|
70
|
+
sig { returns(T.nilable(String)) }
|
71
|
+
attr_reader :fulfillment_service
|
72
|
+
sig { returns(T.nilable(Integer)) }
|
73
|
+
attr_reader :grams
|
74
|
+
sig { returns(T.nilable(Integer)) }
|
75
|
+
attr_reader :id
|
76
|
+
sig { returns(T.nilable(Integer)) }
|
77
|
+
attr_reader :image_id
|
78
|
+
sig { returns(T.nilable(Integer)) }
|
79
|
+
attr_reader :inventory_item_id
|
80
|
+
sig { returns(T.nilable(String)) }
|
81
|
+
attr_reader :inventory_management
|
82
|
+
sig { returns(T.nilable(String)) }
|
83
|
+
attr_reader :inventory_policy
|
84
|
+
sig { returns(T.nilable(T.any(Integer, String))) }
|
85
|
+
attr_reader :inventory_quantity
|
86
|
+
sig { returns(T.nilable(T.any(Integer, String))) }
|
87
|
+
attr_reader :old_inventory_quantity
|
88
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
89
|
+
attr_reader :option
|
90
|
+
sig { returns(T.nilable(Integer)) }
|
91
|
+
attr_reader :position
|
92
|
+
sig { returns(T.nilable(T::Array[T::Hash[T.untyped, T.untyped]])) }
|
93
|
+
attr_reader :presentment_prices
|
94
|
+
sig { returns(T.nilable(String)) }
|
95
|
+
attr_reader :price
|
96
|
+
sig { returns(T.nilable(Integer)) }
|
97
|
+
attr_reader :product_id
|
98
|
+
sig { returns(T.nilable(T::Boolean)) }
|
99
|
+
attr_reader :requires_shipping
|
100
|
+
sig { returns(T.nilable(String)) }
|
101
|
+
attr_reader :sku
|
102
|
+
sig { returns(T.nilable(String)) }
|
103
|
+
attr_reader :tax_code
|
104
|
+
sig { returns(T.nilable(T::Boolean)) }
|
105
|
+
attr_reader :taxable
|
106
|
+
sig { returns(T.nilable(String)) }
|
107
|
+
attr_reader :title
|
108
|
+
sig { returns(T.nilable(String)) }
|
109
|
+
attr_reader :updated_at
|
110
|
+
sig { returns(T.nilable(Float)) }
|
111
|
+
attr_reader :weight
|
112
|
+
sig { returns(T.nilable(String)) }
|
113
|
+
attr_reader :weight_unit
|
114
|
+
|
115
|
+
class << self
|
116
|
+
sig do
|
117
|
+
params(
|
118
|
+
id: T.any(Integer, String),
|
119
|
+
fields: T.untyped,
|
120
|
+
session: Auth::Session
|
121
|
+
).returns(T.nilable(Variant))
|
122
|
+
end
|
123
|
+
def find(
|
124
|
+
id:,
|
125
|
+
fields: nil,
|
126
|
+
session: ShopifyAPI::Context.active_session
|
127
|
+
)
|
128
|
+
result = base_find(
|
129
|
+
session: session,
|
130
|
+
ids: {id: id},
|
131
|
+
params: {fields: fields},
|
132
|
+
)
|
133
|
+
T.cast(result[0], T.nilable(Variant))
|
134
|
+
end
|
135
|
+
|
136
|
+
sig do
|
137
|
+
params(
|
138
|
+
id: T.any(Integer, String),
|
139
|
+
product_id: T.nilable(T.any(Integer, String)),
|
140
|
+
session: Auth::Session
|
141
|
+
).returns(T.untyped)
|
142
|
+
end
|
143
|
+
def delete(
|
144
|
+
id:,
|
145
|
+
product_id: nil,
|
146
|
+
session: ShopifyAPI::Context.active_session
|
147
|
+
)
|
148
|
+
request(
|
149
|
+
http_method: :delete,
|
150
|
+
operation: :delete,
|
151
|
+
session: session,
|
152
|
+
ids: {id: id, product_id: product_id},
|
153
|
+
params: {},
|
154
|
+
)
|
155
|
+
end
|
156
|
+
|
157
|
+
sig do
|
158
|
+
params(
|
159
|
+
product_id: T.nilable(T.any(Integer, String)),
|
160
|
+
limit: T.untyped,
|
161
|
+
presentment_currencies: T.untyped,
|
162
|
+
since_id: T.untyped,
|
163
|
+
fields: T.untyped,
|
164
|
+
session: Auth::Session,
|
165
|
+
kwargs: T.untyped
|
166
|
+
).returns(T::Array[Variant])
|
167
|
+
end
|
168
|
+
def all(
|
169
|
+
product_id: nil,
|
170
|
+
limit: nil,
|
171
|
+
presentment_currencies: nil,
|
172
|
+
since_id: nil,
|
173
|
+
fields: nil,
|
174
|
+
session: ShopifyAPI::Context.active_session,
|
175
|
+
**kwargs
|
176
|
+
)
|
177
|
+
response = base_find(
|
178
|
+
session: session,
|
179
|
+
ids: {product_id: product_id},
|
180
|
+
params: {limit: limit, presentment_currencies: presentment_currencies, since_id: since_id, fields: fields}.merge(kwargs).compact,
|
181
|
+
)
|
182
|
+
|
183
|
+
T.cast(response, T::Array[Variant])
|
184
|
+
end
|
185
|
+
|
186
|
+
sig do
|
187
|
+
params(
|
188
|
+
product_id: T.nilable(T.any(Integer, String)),
|
189
|
+
session: Auth::Session,
|
190
|
+
kwargs: T.untyped
|
191
|
+
).returns(T.untyped)
|
192
|
+
end
|
193
|
+
def count(
|
194
|
+
product_id: nil,
|
195
|
+
session: ShopifyAPI::Context.active_session,
|
196
|
+
**kwargs
|
197
|
+
)
|
198
|
+
request(
|
199
|
+
http_method: :get,
|
200
|
+
operation: :count,
|
201
|
+
session: session,
|
202
|
+
ids: {product_id: product_id},
|
203
|
+
params: {}.merge(kwargs).compact,
|
204
|
+
body: {},
|
205
|
+
entity: nil,
|
206
|
+
)
|
207
|
+
end
|
208
|
+
|
209
|
+
end
|
210
|
+
|
211
|
+
end
|
212
|
+
end
|
@@ -0,0 +1,173 @@
|
|
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 Webhook < 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
|
+
@api_call_limit = T.let(Concurrent::ThreadLocalVar.new { nil }, Concurrent::ThreadLocalVar)
|
16
|
+
@retry_request_after = T.let(Concurrent::ThreadLocalVar.new { nil }, Concurrent::ThreadLocalVar)
|
17
|
+
|
18
|
+
sig { params(session: T.nilable(ShopifyAPI::Auth::Session), from_hash: T.nilable(T::Hash[T.untyped, T.untyped])).void }
|
19
|
+
def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil)
|
20
|
+
|
21
|
+
@address = T.let(nil, T.nilable(String))
|
22
|
+
@topic = T.let(nil, T.nilable(String))
|
23
|
+
@api_version = T.let(nil, T.nilable(String))
|
24
|
+
@created_at = T.let(nil, T.nilable(String))
|
25
|
+
@fields = T.let(nil, T.nilable(T::Array[T.untyped]))
|
26
|
+
@filter = T.let(nil, T.nilable(String))
|
27
|
+
@format = T.let(nil, T.nilable(String))
|
28
|
+
@id = T.let(nil, T.nilable(Integer))
|
29
|
+
@metafield_namespaces = T.let(nil, T.nilable(T::Array[T.untyped]))
|
30
|
+
@private_metafield_namespaces = T.let(nil, T.nilable(T::Array[T.untyped]))
|
31
|
+
@updated_at = T.let(nil, T.nilable(String))
|
32
|
+
|
33
|
+
super(session: session, from_hash: from_hash)
|
34
|
+
end
|
35
|
+
|
36
|
+
@has_one = T.let({}, T::Hash[Symbol, Class])
|
37
|
+
@has_many = T.let({}, T::Hash[Symbol, Class])
|
38
|
+
@paths = T.let([
|
39
|
+
{http_method: :delete, operation: :delete, ids: [:id], path: "webhooks/<id>.json"},
|
40
|
+
{http_method: :get, operation: :count, ids: [], path: "webhooks/count.json"},
|
41
|
+
{http_method: :get, operation: :get, ids: [], path: "webhooks.json"},
|
42
|
+
{http_method: :get, operation: :get, ids: [:id], path: "webhooks/<id>.json"},
|
43
|
+
{http_method: :post, operation: :post, ids: [], path: "webhooks.json"},
|
44
|
+
{http_method: :put, operation: :put, ids: [:id], path: "webhooks/<id>.json"}
|
45
|
+
], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
|
46
|
+
|
47
|
+
sig { returns(T.nilable(String)) }
|
48
|
+
attr_reader :address
|
49
|
+
sig { returns(T.nilable(String)) }
|
50
|
+
attr_reader :topic
|
51
|
+
sig { returns(T.nilable(String)) }
|
52
|
+
attr_reader :api_version
|
53
|
+
sig { returns(T.nilable(String)) }
|
54
|
+
attr_reader :created_at
|
55
|
+
sig { returns(T.nilable(T::Array[String])) }
|
56
|
+
attr_reader :fields
|
57
|
+
sig { returns(T.nilable(String)) }
|
58
|
+
attr_reader :format
|
59
|
+
sig { returns(T.nilable(Integer)) }
|
60
|
+
attr_reader :id
|
61
|
+
sig { returns(T.nilable(T::Array[String])) }
|
62
|
+
attr_reader :metafield_namespaces
|
63
|
+
sig { returns(T.nilable(T::Array[String])) }
|
64
|
+
attr_reader :private_metafield_namespaces
|
65
|
+
sig { returns(T.nilable(String)) }
|
66
|
+
attr_reader :updated_at
|
67
|
+
|
68
|
+
class << self
|
69
|
+
sig do
|
70
|
+
params(
|
71
|
+
id: T.any(Integer, String),
|
72
|
+
fields: T.untyped,
|
73
|
+
session: Auth::Session
|
74
|
+
).returns(T.nilable(Webhook))
|
75
|
+
end
|
76
|
+
def find(
|
77
|
+
id:,
|
78
|
+
fields: nil,
|
79
|
+
session: ShopifyAPI::Context.active_session
|
80
|
+
)
|
81
|
+
result = base_find(
|
82
|
+
session: session,
|
83
|
+
ids: {id: id},
|
84
|
+
params: {fields: fields},
|
85
|
+
)
|
86
|
+
T.cast(result[0], T.nilable(Webhook))
|
87
|
+
end
|
88
|
+
|
89
|
+
sig do
|
90
|
+
params(
|
91
|
+
id: T.any(Integer, String),
|
92
|
+
session: Auth::Session
|
93
|
+
).returns(T.untyped)
|
94
|
+
end
|
95
|
+
def delete(
|
96
|
+
id:,
|
97
|
+
session: ShopifyAPI::Context.active_session
|
98
|
+
)
|
99
|
+
request(
|
100
|
+
http_method: :delete,
|
101
|
+
operation: :delete,
|
102
|
+
session: session,
|
103
|
+
ids: {id: id},
|
104
|
+
params: {},
|
105
|
+
)
|
106
|
+
end
|
107
|
+
|
108
|
+
sig do
|
109
|
+
params(
|
110
|
+
address: T.untyped,
|
111
|
+
created_at_max: T.untyped,
|
112
|
+
created_at_min: T.untyped,
|
113
|
+
fields: T.untyped,
|
114
|
+
limit: T.untyped,
|
115
|
+
since_id: T.untyped,
|
116
|
+
topic: T.untyped,
|
117
|
+
updated_at_min: T.untyped,
|
118
|
+
updated_at_max: T.untyped,
|
119
|
+
session: Auth::Session,
|
120
|
+
kwargs: T.untyped
|
121
|
+
).returns(T::Array[Webhook])
|
122
|
+
end
|
123
|
+
def all(
|
124
|
+
address: nil,
|
125
|
+
created_at_max: nil,
|
126
|
+
created_at_min: nil,
|
127
|
+
fields: nil,
|
128
|
+
limit: nil,
|
129
|
+
since_id: nil,
|
130
|
+
topic: nil,
|
131
|
+
updated_at_min: nil,
|
132
|
+
updated_at_max: nil,
|
133
|
+
session: ShopifyAPI::Context.active_session,
|
134
|
+
**kwargs
|
135
|
+
)
|
136
|
+
response = base_find(
|
137
|
+
session: session,
|
138
|
+
ids: {},
|
139
|
+
params: {address: address, created_at_max: created_at_max, created_at_min: created_at_min, fields: fields, limit: limit, since_id: since_id, topic: topic, updated_at_min: updated_at_min, updated_at_max: updated_at_max}.merge(kwargs).compact,
|
140
|
+
)
|
141
|
+
|
142
|
+
T.cast(response, T::Array[Webhook])
|
143
|
+
end
|
144
|
+
|
145
|
+
sig do
|
146
|
+
params(
|
147
|
+
address: T.untyped,
|
148
|
+
topic: T.untyped,
|
149
|
+
session: Auth::Session,
|
150
|
+
kwargs: T.untyped
|
151
|
+
).returns(T.untyped)
|
152
|
+
end
|
153
|
+
def count(
|
154
|
+
address: nil,
|
155
|
+
topic: nil,
|
156
|
+
session: ShopifyAPI::Context.active_session,
|
157
|
+
**kwargs
|
158
|
+
)
|
159
|
+
request(
|
160
|
+
http_method: :get,
|
161
|
+
operation: :count,
|
162
|
+
session: session,
|
163
|
+
ids: {},
|
164
|
+
params: {address: address, topic: topic}.merge(kwargs).compact,
|
165
|
+
body: {},
|
166
|
+
entity: nil,
|
167
|
+
)
|
168
|
+
end
|
169
|
+
|
170
|
+
end
|
171
|
+
|
172
|
+
end
|
173
|
+
end
|
data/lib/shopify_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.
|
4
|
+
version: 14.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-06 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activesupport
|
@@ -222,6 +221,7 @@ files:
|
|
222
221
|
- lib/shopify_api/context.rb
|
223
222
|
- lib/shopify_api/errors/context_not_setup_error.rb
|
224
223
|
- lib/shopify_api/errors/cookie_not_found_error.rb
|
224
|
+
- lib/shopify_api/errors/disabled_resource_error.rb
|
225
225
|
- lib/shopify_api/errors/feature_deprecated_error.rb
|
226
226
|
- lib/shopify_api/errors/http_response_error.rb
|
227
227
|
- lib/shopify_api/errors/invalid_graphql_request_error.rb
|
@@ -1064,6 +1064,79 @@ files:
|
|
1064
1064
|
- lib/shopify_api/rest/resources/2024_10/user.rb
|
1065
1065
|
- lib/shopify_api/rest/resources/2024_10/variant.rb
|
1066
1066
|
- lib/shopify_api/rest/resources/2024_10/webhook.rb
|
1067
|
+
- lib/shopify_api/rest/resources/2025_01/abandoned_checkout.rb
|
1068
|
+
- lib/shopify_api/rest/resources/2025_01/access_scope.rb
|
1069
|
+
- lib/shopify_api/rest/resources/2025_01/apple_pay_certificate.rb
|
1070
|
+
- lib/shopify_api/rest/resources/2025_01/application_charge.rb
|
1071
|
+
- lib/shopify_api/rest/resources/2025_01/application_credit.rb
|
1072
|
+
- lib/shopify_api/rest/resources/2025_01/article.rb
|
1073
|
+
- lib/shopify_api/rest/resources/2025_01/asset.rb
|
1074
|
+
- lib/shopify_api/rest/resources/2025_01/assigned_fulfillment_order.rb
|
1075
|
+
- lib/shopify_api/rest/resources/2025_01/balance.rb
|
1076
|
+
- lib/shopify_api/rest/resources/2025_01/blog.rb
|
1077
|
+
- lib/shopify_api/rest/resources/2025_01/cancellation_request.rb
|
1078
|
+
- lib/shopify_api/rest/resources/2025_01/carrier_service.rb
|
1079
|
+
- lib/shopify_api/rest/resources/2025_01/checkout.rb
|
1080
|
+
- lib/shopify_api/rest/resources/2025_01/collect.rb
|
1081
|
+
- lib/shopify_api/rest/resources/2025_01/collection.rb
|
1082
|
+
- lib/shopify_api/rest/resources/2025_01/collection_listing.rb
|
1083
|
+
- lib/shopify_api/rest/resources/2025_01/comment.rb
|
1084
|
+
- lib/shopify_api/rest/resources/2025_01/country.rb
|
1085
|
+
- lib/shopify_api/rest/resources/2025_01/currency.rb
|
1086
|
+
- lib/shopify_api/rest/resources/2025_01/custom_collection.rb
|
1087
|
+
- lib/shopify_api/rest/resources/2025_01/customer.rb
|
1088
|
+
- lib/shopify_api/rest/resources/2025_01/customer_address.rb
|
1089
|
+
- lib/shopify_api/rest/resources/2025_01/deprecated_api_call.rb
|
1090
|
+
- lib/shopify_api/rest/resources/2025_01/discount_code.rb
|
1091
|
+
- lib/shopify_api/rest/resources/2025_01/dispute.rb
|
1092
|
+
- lib/shopify_api/rest/resources/2025_01/dispute_evidence.rb
|
1093
|
+
- lib/shopify_api/rest/resources/2025_01/dispute_file_upload.rb
|
1094
|
+
- lib/shopify_api/rest/resources/2025_01/draft_order.rb
|
1095
|
+
- lib/shopify_api/rest/resources/2025_01/event.rb
|
1096
|
+
- lib/shopify_api/rest/resources/2025_01/fulfillment.rb
|
1097
|
+
- lib/shopify_api/rest/resources/2025_01/fulfillment_event.rb
|
1098
|
+
- lib/shopify_api/rest/resources/2025_01/fulfillment_order.rb
|
1099
|
+
- lib/shopify_api/rest/resources/2025_01/fulfillment_request.rb
|
1100
|
+
- lib/shopify_api/rest/resources/2025_01/fulfillment_service.rb
|
1101
|
+
- lib/shopify_api/rest/resources/2025_01/gift_card.rb
|
1102
|
+
- lib/shopify_api/rest/resources/2025_01/gift_card_adjustment.rb
|
1103
|
+
- lib/shopify_api/rest/resources/2025_01/image.rb
|
1104
|
+
- lib/shopify_api/rest/resources/2025_01/inventory_item.rb
|
1105
|
+
- lib/shopify_api/rest/resources/2025_01/inventory_level.rb
|
1106
|
+
- lib/shopify_api/rest/resources/2025_01/location.rb
|
1107
|
+
- lib/shopify_api/rest/resources/2025_01/locations_for_move.rb
|
1108
|
+
- lib/shopify_api/rest/resources/2025_01/marketing_event.rb
|
1109
|
+
- lib/shopify_api/rest/resources/2025_01/metafield.rb
|
1110
|
+
- lib/shopify_api/rest/resources/2025_01/mobile_platform_application.rb
|
1111
|
+
- lib/shopify_api/rest/resources/2025_01/order.rb
|
1112
|
+
- lib/shopify_api/rest/resources/2025_01/order_risk.rb
|
1113
|
+
- lib/shopify_api/rest/resources/2025_01/page.rb
|
1114
|
+
- lib/shopify_api/rest/resources/2025_01/payment.rb
|
1115
|
+
- lib/shopify_api/rest/resources/2025_01/payment_gateway.rb
|
1116
|
+
- lib/shopify_api/rest/resources/2025_01/payment_transaction.rb
|
1117
|
+
- lib/shopify_api/rest/resources/2025_01/payout.rb
|
1118
|
+
- lib/shopify_api/rest/resources/2025_01/policy.rb
|
1119
|
+
- lib/shopify_api/rest/resources/2025_01/price_rule.rb
|
1120
|
+
- lib/shopify_api/rest/resources/2025_01/product.rb
|
1121
|
+
- lib/shopify_api/rest/resources/2025_01/product_listing.rb
|
1122
|
+
- lib/shopify_api/rest/resources/2025_01/product_resource_feedback.rb
|
1123
|
+
- lib/shopify_api/rest/resources/2025_01/province.rb
|
1124
|
+
- lib/shopify_api/rest/resources/2025_01/recurring_application_charge.rb
|
1125
|
+
- lib/shopify_api/rest/resources/2025_01/redirect.rb
|
1126
|
+
- lib/shopify_api/rest/resources/2025_01/refund.rb
|
1127
|
+
- lib/shopify_api/rest/resources/2025_01/resource_feedback.rb
|
1128
|
+
- lib/shopify_api/rest/resources/2025_01/script_tag.rb
|
1129
|
+
- lib/shopify_api/rest/resources/2025_01/shipping_zone.rb
|
1130
|
+
- lib/shopify_api/rest/resources/2025_01/shop.rb
|
1131
|
+
- lib/shopify_api/rest/resources/2025_01/smart_collection.rb
|
1132
|
+
- lib/shopify_api/rest/resources/2025_01/storefront_access_token.rb
|
1133
|
+
- lib/shopify_api/rest/resources/2025_01/tender_transaction.rb
|
1134
|
+
- lib/shopify_api/rest/resources/2025_01/theme.rb
|
1135
|
+
- lib/shopify_api/rest/resources/2025_01/transaction.rb
|
1136
|
+
- lib/shopify_api/rest/resources/2025_01/usage_charge.rb
|
1137
|
+
- lib/shopify_api/rest/resources/2025_01/user.rb
|
1138
|
+
- lib/shopify_api/rest/resources/2025_01/variant.rb
|
1139
|
+
- lib/shopify_api/rest/resources/2025_01/webhook.rb
|
1067
1140
|
- lib/shopify_api/utils/attributes_comparator.rb
|
1068
1141
|
- lib/shopify_api/utils/graphql_proxy.rb
|
1069
1142
|
- lib/shopify_api/utils/hmac_validator.rb
|
@@ -1141,7 +1214,6 @@ licenses:
|
|
1141
1214
|
- MIT
|
1142
1215
|
metadata:
|
1143
1216
|
allowed_push_host: https://rubygems.org
|
1144
|
-
post_install_message:
|
1145
1217
|
rdoc_options:
|
1146
1218
|
- "--charset=UTF-8"
|
1147
1219
|
require_paths:
|
@@ -1157,8 +1229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1157
1229
|
- !ruby/object:Gem::Version
|
1158
1230
|
version: '0'
|
1159
1231
|
requirements: []
|
1160
|
-
rubygems_version: 3.
|
1161
|
-
signing_key:
|
1232
|
+
rubygems_version: 3.6.2
|
1162
1233
|
specification_version: 4
|
1163
1234
|
summary: The gem for accessing the Shopify API
|
1164
1235
|
test_files: []
|