@randock/nameshift-api-client 0.0.184 → 0.0.186

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 (64) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +27 -1
  4. package/dist/apis/AdminApi.js +119 -0
  5. package/dist/apis/DomainsApi.d.ts +3 -3
  6. package/dist/apis/DomainsApi.js +1 -1
  7. package/dist/apis/DomainsPublicApi.d.ts +1 -1
  8. package/dist/apis/DomainsPublicApi.js +2 -2
  9. package/dist/apis/TasksApi.d.ts +3 -3
  10. package/dist/apis/TasksApi.js +1 -1
  11. package/dist/models/ChangeSubscriptionStatusInput.d.ts +43 -0
  12. package/dist/models/ChangeSubscriptionStatusInput.js +62 -0
  13. package/dist/models/CreateSubscriptionBillingPeriodicityInput.d.ts +46 -0
  14. package/dist/models/CreateSubscriptionBillingPeriodicityInput.js +63 -0
  15. package/dist/models/CreateSubscriptionInput.d.ts +4 -10
  16. package/dist/models/CreateSubscriptionInput.js +8 -13
  17. package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.d.ts +1 -0
  18. package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.js +1 -0
  19. package/dist/models/GetAllSubscriptions200Response.d.ts +47 -0
  20. package/dist/models/GetAllSubscriptions200Response.js +62 -0
  21. package/dist/models/List200Response1.d.ts +3 -3
  22. package/dist/models/List200Response1.js +3 -3
  23. package/dist/models/List200Response2.d.ts +3 -3
  24. package/dist/models/List200Response2.js +3 -3
  25. package/dist/models/SubscriptionBillingPeriodicityDto.d.ts +46 -0
  26. package/dist/models/SubscriptionBillingPeriodicityDto.js +63 -0
  27. package/dist/models/SubscriptionDto.d.ts +5 -10
  28. package/dist/models/SubscriptionDto.js +10 -14
  29. package/dist/models/SubscriptionListItemDto.d.ts +103 -0
  30. package/dist/models/SubscriptionListItemDto.js +105 -0
  31. package/dist/models/SubscriptionListItemDtoBuyerInformation.d.ts +64 -0
  32. package/dist/models/SubscriptionListItemDtoBuyerInformation.js +73 -0
  33. package/dist/models/SubscriptionListItemDtoDomainInformation.d.ts +44 -0
  34. package/dist/models/SubscriptionListItemDtoDomainInformation.js +59 -0
  35. package/dist/models/SubscriptionListItemDtoSellerAccount.d.ts +50 -0
  36. package/dist/models/SubscriptionListItemDtoSellerAccount.js +63 -0
  37. package/dist/models/UpdateSubscriptionBillingPeriodicityInput.d.ts +46 -0
  38. package/dist/models/UpdateSubscriptionBillingPeriodicityInput.js +59 -0
  39. package/dist/models/UpdateSubscriptionInput.d.ts +4 -10
  40. package/dist/models/UpdateSubscriptionInput.js +5 -11
  41. package/dist/models/index.d.ts +9 -0
  42. package/dist/models/index.js +9 -0
  43. package/package.json +1 -1
  44. package/src/apis/AdminApi.ts +118 -0
  45. package/src/apis/DomainsApi.ts +6 -6
  46. package/src/apis/DomainsPublicApi.ts +3 -3
  47. package/src/apis/SubscriptionsPublicApi.ts +0 -3
  48. package/src/apis/TasksApi.ts +6 -6
  49. package/src/models/ChangeSubscriptionStatusInput.ts +80 -0
  50. package/src/models/CreateSubscriptionBillingPeriodicityInput.ts +86 -0
  51. package/src/models/CreateSubscriptionInput.ts +16 -17
  52. package/src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts +1 -0
  53. package/src/models/GetAllSubscriptions200Response.ts +106 -0
  54. package/src/models/List200Response1.ts +10 -10
  55. package/src/models/List200Response2.ts +10 -10
  56. package/src/models/SubscriptionBillingPeriodicityDto.ts +86 -0
  57. package/src/models/SubscriptionDto.ts +18 -18
  58. package/src/models/SubscriptionListItemDto.ts +190 -0
  59. package/src/models/SubscriptionListItemDtoBuyerInformation.ts +126 -0
  60. package/src/models/SubscriptionListItemDtoDomainInformation.ts +84 -0
  61. package/src/models/SubscriptionListItemDtoSellerAccount.ts +93 -0
  62. package/src/models/UpdateSubscriptionBillingPeriodicityInput.ts +84 -0
  63. package/src/models/UpdateSubscriptionInput.ts +14 -17
  64. package/src/models/index.ts +9 -0
@@ -50,6 +50,7 @@ src/models/BuyerLeadListItemDomainDto.ts
50
50
  src/models/BuyerLeadListItemDto.ts
51
51
  src/models/BuyerSecurityUserDto.ts
52
52
  src/models/ChangeOrderStatusInput.ts
53
+ src/models/ChangeSubscriptionStatusInput.ts
53
54
  src/models/ChartDataPoint.ts
54
55
  src/models/CompanyInformationDto.ts
55
56
  src/models/CompanyTaxIdDto.ts
@@ -60,6 +61,7 @@ src/models/CreateLeadInput.ts
60
61
  src/models/CreateLeadMessageInput.ts
61
62
  src/models/CreateManualLeadInput.ts
62
63
  src/models/CreateOrderInput.ts
64
+ src/models/CreateSubscriptionBillingPeriodicityInput.ts
63
65
  src/models/CreateSubscriptionInput.ts
64
66
  src/models/DeleteDomainsInput.ts
65
67
  src/models/DomainDto.ts
@@ -90,6 +92,7 @@ src/models/GetAllDomainTransfers200Response.ts
90
92
  src/models/GetAllInvoices200Response.ts
91
93
  src/models/GetAllOrders200Response.ts
92
94
  src/models/GetAllOwnedDomains200Response.ts
95
+ src/models/GetAllSubscriptions200Response.ts
93
96
  src/models/GetBuyerLeads200Response.ts
94
97
  src/models/GetBuyerTransfers200Response.ts
95
98
  src/models/HttpException.ts
@@ -162,10 +165,15 @@ src/models/SetDomainTransferConfirmationInput.ts
162
165
  src/models/SetNewPasswordInput.ts
163
166
  src/models/StoreBuyerLocaleInput.ts
164
167
  src/models/StoreUserLocaleInput.ts
168
+ src/models/SubscriptionBillingPeriodicityDto.ts
165
169
  src/models/SubscriptionCompanyInfoDto.ts
166
170
  src/models/SubscriptionCompanyTaxIdDto.ts
167
171
  src/models/SubscriptionDomainDto.ts
168
172
  src/models/SubscriptionDto.ts
173
+ src/models/SubscriptionListItemDto.ts
174
+ src/models/SubscriptionListItemDtoBuyerInformation.ts
175
+ src/models/SubscriptionListItemDtoDomainInformation.ts
176
+ src/models/SubscriptionListItemDtoSellerAccount.ts
169
177
  src/models/TaskListDomainDto.ts
170
178
  src/models/TaskListDomainTransferDto.ts
171
179
  src/models/TaskListLeadDto.ts
@@ -175,6 +183,7 @@ src/models/UpdateDomainInput.ts
175
183
  src/models/UpdateDomainTransferAuthCodeInput.ts
176
184
  src/models/UpdateLeadInput.ts
177
185
  src/models/UpdateOrderInput.ts
186
+ src/models/UpdateSubscriptionBillingPeriodicityInput.ts
178
187
  src/models/UpdateSubscriptionInput.ts
179
188
  src/models/UserPasswordResetDto.ts
180
189
  src/models/ValidationError.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.184
1
+ ## @randock/nameshift-api-client@0.0.186
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.184 --save
39
+ npm install @randock/nameshift-api-client@0.0.186 --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
- cd66b42ce8a716d55bbe4cf964a95ac30619be74bf4c6edcc8203bc676dae369925575a1a209119906b6615ed7e0f259
47
+ e143a93606c8dd1e0ea51b206e218d8f181b43d80be3f2016c1f5bd37391a927ec4997e7d78355133f4a00667440b1f1
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountSettingsDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, ListAccounts200Response, ListDomains200Response } from '../models/index';
13
+ import type { AccountSettingsDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, ListAccounts200Response, ListDomains200Response } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -21,6 +21,10 @@ export interface AdminApiChangeOrderStatusRequest {
21
21
  orderId: string;
22
22
  changeOrderStatusInput: ChangeOrderStatusInput;
23
23
  }
24
+ export interface AdminApiChangeSubscriptionStatusRequest {
25
+ subscriptionId: string;
26
+ changeSubscriptionStatusInput: ChangeSubscriptionStatusInput;
27
+ }
24
28
  export interface AdminApiDownloadInvoiceRequest {
25
29
  invoiceId: string;
26
30
  }
@@ -48,6 +52,12 @@ export interface AdminApiGetAllOwnedDomainsRequest {
48
52
  limit?: number;
49
53
  sortBy?: Array<string>;
50
54
  }
55
+ export interface AdminApiGetAllSubscriptionsRequest {
56
+ filter?: object;
57
+ page?: number;
58
+ limit?: number;
59
+ sortBy?: Array<string>;
60
+ }
51
61
  export interface AdminApiListAccountsRequest {
52
62
  filter?: object;
53
63
  page?: number;
@@ -99,6 +109,14 @@ export declare class AdminApi extends runtime.BaseAPI {
99
109
  *
100
110
  */
101
111
  changeOrderStatus(requestParameters: AdminApiChangeOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
112
+ /**
113
+ *
114
+ */
115
+ changeSubscriptionStatusRaw(requestParameters: AdminApiChangeSubscriptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
116
+ /**
117
+ *
118
+ */
119
+ changeSubscriptionStatus(requestParameters: AdminApiChangeSubscriptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
102
120
  /**
103
121
  *
104
122
  */
@@ -147,6 +165,14 @@ export declare class AdminApi extends runtime.BaseAPI {
147
165
  *
148
166
  */
149
167
  getAllOwnedDomains(requestParameters?: AdminApiGetAllOwnedDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllOwnedDomains200Response>;
168
+ /**
169
+ *
170
+ */
171
+ getAllSubscriptionsRaw(requestParameters: AdminApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllSubscriptions200Response>>;
172
+ /**
173
+ *
174
+ */
175
+ getAllSubscriptions(requestParameters?: AdminApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllSubscriptions200Response>;
150
176
  /**
151
177
  *
152
178
  */
@@ -194,6 +194,62 @@ var AdminApi = /** @class */ (function (_super) {
194
194
  });
195
195
  });
196
196
  };
197
+ /**
198
+ *
199
+ */
200
+ AdminApi.prototype.changeSubscriptionStatusRaw = function (requestParameters, initOverrides) {
201
+ return __awaiter(this, void 0, void 0, function () {
202
+ var queryParameters, headerParameters, token, tokenString, response;
203
+ return __generator(this, function (_a) {
204
+ switch (_a.label) {
205
+ case 0:
206
+ if (requestParameters['subscriptionId'] == null) {
207
+ throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling changeSubscriptionStatus().');
208
+ }
209
+ if (requestParameters['changeSubscriptionStatusInput'] == null) {
210
+ throw new runtime.RequiredError('changeSubscriptionStatusInput', 'Required parameter "changeSubscriptionStatusInput" was null or undefined when calling changeSubscriptionStatus().');
211
+ }
212
+ queryParameters = {};
213
+ headerParameters = {};
214
+ headerParameters['Content-Type'] = 'application/json';
215
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
216
+ token = this.configuration.accessToken;
217
+ return [4 /*yield*/, token("bearer", [])];
218
+ case 1:
219
+ tokenString = _a.sent();
220
+ if (tokenString) {
221
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
222
+ }
223
+ _a.label = 2;
224
+ case 2: return [4 /*yield*/, this.request({
225
+ path: "/admin/subscriptions/{subscriptionId}/status".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
226
+ method: 'PATCH',
227
+ headers: headerParameters,
228
+ query: queryParameters,
229
+ body: (0, index_1.ChangeSubscriptionStatusInputToJSON)(requestParameters['changeSubscriptionStatusInput']),
230
+ }, initOverrides)];
231
+ case 3:
232
+ response = _a.sent();
233
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
234
+ }
235
+ });
236
+ });
237
+ };
238
+ /**
239
+ *
240
+ */
241
+ AdminApi.prototype.changeSubscriptionStatus = function (requestParameters, initOverrides) {
242
+ return __awaiter(this, void 0, void 0, function () {
243
+ return __generator(this, function (_a) {
244
+ switch (_a.label) {
245
+ case 0: return [4 /*yield*/, this.changeSubscriptionStatusRaw(requestParameters, initOverrides)];
246
+ case 1:
247
+ _a.sent();
248
+ return [2 /*return*/];
249
+ }
250
+ });
251
+ });
252
+ };
197
253
  /**
198
254
  *
199
255
  */
@@ -542,6 +598,69 @@ var AdminApi = /** @class */ (function (_super) {
542
598
  });
543
599
  });
544
600
  };
601
+ /**
602
+ *
603
+ */
604
+ AdminApi.prototype.getAllSubscriptionsRaw = function (requestParameters, initOverrides) {
605
+ return __awaiter(this, void 0, void 0, function () {
606
+ var queryParameters, headerParameters, token, tokenString, response;
607
+ return __generator(this, function (_a) {
608
+ switch (_a.label) {
609
+ case 0:
610
+ queryParameters = {};
611
+ if (requestParameters['filter'] != null) {
612
+ queryParameters['filter'] = requestParameters['filter'];
613
+ }
614
+ if (requestParameters['page'] != null) {
615
+ queryParameters['page'] = requestParameters['page'];
616
+ }
617
+ if (requestParameters['limit'] != null) {
618
+ queryParameters['limit'] = requestParameters['limit'];
619
+ }
620
+ if (requestParameters['sortBy'] != null) {
621
+ queryParameters['sortBy'] = requestParameters['sortBy'];
622
+ }
623
+ headerParameters = {};
624
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
625
+ token = this.configuration.accessToken;
626
+ return [4 /*yield*/, token("bearer", [])];
627
+ case 1:
628
+ tokenString = _a.sent();
629
+ if (tokenString) {
630
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
631
+ }
632
+ _a.label = 2;
633
+ case 2: return [4 /*yield*/, this.request({
634
+ path: "/admin/subscriptions",
635
+ method: 'GET',
636
+ headers: headerParameters,
637
+ query: queryParameters,
638
+ }, initOverrides)];
639
+ case 3:
640
+ response = _a.sent();
641
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllSubscriptions200ResponseFromJSON)(jsonValue); })];
642
+ }
643
+ });
644
+ });
645
+ };
646
+ /**
647
+ *
648
+ */
649
+ AdminApi.prototype.getAllSubscriptions = function () {
650
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
651
+ var response;
652
+ if (requestParameters === void 0) { requestParameters = {}; }
653
+ return __generator(this, function (_a) {
654
+ switch (_a.label) {
655
+ case 0: return [4 /*yield*/, this.getAllSubscriptionsRaw(requestParameters, initOverrides)];
656
+ case 1:
657
+ response = _a.sent();
658
+ return [4 /*yield*/, response.value()];
659
+ case 2: return [2 /*return*/, _a.sent()];
660
+ }
661
+ });
662
+ });
663
+ };
545
664
  /**
546
665
  *
547
666
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response1, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
13
+ import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
14
14
  export interface DomainsApiBatchImportRequest {
15
15
  file?: Blob | null;
16
16
  domains?: Array<string>;
@@ -143,11 +143,11 @@ export declare class DomainsApi extends runtime.BaseAPI {
143
143
  /**
144
144
  *
145
145
  */
146
- listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>>;
146
+ listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response2>>;
147
147
  /**
148
148
  *
149
149
  */
150
- list(requestParameters?: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1>;
150
+ list(requestParameters?: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response2>;
151
151
  /**
152
152
  *
153
153
  */
@@ -681,7 +681,7 @@ var DomainsApi = /** @class */ (function (_super) {
681
681
  }, initOverrides)];
682
682
  case 3:
683
683
  response = _a.sent();
684
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response1FromJSON)(jsonValue); })];
684
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response2FromJSON)(jsonValue); })];
685
685
  }
686
686
  });
687
687
  });
@@ -14,7 +14,7 @@ import type { IntersectionDomainSalesInformationDtoWithDomainStatsDto, List200Re
14
14
  export interface DomainsPublicApiGetDomainSalesInformationRequest {
15
15
  domainName: string;
16
16
  includeStats?: boolean;
17
- subscriptionPeriodicity?: number;
17
+ installments?: number;
18
18
  }
19
19
  export interface DomainsPublicApiListRequest {
20
20
  filter?: object;
@@ -91,8 +91,8 @@ 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'];
94
+ if (requestParameters['installments'] != null) {
95
+ queryParameters['installments'] = requestParameters['installments'];
96
96
  }
97
97
  headerParameters = {};
98
98
  return [4 /*yield*/, this.request({
@@ -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
  });
@@ -0,0 +1,43 @@
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 ChangeSubscriptionStatusInput
16
+ */
17
+ export interface ChangeSubscriptionStatusInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ChangeSubscriptionStatusInput
22
+ */
23
+ status: ChangeSubscriptionStatusInputStatusEnum;
24
+ }
25
+ /**
26
+ * @export
27
+ */
28
+ export declare const ChangeSubscriptionStatusInputStatusEnum: {
29
+ readonly DRAFT: "draft";
30
+ readonly ACTIVE: "active";
31
+ readonly PAUSED: "paused";
32
+ readonly CANCELLED: "cancelled";
33
+ readonly FINISHED: "finished";
34
+ };
35
+ export type ChangeSubscriptionStatusInputStatusEnum = typeof ChangeSubscriptionStatusInputStatusEnum[keyof typeof ChangeSubscriptionStatusInputStatusEnum];
36
+ /**
37
+ * Check if a given object implements the ChangeSubscriptionStatusInput interface.
38
+ */
39
+ export declare function instanceOfChangeSubscriptionStatusInput(value: object): value is ChangeSubscriptionStatusInput;
40
+ export declare function ChangeSubscriptionStatusInputFromJSON(json: any): ChangeSubscriptionStatusInput;
41
+ export declare function ChangeSubscriptionStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeSubscriptionStatusInput;
42
+ export declare function ChangeSubscriptionStatusInputToJSON(json: any): ChangeSubscriptionStatusInput;
43
+ export declare function ChangeSubscriptionStatusInputToJSONTyped(value?: ChangeSubscriptionStatusInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.ChangeSubscriptionStatusInputStatusEnum = void 0;
17
+ exports.instanceOfChangeSubscriptionStatusInput = instanceOfChangeSubscriptionStatusInput;
18
+ exports.ChangeSubscriptionStatusInputFromJSON = ChangeSubscriptionStatusInputFromJSON;
19
+ exports.ChangeSubscriptionStatusInputFromJSONTyped = ChangeSubscriptionStatusInputFromJSONTyped;
20
+ exports.ChangeSubscriptionStatusInputToJSON = ChangeSubscriptionStatusInputToJSON;
21
+ exports.ChangeSubscriptionStatusInputToJSONTyped = ChangeSubscriptionStatusInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ChangeSubscriptionStatusInputStatusEnum = {
26
+ DRAFT: 'draft',
27
+ ACTIVE: 'active',
28
+ PAUSED: 'paused',
29
+ CANCELLED: 'cancelled',
30
+ FINISHED: 'finished'
31
+ };
32
+ /**
33
+ * Check if a given object implements the ChangeSubscriptionStatusInput interface.
34
+ */
35
+ function instanceOfChangeSubscriptionStatusInput(value) {
36
+ if (!('status' in value) || value['status'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function ChangeSubscriptionStatusInputFromJSON(json) {
41
+ return ChangeSubscriptionStatusInputFromJSONTyped(json, false);
42
+ }
43
+ function ChangeSubscriptionStatusInputFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'status': json['status'],
49
+ };
50
+ }
51
+ function ChangeSubscriptionStatusInputToJSON(json) {
52
+ return ChangeSubscriptionStatusInputToJSONTyped(json, false);
53
+ }
54
+ function ChangeSubscriptionStatusInputToJSONTyped(value, ignoreDiscriminator) {
55
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'status': value['status'],
61
+ };
62
+ }
@@ -0,0 +1,46 @@
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 CreateSubscriptionBillingPeriodicityInput
16
+ */
17
+ export interface CreateSubscriptionBillingPeriodicityInput {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof CreateSubscriptionBillingPeriodicityInput
22
+ */
23
+ amount: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreateSubscriptionBillingPeriodicityInput
28
+ */
29
+ unit: CreateSubscriptionBillingPeriodicityInputUnitEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const CreateSubscriptionBillingPeriodicityInputUnitEnum: {
35
+ readonly WEEK: "week";
36
+ readonly MONTH: "month";
37
+ };
38
+ export type CreateSubscriptionBillingPeriodicityInputUnitEnum = typeof CreateSubscriptionBillingPeriodicityInputUnitEnum[keyof typeof CreateSubscriptionBillingPeriodicityInputUnitEnum];
39
+ /**
40
+ * Check if a given object implements the CreateSubscriptionBillingPeriodicityInput interface.
41
+ */
42
+ export declare function instanceOfCreateSubscriptionBillingPeriodicityInput(value: object): value is CreateSubscriptionBillingPeriodicityInput;
43
+ export declare function CreateSubscriptionBillingPeriodicityInputFromJSON(json: any): CreateSubscriptionBillingPeriodicityInput;
44
+ export declare function CreateSubscriptionBillingPeriodicityInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscriptionBillingPeriodicityInput;
45
+ export declare function CreateSubscriptionBillingPeriodicityInputToJSON(json: any): CreateSubscriptionBillingPeriodicityInput;
46
+ export declare function CreateSubscriptionBillingPeriodicityInputToJSONTyped(value?: CreateSubscriptionBillingPeriodicityInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.CreateSubscriptionBillingPeriodicityInputUnitEnum = void 0;
17
+ exports.instanceOfCreateSubscriptionBillingPeriodicityInput = instanceOfCreateSubscriptionBillingPeriodicityInput;
18
+ exports.CreateSubscriptionBillingPeriodicityInputFromJSON = CreateSubscriptionBillingPeriodicityInputFromJSON;
19
+ exports.CreateSubscriptionBillingPeriodicityInputFromJSONTyped = CreateSubscriptionBillingPeriodicityInputFromJSONTyped;
20
+ exports.CreateSubscriptionBillingPeriodicityInputToJSON = CreateSubscriptionBillingPeriodicityInputToJSON;
21
+ exports.CreateSubscriptionBillingPeriodicityInputToJSONTyped = CreateSubscriptionBillingPeriodicityInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CreateSubscriptionBillingPeriodicityInputUnitEnum = {
26
+ WEEK: 'week',
27
+ MONTH: 'month'
28
+ };
29
+ /**
30
+ * Check if a given object implements the CreateSubscriptionBillingPeriodicityInput interface.
31
+ */
32
+ function instanceOfCreateSubscriptionBillingPeriodicityInput(value) {
33
+ if (!('amount' in value) || value['amount'] === undefined)
34
+ return false;
35
+ if (!('unit' in value) || value['unit'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function CreateSubscriptionBillingPeriodicityInputFromJSON(json) {
40
+ return CreateSubscriptionBillingPeriodicityInputFromJSONTyped(json, false);
41
+ }
42
+ function CreateSubscriptionBillingPeriodicityInputFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'amount': json['amount'],
48
+ 'unit': json['unit'],
49
+ };
50
+ }
51
+ function CreateSubscriptionBillingPeriodicityInputToJSON(json) {
52
+ return CreateSubscriptionBillingPeriodicityInputToJSONTyped(json, false);
53
+ }
54
+ function CreateSubscriptionBillingPeriodicityInputToJSONTyped(value, ignoreDiscriminator) {
55
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'amount': value['amount'],
61
+ 'unit': value['unit'],
62
+ };
63
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { CreateSubscriptionBillingPeriodicityInput } from './CreateSubscriptionBillingPeriodicityInput';
12
13
  import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
13
14
  /**
14
15
  *
@@ -27,13 +28,13 @@ export interface CreateSubscriptionInput {
27
28
  * @type {number}
28
29
  * @memberof CreateSubscriptionInput
29
30
  */
30
- periodicity: number;
31
+ installments: number;
31
32
  /**
32
33
  *
33
- * @type {string}
34
+ * @type {CreateSubscriptionBillingPeriodicityInput}
34
35
  * @memberof CreateSubscriptionInput
35
36
  */
36
- periodicityUnit: CreateSubscriptionInputPeriodicityUnitEnum;
37
+ billingPeriodicity: CreateSubscriptionBillingPeriodicityInput;
37
38
  /**
38
39
  *
39
40
  * @type {string}
@@ -107,13 +108,6 @@ export interface CreateSubscriptionInput {
107
108
  */
108
109
  companyInfo?: SubscriptionCompanyInfoDto | null;
109
110
  }
110
- /**
111
- * @export
112
- */
113
- export declare const CreateSubscriptionInputPeriodicityUnitEnum: {
114
- readonly MONTH: "month";
115
- };
116
- export type CreateSubscriptionInputPeriodicityUnitEnum = typeof CreateSubscriptionInputPeriodicityUnitEnum[keyof typeof CreateSubscriptionInputPeriodicityUnitEnum];
117
111
  /**
118
112
  * @export
119
113
  */
@@ -13,19 +13,14 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateSubscriptionInputSubscriptionTypeEnum = exports.CreateSubscriptionInputPeriodicityUnitEnum = void 0;
16
+ exports.CreateSubscriptionInputSubscriptionTypeEnum = void 0;
17
17
  exports.instanceOfCreateSubscriptionInput = instanceOfCreateSubscriptionInput;
18
18
  exports.CreateSubscriptionInputFromJSON = CreateSubscriptionInputFromJSON;
19
19
  exports.CreateSubscriptionInputFromJSONTyped = CreateSubscriptionInputFromJSONTyped;
20
20
  exports.CreateSubscriptionInputToJSON = CreateSubscriptionInputToJSON;
21
21
  exports.CreateSubscriptionInputToJSONTyped = CreateSubscriptionInputToJSONTyped;
22
+ var CreateSubscriptionBillingPeriodicityInput_1 = require("./CreateSubscriptionBillingPeriodicityInput");
22
23
  var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
23
- /**
24
- * @export
25
- */
26
- exports.CreateSubscriptionInputPeriodicityUnitEnum = {
27
- MONTH: 'month'
28
- };
29
24
  /**
30
25
  * @export
31
26
  */
@@ -39,9 +34,9 @@ exports.CreateSubscriptionInputSubscriptionTypeEnum = {
39
34
  function instanceOfCreateSubscriptionInput(value) {
40
35
  if (!('locale' in value) || value['locale'] === undefined)
41
36
  return false;
42
- if (!('periodicity' in value) || value['periodicity'] === undefined)
37
+ if (!('installments' in value) || value['installments'] === undefined)
43
38
  return false;
44
- if (!('periodicityUnit' in value) || value['periodicityUnit'] === undefined)
39
+ if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined)
45
40
  return false;
46
41
  if (!('domainName' in value) || value['domainName'] === undefined)
47
42
  return false;
@@ -58,8 +53,8 @@ function CreateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
58
53
  }
59
54
  return {
60
55
  'locale': json['locale'],
61
- 'periodicity': json['periodicity'],
62
- 'periodicityUnit': json['periodicityUnit'],
56
+ 'installments': json['installments'],
57
+ 'billingPeriodicity': (0, CreateSubscriptionBillingPeriodicityInput_1.CreateSubscriptionBillingPeriodicityInputFromJSON)(json['billingPeriodicity']),
63
58
  'domainName': json['domainName'],
64
59
  'subscriptionType': json['subscriptionType'],
65
60
  'email': json['email'] == null ? undefined : json['email'],
@@ -84,8 +79,8 @@ function CreateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
84
79
  }
85
80
  return {
86
81
  'locale': value['locale'],
87
- 'periodicity': value['periodicity'],
88
- 'periodicityUnit': value['periodicityUnit'],
82
+ 'installments': value['installments'],
83
+ 'billingPeriodicity': (0, CreateSubscriptionBillingPeriodicityInput_1.CreateSubscriptionBillingPeriodicityInputToJSON)(value['billingPeriodicity']),
89
84
  'domainName': value['domainName'],
90
85
  'subscriptionType': value['subscriptionType'],
91
86
  'email': value['email'],