@randock/nameshift-api-client 0.0.211 → 0.0.213

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.
@@ -187,6 +187,7 @@ src/models/SellerSubscriptionListItemDtoDomainInformation.ts
187
187
  src/models/SeoMetricsDto.ts
188
188
  src/models/SetDomainTransferConfirmationInput.ts
189
189
  src/models/SetNewPasswordInput.ts
190
+ src/models/SetPayoutProviderInput.ts
190
191
  src/models/StoreBuyerLocaleInput.ts
191
192
  src/models/StoreUserLocaleInput.ts
192
193
  src/models/SubscriptionBillingPeriodicityDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.211
1
+ ## @randock/nameshift-api-client@0.0.213
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.211 --save
39
+ npm install @randock/nameshift-api-client@0.0.213 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 9d7d771b5fbac612e4b509358213c72b602b34e715991e64c9efff091efbb48d7d8bc3639437e1d78a83f0fac98f6891
47
+ 4027072ef2729166725a1257ffe0376f16a4d85a6229d92ac04b9e8b1b484f0ad014dab46fbaffc190729a16da39e3c1
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountOnboardingSessionDto, AccountSettingsDto, AccountSettingsInput, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, UpdateAccountBillingInformationInput } from '../models/index';
13
+ import type { AccountOnboardingSessionDto, AccountSettingsDto, AccountSettingsInput, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, SetPayoutProviderInput, UpdateAccountBillingInformationInput } from '../models/index';
14
14
  export interface AccountsApiGetAccountPaymentProviderSessionRequest {
15
15
  accountId: string;
16
16
  }
@@ -26,6 +26,10 @@ export interface AccountsApiPutAvatarRequest {
26
26
  accountId: string;
27
27
  file?: Blob | null;
28
28
  }
29
+ export interface AccountsApiSetPayoutProviderRequest {
30
+ accountId: string;
31
+ setPayoutProviderInput: SetPayoutProviderInput;
32
+ }
29
33
  export interface AccountsApiUpdateSettingsRequest {
30
34
  accountId: string;
31
35
  accountSettingsInput: AccountSettingsInput;
@@ -82,6 +86,14 @@ export declare class AccountsApi extends runtime.BaseAPI {
82
86
  *
83
87
  */
84
88
  putAvatar(requestParameters: AccountsApiPutAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
89
+ /**
90
+ *
91
+ */
92
+ setPayoutProviderRaw(requestParameters: AccountsApiSetPayoutProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
93
+ /**
94
+ *
95
+ */
96
+ setPayoutProvider(requestParameters: AccountsApiSetPayoutProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
85
97
  /**
86
98
  *
87
99
  */
@@ -407,6 +407,62 @@ var AccountsApi = /** @class */ (function (_super) {
407
407
  });
408
408
  });
409
409
  };
410
+ /**
411
+ *
412
+ */
413
+ AccountsApi.prototype.setPayoutProviderRaw = function (requestParameters, initOverrides) {
414
+ return __awaiter(this, void 0, void 0, function () {
415
+ var queryParameters, headerParameters, token, tokenString, response;
416
+ return __generator(this, function (_a) {
417
+ switch (_a.label) {
418
+ case 0:
419
+ if (requestParameters['accountId'] == null) {
420
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling setPayoutProvider().');
421
+ }
422
+ if (requestParameters['setPayoutProviderInput'] == null) {
423
+ throw new runtime.RequiredError('setPayoutProviderInput', 'Required parameter "setPayoutProviderInput" was null or undefined when calling setPayoutProvider().');
424
+ }
425
+ queryParameters = {};
426
+ headerParameters = {};
427
+ headerParameters['Content-Type'] = 'application/json';
428
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
429
+ token = this.configuration.accessToken;
430
+ return [4 /*yield*/, token("bearer", [])];
431
+ case 1:
432
+ tokenString = _a.sent();
433
+ if (tokenString) {
434
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
435
+ }
436
+ _a.label = 2;
437
+ case 2: return [4 /*yield*/, this.request({
438
+ path: "/private/accounts/{accountId}/payout-provider".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
439
+ method: 'POST',
440
+ headers: headerParameters,
441
+ query: queryParameters,
442
+ body: (0, index_1.SetPayoutProviderInputToJSON)(requestParameters['setPayoutProviderInput']),
443
+ }, initOverrides)];
444
+ case 3:
445
+ response = _a.sent();
446
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
447
+ }
448
+ });
449
+ });
450
+ };
451
+ /**
452
+ *
453
+ */
454
+ AccountsApi.prototype.setPayoutProvider = function (requestParameters, initOverrides) {
455
+ return __awaiter(this, void 0, void 0, function () {
456
+ return __generator(this, function (_a) {
457
+ switch (_a.label) {
458
+ case 0: return [4 /*yield*/, this.setPayoutProviderRaw(requestParameters, initOverrides)];
459
+ case 1:
460
+ _a.sent();
461
+ return [2 /*return*/];
462
+ }
463
+ });
464
+ });
465
+ };
410
466
  /**
411
467
  *
412
468
  */
@@ -61,6 +61,12 @@ export interface AccountDto {
61
61
  * @memberof AccountDto
62
62
  */
63
63
  billingInformation: BillingInformationDto | null;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof AccountDto
68
+ */
69
+ leaseToOwnKickbackPercentage: number;
64
70
  }
65
71
  /**
66
72
  * Check if a given object implements the AccountDto interface.
@@ -40,6 +40,8 @@ function instanceOfAccountDto(value) {
40
40
  return false;
41
41
  if (!('billingInformation' in value) || value['billingInformation'] === undefined)
42
42
  return false;
43
+ if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined)
44
+ return false;
43
45
  return true;
44
46
  }
45
47
  function AccountDtoFromJSON(json) {
@@ -57,6 +59,7 @@ function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
57
59
  'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoFromJSON)(json['onboarding']),
58
60
  'payout': (0, AccountPayoutDto_1.AccountPayoutDtoFromJSON)(json['payout']),
59
61
  'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
62
+ 'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
60
63
  };
61
64
  }
62
65
  function AccountDtoToJSON(json) {
@@ -75,5 +78,6 @@ function AccountDtoToJSONTyped(value, ignoreDiscriminator) {
75
78
  'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoToJSON)(value['onboarding']),
76
79
  'payout': (0, AccountPayoutDto_1.AccountPayoutDtoToJSON)(value['payout']),
77
80
  'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
81
+ 'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
78
82
  };
79
83
  }
@@ -21,6 +21,12 @@ export interface AdminAccountSettingsInput {
21
21
  * @memberof AdminAccountSettingsInput
22
22
  */
23
23
  automaticPayouts?: boolean;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AdminAccountSettingsInput
28
+ */
29
+ leaseToOwnKickBackPercentage?: number;
24
30
  }
25
31
  /**
26
32
  * Check if a given object implements the AdminAccountSettingsInput interface.
@@ -33,6 +33,7 @@ function AdminAccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
36
+ 'leaseToOwnKickBackPercentage': json['leaseToOwnKickBackPercentage'] == null ? undefined : json['leaseToOwnKickBackPercentage'],
36
37
  };
37
38
  }
38
39
  function AdminAccountSettingsInputToJSON(json) {
@@ -45,5 +46,6 @@ function AdminAccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
45
46
  }
46
47
  return {
47
48
  'automaticPayouts': value['automaticPayouts'],
49
+ 'leaseToOwnKickBackPercentage': value['leaseToOwnKickBackPercentage'],
48
50
  };
49
51
  }
@@ -63,6 +63,12 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
63
63
  * @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
64
64
  */
65
65
  billingInformation: BillingInformationDto | null;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
70
+ */
71
+ leaseToOwnKickbackPercentage: number;
66
72
  /**
67
73
  *
68
74
  * @type {WithSettingsInner}
@@ -51,6 +51,8 @@ function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWith
51
51
  return false;
52
52
  if (!('billingInformation' in value) || value['billingInformation'] === undefined)
53
53
  return false;
54
+ if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined)
55
+ return false;
54
56
  if (!('settings' in value) || value['settings'] === undefined)
55
57
  return false;
56
58
  if (!('notifications' in value) || value['notifications'] === undefined)
@@ -74,6 +76,7 @@ function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFla
74
76
  'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoFromJSON)(json['onboarding']),
75
77
  'payout': (0, AccountPayoutDto_1.AccountPayoutDtoFromJSON)(json['payout']),
76
78
  'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
79
+ 'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
77
80
  'settings': (0, WithSettingsInner_1.WithSettingsInnerFromJSON)(json['settings']),
78
81
  'notifications': (json['notifications'].map(AccountNotificationDto_1.AccountNotificationDtoFromJSON)),
79
82
  'enabledFeatures': json['enabledFeatures'],
@@ -95,6 +98,7 @@ function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFla
95
98
  'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoToJSON)(value['onboarding']),
96
99
  'payout': (0, AccountPayoutDto_1.AccountPayoutDtoToJSON)(value['payout']),
97
100
  'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
101
+ 'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
98
102
  'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value['settings']),
99
103
  'notifications': (value['notifications'].map(AccountNotificationDto_1.AccountNotificationDtoToJSON)),
100
104
  'enabledFeatures': value['enabledFeatures'],
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.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
+ *
14
+ * @export
15
+ * @interface SetPayoutProviderInput
16
+ */
17
+ export interface SetPayoutProviderInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SetPayoutProviderInput
22
+ */
23
+ provider: SetPayoutProviderInputProviderEnum;
24
+ }
25
+ /**
26
+ * @export
27
+ */
28
+ export declare const SetPayoutProviderInputProviderEnum: {
29
+ readonly STRIPE: "stripe";
30
+ readonly BANK_ACCOUNT: "bank_account";
31
+ };
32
+ export type SetPayoutProviderInputProviderEnum = typeof SetPayoutProviderInputProviderEnum[keyof typeof SetPayoutProviderInputProviderEnum];
33
+ /**
34
+ * Check if a given object implements the SetPayoutProviderInput interface.
35
+ */
36
+ export declare function instanceOfSetPayoutProviderInput(value: object): value is SetPayoutProviderInput;
37
+ export declare function SetPayoutProviderInputFromJSON(json: any): SetPayoutProviderInput;
38
+ export declare function SetPayoutProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetPayoutProviderInput;
39
+ export declare function SetPayoutProviderInputToJSON(json: any): SetPayoutProviderInput;
40
+ export declare function SetPayoutProviderInputToJSONTyped(value?: SetPayoutProviderInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SetPayoutProviderInputProviderEnum = void 0;
17
+ exports.instanceOfSetPayoutProviderInput = instanceOfSetPayoutProviderInput;
18
+ exports.SetPayoutProviderInputFromJSON = SetPayoutProviderInputFromJSON;
19
+ exports.SetPayoutProviderInputFromJSONTyped = SetPayoutProviderInputFromJSONTyped;
20
+ exports.SetPayoutProviderInputToJSON = SetPayoutProviderInputToJSON;
21
+ exports.SetPayoutProviderInputToJSONTyped = SetPayoutProviderInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SetPayoutProviderInputProviderEnum = {
26
+ STRIPE: 'stripe',
27
+ BANK_ACCOUNT: 'bank_account'
28
+ };
29
+ /**
30
+ * Check if a given object implements the SetPayoutProviderInput interface.
31
+ */
32
+ function instanceOfSetPayoutProviderInput(value) {
33
+ if (!('provider' in value) || value['provider'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function SetPayoutProviderInputFromJSON(json) {
38
+ return SetPayoutProviderInputFromJSONTyped(json, false);
39
+ }
40
+ function SetPayoutProviderInputFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'provider': json['provider'],
46
+ };
47
+ }
48
+ function SetPayoutProviderInputToJSON(json) {
49
+ return SetPayoutProviderInputToJSONTyped(json, false);
50
+ }
51
+ function SetPayoutProviderInputToJSONTyped(value, ignoreDiscriminator) {
52
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'provider': value['provider'],
58
+ };
59
+ }
@@ -161,6 +161,7 @@ export * from './SellerSubscriptionListItemDtoDomainInformation';
161
161
  export * from './SeoMetricsDto';
162
162
  export * from './SetDomainTransferConfirmationInput';
163
163
  export * from './SetNewPasswordInput';
164
+ export * from './SetPayoutProviderInput';
164
165
  export * from './StoreBuyerLocaleInput';
165
166
  export * from './StoreUserLocaleInput';
166
167
  export * from './SubscriptionBillingPeriodicityDto';
@@ -179,6 +179,7 @@ __exportStar(require("./SellerSubscriptionListItemDtoDomainInformation"), export
179
179
  __exportStar(require("./SeoMetricsDto"), exports);
180
180
  __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
181
181
  __exportStar(require("./SetNewPasswordInput"), exports);
182
+ __exportStar(require("./SetPayoutProviderInput"), exports);
182
183
  __exportStar(require("./StoreBuyerLocaleInput"), exports);
183
184
  __exportStar(require("./StoreUserLocaleInput"), exports);
184
185
  __exportStar(require("./SubscriptionBillingPeriodicityDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.211",
3
+ "version": "0.0.213",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -21,6 +21,7 @@ import type {
21
21
  BadRequestException,
22
22
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
23
23
  NotFoundException,
24
+ SetPayoutProviderInput,
24
25
  ThrottlerException,
25
26
  UpdateAccountBillingInformationInput,
26
27
  ValidationException,
@@ -38,6 +39,8 @@ import {
38
39
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON,
39
40
  NotFoundExceptionFromJSON,
40
41
  NotFoundExceptionToJSON,
42
+ SetPayoutProviderInputFromJSON,
43
+ SetPayoutProviderInputToJSON,
41
44
  ThrottlerExceptionFromJSON,
42
45
  ThrottlerExceptionToJSON,
43
46
  UpdateAccountBillingInformationInputFromJSON,
@@ -65,6 +68,11 @@ export interface AccountsApiPutAvatarRequest {
65
68
  file?: Blob | null;
66
69
  }
67
70
 
71
+ export interface AccountsApiSetPayoutProviderRequest {
72
+ accountId: string;
73
+ setPayoutProviderInput: SetPayoutProviderInput;
74
+ }
75
+
68
76
  export interface AccountsApiUpdateSettingsRequest {
69
77
  accountId: string;
70
78
  accountSettingsInput: AccountSettingsInput;
@@ -342,6 +350,56 @@ export class AccountsApi extends runtime.BaseAPI {
342
350
  await this.putAvatarRaw(requestParameters, initOverrides);
343
351
  }
344
352
 
353
+ /**
354
+ *
355
+ */
356
+ async setPayoutProviderRaw(requestParameters: AccountsApiSetPayoutProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
357
+ if (requestParameters['accountId'] == null) {
358
+ throw new runtime.RequiredError(
359
+ 'accountId',
360
+ 'Required parameter "accountId" was null or undefined when calling setPayoutProvider().'
361
+ );
362
+ }
363
+
364
+ if (requestParameters['setPayoutProviderInput'] == null) {
365
+ throw new runtime.RequiredError(
366
+ 'setPayoutProviderInput',
367
+ 'Required parameter "setPayoutProviderInput" was null or undefined when calling setPayoutProvider().'
368
+ );
369
+ }
370
+
371
+ const queryParameters: any = {};
372
+
373
+ const headerParameters: runtime.HTTPHeaders = {};
374
+
375
+ headerParameters['Content-Type'] = 'application/json';
376
+
377
+ if (this.configuration && this.configuration.accessToken) {
378
+ const token = this.configuration.accessToken;
379
+ const tokenString = await token("bearer", []);
380
+
381
+ if (tokenString) {
382
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
383
+ }
384
+ }
385
+ const response = await this.request({
386
+ path: `/private/accounts/{accountId}/payout-provider`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
387
+ method: 'POST',
388
+ headers: headerParameters,
389
+ query: queryParameters,
390
+ body: SetPayoutProviderInputToJSON(requestParameters['setPayoutProviderInput']),
391
+ }, initOverrides);
392
+
393
+ return new runtime.VoidApiResponse(response);
394
+ }
395
+
396
+ /**
397
+ *
398
+ */
399
+ async setPayoutProvider(requestParameters: AccountsApiSetPayoutProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
400
+ await this.setPayoutProviderRaw(requestParameters, initOverrides);
401
+ }
402
+
345
403
  /**
346
404
  *
347
405
  */
@@ -90,6 +90,12 @@ export interface AccountDto {
90
90
  * @memberof AccountDto
91
91
  */
92
92
  billingInformation: BillingInformationDto | null;
93
+ /**
94
+ *
95
+ * @type {number}
96
+ * @memberof AccountDto
97
+ */
98
+ leaseToOwnKickbackPercentage: number;
93
99
  }
94
100
 
95
101
  /**
@@ -103,6 +109,7 @@ export function instanceOfAccountDto(value: object): value is AccountDto {
103
109
  if (!('onboarding' in value) || value['onboarding'] === undefined) return false;
104
110
  if (!('payout' in value) || value['payout'] === undefined) return false;
105
111
  if (!('billingInformation' in value) || value['billingInformation'] === undefined) return false;
112
+ if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined) return false;
106
113
  return true;
107
114
  }
108
115
 
@@ -123,6 +130,7 @@ export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
123
130
  'onboarding': AccountOnboardingDtoFromJSON(json['onboarding']),
124
131
  'payout': AccountPayoutDtoFromJSON(json['payout']),
125
132
  'billingInformation': BillingInformationDtoFromJSON(json['billingInformation']),
133
+ 'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
126
134
  };
127
135
  }
128
136
 
@@ -144,6 +152,7 @@ export function AccountDtoToJSONTyped(value?: AccountDto | null, ignoreDiscrimin
144
152
  'onboarding': AccountOnboardingDtoToJSON(value['onboarding']),
145
153
  'payout': AccountPayoutDtoToJSON(value['payout']),
146
154
  'billingInformation': BillingInformationDtoToJSON(value['billingInformation']),
155
+ 'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
147
156
  };
148
157
  }
149
158
 
@@ -25,6 +25,12 @@ export interface AdminAccountSettingsInput {
25
25
  * @memberof AdminAccountSettingsInput
26
26
  */
27
27
  automaticPayouts?: boolean;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof AdminAccountSettingsInput
32
+ */
33
+ leaseToOwnKickBackPercentage?: number;
28
34
  }
29
35
 
30
36
  /**
@@ -45,6 +51,7 @@ export function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscrimi
45
51
  return {
46
52
 
47
53
  'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
54
+ 'leaseToOwnKickBackPercentage': json['leaseToOwnKickBackPercentage'] == null ? undefined : json['leaseToOwnKickBackPercentage'],
48
55
  };
49
56
  }
50
57
 
@@ -60,6 +67,7 @@ export function AdminAccountSettingsInputToJSONTyped(value?: AdminAccountSetting
60
67
  return {
61
68
 
62
69
  'automaticPayouts': value['automaticPayouts'],
70
+ 'leaseToOwnKickBackPercentage': value['leaseToOwnKickBackPercentage'],
63
71
  };
64
72
  }
65
73
 
@@ -104,6 +104,12 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
104
104
  * @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
105
105
  */
106
106
  billingInformation: BillingInformationDto | null;
107
+ /**
108
+ *
109
+ * @type {number}
110
+ * @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
111
+ */
112
+ leaseToOwnKickbackPercentage: number;
107
113
  /**
108
114
  *
109
115
  * @type {WithSettingsInner}
@@ -147,6 +153,7 @@ export function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotifications
147
153
  if (!('onboarding' in value) || value['onboarding'] === undefined) return false;
148
154
  if (!('payout' in value) || value['payout'] === undefined) return false;
149
155
  if (!('billingInformation' in value) || value['billingInformation'] === undefined) return false;
156
+ if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined) return false;
150
157
  if (!('settings' in value) || value['settings'] === undefined) return false;
151
158
  if (!('notifications' in value) || value['notifications'] === undefined) return false;
152
159
  if (!('enabledFeatures' in value) || value['enabledFeatures'] === undefined) return false;
@@ -170,6 +177,7 @@ export function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFea
170
177
  'onboarding': AccountOnboardingDtoFromJSON(json['onboarding']),
171
178
  'payout': AccountPayoutDtoFromJSON(json['payout']),
172
179
  'billingInformation': BillingInformationDtoFromJSON(json['billingInformation']),
180
+ 'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
173
181
  'settings': WithSettingsInnerFromJSON(json['settings']),
174
182
  'notifications': ((json['notifications'] as Array<any>).map(AccountNotificationDtoFromJSON)),
175
183
  'enabledFeatures': json['enabledFeatures'],
@@ -194,6 +202,7 @@ export function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFea
194
202
  'onboarding': AccountOnboardingDtoToJSON(value['onboarding']),
195
203
  'payout': AccountPayoutDtoToJSON(value['payout']),
196
204
  'billingInformation': BillingInformationDtoToJSON(value['billingInformation']),
205
+ 'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
197
206
  'settings': WithSettingsInnerToJSON(value['settings']),
198
207
  'notifications': ((value['notifications'] as Array<any>).map(AccountNotificationDtoToJSON)),
199
208
  'enabledFeatures': value['enabledFeatures'],
@@ -0,0 +1,77 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SetPayoutProviderInput
20
+ */
21
+ export interface SetPayoutProviderInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SetPayoutProviderInput
26
+ */
27
+ provider: SetPayoutProviderInputProviderEnum;
28
+ }
29
+
30
+
31
+ /**
32
+ * @export
33
+ */
34
+ export const SetPayoutProviderInputProviderEnum = {
35
+ STRIPE: 'stripe',
36
+ BANK_ACCOUNT: 'bank_account'
37
+ } as const;
38
+ export type SetPayoutProviderInputProviderEnum = typeof SetPayoutProviderInputProviderEnum[keyof typeof SetPayoutProviderInputProviderEnum];
39
+
40
+
41
+ /**
42
+ * Check if a given object implements the SetPayoutProviderInput interface.
43
+ */
44
+ export function instanceOfSetPayoutProviderInput(value: object): value is SetPayoutProviderInput {
45
+ if (!('provider' in value) || value['provider'] === undefined) return false;
46
+ return true;
47
+ }
48
+
49
+ export function SetPayoutProviderInputFromJSON(json: any): SetPayoutProviderInput {
50
+ return SetPayoutProviderInputFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function SetPayoutProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetPayoutProviderInput {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'provider': json['provider'],
60
+ };
61
+ }
62
+
63
+ export function SetPayoutProviderInputToJSON(json: any): SetPayoutProviderInput {
64
+ return SetPayoutProviderInputToJSONTyped(json, false);
65
+ }
66
+
67
+ export function SetPayoutProviderInputToJSONTyped(value?: SetPayoutProviderInput | null, ignoreDiscriminator: boolean = false): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+
72
+ return {
73
+
74
+ 'provider': value['provider'],
75
+ };
76
+ }
77
+
@@ -163,6 +163,7 @@ export * from './SellerSubscriptionListItemDtoDomainInformation';
163
163
  export * from './SeoMetricsDto';
164
164
  export * from './SetDomainTransferConfirmationInput';
165
165
  export * from './SetNewPasswordInput';
166
+ export * from './SetPayoutProviderInput';
166
167
  export * from './StoreBuyerLocaleInput';
167
168
  export * from './StoreUserLocaleInput';
168
169
  export * from './SubscriptionBillingPeriodicityDto';