added changes

This commit is contained in:
--list
2021-07-02 12:11:09 +02:00
parent 46a3cb3710
commit 02b6c19391
3 changed files with 46 additions and 26 deletions
@@ -22,7 +22,7 @@ import { defaultRelations, defaultFields } from "./"
* items:
* type: string
* no_notification:
* description: If set to true no notification will be send related to this Claim.
* description: If set to true no notification will be send related to this Shipment.
* type: boolean
* tags:
* - Order
@@ -59,7 +59,7 @@ export default async (req, res) => {
id,
value.fulfillment_id,
value.tracking_numbers.map(n => ({ tracking_number: n })),
{noNotification: value.no_notification},
{ noNotification: value.no_notification }
)
const order = await orderService.retrieve(id, {
@@ -26,7 +26,7 @@ import { defaultRelations, defaultFields } from "./"
* description: A not with additional details about the Refund.
* type: string
* no_notification:
* description: If set to true no notification will be send related to this Swap.
* description: If set to true no notification will be send related to this Refund.
* type: boolean
* tags:
* - Order
@@ -62,7 +62,13 @@ export default async (req, res) => {
try {
const orderService = req.scope.resolve("orderService")
await orderService.createRefund(id, value.amount, value.reason, value.note, {noNotification: value.no_notification})
await orderService.createRefund(
id,
value.amount,
value.reason,
value.note,
{ noNotification: value.no_notification }
)
const order = await orderService.retrieve(id, {
select: defaultFields,