update customer package
This commit is contained in:
+21
-17
@@ -2,16 +2,18 @@ import type { Attachment, Model, PageResult, User } from "timi-web-api";
|
||||
import type { Customer } from "@/types/Customer";
|
||||
import type { EventRecord } from "@/types/EventRecord";
|
||||
|
||||
export type SalesOrderType = "PACKAGE" | "DIRECT_PRODUCT";
|
||||
export type SalesOrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED";
|
||||
export type SalesPaymentStatus = "UNPAID" | "PARTIALLY_PAID" | "PAID";
|
||||
export type SalesRefundStatus = "NOT_REQUIRED" | "PENDING" | "REFUNDED";
|
||||
export type GaoSalesOrderType = "PACKAGE" | "DIRECT_PRODUCT";
|
||||
export type GaoSalesOrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED";
|
||||
export type GaoSalesOrderItemType = "PACKAGE_ENTITLEMENT" | "DIRECT_PRODUCT";
|
||||
export type GaoSalesPaymentStatus = "UNPAID" | "PARTIALLY_PAID" | "PAID";
|
||||
export type GaoSalesRefundStatus = "NOT_REQUIRED" | "PENDING" | "REFUNDED";
|
||||
export type FundBizType = "SALES_ORDER";
|
||||
export type FundOperationType = "RECEIVE" | "REFUND" | "CONFIRM_NO_REFUND" | "REVOKE";
|
||||
export type FundRecordStatus = "PENDING" | "VERIFIED" | "REJECTED" | "CANCELLED";
|
||||
|
||||
export type SalesOrderItem = {
|
||||
export type GaoSalesOrderItem = {
|
||||
salesOrderId?: string;
|
||||
itemType?: GaoSalesOrderItemType;
|
||||
productId?: string;
|
||||
productUnitId?: string;
|
||||
attachmentList?: Attachment[];
|
||||
@@ -21,8 +23,11 @@ export type SalesOrderItem = {
|
||||
quantity?: number | string;
|
||||
reservedQuantity?: number | string;
|
||||
fulfilledQuantity?: number | string;
|
||||
unitPrice?: number;
|
||||
lineAmount?: number;
|
||||
unitPrice?: number | null;
|
||||
lineAmount?: number | null;
|
||||
pendingQuantity?: number | string;
|
||||
availableQuantity?: number | string;
|
||||
remainingQuantity?: number | string;
|
||||
sort?: number;
|
||||
remark?: string | null;
|
||||
} & Model;
|
||||
@@ -31,10 +36,10 @@ export type SalesOrder = {
|
||||
storeId?: string;
|
||||
customerId?: string;
|
||||
orderNo?: string;
|
||||
orderType?: SalesOrderType;
|
||||
status?: SalesOrderStatus;
|
||||
paymentStatus?: SalesPaymentStatus;
|
||||
refundStatus?: SalesRefundStatus;
|
||||
orderType?: GaoSalesOrderType;
|
||||
status?: GaoSalesOrderStatus;
|
||||
paymentStatus?: GaoSalesPaymentStatus;
|
||||
refundStatus?: GaoSalesRefundStatus;
|
||||
saleAmount?: number;
|
||||
pendingPaidAmount?: number;
|
||||
paidAmount?: number;
|
||||
@@ -52,7 +57,7 @@ export type SalesOrder = {
|
||||
customer?: Customer;
|
||||
operator?: Partial<User>;
|
||||
cancelOperator?: Partial<User>;
|
||||
itemList?: SalesOrderItem[];
|
||||
itemList?: GaoSalesOrderItem[];
|
||||
fundRecordList?: FundRecord[];
|
||||
sourceEventRecord?: EventRecord;
|
||||
attachmentList?: Partial<Attachment>[];
|
||||
@@ -61,10 +66,10 @@ export type SalesOrder = {
|
||||
export type SalesOrderPage = {
|
||||
storeId?: string;
|
||||
customerId?: string;
|
||||
orderType?: SalesOrderType;
|
||||
status?: SalesOrderStatus;
|
||||
paymentStatus?: SalesPaymentStatus;
|
||||
refundStatus?: SalesRefundStatus;
|
||||
orderType?: GaoSalesOrderType;
|
||||
status?: GaoSalesOrderStatus;
|
||||
paymentStatus?: GaoSalesPaymentStatus;
|
||||
refundStatus?: GaoSalesRefundStatus;
|
||||
pendingReceive?: boolean;
|
||||
fulfilledButUnpaid?: boolean;
|
||||
keyword?: string;
|
||||
@@ -122,7 +127,6 @@ export type OrderPaymentRefundRequest = {
|
||||
|
||||
export type OrderPaymentNoRefundRequest = {
|
||||
salesOrderId: string;
|
||||
requestNo: string;
|
||||
occurredAt?: number;
|
||||
reason: string;
|
||||
remark?: string | null;
|
||||
|
||||
Reference in New Issue
Block a user