transbank-sdk
Version:
Transbank SDK for Node.js
26 lines (25 loc) • 992 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/** Class used to represent "child" transactions in Transacción Completa when
* commiting the "parent" transaction
*/
var CommitDetail = /** @class */ (function () {
function CommitDetail(commerceCode, buyOrder, idQueryInstallments, deferredPeriodIndex, gracePeriod) {
this.commerceCode = commerceCode;
this.buyOrder = buyOrder;
this.idQueryInstallments = idQueryInstallments;
this.deferredPeriodIndex = deferredPeriodIndex;
this.gracePeriod = gracePeriod;
}
CommitDetail.prototype.toPlainObject = function () {
return {
commerce_code: this.commerceCode,
buy_order: this.buyOrder,
id_query_installments: this.idQueryInstallments,
deferred_period_index: this.deferredPeriodIndex,
grace_period: this.gracePeriod,
};
};
return CommitDetail;
}());
exports.default = CommitDetail;