@dynamic-labs/sdk-api 0.23.0 → 0.25.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -357,7 +357,7 @@ class EnvironmentsApi extends runtime.BaseAPI {
357
357
  return await response.value();
358
358
  }
359
359
  /**
360
- * Updates the settings for the specified environment.
360
+ * Updates the settings for the specified environment. When the organization has admin action approvals enabled and the update would weaken a step-up authentication protection, the change is not applied. It is filed as a `settings_change` admin action request and the endpoint returns `202` — the settings only take effect once another admin approves the request.
361
361
  * Update the environment settings
362
362
  */
363
363
  async updateProjectSettingsRaw(requestParameters, initOverrides) {
@@ -384,7 +384,7 @@ class EnvironmentsApi extends runtime.BaseAPI {
384
384
  return new runtime.JSONApiResponse(response, (jsonValue) => ProjectSettings.ProjectSettingsFromJSON(jsonValue));
385
385
  }
386
386
  /**
387
- * Updates the settings for the specified environment.
387
+ * Updates the settings for the specified environment. When the organization has admin action approvals enabled and the update would weaken a step-up authentication protection, the change is not applied. It is filed as a `settings_change` admin action request and the endpoint returns `202` — the settings only take effect once another admin approves the request.
388
388
  * Update the environment settings
389
389
  */
390
390
  async updateProjectSettings(requestParameters, initOverrides) {
@@ -90,12 +90,12 @@ export declare class EnvironmentsApi extends runtime.BaseAPI {
90
90
  */
91
91
  getVisitorsCountByEnvironmentId(requestParameters: GetVisitorsCountByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<EnvironmentVisitorsResponse>;
92
92
  /**
93
- * Updates the settings for the specified environment.
93
+ * Updates the settings for the specified environment. When the organization has admin action approvals enabled and the update would weaken a step-up authentication protection, the change is not applied. It is filed as a `settings_change` admin action request and the endpoint returns `202` — the settings only take effect once another admin approves the request.
94
94
  * Update the environment settings
95
95
  */
96
96
  updateProjectSettingsRaw(requestParameters: UpdateProjectSettingsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ProjectSettings>>;
97
97
  /**
98
- * Updates the settings for the specified environment.
98
+ * Updates the settings for the specified environment. When the organization has admin action approvals enabled and the update would weaken a step-up authentication protection, the change is not applied. It is filed as a `settings_change` admin action request and the endpoint returns `202` — the settings only take effect once another admin approves the request.
99
99
  * Update the environment settings
100
100
  */
101
101
  updateProjectSettings(requestParameters: UpdateProjectSettingsRequest, initOverrides?: RequestInit): Promise<ProjectSettings>;
@@ -353,7 +353,7 @@ class EnvironmentsApi extends BaseAPI {
353
353
  return await response.value();
354
354
  }
355
355
  /**
356
- * Updates the settings for the specified environment.
356
+ * Updates the settings for the specified environment. When the organization has admin action approvals enabled and the update would weaken a step-up authentication protection, the change is not applied. It is filed as a `settings_change` admin action request and the endpoint returns `202` — the settings only take effect once another admin approves the request.
357
357
  * Update the environment settings
358
358
  */
359
359
  async updateProjectSettingsRaw(requestParameters, initOverrides) {
@@ -380,7 +380,7 @@ class EnvironmentsApi extends BaseAPI {
380
380
  return new JSONApiResponse(response, (jsonValue) => ProjectSettingsFromJSON(jsonValue));
381
381
  }
382
382
  /**
383
- * Updates the settings for the specified environment.
383
+ * Updates the settings for the specified environment. When the organization has admin action approvals enabled and the update would weaken a step-up authentication protection, the change is not applied. It is filed as a `settings_change` admin action request and the endpoint returns `202` — the settings only take effect once another admin approves the request.
384
384
  * Update the environment settings
385
385
  */
386
386
  async updateProjectSettings(requestParameters, initOverrides) {
package/src/index.cjs CHANGED
@@ -376,6 +376,7 @@ var FlowSettlementStateEnum = require('./models/FlowSettlementStateEnum.cjs');
376
376
  var FlowSourceResponse = require('./models/FlowSourceResponse.cjs');
377
377
  var FlowSourceTypeEnum = require('./models/FlowSourceTypeEnum.cjs');
378
378
  var FlowTokenInfo = require('./models/FlowTokenInfo.cjs');
379
+ var FlowUIConfig = require('./models/FlowUIConfig.cjs');
379
380
  var Forbidden = require('./models/Forbidden.cjs');
380
381
  var ForbiddenErrorPayload = require('./models/ForbiddenErrorPayload.cjs');
381
382
  var ForbiddenWithErrorAndPayload = require('./models/ForbiddenWithErrorAndPayload.cjs');
@@ -2283,6 +2284,9 @@ exports.FlowSourceTypeEnumToJSON = FlowSourceTypeEnum.FlowSourceTypeEnumToJSON;
2283
2284
  exports.FlowTokenInfoFromJSON = FlowTokenInfo.FlowTokenInfoFromJSON;
2284
2285
  exports.FlowTokenInfoFromJSONTyped = FlowTokenInfo.FlowTokenInfoFromJSONTyped;
2285
2286
  exports.FlowTokenInfoToJSON = FlowTokenInfo.FlowTokenInfoToJSON;
2287
+ exports.FlowUIConfigFromJSON = FlowUIConfig.FlowUIConfigFromJSON;
2288
+ exports.FlowUIConfigFromJSONTyped = FlowUIConfig.FlowUIConfigFromJSONTyped;
2289
+ exports.FlowUIConfigToJSON = FlowUIConfig.FlowUIConfigToJSON;
2286
2290
  exports.ForbiddenFromJSON = Forbidden.ForbiddenFromJSON;
2287
2291
  exports.ForbiddenFromJSONTyped = Forbidden.ForbiddenFromJSONTyped;
2288
2292
  exports.ForbiddenToJSON = Forbidden.ForbiddenToJSON;
package/src/index.js CHANGED
@@ -372,6 +372,7 @@ export { FlowSettlementStateEnum, FlowSettlementStateEnumFromJSON, FlowSettlemen
372
372
  export { FlowSourceResponseFromJSON, FlowSourceResponseFromJSONTyped, FlowSourceResponseToJSON } from './models/FlowSourceResponse.js';
373
373
  export { FlowSourceTypeEnum, FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumFromJSONTyped, FlowSourceTypeEnumToJSON } from './models/FlowSourceTypeEnum.js';
374
374
  export { FlowTokenInfoFromJSON, FlowTokenInfoFromJSONTyped, FlowTokenInfoToJSON } from './models/FlowTokenInfo.js';
375
+ export { FlowUIConfigFromJSON, FlowUIConfigFromJSONTyped, FlowUIConfigToJSON } from './models/FlowUIConfig.js';
375
376
  export { ForbiddenFromJSON, ForbiddenFromJSONTyped, ForbiddenToJSON } from './models/Forbidden.js';
376
377
  export { ForbiddenErrorPayloadFromJSON, ForbiddenErrorPayloadFromJSONTyped, ForbiddenErrorPayloadToJSON } from './models/ForbiddenErrorPayload.js';
377
378
  export { ForbiddenWithErrorAndPayloadFromJSON, ForbiddenWithErrorAndPayloadFromJSONTyped, ForbiddenWithErrorAndPayloadToJSON } from './models/ForbiddenWithErrorAndPayload.js';
@@ -14,6 +14,7 @@ var FlowRiskStateEnum = require('./FlowRiskStateEnum.cjs');
14
14
  var FlowSettlementData = require('./FlowSettlementData.cjs');
15
15
  var FlowSettlementStateEnum = require('./FlowSettlementStateEnum.cjs');
16
16
  var FlowSourceTypeEnum = require('./FlowSourceTypeEnum.cjs');
17
+ var FlowUIConfig = require('./FlowUIConfig.cjs');
17
18
  var SettlementConfigInput = require('./SettlementConfigInput.cjs');
18
19
 
19
20
  /* tslint:disable */
@@ -60,7 +61,7 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
60
61
  'exchangeSource': !runtime.exists(json, 'exchangeSource') ? undefined : FlowExchangeSource.FlowExchangeSourceFromJSON(json['exchangeSource']),
61
62
  'pegStablecoins': !runtime.exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
62
63
  'disableSwaps': !runtime.exists(json, 'disableSwaps') ? undefined : json['disableSwaps'],
63
- 'returnUrl': !runtime.exists(json, 'returnUrl') ? undefined : json['returnUrl'],
64
+ 'uiConfig': !runtime.exists(json, 'uiConfig') ? undefined : FlowUIConfig.FlowUIConfigFromJSON(json['uiConfig']),
64
65
  'settlementConfig': !runtime.exists(json, 'settlementConfig') ? undefined : SettlementConfigInput.SettlementConfigInputFromJSON(json['settlementConfig']),
65
66
  'destinationConfig': !runtime.exists(json, 'destinationConfig') ? undefined : DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
66
67
  };
@@ -108,7 +109,7 @@ function FlowToJSON(value) {
108
109
  'exchangeSource': FlowExchangeSource.FlowExchangeSourceToJSON(value.exchangeSource),
109
110
  'pegStablecoins': value.pegStablecoins,
110
111
  'disableSwaps': value.disableSwaps,
111
- 'returnUrl': value.returnUrl,
112
+ 'uiConfig': FlowUIConfig.FlowUIConfigToJSON(value.uiConfig),
112
113
  'settlementConfig': SettlementConfigInput.SettlementConfigInputToJSON(value.settlementConfig),
113
114
  'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
114
115
  };
@@ -20,6 +20,7 @@ import { FlowRiskStateEnum } from './FlowRiskStateEnum';
20
20
  import { FlowSettlementData } from './FlowSettlementData';
21
21
  import { FlowSettlementStateEnum } from './FlowSettlementStateEnum';
22
22
  import { FlowSourceTypeEnum } from './FlowSourceTypeEnum';
23
+ import { FlowUIConfig } from './FlowUIConfig';
23
24
  import { SettlementConfigInput } from './SettlementConfigInput';
24
25
  /**
25
26
  * A single payment, deposit, or withdraw flow. Collapses the former Checkout and CheckoutTransaction into one resource.
@@ -238,11 +239,11 @@ export interface Flow {
238
239
  */
239
240
  disableSwaps?: boolean;
240
241
  /**
241
- * Payer app URL to redirect to once the flow reaches a specific state. Redirected to as `returnUrl?status=success|failure&flowId=...`.
242
- * @type {string}
242
+ *
243
+ * @type {FlowUIConfig}
243
244
  * @memberof Flow
244
245
  */
245
- returnUrl?: string;
246
+ uiConfig?: FlowUIConfig;
246
247
  /**
247
248
  *
248
249
  * @type {SettlementConfigInput}
@@ -10,6 +10,7 @@ import { FlowRiskStateEnumFromJSON, FlowRiskStateEnumToJSON } from './FlowRiskSt
10
10
  import { FlowSettlementDataFromJSON, FlowSettlementDataToJSON } from './FlowSettlementData.js';
11
11
  import { FlowSettlementStateEnumFromJSON, FlowSettlementStateEnumToJSON } from './FlowSettlementStateEnum.js';
12
12
  import { FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumToJSON } from './FlowSourceTypeEnum.js';
13
+ import { FlowUIConfigFromJSON, FlowUIConfigToJSON } from './FlowUIConfig.js';
13
14
  import { SettlementConfigInputFromJSON, SettlementConfigInputToJSON } from './SettlementConfigInput.js';
14
15
 
15
16
  /* tslint:disable */
@@ -56,7 +57,7 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
56
57
  'exchangeSource': !exists(json, 'exchangeSource') ? undefined : FlowExchangeSourceFromJSON(json['exchangeSource']),
57
58
  'pegStablecoins': !exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
58
59
  'disableSwaps': !exists(json, 'disableSwaps') ? undefined : json['disableSwaps'],
59
- 'returnUrl': !exists(json, 'returnUrl') ? undefined : json['returnUrl'],
60
+ 'uiConfig': !exists(json, 'uiConfig') ? undefined : FlowUIConfigFromJSON(json['uiConfig']),
60
61
  'settlementConfig': !exists(json, 'settlementConfig') ? undefined : SettlementConfigInputFromJSON(json['settlementConfig']),
61
62
  'destinationConfig': !exists(json, 'destinationConfig') ? undefined : DestinationConfigInputFromJSON(json['destinationConfig']),
62
63
  };
@@ -104,7 +105,7 @@ function FlowToJSON(value) {
104
105
  'exchangeSource': FlowExchangeSourceToJSON(value.exchangeSource),
105
106
  'pegStablecoins': value.pegStablecoins,
106
107
  'disableSwaps': value.disableSwaps,
107
- 'returnUrl': value.returnUrl,
108
+ 'uiConfig': FlowUIConfigToJSON(value.uiConfig),
108
109
  'settlementConfig': SettlementConfigInputToJSON(value.settlementConfig),
109
110
  'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
110
111
  };
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var runtime = require('../runtime.cjs');
6
6
  var DestinationConfigInput = require('./DestinationConfigInput.cjs');
7
7
  var FlowFeeConfig = require('./FlowFeeConfig.cjs');
8
+ var FlowUIConfig = require('./FlowUIConfig.cjs');
8
9
  var SettlementConfigInput = require('./SettlementConfigInput.cjs');
9
10
 
10
11
  /* tslint:disable */
@@ -25,7 +26,7 @@ function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
25
26
  'expiresIn': !runtime.exists(json, 'expiresIn') ? undefined : json['expiresIn'],
26
27
  'pegStablecoins': !runtime.exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
27
28
  'disableSwaps': !runtime.exists(json, 'disableSwaps') ? undefined : json['disableSwaps'],
28
- 'returnUrl': !runtime.exists(json, 'returnUrl') ? undefined : json['returnUrl'],
29
+ 'uiConfig': !runtime.exists(json, 'uiConfig') ? undefined : FlowUIConfig.FlowUIConfigFromJSON(json['uiConfig']),
29
30
  };
30
31
  }
31
32
  function FlowCreateRequestToJSON(value) {
@@ -45,7 +46,7 @@ function FlowCreateRequestToJSON(value) {
45
46
  'expiresIn': value.expiresIn,
46
47
  'pegStablecoins': value.pegStablecoins,
47
48
  'disableSwaps': value.disableSwaps,
48
- 'returnUrl': value.returnUrl,
49
+ 'uiConfig': FlowUIConfig.FlowUIConfigToJSON(value.uiConfig),
49
50
  };
50
51
  }
51
52
 
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import { DestinationConfigInput } from './DestinationConfigInput';
13
13
  import { FlowFeeConfig } from './FlowFeeConfig';
14
+ import { FlowUIConfig } from './FlowUIConfig';
14
15
  import { SettlementConfigInput } from './SettlementConfigInput';
15
16
  /**
16
17
  * Create-time payload for a flow. amount, currency, settlementConfig and destinationConfig are written once here (by a trusted API-key caller) and are accepted by no later endpoint. mode is supplied in the URL path.
@@ -73,11 +74,11 @@ export interface FlowCreateRequest {
73
74
  */
74
75
  disableSwaps?: boolean;
75
76
  /**
76
- * Payer app URL to redirect to once the flow reaches a specific state. Origin must be a registered CORS origin for the environment. Redirected to as `returnUrl?status=success|failure&flowId=...`.
77
- * @type {string}
77
+ *
78
+ * @type {FlowUIConfig}
78
79
  * @memberof FlowCreateRequest
79
80
  */
80
- returnUrl?: string;
81
+ uiConfig?: FlowUIConfig;
81
82
  }
82
83
  export declare function FlowCreateRequestFromJSON(json: any): FlowCreateRequest;
83
84
  export declare function FlowCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowCreateRequest;
@@ -1,6 +1,7 @@
1
1
  import { exists } from '../runtime.js';
2
2
  import { DestinationConfigInputFromJSON, DestinationConfigInputToJSON } from './DestinationConfigInput.js';
3
3
  import { FlowFeeConfigFromJSON, FlowFeeConfigToJSON } from './FlowFeeConfig.js';
4
+ import { FlowUIConfigFromJSON, FlowUIConfigToJSON } from './FlowUIConfig.js';
4
5
  import { SettlementConfigInputFromJSON, SettlementConfigInputToJSON } from './SettlementConfigInput.js';
5
6
 
6
7
  /* tslint:disable */
@@ -21,7 +22,7 @@ function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
21
22
  'expiresIn': !exists(json, 'expiresIn') ? undefined : json['expiresIn'],
22
23
  'pegStablecoins': !exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
23
24
  'disableSwaps': !exists(json, 'disableSwaps') ? undefined : json['disableSwaps'],
24
- 'returnUrl': !exists(json, 'returnUrl') ? undefined : json['returnUrl'],
25
+ 'uiConfig': !exists(json, 'uiConfig') ? undefined : FlowUIConfigFromJSON(json['uiConfig']),
25
26
  };
26
27
  }
27
28
  function FlowCreateRequestToJSON(value) {
@@ -41,7 +42,7 @@ function FlowCreateRequestToJSON(value) {
41
42
  'expiresIn': value.expiresIn,
42
43
  'pegStablecoins': value.pegStablecoins,
43
44
  'disableSwaps': value.disableSwaps,
44
- 'returnUrl': value.returnUrl,
45
+ 'uiConfig': FlowUIConfigToJSON(value.uiConfig),
45
46
  };
46
47
  }
47
48
 
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var runtime = require('../runtime.cjs');
6
6
  var DestinationConfigInput = require('./DestinationConfigInput.cjs');
7
7
  var FlowFeeConfig = require('./FlowFeeConfig.cjs');
8
+ var FlowUIConfig = require('./FlowUIConfig.cjs');
8
9
  var SettlementConfigInput = require('./SettlementConfigInput.cjs');
9
10
 
10
11
  /* tslint:disable */
@@ -25,7 +26,7 @@ function FlowPaymentLinkCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
25
26
  'expiresIn': !runtime.exists(json, 'expiresIn') ? undefined : json['expiresIn'],
26
27
  'pegStablecoins': !runtime.exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
27
28
  'disableSwaps': !runtime.exists(json, 'disableSwaps') ? undefined : json['disableSwaps'],
28
- 'returnUrl': !runtime.exists(json, 'returnUrl') ? undefined : json['returnUrl'],
29
+ 'uiConfig': !runtime.exists(json, 'uiConfig') ? undefined : FlowUIConfig.FlowUIConfigFromJSON(json['uiConfig']),
29
30
  'baseUrl': json['baseUrl'],
30
31
  };
31
32
  }
@@ -46,7 +47,7 @@ function FlowPaymentLinkCreateRequestToJSON(value) {
46
47
  'expiresIn': value.expiresIn,
47
48
  'pegStablecoins': value.pegStablecoins,
48
49
  'disableSwaps': value.disableSwaps,
49
- 'returnUrl': value.returnUrl,
50
+ 'uiConfig': FlowUIConfig.FlowUIConfigToJSON(value.uiConfig),
50
51
  'baseUrl': value.baseUrl,
51
52
  };
52
53
  }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import { DestinationConfigInput } from './DestinationConfigInput';
13
13
  import { FlowFeeConfig } from './FlowFeeConfig';
14
+ import { FlowUIConfig } from './FlowUIConfig';
14
15
  import { SettlementConfigInput } from './SettlementConfigInput';
15
16
  /**
16
17
  *
@@ -73,11 +74,11 @@ export interface FlowPaymentLinkCreateRequest {
73
74
  */
74
75
  disableSwaps?: boolean;
75
76
  /**
76
- * Payer app URL to redirect to once the flow reaches a specific state. Origin must be a registered CORS origin for the environment. Redirected to as `returnUrl?status=success|failure&flowId=...`.
77
- * @type {string}
77
+ *
78
+ * @type {FlowUIConfig}
78
79
  * @memberof FlowPaymentLinkCreateRequest
79
80
  */
80
- returnUrl?: string;
81
+ uiConfig?: FlowUIConfig;
81
82
  /**
82
83
  * Merchant-hosted payer app URL
83
84
  * @type {string}
@@ -1,6 +1,7 @@
1
1
  import { exists } from '../runtime.js';
2
2
  import { DestinationConfigInputFromJSON, DestinationConfigInputToJSON } from './DestinationConfigInput.js';
3
3
  import { FlowFeeConfigFromJSON, FlowFeeConfigToJSON } from './FlowFeeConfig.js';
4
+ import { FlowUIConfigFromJSON, FlowUIConfigToJSON } from './FlowUIConfig.js';
4
5
  import { SettlementConfigInputFromJSON, SettlementConfigInputToJSON } from './SettlementConfigInput.js';
5
6
 
6
7
  /* tslint:disable */
@@ -21,7 +22,7 @@ function FlowPaymentLinkCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
21
22
  'expiresIn': !exists(json, 'expiresIn') ? undefined : json['expiresIn'],
22
23
  'pegStablecoins': !exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
23
24
  'disableSwaps': !exists(json, 'disableSwaps') ? undefined : json['disableSwaps'],
24
- 'returnUrl': !exists(json, 'returnUrl') ? undefined : json['returnUrl'],
25
+ 'uiConfig': !exists(json, 'uiConfig') ? undefined : FlowUIConfigFromJSON(json['uiConfig']),
25
26
  'baseUrl': json['baseUrl'],
26
27
  };
27
28
  }
@@ -42,7 +43,7 @@ function FlowPaymentLinkCreateRequestToJSON(value) {
42
43
  'expiresIn': value.expiresIn,
43
44
  'pegStablecoins': value.pegStablecoins,
44
45
  'disableSwaps': value.disableSwaps,
45
- 'returnUrl': value.returnUrl,
46
+ 'uiConfig': FlowUIConfigToJSON(value.uiConfig),
46
47
  'baseUrl': value.baseUrl,
47
48
  };
48
49
  }
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function FlowUIConfigFromJSON(json) {
9
+ return FlowUIConfigFromJSONTyped(json);
10
+ }
11
+ function FlowUIConfigFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'returnUrl': !runtime.exists(json, 'returnUrl') ? undefined : json['returnUrl'],
17
+ };
18
+ }
19
+ function FlowUIConfigToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'returnUrl': value.returnUrl,
28
+ };
29
+ }
30
+
31
+ exports.FlowUIConfigFromJSON = FlowUIConfigFromJSON;
32
+ exports.FlowUIConfigFromJSONTyped = FlowUIConfigFromJSONTyped;
33
+ exports.FlowUIConfigToJSON = FlowUIConfigToJSON;
@@ -0,0 +1,27 @@
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
+ * Payer-facing UI config for a flow, set once at creation. Not part of the execution/settlement record.
14
+ * @export
15
+ * @interface FlowUIConfig
16
+ */
17
+ export interface FlowUIConfig {
18
+ /**
19
+ * Payer app URL to redirect to once the flow reaches a specific state. Origin must be a registered CORS origin for the environment. Redirected to as `returnUrl?status=success|failure&flowId=...`.
20
+ * @type {string}
21
+ * @memberof FlowUIConfig
22
+ */
23
+ returnUrl?: string;
24
+ }
25
+ export declare function FlowUIConfigFromJSON(json: any): FlowUIConfig;
26
+ export declare function FlowUIConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowUIConfig;
27
+ export declare function FlowUIConfigToJSON(value?: FlowUIConfig | null): any;
@@ -0,0 +1,27 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowUIConfigFromJSON(json) {
5
+ return FlowUIConfigFromJSONTyped(json);
6
+ }
7
+ function FlowUIConfigFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'returnUrl': !exists(json, 'returnUrl') ? undefined : json['returnUrl'],
13
+ };
14
+ }
15
+ function FlowUIConfigToJSON(value) {
16
+ if (value === undefined) {
17
+ return undefined;
18
+ }
19
+ if (value === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ 'returnUrl': value.returnUrl,
24
+ };
25
+ }
26
+
27
+ export { FlowUIConfigFromJSON, FlowUIConfigFromJSONTyped, FlowUIConfigToJSON };
@@ -320,6 +320,7 @@ export * from './FlowSettlementStateEnum';
320
320
  export * from './FlowSourceResponse';
321
321
  export * from './FlowSourceTypeEnum';
322
322
  export * from './FlowTokenInfo';
323
+ export * from './FlowUIConfig';
323
324
  export * from './Forbidden';
324
325
  export * from './ForbiddenErrorPayload';
325
326
  export * from './ForbiddenWithErrorAndPayload';