@alogram/payrisk 0.1.6
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/AI.md +37 -0
- package/LICENSE +201 -0
- package/README.md +129 -0
- package/dist/_generated/apis/PayriskApi.d.ts +108 -0
- package/dist/_generated/apis/PayriskApi.js +342 -0
- package/dist/_generated/apis/index.d.ts +1 -0
- package/dist/_generated/apis/index.js +19 -0
- package/dist/_generated/index.d.ts +3 -0
- package/dist/_generated/index.js +21 -0
- package/dist/_generated/models/Account.d.ts +59 -0
- package/dist/_generated/models/Account.js +57 -0
- package/dist/_generated/models/AccountCheckRequest.d.ts +64 -0
- package/dist/_generated/models/AccountCheckRequest.js +72 -0
- package/dist/_generated/models/AvsResultEnum.d.ts +54 -0
- package/dist/_generated/models/AvsResultEnum.js +82 -0
- package/dist/_generated/models/BankTransfer.d.ts +39 -0
- package/dist/_generated/models/BankTransfer.js +59 -0
- package/dist/_generated/models/Card.d.ts +93 -0
- package/dist/_generated/models/Card.js +81 -0
- package/dist/_generated/models/CardNetworkEnum.d.ts +30 -0
- package/dist/_generated/models/CardNetworkEnum.js +58 -0
- package/dist/_generated/models/CategorySignal.d.ts +45 -0
- package/dist/_generated/models/CategorySignal.js +55 -0
- package/dist/_generated/models/ChannelEnum.d.ts +28 -0
- package/dist/_generated/models/ChannelEnum.js +56 -0
- package/dist/_generated/models/CheckRequest.d.ts +66 -0
- package/dist/_generated/models/CheckRequest.js +72 -0
- package/dist/_generated/models/ConfidenceEnum.d.ts +26 -0
- package/dist/_generated/models/ConfidenceEnum.js +54 -0
- package/dist/_generated/models/Crypto.d.ts +39 -0
- package/dist/_generated/models/Crypto.js +59 -0
- package/dist/_generated/models/CvvResultEnum.d.ts +33 -0
- package/dist/_generated/models/CvvResultEnum.js +61 -0
- package/dist/_generated/models/DecisionResponse.d.ts +128 -0
- package/dist/_generated/models/DecisionResponse.js +107 -0
- package/dist/_generated/models/DeviceInfo.d.ts +54 -0
- package/dist/_generated/models/DeviceInfo.js +56 -0
- package/dist/_generated/models/EntityIds.d.ts +113 -0
- package/dist/_generated/models/EntityIds.js +70 -0
- package/dist/_generated/models/EntryMethodEnum.d.ts +30 -0
- package/dist/_generated/models/EntryMethodEnum.js +58 -0
- package/dist/_generated/models/FraudScore.d.ts +52 -0
- package/dist/_generated/models/FraudScore.js +58 -0
- package/dist/_generated/models/Identity.d.ts +71 -0
- package/dist/_generated/models/Identity.js +57 -0
- package/dist/_generated/models/Integrity.d.ts +68 -0
- package/dist/_generated/models/Integrity.js +58 -0
- package/dist/_generated/models/Interaction.d.ts +59 -0
- package/dist/_generated/models/Interaction.js +60 -0
- package/dist/_generated/models/InteractionTypeEnum.d.ts +29 -0
- package/dist/_generated/models/InteractionTypeEnum.js +57 -0
- package/dist/_generated/models/Invoice.d.ts +39 -0
- package/dist/_generated/models/Invoice.js +59 -0
- package/dist/_generated/models/IpInfo.d.ts +101 -0
- package/dist/_generated/models/IpInfo.js +78 -0
- package/dist/_generated/models/KycCheckRequest.d.ts +64 -0
- package/dist/_generated/models/KycCheckRequest.js +74 -0
- package/dist/_generated/models/KycPayload.d.ts +84 -0
- package/dist/_generated/models/KycPayload.js +82 -0
- package/dist/_generated/models/MerchantContext.d.ts +38 -0
- package/dist/_generated/models/MerchantContext.js +50 -0
- package/dist/_generated/models/OrderContext.d.ts +60 -0
- package/dist/_generated/models/OrderContext.js +65 -0
- package/dist/_generated/models/PayerTypeEnum.d.ts +25 -0
- package/dist/_generated/models/PayerTypeEnum.js +53 -0
- package/dist/_generated/models/PaymentAuthorizationOutcome.d.ts +38 -0
- package/dist/_generated/models/PaymentAuthorizationOutcome.js +50 -0
- package/dist/_generated/models/PaymentCaptureOutcome.d.ts +42 -0
- package/dist/_generated/models/PaymentCaptureOutcome.js +60 -0
- package/dist/_generated/models/PaymentCardTypeEnum.d.ts +26 -0
- package/dist/_generated/models/PaymentCardTypeEnum.js +54 -0
- package/dist/_generated/models/PaymentChargeback.d.ts +32 -0
- package/dist/_generated/models/PaymentChargeback.js +48 -0
- package/dist/_generated/models/PaymentChargebackOutcome.d.ts +42 -0
- package/dist/_generated/models/PaymentChargebackOutcome.js +60 -0
- package/dist/_generated/models/PaymentDisputeOutcome.d.ts +43 -0
- package/dist/_generated/models/PaymentDisputeOutcome.js +61 -0
- package/dist/_generated/models/PaymentEvent.d.ts +72 -0
- package/dist/_generated/models/PaymentEvent.js +68 -0
- package/dist/_generated/models/PaymentEventType.d.ts +30 -0
- package/dist/_generated/models/PaymentEventType.js +58 -0
- package/dist/_generated/models/PaymentMethod.d.ts +39 -0
- package/dist/_generated/models/PaymentMethod.js +73 -0
- package/dist/_generated/models/PaymentMethodBase.d.ts +44 -0
- package/dist/_generated/models/PaymentMethodBase.js +64 -0
- package/dist/_generated/models/PaymentOutcome.d.ts +69 -0
- package/dist/_generated/models/PaymentOutcome.js +64 -0
- package/dist/_generated/models/PaymentRealtimeTypeEnum.d.ts +28 -0
- package/dist/_generated/models/PaymentRealtimeTypeEnum.js +56 -0
- package/dist/_generated/models/PaymentRefundOutcome.d.ts +41 -0
- package/dist/_generated/models/PaymentRefundOutcome.js +59 -0
- package/dist/_generated/models/PaymentWalletTypeEnum.d.ts +28 -0
- package/dist/_generated/models/PaymentWalletTypeEnum.js +56 -0
- package/dist/_generated/models/PostalAddress.d.ts +65 -0
- package/dist/_generated/models/PostalAddress.js +58 -0
- package/dist/_generated/models/Problem.d.ts +62 -0
- package/dist/_generated/models/Problem.js +62 -0
- package/dist/_generated/models/Purchase.d.ts +122 -0
- package/dist/_generated/models/Purchase.js +88 -0
- package/dist/_generated/models/PurchaseInitiatorEnum.d.ts +25 -0
- package/dist/_generated/models/PurchaseInitiatorEnum.js +53 -0
- package/dist/_generated/models/PurchaseSequenceEnum.d.ts +25 -0
- package/dist/_generated/models/PurchaseSequenceEnum.js +53 -0
- package/dist/_generated/models/PurchaseUsageEnum.d.ts +27 -0
- package/dist/_generated/models/PurchaseUsageEnum.js +55 -0
- package/dist/_generated/models/Realtime.d.ts +46 -0
- package/dist/_generated/models/Realtime.js +62 -0
- package/dist/_generated/models/ReasonDetail.d.ts +57 -0
- package/dist/_generated/models/ReasonDetail.js +63 -0
- package/dist/_generated/models/RiskBreakdown.d.ts +51 -0
- package/dist/_generated/models/RiskBreakdown.js +55 -0
- package/dist/_generated/models/RiskCategoryEnum.d.ts +27 -0
- package/dist/_generated/models/RiskCategoryEnum.js +55 -0
- package/dist/_generated/models/RiskLevelEnum.d.ts +26 -0
- package/dist/_generated/models/RiskLevelEnum.js +54 -0
- package/dist/_generated/models/ScaMethodEnum.d.ts +30 -0
- package/dist/_generated/models/ScaMethodEnum.js +58 -0
- package/dist/_generated/models/ScoreRecord.d.ts +107 -0
- package/dist/_generated/models/ScoreRecord.js +92 -0
- package/dist/_generated/models/ScoresSuccessResponse.d.ts +39 -0
- package/dist/_generated/models/ScoresSuccessResponse.js +51 -0
- package/dist/_generated/models/SignalsAccountVariant.d.ts +53 -0
- package/dist/_generated/models/SignalsAccountVariant.js +69 -0
- package/dist/_generated/models/SignalsInteractionVariant.d.ts +53 -0
- package/dist/_generated/models/SignalsInteractionVariant.js +69 -0
- package/dist/_generated/models/SignalsRequest.d.ts +28 -0
- package/dist/_generated/models/SignalsRequest.js +53 -0
- package/dist/_generated/models/StoredCredentialContext.d.ts +47 -0
- package/dist/_generated/models/StoredCredentialContext.js +55 -0
- package/dist/_generated/models/ThreeDSData.d.ts +68 -0
- package/dist/_generated/models/ThreeDSData.js +66 -0
- package/dist/_generated/models/Wallet.d.ts +46 -0
- package/dist/_generated/models/Wallet.js +62 -0
- package/dist/_generated/models/index.d.ts +62 -0
- package/dist/_generated/models/index.js +80 -0
- package/dist/_generated/runtime.d.ts +184 -0
- package/dist/_generated/runtime.js +338 -0
- package/dist/client.d.ts +69 -0
- package/dist/client.js +281 -0
- package/dist/exceptions.d.ts +24 -0
- package/dist/exceptions.js +59 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +23 -0
- package/dist/testing.d.ts +24 -0
- package/dist/testing.js +100 -0
- package/dist/webhooks.d.ts +10 -0
- package/dist/webhooks.js +32 -0
- package/examples/asyncSignalIngestion.ts +52 -0
- package/examples/checkRisk.ts +26 -0
- package/examples/productionErrorHandling.ts +52 -0
- package/examples/webhookVerification.ts +29 -0
- package/package.json +64 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payments Risk API
|
|
3
|
+
* API for detecting and scoring fraud for purchases, with lifecycle labeling and behavioral signals. v1 focuses on purchases only (`/risk/check`), with future account/session and KYC checks stubbed below.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6-rc.3
|
|
6
|
+
* Contact: support@alogram.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { FraudScore } from './FraudScore';
|
|
13
|
+
import type { ReasonDetail } from './ReasonDetail';
|
|
14
|
+
import type { EntityIds } from './EntityIds';
|
|
15
|
+
import type { RiskBreakdown } from './RiskBreakdown';
|
|
16
|
+
/**
|
|
17
|
+
* Fraud score for a specific transaction or entity.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ScoreRecord
|
|
20
|
+
*/
|
|
21
|
+
export interface ScoreRecord {
|
|
22
|
+
/**
|
|
23
|
+
* Universal decision identifier (for purchases, equals paymentIntentId).
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ScoreRecord
|
|
26
|
+
*/
|
|
27
|
+
assessmentId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Server-minted unique payment identifier.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ScoreRecord
|
|
32
|
+
*/
|
|
33
|
+
paymentIntentId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* RFC 3339 timestamp with timezone.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ScoreRecord
|
|
38
|
+
*/
|
|
39
|
+
decisionAt: string;
|
|
40
|
+
/**
|
|
41
|
+
* The synchronous risk decision for a purchase.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ScoreRecord
|
|
44
|
+
*/
|
|
45
|
+
decision: ScoreRecordDecisionEnum;
|
|
46
|
+
/**
|
|
47
|
+
* Fraud risk score (0.00 - 1.00).
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ScoreRecord
|
|
50
|
+
*/
|
|
51
|
+
riskScore: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {FraudScore}
|
|
55
|
+
* @memberof ScoreRecord
|
|
56
|
+
*/
|
|
57
|
+
fraudScore?: FraudScore;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {RiskBreakdown}
|
|
61
|
+
* @memberof ScoreRecord
|
|
62
|
+
*/
|
|
63
|
+
breakdown?: RiskBreakdown;
|
|
64
|
+
/**
|
|
65
|
+
* Structured reason details for the score.
|
|
66
|
+
* @type {Array<ReasonDetail>}
|
|
67
|
+
* @memberof ScoreRecord
|
|
68
|
+
*/
|
|
69
|
+
reasons?: Array<ReasonDetail>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {EntityIds}
|
|
73
|
+
* @memberof ScoreRecord
|
|
74
|
+
*/
|
|
75
|
+
entities?: EntityIds;
|
|
76
|
+
/**
|
|
77
|
+
* Value of the purchase in the specified currency. Must be a positive number with up to two decimal places.
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof ScoreRecord
|
|
81
|
+
*/
|
|
82
|
+
amount?: number;
|
|
83
|
+
/**
|
|
84
|
+
* ISO 4217 currency code (e.g., 'USD').
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof ScoreRecord
|
|
87
|
+
*/
|
|
88
|
+
currency?: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @export
|
|
92
|
+
* @enum {string}
|
|
93
|
+
*/
|
|
94
|
+
export declare enum ScoreRecordDecisionEnum {
|
|
95
|
+
Approve = "approve",
|
|
96
|
+
Review = "review",
|
|
97
|
+
Decline = "decline",
|
|
98
|
+
StepUp = "step_up"
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Check if a given object implements the ScoreRecord interface.
|
|
102
|
+
*/
|
|
103
|
+
export declare function instanceOfScoreRecord(value: object): value is ScoreRecord;
|
|
104
|
+
export declare function ScoreRecordFromJSON(json: any): ScoreRecord;
|
|
105
|
+
export declare function ScoreRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScoreRecord;
|
|
106
|
+
export declare function ScoreRecordToJSON(json: any): ScoreRecord;
|
|
107
|
+
export declare function ScoreRecordToJSONTyped(value?: ScoreRecord | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Payments Risk API
|
|
6
|
+
* API for detecting and scoring fraud for purchases, with lifecycle labeling and behavioral signals. v1 focuses on purchases only (`/risk/check`), with future account/session and KYC checks stubbed below.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.6-rc.3
|
|
9
|
+
* Contact: support@alogram.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ScoreRecordDecisionEnum = void 0;
|
|
17
|
+
exports.instanceOfScoreRecord = instanceOfScoreRecord;
|
|
18
|
+
exports.ScoreRecordFromJSON = ScoreRecordFromJSON;
|
|
19
|
+
exports.ScoreRecordFromJSONTyped = ScoreRecordFromJSONTyped;
|
|
20
|
+
exports.ScoreRecordToJSON = ScoreRecordToJSON;
|
|
21
|
+
exports.ScoreRecordToJSONTyped = ScoreRecordToJSONTyped;
|
|
22
|
+
const FraudScore_1 = require("./FraudScore");
|
|
23
|
+
const ReasonDetail_1 = require("./ReasonDetail");
|
|
24
|
+
const EntityIds_1 = require("./EntityIds");
|
|
25
|
+
const RiskBreakdown_1 = require("./RiskBreakdown");
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
* @enum {string}
|
|
29
|
+
*/
|
|
30
|
+
var ScoreRecordDecisionEnum;
|
|
31
|
+
(function (ScoreRecordDecisionEnum) {
|
|
32
|
+
ScoreRecordDecisionEnum["Approve"] = "approve";
|
|
33
|
+
ScoreRecordDecisionEnum["Review"] = "review";
|
|
34
|
+
ScoreRecordDecisionEnum["Decline"] = "decline";
|
|
35
|
+
ScoreRecordDecisionEnum["StepUp"] = "step_up";
|
|
36
|
+
})(ScoreRecordDecisionEnum || (exports.ScoreRecordDecisionEnum = ScoreRecordDecisionEnum = {}));
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ScoreRecord interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfScoreRecord(value) {
|
|
41
|
+
if (!('assessmentId' in value) || value['assessmentId'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('decisionAt' in value) || value['decisionAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('decision' in value) || value['decision'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('riskScore' in value) || value['riskScore'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function ScoreRecordFromJSON(json) {
|
|
52
|
+
return ScoreRecordFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ScoreRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'assessmentId': json['assessmentId'],
|
|
60
|
+
'paymentIntentId': json['paymentIntentId'] == null ? undefined : json['paymentIntentId'],
|
|
61
|
+
'decisionAt': json['decisionAt'],
|
|
62
|
+
'decision': json['decision'],
|
|
63
|
+
'riskScore': json['riskScore'],
|
|
64
|
+
'fraudScore': json['fraudScore'] == null ? undefined : (0, FraudScore_1.FraudScoreFromJSON)(json['fraudScore']),
|
|
65
|
+
'breakdown': json['breakdown'] == null ? undefined : (0, RiskBreakdown_1.RiskBreakdownFromJSON)(json['breakdown']),
|
|
66
|
+
'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(ReasonDetail_1.ReasonDetailFromJSON)),
|
|
67
|
+
'entities': json['entities'] == null ? undefined : (0, EntityIds_1.EntityIdsFromJSON)(json['entities']),
|
|
68
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
69
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function ScoreRecordToJSON(json) {
|
|
73
|
+
return ScoreRecordToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
function ScoreRecordToJSONTyped(value, ignoreDiscriminator = false) {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'assessmentId': value['assessmentId'],
|
|
81
|
+
'paymentIntentId': value['paymentIntentId'],
|
|
82
|
+
'decisionAt': value['decisionAt'],
|
|
83
|
+
'decision': value['decision'],
|
|
84
|
+
'riskScore': value['riskScore'],
|
|
85
|
+
'fraudScore': (0, FraudScore_1.FraudScoreToJSON)(value['fraudScore']),
|
|
86
|
+
'breakdown': (0, RiskBreakdown_1.RiskBreakdownToJSON)(value['breakdown']),
|
|
87
|
+
'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(ReasonDetail_1.ReasonDetailToJSON)),
|
|
88
|
+
'entities': (0, EntityIds_1.EntityIdsToJSON)(value['entities']),
|
|
89
|
+
'amount': value['amount'],
|
|
90
|
+
'currency': value['currency'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payments Risk API
|
|
3
|
+
* API for detecting and scoring fraud for purchases, with lifecycle labeling and behavioral signals. v1 focuses on purchases only (`/risk/check`), with future account/session and KYC checks stubbed below.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6-rc.3
|
|
6
|
+
* Contact: support@alogram.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ScoreRecord } from './ScoreRecord';
|
|
13
|
+
/**
|
|
14
|
+
* List of fraud scores for a customer.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScoresSuccessResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ScoresSuccessResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Score records within the requested window.
|
|
21
|
+
* @type {Array<ScoreRecord>}
|
|
22
|
+
* @memberof ScoresSuccessResponse
|
|
23
|
+
*/
|
|
24
|
+
scores?: Array<ScoreRecord>;
|
|
25
|
+
/**
|
|
26
|
+
* A token for retrieving the next page of results.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ScoresSuccessResponse
|
|
29
|
+
*/
|
|
30
|
+
nextPageToken?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ScoresSuccessResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfScoresSuccessResponse(value: object): value is ScoresSuccessResponse;
|
|
36
|
+
export declare function ScoresSuccessResponseFromJSON(json: any): ScoresSuccessResponse;
|
|
37
|
+
export declare function ScoresSuccessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScoresSuccessResponse;
|
|
38
|
+
export declare function ScoresSuccessResponseToJSON(json: any): ScoresSuccessResponse;
|
|
39
|
+
export declare function ScoresSuccessResponseToJSONTyped(value?: ScoresSuccessResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Payments Risk API
|
|
6
|
+
* API for detecting and scoring fraud for purchases, with lifecycle labeling and behavioral signals. v1 focuses on purchases only (`/risk/check`), with future account/session and KYC checks stubbed below.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.6-rc.3
|
|
9
|
+
* Contact: support@alogram.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfScoresSuccessResponse = instanceOfScoresSuccessResponse;
|
|
17
|
+
exports.ScoresSuccessResponseFromJSON = ScoresSuccessResponseFromJSON;
|
|
18
|
+
exports.ScoresSuccessResponseFromJSONTyped = ScoresSuccessResponseFromJSONTyped;
|
|
19
|
+
exports.ScoresSuccessResponseToJSON = ScoresSuccessResponseToJSON;
|
|
20
|
+
exports.ScoresSuccessResponseToJSONTyped = ScoresSuccessResponseToJSONTyped;
|
|
21
|
+
const ScoreRecord_1 = require("./ScoreRecord");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ScoresSuccessResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfScoresSuccessResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ScoresSuccessResponseFromJSON(json) {
|
|
29
|
+
return ScoresSuccessResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ScoresSuccessResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'scores': json['scores'] == null ? undefined : (json['scores'].map(ScoreRecord_1.ScoreRecordFromJSON)),
|
|
37
|
+
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ScoresSuccessResponseToJSON(json) {
|
|
41
|
+
return ScoresSuccessResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ScoresSuccessResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'scores': value['scores'] == null ? undefined : (value['scores'].map(ScoreRecord_1.ScoreRecordToJSON)),
|
|
49
|
+
'nextPageToken': value['nextPageToken'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payments Risk API
|
|
3
|
+
* API for detecting and scoring fraud for purchases, with lifecycle labeling and behavioral signals. v1 focuses on purchases only (`/risk/check`), with future account/session and KYC checks stubbed below.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6-rc.3
|
|
6
|
+
* Contact: support@alogram.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Account } from './Account';
|
|
13
|
+
import type { EntityIds } from './EntityIds';
|
|
14
|
+
/**
|
|
15
|
+
* Account-level signal variant (single account state snapshot).
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SignalsAccountVariant
|
|
18
|
+
*/
|
|
19
|
+
export interface SignalsAccountVariant {
|
|
20
|
+
/**
|
|
21
|
+
* Value for account signals.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof SignalsAccountVariant
|
|
24
|
+
*/
|
|
25
|
+
signalType: SignalsAccountVariantSignalTypeEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {EntityIds}
|
|
29
|
+
* @memberof SignalsAccountVariant
|
|
30
|
+
*/
|
|
31
|
+
entities: EntityIds;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Account}
|
|
35
|
+
* @memberof SignalsAccountVariant
|
|
36
|
+
*/
|
|
37
|
+
account: Account;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
* @enum {string}
|
|
42
|
+
*/
|
|
43
|
+
export declare enum SignalsAccountVariantSignalTypeEnum {
|
|
44
|
+
Account = "account"
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the SignalsAccountVariant interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfSignalsAccountVariant(value: object): value is SignalsAccountVariant;
|
|
50
|
+
export declare function SignalsAccountVariantFromJSON(json: any): SignalsAccountVariant;
|
|
51
|
+
export declare function SignalsAccountVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignalsAccountVariant;
|
|
52
|
+
export declare function SignalsAccountVariantToJSON(json: any): SignalsAccountVariant;
|
|
53
|
+
export declare function SignalsAccountVariantToJSONTyped(value?: SignalsAccountVariant | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Payments Risk API
|
|
6
|
+
* API for detecting and scoring fraud for purchases, with lifecycle labeling and behavioral signals. v1 focuses on purchases only (`/risk/check`), with future account/session and KYC checks stubbed below.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.6-rc.3
|
|
9
|
+
* Contact: support@alogram.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SignalsAccountVariantSignalTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfSignalsAccountVariant = instanceOfSignalsAccountVariant;
|
|
18
|
+
exports.SignalsAccountVariantFromJSON = SignalsAccountVariantFromJSON;
|
|
19
|
+
exports.SignalsAccountVariantFromJSONTyped = SignalsAccountVariantFromJSONTyped;
|
|
20
|
+
exports.SignalsAccountVariantToJSON = SignalsAccountVariantToJSON;
|
|
21
|
+
exports.SignalsAccountVariantToJSONTyped = SignalsAccountVariantToJSONTyped;
|
|
22
|
+
const Account_1 = require("./Account");
|
|
23
|
+
const EntityIds_1 = require("./EntityIds");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
* @enum {string}
|
|
27
|
+
*/
|
|
28
|
+
var SignalsAccountVariantSignalTypeEnum;
|
|
29
|
+
(function (SignalsAccountVariantSignalTypeEnum) {
|
|
30
|
+
SignalsAccountVariantSignalTypeEnum["Account"] = "account";
|
|
31
|
+
})(SignalsAccountVariantSignalTypeEnum || (exports.SignalsAccountVariantSignalTypeEnum = SignalsAccountVariantSignalTypeEnum = {}));
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SignalsAccountVariant interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfSignalsAccountVariant(value) {
|
|
36
|
+
if (!('signalType' in value) || value['signalType'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('entities' in value) || value['entities'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('account' in value) || value['account'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function SignalsAccountVariantFromJSON(json) {
|
|
45
|
+
return SignalsAccountVariantFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function SignalsAccountVariantFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'signalType': json['signalType'],
|
|
53
|
+
'entities': (0, EntityIds_1.EntityIdsFromJSON)(json['entities']),
|
|
54
|
+
'account': (0, Account_1.AccountFromJSON)(json['account']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function SignalsAccountVariantToJSON(json) {
|
|
58
|
+
return SignalsAccountVariantToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function SignalsAccountVariantToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'signalType': value['signalType'],
|
|
66
|
+
'entities': (0, EntityIds_1.EntityIdsToJSON)(value['entities']),
|
|
67
|
+
'account': (0, Account_1.AccountToJSON)(value['account']),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payments Risk API
|
|
3
|
+
* API for detecting and scoring fraud for purchases, with lifecycle labeling and behavioral signals. v1 focuses on purchases only (`/risk/check`), with future account/session and KYC checks stubbed below.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6-rc.3
|
|
6
|
+
* Contact: support@alogram.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Interaction } from './Interaction';
|
|
13
|
+
import type { EntityIds } from './EntityIds';
|
|
14
|
+
/**
|
|
15
|
+
* Interaction batch signal variant (one or more user interactions).
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SignalsInteractionVariant
|
|
18
|
+
*/
|
|
19
|
+
export interface SignalsInteractionVariant {
|
|
20
|
+
/**
|
|
21
|
+
* Value for interaction signals.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof SignalsInteractionVariant
|
|
24
|
+
*/
|
|
25
|
+
signalType: SignalsInteractionVariantSignalTypeEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {EntityIds}
|
|
29
|
+
* @memberof SignalsInteractionVariant
|
|
30
|
+
*/
|
|
31
|
+
entities: EntityIds;
|
|
32
|
+
/**
|
|
33
|
+
* One or more interactions associated with the signal.
|
|
34
|
+
* @type {Array<Interaction>}
|
|
35
|
+
* @memberof SignalsInteractionVariant
|
|
36
|
+
*/
|
|
37
|
+
interactions: Array<Interaction>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
* @enum {string}
|
|
42
|
+
*/
|
|
43
|
+
export declare enum SignalsInteractionVariantSignalTypeEnum {
|
|
44
|
+
Interaction = "interaction"
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the SignalsInteractionVariant interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfSignalsInteractionVariant(value: object): value is SignalsInteractionVariant;
|
|
50
|
+
export declare function SignalsInteractionVariantFromJSON(json: any): SignalsInteractionVariant;
|
|
51
|
+
export declare function SignalsInteractionVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignalsInteractionVariant;
|
|
52
|
+
export declare function SignalsInteractionVariantToJSON(json: any): SignalsInteractionVariant;
|
|
53
|
+
export declare function SignalsInteractionVariantToJSONTyped(value?: SignalsInteractionVariant | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Payments Risk API
|
|
6
|
+
* API for detecting and scoring fraud for purchases, with lifecycle labeling and behavioral signals. v1 focuses on purchases only (`/risk/check`), with future account/session and KYC checks stubbed below.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.6-rc.3
|
|
9
|
+
* Contact: support@alogram.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SignalsInteractionVariantSignalTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfSignalsInteractionVariant = instanceOfSignalsInteractionVariant;
|
|
18
|
+
exports.SignalsInteractionVariantFromJSON = SignalsInteractionVariantFromJSON;
|
|
19
|
+
exports.SignalsInteractionVariantFromJSONTyped = SignalsInteractionVariantFromJSONTyped;
|
|
20
|
+
exports.SignalsInteractionVariantToJSON = SignalsInteractionVariantToJSON;
|
|
21
|
+
exports.SignalsInteractionVariantToJSONTyped = SignalsInteractionVariantToJSONTyped;
|
|
22
|
+
const Interaction_1 = require("./Interaction");
|
|
23
|
+
const EntityIds_1 = require("./EntityIds");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
* @enum {string}
|
|
27
|
+
*/
|
|
28
|
+
var SignalsInteractionVariantSignalTypeEnum;
|
|
29
|
+
(function (SignalsInteractionVariantSignalTypeEnum) {
|
|
30
|
+
SignalsInteractionVariantSignalTypeEnum["Interaction"] = "interaction";
|
|
31
|
+
})(SignalsInteractionVariantSignalTypeEnum || (exports.SignalsInteractionVariantSignalTypeEnum = SignalsInteractionVariantSignalTypeEnum = {}));
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SignalsInteractionVariant interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfSignalsInteractionVariant(value) {
|
|
36
|
+
if (!('signalType' in value) || value['signalType'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('entities' in value) || value['entities'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('interactions' in value) || value['interactions'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function SignalsInteractionVariantFromJSON(json) {
|
|
45
|
+
return SignalsInteractionVariantFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function SignalsInteractionVariantFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'signalType': json['signalType'],
|
|
53
|
+
'entities': (0, EntityIds_1.EntityIdsFromJSON)(json['entities']),
|
|
54
|
+
'interactions': (json['interactions'].map(Interaction_1.InteractionFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function SignalsInteractionVariantToJSON(json) {
|
|
58
|
+
return SignalsInteractionVariantToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function SignalsInteractionVariantToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'signalType': value['signalType'],
|
|
66
|
+
'entities': (0, EntityIds_1.EntityIdsToJSON)(value['entities']),
|
|
67
|
+
'interactions': (value['interactions'].map(Interaction_1.InteractionToJSON)),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payments Risk API
|
|
3
|
+
* API for detecting and scoring fraud for purchases, with lifecycle labeling and behavioral signals. v1 focuses on purchases only (`/risk/check`), with future account/session and KYC checks stubbed below.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6-rc.3
|
|
6
|
+
* Contact: support@alogram.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SignalsAccountVariant } from './SignalsAccountVariant';
|
|
13
|
+
import type { SignalsInteractionVariant } from './SignalsInteractionVariant';
|
|
14
|
+
/**
|
|
15
|
+
* @type SignalsRequest
|
|
16
|
+
* Request for processing application workflow signals. Determined by `signalType`.
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export type SignalsRequest = {
|
|
21
|
+
signalType: 'account';
|
|
22
|
+
} & SignalsAccountVariant | {
|
|
23
|
+
signalType: 'interaction';
|
|
24
|
+
} & SignalsInteractionVariant;
|
|
25
|
+
export declare function SignalsRequestFromJSON(json: any): SignalsRequest;
|
|
26
|
+
export declare function SignalsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignalsRequest;
|
|
27
|
+
export declare function SignalsRequestToJSON(json: any): any;
|
|
28
|
+
export declare function SignalsRequestToJSONTyped(value?: SignalsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Payments Risk API
|
|
6
|
+
* API for detecting and scoring fraud for purchases, with lifecycle labeling and behavioral signals. v1 focuses on purchases only (`/risk/check`), with future account/session and KYC checks stubbed below.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.6-rc.3
|
|
9
|
+
* Contact: support@alogram.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SignalsRequestFromJSON = SignalsRequestFromJSON;
|
|
17
|
+
exports.SignalsRequestFromJSONTyped = SignalsRequestFromJSONTyped;
|
|
18
|
+
exports.SignalsRequestToJSON = SignalsRequestToJSON;
|
|
19
|
+
exports.SignalsRequestToJSONTyped = SignalsRequestToJSONTyped;
|
|
20
|
+
const SignalsAccountVariant_1 = require("./SignalsAccountVariant");
|
|
21
|
+
const SignalsInteractionVariant_1 = require("./SignalsInteractionVariant");
|
|
22
|
+
function SignalsRequestFromJSON(json) {
|
|
23
|
+
return SignalsRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function SignalsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
switch (json['signalType']) {
|
|
30
|
+
case 'account':
|
|
31
|
+
return Object.assign({}, (0, SignalsAccountVariant_1.SignalsAccountVariantFromJSONTyped)(json, true), { signalType: 'account' });
|
|
32
|
+
case 'interaction':
|
|
33
|
+
return Object.assign({}, (0, SignalsInteractionVariant_1.SignalsInteractionVariantFromJSONTyped)(json, true), { signalType: 'interaction' });
|
|
34
|
+
default:
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function SignalsRequestToJSON(json) {
|
|
39
|
+
return SignalsRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function SignalsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
switch (value['signalType']) {
|
|
46
|
+
case 'account':
|
|
47
|
+
return Object.assign({}, (0, SignalsAccountVariant_1.SignalsAccountVariantToJSON)(value), { signalType: 'account' });
|
|
48
|
+
case 'interaction':
|
|
49
|
+
return Object.assign({}, (0, SignalsInteractionVariant_1.SignalsInteractionVariantToJSON)(value), { signalType: 'interaction' });
|
|
50
|
+
default:
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payments Risk API
|
|
3
|
+
* API for detecting and scoring fraud for purchases, with lifecycle labeling and behavioral signals. v1 focuses on purchases only (`/risk/check`), with future account/session and KYC checks stubbed below.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6-rc.3
|
|
6
|
+
* Contact: support@alogram.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PurchaseSequenceEnum } from './PurchaseSequenceEnum';
|
|
13
|
+
import type { PurchaseInitiatorEnum } from './PurchaseInitiatorEnum';
|
|
14
|
+
import type { PurchaseUsageEnum } from './PurchaseUsageEnum';
|
|
15
|
+
/**
|
|
16
|
+
* Minimal stored-credential / recurrence context.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface StoredCredentialContext
|
|
19
|
+
*/
|
|
20
|
+
export interface StoredCredentialContext {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {PurchaseUsageEnum}
|
|
24
|
+
* @memberof StoredCredentialContext
|
|
25
|
+
*/
|
|
26
|
+
usage?: PurchaseUsageEnum;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PurchaseSequenceEnum}
|
|
30
|
+
* @memberof StoredCredentialContext
|
|
31
|
+
*/
|
|
32
|
+
sequence?: PurchaseSequenceEnum;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PurchaseInitiatorEnum}
|
|
36
|
+
* @memberof StoredCredentialContext
|
|
37
|
+
*/
|
|
38
|
+
initiator?: PurchaseInitiatorEnum;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the StoredCredentialContext interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfStoredCredentialContext(value: object): value is StoredCredentialContext;
|
|
44
|
+
export declare function StoredCredentialContextFromJSON(json: any): StoredCredentialContext;
|
|
45
|
+
export declare function StoredCredentialContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoredCredentialContext;
|
|
46
|
+
export declare function StoredCredentialContextToJSON(json: any): StoredCredentialContext;
|
|
47
|
+
export declare function StoredCredentialContextToJSONTyped(value?: StoredCredentialContext | null, ignoreDiscriminator?: boolean): any;
|