UNPKG

@ribajs/shopify

Version:

Shopify extension for Riba.js

51 lines (50 loc) 1.24 kB
export interface ShopifyCartObject { attributes: any; cart_level_discount_applications: []; currency: string; item_count: number; discount_applications: []; items: ShopifyCartLineItem[]; items_subtotal_price: number; note: string | null; original_total_price: number; taxes_included: boolean; requires_shipping: boolean; token: string; total_discount: number; total_price: number; total_weight: number; } export interface ShopifyCartUpdateProperty { [variantId: number]: number; } export interface ShopifyCartAddError { status: number; message: string; description: string; } export interface ShopifyCartLineItem { id: number; title: string; price: number; line_price: number; line_number?: string; quantity: number; sku: string | null; grams: number; vendor: string; properties: null | any; gift_card: boolean; url: string; image: string; key: string; handle: string; requires_shipping: boolean; product_title: string; product_description: string; product_type: string; product_id: number; variant_title: string; variant_options: Array<string>; variant_id: number; }