storenest-commerce
Version:
Complete e-commerce SDK for Storenest platform with React components, multi-language support, secure checkout, and enterprise-grade security
38 lines (37 loc) • 948 B
TypeScript
export interface Order {
orderNumber: string;
totalAmount: number;
status: string;
createdAt: string;
deliveryMethodId: number;
paymentMethodId: number;
email?: string;
orderItems?: any[];
orderAddress?: any;
}
export interface PlaceOrderParams {
userId: number;
cartId: string;
deliveryMethodId: number;
paymentMethodId: number;
address: {
firstName: string;
lastName: string;
email: string;
phone?: string;
address: string;
city: string;
state?: string;
zipCode: string;
country: string;
};
}
export interface OrderConfirmation {
orderId: string;
orderNumber: string;
status: string;
totalAmount: number;
confirmationUrl?: string;
}
export declare function getOrder(orderNumber: string): Promise<Order>;
export declare function placeOrder(params: PlaceOrderParams): Promise<OrderConfirmation>;