UNPKG

scheunemann-interfaces

Version:
36 lines (35 loc) 1.32 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PaymentMethodOptionEntity = void 0; var payment_channel_enum_1 = require("../enums/payment-channel.enum"); var payment_mode_enum_1 = require("../enums/payment-mode.enum"); var payment_type_enum_1 = require("../enums/payment-type.enum"); var PaymentMethodOptionEntity = /** @class */ (function () { // #endregion Properties (13) // #region Constructors (1) function PaymentMethodOptionEntity(data) { // #region Properties (13) this.active = false; this.channel = payment_channel_enum_1.EPaymentChannel.AUTOMATION; this.createdAt = new Date(); this.fee = 0; this.id = ''; this.index = 0; this.maxAmount = 0; this.minAmount = 0; this.mode = payment_mode_enum_1.EPaymentMode.MANUAL; this.name = ''; this.token = ''; this.type = payment_type_enum_1.EPaymentType.CREDIT_CARD; this.updatedAt = new Date(); if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return PaymentMethodOptionEntity; }()); exports.PaymentMethodOptionEntity = PaymentMethodOptionEntity;