@shopperlabs/shopper-types
v2.5.1
Published
TypeScript types for Laravel Shopper
Readme
Shopper Types definitions
TypeScript types derived from the OpenAPI Spec (OAS) to be used in API clients for Laravel Shopper.
Install
npm install @shopper/types
# or
yarn add @shopper/typesUsage
import type { Product, Order, Customer } from '@shopper/types'
const product: Product = {
id: 1,
name: 'My Product',
slug: 'my-product',
// ...
}Available Types
Models
ProductProductVariantCategoryBrandCollectionOrderOrderItemCustomerAddressInventoryDiscountReviewChannelCurrencyPaymentMethodAttributeAttributeValueMedia
Enums
ProductTypeCollectionTypeCollectionConditionAddressTypeGenderTypeWeightLengthVolume
Common Interfaces
EntityDateEntityPriceShippingFieldsSEOFields
