UNPKG

@apihawk/billia-sdk

Version:

The ApiHawk Billia SDK

71 lines 1.7 kB
import { ICatalogProduct } from './billia-sdk.types'; export interface ICartItemSimple { item_id: number; product_id: number; customer_product_id: number; type: string; } export interface ICartItem extends ICartItemSimple { descriptor: string; state: string; parent_product_id: number; product_type: string; quantity: number; added_time: string; parent_item_id: number; metadata?: any; user_id: number; trash: number; _links: any; _language: any; price?: { unit_price: number; install_price: number; redemption_price: number; amount: number; quantity: number; tax?: { amount_without_tax: number; amount: number; country_code: string; percent: number; tax_included: boolean; }; display: { amount: number; unit_price: number; }; _currency: { currency: string; convertedFrom: string; rate: number; }; total?: { amount: number; [key: string]: any; }; }; product?: ICatalogProduct; _populated?: boolean; _settings?: any; options?: any; product_to?: any; } export interface ICartItemToAdd { product_id: number; type: string; quantity: number; product_type?: string; options?: any[]; product?: any; } export interface ICartSummary { items: number; total: any; lines: ICartItemSimple[]; } export interface ICheckoutResponse { purchase_id: number; redirect_url: string; } //# sourceMappingURL=billia-sdk-cart.types.d.ts.map