alien4u
09/19/2024, 10:24 AMNickSuite
09/19/2024, 10:30 AMPavel
09/19/2024, 10:42 AMNathan L
09/19/2024, 11:20 AMNathan L
09/19/2024, 11:21 AMalien4u
09/19/2024, 11:40 AMericl
09/19/2024, 12:38 PMNathan L
09/19/2024, 1:10 PMNathan L
09/19/2024, 1:13 PMNathan L
09/19/2024, 1:14 PMShawn Talbert
09/19/2024, 2:03 PMalien4u
09/19/2024, 2:31 PMalien4u
09/19/2024, 2:50 PMbbahrman
09/19/2024, 2:50 PMShawn Talbert
09/19/2024, 2:50 PMbbahrman
09/19/2024, 2:55 PMalien4u
09/19/2024, 2:56 PMbbahrman
09/19/2024, 3:00 PMexport interface IOrder {
id: string; // order id ex: "292078",
subtotal: number; // ex 319.0
tax: number; // ex 0.0
shipping: number; // ex 0.0
discount: number; // ex 0.0
payment_method: "card";
payment_success: null // todo ask Jon if this is ever something
created: string; // ex "2023-10-04T23:26:47.641127-04:00"
status: "accepted"|"shipped";
total: number; // ex 319.0
destination: string; // ex "123 W Main St | Wichita, KS"
has_return_request: boolean;
clinic_id: string; // ex "3040"
shipping_speed: "Standard"; // todo check other values
po_number: string; //ex ""
shipping_address: {
name: string;
address_one: string;
address_two?: string;
city: string; // ex: "Wichita"
state: string; // ex: "KS"
postal_code: string; // ex: "67205"
}
billing_address?: {
name: string;
address_one: string;
address_two?: string;
city: string; // ex: "Wichita"
state: string; // ex: "KS"
postal_code: string; // ex: "67205"
}
phone_number: string; // ex: "3162625321"
name: string; // clinic name
license_number: string; // ex: "6462"
email: string;
tracking_data: { carrier: string; tracking_code: string; }[];
items: ILineItem[]
}
alien4u
09/19/2024, 3:07 PMShawn Talbert
09/19/2024, 3:18 PMbbahrman
09/19/2024, 3:43 PMalien4u
09/19/2024, 3:53 PMShawn Talbert
09/19/2024, 3:54 PMstring
as the field names and does not throw an error if you provide the wrong field name. Hence, this allows bugs that may not be caught for quite some time,and definitely not until AFTER you've deployed. By having strong typing on the shape of all NS records you never deploy code with a typo in a field name because any mistake there is caught by the TS compiler.Shawn Talbert
09/19/2024, 3:56 PMbbahrman
09/19/2024, 3:56 PMbbahrman
09/19/2024, 3:58 PMShawn Talbert
09/19/2024, 3:58 PMbbahrman
09/19/2024, 3:59 PMbbahrman
09/19/2024, 4:00 PMShawn Talbert
09/19/2024, 4:00 PMbbahrman
09/19/2024, 4:03 PMShawn Talbert
09/19/2024, 4:04 PMNathan L
09/19/2024, 4:05 PMbbahrman
09/19/2024, 4:06 PMShawn Talbert
09/19/2024, 4:10 PMbbahrman
09/19/2024, 4:10 PMShawn Talbert
09/19/2024, 4:11 PMbbahrman
09/19/2024, 4:11 PMalien4u
09/19/2024, 4:11 PMborncorp
09/19/2024, 11:57 PMalien4u
09/20/2024, 12:02 AMalien4u
09/20/2024, 12:06 AMborncorp
09/20/2024, 12:13 AMborncorp
09/20/2024, 12:21 AMalien4u
09/20/2024, 2:35 AMborncorp
09/20/2024, 4:57 AM