Skip to main content
Skip to main content

createOrderChange - Order Module Reference

This documentation provides a reference to the createOrderChange method. This belongs to the Order Module.

createOrderChange(data, sharedContext?): Promise<OrderChangeDTO>

Parameters

sharedContextContext

Returns

PromisePromise<OrderChangeDTO>Required

createOrderChange(data, sharedContext?): Promise<OrderChangeDTO[]>

This method creates {return type}(s)

Example

// Example call to createOrderChange

const createOrderChangeData: CreateOrderChangeDTO[] = [{
order_id: "order123",
description: "Change due to customer request"
}];

const result = await orderModuleService.createOrderChange(createOrderChangeData);

Parameters

dataCreateOrderChangeDTO[]Required
The order change to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<OrderChangeDTO[]>Required
The created {return type}(s).

createOrderChange(data, sharedContext?): Promise<OrderChangeDTO | OrderChangeDTO[]>

This method creates {return type}(s)

Example

const result = await orderModuleService.createOrderChange({
order_id: "order123",
description: "Adding new item to the order"
});

Parameters

The order change d t o | create order change to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<OrderChangeDTO | OrderChangeDTO[]>Required
The created {return type}(s).
Was this section helpful?