172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
# File 'lib/shopify_api/rest/resources/2022_04/variant.rb', line 172
def all(
product_id: nil,
limit: nil,
presentment_currencies: nil,
since_id: nil,
fields: nil,
session: ShopifyAPI::Context.active_session,
**kwargs
)
response = base_find(
session: session,
ids: {product_id: product_id},
params: {limit: limit, presentment_currencies: presentment_currencies, since_id: since_id, fields: fields}.merge(kwargs).compact,
)
T.cast(response, T::Array[Variant])
end
|