@vesant-sdk/fraud 0.1.3 → 0.2.0-dev.2f18a76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/dist/index.d.mts +77 -77
- package/dist/index.d.ts +77 -77
- package/dist/index.js +150 -145
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +135 -130
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { RiskLevel, Timestamp, BaseClient, RequestOptions } from '@vesant-sdk/co
|
|
|
3
3
|
/**
|
|
4
4
|
* Fraud event type unions aligned with fraud-service support matrix.
|
|
5
5
|
*/
|
|
6
|
-
/** Events that run
|
|
6
|
+
/** Events that run engine scoring + rule evaluation */
|
|
7
7
|
type ScoredFraudEventType = '$create_account' | '$create_order' | '$login' | '$logout' | '$update_account' | '$update_password' | '$transaction' | '$wager';
|
|
8
8
|
/** Feedback-only; no meaningful fraud score in response */
|
|
9
9
|
type ChargebackFraudEventType = '$chargeback';
|
|
@@ -25,11 +25,11 @@ type FraudEventType = SupportedFraudEventType | (typeof PLANNED_FRAUD_EVENT_TYPE
|
|
|
25
25
|
declare function isPlannedFraudEventType(eventType: string): eventType is (typeof PLANNED_FRAUD_EVENT_TYPES)[number];
|
|
26
26
|
declare function isSupportedFraudEventType(eventType: string): eventType is SupportedFraudEventType;
|
|
27
27
|
|
|
28
|
+
declare const TransactionTypeValues: readonly ["$sale", "$authorize", "$capture", "$void", "$refund", "$deposit", "$withdrawal", "$transfer", "$buy", "$sell", "$send", "$receive"];
|
|
28
29
|
/**
|
|
29
|
-
*
|
|
30
|
+
* Enum types and const objects for fraud scoring requests.
|
|
30
31
|
*/
|
|
31
|
-
type
|
|
32
|
-
declare const SiftTransactionTypeValues: readonly ["$sale", "$authorize", "$capture", "$void", "$refund", "$deposit", "$withdrawal", "$transfer", "$buy", "$sell", "$send", "$receive"];
|
|
32
|
+
type TransactionType = '$sale' | '$authorize' | '$capture' | '$void' | '$refund' | '$deposit' | '$withdrawal' | '$transfer' | '$buy' | '$sell' | '$send' | '$receive';
|
|
33
33
|
declare const TransactionType: {
|
|
34
34
|
readonly Sale: "$sale";
|
|
35
35
|
readonly Authorize: "$authorize";
|
|
@@ -44,8 +44,8 @@ declare const TransactionType: {
|
|
|
44
44
|
readonly Send: "$send";
|
|
45
45
|
readonly Receive: "$receive";
|
|
46
46
|
};
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
declare const ChargebackStateValues: readonly ["$received", "$accepted", "$disputed", "$won", "$lost"];
|
|
48
|
+
type ChargebackState = '$received' | '$accepted' | '$disputed' | '$won' | '$lost';
|
|
49
49
|
declare const ChargebackState: {
|
|
50
50
|
readonly Received: "$received";
|
|
51
51
|
readonly Accepted: "$accepted";
|
|
@@ -53,8 +53,8 @@ declare const ChargebackState: {
|
|
|
53
53
|
readonly Won: "$won";
|
|
54
54
|
readonly Lost: "$lost";
|
|
55
55
|
};
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
declare const ChargebackReasonValues: readonly ["$fraud", "$duplicate", "$product_not_received", "$product_unacceptable", "$authorization", "$consumer_disputes", "$processing_errors", "$cancel_subscription", "$friendly_fraud", "$ach_return", "$ach_reversal", "$other"];
|
|
57
|
+
type ChargebackReason = '$fraud' | '$duplicate' | '$product_not_received' | '$product_unacceptable' | '$authorization' | '$consumer_disputes' | '$processing_errors' | '$cancel_subscription' | '$friendly_fraud' | '$ach_return' | '$ach_reversal' | '$other';
|
|
58
58
|
declare const ChargebackReason: {
|
|
59
59
|
readonly Fraud: "$fraud";
|
|
60
60
|
readonly Duplicate: "$duplicate";
|
|
@@ -69,43 +69,43 @@ declare const ChargebackReason: {
|
|
|
69
69
|
readonly AchReversal: "$ach_reversal";
|
|
70
70
|
readonly Other: "$other";
|
|
71
71
|
};
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
declare const LoginStatusValues: readonly ["$success", "$failure"];
|
|
73
|
+
type LoginStatus = '$success' | '$failure';
|
|
74
74
|
declare const LoginStatus: {
|
|
75
75
|
readonly Success: "$success";
|
|
76
76
|
readonly Failure: "$failure";
|
|
77
77
|
};
|
|
78
|
-
type
|
|
79
|
-
declare const
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
type LoginFailureReason = '$account_unknown' | '$account_suspended' | '$account_disabled' | '$wrong_password';
|
|
79
|
+
declare const LoginFailureReasonValues: readonly ["$account_unknown", "$account_suspended", "$account_disabled", "$wrong_password"];
|
|
80
|
+
declare const PasswordUpdateReasonValues: readonly ["$user_update", "$forgot_password", "$forced_reset"];
|
|
81
|
+
type PasswordUpdateReason = '$user_update' | '$forgot_password' | '$forced_reset';
|
|
82
82
|
declare const PasswordUpdateReason: {
|
|
83
83
|
readonly UserUpdate: "$user_update";
|
|
84
84
|
readonly ForgotPassword: "$forgot_password";
|
|
85
85
|
readonly ForcedReset: "$forced_reset";
|
|
86
86
|
};
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
declare const PasswordUpdateStatusValues: readonly ["$pending", "$success", "$failure"];
|
|
88
|
+
type PasswordUpdateStatus = '$pending' | '$success' | '$failure';
|
|
89
89
|
declare const PasswordUpdateStatus: {
|
|
90
90
|
readonly Pending: "$pending";
|
|
91
91
|
readonly Success: "$success";
|
|
92
92
|
readonly Failure: "$failure";
|
|
93
93
|
};
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
declare const WagerStatusValues: readonly ["$accept", "$cancel"];
|
|
95
|
+
type WagerStatus = '$accept' | '$cancel';
|
|
96
96
|
declare const WagerStatus: {
|
|
97
97
|
readonly Accept: "$accept";
|
|
98
98
|
readonly Cancel: "$cancel";
|
|
99
99
|
};
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
declare const TransactionStatusValues: readonly ["$success", "$failure", "$pending"];
|
|
101
|
+
type TransactionStatus = '$success' | '$failure' | '$pending';
|
|
102
102
|
declare const TransactionStatus: {
|
|
103
103
|
readonly Success: "$success";
|
|
104
104
|
readonly Failure: "$failure";
|
|
105
105
|
readonly Pending: "$pending";
|
|
106
106
|
};
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
declare const PaymentTypeValues: readonly ["$cash", "$check", "$credit_card", "$crypto_currency", "$debit_card", "$digital_wallet", "$electronic_fund_transfer", "$financing", "$gift_card", "$invoice", "$in_app_purchase", "$money_order", "$points", "$prepaid_card", "$store_credit", "$third_party_processor", "$voucher", "$sepa_credit", "$sepa_instant_credit", "$sepa_direct_debit", "$ach_credit", "$ach_debit", "$wire_credit", "$wire_debit"];
|
|
108
|
+
type PaymentType = '$cash' | '$check' | '$credit_card' | '$crypto_currency' | '$debit_card' | '$digital_wallet' | '$electronic_fund_transfer' | '$financing' | '$gift_card' | '$invoice' | '$in_app_purchase' | '$money_order' | '$points' | '$prepaid_card' | '$store_credit' | '$third_party_processor' | '$voucher' | '$sepa_credit' | '$sepa_instant_credit' | '$sepa_direct_debit' | '$ach_credit' | '$ach_debit' | '$wire_credit' | '$wire_debit';
|
|
109
109
|
declare const PaymentType: {
|
|
110
110
|
readonly Cash: "$cash";
|
|
111
111
|
readonly Check: "$check";
|
|
@@ -132,8 +132,8 @@ declare const PaymentType: {
|
|
|
132
132
|
readonly WireCredit: "$wire_credit";
|
|
133
133
|
readonly WireDebit: "$wire_debit";
|
|
134
134
|
};
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
declare const WalletTypeValues: readonly ["$crypto", "$digital", "$fiat"];
|
|
136
|
+
type WalletType = '$crypto' | '$digital' | '$fiat';
|
|
137
137
|
declare const WalletType: {
|
|
138
138
|
readonly Crypto: "$crypto";
|
|
139
139
|
readonly Digital: "$digital";
|
|
@@ -143,10 +143,10 @@ type FraudRiskLevel = 'low' | 'medium' | 'high' | 'critical';
|
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
145
|
* Metadata for fraud score requests.
|
|
146
|
-
* Plain keys are Vesant rule signals; $-prefixed keys are
|
|
146
|
+
* Plain keys are Vesant rule signals; $-prefixed keys are reserved pass-through (or set via typed fields).
|
|
147
147
|
*/
|
|
148
148
|
interface FraudRuleSignalMetadata {
|
|
149
|
-
/** Rule signal payment method (e.g. "$credit_card"), not
|
|
149
|
+
/** Rule signal payment method (e.g. "$credit_card"), not the reserved $payment_method object */
|
|
150
150
|
payment_method?: string;
|
|
151
151
|
country?: string;
|
|
152
152
|
/** Customer date of birth, ISO 8601 (YYYY-MM-DD). Useful on onboarding ($create_account). */
|
|
@@ -167,11 +167,11 @@ interface FraudRuleSignalMetadata {
|
|
|
167
167
|
days_since_last_activity?: number;
|
|
168
168
|
hours_since_account_creation?: number;
|
|
169
169
|
}
|
|
170
|
-
/** Extra
|
|
171
|
-
type
|
|
172
|
-
type FraudCustomMetadata = FraudRuleSignalMetadata &
|
|
170
|
+
/** Extra reserved fields forwarded verbatim in metadata (e.g. $referrer_user_id, $promotions). */
|
|
171
|
+
type ReservedMetadata = Record<`$${string}`, unknown>;
|
|
172
|
+
type FraudCustomMetadata = FraudRuleSignalMetadata & ReservedMetadata & Record<string, unknown>;
|
|
173
173
|
/** Maps typed request fields to metadata keys they populate (typed values win on normalize). */
|
|
174
|
-
declare const
|
|
174
|
+
declare const TYPED_METADATA_KEYS: Readonly<Record<string, string>>;
|
|
175
175
|
declare function findMetadataConflictWithTypedFields(metadata: FraudCustomMetadata, request: Record<string, unknown>): string | undefined;
|
|
176
176
|
|
|
177
177
|
/**
|
|
@@ -204,9 +204,9 @@ declare const UPDATE_ACCOUNT_RULE_SIGNAL_KEYS: readonly ["two_fa_enabled", "two_
|
|
|
204
204
|
declare const TRANSACTION_RULE_SIGNAL_KEYS: readonly ["payment_method", "is_first_deposit", "cumulative_deposit_amount", "deposit_count", "failed_deposit_count", "is_first_withdrawal", "withdrawal_method_differs", "cumulative_withdrawal_amount", "withdrawal_count", "hours_since_last_deposit", "days_since_last_activity", "hours_since_account_creation"];
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
|
-
*
|
|
207
|
+
* Reserved structured fields normalized into metadata.$* on the wire.
|
|
208
208
|
*/
|
|
209
|
-
interface
|
|
209
|
+
interface BillingAddress {
|
|
210
210
|
name?: string;
|
|
211
211
|
phone?: string;
|
|
212
212
|
address_1?: string;
|
|
@@ -217,7 +217,7 @@ interface SiftBillingAddress {
|
|
|
217
217
|
zipcode?: string;
|
|
218
218
|
[key: string]: unknown;
|
|
219
219
|
}
|
|
220
|
-
interface
|
|
220
|
+
interface PaymentMethod {
|
|
221
221
|
payment_type?: string;
|
|
222
222
|
payment_gateway?: string;
|
|
223
223
|
card_bin?: string;
|
|
@@ -235,28 +235,28 @@ interface SiftPaymentMethod {
|
|
|
235
235
|
paypal_payer_id?: string;
|
|
236
236
|
paypal_payer_email?: string;
|
|
237
237
|
/**
|
|
238
|
-
* @deprecated Not a
|
|
238
|
+
* @deprecated Not a recognized field — use account_number_last5. Stripped by normalizePaymentMethod.
|
|
239
239
|
*/
|
|
240
240
|
account_number_last4?: string;
|
|
241
241
|
/**
|
|
242
|
-
* @deprecated Not a
|
|
242
|
+
* @deprecated Not a recognized field — moved to metadata by normalizePaymentMethod.
|
|
243
243
|
*/
|
|
244
244
|
account_id?: string | number;
|
|
245
245
|
/**
|
|
246
|
-
* @deprecated Not a
|
|
246
|
+
* @deprecated Not a recognized field — moved to metadata by normalizePaymentMethod.
|
|
247
247
|
*/
|
|
248
248
|
wallet_address_last4?: string;
|
|
249
249
|
/**
|
|
250
|
-
* @deprecated Not a
|
|
250
|
+
* @deprecated Not a recognized field — moved to metadata by normalizePaymentMethod.
|
|
251
251
|
*/
|
|
252
252
|
crypto_currency?: string;
|
|
253
253
|
/**
|
|
254
|
-
* @deprecated Not a
|
|
254
|
+
* @deprecated Not a recognized field — moved to metadata by normalizePaymentMethod.
|
|
255
255
|
*/
|
|
256
256
|
network?: string;
|
|
257
257
|
[key: string]: unknown;
|
|
258
258
|
}
|
|
259
|
-
interface
|
|
259
|
+
interface AppInfo {
|
|
260
260
|
os?: string;
|
|
261
261
|
os_version?: string;
|
|
262
262
|
device_manufacturer?: string;
|
|
@@ -267,7 +267,7 @@ interface SiftApp {
|
|
|
267
267
|
client_language?: string;
|
|
268
268
|
[key: string]: unknown;
|
|
269
269
|
}
|
|
270
|
-
interface
|
|
270
|
+
interface BrowserInfo {
|
|
271
271
|
user_agent?: string;
|
|
272
272
|
accept_language?: string;
|
|
273
273
|
content_language?: string;
|
|
@@ -281,8 +281,8 @@ interface SiftBrowser {
|
|
|
281
281
|
interface FraudScoreRequestBase {
|
|
282
282
|
/** Tenant customer UUID or stable ID */
|
|
283
283
|
customer_id: string;
|
|
284
|
-
/**
|
|
285
|
-
|
|
284
|
+
/** Scoring-engine user reference — typically stable per customer */
|
|
285
|
+
user_reference: string;
|
|
286
286
|
ip_address?: string;
|
|
287
287
|
device_id?: string;
|
|
288
288
|
user_agent?: string;
|
|
@@ -294,22 +294,22 @@ interface FraudScoreRequestBase {
|
|
|
294
294
|
name?: string;
|
|
295
295
|
/** Maps to metadata.$phone */
|
|
296
296
|
phone?: string;
|
|
297
|
-
/** Maps to metadata.$payment_method (
|
|
298
|
-
|
|
299
|
-
/** Maps to metadata.$payment_methods (
|
|
300
|
-
payment_methods?:
|
|
297
|
+
/** Maps to metadata.$payment_method (reserved object) — typically on transactions */
|
|
298
|
+
payment_method_details?: PaymentMethod;
|
|
299
|
+
/** Maps to metadata.$payment_methods (reserved array) — account create/update baseline */
|
|
300
|
+
payment_methods?: PaymentMethod[];
|
|
301
301
|
/** Maps to metadata.$billing_address */
|
|
302
|
-
billing_address?:
|
|
302
|
+
billing_address?: BillingAddress;
|
|
303
303
|
/** Maps to metadata.$app */
|
|
304
|
-
app?:
|
|
304
|
+
app?: AppInfo;
|
|
305
305
|
/**
|
|
306
|
-
* Plain Vesant rule signals and optional $-prefixed
|
|
307
|
-
* Prefer typed fields for common
|
|
306
|
+
* Plain Vesant rule signals and optional $-prefixed reserved pass-through keys.
|
|
307
|
+
* Prefer typed fields for common reserved keys ($session_id, $user_email, etc.).
|
|
308
308
|
*/
|
|
309
309
|
metadata?: FraudCustomMetadata;
|
|
310
310
|
/**
|
|
311
|
-
* When true, payment_methods /
|
|
312
|
-
*
|
|
311
|
+
* When true, payment_methods / payment_method_details are passed through without
|
|
312
|
+
* field normalization (for tenants sending pre-normalized wire keys).
|
|
313
313
|
*/
|
|
314
314
|
skip_payment_method_normalization?: boolean;
|
|
315
315
|
}
|
|
@@ -318,8 +318,8 @@ interface CreateAccountScoreRequest extends FraudScoreRequestBase {
|
|
|
318
318
|
}
|
|
319
319
|
interface LoginScoreRequest extends FraudScoreRequestBase, LoginRuleSignals {
|
|
320
320
|
event_type: '$login';
|
|
321
|
-
login_status?:
|
|
322
|
-
login_failure_reason?:
|
|
321
|
+
login_status?: LoginStatus;
|
|
322
|
+
login_failure_reason?: LoginFailureReason;
|
|
323
323
|
}
|
|
324
324
|
interface LogoutScoreRequest extends FraudScoreRequestBase {
|
|
325
325
|
event_type: '$logout';
|
|
@@ -332,17 +332,17 @@ interface UpdateAccountScoreRequest extends FraudScoreRequestBase, UpdateAccount
|
|
|
332
332
|
interface UpdatePasswordScoreRequest extends FraudScoreRequestBase {
|
|
333
333
|
event_type: '$update_password';
|
|
334
334
|
/** Defaults to $user_update on the wire when omitted */
|
|
335
|
-
password_reason?:
|
|
335
|
+
password_reason?: PasswordUpdateReason;
|
|
336
336
|
/** Defaults to $success on the wire when omitted */
|
|
337
|
-
password_status?:
|
|
337
|
+
password_status?: PasswordUpdateStatus;
|
|
338
338
|
}
|
|
339
339
|
interface TransactionScoreRequest extends FraudScoreRequestBase, TransactionRuleSignals {
|
|
340
340
|
event_type: '$transaction';
|
|
341
341
|
amount: number;
|
|
342
342
|
currency: string;
|
|
343
343
|
transaction_id?: string;
|
|
344
|
-
transaction_type?:
|
|
345
|
-
transaction_status?:
|
|
344
|
+
transaction_type?: TransactionType;
|
|
345
|
+
transaction_status?: TransactionStatus;
|
|
346
346
|
decline_category?: string;
|
|
347
347
|
transfer_recipient_user_id?: string;
|
|
348
348
|
}
|
|
@@ -355,9 +355,9 @@ interface CreateOrderScoreRequest extends FraudScoreRequestBase {
|
|
|
355
355
|
amount: number;
|
|
356
356
|
currency_code: string;
|
|
357
357
|
exchange_rate?: unknown;
|
|
358
|
-
payment_methods?:
|
|
359
|
-
billing_address?:
|
|
360
|
-
shipping_address?:
|
|
358
|
+
payment_methods?: PaymentMethod[];
|
|
359
|
+
billing_address?: BillingAddress;
|
|
360
|
+
shipping_address?: BillingAddress;
|
|
361
361
|
expedited_shipping?: boolean;
|
|
362
362
|
shipping_method?: '$electronic' | '$physical' | (string & Record<string, never>);
|
|
363
363
|
shipping_carrier?: string;
|
|
@@ -366,14 +366,14 @@ interface CreateOrderScoreRequest extends FraudScoreRequestBase {
|
|
|
366
366
|
site_country?: string;
|
|
367
367
|
site_domain?: string;
|
|
368
368
|
ip?: string;
|
|
369
|
-
browser?:
|
|
370
|
-
app?:
|
|
369
|
+
browser?: BrowserInfo;
|
|
370
|
+
app?: AppInfo;
|
|
371
371
|
}
|
|
372
372
|
interface WagerScoreRequest extends FraudScoreRequestBase {
|
|
373
373
|
event_type: '$wager';
|
|
374
374
|
transaction_id: string;
|
|
375
375
|
wager_type: string;
|
|
376
|
-
wager_status:
|
|
376
|
+
wager_status: WagerStatus;
|
|
377
377
|
amount: number;
|
|
378
378
|
currency: string;
|
|
379
379
|
wager_event_type?: string;
|
|
@@ -384,8 +384,8 @@ interface ChargebackScoreRequest extends FraudScoreRequestBase {
|
|
|
384
384
|
event_type: ChargebackFraudEventType;
|
|
385
385
|
transaction_id?: string;
|
|
386
386
|
order_id?: string;
|
|
387
|
-
chargeback_state?:
|
|
388
|
-
chargeback_reason?:
|
|
387
|
+
chargeback_state?: ChargebackState;
|
|
388
|
+
chargeback_reason?: ChargebackReason;
|
|
389
389
|
ach_return_code?: string;
|
|
390
390
|
}
|
|
391
391
|
type FraudScoreRequest = CreateAccountScoreRequest | LoginScoreRequest | LogoutScoreRequest | UpdateAccountScoreRequest | UpdatePasswordScoreRequest | TransactionScoreRequest | CreateOrderScoreRequest | WagerScoreRequest | ChargebackScoreRequest;
|
|
@@ -471,7 +471,7 @@ interface FraudAlertCallbackEvent {
|
|
|
471
471
|
reference: string;
|
|
472
472
|
/** Tenant customer ID the decision applies to. */
|
|
473
473
|
customer_id: string;
|
|
474
|
-
/** Originating
|
|
474
|
+
/** Originating fraud event type (`$create_account`, `$transaction`, …). */
|
|
475
475
|
source_event_type: SupportedFraudEventType | (string & Record<string, never>);
|
|
476
476
|
decision: FraudDecision;
|
|
477
477
|
risk_level: RiskLevel;
|
|
@@ -511,28 +511,28 @@ declare function normalizeScoreRequestForApi(request: FraudScoreRequest): Record
|
|
|
511
511
|
declare function buildScoreRequestPreview(request: FraudScoreRequest): Record<string, unknown>;
|
|
512
512
|
|
|
513
513
|
/**
|
|
514
|
-
* Maps tenant-internal payment type signals to
|
|
514
|
+
* Maps tenant-internal payment type signals to valid $payment_type values.
|
|
515
515
|
* Returns undefined when the value cannot be mapped.
|
|
516
516
|
*/
|
|
517
|
-
declare function
|
|
517
|
+
declare function normalizePaymentType(value: string | undefined): PaymentType | undefined;
|
|
518
518
|
/**
|
|
519
|
-
* Normalizes last-4/last-5 account digits for
|
|
519
|
+
* Normalizes last-4/last-5 account digits for $account_number_last5.
|
|
520
520
|
*/
|
|
521
|
-
declare function
|
|
521
|
+
declare function toAccountNumberLast5(value: unknown): string | undefined;
|
|
522
522
|
type NormalizePaymentMethodResult = {
|
|
523
|
-
method:
|
|
523
|
+
method: PaymentMethod;
|
|
524
524
|
metadataExtras?: Record<string, unknown>;
|
|
525
525
|
};
|
|
526
526
|
/**
|
|
527
|
-
* Normalizes a single payment method object for
|
|
527
|
+
* Normalizes a single payment method object for the wire format.
|
|
528
528
|
*/
|
|
529
|
-
declare function
|
|
529
|
+
declare function normalizePaymentMethod(raw: Record<string, unknown>): NormalizePaymentMethodResult | null;
|
|
530
530
|
/**
|
|
531
531
|
* Normalizes payment method arrays and aggregates stripped metadata.
|
|
532
532
|
*/
|
|
533
|
-
declare function
|
|
534
|
-
payment_methods?:
|
|
533
|
+
declare function normalizePaymentMethods(methods: PaymentMethod[] | undefined): {
|
|
534
|
+
payment_methods?: PaymentMethod[];
|
|
535
535
|
metadata?: Record<string, unknown>;
|
|
536
536
|
};
|
|
537
537
|
|
|
538
|
-
export { CHARGEBACK_FRAUD_EVENT_TYPE, type ChargebackFraudEventType, ChargebackReason, type ChargebackScoreRequest, type ChargebackScoreResponseData, ChargebackState, type CreateAccountScoreRequest, type CreateOrderScoreRequest, type FraudAlertCallbackEvent, type FraudCallbackTrigger, FraudClient, type FraudCustomMetadata, type FraudDecision, type FraudEventType, type FraudReactionType, type FraudRiskLevel, type FraudRuleSignalMetadata, type FraudScoreRequest, type FraudScoreRequestBase, type FraudScoreResponseData, type FraudScoreResponseEnvelope, type FraudScoreResponseMetadata, LOGIN_RULE_SIGNAL_KEYS, type
|
|
538
|
+
export { type AppInfo, type BillingAddress, type BrowserInfo, CHARGEBACK_FRAUD_EVENT_TYPE, type ChargebackFraudEventType, ChargebackReason, ChargebackReasonValues, type ChargebackScoreRequest, type ChargebackScoreResponseData, ChargebackState, ChargebackStateValues, type CreateAccountScoreRequest, type CreateOrderScoreRequest, type FraudAlertCallbackEvent, type FraudCallbackTrigger, FraudClient, type FraudCustomMetadata, type FraudDecision, type FraudEventType, type FraudReactionType, type FraudRiskLevel, type FraudRuleSignalMetadata, type FraudScoreRequest, type FraudScoreRequestBase, type FraudScoreResponseData, type FraudScoreResponseEnvelope, type FraudScoreResponseMetadata, LOGIN_RULE_SIGNAL_KEYS, type LoginFailureReason, LoginFailureReasonValues, type LoginRuleSignals, type LoginScoreRequest, LoginStatus, LoginStatusValues, type LogoutScoreRequest, PLANNED_FRAUD_EVENT_TYPES, PasswordUpdateReason, PasswordUpdateReasonValues, PasswordUpdateStatus, PasswordUpdateStatusValues, type PaymentMethod, PaymentType, PaymentTypeValues, type PlannedFraudEventType, type ReservedMetadata, SCORED_FRAUD_EVENT_TYPES, SUPPORTED_FRAUD_EVENT_TYPES, type ScoredFraudEventType, type ScoredFraudScoreRequest, type SupportedFraudEventType, TRANSACTION_RULE_SIGNAL_KEYS, TYPED_METADATA_KEYS, type TenantAction, type TransactionRuleSignals, type TransactionScoreRequest, TransactionStatus, TransactionStatusValues, TransactionType, TransactionTypeValues, UPDATE_ACCOUNT_RULE_SIGNAL_KEYS, type UpdateAccountRuleSignals, type UpdateAccountScoreRequest, type UpdatePasswordScoreRequest, type WagerScoreRequest, WagerStatus, WagerStatusValues, WalletType, WalletTypeValues, buildScoreRequestPreview, findMetadataConflictWithTypedFields, isFraudAlertCallbackEvent, isPlannedFraudEventType, isSupportedFraudEventType, normalizePaymentMethod, normalizePaymentMethods, normalizePaymentType, normalizeScoreRequestForApi, toAccountNumberLast5, validateScoreRequest };
|