Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 16x 16x 16x 16x 1x 1x 1x | import ProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/ProcessDto';
import ABaseConnector from './ABaseConnector';
export const NAME = 'set-order-status';
export default class SetOrderStatus extends ABaseConnector<IInput, unknown> {
public getName(): string {
return NAME;
}
protected getMethod(): string {
return 'setOrderStatus';
}
// eslint-disable-next-line @typescript-eslint/require-await
protected async getParameters(dto: ProcessDto<IInput>): Promise<object> {
const { orderId, statusId } = dto.getJsonData();
return {
order_id: orderId,
status_id: statusId,
};
}
}
export interface IInput {
orderId: number
statusId: number
}
|