import type { OmsAdjustmentTotal } from './OmsAdjustmentTotal'; import type { OmsAdjustmentLineItem } from './OmsAdjustmentLineItem'; /** * @type OmsAdjustment: A post-order adjustment reported by an external OMS (for example, refund, return, cancellation). * * @property id: * - **Min Length:** 1 * - **Max Length:** 256 * * @property type: Adjustment type (open string, for example, refund, return, credit, cancellation). * - **Min Length:** 1 * - **Max Length:** 256 * * @property occurredAt: * * @property status: * * @property lineItems: * * @property totals: * * @property description: Free-form note about the adjustment provided by the OMS. Shown to support agents and forwarded to order event subscribers. * - **Min Length:** 1 * - **Max Length:** 256 * */ export type OmsAdjustment = { id: string; type: string; occurredAt: string; status: OmsAdjustmentStatusEnum; lineItems?: Array; totals?: Array; description?: string; } & { [key: string]: any; }; export type OmsAdjustmentStatusEnum = 'pending' | 'completed' | 'failed';