@dynamic-labs/sdk-api 0.0.1070 → 0.0.1072
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 +68 -0
- package/src/index.js +14 -0
- package/src/models/FlowFeeBalance.cjs +41 -0
- package/src/models/FlowFeeBalance.d.ts +51 -0
- package/src/models/FlowFeeBalance.js +35 -0
- package/src/models/FlowFeeBalancesResponse.cjs +35 -0
- package/src/models/FlowFeeBalancesResponse.d.ts +34 -0
- package/src/models/FlowFeeBalancesResponse.js +29 -0
- package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +2 -1
- package/src/models/UnprocessableEntityErrorCode.js +1 -0
- 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/index.d.ts +14 -0
|
@@ -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 WaasTransactionReviewConfigRequestFromJSON(json) {
|
|
10
|
+
return WaasTransactionReviewConfigRequestFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function WaasTransactionReviewConfigRequestFromJSONTyped(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': json['webhookUrl'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function WaasTransactionReviewConfigRequestToJSON(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.WaasTransactionReviewConfigRequestFromJSON = WaasTransactionReviewConfigRequestFromJSON;
|
|
43
|
+
exports.WaasTransactionReviewConfigRequestFromJSONTyped = WaasTransactionReviewConfigRequestFromJSONTyped;
|
|
44
|
+
exports.WaasTransactionReviewConfigRequestToJSON = WaasTransactionReviewConfigRequestToJSON;
|
|
@@ -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
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WaasTransactionReviewConfigRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface WaasTransactionReviewConfigRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Whether transaction review is active. Defaults to true.
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof WaasTransactionReviewConfigRequest
|
|
23
|
+
*/
|
|
24
|
+
enabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {WaasTransactionReviewFailurePolicy}
|
|
28
|
+
* @memberof WaasTransactionReviewConfigRequest
|
|
29
|
+
*/
|
|
30
|
+
webhookFailurePolicy?: WaasTransactionReviewFailurePolicy;
|
|
31
|
+
/**
|
|
32
|
+
* Optional Ed25519 public key (PEM format) used to verify the response signature from the webhook. When configured, the webhook must include an x-dynamic-response-signature header containing a base64-encoded Ed25519 signature over the raw response body. Pass null to remove.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof WaasTransactionReviewConfigRequest
|
|
35
|
+
*/
|
|
36
|
+
webhookPublicKey?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Optional secret used to sign webhook requests via HMAC-SHA256. Sent as the x-dynamic-signature header. Pass null to remove.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof WaasTransactionReviewConfigRequest
|
|
41
|
+
*/
|
|
42
|
+
webhookSecret?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Milliseconds to wait for a webhook response. Defaults to 5000.
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof WaasTransactionReviewConfigRequest
|
|
47
|
+
*/
|
|
48
|
+
webhookTimeoutMs?: number;
|
|
49
|
+
/**
|
|
50
|
+
* URL that receives transaction review requests before signing.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof WaasTransactionReviewConfigRequest
|
|
53
|
+
*/
|
|
54
|
+
webhookUrl: string;
|
|
55
|
+
}
|
|
56
|
+
export declare function WaasTransactionReviewConfigRequestFromJSON(json: any): WaasTransactionReviewConfigRequest;
|
|
57
|
+
export declare function WaasTransactionReviewConfigRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasTransactionReviewConfigRequest;
|
|
58
|
+
export declare function WaasTransactionReviewConfigRequestToJSON(value?: WaasTransactionReviewConfigRequest | 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 WaasTransactionReviewConfigRequestFromJSON(json) {
|
|
6
|
+
return WaasTransactionReviewConfigRequestFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function WaasTransactionReviewConfigRequestFromJSONTyped(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': json['webhookUrl'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function WaasTransactionReviewConfigRequestToJSON(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 { WaasTransactionReviewConfigRequestFromJSON, WaasTransactionReviewConfigRequestFromJSONTyped, WaasTransactionReviewConfigRequestToJSON };
|
|
@@ -0,0 +1,46 @@
|
|
|
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 WaasTransactionReviewConfigResponseFromJSON(json) {
|
|
10
|
+
return WaasTransactionReviewConfigResponseFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function WaasTransactionReviewConfigResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'enabled': json['enabled'],
|
|
18
|
+
'environmentId': json['environmentId'],
|
|
19
|
+
'webhookFailurePolicy': WaasTransactionReviewFailurePolicy.WaasTransactionReviewFailurePolicyFromJSON(json['webhookFailurePolicy']),
|
|
20
|
+
'webhookPublicKey': !runtime.exists(json, 'webhookPublicKey') ? undefined : json['webhookPublicKey'],
|
|
21
|
+
'webhookSecretSet': json['webhookSecretSet'],
|
|
22
|
+
'webhookTimeoutMs': json['webhookTimeoutMs'],
|
|
23
|
+
'webhookUrl': json['webhookUrl'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function WaasTransactionReviewConfigResponseToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'enabled': value.enabled,
|
|
35
|
+
'environmentId': value.environmentId,
|
|
36
|
+
'webhookFailurePolicy': WaasTransactionReviewFailurePolicy.WaasTransactionReviewFailurePolicyToJSON(value.webhookFailurePolicy),
|
|
37
|
+
'webhookPublicKey': value.webhookPublicKey,
|
|
38
|
+
'webhookSecretSet': value.webhookSecretSet,
|
|
39
|
+
'webhookTimeoutMs': value.webhookTimeoutMs,
|
|
40
|
+
'webhookUrl': value.webhookUrl,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
exports.WaasTransactionReviewConfigResponseFromJSON = WaasTransactionReviewConfigResponseFromJSON;
|
|
45
|
+
exports.WaasTransactionReviewConfigResponseFromJSONTyped = WaasTransactionReviewConfigResponseFromJSONTyped;
|
|
46
|
+
exports.WaasTransactionReviewConfigResponseToJSON = WaasTransactionReviewConfigResponseToJSON;
|
|
@@ -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 };
|