UNPKG

transbank-sdk

Version:
25 lines (24 loc) 898 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Class used to represent "child" transactions in Webpay Plus Mall and Oneclick Mall */ var TransactionDetail = /** @class */ (function () { function TransactionDetail(amount, commerceCode, buyOrder, installmentsNumber) { if (installmentsNumber === void 0) { installmentsNumber = undefined; } this.amount = amount; this.commerceCode = commerceCode; this.buyOrder = buyOrder; this.installmentsNumber = installmentsNumber; } TransactionDetail.prototype.toPlainObject = function () { return { amount: this.amount, commerce_code: this.commerceCode, buy_order: this.buyOrder, installments_number: this.installmentsNumber }; }; return TransactionDetail; }()); exports.default = TransactionDetail;