@dynamic-labs/sdk-api 0.110.0 → 0.111.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.110.0",
3
+ "version": "0.111.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -169,6 +169,7 @@ var Flow = require('../models/Flow.cjs');
169
169
  require('../models/FlowAnalyticsSummaryResponse.cjs');
170
170
  var FlowAttachSourceRequest = require('../models/FlowAttachSourceRequest.cjs');
171
171
  require('../models/FlowCurrencyEnum.cjs');
172
+ require('../models/FlowSourceTypeEnum.cjs');
172
173
  require('../models/FlowExecutionStateEnum.cjs');
173
174
  require('../models/FlowListItem.cjs');
174
175
  require('../models/FlowModeEnum.cjs');
@@ -178,7 +179,6 @@ var FlowRecordBroadcastRequest = require('../models/FlowRecordBroadcastRequest.c
178
179
  require('../models/FlowRiskStateEnum.cjs');
179
180
  require('../models/FlowSettlementStateEnum.cjs');
180
181
  var FlowSourceResponse = require('../models/FlowSourceResponse.cjs');
181
- require('../models/FlowSourceTypeEnum.cjs');
182
182
  require('../models/OnrampProviders.cjs');
183
183
  require('../models/GateRuleType.cjs');
184
184
  var GeneratedTokenResponse = require('../models/GeneratedTokenResponse.cjs');
@@ -165,6 +165,7 @@ import { FlowFromJSON } from '../models/Flow.js';
165
165
  import '../models/FlowAnalyticsSummaryResponse.js';
166
166
  import { FlowAttachSourceRequestToJSON } from '../models/FlowAttachSourceRequest.js';
167
167
  import '../models/FlowCurrencyEnum.js';
168
+ import '../models/FlowSourceTypeEnum.js';
168
169
  import '../models/FlowExecutionStateEnum.js';
169
170
  import '../models/FlowListItem.js';
170
171
  import '../models/FlowModeEnum.js';
@@ -174,7 +175,6 @@ import { FlowRecordBroadcastRequestToJSON } from '../models/FlowRecordBroadcastR
174
175
  import '../models/FlowRiskStateEnum.js';
175
176
  import '../models/FlowSettlementStateEnum.js';
176
177
  import { FlowSourceResponseFromJSON } from '../models/FlowSourceResponse.js';
177
- import '../models/FlowSourceTypeEnum.js';
178
178
  import '../models/OnrampProviders.js';
179
179
  import '../models/GateRuleType.js';
180
180
  import { GeneratedTokenResponseFromJSON } from '../models/GeneratedTokenResponse.js';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var FlowSourceTypeEnum = require('./FlowSourceTypeEnum.cjs');
6
7
 
7
8
  /* tslint:disable */
8
9
  function FlowUIConfigFromJSON(json) {
@@ -18,6 +19,7 @@ function FlowUIConfigFromJSONTyped(json, ignoreDiscriminator) {
18
19
  'merchantName': !runtime.exists(json, 'merchantName') ? undefined : json['merchantName'],
19
20
  'merchantLogoUrl': !runtime.exists(json, 'merchantLogoUrl') ? undefined : json['merchantLogoUrl'],
20
21
  'externalPaymentId': !runtime.exists(json, 'externalPaymentId') ? undefined : json['externalPaymentId'],
22
+ 'enabledPaymentMethods': !runtime.exists(json, 'enabledPaymentMethods') ? undefined : (json['enabledPaymentMethods'].map(FlowSourceTypeEnum.FlowSourceTypeEnumFromJSON)),
21
23
  };
22
24
  }
23
25
  function FlowUIConfigToJSON(value) {
@@ -33,6 +35,7 @@ function FlowUIConfigToJSON(value) {
33
35
  'merchantName': value.merchantName,
34
36
  'merchantLogoUrl': value.merchantLogoUrl,
35
37
  'externalPaymentId': value.externalPaymentId,
38
+ 'enabledPaymentMethods': value.enabledPaymentMethods === undefined ? undefined : (value.enabledPaymentMethods.map(FlowSourceTypeEnum.FlowSourceTypeEnumToJSON)),
36
39
  };
37
40
  }
38
41
 
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { FlowSourceTypeEnum } from './FlowSourceTypeEnum';
12
13
  /**
13
14
  * Payer-facing UI config for a flow, set once at creation. Not part of the execution/settlement record.
14
15
  * @export
@@ -45,6 +46,12 @@ export interface FlowUIConfig {
45
46
  * @memberof FlowUIConfig
46
47
  */
47
48
  externalPaymentId?: string;
49
+ /**
50
+ * Source types the payer UI should offer. Omit to offer every method. Display-only — not enforced when a source is attached. Duplicates are ignored.
51
+ * @type {Array<FlowSourceTypeEnum>}
52
+ * @memberof FlowUIConfig
53
+ */
54
+ enabledPaymentMethods?: Array<FlowSourceTypeEnum>;
48
55
  }
49
56
  export declare function FlowUIConfigFromJSON(json: any): FlowUIConfig;
50
57
  export declare function FlowUIConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowUIConfig;
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumToJSON } from './FlowSourceTypeEnum.js';
2
3
 
3
4
  /* tslint:disable */
4
5
  function FlowUIConfigFromJSON(json) {
@@ -14,6 +15,7 @@ function FlowUIConfigFromJSONTyped(json, ignoreDiscriminator) {
14
15
  'merchantName': !exists(json, 'merchantName') ? undefined : json['merchantName'],
15
16
  'merchantLogoUrl': !exists(json, 'merchantLogoUrl') ? undefined : json['merchantLogoUrl'],
16
17
  'externalPaymentId': !exists(json, 'externalPaymentId') ? undefined : json['externalPaymentId'],
18
+ 'enabledPaymentMethods': !exists(json, 'enabledPaymentMethods') ? undefined : (json['enabledPaymentMethods'].map(FlowSourceTypeEnumFromJSON)),
17
19
  };
18
20
  }
19
21
  function FlowUIConfigToJSON(value) {
@@ -29,6 +31,7 @@ function FlowUIConfigToJSON(value) {
29
31
  'merchantName': value.merchantName,
30
32
  'merchantLogoUrl': value.merchantLogoUrl,
31
33
  'externalPaymentId': value.externalPaymentId,
34
+ 'enabledPaymentMethods': value.enabledPaymentMethods === undefined ? undefined : (value.enabledPaymentMethods.map(FlowSourceTypeEnumToJSON)),
32
35
  };
33
36
  }
34
37