fpt-akainsights-react-native
Version:
React Native Plugin for the akaInsights Javascript SDK
30 lines (29 loc) • 1.09 kB
TypeScript
import { PurchaseSourceTypeEnum, PaymentTypeEnum, ShippingTypeEnum } from '../enums';
export interface IPurchase {
readonly purchaseId: string;
readonly purchaseStatus: string;
readonly purchaseSourceType?: PurchaseSourceTypeEnum;
readonly purchaseSourceName?: string;
readonly totalItem: number;
readonly productIds: string[];
readonly totalPrice: number;
readonly totalPriceWithoutTax?: number;
readonly totalPriceLocalCurrency?: number;
readonly localCurrency?: string;
readonly totalQuantity: number;
readonly paymentType: PaymentTypeEnum;
readonly shippingType?: ShippingTypeEnum;
readonly shippingCompany?: string;
readonly shippingCost?: number;
readonly shippingCountry?: string;
readonly shippingCity?: string;
readonly taxValue?: string;
readonly voucherCode?: string;
readonly voucherPercentage?: string;
readonly voucherValue?: string;
readonly language?: string;
readonly location?: string;
readonly domain?: string;
readonly userId?: string;
readonly campaignId?: string;
}