Skip to content

Commit f9c3980

Browse files
jdartjdart-bold
andauthored
CHK-6168-Fraud-Tools (#35)
Co-authored-by: Jonathan Dart <jonathan.dart@boldcommerce.com>
1 parent 2308bcf commit f9c3980

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/types/apiInterfaces.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ export interface IOrderInitialData {
402402
alternative_payment_methods: IAlternativePaymentMethod;
403403
external_payment_gateways: IExternalPaymentGateways;
404404
life_elements: Array<ILifeField>;
405+
fraud_tools: Array<IFraudTool>;
405406
flow_settings: Record<string, unknown>;
406407
requires_shipping: boolean;
407408
eps_gateways: IEpsGateways;
@@ -544,6 +545,12 @@ export interface IExternalPaymentGateway {
544545
currency: string;
545546
}
546547

548+
export interface IFraudTool {
549+
id: string;
550+
type: string;
551+
credentials: Record<string, unknown>;
552+
}
553+
547554
export interface ILifeField {
548555
input_default: string | null;
549556
input_label: string | null;

src/variables/mocks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ export const orderInitialDataMock: IOrderInitialData = {
357357
],
358358
external_payment_gateways: [],
359359
life_elements: [],
360+
fraud_tools: [],
360361
flow_settings: {},
361362
requires_shipping: true,
362363
eps_gateways: {},

src/variables/variables.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ export const orderInitialData: IOrderInitialData = {
203203
alternative_payment_methods: [],
204204
external_payment_gateways: [],
205205
life_elements: [],
206+
fraud_tools: [],
206207
flow_settings: {},
207208
requires_shipping: true,
208209
eps_gateways: {},

0 commit comments

Comments
 (0)