import Decisions from './decisions'; import Transactions from './transactions'; const enums = { Banner: ['lat', 's5a', 'o5a', 'bay'], CustomerType: ['guest', 'registered', 'employee'], RecommendationCode: ['reject', 'review', 'accept'], }; export default class ApiFraudClient { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } this.enums = enums; this.Decisions = new Decisions(options); this.Transactions = new Transactions(options); } }