@dynamic-labs/sdk-api 0.0.1071 → 0.0.1073
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/package.json +1 -1
- package/src/apis/AdminActionsApi.cjs +3 -0
- package/src/apis/AdminActionsApi.js +3 -0
- package/src/apis/AllowlistsApi.cjs +3 -0
- package/src/apis/AllowlistsApi.js +3 -0
- package/src/apis/AnalyticsApi.cjs +3 -0
- package/src/apis/AnalyticsApi.js +3 -0
- package/src/apis/AuthorizedClientsApi.cjs +3 -0
- package/src/apis/AuthorizedClientsApi.js +3 -0
- package/src/apis/CaptchaApi.cjs +3 -0
- package/src/apis/CaptchaApi.js +3 -0
- package/src/apis/ChainalysisApi.cjs +3 -0
- package/src/apis/ChainalysisApi.js +3 -0
- package/src/apis/ChainsApi.cjs +3 -0
- package/src/apis/ChainsApi.js +3 -0
- package/src/apis/CheckoutApi.cjs +3 -0
- package/src/apis/CheckoutApi.js +3 -0
- package/src/apis/ClientGrantApi.cjs +3 -0
- package/src/apis/ClientGrantApi.js +3 -0
- package/src/apis/CustomFieldsApi.cjs +3 -0
- package/src/apis/CustomFieldsApi.js +3 -0
- package/src/apis/CustomHostnamesApi.cjs +3 -0
- package/src/apis/CustomHostnamesApi.js +3 -0
- package/src/apis/CustomNetworksApi.cjs +3 -0
- package/src/apis/CustomNetworksApi.js +3 -0
- package/src/apis/DeeplinkUrlsApi.cjs +3 -0
- package/src/apis/DeeplinkUrlsApi.js +3 -0
- package/src/apis/EnvironmentsApi.cjs +3 -0
- package/src/apis/EnvironmentsApi.js +3 -0
- package/src/apis/EventsApi.cjs +3 -0
- package/src/apis/EventsApi.js +3 -0
- package/src/apis/ExchangesApi.cjs +3 -0
- package/src/apis/ExchangesApi.js +3 -0
- package/src/apis/ExportsApi.cjs +3 -0
- package/src/apis/ExportsApi.js +3 -0
- package/src/apis/ExternalJwtApi.cjs +3 -0
- package/src/apis/ExternalJwtApi.js +3 -0
- package/src/apis/FlowAnalyticsApi.cjs +3 -0
- package/src/apis/FlowAnalyticsApi.js +3 -0
- package/src/apis/GatesApi.cjs +3 -0
- package/src/apis/GatesApi.js +3 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +3 -0
- package/src/apis/GlobalWalletAccessControlApi.js +3 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +3 -0
- package/src/apis/GlobalWalletConnectionsApi.js +3 -0
- package/src/apis/GlobalWalletsApi.cjs +3 -0
- package/src/apis/GlobalWalletsApi.js +3 -0
- package/src/apis/InvitesApi.cjs +3 -0
- package/src/apis/InvitesApi.js +3 -0
- package/src/apis/MembersApi.cjs +3 -0
- package/src/apis/MembersApi.js +3 -0
- package/src/apis/MfaSettingsApi.cjs +3 -0
- package/src/apis/MfaSettingsApi.js +3 -0
- package/src/apis/NameServicesApi.cjs +3 -0
- package/src/apis/NameServicesApi.js +3 -0
- package/src/apis/OrganizationSettingsApi.cjs +3 -0
- package/src/apis/OrganizationSettingsApi.js +3 -0
- package/src/apis/OrganizationsApi.cjs +3 -0
- package/src/apis/OrganizationsApi.js +3 -0
- package/src/apis/OriginsApi.cjs +3 -0
- package/src/apis/OriginsApi.js +3 -0
- package/src/apis/ProjectsApi.cjs +3 -0
- package/src/apis/ProjectsApi.js +3 -0
- package/src/apis/ProvidersApi.cjs +3 -0
- package/src/apis/ProvidersApi.js +3 -0
- package/src/apis/SDKApi.cjs +3 -0
- package/src/apis/SDKApi.js +3 -0
- package/src/apis/SDKViewsApi.cjs +3 -0
- package/src/apis/SDKViewsApi.js +3 -0
- package/src/apis/SessionsApi.cjs +3 -0
- package/src/apis/SessionsApi.js +3 -0
- package/src/apis/TestAccountApi.cjs +3 -0
- package/src/apis/TestAccountApi.js +3 -0
- package/src/apis/TokensApi.cjs +3 -0
- package/src/apis/TokensApi.js +3 -0
- package/src/apis/UserApiTokensApi.cjs +3 -0
- package/src/apis/UserApiTokensApi.js +3 -0
- package/src/apis/UsersApi.cjs +3 -0
- package/src/apis/UsersApi.js +3 -0
- package/src/apis/VisitsApi.cjs +3 -0
- package/src/apis/VisitsApi.js +3 -0
- package/src/apis/WaasApi.cjs +120 -0
- package/src/apis/WaasApi.d.ts +55 -1
- package/src/apis/WaasApi.js +120 -0
- package/src/apis/WalletConnectApi.cjs +3 -0
- package/src/apis/WalletConnectApi.js +3 -0
- package/src/apis/WalletsApi.cjs +3 -0
- package/src/apis/WalletsApi.js +3 -0
- package/src/apis/WebhooksApi.cjs +3 -0
- package/src/apis/WebhooksApi.js +3 -0
- package/src/index.cjs +60 -0
- package/src/index.js +12 -0
- package/src/models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.cjs +4 -12
- package/src/models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.d.ts +6 -0
- package/src/models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.js +4 -12
- package/src/models/WaasTransactionReviewConfigRequest.cjs +44 -0
- package/src/models/WaasTransactionReviewConfigRequest.d.ts +58 -0
- package/src/models/WaasTransactionReviewConfigRequest.js +38 -0
- package/src/models/WaasTransactionReviewConfigResponse.cjs +46 -0
- package/src/models/WaasTransactionReviewConfigResponse.d.ts +64 -0
- package/src/models/WaasTransactionReviewConfigResponse.js +40 -0
- package/src/models/WaasTransactionReviewFailurePolicy.cjs +40 -0
- package/src/models/WaasTransactionReviewFailurePolicy.d.ts +23 -0
- package/src/models/WaasTransactionReviewFailurePolicy.js +34 -0
- package/src/models/WaasTransactionReviewTestRequest.cjs +37 -0
- package/src/models/WaasTransactionReviewTestRequest.d.ts +35 -0
- package/src/models/WaasTransactionReviewTestRequest.js +31 -0
- package/src/models/WaasTransactionReviewTestRequestConfig.cjs +44 -0
- package/src/models/WaasTransactionReviewTestRequestConfig.d.ts +58 -0
- package/src/models/WaasTransactionReviewTestRequestConfig.js +38 -0
- package/src/models/WaasTransactionReviewTestResponse.cjs +51 -0
- package/src/models/WaasTransactionReviewTestResponse.d.ts +74 -0
- package/src/models/WaasTransactionReviewTestResponse.js +45 -0
- package/src/models/WaasTransactionReviewTestResponseDecision.cjs +35 -0
- package/src/models/WaasTransactionReviewTestResponseDecision.d.ts +33 -0
- package/src/models/WaasTransactionReviewTestResponseDecision.js +29 -0
- package/src/models/WaasTransactionReviewTestResponseRequest.cjs +47 -0
- package/src/models/WaasTransactionReviewTestResponseRequest.d.ts +43 -0
- package/src/models/WaasTransactionReviewTestResponseRequest.js +41 -0
- package/src/models/WaasTransactionReviewTestResponseResponse.cjs +39 -0
- package/src/models/WaasTransactionReviewTestResponseResponse.d.ts +48 -0
- package/src/models/WaasTransactionReviewTestResponseResponse.js +33 -0
- package/src/models/WaasTransactionReviewTestResponseResponseParsed.cjs +35 -0
- package/src/models/WaasTransactionReviewTestResponseResponseParsed.d.ts +33 -0
- package/src/models/WaasTransactionReviewTestResponseResponseParsed.js +29 -0
- package/src/models/WaasTransactionReviewTestResponseResponseSignature.cjs +54 -0
- package/src/models/WaasTransactionReviewTestResponseResponseSignature.d.ts +37 -0
- package/src/models/WaasTransactionReviewTestResponseResponseSignature.js +48 -0
- package/src/models/WaasTransactionReviewTestScenario.cjs +49 -0
- package/src/models/WaasTransactionReviewTestScenario.d.ts +32 -0
- package/src/models/WaasTransactionReviewTestScenario.js +43 -0
- package/src/models/WalletAdditionalAddress.cjs +2 -0
- package/src/models/WalletAdditionalAddress.d.ts +6 -0
- package/src/models/WalletAdditionalAddress.js +2 -0
- package/src/models/index.d.ts +12 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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 { WaasTransactionReviewFailurePolicy } from './WaasTransactionReviewFailurePolicy';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WaasTransactionReviewConfigResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface WaasTransactionReviewConfigResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof WaasTransactionReviewConfigResponse
|
|
23
|
+
*/
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WaasTransactionReviewConfigResponse
|
|
29
|
+
*/
|
|
30
|
+
environmentId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {WaasTransactionReviewFailurePolicy}
|
|
34
|
+
* @memberof WaasTransactionReviewConfigResponse
|
|
35
|
+
*/
|
|
36
|
+
webhookFailurePolicy: WaasTransactionReviewFailurePolicy;
|
|
37
|
+
/**
|
|
38
|
+
* Ed25519 public key (PEM format) configured for response signature verification, if any.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof WaasTransactionReviewConfigResponse
|
|
41
|
+
*/
|
|
42
|
+
webhookPublicKey?: string;
|
|
43
|
+
/**
|
|
44
|
+
* True iff a webhook secret is stored. The secret itself is never returned.
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof WaasTransactionReviewConfigResponse
|
|
47
|
+
*/
|
|
48
|
+
webhookSecretSet: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof WaasTransactionReviewConfigResponse
|
|
53
|
+
*/
|
|
54
|
+
webhookTimeoutMs: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof WaasTransactionReviewConfigResponse
|
|
59
|
+
*/
|
|
60
|
+
webhookUrl: string;
|
|
61
|
+
}
|
|
62
|
+
export declare function WaasTransactionReviewConfigResponseFromJSON(json: any): WaasTransactionReviewConfigResponse;
|
|
63
|
+
export declare function WaasTransactionReviewConfigResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasTransactionReviewConfigResponse;
|
|
64
|
+
export declare function WaasTransactionReviewConfigResponseToJSON(value?: WaasTransactionReviewConfigResponse | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasTransactionReviewFailurePolicyFromJSON, WaasTransactionReviewFailurePolicyToJSON } from './WaasTransactionReviewFailurePolicy.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function WaasTransactionReviewConfigResponseFromJSON(json) {
|
|
6
|
+
return WaasTransactionReviewConfigResponseFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function WaasTransactionReviewConfigResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'enabled': json['enabled'],
|
|
14
|
+
'environmentId': json['environmentId'],
|
|
15
|
+
'webhookFailurePolicy': WaasTransactionReviewFailurePolicyFromJSON(json['webhookFailurePolicy']),
|
|
16
|
+
'webhookPublicKey': !exists(json, 'webhookPublicKey') ? undefined : json['webhookPublicKey'],
|
|
17
|
+
'webhookSecretSet': json['webhookSecretSet'],
|
|
18
|
+
'webhookTimeoutMs': json['webhookTimeoutMs'],
|
|
19
|
+
'webhookUrl': json['webhookUrl'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function WaasTransactionReviewConfigResponseToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'enabled': value.enabled,
|
|
31
|
+
'environmentId': value.environmentId,
|
|
32
|
+
'webhookFailurePolicy': WaasTransactionReviewFailurePolicyToJSON(value.webhookFailurePolicy),
|
|
33
|
+
'webhookPublicKey': value.webhookPublicKey,
|
|
34
|
+
'webhookSecretSet': value.webhookSecretSet,
|
|
35
|
+
'webhookTimeoutMs': value.webhookTimeoutMs,
|
|
36
|
+
'webhookUrl': value.webhookUrl,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { WaasTransactionReviewConfigResponseFromJSON, WaasTransactionReviewConfigResponseFromJSONTyped, WaasTransactionReviewConfigResponseToJSON };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Determines what happens when the review webhook is unreachable or times out. ALLOW proceeds with signing; DENY blocks the transaction. Defaults to DENY when omitted from a configuration request.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.WaasTransactionReviewFailurePolicy = void 0;
|
|
24
|
+
(function (WaasTransactionReviewFailurePolicy) {
|
|
25
|
+
WaasTransactionReviewFailurePolicy["Allow"] = "ALLOW";
|
|
26
|
+
WaasTransactionReviewFailurePolicy["Deny"] = "DENY";
|
|
27
|
+
})(exports.WaasTransactionReviewFailurePolicy || (exports.WaasTransactionReviewFailurePolicy = {}));
|
|
28
|
+
function WaasTransactionReviewFailurePolicyFromJSON(json) {
|
|
29
|
+
return WaasTransactionReviewFailurePolicyFromJSONTyped(json);
|
|
30
|
+
}
|
|
31
|
+
function WaasTransactionReviewFailurePolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
function WaasTransactionReviewFailurePolicyToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.WaasTransactionReviewFailurePolicyFromJSON = WaasTransactionReviewFailurePolicyFromJSON;
|
|
39
|
+
exports.WaasTransactionReviewFailurePolicyFromJSONTyped = WaasTransactionReviewFailurePolicyFromJSONTyped;
|
|
40
|
+
exports.WaasTransactionReviewFailurePolicyToJSON = WaasTransactionReviewFailurePolicyToJSON;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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
|
+
/**
|
|
13
|
+
* Determines what happens when the review webhook is unreachable or times out. ALLOW proceeds with signing; DENY blocks the transaction. Defaults to DENY when omitted from a configuration request.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum WaasTransactionReviewFailurePolicy {
|
|
18
|
+
Allow = "ALLOW",
|
|
19
|
+
Deny = "DENY"
|
|
20
|
+
}
|
|
21
|
+
export declare function WaasTransactionReviewFailurePolicyFromJSON(json: any): WaasTransactionReviewFailurePolicy;
|
|
22
|
+
export declare function WaasTransactionReviewFailurePolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasTransactionReviewFailurePolicy;
|
|
23
|
+
export declare function WaasTransactionReviewFailurePolicyToJSON(value?: WaasTransactionReviewFailurePolicy | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
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
|
+
* Determines what happens when the review webhook is unreachable or times out. ALLOW proceeds with signing; DENY blocks the transaction. Defaults to DENY when omitted from a configuration request.
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var WaasTransactionReviewFailurePolicy;
|
|
20
|
+
(function (WaasTransactionReviewFailurePolicy) {
|
|
21
|
+
WaasTransactionReviewFailurePolicy["Allow"] = "ALLOW";
|
|
22
|
+
WaasTransactionReviewFailurePolicy["Deny"] = "DENY";
|
|
23
|
+
})(WaasTransactionReviewFailurePolicy || (WaasTransactionReviewFailurePolicy = {}));
|
|
24
|
+
function WaasTransactionReviewFailurePolicyFromJSON(json) {
|
|
25
|
+
return WaasTransactionReviewFailurePolicyFromJSONTyped(json);
|
|
26
|
+
}
|
|
27
|
+
function WaasTransactionReviewFailurePolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
function WaasTransactionReviewFailurePolicyToJSON(value) {
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { WaasTransactionReviewFailurePolicy, WaasTransactionReviewFailurePolicyFromJSON, WaasTransactionReviewFailurePolicyFromJSONTyped, WaasTransactionReviewFailurePolicyToJSON };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WaasTransactionReviewTestRequestConfig = require('./WaasTransactionReviewTestRequestConfig.cjs');
|
|
7
|
+
var WaasTransactionReviewTestScenario = require('./WaasTransactionReviewTestScenario.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function WaasTransactionReviewTestRequestFromJSON(json) {
|
|
11
|
+
return WaasTransactionReviewTestRequestFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function WaasTransactionReviewTestRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'scenario': WaasTransactionReviewTestScenario.WaasTransactionReviewTestScenarioFromJSON(json['scenario']),
|
|
19
|
+
'config': !runtime.exists(json, 'config') ? undefined : WaasTransactionReviewTestRequestConfig.WaasTransactionReviewTestRequestConfigFromJSON(json['config']),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function WaasTransactionReviewTestRequestToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'scenario': WaasTransactionReviewTestScenario.WaasTransactionReviewTestScenarioToJSON(value.scenario),
|
|
31
|
+
'config': WaasTransactionReviewTestRequestConfig.WaasTransactionReviewTestRequestConfigToJSON(value.config),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.WaasTransactionReviewTestRequestFromJSON = WaasTransactionReviewTestRequestFromJSON;
|
|
36
|
+
exports.WaasTransactionReviewTestRequestFromJSONTyped = WaasTransactionReviewTestRequestFromJSONTyped;
|
|
37
|
+
exports.WaasTransactionReviewTestRequestToJSON = WaasTransactionReviewTestRequestToJSON;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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 { WaasTransactionReviewTestRequestConfig } from './WaasTransactionReviewTestRequestConfig';
|
|
13
|
+
import { WaasTransactionReviewTestScenario } from './WaasTransactionReviewTestScenario';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WaasTransactionReviewTestRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface WaasTransactionReviewTestRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {WaasTransactionReviewTestScenario}
|
|
23
|
+
* @memberof WaasTransactionReviewTestRequest
|
|
24
|
+
*/
|
|
25
|
+
scenario: WaasTransactionReviewTestScenario;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {WaasTransactionReviewTestRequestConfig}
|
|
29
|
+
* @memberof WaasTransactionReviewTestRequest
|
|
30
|
+
*/
|
|
31
|
+
config?: WaasTransactionReviewTestRequestConfig;
|
|
32
|
+
}
|
|
33
|
+
export declare function WaasTransactionReviewTestRequestFromJSON(json: any): WaasTransactionReviewTestRequest;
|
|
34
|
+
export declare function WaasTransactionReviewTestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasTransactionReviewTestRequest;
|
|
35
|
+
export declare function WaasTransactionReviewTestRequestToJSON(value?: WaasTransactionReviewTestRequest | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasTransactionReviewTestRequestConfigFromJSON, WaasTransactionReviewTestRequestConfigToJSON } from './WaasTransactionReviewTestRequestConfig.js';
|
|
3
|
+
import { WaasTransactionReviewTestScenarioFromJSON, WaasTransactionReviewTestScenarioToJSON } from './WaasTransactionReviewTestScenario.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
function WaasTransactionReviewTestRequestFromJSON(json) {
|
|
7
|
+
return WaasTransactionReviewTestRequestFromJSONTyped(json);
|
|
8
|
+
}
|
|
9
|
+
function WaasTransactionReviewTestRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if ((json === undefined) || (json === null)) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
'scenario': WaasTransactionReviewTestScenarioFromJSON(json['scenario']),
|
|
15
|
+
'config': !exists(json, 'config') ? undefined : WaasTransactionReviewTestRequestConfigFromJSON(json['config']),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function WaasTransactionReviewTestRequestToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'scenario': WaasTransactionReviewTestScenarioToJSON(value.scenario),
|
|
27
|
+
'config': WaasTransactionReviewTestRequestConfigToJSON(value.config),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { WaasTransactionReviewTestRequestFromJSON, WaasTransactionReviewTestRequestFromJSONTyped, WaasTransactionReviewTestRequestToJSON };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WaasTransactionReviewFailurePolicy = require('./WaasTransactionReviewFailurePolicy.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function WaasTransactionReviewTestRequestConfigFromJSON(json) {
|
|
10
|
+
return WaasTransactionReviewTestRequestConfigFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function WaasTransactionReviewTestRequestConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'enabled': !runtime.exists(json, 'enabled') ? undefined : json['enabled'],
|
|
18
|
+
'webhookFailurePolicy': !runtime.exists(json, 'webhookFailurePolicy') ? undefined : WaasTransactionReviewFailurePolicy.WaasTransactionReviewFailurePolicyFromJSON(json['webhookFailurePolicy']),
|
|
19
|
+
'webhookPublicKey': !runtime.exists(json, 'webhookPublicKey') ? undefined : json['webhookPublicKey'],
|
|
20
|
+
'webhookSecret': !runtime.exists(json, 'webhookSecret') ? undefined : json['webhookSecret'],
|
|
21
|
+
'webhookTimeoutMs': !runtime.exists(json, 'webhookTimeoutMs') ? undefined : json['webhookTimeoutMs'],
|
|
22
|
+
'webhookUrl': !runtime.exists(json, 'webhookUrl') ? undefined : json['webhookUrl'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function WaasTransactionReviewTestRequestConfigToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'enabled': value.enabled,
|
|
34
|
+
'webhookFailurePolicy': WaasTransactionReviewFailurePolicy.WaasTransactionReviewFailurePolicyToJSON(value.webhookFailurePolicy),
|
|
35
|
+
'webhookPublicKey': value.webhookPublicKey,
|
|
36
|
+
'webhookSecret': value.webhookSecret,
|
|
37
|
+
'webhookTimeoutMs': value.webhookTimeoutMs,
|
|
38
|
+
'webhookUrl': value.webhookUrl,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
exports.WaasTransactionReviewTestRequestConfigFromJSON = WaasTransactionReviewTestRequestConfigFromJSON;
|
|
43
|
+
exports.WaasTransactionReviewTestRequestConfigFromJSONTyped = WaasTransactionReviewTestRequestConfigFromJSONTyped;
|
|
44
|
+
exports.WaasTransactionReviewTestRequestConfigToJSON = WaasTransactionReviewTestRequestConfigToJSON;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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 { WaasTransactionReviewFailurePolicy } from './WaasTransactionReviewFailurePolicy';
|
|
13
|
+
/**
|
|
14
|
+
* Optional config overrides. When provided, fields here take precedence over the saved configuration. Use this to test a config that has not been saved yet (e.g. driving a test from an unsaved form).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WaasTransactionReviewTestRequestConfig
|
|
17
|
+
*/
|
|
18
|
+
export interface WaasTransactionReviewTestRequestConfig {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof WaasTransactionReviewTestRequestConfig
|
|
23
|
+
*/
|
|
24
|
+
enabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {WaasTransactionReviewFailurePolicy}
|
|
28
|
+
* @memberof WaasTransactionReviewTestRequestConfig
|
|
29
|
+
*/
|
|
30
|
+
webhookFailurePolicy?: WaasTransactionReviewFailurePolicy;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof WaasTransactionReviewTestRequestConfig
|
|
35
|
+
*/
|
|
36
|
+
webhookPublicKey?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof WaasTransactionReviewTestRequestConfig
|
|
41
|
+
*/
|
|
42
|
+
webhookSecret?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof WaasTransactionReviewTestRequestConfig
|
|
47
|
+
*/
|
|
48
|
+
webhookTimeoutMs?: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof WaasTransactionReviewTestRequestConfig
|
|
53
|
+
*/
|
|
54
|
+
webhookUrl?: string;
|
|
55
|
+
}
|
|
56
|
+
export declare function WaasTransactionReviewTestRequestConfigFromJSON(json: any): WaasTransactionReviewTestRequestConfig;
|
|
57
|
+
export declare function WaasTransactionReviewTestRequestConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasTransactionReviewTestRequestConfig;
|
|
58
|
+
export declare function WaasTransactionReviewTestRequestConfigToJSON(value?: WaasTransactionReviewTestRequestConfig | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasTransactionReviewFailurePolicyFromJSON, WaasTransactionReviewFailurePolicyToJSON } from './WaasTransactionReviewFailurePolicy.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function WaasTransactionReviewTestRequestConfigFromJSON(json) {
|
|
6
|
+
return WaasTransactionReviewTestRequestConfigFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function WaasTransactionReviewTestRequestConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
|
14
|
+
'webhookFailurePolicy': !exists(json, 'webhookFailurePolicy') ? undefined : WaasTransactionReviewFailurePolicyFromJSON(json['webhookFailurePolicy']),
|
|
15
|
+
'webhookPublicKey': !exists(json, 'webhookPublicKey') ? undefined : json['webhookPublicKey'],
|
|
16
|
+
'webhookSecret': !exists(json, 'webhookSecret') ? undefined : json['webhookSecret'],
|
|
17
|
+
'webhookTimeoutMs': !exists(json, 'webhookTimeoutMs') ? undefined : json['webhookTimeoutMs'],
|
|
18
|
+
'webhookUrl': !exists(json, 'webhookUrl') ? undefined : json['webhookUrl'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function WaasTransactionReviewTestRequestConfigToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'enabled': value.enabled,
|
|
30
|
+
'webhookFailurePolicy': WaasTransactionReviewFailurePolicyToJSON(value.webhookFailurePolicy),
|
|
31
|
+
'webhookPublicKey': value.webhookPublicKey,
|
|
32
|
+
'webhookSecret': value.webhookSecret,
|
|
33
|
+
'webhookTimeoutMs': value.webhookTimeoutMs,
|
|
34
|
+
'webhookUrl': value.webhookUrl,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { WaasTransactionReviewTestRequestConfigFromJSON, WaasTransactionReviewTestRequestConfigFromJSONTyped, WaasTransactionReviewTestRequestConfigToJSON };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var WaasTransactionReviewTestResponseDecision = require('./WaasTransactionReviewTestResponseDecision.cjs');
|
|
6
|
+
var WaasTransactionReviewTestResponseRequest = require('./WaasTransactionReviewTestResponseRequest.cjs');
|
|
7
|
+
var WaasTransactionReviewTestResponseResponse = require('./WaasTransactionReviewTestResponseResponse.cjs');
|
|
8
|
+
var WaasTransactionReviewTestResponseResponseSignature = require('./WaasTransactionReviewTestResponseResponseSignature.cjs');
|
|
9
|
+
var WaasTransactionReviewTestScenario = require('./WaasTransactionReviewTestScenario.cjs');
|
|
10
|
+
|
|
11
|
+
/* tslint:disable */
|
|
12
|
+
function WaasTransactionReviewTestResponseFromJSON(json) {
|
|
13
|
+
return WaasTransactionReviewTestResponseFromJSONTyped(json);
|
|
14
|
+
}
|
|
15
|
+
function WaasTransactionReviewTestResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
16
|
+
if ((json === undefined) || (json === null)) {
|
|
17
|
+
return json;
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
'decision': WaasTransactionReviewTestResponseDecision.WaasTransactionReviewTestResponseDecisionFromJSON(json['decision']),
|
|
21
|
+
'failurePolicyApplied': json['failurePolicyApplied'],
|
|
22
|
+
'latencyMs': json['latencyMs'],
|
|
23
|
+
'request': WaasTransactionReviewTestResponseRequest.WaasTransactionReviewTestResponseRequestFromJSON(json['request']),
|
|
24
|
+
'response': WaasTransactionReviewTestResponseResponse.WaasTransactionReviewTestResponseResponseFromJSON(json['response']),
|
|
25
|
+
'responseSignature': WaasTransactionReviewTestResponseResponseSignature.WaasTransactionReviewTestResponseResponseSignatureFromJSON(json['responseSignature']),
|
|
26
|
+
'scenario': WaasTransactionReviewTestScenario.WaasTransactionReviewTestScenarioFromJSON(json['scenario']),
|
|
27
|
+
'transportError': json['transportError'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function WaasTransactionReviewTestResponseToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'decision': WaasTransactionReviewTestResponseDecision.WaasTransactionReviewTestResponseDecisionToJSON(value.decision),
|
|
39
|
+
'failurePolicyApplied': value.failurePolicyApplied,
|
|
40
|
+
'latencyMs': value.latencyMs,
|
|
41
|
+
'request': WaasTransactionReviewTestResponseRequest.WaasTransactionReviewTestResponseRequestToJSON(value.request),
|
|
42
|
+
'response': WaasTransactionReviewTestResponseResponse.WaasTransactionReviewTestResponseResponseToJSON(value.response),
|
|
43
|
+
'responseSignature': WaasTransactionReviewTestResponseResponseSignature.WaasTransactionReviewTestResponseResponseSignatureToJSON(value.responseSignature),
|
|
44
|
+
'scenario': WaasTransactionReviewTestScenario.WaasTransactionReviewTestScenarioToJSON(value.scenario),
|
|
45
|
+
'transportError': value.transportError,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
exports.WaasTransactionReviewTestResponseFromJSON = WaasTransactionReviewTestResponseFromJSON;
|
|
50
|
+
exports.WaasTransactionReviewTestResponseFromJSONTyped = WaasTransactionReviewTestResponseFromJSONTyped;
|
|
51
|
+
exports.WaasTransactionReviewTestResponseToJSON = WaasTransactionReviewTestResponseToJSON;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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 { WaasTransactionReviewTestResponseDecision } from './WaasTransactionReviewTestResponseDecision';
|
|
13
|
+
import { WaasTransactionReviewTestResponseRequest } from './WaasTransactionReviewTestResponseRequest';
|
|
14
|
+
import { WaasTransactionReviewTestResponseResponse } from './WaasTransactionReviewTestResponseResponse';
|
|
15
|
+
import { WaasTransactionReviewTestResponseResponseSignature } from './WaasTransactionReviewTestResponseResponseSignature';
|
|
16
|
+
import { WaasTransactionReviewTestScenario } from './WaasTransactionReviewTestScenario';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface WaasTransactionReviewTestResponse
|
|
21
|
+
*/
|
|
22
|
+
export interface WaasTransactionReviewTestResponse {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {WaasTransactionReviewTestResponseDecision}
|
|
26
|
+
* @memberof WaasTransactionReviewTestResponse
|
|
27
|
+
*/
|
|
28
|
+
decision: WaasTransactionReviewTestResponseDecision;
|
|
29
|
+
/**
|
|
30
|
+
* True if the decision came from the failure policy (timeout, transport error, bad status, signature problem) rather than from a parsed webhook response.
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof WaasTransactionReviewTestResponse
|
|
33
|
+
*/
|
|
34
|
+
failurePolicyApplied: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Wall-clock duration of the call in milliseconds.
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof WaasTransactionReviewTestResponse
|
|
39
|
+
*/
|
|
40
|
+
latencyMs: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {WaasTransactionReviewTestResponseRequest}
|
|
44
|
+
* @memberof WaasTransactionReviewTestResponse
|
|
45
|
+
*/
|
|
46
|
+
request: WaasTransactionReviewTestResponseRequest;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {WaasTransactionReviewTestResponseResponse}
|
|
50
|
+
* @memberof WaasTransactionReviewTestResponse
|
|
51
|
+
*/
|
|
52
|
+
response: WaasTransactionReviewTestResponseResponse;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {WaasTransactionReviewTestResponseResponseSignature}
|
|
56
|
+
* @memberof WaasTransactionReviewTestResponse
|
|
57
|
+
*/
|
|
58
|
+
responseSignature: WaasTransactionReviewTestResponseResponseSignature;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {WaasTransactionReviewTestScenario}
|
|
62
|
+
* @memberof WaasTransactionReviewTestResponse
|
|
63
|
+
*/
|
|
64
|
+
scenario: WaasTransactionReviewTestScenario;
|
|
65
|
+
/**
|
|
66
|
+
* Network or timeout error message, if any.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof WaasTransactionReviewTestResponse
|
|
69
|
+
*/
|
|
70
|
+
transportError: string | null;
|
|
71
|
+
}
|
|
72
|
+
export declare function WaasTransactionReviewTestResponseFromJSON(json: any): WaasTransactionReviewTestResponse;
|
|
73
|
+
export declare function WaasTransactionReviewTestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasTransactionReviewTestResponse;
|
|
74
|
+
export declare function WaasTransactionReviewTestResponseToJSON(value?: WaasTransactionReviewTestResponse | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { WaasTransactionReviewTestResponseDecisionFromJSON, WaasTransactionReviewTestResponseDecisionToJSON } from './WaasTransactionReviewTestResponseDecision.js';
|
|
2
|
+
import { WaasTransactionReviewTestResponseRequestFromJSON, WaasTransactionReviewTestResponseRequestToJSON } from './WaasTransactionReviewTestResponseRequest.js';
|
|
3
|
+
import { WaasTransactionReviewTestResponseResponseFromJSON, WaasTransactionReviewTestResponseResponseToJSON } from './WaasTransactionReviewTestResponseResponse.js';
|
|
4
|
+
import { WaasTransactionReviewTestResponseResponseSignatureFromJSON, WaasTransactionReviewTestResponseResponseSignatureToJSON } from './WaasTransactionReviewTestResponseResponseSignature.js';
|
|
5
|
+
import { WaasTransactionReviewTestScenarioFromJSON, WaasTransactionReviewTestScenarioToJSON } from './WaasTransactionReviewTestScenario.js';
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WaasTransactionReviewTestResponseFromJSON(json) {
|
|
9
|
+
return WaasTransactionReviewTestResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WaasTransactionReviewTestResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'decision': WaasTransactionReviewTestResponseDecisionFromJSON(json['decision']),
|
|
17
|
+
'failurePolicyApplied': json['failurePolicyApplied'],
|
|
18
|
+
'latencyMs': json['latencyMs'],
|
|
19
|
+
'request': WaasTransactionReviewTestResponseRequestFromJSON(json['request']),
|
|
20
|
+
'response': WaasTransactionReviewTestResponseResponseFromJSON(json['response']),
|
|
21
|
+
'responseSignature': WaasTransactionReviewTestResponseResponseSignatureFromJSON(json['responseSignature']),
|
|
22
|
+
'scenario': WaasTransactionReviewTestScenarioFromJSON(json['scenario']),
|
|
23
|
+
'transportError': json['transportError'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function WaasTransactionReviewTestResponseToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'decision': WaasTransactionReviewTestResponseDecisionToJSON(value.decision),
|
|
35
|
+
'failurePolicyApplied': value.failurePolicyApplied,
|
|
36
|
+
'latencyMs': value.latencyMs,
|
|
37
|
+
'request': WaasTransactionReviewTestResponseRequestToJSON(value.request),
|
|
38
|
+
'response': WaasTransactionReviewTestResponseResponseToJSON(value.response),
|
|
39
|
+
'responseSignature': WaasTransactionReviewTestResponseResponseSignatureToJSON(value.responseSignature),
|
|
40
|
+
'scenario': WaasTransactionReviewTestScenarioToJSON(value.scenario),
|
|
41
|
+
'transportError': value.transportError,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { WaasTransactionReviewTestResponseFromJSON, WaasTransactionReviewTestResponseFromJSONTyped, WaasTransactionReviewTestResponseToJSON };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WaasTransactionReviewTestResponseDecisionFromJSON(json) {
|
|
9
|
+
return WaasTransactionReviewTestResponseDecisionFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WaasTransactionReviewTestResponseDecisionFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'proceed': json['proceed'],
|
|
17
|
+
'reason': !runtime.exists(json, 'reason') ? undefined : json['reason'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function WaasTransactionReviewTestResponseDecisionToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'proceed': value.proceed,
|
|
29
|
+
'reason': value.reason,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.WaasTransactionReviewTestResponseDecisionFromJSON = WaasTransactionReviewTestResponseDecisionFromJSON;
|
|
34
|
+
exports.WaasTransactionReviewTestResponseDecisionFromJSONTyped = WaasTransactionReviewTestResponseDecisionFromJSONTyped;
|
|
35
|
+
exports.WaasTransactionReviewTestResponseDecisionToJSON = WaasTransactionReviewTestResponseDecisionToJSON;
|