181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
# File 'lib/shopify_api/rest/resources/2022_04/metafield.rb', line 181
def find(
id:,
article_id: nil,
blog_id: nil,
collection_id: nil,
customer_id: nil,
draft_order_id: nil,
order_id: nil,
page_id: nil,
product_image_id: nil,
product_id: nil,
variant_id: nil,
fields: nil,
session: ShopifyAPI::Context.active_session
)
result = base_find(
session: session,
ids: {id: id, article_id: article_id, blog_id: blog_id, collection_id: collection_id, customer_id: customer_id, draft_order_id: draft_order_id, order_id: order_id, page_id: page_id, product_image_id: product_image_id, product_id: product_id, variant_id: variant_id},
params: {fields: fields},
)
T.cast(result[0], T.nilable(Metafield))
end
|