413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
|
# File 'lib/shopify_api/rest/resources/2022_04/order.rb', line 413
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
|