@figuredev/orders-sdk
Advanced tools
Comparing version 0.8.2 to 0.8.3
106
dto.ts
@@ -1,98 +0,10 @@ | ||
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 | ||
} | ||
import { components } from "./schema" | ||
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 | ||
} | ||
export type OrderInputDTO = components["schemas"]["OrderInput"] | ||
export type OrderItemInputDTO = components["schemas"]["OrderItemInput"] | ||
export type OrderItemModifierInputDTO = components["schemas"]["OrderItemModifierInput"] | ||
export type OrderItemDeliveryMethodInputDTO = components["schemas"]["OrderItemDeliveryMethodInput"] | ||
export type OrderPaymentInputDTO = components["schemas"]["OrderPaymentInput"] | ||
export type OrderCustomerInputDTO = components["schemas"]["OrderCustomerInput"] | ||
export type AddressDTO = components["schemas"]["Address"] | ||
export type OrderItemTaxInputDTO = components["schemas"]["OrderItemTaxInput"] |
{ | ||
"name": "@figuredev/orders-sdk", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -26,4 +26,2 @@ /** | ||
id?: string | ||
store?: components["schemas"]["OrderStoreInput"] | ||
customer?: components["schemas"]["OrderCustomerInput"] | ||
price?: components["schemas"]["OrderPriceInput"] | ||
@@ -36,6 +34,7 @@ state?: components["schemas"]["OrderStateInput"] | ||
placedAt?: string | ||
scheduledFor?: string | ||
source?: string | ||
items?: components["schemas"]["OrderItemInput"][] | ||
deliveryMethod?: components["schemas"]["OrderDeliveryMethodInput"] | ||
paymentMethod?: components["schemas"]["OrderPaymentInput"] | ||
fulfillments?: components["schemas"]["OrderFulfillmentInput"][] | ||
payments?: components["schemas"]["OrderPaymentInput"][] | ||
pricings?: components["schemas"]["OrderPricingInput"][] | ||
} | ||
@@ -51,2 +50,3 @@ OrderItemInput: { | ||
taxes?: components["schemas"]["OrderItemTaxInput"][] | ||
pricings?: components["schemas"]["OrderItemPricingInput"][] | ||
} | ||
@@ -74,2 +74,17 @@ OrderItemModifierGroupInput: { | ||
} | ||
OrderItemPricingInput: { | ||
id?: string | ||
pricingId?: string | ||
name?: string | ||
percentage?: number | ||
absolute?: number | ||
} | ||
OrderPricingInput: { | ||
id?: string | ||
pricingId?: string | ||
type?: "normal" | "delivery" | ||
name?: string | ||
percentage?: number | ||
absolute?: number | ||
} | ||
OrderPriceInput: { | ||
@@ -80,26 +95,35 @@ base?: number | ||
} | ||
OrderCustomerInput: { | ||
firstName?: string | ||
surname?: string | ||
emailAddress?: string | ||
phoneNumber?: string | ||
OrderPaymentInput: { | ||
id?: string | ||
type?: "card" | "cash" | "external" | ||
state?: "pending" | "processed" | ||
transactionNumber?: string | ||
amount?: number | ||
tip?: number | ||
} | ||
OrderStoreInput: { | ||
OrderStateInput: { | ||
type?: "Placed" | "Accepted" | "Declined" | "Closed" | ||
} | ||
OrderFulfillmentInput: { | ||
id?: string | ||
name?: string | ||
} | ||
OrderDeliveryMethodInput: { | ||
type?: "delivery" | "pick-up" | "for-here" | ||
address?: components["schemas"]["Address"] | ||
recipient?: components["schemas"]["OrderFulfillmentRecipientInput"] | ||
note?: string | ||
fee?: number | ||
scheduleType?: "scheduled" | "asap" | ||
scheduledFor?: string | ||
deliveryService?: string | ||
attributes?: components["schemas"]["OrderFulfillmentAttributesInput"] | ||
} | ||
OrderPaymentInput: { | ||
type?: "card" | "cash" | ||
tip?: number | ||
amount?: number | ||
status?: "paid" | "pending" | ||
OrderFulfillmentAttributesInput: { | ||
isEcoFriendly?: boolean | ||
contactFreeDelivery?: boolean | ||
curbsidePickup?: boolean | ||
} | ||
OrderStateInput: { | ||
type?: "Placed" | "Accepted" | "Declined" | "Closed" | ||
OrderFulfillmentRecipientInput: { | ||
customerId?: string | ||
firstName?: string | ||
surname?: string | ||
emailAddress?: string | ||
phoneNumber?: string | ||
address?: components["schemas"]["Address"] | ||
} | ||
@@ -106,0 +130,0 @@ Address: { |
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
5963
172