// The content of this file was automatically generated import fetch = require('node-fetch'); import ProcessOut = require('./processout'); import Response = require('./networking/response'); import Request = require('./networking/request'); import ProcessOutNetworkError = require('./errors/processoutnetworkerror'); import * as p from '.'; class InvoiceExternalFraudTools { private client: ProcessOut = null; /** * Forter * @type {any} */ private forter: any = null; /** * Ravelin * @type {any} */ private ravelin: any = null; /** * Signifyd * @type {any} */ private signifyd: any = null; /** * Riskified * @type {any} */ private riskified: any = null; /** * InvoiceExternalFraudTools constructor * @param {ProcessOut} client * @param {array} prefill (optional) */ constructor(client: ProcessOut, prefill: InvoiceExternalFraudTools) { if (typeof client === 'undefined') throw new Error("The InvoiceExternalFraudTools object must be instanciated with the ProcessOut client. You can create one using new ProcessOut('project-id', 'project-secret').newInvoiceExternalFraudTools()"); this.client = client; if (typeof prefill !== 'undefined') this.fillWithData(prefill); } public getProcessOutObjectClass(): string { return "InvoiceExternalFraudTools"; } /** * Get Forter * Forter * @return {any} */ public getForter(): any { return this.forter; } /** * Set Forter * Forter * @param {any} val * @return {InvoiceExternalFraudTools} */ public setForter(val: any): InvoiceExternalFraudTools { this.forter = val; return this; } /** * Get Ravelin * Ravelin * @return {any} */ public getRavelin(): any { return this.ravelin; } /** * Set Ravelin * Ravelin * @param {any} val * @return {InvoiceExternalFraudTools} */ public setRavelin(val: any): InvoiceExternalFraudTools { this.ravelin = val; return this; } /** * Get Signifyd * Signifyd * @return {any} */ public getSignifyd(): any { return this.signifyd; } /** * Set Signifyd * Signifyd * @param {any} val * @return {InvoiceExternalFraudTools} */ public setSignifyd(val: any): InvoiceExternalFraudTools { this.signifyd = val; return this; } /** * Get Riskified * Riskified * @return {any} */ public getRiskified(): any { return this.riskified; } /** * Set Riskified * Riskified * @param {any} val * @return {InvoiceExternalFraudTools} */ public setRiskified(val: any): InvoiceExternalFraudTools { this.riskified = val; return this; } /** * Fills the current object with the new values pulled from the data * @param {array} data * @return {InvoiceExternalFraudTools} */ public fillWithData(data: any): InvoiceExternalFraudTools { if (data["forter"]) this.setForter(data["forter"]); if (data["ravelin"]) this.setRavelin(data["ravelin"]); if (data["signifyd"]) this.setSignifyd(data["signifyd"]); if (data["riskified"]) this.setRiskified(data["riskified"]); return this; } /** * Implements a JSON custom marshaller * @return {any} */ public toJSON(): any { return { "forter": this.getForter(), "ravelin": this.getRavelin(), "signifyd": this.getSignifyd(), "riskified": this.getRiskified(), }; } } export = InvoiceExternalFraudTools;