@randock/nameshift-api-client 0.0.182 → 0.0.184

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 (82) hide show
  1. package/.openapi-generator/FILES +14 -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/DomainsPublicApi.d.ts +1 -0
  6. package/dist/apis/DomainsPublicApi.js +3 -0
  7. package/dist/apis/SubscriptionsPublicApi.d.ts +52 -0
  8. package/dist/apis/SubscriptionsPublicApi.js +217 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AccountSettingsDto.d.ts +21 -0
  12. package/dist/models/AccountSettingsDto.js +15 -0
  13. package/dist/models/AccountSettingsInput.d.ts +7 -0
  14. package/dist/models/AccountSettingsInput.js +3 -0
  15. package/dist/models/AccountSettingsLandingDto.d.ts +38 -0
  16. package/dist/models/AccountSettingsLandingDto.js +55 -0
  17. package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.d.ts +51 -0
  18. package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.js +64 -0
  19. package/dist/models/AccountSettingsSidnDto.d.ts +32 -0
  20. package/dist/models/AccountSettingsSidnDto.js +51 -0
  21. package/dist/models/CreateSubscriptionInput.d.ts +132 -0
  22. package/dist/models/CreateSubscriptionInput.js +102 -0
  23. package/dist/models/DomainDto.d.ts +7 -0
  24. package/dist/models/DomainDto.js +5 -0
  25. package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.d.ts +57 -0
  26. package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.js +68 -0
  27. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
  28. package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
  29. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
  30. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
  31. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +7 -0
  32. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +5 -0
  33. package/dist/models/LeaseToOwnConfigurationDto.d.ts +51 -0
  34. package/dist/models/LeaseToOwnConfigurationDto.js +64 -0
  35. package/dist/models/LeaseToOwnConfigurationInput.d.ts +44 -0
  36. package/dist/models/LeaseToOwnConfigurationInput.js +53 -0
  37. package/dist/models/LeaseToOwnConfigurationPresetsDto.d.ts +44 -0
  38. package/dist/models/LeaseToOwnConfigurationPresetsDto.js +59 -0
  39. package/dist/models/SubscriptionCompanyInfoDto.d.ts +39 -0
  40. package/dist/models/SubscriptionCompanyInfoDto.js +56 -0
  41. package/dist/models/SubscriptionCompanyTaxIdDto.d.ts +44 -0
  42. package/dist/models/SubscriptionCompanyTaxIdDto.js +59 -0
  43. package/dist/models/SubscriptionDomainDto.d.ts +38 -0
  44. package/dist/models/SubscriptionDomainDto.js +55 -0
  45. package/dist/models/SubscriptionDto.d.ts +165 -0
  46. package/dist/models/SubscriptionDto.js +148 -0
  47. package/dist/models/UpdateDomainInput.d.ts +7 -0
  48. package/dist/models/UpdateDomainInput.js +3 -0
  49. package/dist/models/UpdateSubscriptionInput.d.ts +112 -0
  50. package/dist/models/UpdateSubscriptionInput.js +81 -0
  51. package/dist/models/WithSettingsInner.d.ts +7 -0
  52. package/dist/models/WithSettingsInner.js +5 -0
  53. package/dist/models/index.d.ts +13 -0
  54. package/dist/models/index.js +13 -0
  55. package/package.json +1 -1
  56. package/src/apis/AccountsApi.ts +37 -0
  57. package/src/apis/DomainsApi.ts +3 -0
  58. package/src/apis/DomainsPublicApi.ts +5 -0
  59. package/src/apis/SubscriptionsPublicApi.ts +175 -0
  60. package/src/apis/index.ts +1 -0
  61. package/src/models/AccountSettingsDto.ts +48 -0
  62. package/src/models/AccountSettingsInput.ts +15 -0
  63. package/src/models/AccountSettingsLandingDto.ts +75 -0
  64. package/src/models/AccountSettingsLeaseToOwnConfigurationDto.ts +101 -0
  65. package/src/models/AccountSettingsSidnDto.ts +66 -0
  66. package/src/models/CreateSubscriptionInput.ts +209 -0
  67. package/src/models/DomainDto.ts +16 -0
  68. package/src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts +110 -0
  69. package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
  70. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
  71. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +16 -0
  72. package/src/models/LeaseToOwnConfigurationDto.ts +101 -0
  73. package/src/models/LeaseToOwnConfigurationInput.ts +81 -0
  74. package/src/models/LeaseToOwnConfigurationPresetsDto.ts +84 -0
  75. package/src/models/SubscriptionCompanyInfoDto.ts +83 -0
  76. package/src/models/SubscriptionCompanyTaxIdDto.ts +84 -0
  77. package/src/models/SubscriptionDomainDto.ts +75 -0
  78. package/src/models/SubscriptionDto.ts +292 -0
  79. package/src/models/UpdateDomainInput.ts +15 -0
  80. package/src/models/UpdateSubscriptionInput.ts +179 -0
  81. package/src/models/WithSettingsInner.ts +16 -0
  82. package/src/models/index.ts +13 -0
@@ -15,6 +15,7 @@ src/apis/LeadsApi.ts
15
15
  src/apis/LeadsPublicApi.ts
16
16
  src/apis/OrdersPublicApi.ts
17
17
  src/apis/StripePublicApi.ts
18
+ src/apis/SubscriptionsPublicApi.ts
18
19
  src/apis/TasksApi.ts
19
20
  src/apis/UsersApi.ts
20
21
  src/apis/UsersPublicApi.ts
@@ -27,6 +28,9 @@ src/models/AccountNotificationReadStatusDto.ts
27
28
  src/models/AccountPaymentProviderSessionDto.ts
28
29
  src/models/AccountSettingsDto.ts
29
30
  src/models/AccountSettingsInput.ts
31
+ src/models/AccountSettingsLandingDto.ts
32
+ src/models/AccountSettingsLeaseToOwnConfigurationDto.ts
33
+ src/models/AccountSettingsSidnDto.ts
30
34
  src/models/AddressDto.ts
31
35
  src/models/AdminAccountSettingsInput.ts
32
36
  src/models/AdminGetAllDomainTransfers200Response.ts
@@ -56,8 +60,10 @@ src/models/CreateLeadInput.ts
56
60
  src/models/CreateLeadMessageInput.ts
57
61
  src/models/CreateManualLeadInput.ts
58
62
  src/models/CreateOrderInput.ts
63
+ src/models/CreateSubscriptionInput.ts
59
64
  src/models/DeleteDomainsInput.ts
60
65
  src/models/DomainDto.ts
66
+ src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts
61
67
  src/models/DomainSellerDto.ts
62
68
  src/models/DomainStats.ts
63
69
  src/models/DomainTransferAgentDto.ts
@@ -105,6 +111,9 @@ src/models/LeadDto.ts
105
111
  src/models/LeadMessageData.ts
106
112
  src/models/LeadMessageDto.ts
107
113
  src/models/LeadStatusDto.ts
114
+ src/models/LeaseToOwnConfigurationDto.ts
115
+ src/models/LeaseToOwnConfigurationInput.ts
116
+ src/models/LeaseToOwnConfigurationPresetsDto.ts
108
117
  src/models/List200Response.ts
109
118
  src/models/List200Response1.ts
110
119
  src/models/List200Response2.ts
@@ -153,6 +162,10 @@ src/models/SetDomainTransferConfirmationInput.ts
153
162
  src/models/SetNewPasswordInput.ts
154
163
  src/models/StoreBuyerLocaleInput.ts
155
164
  src/models/StoreUserLocaleInput.ts
165
+ src/models/SubscriptionCompanyInfoDto.ts
166
+ src/models/SubscriptionCompanyTaxIdDto.ts
167
+ src/models/SubscriptionDomainDto.ts
168
+ src/models/SubscriptionDto.ts
156
169
  src/models/TaskListDomainDto.ts
157
170
  src/models/TaskListDomainTransferDto.ts
158
171
  src/models/TaskListLeadDto.ts
@@ -162,6 +175,7 @@ src/models/UpdateDomainInput.ts
162
175
  src/models/UpdateDomainTransferAuthCodeInput.ts
163
176
  src/models/UpdateLeadInput.ts
164
177
  src/models/UpdateOrderInput.ts
178
+ src/models/UpdateSubscriptionInput.ts
165
179
  src/models/UserPasswordResetDto.ts
166
180
  src/models/ValidationError.ts
167
181
  src/models/ValidationException.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.182
1
+ ## @randock/nameshift-api-client@0.0.184
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.182 --save
39
+ npm install @randock/nameshift-api-client@0.0.184 --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
- 1703842523ca3362f9de32b2aa2210a9d9e0250ed3c67f04fc7a7dddf7b5d54fd70193fe3138db0f3f23e7f8c1850dec
47
+ cd66b42ce8a716d55bbe4cf964a95ac30619be74bf4c6edcc8203bc676dae369925575a1a209119906b6615ed7e0f259
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountPaymentProviderSessionDto, AccountSettingsInput, IntersectionAccountDtoWithSettingsDtoWithNotificationsDto, UpdateAccountBillingInformationInput } from '../models/index';
13
+ import type { AccountPaymentProviderSessionDto, AccountSettingsDto, AccountSettingsInput, IntersectionAccountDtoWithSettingsDtoWithNotificationsDto, UpdateAccountBillingInformationInput } from '../models/index';
14
14
  export interface AccountsApiGetAccountPaymentProviderSessionRequest {
15
15
  accountId: string;
16
16
  }
@@ -38,6 +38,14 @@ export declare class AccountsApi extends runtime.BaseAPI {
38
38
  *
39
39
  */
40
40
  getAccountPaymentProviderSession(requestParameters: AccountsApiGetAccountPaymentProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPaymentProviderSessionDto>;
41
+ /**
42
+ *
43
+ */
44
+ getAccountSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountSettingsDto>>;
45
+ /**
46
+ *
47
+ */
48
+ getAccountSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountSettingsDto>;
41
49
  /**
42
50
  *
43
51
  */
@@ -128,6 +128,56 @@ var AccountsApi = /** @class */ (function (_super) {
128
128
  });
129
129
  });
130
130
  };
131
+ /**
132
+ *
133
+ */
134
+ AccountsApi.prototype.getAccountSettingsRaw = function (initOverrides) {
135
+ return __awaiter(this, void 0, void 0, function () {
136
+ var queryParameters, headerParameters, token, tokenString, response;
137
+ return __generator(this, function (_a) {
138
+ switch (_a.label) {
139
+ case 0:
140
+ queryParameters = {};
141
+ headerParameters = {};
142
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
143
+ token = this.configuration.accessToken;
144
+ return [4 /*yield*/, token("bearer", [])];
145
+ case 1:
146
+ tokenString = _a.sent();
147
+ if (tokenString) {
148
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
149
+ }
150
+ _a.label = 2;
151
+ case 2: return [4 /*yield*/, this.request({
152
+ path: "/private/accounts/me/settings",
153
+ method: 'GET',
154
+ headers: headerParameters,
155
+ query: queryParameters,
156
+ }, initOverrides)];
157
+ case 3:
158
+ response = _a.sent();
159
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AccountSettingsDtoFromJSON)(jsonValue); })];
160
+ }
161
+ });
162
+ });
163
+ };
164
+ /**
165
+ *
166
+ */
167
+ AccountsApi.prototype.getAccountSettings = function (initOverrides) {
168
+ return __awaiter(this, void 0, void 0, function () {
169
+ var response;
170
+ return __generator(this, function (_a) {
171
+ switch (_a.label) {
172
+ case 0: return [4 /*yield*/, this.getAccountSettingsRaw(initOverrides)];
173
+ case 1:
174
+ response = _a.sent();
175
+ return [4 /*yield*/, response.value()];
176
+ case 2: return [2 /*return*/, _a.sent()];
177
+ }
178
+ });
179
+ });
180
+ };
131
181
  /**
132
182
  *
133
183
  */
@@ -14,6 +14,7 @@ import type { IntersectionDomainSalesInformationDtoWithDomainStatsDto, List200Re
14
14
  export interface DomainsPublicApiGetDomainSalesInformationRequest {
15
15
  domainName: string;
16
16
  includeStats?: boolean;
17
+ subscriptionPeriodicity?: number;
17
18
  }
18
19
  export interface DomainsPublicApiListRequest {
19
20
  filter?: object;
@@ -91,6 +91,9 @@ var DomainsPublicApi = /** @class */ (function (_super) {
91
91
  if (requestParameters['includeStats'] != null) {
92
92
  queryParameters['includeStats'] = requestParameters['includeStats'];
93
93
  }
94
+ if (requestParameters['subscriptionPeriodicity'] != null) {
95
+ queryParameters['subscriptionPeriodicity'] = requestParameters['subscriptionPeriodicity'];
96
+ }
94
97
  headerParameters = {};
95
98
  return [4 /*yield*/, this.request({
96
99
  path: "/domains/by-name/{domainName}/sales-information".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
@@ -0,0 +1,52 @@
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 * as runtime from '../runtime';
13
+ import type { CreateSubscriptionInput, ObjectId, SubscriptionDto, UpdateSubscriptionInput } from '../models/index';
14
+ export interface SubscriptionsPublicApiCreateSubscriptionRequest {
15
+ createSubscriptionInput: CreateSubscriptionInput;
16
+ }
17
+ export interface SubscriptionsPublicApiGetSubscriptionRequest {
18
+ subscriptionId: string;
19
+ }
20
+ export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
21
+ subscriptionId: string;
22
+ updateSubscriptionInput: UpdateSubscriptionInput;
23
+ }
24
+ /**
25
+ *
26
+ */
27
+ export declare class SubscriptionsPublicApi extends runtime.BaseAPI {
28
+ /**
29
+ *
30
+ */
31
+ createSubscriptionRaw(requestParameters: SubscriptionsPublicApiCreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>>;
32
+ /**
33
+ *
34
+ */
35
+ createSubscription(requestParameters: SubscriptionsPublicApiCreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
36
+ /**
37
+ *
38
+ */
39
+ getSubscriptionRaw(requestParameters: SubscriptionsPublicApiGetSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionDto>>;
40
+ /**
41
+ *
42
+ */
43
+ getSubscription(requestParameters: SubscriptionsPublicApiGetSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDto>;
44
+ /**
45
+ *
46
+ */
47
+ updateSubscriptionRaw(requestParameters: SubscriptionsPublicApiUpdateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
48
+ /**
49
+ *
50
+ */
51
+ updateSubscription(requestParameters: SubscriptionsPublicApiUpdateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
52
+ }
@@ -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,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;