wallee
Version:
TypeScript/JavaScript client for wallee
104 lines (103 loc) • 2.86 kB
TypeScript
import { LineItemAttribute } from "./LineItemAttribute";
import { LineItemType } from "./LineItemType";
import { Tax } from "./Tax";
declare class LineItem {
/**
* The total tax rate applied to the item, calculated from the rates of all tax lines.
*/
'aggregatedTaxRate'?: number;
/**
* The line item price with discounts applied, excluding taxes.
*/
'amountExcludingTax'?: number;
/**
* The line item price with discounts applied, including taxes.
*/
'amountIncludingTax'?: number;
/**
* A map of custom information for the item.
*/
'attributes'?: {
[]: LineItemAttribute;
};
/**
* The discount allocated to the item, excluding taxes.
*/
'discountExcludingTax'?: number;
/**
* The discount allocated to the item, including taxes.
*/
'discountIncludingTax'?: number;
/**
* The name of the product, ideally in the customer's language.
*/
'name'?: string;
/**
* The number of items that were purchased.
*/
'quantity'?: number;
/**
* Whether the item required shipping.
*/
'shippingRequired'?: boolean;
/**
* The SKU (stock-keeping unit) of the product.
*/
'sku'?: string;
/**
* The sum of all taxes applied to the item.
*/
'taxAmount'?: number;
/**
* The calculated tax amount per unit.
*/
'taxAmountPerUnit'?: number;
/**
* A set of tax lines, each of which specifies a tax applied to the item.
*/
'taxes'?: Array<Tax>;
/**
* The type of the line item.
*/
'type'?: LineItemType;
/**
* The line item price with discounts not applied, excluding taxes.
*/
'undiscountedAmountExcludingTax'?: number;
/**
* The line item price with discounts not applied, including taxes.
*/
'undiscountedAmountIncludingTax'?: number;
/**
* The calculated price per unit with discounts not applied, excluding taxes.
*/
'undiscountedUnitPriceExcludingTax'?: number;
/**
* The calculated price per unit with discounts not applied, including taxes.
*/
'undiscountedUnitPriceIncludingTax'?: number;
/**
* The unique identifier of the line item within the set of line items.
*/
'uniqueId'?: string;
/**
* The calculated price per unit with discounts applied, excluding taxes.
*/
'unitPriceExcludingTax'?: number;
/**
* The calculated price per unit with discounts applied, including taxes.
*/
'unitPriceIncludingTax'?: number;
static discriminator: string | undefined;
static attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
}[];
}
export { LineItem };