402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
|
# File 'lib/shopify_api/rest/resources/2021_07/order.rb', line 402
def cancel(
amount: nil,
currency: nil,
restock: nil,
reason: nil,
email: nil,
refund: nil,
body: nil,
**kwargs
)
self.class.request(
http_method: :post,
operation: :cancel,
session: @session,
ids: {id: @id},
params: {amount: amount, currency: currency, restock: restock, reason: reason, email: email, refund: refund}.merge(kwargs).compact,
body: body,
entity: self,
)
end
|