@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.
38 lines (37 loc) • 1.16 kB
TypeScript
import { Item } from './item.model';
import { Commission } from './commission.model';
import 'reflect-metadata';
/**
* Class ShopInShopItem
*
* Shop-in-Shop item extends the base Item class with specific validations:
* - stamp is required
* - reference is required
* - merchant is required
* - commission can be given but is optional
* - unitPrice minimum is 0 (no negative values allowed)
*/
export declare class ShopInShopItem extends Item {
/**
* Price per unit, VAT included, in each country's
* minor unit, e.g. for Euros use cents.
* For Shop-in-Shop items, negative values are not allowed.
*/
unitPrice: number;
/**
* Unique identifier for this item. Required for Shop-in-Shop payments. Required for item refunds.
*/
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;
/**
* Shop-in-Shop commission. Optional for Shop-in-Shop payments only.
*/
commission?: Commission;
}