UNPKG

cecon-interfaces

Version:
71 lines (70 loc) 2.65 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GlobalSettingIfoodSandboxEntity = exports.GlobalSettingIfoodProductionEntity = exports.GlobalSettingIfoodEntity = exports.GlobalSettingIfoodCredentialsEntity = void 0; var GlobalSettingIfoodCredentialsEntity = /** @class */ (function () { function GlobalSettingIfoodCredentialsEntity(data) { this.accessToken = ''; this.expiresIn = 0; this.refreshToken = ''; this.type = 'Bearer'; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return GlobalSettingIfoodCredentialsEntity; }()); exports.GlobalSettingIfoodCredentialsEntity = GlobalSettingIfoodCredentialsEntity; var GlobalSettingIfoodEntity = /** @class */ (function () { function GlobalSettingIfoodEntity(data) { this.active = false; this.clientCredentials = new GlobalSettingIfoodCredentialsEntity(); this.createdAt = new Date(); this.id = 'IFOOD'; this.production = new GlobalSettingIfoodProductionEntity(); this.sandbox = new GlobalSettingIfoodSandboxEntity(); this.updatedAt = new Date(); if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return GlobalSettingIfoodEntity; }()); exports.GlobalSettingIfoodEntity = GlobalSettingIfoodEntity; var GlobalSettingIfoodProductionEntity = /** @class */ (function () { function GlobalSettingIfoodProductionEntity(data) { this.clientId = ''; this.clientSecret = ''; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return GlobalSettingIfoodProductionEntity; }()); exports.GlobalSettingIfoodProductionEntity = GlobalSettingIfoodProductionEntity; var GlobalSettingIfoodSandboxEntity = /** @class */ (function () { function GlobalSettingIfoodSandboxEntity(data) { this.clientId = ''; this.clientSecret = ''; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return GlobalSettingIfoodSandboxEntity; }()); exports.GlobalSettingIfoodSandboxEntity = GlobalSettingIfoodSandboxEntity;