@figuredev/orders-sdk
Advanced tools
Comparing version 0.8.1 to 0.8.2
106
dto.ts
@@ -1,10 +0,98 @@ | ||
import { components } from "./schema" | ||
export type OrderInputDTO = { | ||
id: string | ||
store?: OrderStoreInputDTO | ||
customer?: OrderCustomerInputDTO | ||
price?: OrderPriceInputDTO | ||
state?: OrderStateInputDTO | ||
orderNumber: string | ||
acceptLink?: string | ||
declineLink?: string | ||
note?: string | ||
placedAt: string | ||
scheduledFor?: string | ||
items: OrderItemInputDTO[] | ||
deliveryMethod: OrderDeliveryMethodInputDTO | ||
paymentMethod: OrderPaymentInputDTO | ||
} | ||
export type OrderInputDTO = components["schemas"]["OrderInput"] | ||
export type OrderItemInputDTO = components["schemas"]["OrderItemInput"] | ||
export type OrderItemModifierInputDTO = components["schemas"]["OrderItemModifierInput"] | ||
export type OrderDeliveryMethodInputDTO = components["schemas"]["OrderDeliveryMethodInput"] | ||
export type OrderPaymentInputDTO = components["schemas"]["OrderPaymentInput"] | ||
export type OrderCustomerInputDTO = components["schemas"]["OrderCustomerInput"] | ||
export type AddressDTO = components["schemas"]["Address"] | ||
export type OrderItemTaxInputDTO = components["schemas"]["OrderItemTaxInput"] | ||
export type OrderItemInputDTO = { | ||
id: string | ||
name?: string | ||
price?: number | ||
productId?: string | ||
quantity?: number | ||
note?: string | ||
modifiersGroups?: OrderItemModifierGroupInputDTO[] | ||
taxes?: OrderItemTaxInputDTO[] | ||
} | ||
export type OrderItemModifierGroupInputDTO = { | ||
id?: string | ||
name?: string | ||
price?: number | ||
modifiers?: OrderItemModifierInputDTO[] | ||
} | ||
export type OrderItemModifierInputDTO = { | ||
id?: string | ||
productId?: string | ||
name?: string | ||
price?: number | ||
quantity?: number | ||
} | ||
export type OrderItemTaxInputDTO = { | ||
id?: string | ||
taxId?: string | ||
name?: string | ||
percentage?: number | ||
absolute?: number | ||
isEmbedded?: boolean | ||
} | ||
export type OrderPriceInputDTO = { | ||
base?: number | ||
subtotal?: number | ||
total?: number | ||
} | ||
export type OrderCustomerInputDTO = { | ||
firstName?: string | ||
surname?: string | ||
emailAddress?: string | ||
phoneNumber?: string | ||
} | ||
export type OrderStoreInputDTO = { | ||
id?: string | ||
name?: string | ||
} | ||
export type OrderDeliveryMethodInputDTO = { | ||
type: "delivery" | "pick-up" | "for-here" | ||
address?: AddressDTO | ||
note?: string | ||
fee?: number | ||
} | ||
export type OrderPaymentInputDTO = { | ||
type: "card" | "cash" | ||
tip?: number | ||
amount?: number | ||
status?: "paid" | "pending" | ||
} | ||
export type OrderStateInputDTO = { | ||
type?: "Placed" | "Accepted" | "Declined" | "Closed" | ||
} | ||
export type AddressDTO = { | ||
line1?: string | ||
line2?: string | ||
city?: string | ||
state?: string | ||
zip?: string | ||
latitude?: number | ||
longitude?: number | ||
googlePlaceId?: string | ||
} |
{ | ||
"name": "@figuredev/orders-sdk", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6428
227