projects/core/src/model/order.model.ts
Properties |
|
| appliedOrderPromotions |
appliedOrderPromotions:
|
Type : PromotionResult[]
|
| Optional |
| appliedProductPromotions |
appliedProductPromotions:
|
Type : PromotionResult[]
|
| Optional |
| appliedVouchers |
appliedVouchers:
|
Type : Voucher[]
|
| Optional |
| calculated |
calculated:
|
Type : boolean
|
| Optional |
| cancellable |
cancellable:
|
Type : boolean
|
| Optional |
| code |
code:
|
Type : string
|
| Optional |
| consignments |
consignments:
|
Type : Consignment[]
|
| Optional |
| costCenter |
costCenter:
|
Type : CostCenter
|
| Optional |
| created |
created:
|
Type : Date
|
| Optional |
| deliveryAddress |
deliveryAddress:
|
Type : Address
|
| Optional |
| deliveryCost |
deliveryCost:
|
Type : Price
|
| Optional |
| deliveryItemsQuantity |
deliveryItemsQuantity:
|
Type : number
|
| Optional |
| deliveryMode |
deliveryMode:
|
Type : DeliveryMode
|
| Optional |
| deliveryOrderGroups |
deliveryOrderGroups:
|
Type : DeliveryOrderEntryGroup[]
|
| Optional |
| deliveryStatus |
deliveryStatus:
|
Type : string
|
| Optional |
| deliveryStatusDisplay |
deliveryStatusDisplay:
|
Type : string
|
| Optional |
| entries |
entries:
|
Type : OrderEntry[]
|
| Optional |
| guestCustomer |
guestCustomer:
|
Type : boolean
|
| Optional |
| guid |
guid:
|
Type : string
|
| Optional |
| net |
net:
|
Type : boolean
|
| Optional |
| orderDiscounts |
orderDiscounts:
|
Type : Price
|
| Optional |
| orgCustomer |
orgCustomer:
|
Type : B2BUser
|
| Optional |
| paymentInfo |
paymentInfo:
|
Type : PaymentDetails
|
| Optional |
| pickupItemsQuantity |
pickupItemsQuantity:
|
Type : number
|
| Optional |
| pickupOrderGroups |
pickupOrderGroups:
|
Type : PickupOrderEntryGroup[]
|
| Optional |
| productDiscounts |
productDiscounts:
|
Type : Price
|
| Optional |
| purchaseOrderNumber |
purchaseOrderNumber:
|
Type : string
|
| Optional |
| returnable |
returnable:
|
Type : boolean
|
| Optional |
| site |
site:
|
Type : string
|
| Optional |
| status |
status:
|
Type : string
|
| Optional |
| statusDisplay |
statusDisplay:
|
Type : string
|
| Optional |
| store |
store:
|
Type : string
|
| Optional |
| subTotal |
subTotal:
|
Type : Price
|
| Optional |
| totalDiscounts |
totalDiscounts:
|
Type : Price
|
| Optional |
| totalItems |
totalItems:
|
Type : number
|
| Optional |
| totalPrice |
totalPrice:
|
Type : Price
|
| Optional |
| totalPriceWithTax |
totalPriceWithTax:
|
Type : Price
|
| Optional |
| totalTax |
totalTax:
|
Type : Price
|
| Optional |
| unconsignedEntries |
unconsignedEntries:
|
Type : OrderEntry[]
|
| Optional |
| user |
user:
|
Type : Principal
|
| Optional |
import { Address } from './address.model';
import {
DeliveryOrderEntryGroup,
PaymentDetails,
Principal,
PromotionResult,
Voucher,
} from './cart.model';
import { PaginationModel, SortModel } from './misc.model';
import { B2BUser, CostCenter } from './org-unit.model';
import { PointOfService } from './point-of-service.model';
import { Price, Product } from './product.model';
export interface DeliveryMode {
code?: string;
deliveryCost?: Price;
description?: string;
name?: string;
}
export interface OrderEntry {
orderCode?: string;
basePrice?: Price;
deliveryMode?: DeliveryMode;
deliveryPointOfService?: PointOfService;
entryNumber?: number;
product?: Product;
quantity?: number;
totalPrice?: Price;
updateable?: boolean;
returnedItemsPrice?: Price;
returnableQuantity?: number;
cancelledItemsPrice?: Price;
cancellableQuantity?: number;
promotions?: PromotionResult[];
}
export interface CancelOrReturnRequestEntryInput {
orderEntryNumber?: number;
quantity?: number;
}
export interface ReturnRequestEntryInputList {
orderCode?: string;
returnRequestEntryInputs?: CancelOrReturnRequestEntryInput[];
}
export interface CancellationRequestEntryInputList {
cancellationRequestEntryInputs?: CancelOrReturnRequestEntryInput[];
}
export interface ReturnRequestEntry {
orderEntry?: OrderEntry;
expectedQuantity?: number;
refundAmount?: Price;
}
export interface ReturnRequest {
cancellable?: boolean;
code?: string;
creationTime?: Date;
deliveryCost?: Price;
order?: Order;
refundDeliveryCost?: boolean;
returnEntries?: ReturnRequestEntry[];
returnLabelDownloadUrl?: string;
rma?: string;
status?: string;
subTotal?: Price;
totalPrice?: Price;
}
export interface ReturnRequestList {
returnRequests?: ReturnRequest[];
pagination?: PaginationModel;
sorts?: SortModel[];
}
export interface ReturnRequestModification {
status?: string;
}
export interface PickupOrderEntryGroup {
deliveryPointOfService?: PointOfService;
distance?: number;
entries?: OrderEntry[];
quantity?: number;
totalPriceWithTax?: Price;
}
export interface PromotionOrderEntryConsumed {
adjustedUnitPrice?: number;
code?: string;
orderEntryNumber?: number;
quantity?: number;
}
export interface ConsignmentEntry {
orderEntry?: OrderEntry;
quantity?: number;
shippedQuantity?: number;
}
export interface Consignment {
code?: string;
deliveryPointOfService?: PointOfService;
entries?: ConsignmentEntry[];
shippingAddress?: Address;
status?: string;
statusDate?: Date;
trackingID?: string;
}
export interface OrderHistory {
code?: string;
guid?: string;
placed?: Date;
status?: string;
statusDisplay?: string;
total?: Price;
}
export interface OrderHistoryList {
orders?: OrderHistory[];
pagination?: PaginationModel;
sorts?: SortModel[];
}
export interface Order {
appliedOrderPromotions?: PromotionResult[];
appliedProductPromotions?: PromotionResult[];
appliedVouchers?: Voucher[];
calculated?: boolean;
code?: string;
consignments?: Consignment[];
costCenter?: CostCenter;
created?: Date;
deliveryAddress?: Address;
deliveryCost?: Price;
deliveryItemsQuantity?: number;
deliveryMode?: DeliveryMode;
deliveryOrderGroups?: DeliveryOrderEntryGroup[];
deliveryStatus?: string;
deliveryStatusDisplay?: string;
entries?: OrderEntry[];
guestCustomer?: boolean;
guid?: string;
net?: boolean;
orderDiscounts?: Price;
orgCustomer?: B2BUser;
paymentInfo?: PaymentDetails;
pickupItemsQuantity?: number;
pickupOrderGroups?: PickupOrderEntryGroup[];
productDiscounts?: Price;
purchaseOrderNumber?: string;
site?: string;
status?: string;
statusDisplay?: string;
store?: string;
subTotal?: Price;
totalDiscounts?: Price;
totalItems?: number;
totalPrice?: Price;
totalPriceWithTax?: Price;
totalTax?: Price;
unconsignedEntries?: OrderEntry[];
user?: Principal;
returnable?: boolean;
cancellable?: boolean;
}