Skip to content

shopperlabs/shopper-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopper Logo

Shopper Types definitions

TypeScript types derived from the OpenAPI Spec (OAS) to be used in API clients for Shopper.

Install

npm install @shopper/types
# or
yarn add @shopper/types

Usage

import type { Product, Order, Customer } from '@shopper/types'

const product: Product = {
  id: 1,
  name: 'My Product',
  slug: 'my-product',
  // ...
}

Available Types

Models

  • Product
  • ProductVariant
  • Category
  • Brand
  • Collection
  • Order
  • OrderItem
  • Customer
  • Address
  • Inventory
  • Discount
  • Review
  • Channel
  • Currency
  • PaymentMethod
  • Attribute
  • AttributeValue
  • Media

Enums

  • ProductType
  • CollectionType
  • CollectionCondition
  • AddressType
  • GenderType
  • Weight
  • Length
  • Volume

Common Interfaces

  • Entity
  • DateEntity
  • Price
  • ShippingFields
  • SEOFields

About

Laravel Shopper Types definitions

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors