UNPKG

@shipengine/connect-order-source-api

Version:

This is the typescript/javascript definitions for the order source api

21 lines (20 loc) 1.04 kB
import Joi from 'joi'; type Status = 'success' | 'failure'; /** @description Reject result item */ export declare class RejectSalesOrderItemsResult { /** @description Identifier for the requested reject notification */ notification_id: string; /** @description An identifier provided by the order source to reject the items on the fulfillment */ confimation_code?: string; /** @description Details given by the order source if the reject action fails */ failure_reason?: string; /** @description Result status from the reject action performed on the item. Only supported values are 'success' or 'failure'. */ status: Status; } export declare const RejectSalesOrderItemsResultSchema: Joi.ObjectSchema<any>; /** @description A response for the reject action that was performed on any number of sales order items */ export declare class RejectSalesOrderItemsResponse { results: RejectSalesOrderItemsResult[]; } export declare const RejectSalesOrderItemsResponseSchema: Joi.ObjectSchema<any>; export {};