transbank-sdk
Version:
Transbank SDK for Node.js
23 lines (22 loc) • 809 B
JavaScript
/** Class used to represent "child" transactions in Transacción Completa when
* commiting the "parent" transaction
*/
class CommitDetail {
constructor(commerceCode, buyOrder, idQueryInstallments, deferredPeriodIndex, gracePeriod) {
this.commerceCode = commerceCode;
this.buyOrder = buyOrder;
this.idQueryInstallments = idQueryInstallments;
this.deferredPeriodIndex = deferredPeriodIndex;
this.gracePeriod = gracePeriod;
}
toPlainObject() {
return {
commerce_code: this.commerceCode,
buy_order: this.buyOrder,
id_query_installments: this.idQueryInstallments,
deferred_period_index: this.deferredPeriodIndex,
grace_period: this.gracePeriod
};
}
}
export default CommitDetail;