UNPKG

@paytrail/paytrail-js-sdk

Version:

The goal for this project is to develop a Javascript SDK for the Paytrail payment service. The aim is to provide JS developers with an easier and more streamlined way to integrate our API into their applications.

67 lines (66 loc) 1.58 kB
import 'reflect-metadata'; /** * Class Item * * This class defines payment item details. * * @see https://paytrail.github.io/api-documentation/#/?id=item */ export declare class Item { /** * Price per unit, VAT included, in each country's * minor unit, e.g. for Euros use cents. * Min value -2147483648, max value 2147483647. * Negative values are not allowed when usePricesWithoutVat is true * or for Shop-in-Shop items. */ unitPrice: number; /** * Quantity, how many items ordered. */ units: number; /** * The VAT percentage. */ vatPercentage: number; /** * Merchant product code. * May appear on invoices of certain payment methods. */ productCode: string; /** * The delivery date. * * @deprecated */ deliveryDate?: string; /** * ItemInterface description. * May appear on invoices of certain payment methods. */ description?: string; /** * Merchant specific item category. */ category?: string; /** * Item level order ID (suborder ID). * Mainly useful for Shop-in-Shop purchases. */ orderId?: string; /** * Unique identifier for this item. * Required for Shop-in-Shop payments. */ stamp?: string; /** * Reference for this item. * Required for Shop-in-Shop payments. */ reference?: string; /** * Merchant ID for the item. * Required for Shop-in-Shop payments, do not use for normal payments. */ merchant?: string; }