signet-core 1.0.0
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/LICENSE +21 -0
- package/README.md +84 -0
- package/apis/BlacklistApi.ts +312 -0
- package/apis/CommsApi.ts +99 -0
- package/apis/DeviceApi.ts +322 -0
- package/apis/EnrollmentApi.ts +111 -0
- package/apis/GeoApi.ts +263 -0
- package/apis/IpApi.ts +322 -0
- package/apis/MandateApi.ts +529 -0
- package/apis/PartnerApi.ts +442 -0
- package/apis/ReportingApi.ts +312 -0
- package/apis/index.ts +11 -0
- package/index.ts +6 -0
- package/models/BlacklistControllerBlacklistClientRequest.ts +83 -0
- package/models/BlacklistControllerBlacklistClientRequestReasonsInner.ts +111 -0
- package/models/BlacklistControllerRemoveBlacklistClientRequest.ts +66 -0
- package/models/CommsControllerCheckClientStatusRequest.ts +75 -0
- package/models/DeviceControllerFlagDeviceRequest.ts +92 -0
- package/models/DeviceControllerFlagDeviceRequestReasonsInner.ts +111 -0
- package/models/DeviceControllerUnflagDeviceRequest.ts +75 -0
- package/models/EnrollmentControllerEnrollUser201Response.ts +89 -0
- package/models/EnrollmentControllerEnrollUser201ResponseData.ts +113 -0
- package/models/EnrollmentControllerEnrollUser201ResponseDataMetadata.ts +81 -0
- package/models/EnrollmentControllerEnrollUserRequest.ts +101 -0
- package/models/GeoControllerGeoVerifyRequest.ts +93 -0
- package/models/IpControllerFlagIpRequest.ts +92 -0
- package/models/IpControllerFlagIpRequestReasonsInner.ts +114 -0
- package/models/IpControllerUnflagIpRequest.ts +75 -0
- package/models/ManagementControllerAllClients200Response.ts +89 -0
- package/models/ManagementControllerAllClients200ResponseData.ts +88 -0
- package/models/ManagementControllerAllClients200ResponseDataPagination.ts +89 -0
- package/models/ManagementControllerAllClients400Response.ts +81 -0
- package/models/ManagementControllerAllClients404Response.ts +73 -0
- package/models/ManagementControllerAllClients500Response.ts +81 -0
- package/models/ManagementControllerGetClient200Response.ts +81 -0
- package/models/ManagementControllerGetClient400Response.ts +81 -0
- package/models/ManagementControllerGetClient404Response.ts +73 -0
- package/models/ManagementControllerGetClient500Response.ts +81 -0
- package/models/ManagementControllerRegisterClient201Response.ts +89 -0
- package/models/ManagementControllerRegisterClient201ResponseData.ts +105 -0
- package/models/ManagementControllerRegisterClient400Response.ts +81 -0
- package/models/ManagementControllerRegisterClient409Response.ts +89 -0
- package/models/ManagementControllerRegisterClient409ResponseError.ts +73 -0
- package/models/ManagementControllerRegisterClient500Response.ts +81 -0
- package/models/ManagementControllerRegisterClientRequest.ts +75 -0
- package/models/ManagementControllerRemoveClient200Response.ts +89 -0
- package/models/ManagementControllerRemoveClient200ResponseData.ts +65 -0
- package/models/ManagementControllerRemoveClient400Response.ts +81 -0
- package/models/ManagementControllerRemoveClient500Response.ts +81 -0
- package/models/ManagementControllerRemoveClientRequest.ts +66 -0
- package/models/ManagementControllerUpdateClient200Response.ts +89 -0
- package/models/ManagementControllerUpdateClient200ResponseData.ts +89 -0
- package/models/ManagementControllerUpdateClient400Response.ts +81 -0
- package/models/ManagementControllerUpdateClient500Response.ts +81 -0
- package/models/ManagementControllerUpdateClientRequest.ts +103 -0
- package/models/MandateControllerCreateCartMandate201Response.ts +89 -0
- package/models/MandateControllerCreateCartMandate201ResponseData.ts +137 -0
- package/models/MandateControllerCreateCartMandateRequest.ts +171 -0
- package/models/MandateControllerCreateCartMandateRequestItemsInner.ts +93 -0
- package/models/MandateControllerCreateIntentMandateRequest.ts +144 -0
- package/models/MandateControllerCreatePaymentMandateRequest.ts +189 -0
- package/models/MandateControllerCreateSignedPaymentMandateRequest.ts +137 -0
- package/models/MandateControllerCreateSignedPaymentMandateRequestUserAuthorization.ts +100 -0
- package/models/ReportingControllerRemoveReportRequest.ts +66 -0
- package/models/ReportingControllerReportClientRequest.ts +83 -0
- package/models/ReportingControllerReportClientRequestReasonsInner.ts +110 -0
- package/models/index.ts +55 -0
- package/package.json +65 -0
- package/runtime.ts +432 -0
- package/utils/dpop.ts +174 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Credentials Service API
|
|
5
|
+
* API documentation for the Credentials service - Mandate and Enrollment endpoints API documentation for the Fraud service - Blacklist, Device, Geo, IP, Reporting, and Risk endpoints API documentation for the Partner service - Management endpoints
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MandateControllerCreatePaymentMandateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface MandateControllerCreatePaymentMandateRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Unique payment mandate identifier
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
26
|
+
*/
|
|
27
|
+
paymentMandateId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
32
|
+
*/
|
|
33
|
+
clientId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
38
|
+
*/
|
|
39
|
+
partnershipId: string;
|
|
40
|
+
/**
|
|
41
|
+
* Merchant DID
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
44
|
+
*/
|
|
45
|
+
merchantDid: string;
|
|
46
|
+
/**
|
|
47
|
+
* Merchant display name
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
50
|
+
*/
|
|
51
|
+
merchantName: string;
|
|
52
|
+
/**
|
|
53
|
+
* User DID
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
56
|
+
*/
|
|
57
|
+
userDid: string;
|
|
58
|
+
/**
|
|
59
|
+
* Agent DID (developer)
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
62
|
+
*/
|
|
63
|
+
agentDid: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
68
|
+
*/
|
|
69
|
+
amount: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
74
|
+
*/
|
|
75
|
+
currency: string;
|
|
76
|
+
/**
|
|
77
|
+
* Payment scope
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
80
|
+
*/
|
|
81
|
+
scope: string;
|
|
82
|
+
/**
|
|
83
|
+
* Optional payment purpose
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
86
|
+
*/
|
|
87
|
+
purpose?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Payer email (must match user's registered email)
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
92
|
+
*/
|
|
93
|
+
payerEmail: string;
|
|
94
|
+
/**
|
|
95
|
+
* Transaction ID (INTENT mandate ID) - required to link payment to intent
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
98
|
+
*/
|
|
99
|
+
transactionId: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {Date}
|
|
103
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
104
|
+
*/
|
|
105
|
+
expiresAt?: Date;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {object}
|
|
109
|
+
* @memberof MandateControllerCreatePaymentMandateRequest
|
|
110
|
+
*/
|
|
111
|
+
metadata?: object;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Check if a given object implements the MandateControllerCreatePaymentMandateRequest interface.
|
|
116
|
+
*/
|
|
117
|
+
export function instanceOfMandateControllerCreatePaymentMandateRequest(value: object): value is MandateControllerCreatePaymentMandateRequest {
|
|
118
|
+
if (!('paymentMandateId' in value) || value['paymentMandateId'] === undefined) return false;
|
|
119
|
+
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
120
|
+
if (!('partnershipId' in value) || value['partnershipId'] === undefined) return false;
|
|
121
|
+
if (!('merchantDid' in value) || value['merchantDid'] === undefined) return false;
|
|
122
|
+
if (!('merchantName' in value) || value['merchantName'] === undefined) return false;
|
|
123
|
+
if (!('userDid' in value) || value['userDid'] === undefined) return false;
|
|
124
|
+
if (!('agentDid' in value) || value['agentDid'] === undefined) return false;
|
|
125
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
126
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
127
|
+
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
128
|
+
if (!('payerEmail' in value) || value['payerEmail'] === undefined) return false;
|
|
129
|
+
if (!('transactionId' in value) || value['transactionId'] === undefined) return false;
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function MandateControllerCreatePaymentMandateRequestFromJSON(json: any): MandateControllerCreatePaymentMandateRequest {
|
|
134
|
+
return MandateControllerCreatePaymentMandateRequestFromJSONTyped(json, false);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function MandateControllerCreatePaymentMandateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MandateControllerCreatePaymentMandateRequest {
|
|
138
|
+
if (json == null) {
|
|
139
|
+
return json;
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
|
|
143
|
+
'paymentMandateId': json['paymentMandateId'],
|
|
144
|
+
'clientId': json['clientId'],
|
|
145
|
+
'partnershipId': json['partnershipId'],
|
|
146
|
+
'merchantDid': json['merchantDid'],
|
|
147
|
+
'merchantName': json['merchantName'],
|
|
148
|
+
'userDid': json['userDid'],
|
|
149
|
+
'agentDid': json['agentDid'],
|
|
150
|
+
'amount': json['amount'],
|
|
151
|
+
'currency': json['currency'],
|
|
152
|
+
'scope': json['scope'],
|
|
153
|
+
'purpose': json['purpose'] == null ? undefined : json['purpose'],
|
|
154
|
+
'payerEmail': json['payerEmail'],
|
|
155
|
+
'transactionId': json['transactionId'],
|
|
156
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
157
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function MandateControllerCreatePaymentMandateRequestToJSON(json: any): MandateControllerCreatePaymentMandateRequest {
|
|
162
|
+
return MandateControllerCreatePaymentMandateRequestToJSONTyped(json, false);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function MandateControllerCreatePaymentMandateRequestToJSONTyped(value?: MandateControllerCreatePaymentMandateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
166
|
+
if (value == null) {
|
|
167
|
+
return value;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return {
|
|
171
|
+
|
|
172
|
+
'paymentMandateId': value['paymentMandateId'],
|
|
173
|
+
'clientId': value['clientId'],
|
|
174
|
+
'partnershipId': value['partnershipId'],
|
|
175
|
+
'merchantDid': value['merchantDid'],
|
|
176
|
+
'merchantName': value['merchantName'],
|
|
177
|
+
'userDid': value['userDid'],
|
|
178
|
+
'agentDid': value['agentDid'],
|
|
179
|
+
'amount': value['amount'],
|
|
180
|
+
'currency': value['currency'],
|
|
181
|
+
'scope': value['scope'],
|
|
182
|
+
'purpose': value['purpose'],
|
|
183
|
+
'payerEmail': value['payerEmail'],
|
|
184
|
+
'transactionId': value['transactionId'],
|
|
185
|
+
'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
186
|
+
'metadata': value['metadata'],
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Credentials Service API
|
|
5
|
+
* API documentation for the Credentials service - Mandate and Enrollment endpoints API documentation for the Fraud service - Blacklist, Device, Geo, IP, Reporting, and Risk endpoints API documentation for the Partner service - Management endpoints
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { MandateControllerCreateSignedPaymentMandateRequestUserAuthorization } from './MandateControllerCreateSignedPaymentMandateRequestUserAuthorization';
|
|
17
|
+
import {
|
|
18
|
+
MandateControllerCreateSignedPaymentMandateRequestUserAuthorizationFromJSON,
|
|
19
|
+
MandateControllerCreateSignedPaymentMandateRequestUserAuthorizationFromJSONTyped,
|
|
20
|
+
MandateControllerCreateSignedPaymentMandateRequestUserAuthorizationToJSON,
|
|
21
|
+
MandateControllerCreateSignedPaymentMandateRequestUserAuthorizationToJSONTyped,
|
|
22
|
+
} from './MandateControllerCreateSignedPaymentMandateRequestUserAuthorization';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MandateControllerCreateSignedPaymentMandateRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface MandateControllerCreateSignedPaymentMandateRequest {
|
|
30
|
+
/**
|
|
31
|
+
* Unique signed payment identifier
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequest
|
|
34
|
+
*/
|
|
35
|
+
signedPaymentId: string;
|
|
36
|
+
/**
|
|
37
|
+
* ID of the payment mandate to sign
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequest
|
|
40
|
+
*/
|
|
41
|
+
paymentMandateId: string;
|
|
42
|
+
/**
|
|
43
|
+
* Transaction ID (INTENT mandate ID) - required to link signed payment to intent transaction
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequest
|
|
46
|
+
*/
|
|
47
|
+
transactionId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Client ID from Partner service
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequest
|
|
52
|
+
*/
|
|
53
|
+
clientId: string;
|
|
54
|
+
/**
|
|
55
|
+
* Partnership ID (must match payment mandate partnershipId)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequest
|
|
58
|
+
*/
|
|
59
|
+
partnershipId: string;
|
|
60
|
+
/**
|
|
61
|
+
* Digital signature
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequest
|
|
64
|
+
*/
|
|
65
|
+
signature: string;
|
|
66
|
+
/**
|
|
67
|
+
* DID of the signer (must match user DID)
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequest
|
|
70
|
+
*/
|
|
71
|
+
signedBy: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {MandateControllerCreateSignedPaymentMandateRequestUserAuthorization}
|
|
75
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequest
|
|
76
|
+
*/
|
|
77
|
+
userAuthorization: MandateControllerCreateSignedPaymentMandateRequestUserAuthorization;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the MandateControllerCreateSignedPaymentMandateRequest interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfMandateControllerCreateSignedPaymentMandateRequest(value: object): value is MandateControllerCreateSignedPaymentMandateRequest {
|
|
84
|
+
if (!('signedPaymentId' in value) || value['signedPaymentId'] === undefined) return false;
|
|
85
|
+
if (!('paymentMandateId' in value) || value['paymentMandateId'] === undefined) return false;
|
|
86
|
+
if (!('transactionId' in value) || value['transactionId'] === undefined) return false;
|
|
87
|
+
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
88
|
+
if (!('partnershipId' in value) || value['partnershipId'] === undefined) return false;
|
|
89
|
+
if (!('signature' in value) || value['signature'] === undefined) return false;
|
|
90
|
+
if (!('signedBy' in value) || value['signedBy'] === undefined) return false;
|
|
91
|
+
if (!('userAuthorization' in value) || value['userAuthorization'] === undefined) return false;
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function MandateControllerCreateSignedPaymentMandateRequestFromJSON(json: any): MandateControllerCreateSignedPaymentMandateRequest {
|
|
96
|
+
return MandateControllerCreateSignedPaymentMandateRequestFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function MandateControllerCreateSignedPaymentMandateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MandateControllerCreateSignedPaymentMandateRequest {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'signedPaymentId': json['signedPaymentId'],
|
|
106
|
+
'paymentMandateId': json['paymentMandateId'],
|
|
107
|
+
'transactionId': json['transactionId'],
|
|
108
|
+
'clientId': json['clientId'],
|
|
109
|
+
'partnershipId': json['partnershipId'],
|
|
110
|
+
'signature': json['signature'],
|
|
111
|
+
'signedBy': json['signedBy'],
|
|
112
|
+
'userAuthorization': MandateControllerCreateSignedPaymentMandateRequestUserAuthorizationFromJSON(json['userAuthorization']),
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function MandateControllerCreateSignedPaymentMandateRequestToJSON(json: any): MandateControllerCreateSignedPaymentMandateRequest {
|
|
117
|
+
return MandateControllerCreateSignedPaymentMandateRequestToJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function MandateControllerCreateSignedPaymentMandateRequestToJSONTyped(value?: MandateControllerCreateSignedPaymentMandateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
121
|
+
if (value == null) {
|
|
122
|
+
return value;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'signedPaymentId': value['signedPaymentId'],
|
|
128
|
+
'paymentMandateId': value['paymentMandateId'],
|
|
129
|
+
'transactionId': value['transactionId'],
|
|
130
|
+
'clientId': value['clientId'],
|
|
131
|
+
'partnershipId': value['partnershipId'],
|
|
132
|
+
'signature': value['signature'],
|
|
133
|
+
'signedBy': value['signedBy'],
|
|
134
|
+
'userAuthorization': MandateControllerCreateSignedPaymentMandateRequestUserAuthorizationToJSON(value['userAuthorization']),
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Credentials Service API
|
|
5
|
+
* API documentation for the Credentials service - Mandate and Enrollment endpoints API documentation for the Fraud service - Blacklist, Device, Geo, IP, Reporting, and Risk endpoints API documentation for the Partner service - Management endpoints
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MandateControllerCreateSignedPaymentMandateRequestUserAuthorization
|
|
20
|
+
*/
|
|
21
|
+
export interface MandateControllerCreateSignedPaymentMandateRequestUserAuthorization {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Date}
|
|
25
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequestUserAuthorization
|
|
26
|
+
*/
|
|
27
|
+
authorizedAt: Date;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequestUserAuthorization
|
|
32
|
+
*/
|
|
33
|
+
authorizedBy: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequestUserAuthorization
|
|
38
|
+
*/
|
|
39
|
+
signature: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequestUserAuthorization
|
|
44
|
+
*/
|
|
45
|
+
signatureAlgorithm?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {object}
|
|
49
|
+
* @memberof MandateControllerCreateSignedPaymentMandateRequestUserAuthorization
|
|
50
|
+
*/
|
|
51
|
+
metadata?: object;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the MandateControllerCreateSignedPaymentMandateRequestUserAuthorization interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfMandateControllerCreateSignedPaymentMandateRequestUserAuthorization(value: object): value is MandateControllerCreateSignedPaymentMandateRequestUserAuthorization {
|
|
58
|
+
if (!('authorizedAt' in value) || value['authorizedAt'] === undefined) return false;
|
|
59
|
+
if (!('authorizedBy' in value) || value['authorizedBy'] === undefined) return false;
|
|
60
|
+
if (!('signature' in value) || value['signature'] === undefined) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function MandateControllerCreateSignedPaymentMandateRequestUserAuthorizationFromJSON(json: any): MandateControllerCreateSignedPaymentMandateRequestUserAuthorization {
|
|
65
|
+
return MandateControllerCreateSignedPaymentMandateRequestUserAuthorizationFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function MandateControllerCreateSignedPaymentMandateRequestUserAuthorizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MandateControllerCreateSignedPaymentMandateRequestUserAuthorization {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'authorizedAt': (new Date(json['authorizedAt'])),
|
|
75
|
+
'authorizedBy': json['authorizedBy'],
|
|
76
|
+
'signature': json['signature'],
|
|
77
|
+
'signatureAlgorithm': json['signatureAlgorithm'] == null ? undefined : json['signatureAlgorithm'],
|
|
78
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function MandateControllerCreateSignedPaymentMandateRequestUserAuthorizationToJSON(json: any): MandateControllerCreateSignedPaymentMandateRequestUserAuthorization {
|
|
83
|
+
return MandateControllerCreateSignedPaymentMandateRequestUserAuthorizationToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function MandateControllerCreateSignedPaymentMandateRequestUserAuthorizationToJSONTyped(value?: MandateControllerCreateSignedPaymentMandateRequestUserAuthorization | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'authorizedAt': value['authorizedAt'].toISOString(),
|
|
94
|
+
'authorizedBy': value['authorizedBy'],
|
|
95
|
+
'signature': value['signature'],
|
|
96
|
+
'signatureAlgorithm': value['signatureAlgorithm'],
|
|
97
|
+
'metadata': value['metadata'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Credentials Service API
|
|
5
|
+
* API documentation for the Credentials service - Mandate and Enrollment endpoints API documentation for the Fraud service - Blacklist, Device, Geo, IP, Reporting, and Risk endpoints API documentation for the Partner service - Management endpoints
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ReportingControllerRemoveReportRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ReportingControllerRemoveReportRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Client UUID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReportingControllerRemoveReportRequest
|
|
26
|
+
*/
|
|
27
|
+
clientId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ReportingControllerRemoveReportRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfReportingControllerRemoveReportRequest(value: object): value is ReportingControllerRemoveReportRequest {
|
|
34
|
+
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ReportingControllerRemoveReportRequestFromJSON(json: any): ReportingControllerRemoveReportRequest {
|
|
39
|
+
return ReportingControllerRemoveReportRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ReportingControllerRemoveReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportingControllerRemoveReportRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'clientId': json['clientId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ReportingControllerRemoveReportRequestToJSON(json: any): ReportingControllerRemoveReportRequest {
|
|
53
|
+
return ReportingControllerRemoveReportRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ReportingControllerRemoveReportRequestToJSONTyped(value?: ReportingControllerRemoveReportRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'clientId': value['clientId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Credentials Service API
|
|
5
|
+
* API documentation for the Credentials service - Mandate and Enrollment endpoints API documentation for the Fraud service - Blacklist, Device, Geo, IP, Reporting, and Risk endpoints API documentation for the Partner service - Management endpoints
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ReportingControllerReportClientRequestReasonsInner } from './ReportingControllerReportClientRequestReasonsInner';
|
|
17
|
+
import {
|
|
18
|
+
ReportingControllerReportClientRequestReasonsInnerFromJSON,
|
|
19
|
+
ReportingControllerReportClientRequestReasonsInnerFromJSONTyped,
|
|
20
|
+
ReportingControllerReportClientRequestReasonsInnerToJSON,
|
|
21
|
+
ReportingControllerReportClientRequestReasonsInnerToJSONTyped,
|
|
22
|
+
} from './ReportingControllerReportClientRequestReasonsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ReportingControllerReportClientRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface ReportingControllerReportClientRequest {
|
|
30
|
+
/**
|
|
31
|
+
* Client UUID to report
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ReportingControllerReportClientRequest
|
|
34
|
+
*/
|
|
35
|
+
clientId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Array of structured reasons for reporting
|
|
38
|
+
* @type {Array<ReportingControllerReportClientRequestReasonsInner>}
|
|
39
|
+
* @memberof ReportingControllerReportClientRequest
|
|
40
|
+
*/
|
|
41
|
+
reasons: Array<ReportingControllerReportClientRequestReasonsInner>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ReportingControllerReportClientRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfReportingControllerReportClientRequest(value: object): value is ReportingControllerReportClientRequest {
|
|
48
|
+
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
49
|
+
if (!('reasons' in value) || value['reasons'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ReportingControllerReportClientRequestFromJSON(json: any): ReportingControllerReportClientRequest {
|
|
54
|
+
return ReportingControllerReportClientRequestFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ReportingControllerReportClientRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportingControllerReportClientRequest {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'clientId': json['clientId'],
|
|
64
|
+
'reasons': ((json['reasons'] as Array<any>).map(ReportingControllerReportClientRequestReasonsInnerFromJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ReportingControllerReportClientRequestToJSON(json: any): ReportingControllerReportClientRequest {
|
|
69
|
+
return ReportingControllerReportClientRequestToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ReportingControllerReportClientRequestToJSONTyped(value?: ReportingControllerReportClientRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'clientId': value['clientId'],
|
|
80
|
+
'reasons': ((value['reasons'] as Array<any>).map(ReportingControllerReportClientRequestReasonsInnerToJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Credentials Service API
|
|
5
|
+
* API documentation for the Credentials service - Mandate and Enrollment endpoints API documentation for the Fraud service - Blacklist, Device, Geo, IP, Reporting, and Risk endpoints API documentation for the Partner service - Management endpoints
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ReportingControllerReportClientRequestReasonsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ReportingControllerReportClientRequestReasonsInner {
|
|
22
|
+
/**
|
|
23
|
+
* User report category (TRUST_SAFETY, POLICY_VIOLATION, etc.)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReportingControllerReportClientRequestReasonsInner
|
|
26
|
+
*/
|
|
27
|
+
category: ReportingControllerReportClientRequestReasonsInnerCategoryEnum;
|
|
28
|
+
/**
|
|
29
|
+
* Severity level (LOW, MEDIUM, HIGH)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ReportingControllerReportClientRequestReasonsInner
|
|
32
|
+
*/
|
|
33
|
+
severity: ReportingControllerReportClientRequestReasonsInnerSeverityEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Optional note providing additional context
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ReportingControllerReportClientRequestReasonsInner
|
|
38
|
+
*/
|
|
39
|
+
note?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ReportingControllerReportClientRequestReasonsInnerCategoryEnum = {
|
|
47
|
+
TrustSafety: 'TRUST_SAFETY',
|
|
48
|
+
PolicyViolation: 'POLICY_VIOLATION',
|
|
49
|
+
AccountAbuse: 'ACCOUNT_ABUSE',
|
|
50
|
+
AutomationBot: 'AUTOMATION_BOT',
|
|
51
|
+
PaymentFraud: 'PAYMENT_FRAUD',
|
|
52
|
+
AccessViolation: 'ACCESS_VIOLATION',
|
|
53
|
+
KycRisk: 'KYC_RISK',
|
|
54
|
+
GeoRisk: 'GEO_RISK'
|
|
55
|
+
} as const;
|
|
56
|
+
export type ReportingControllerReportClientRequestReasonsInnerCategoryEnum = typeof ReportingControllerReportClientRequestReasonsInnerCategoryEnum[keyof typeof ReportingControllerReportClientRequestReasonsInnerCategoryEnum];
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export const ReportingControllerReportClientRequestReasonsInnerSeverityEnum = {
|
|
62
|
+
Low: 'LOW',
|
|
63
|
+
Medium: 'MEDIUM',
|
|
64
|
+
High: 'HIGH'
|
|
65
|
+
} as const;
|
|
66
|
+
export type ReportingControllerReportClientRequestReasonsInnerSeverityEnum = typeof ReportingControllerReportClientRequestReasonsInnerSeverityEnum[keyof typeof ReportingControllerReportClientRequestReasonsInnerSeverityEnum];
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the ReportingControllerReportClientRequestReasonsInner interface.
|
|
71
|
+
*/
|
|
72
|
+
export function instanceOfReportingControllerReportClientRequestReasonsInner(value: object): value is ReportingControllerReportClientRequestReasonsInner {
|
|
73
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
74
|
+
if (!('severity' in value) || value['severity'] === undefined) return false;
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ReportingControllerReportClientRequestReasonsInnerFromJSON(json: any): ReportingControllerReportClientRequestReasonsInner {
|
|
79
|
+
return ReportingControllerReportClientRequestReasonsInnerFromJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ReportingControllerReportClientRequestReasonsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportingControllerReportClientRequestReasonsInner {
|
|
83
|
+
if (json == null) {
|
|
84
|
+
return json;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'category': json['category'],
|
|
89
|
+
'severity': json['severity'],
|
|
90
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ReportingControllerReportClientRequestReasonsInnerToJSON(json: any): ReportingControllerReportClientRequestReasonsInner {
|
|
95
|
+
return ReportingControllerReportClientRequestReasonsInnerToJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function ReportingControllerReportClientRequestReasonsInnerToJSONTyped(value?: ReportingControllerReportClientRequestReasonsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
99
|
+
if (value == null) {
|
|
100
|
+
return value;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'category': value['category'],
|
|
106
|
+
'severity': value['severity'],
|
|
107
|
+
'note': value['note'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|