UNPKG

@whitebox-co/walmart-marketplace-api

Version:

A fully typed TypeScript, Javascript, and Node.js API library for the Walmart Marketplace API

54 lines (53 loc) 1.22 kB
export interface Price { offerId?: string; pricing: Pricing[]; replaceAll?: ReplaceAll; sku: string; } export interface Pricing { comparisonPrice?: ComparisonPrice; comparisonPriceType?: ComparisonPriceType; currentPrice?: CurrentPrice; currentPriceType?: CurrentPriceType; effectiveDate?: Date; expirationDate?: Date; priceDisplayCodes?: PriceDisplayCodes; processMode?: ProcessMode; promoId?: string; } export interface ComparisonPrice { amount?: number; currency?: Currency; } export declare enum Currency { CAD = "CAD", Usd = "USD" } export declare enum ComparisonPriceType { Base = "BASE" } export interface CurrentPrice { amount?: number; currency?: Currency; } export declare enum CurrentPriceType { Base = "BASE", Clearance = "CLEARANCE", Reduced = "REDUCED" } export declare enum PriceDisplayCodes { Cart = "CART", Checkout = "CHECKOUT" } export declare enum ProcessMode { Delete = "DELETE", Upsert = "UPSERT" } export declare enum ReplaceAll { False = "false", True = "true" } export declare class Convert { static toPrice(json: string): Price; static priceToJson(value: Price): string; }