@randock/nameshift-api-client 0.0.183 → 0.0.185

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.
Files changed (114) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +9 -1
  4. package/dist/apis/AccountsApi.js +50 -0
  5. package/dist/apis/AdminApi.d.ts +27 -1
  6. package/dist/apis/AdminApi.js +119 -0
  7. package/dist/apis/DomainsApi.d.ts +3 -3
  8. package/dist/apis/DomainsApi.js +1 -1
  9. package/dist/apis/DomainsPublicApi.d.ts +1 -0
  10. package/dist/apis/DomainsPublicApi.js +3 -0
  11. package/dist/apis/SubscriptionsPublicApi.d.ts +52 -0
  12. package/dist/apis/SubscriptionsPublicApi.js +217 -0
  13. package/dist/apis/TasksApi.d.ts +3 -3
  14. package/dist/apis/TasksApi.js +1 -1
  15. package/dist/apis/index.d.ts +1 -0
  16. package/dist/apis/index.js +1 -0
  17. package/dist/models/AccountSettingsDto.d.ts +21 -0
  18. package/dist/models/AccountSettingsDto.js +15 -0
  19. package/dist/models/AccountSettingsInput.d.ts +7 -0
  20. package/dist/models/AccountSettingsInput.js +3 -0
  21. package/dist/models/AccountSettingsLandingDto.d.ts +38 -0
  22. package/dist/models/AccountSettingsLandingDto.js +55 -0
  23. package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.d.ts +51 -0
  24. package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.js +64 -0
  25. package/dist/models/AccountSettingsSidnDto.d.ts +32 -0
  26. package/dist/models/AccountSettingsSidnDto.js +51 -0
  27. package/dist/models/ChangeSubscriptionStatusInput.d.ts +42 -0
  28. package/dist/models/ChangeSubscriptionStatusInput.js +61 -0
  29. package/dist/models/CreateSubscriptionInput.d.ts +132 -0
  30. package/dist/models/CreateSubscriptionInput.js +102 -0
  31. package/dist/models/DomainDto.d.ts +7 -0
  32. package/dist/models/DomainDto.js +5 -0
  33. package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.d.ts +57 -0
  34. package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.js +68 -0
  35. package/dist/models/GetAllSubscriptions200Response.d.ts +47 -0
  36. package/dist/models/GetAllSubscriptions200Response.js +62 -0
  37. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
  38. package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
  39. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
  40. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
  41. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +7 -0
  42. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +5 -0
  43. package/dist/models/LeaseToOwnConfigurationDto.d.ts +51 -0
  44. package/dist/models/LeaseToOwnConfigurationDto.js +64 -0
  45. package/dist/models/LeaseToOwnConfigurationInput.d.ts +44 -0
  46. package/dist/models/LeaseToOwnConfigurationInput.js +53 -0
  47. package/dist/models/LeaseToOwnConfigurationPresetsDto.d.ts +44 -0
  48. package/dist/models/LeaseToOwnConfigurationPresetsDto.js +59 -0
  49. package/dist/models/List200Response1.d.ts +3 -3
  50. package/dist/models/List200Response1.js +3 -3
  51. package/dist/models/List200Response2.d.ts +3 -3
  52. package/dist/models/List200Response2.js +3 -3
  53. package/dist/models/SubscriptionCompanyInfoDto.d.ts +39 -0
  54. package/dist/models/SubscriptionCompanyInfoDto.js +56 -0
  55. package/dist/models/SubscriptionCompanyTaxIdDto.d.ts +44 -0
  56. package/dist/models/SubscriptionCompanyTaxIdDto.js +59 -0
  57. package/dist/models/SubscriptionDomainDto.d.ts +38 -0
  58. package/dist/models/SubscriptionDomainDto.js +55 -0
  59. package/dist/models/SubscriptionDto.d.ts +165 -0
  60. package/dist/models/SubscriptionDto.js +148 -0
  61. package/dist/models/SubscriptionListItemDto.d.ts +102 -0
  62. package/dist/models/SubscriptionListItemDto.js +104 -0
  63. package/dist/models/SubscriptionListItemDtoBuyerInformation.d.ts +64 -0
  64. package/dist/models/SubscriptionListItemDtoBuyerInformation.js +73 -0
  65. package/dist/models/SubscriptionListItemDtoDomainInformation.d.ts +44 -0
  66. package/dist/models/SubscriptionListItemDtoDomainInformation.js +59 -0
  67. package/dist/models/SubscriptionListItemDtoSellerAccount.d.ts +50 -0
  68. package/dist/models/SubscriptionListItemDtoSellerAccount.js +63 -0
  69. package/dist/models/UpdateDomainInput.d.ts +7 -0
  70. package/dist/models/UpdateDomainInput.js +3 -0
  71. package/dist/models/UpdateSubscriptionInput.d.ts +112 -0
  72. package/dist/models/UpdateSubscriptionInput.js +81 -0
  73. package/dist/models/WithSettingsInner.d.ts +7 -0
  74. package/dist/models/WithSettingsInner.js +5 -0
  75. package/dist/models/index.d.ts +19 -0
  76. package/dist/models/index.js +19 -0
  77. package/package.json +1 -1
  78. package/src/apis/AccountsApi.ts +37 -0
  79. package/src/apis/AdminApi.ts +118 -0
  80. package/src/apis/DomainsApi.ts +9 -6
  81. package/src/apis/DomainsPublicApi.ts +5 -0
  82. package/src/apis/SubscriptionsPublicApi.ts +175 -0
  83. package/src/apis/TasksApi.ts +6 -6
  84. package/src/apis/index.ts +1 -0
  85. package/src/models/AccountSettingsDto.ts +48 -0
  86. package/src/models/AccountSettingsInput.ts +15 -0
  87. package/src/models/AccountSettingsLandingDto.ts +75 -0
  88. package/src/models/AccountSettingsLeaseToOwnConfigurationDto.ts +101 -0
  89. package/src/models/AccountSettingsSidnDto.ts +66 -0
  90. package/src/models/ChangeSubscriptionStatusInput.ts +79 -0
  91. package/src/models/CreateSubscriptionInput.ts +209 -0
  92. package/src/models/DomainDto.ts +16 -0
  93. package/src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts +110 -0
  94. package/src/models/GetAllSubscriptions200Response.ts +106 -0
  95. package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
  96. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
  97. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +16 -0
  98. package/src/models/LeaseToOwnConfigurationDto.ts +101 -0
  99. package/src/models/LeaseToOwnConfigurationInput.ts +81 -0
  100. package/src/models/LeaseToOwnConfigurationPresetsDto.ts +84 -0
  101. package/src/models/List200Response1.ts +10 -10
  102. package/src/models/List200Response2.ts +10 -10
  103. package/src/models/SubscriptionCompanyInfoDto.ts +83 -0
  104. package/src/models/SubscriptionCompanyTaxIdDto.ts +84 -0
  105. package/src/models/SubscriptionDomainDto.ts +75 -0
  106. package/src/models/SubscriptionDto.ts +292 -0
  107. package/src/models/SubscriptionListItemDto.ts +189 -0
  108. package/src/models/SubscriptionListItemDtoBuyerInformation.ts +126 -0
  109. package/src/models/SubscriptionListItemDtoDomainInformation.ts +84 -0
  110. package/src/models/SubscriptionListItemDtoSellerAccount.ts +93 -0
  111. package/src/models/UpdateDomainInput.ts +15 -0
  112. package/src/models/UpdateSubscriptionInput.ts +179 -0
  113. package/src/models/WithSettingsInner.ts +16 -0
  114. package/src/models/index.ts +19 -0
@@ -0,0 +1,217 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.SubscriptionsPublicApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var SubscriptionsPublicApi = /** @class */ (function (_super) {
74
+ __extends(SubscriptionsPublicApi, _super);
75
+ function SubscriptionsPublicApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ *
80
+ */
81
+ SubscriptionsPublicApi.prototype.createSubscriptionRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ if (requestParameters['createSubscriptionInput'] == null) {
88
+ throw new runtime.RequiredError('createSubscriptionInput', 'Required parameter "createSubscriptionInput" was null or undefined when calling createSubscription().');
89
+ }
90
+ queryParameters = {};
91
+ headerParameters = {};
92
+ headerParameters['Content-Type'] = 'application/json';
93
+ return [4 /*yield*/, this.request({
94
+ path: "/subscriptions",
95
+ method: 'POST',
96
+ headers: headerParameters,
97
+ query: queryParameters,
98
+ body: (0, index_1.CreateSubscriptionInputToJSON)(requestParameters['createSubscriptionInput']),
99
+ }, initOverrides)];
100
+ case 1:
101
+ response = _a.sent();
102
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ObjectIdFromJSON)(jsonValue); })];
103
+ }
104
+ });
105
+ });
106
+ };
107
+ /**
108
+ *
109
+ */
110
+ SubscriptionsPublicApi.prototype.createSubscription = function (requestParameters, initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function () {
112
+ var response;
113
+ return __generator(this, function (_a) {
114
+ switch (_a.label) {
115
+ case 0: return [4 /*yield*/, this.createSubscriptionRaw(requestParameters, initOverrides)];
116
+ case 1:
117
+ response = _a.sent();
118
+ return [4 /*yield*/, response.value()];
119
+ case 2: return [2 /*return*/, _a.sent()];
120
+ }
121
+ });
122
+ });
123
+ };
124
+ /**
125
+ *
126
+ */
127
+ SubscriptionsPublicApi.prototype.getSubscriptionRaw = function (requestParameters, initOverrides) {
128
+ return __awaiter(this, void 0, void 0, function () {
129
+ var queryParameters, headerParameters, response;
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0:
133
+ if (requestParameters['subscriptionId'] == null) {
134
+ throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling getSubscription().');
135
+ }
136
+ queryParameters = {};
137
+ headerParameters = {};
138
+ return [4 /*yield*/, this.request({
139
+ path: "/subscriptions/{subscriptionId}".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
140
+ method: 'GET',
141
+ headers: headerParameters,
142
+ query: queryParameters,
143
+ }, initOverrides)];
144
+ case 1:
145
+ response = _a.sent();
146
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SubscriptionDtoFromJSON)(jsonValue); })];
147
+ }
148
+ });
149
+ });
150
+ };
151
+ /**
152
+ *
153
+ */
154
+ SubscriptionsPublicApi.prototype.getSubscription = function (requestParameters, initOverrides) {
155
+ return __awaiter(this, void 0, void 0, function () {
156
+ var response;
157
+ return __generator(this, function (_a) {
158
+ switch (_a.label) {
159
+ case 0: return [4 /*yield*/, this.getSubscriptionRaw(requestParameters, initOverrides)];
160
+ case 1:
161
+ response = _a.sent();
162
+ return [4 /*yield*/, response.value()];
163
+ case 2: return [2 /*return*/, _a.sent()];
164
+ }
165
+ });
166
+ });
167
+ };
168
+ /**
169
+ *
170
+ */
171
+ SubscriptionsPublicApi.prototype.updateSubscriptionRaw = function (requestParameters, initOverrides) {
172
+ return __awaiter(this, void 0, void 0, function () {
173
+ var queryParameters, headerParameters, response;
174
+ return __generator(this, function (_a) {
175
+ switch (_a.label) {
176
+ case 0:
177
+ if (requestParameters['subscriptionId'] == null) {
178
+ throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling updateSubscription().');
179
+ }
180
+ if (requestParameters['updateSubscriptionInput'] == null) {
181
+ throw new runtime.RequiredError('updateSubscriptionInput', 'Required parameter "updateSubscriptionInput" was null or undefined when calling updateSubscription().');
182
+ }
183
+ queryParameters = {};
184
+ headerParameters = {};
185
+ headerParameters['Content-Type'] = 'application/json';
186
+ return [4 /*yield*/, this.request({
187
+ path: "/subscriptions/{subscriptionId}".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
188
+ method: 'PATCH',
189
+ headers: headerParameters,
190
+ query: queryParameters,
191
+ body: (0, index_1.UpdateSubscriptionInputToJSON)(requestParameters['updateSubscriptionInput']),
192
+ }, initOverrides)];
193
+ case 1:
194
+ response = _a.sent();
195
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
196
+ }
197
+ });
198
+ });
199
+ };
200
+ /**
201
+ *
202
+ */
203
+ SubscriptionsPublicApi.prototype.updateSubscription = function (requestParameters, initOverrides) {
204
+ return __awaiter(this, void 0, void 0, function () {
205
+ return __generator(this, function (_a) {
206
+ switch (_a.label) {
207
+ case 0: return [4 /*yield*/, this.updateSubscriptionRaw(requestParameters, initOverrides)];
208
+ case 1:
209
+ _a.sent();
210
+ return [2 /*return*/];
211
+ }
212
+ });
213
+ });
214
+ };
215
+ return SubscriptionsPublicApi;
216
+ }(runtime.BaseAPI));
217
+ exports.SubscriptionsPublicApi = SubscriptionsPublicApi;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { List200Response2 } from '../models/index';
13
+ import type { List200Response1 } from '../models/index';
14
14
  export interface TasksApiListRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -24,9 +24,9 @@ export declare class TasksApi extends runtime.BaseAPI {
24
24
  /**
25
25
  *
26
26
  */
27
- listRaw(requestParameters: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response2>>;
27
+ listRaw(requestParameters: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>>;
28
28
  /**
29
29
  *
30
30
  */
31
- list(requestParameters?: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response2>;
31
+ list(requestParameters?: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1>;
32
32
  }
@@ -115,7 +115,7 @@ var TasksApi = /** @class */ (function (_super) {
115
115
  }, initOverrides)];
116
116
  case 3:
117
117
  response = _a.sent();
118
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response2FromJSON)(jsonValue); })];
118
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response1FromJSON)(jsonValue); })];
119
119
  }
120
120
  });
121
121
  });
@@ -10,6 +10,7 @@ export * from './LeadsApi';
10
10
  export * from './LeadsPublicApi';
11
11
  export * from './OrdersPublicApi';
12
12
  export * from './StripePublicApi';
13
+ export * from './SubscriptionsPublicApi';
13
14
  export * from './TasksApi';
14
15
  export * from './UsersApi';
15
16
  export * from './UsersPublicApi';
@@ -28,6 +28,7 @@ __exportStar(require("./LeadsApi"), exports);
28
28
  __exportStar(require("./LeadsPublicApi"), exports);
29
29
  __exportStar(require("./OrdersPublicApi"), exports);
30
30
  __exportStar(require("./StripePublicApi"), exports);
31
+ __exportStar(require("./SubscriptionsPublicApi"), exports);
31
32
  __exportStar(require("./TasksApi"), exports);
32
33
  __exportStar(require("./UsersApi"), exports);
33
34
  __exportStar(require("./UsersPublicApi"), exports);
@@ -10,6 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { MoneyDto } from './MoneyDto';
13
+ import type { AccountSettingsSidnDto } from './AccountSettingsSidnDto';
14
+ import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
15
+ import type { AccountSettingsLandingDto } from './AccountSettingsLandingDto';
13
16
  /**
14
17
  *
15
18
  * @export
@@ -40,6 +43,24 @@ export interface AccountSettingsDto {
40
43
  * @memberof AccountSettingsDto
41
44
  */
42
45
  automaticPayouts: boolean;
46
+ /**
47
+ *
48
+ * @type {AccountSettingsLeaseToOwnConfigurationDto}
49
+ * @memberof AccountSettingsDto
50
+ */
51
+ leaseToOwn: AccountSettingsLeaseToOwnConfigurationDto;
52
+ /**
53
+ *
54
+ * @type {AccountSettingsLandingDto}
55
+ * @memberof AccountSettingsDto
56
+ */
57
+ landing: AccountSettingsLandingDto;
58
+ /**
59
+ *
60
+ * @type {AccountSettingsSidnDto}
61
+ * @memberof AccountSettingsDto
62
+ */
63
+ sidn: AccountSettingsSidnDto;
43
64
  }
44
65
  /**
45
66
  * Check if a given object implements the AccountSettingsDto interface.
@@ -19,6 +19,9 @@ exports.AccountSettingsDtoFromJSONTyped = AccountSettingsDtoFromJSONTyped;
19
19
  exports.AccountSettingsDtoToJSON = AccountSettingsDtoToJSON;
20
20
  exports.AccountSettingsDtoToJSONTyped = AccountSettingsDtoToJSONTyped;
21
21
  var MoneyDto_1 = require("./MoneyDto");
22
+ var AccountSettingsSidnDto_1 = require("./AccountSettingsSidnDto");
23
+ var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeaseToOwnConfigurationDto");
24
+ var AccountSettingsLandingDto_1 = require("./AccountSettingsLandingDto");
22
25
  /**
23
26
  * Check if a given object implements the AccountSettingsDto interface.
24
27
  */
@@ -31,6 +34,12 @@ function instanceOfAccountSettingsDto(value) {
31
34
  return false;
32
35
  if (!('automaticPayouts' in value) || value['automaticPayouts'] === undefined)
33
36
  return false;
37
+ if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
38
+ return false;
39
+ if (!('landing' in value) || value['landing'] === undefined)
40
+ return false;
41
+ if (!('sidn' in value) || value['sidn'] === undefined)
42
+ return false;
34
43
  return true;
35
44
  }
36
45
  function AccountSettingsDtoFromJSON(json) {
@@ -45,6 +54,9 @@ function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
45
54
  'minBuyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minBuyNow']),
46
55
  'defaultCurrencyCode': json['defaultCurrencyCode'],
47
56
  'automaticPayouts': json['automaticPayouts'],
57
+ 'leaseToOwn': (0, AccountSettingsLeaseToOwnConfigurationDto_1.AccountSettingsLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
58
+ 'landing': (0, AccountSettingsLandingDto_1.AccountSettingsLandingDtoFromJSON)(json['landing']),
59
+ 'sidn': (0, AccountSettingsSidnDto_1.AccountSettingsSidnDtoFromJSON)(json['sidn']),
48
60
  };
49
61
  }
50
62
  function AccountSettingsDtoToJSON(json) {
@@ -60,5 +72,8 @@ function AccountSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
60
72
  'minBuyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['minBuyNow']),
61
73
  'defaultCurrencyCode': value['defaultCurrencyCode'],
62
74
  'automaticPayouts': value['automaticPayouts'],
75
+ 'leaseToOwn': (0, AccountSettingsLeaseToOwnConfigurationDto_1.AccountSettingsLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
76
+ 'landing': (0, AccountSettingsLandingDto_1.AccountSettingsLandingDtoToJSON)(value['landing']),
77
+ 'sidn': (0, AccountSettingsSidnDto_1.AccountSettingsSidnDtoToJSON)(value['sidn']),
63
78
  };
64
79
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { MoneyDto } from './MoneyDto';
13
+ import type { LeaseToOwnConfigurationInput } from './LeaseToOwnConfigurationInput';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -46,6 +47,12 @@ export interface AccountSettingsInput {
46
47
  * @memberof AccountSettingsInput
47
48
  */
48
49
  showRelatedDomains?: boolean;
50
+ /**
51
+ *
52
+ * @type {LeaseToOwnConfigurationInput}
53
+ * @memberof AccountSettingsInput
54
+ */
55
+ leaseToOwn?: LeaseToOwnConfigurationInput;
49
56
  }
50
57
  /**
51
58
  * Check if a given object implements the AccountSettingsInput interface.
@@ -19,6 +19,7 @@ exports.AccountSettingsInputFromJSONTyped = AccountSettingsInputFromJSONTyped;
19
19
  exports.AccountSettingsInputToJSON = AccountSettingsInputToJSON;
20
20
  exports.AccountSettingsInputToJSONTyped = AccountSettingsInputToJSONTyped;
21
21
  var MoneyDto_1 = require("./MoneyDto");
22
+ var LeaseToOwnConfigurationInput_1 = require("./LeaseToOwnConfigurationInput");
22
23
  /**
23
24
  * Check if a given object implements the AccountSettingsInput interface.
24
25
  */
@@ -38,6 +39,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
38
39
  'sidnIdcode': json['sidnIdcode'] == null ? undefined : json['sidnIdcode'],
39
40
  'anonymous': json['anonymous'] == null ? undefined : json['anonymous'],
40
41
  'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
42
+ 'leaseToOwn': json['leaseToOwn'] == null ? undefined : (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputFromJSON)(json['leaseToOwn']),
41
43
  };
42
44
  }
43
45
  function AccountSettingsInputToJSON(json) {
@@ -54,5 +56,6 @@ function AccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
54
56
  'sidnIdcode': value['sidnIdcode'],
55
57
  'anonymous': value['anonymous'],
56
58
  'showRelatedDomains': value['showRelatedDomains'],
59
+ 'leaseToOwn': (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputToJSON)(value['leaseToOwn']),
57
60
  };
58
61
  }
@@ -0,0 +1,38 @@
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 AccountSettingsLandingDto
16
+ */
17
+ export interface AccountSettingsLandingDto {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof AccountSettingsLandingDto
22
+ */
23
+ anonymous: boolean;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof AccountSettingsLandingDto
28
+ */
29
+ showRelatedDomains: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AccountSettingsLandingDto interface.
33
+ */
34
+ export declare function instanceOfAccountSettingsLandingDto(value: object): value is AccountSettingsLandingDto;
35
+ export declare function AccountSettingsLandingDtoFromJSON(json: any): AccountSettingsLandingDto;
36
+ export declare function AccountSettingsLandingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsLandingDto;
37
+ export declare function AccountSettingsLandingDtoToJSON(json: any): AccountSettingsLandingDto;
38
+ export declare function AccountSettingsLandingDtoToJSONTyped(value?: AccountSettingsLandingDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfAccountSettingsLandingDto = instanceOfAccountSettingsLandingDto;
17
+ exports.AccountSettingsLandingDtoFromJSON = AccountSettingsLandingDtoFromJSON;
18
+ exports.AccountSettingsLandingDtoFromJSONTyped = AccountSettingsLandingDtoFromJSONTyped;
19
+ exports.AccountSettingsLandingDtoToJSON = AccountSettingsLandingDtoToJSON;
20
+ exports.AccountSettingsLandingDtoToJSONTyped = AccountSettingsLandingDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AccountSettingsLandingDto interface.
23
+ */
24
+ function instanceOfAccountSettingsLandingDto(value) {
25
+ if (!('anonymous' in value) || value['anonymous'] === undefined)
26
+ return false;
27
+ if (!('showRelatedDomains' in value) || value['showRelatedDomains'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AccountSettingsLandingDtoFromJSON(json) {
32
+ return AccountSettingsLandingDtoFromJSONTyped(json, false);
33
+ }
34
+ function AccountSettingsLandingDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'anonymous': json['anonymous'],
40
+ 'showRelatedDomains': json['showRelatedDomains'],
41
+ };
42
+ }
43
+ function AccountSettingsLandingDtoToJSON(json) {
44
+ return AccountSettingsLandingDtoToJSONTyped(json, false);
45
+ }
46
+ function AccountSettingsLandingDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'anonymous': value['anonymous'],
53
+ 'showRelatedDomains': value['showRelatedDomains'],
54
+ };
55
+ }
@@ -0,0 +1,51 @@
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
+ import type { LeaseToOwnConfigurationPresetsDto } from './LeaseToOwnConfigurationPresetsDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AccountSettingsLeaseToOwnConfigurationDto
17
+ */
18
+ export interface AccountSettingsLeaseToOwnConfigurationDto {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof AccountSettingsLeaseToOwnConfigurationDto
23
+ */
24
+ minMonths: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof AccountSettingsLeaseToOwnConfigurationDto
29
+ */
30
+ maxMonths: number;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof AccountSettingsLeaseToOwnConfigurationDto
35
+ */
36
+ enabled: boolean;
37
+ /**
38
+ *
39
+ * @type {LeaseToOwnConfigurationPresetsDto}
40
+ * @memberof AccountSettingsLeaseToOwnConfigurationDto
41
+ */
42
+ presets: LeaseToOwnConfigurationPresetsDto;
43
+ }
44
+ /**
45
+ * Check if a given object implements the AccountSettingsLeaseToOwnConfigurationDto interface.
46
+ */
47
+ export declare function instanceOfAccountSettingsLeaseToOwnConfigurationDto(value: object): value is AccountSettingsLeaseToOwnConfigurationDto;
48
+ export declare function AccountSettingsLeaseToOwnConfigurationDtoFromJSON(json: any): AccountSettingsLeaseToOwnConfigurationDto;
49
+ export declare function AccountSettingsLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsLeaseToOwnConfigurationDto;
50
+ export declare function AccountSettingsLeaseToOwnConfigurationDtoToJSON(json: any): AccountSettingsLeaseToOwnConfigurationDto;
51
+ export declare function AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped(value?: AccountSettingsLeaseToOwnConfigurationDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.instanceOfAccountSettingsLeaseToOwnConfigurationDto = instanceOfAccountSettingsLeaseToOwnConfigurationDto;
17
+ exports.AccountSettingsLeaseToOwnConfigurationDtoFromJSON = AccountSettingsLeaseToOwnConfigurationDtoFromJSON;
18
+ exports.AccountSettingsLeaseToOwnConfigurationDtoFromJSONTyped = AccountSettingsLeaseToOwnConfigurationDtoFromJSONTyped;
19
+ exports.AccountSettingsLeaseToOwnConfigurationDtoToJSON = AccountSettingsLeaseToOwnConfigurationDtoToJSON;
20
+ exports.AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped = AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped;
21
+ var LeaseToOwnConfigurationPresetsDto_1 = require("./LeaseToOwnConfigurationPresetsDto");
22
+ /**
23
+ * Check if a given object implements the AccountSettingsLeaseToOwnConfigurationDto interface.
24
+ */
25
+ function instanceOfAccountSettingsLeaseToOwnConfigurationDto(value) {
26
+ if (!('minMonths' in value) || value['minMonths'] === undefined)
27
+ return false;
28
+ if (!('maxMonths' in value) || value['maxMonths'] === undefined)
29
+ return false;
30
+ if (!('enabled' in value) || value['enabled'] === undefined)
31
+ return false;
32
+ if (!('presets' in value) || value['presets'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function AccountSettingsLeaseToOwnConfigurationDtoFromJSON(json) {
37
+ return AccountSettingsLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
38
+ }
39
+ function AccountSettingsLeaseToOwnConfigurationDtoFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'minMonths': json['minMonths'],
45
+ 'maxMonths': json['maxMonths'],
46
+ 'enabled': json['enabled'],
47
+ 'presets': (0, LeaseToOwnConfigurationPresetsDto_1.LeaseToOwnConfigurationPresetsDtoFromJSON)(json['presets']),
48
+ };
49
+ }
50
+ function AccountSettingsLeaseToOwnConfigurationDtoToJSON(json) {
51
+ return AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped(json, false);
52
+ }
53
+ function AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'minMonths': value['minMonths'],
60
+ 'maxMonths': value['maxMonths'],
61
+ 'enabled': value['enabled'],
62
+ 'presets': (0, LeaseToOwnConfigurationPresetsDto_1.LeaseToOwnConfigurationPresetsDtoToJSON)(value['presets']),
63
+ };
64
+ }
@@ -0,0 +1,32 @@
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 AccountSettingsSidnDto
16
+ */
17
+ export interface AccountSettingsSidnDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AccountSettingsSidnDto
22
+ */
23
+ idCode: string | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AccountSettingsSidnDto interface.
27
+ */
28
+ export declare function instanceOfAccountSettingsSidnDto(value: object): value is AccountSettingsSidnDto;
29
+ export declare function AccountSettingsSidnDtoFromJSON(json: any): AccountSettingsSidnDto;
30
+ export declare function AccountSettingsSidnDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsSidnDto;
31
+ export declare function AccountSettingsSidnDtoToJSON(json: any): AccountSettingsSidnDto;
32
+ export declare function AccountSettingsSidnDtoToJSONTyped(value?: AccountSettingsSidnDto | null, ignoreDiscriminator?: boolean): any;