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,89 @@
|
|
|
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 { MandateControllerCreateCartMandate201ResponseData } from './MandateControllerCreateCartMandate201ResponseData';
|
|
17
|
+
import {
|
|
18
|
+
MandateControllerCreateCartMandate201ResponseDataFromJSON,
|
|
19
|
+
MandateControllerCreateCartMandate201ResponseDataFromJSONTyped,
|
|
20
|
+
MandateControllerCreateCartMandate201ResponseDataToJSON,
|
|
21
|
+
MandateControllerCreateCartMandate201ResponseDataToJSONTyped,
|
|
22
|
+
} from './MandateControllerCreateCartMandate201ResponseData';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MandateControllerCreateCartMandate201Response
|
|
28
|
+
*/
|
|
29
|
+
export interface MandateControllerCreateCartMandate201Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof MandateControllerCreateCartMandate201Response
|
|
34
|
+
*/
|
|
35
|
+
success?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof MandateControllerCreateCartMandate201Response
|
|
40
|
+
*/
|
|
41
|
+
message?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {MandateControllerCreateCartMandate201ResponseData}
|
|
45
|
+
* @memberof MandateControllerCreateCartMandate201Response
|
|
46
|
+
*/
|
|
47
|
+
data?: MandateControllerCreateCartMandate201ResponseData;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the MandateControllerCreateCartMandate201Response interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfMandateControllerCreateCartMandate201Response(value: object): value is MandateControllerCreateCartMandate201Response {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function MandateControllerCreateCartMandate201ResponseFromJSON(json: any): MandateControllerCreateCartMandate201Response {
|
|
58
|
+
return MandateControllerCreateCartMandate201ResponseFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function MandateControllerCreateCartMandate201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MandateControllerCreateCartMandate201Response {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
68
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
69
|
+
'data': json['data'] == null ? undefined : MandateControllerCreateCartMandate201ResponseDataFromJSON(json['data']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function MandateControllerCreateCartMandate201ResponseToJSON(json: any): MandateControllerCreateCartMandate201Response {
|
|
74
|
+
return MandateControllerCreateCartMandate201ResponseToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function MandateControllerCreateCartMandate201ResponseToJSONTyped(value?: MandateControllerCreateCartMandate201Response | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'success': value['success'],
|
|
85
|
+
'message': value['message'],
|
|
86
|
+
'data': MandateControllerCreateCartMandate201ResponseDataToJSON(value['data']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MandateControllerCreateCartMandate201ResponseData
|
|
20
|
+
*/
|
|
21
|
+
export interface MandateControllerCreateCartMandate201ResponseData {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MandateControllerCreateCartMandate201ResponseData
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MandateControllerCreateCartMandate201ResponseData
|
|
32
|
+
*/
|
|
33
|
+
kind?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MandateControllerCreateCartMandate201ResponseData
|
|
38
|
+
*/
|
|
39
|
+
status?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof MandateControllerCreateCartMandate201ResponseData
|
|
44
|
+
*/
|
|
45
|
+
clientId?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof MandateControllerCreateCartMandate201ResponseData
|
|
50
|
+
*/
|
|
51
|
+
partnershipId?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof MandateControllerCreateCartMandate201ResponseData
|
|
56
|
+
*/
|
|
57
|
+
merchantName?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof MandateControllerCreateCartMandate201ResponseData
|
|
62
|
+
*/
|
|
63
|
+
payerEmail?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof MandateControllerCreateCartMandate201ResponseData
|
|
68
|
+
*/
|
|
69
|
+
createdAt?: Date;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof MandateControllerCreateCartMandate201ResponseData
|
|
74
|
+
*/
|
|
75
|
+
expiresAt?: Date | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {object}
|
|
79
|
+
* @memberof MandateControllerCreateCartMandate201ResponseData
|
|
80
|
+
*/
|
|
81
|
+
contents?: object;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the MandateControllerCreateCartMandate201ResponseData interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfMandateControllerCreateCartMandate201ResponseData(value: object): value is MandateControllerCreateCartMandate201ResponseData {
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function MandateControllerCreateCartMandate201ResponseDataFromJSON(json: any): MandateControllerCreateCartMandate201ResponseData {
|
|
92
|
+
return MandateControllerCreateCartMandate201ResponseDataFromJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function MandateControllerCreateCartMandate201ResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MandateControllerCreateCartMandate201ResponseData {
|
|
96
|
+
if (json == null) {
|
|
97
|
+
return json;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
102
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
103
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
104
|
+
'clientId': json['clientId'] == null ? undefined : json['clientId'],
|
|
105
|
+
'partnershipId': json['partnershipId'] == null ? undefined : json['partnershipId'],
|
|
106
|
+
'merchantName': json['merchantName'] == null ? undefined : json['merchantName'],
|
|
107
|
+
'payerEmail': json['payerEmail'] == null ? undefined : json['payerEmail'],
|
|
108
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
109
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
110
|
+
'contents': json['contents'] == null ? undefined : json['contents'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function MandateControllerCreateCartMandate201ResponseDataToJSON(json: any): MandateControllerCreateCartMandate201ResponseData {
|
|
115
|
+
return MandateControllerCreateCartMandate201ResponseDataToJSONTyped(json, false);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function MandateControllerCreateCartMandate201ResponseDataToJSONTyped(value?: MandateControllerCreateCartMandate201ResponseData | null, ignoreDiscriminator: boolean = false): any {
|
|
119
|
+
if (value == null) {
|
|
120
|
+
return value;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return {
|
|
124
|
+
|
|
125
|
+
'id': value['id'],
|
|
126
|
+
'kind': value['kind'],
|
|
127
|
+
'status': value['status'],
|
|
128
|
+
'clientId': value['clientId'],
|
|
129
|
+
'partnershipId': value['partnershipId'],
|
|
130
|
+
'merchantName': value['merchantName'],
|
|
131
|
+
'payerEmail': value['payerEmail'],
|
|
132
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
133
|
+
'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
134
|
+
'contents': value['contents'],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
@@ -0,0 +1,171 @@
|
|
|
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 { MandateControllerCreateCartMandateRequestItemsInner } from './MandateControllerCreateCartMandateRequestItemsInner';
|
|
17
|
+
import {
|
|
18
|
+
MandateControllerCreateCartMandateRequestItemsInnerFromJSON,
|
|
19
|
+
MandateControllerCreateCartMandateRequestItemsInnerFromJSONTyped,
|
|
20
|
+
MandateControllerCreateCartMandateRequestItemsInnerToJSON,
|
|
21
|
+
MandateControllerCreateCartMandateRequestItemsInnerToJSONTyped,
|
|
22
|
+
} from './MandateControllerCreateCartMandateRequestItemsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MandateControllerCreateCartMandateRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface MandateControllerCreateCartMandateRequest {
|
|
30
|
+
/**
|
|
31
|
+
* Unique cart identifier
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MandateControllerCreateCartMandateRequest
|
|
34
|
+
*/
|
|
35
|
+
cartId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Client UUID from Partner service
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof MandateControllerCreateCartMandateRequest
|
|
40
|
+
*/
|
|
41
|
+
clientId: string;
|
|
42
|
+
/**
|
|
43
|
+
* Partnership UUID linking developer and operator
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof MandateControllerCreateCartMandateRequest
|
|
46
|
+
*/
|
|
47
|
+
partnershipId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Merchant DID (must match operator DID)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof MandateControllerCreateCartMandateRequest
|
|
52
|
+
*/
|
|
53
|
+
merchantDid: string;
|
|
54
|
+
/**
|
|
55
|
+
* Merchant display name
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof MandateControllerCreateCartMandateRequest
|
|
58
|
+
*/
|
|
59
|
+
merchantName: string;
|
|
60
|
+
/**
|
|
61
|
+
* Cart items
|
|
62
|
+
* @type {Array<MandateControllerCreateCartMandateRequestItemsInner>}
|
|
63
|
+
* @memberof MandateControllerCreateCartMandateRequest
|
|
64
|
+
*/
|
|
65
|
+
items: Array<MandateControllerCreateCartMandateRequestItemsInner>;
|
|
66
|
+
/**
|
|
67
|
+
* Total cart amount
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof MandateControllerCreateCartMandateRequest
|
|
70
|
+
*/
|
|
71
|
+
totalAmount: number;
|
|
72
|
+
/**
|
|
73
|
+
* ISO 4217 currency code
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof MandateControllerCreateCartMandateRequest
|
|
76
|
+
*/
|
|
77
|
+
currency: string;
|
|
78
|
+
/**
|
|
79
|
+
* Payer email (required, must match managed client email)
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof MandateControllerCreateCartMandateRequest
|
|
82
|
+
*/
|
|
83
|
+
payerEmail: string;
|
|
84
|
+
/**
|
|
85
|
+
* Transaction ID (INTENT mandate ID) - required to link cart to intent transaction
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof MandateControllerCreateCartMandateRequest
|
|
88
|
+
*/
|
|
89
|
+
transactionId: string;
|
|
90
|
+
/**
|
|
91
|
+
* Optional expiration date
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof MandateControllerCreateCartMandateRequest
|
|
94
|
+
*/
|
|
95
|
+
expiresAt?: Date;
|
|
96
|
+
/**
|
|
97
|
+
* Additional metadata
|
|
98
|
+
* @type {object}
|
|
99
|
+
* @memberof MandateControllerCreateCartMandateRequest
|
|
100
|
+
*/
|
|
101
|
+
metadata?: object;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Check if a given object implements the MandateControllerCreateCartMandateRequest interface.
|
|
106
|
+
*/
|
|
107
|
+
export function instanceOfMandateControllerCreateCartMandateRequest(value: object): value is MandateControllerCreateCartMandateRequest {
|
|
108
|
+
if (!('cartId' in value) || value['cartId'] === undefined) return false;
|
|
109
|
+
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
110
|
+
if (!('partnershipId' in value) || value['partnershipId'] === undefined) return false;
|
|
111
|
+
if (!('merchantDid' in value) || value['merchantDid'] === undefined) return false;
|
|
112
|
+
if (!('merchantName' in value) || value['merchantName'] === undefined) return false;
|
|
113
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
114
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
|
|
115
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
116
|
+
if (!('payerEmail' in value) || value['payerEmail'] === undefined) return false;
|
|
117
|
+
if (!('transactionId' in value) || value['transactionId'] === undefined) return false;
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function MandateControllerCreateCartMandateRequestFromJSON(json: any): MandateControllerCreateCartMandateRequest {
|
|
122
|
+
return MandateControllerCreateCartMandateRequestFromJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function MandateControllerCreateCartMandateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MandateControllerCreateCartMandateRequest {
|
|
126
|
+
if (json == null) {
|
|
127
|
+
return json;
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'cartId': json['cartId'],
|
|
132
|
+
'clientId': json['clientId'],
|
|
133
|
+
'partnershipId': json['partnershipId'],
|
|
134
|
+
'merchantDid': json['merchantDid'],
|
|
135
|
+
'merchantName': json['merchantName'],
|
|
136
|
+
'items': ((json['items'] as Array<any>).map(MandateControllerCreateCartMandateRequestItemsInnerFromJSON)),
|
|
137
|
+
'totalAmount': json['totalAmount'],
|
|
138
|
+
'currency': json['currency'],
|
|
139
|
+
'payerEmail': json['payerEmail'],
|
|
140
|
+
'transactionId': json['transactionId'],
|
|
141
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
142
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function MandateControllerCreateCartMandateRequestToJSON(json: any): MandateControllerCreateCartMandateRequest {
|
|
147
|
+
return MandateControllerCreateCartMandateRequestToJSONTyped(json, false);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function MandateControllerCreateCartMandateRequestToJSONTyped(value?: MandateControllerCreateCartMandateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
151
|
+
if (value == null) {
|
|
152
|
+
return value;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return {
|
|
156
|
+
|
|
157
|
+
'cartId': value['cartId'],
|
|
158
|
+
'clientId': value['clientId'],
|
|
159
|
+
'partnershipId': value['partnershipId'],
|
|
160
|
+
'merchantDid': value['merchantDid'],
|
|
161
|
+
'merchantName': value['merchantName'],
|
|
162
|
+
'items': ((value['items'] as Array<any>).map(MandateControllerCreateCartMandateRequestItemsInnerToJSON)),
|
|
163
|
+
'totalAmount': value['totalAmount'],
|
|
164
|
+
'currency': value['currency'],
|
|
165
|
+
'payerEmail': value['payerEmail'],
|
|
166
|
+
'transactionId': value['transactionId'],
|
|
167
|
+
'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
168
|
+
'metadata': value['metadata'],
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 MandateControllerCreateCartMandateRequestItemsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface MandateControllerCreateCartMandateRequestItemsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MandateControllerCreateCartMandateRequestItemsInner
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MandateControllerCreateCartMandateRequestItemsInner
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof MandateControllerCreateCartMandateRequestItemsInner
|
|
38
|
+
*/
|
|
39
|
+
quantity: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof MandateControllerCreateCartMandateRequestItemsInner
|
|
44
|
+
*/
|
|
45
|
+
price: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the MandateControllerCreateCartMandateRequestItemsInner interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfMandateControllerCreateCartMandateRequestItemsInner(value: object): value is MandateControllerCreateCartMandateRequestItemsInner {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
54
|
+
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
55
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function MandateControllerCreateCartMandateRequestItemsInnerFromJSON(json: any): MandateControllerCreateCartMandateRequestItemsInner {
|
|
60
|
+
return MandateControllerCreateCartMandateRequestItemsInnerFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function MandateControllerCreateCartMandateRequestItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): MandateControllerCreateCartMandateRequestItemsInner {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'quantity': json['quantity'],
|
|
72
|
+
'price': json['price'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function MandateControllerCreateCartMandateRequestItemsInnerToJSON(json: any): MandateControllerCreateCartMandateRequestItemsInner {
|
|
77
|
+
return MandateControllerCreateCartMandateRequestItemsInnerToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function MandateControllerCreateCartMandateRequestItemsInnerToJSONTyped(value?: MandateControllerCreateCartMandateRequestItemsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'name': value['name'],
|
|
89
|
+
'quantity': value['quantity'],
|
|
90
|
+
'price': value['price'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,144 @@
|
|
|
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 MandateControllerCreateIntentMandateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface MandateControllerCreateIntentMandateRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Unique intent identifier
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MandateControllerCreateIntentMandateRequest
|
|
26
|
+
*/
|
|
27
|
+
intentId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MandateControllerCreateIntentMandateRequest
|
|
32
|
+
*/
|
|
33
|
+
clientId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MandateControllerCreateIntentMandateRequest
|
|
38
|
+
*/
|
|
39
|
+
partnershipId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof MandateControllerCreateIntentMandateRequest
|
|
44
|
+
*/
|
|
45
|
+
merchantDid: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof MandateControllerCreateIntentMandateRequest
|
|
50
|
+
*/
|
|
51
|
+
merchantName: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof MandateControllerCreateIntentMandateRequest
|
|
56
|
+
*/
|
|
57
|
+
amount: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof MandateControllerCreateIntentMandateRequest
|
|
62
|
+
*/
|
|
63
|
+
currency: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof MandateControllerCreateIntentMandateRequest
|
|
68
|
+
*/
|
|
69
|
+
description?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof MandateControllerCreateIntentMandateRequest
|
|
74
|
+
*/
|
|
75
|
+
expiresAt?: Date;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {object}
|
|
79
|
+
* @memberof MandateControllerCreateIntentMandateRequest
|
|
80
|
+
*/
|
|
81
|
+
metadata?: object;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the MandateControllerCreateIntentMandateRequest interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfMandateControllerCreateIntentMandateRequest(value: object): value is MandateControllerCreateIntentMandateRequest {
|
|
88
|
+
if (!('intentId' in value) || value['intentId'] === undefined) return false;
|
|
89
|
+
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
90
|
+
if (!('partnershipId' in value) || value['partnershipId'] === undefined) return false;
|
|
91
|
+
if (!('merchantDid' in value) || value['merchantDid'] === undefined) return false;
|
|
92
|
+
if (!('merchantName' in value) || value['merchantName'] === undefined) return false;
|
|
93
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
94
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function MandateControllerCreateIntentMandateRequestFromJSON(json: any): MandateControllerCreateIntentMandateRequest {
|
|
99
|
+
return MandateControllerCreateIntentMandateRequestFromJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function MandateControllerCreateIntentMandateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MandateControllerCreateIntentMandateRequest {
|
|
103
|
+
if (json == null) {
|
|
104
|
+
return json;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'intentId': json['intentId'],
|
|
109
|
+
'clientId': json['clientId'],
|
|
110
|
+
'partnershipId': json['partnershipId'],
|
|
111
|
+
'merchantDid': json['merchantDid'],
|
|
112
|
+
'merchantName': json['merchantName'],
|
|
113
|
+
'amount': json['amount'],
|
|
114
|
+
'currency': json['currency'],
|
|
115
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
116
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
117
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function MandateControllerCreateIntentMandateRequestToJSON(json: any): MandateControllerCreateIntentMandateRequest {
|
|
122
|
+
return MandateControllerCreateIntentMandateRequestToJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function MandateControllerCreateIntentMandateRequestToJSONTyped(value?: MandateControllerCreateIntentMandateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
126
|
+
if (value == null) {
|
|
127
|
+
return value;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'intentId': value['intentId'],
|
|
133
|
+
'clientId': value['clientId'],
|
|
134
|
+
'partnershipId': value['partnershipId'],
|
|
135
|
+
'merchantDid': value['merchantDid'],
|
|
136
|
+
'merchantName': value['merchantName'],
|
|
137
|
+
'amount': value['amount'],
|
|
138
|
+
'currency': value['currency'],
|
|
139
|
+
'description': value['description'],
|
|
140
|
+
'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
141
|
+
'metadata': value['metadata'],
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|