Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@figuredev/orders-sdk

Package Overview
Dependencies
Maintainers
3
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figuredev/orders-sdk - npm Package Compare versions

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
}

2

package.json
{
"name": "@figuredev/orders-sdk",
"version": "0.8.1",
"version": "0.8.2",
"license": "ISC",

@@ -5,0 +5,0 @@ "dependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc