@randock/nameshift-api-client 0.0.191 → 0.0.193

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 (30) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +23 -1
  4. package/dist/apis/AdminApi.js +106 -0
  5. package/dist/models/AccountNotificationDto.d.ts +4 -4
  6. package/dist/models/AccountNotificationDto.js +4 -4
  7. package/dist/models/AdminAccountLoginDto.d.ts +32 -0
  8. package/dist/models/AdminAccountLoginDto.js +51 -0
  9. package/dist/models/SubscriptionDetailsBillingPeriodicityDto.d.ts +46 -0
  10. package/dist/models/SubscriptionDetailsBillingPeriodicityDto.js +63 -0
  11. package/dist/models/SubscriptionDetailsDomainDto.d.ts +44 -0
  12. package/dist/models/SubscriptionDetailsDomainDto.js +59 -0
  13. package/dist/models/SubscriptionDetailsDomainSellerDto.d.ts +45 -0
  14. package/dist/models/SubscriptionDetailsDomainSellerDto.js +60 -0
  15. package/dist/models/SubscriptionDetailsDomainSellerUserDto.d.ts +50 -0
  16. package/dist/models/SubscriptionDetailsDomainSellerUserDto.js +63 -0
  17. package/dist/models/SubscriptionDetailsDto.d.ts +184 -0
  18. package/dist/models/SubscriptionDetailsDto.js +160 -0
  19. package/dist/models/index.d.ts +6 -0
  20. package/dist/models/index.js +6 -0
  21. package/package.json +1 -1
  22. package/src/apis/AdminApi.ts +96 -0
  23. package/src/models/AccountNotificationDto.ts +4 -4
  24. package/src/models/AdminAccountLoginDto.ts +66 -0
  25. package/src/models/SubscriptionDetailsBillingPeriodicityDto.ts +86 -0
  26. package/src/models/SubscriptionDetailsDomainDto.ts +84 -0
  27. package/src/models/SubscriptionDetailsDomainSellerDto.ts +92 -0
  28. package/src/models/SubscriptionDetailsDomainSellerUserDto.ts +93 -0
  29. package/src/models/SubscriptionDetailsDto.ts +328 -0
  30. package/src/models/index.ts +6 -0
@@ -33,6 +33,7 @@ src/models/AccountSettingsLandingDto.ts
33
33
  src/models/AccountSettingsLeaseToOwnConfigurationDto.ts
34
34
  src/models/AccountSettingsSidnDto.ts
35
35
  src/models/AddressDto.ts
36
+ src/models/AdminAccountLoginDto.ts
36
37
  src/models/AdminAccountSettingsInput.ts
37
38
  src/models/AdminGetAllDomainTransfers200Response.ts
38
39
  src/models/BadRequestException.ts
@@ -170,6 +171,11 @@ src/models/StoreUserLocaleInput.ts
170
171
  src/models/SubscriptionBillingPeriodicityDto.ts
171
172
  src/models/SubscriptionCompanyInfoDto.ts
172
173
  src/models/SubscriptionCompanyTaxIdDto.ts
174
+ src/models/SubscriptionDetailsBillingPeriodicityDto.ts
175
+ src/models/SubscriptionDetailsDomainDto.ts
176
+ src/models/SubscriptionDetailsDomainSellerDto.ts
177
+ src/models/SubscriptionDetailsDomainSellerUserDto.ts
178
+ src/models/SubscriptionDetailsDto.ts
173
179
  src/models/SubscriptionDomainDto.ts
174
180
  src/models/SubscriptionDto.ts
175
181
  src/models/SubscriptionListItemDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.191
1
+ ## @randock/nameshift-api-client@0.0.193
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.191 --save
39
+ npm install @randock/nameshift-api-client@0.0.193 --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
- 03746901ad94fc947d652ecd87de2adfe64783f200fc128fbb93594c5b54267ea6cacdd0ce8a021ee16ba058699c143e
47
+ 32e5a699646ffe669eab84b73f2fd38e8705183effdfcf29c6f70da5cf984119d5c10728008ff68995dc7411bc729bd6
@@ -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, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, ListAccounts200Response, ListDomains200Response } from '../models/index';
13
+ import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, ListAccounts200Response, ListDomains200Response, SubscriptionDetailsDto } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -58,6 +58,9 @@ export interface AdminApiGetAllSubscriptionsRequest {
58
58
  limit?: number;
59
59
  sortBy?: Array<string>;
60
60
  }
61
+ export interface AdminApiGetSubscriptionDetailsRequest {
62
+ subscriptionId: string;
63
+ }
61
64
  export interface AdminApiListAccountsRequest {
62
65
  filter?: object;
63
66
  page?: number;
@@ -70,6 +73,9 @@ export interface AdminApiListDomainsRequest {
70
73
  limit?: number;
71
74
  sortBy?: Array<string>;
72
75
  }
76
+ export interface AdminApiLoginAsRequest {
77
+ accountId: string;
78
+ }
73
79
  export interface AdminApiPayDomainTransferSellerInvoiceRequest {
74
80
  transferId: string;
75
81
  invoiceId: string;
@@ -173,6 +179,14 @@ export declare class AdminApi extends runtime.BaseAPI {
173
179
  *
174
180
  */
175
181
  getAllSubscriptions(requestParameters?: AdminApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllSubscriptions200Response>;
182
+ /**
183
+ *
184
+ */
185
+ getSubscriptionDetailsRaw(requestParameters: AdminApiGetSubscriptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionDetailsDto>>;
186
+ /**
187
+ *
188
+ */
189
+ getSubscriptionDetails(requestParameters: AdminApiGetSubscriptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDetailsDto>;
176
190
  /**
177
191
  *
178
192
  */
@@ -189,6 +203,14 @@ export declare class AdminApi extends runtime.BaseAPI {
189
203
  *
190
204
  */
191
205
  listDomains(requestParameters?: AdminApiListDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomains200Response>;
206
+ /**
207
+ *
208
+ */
209
+ loginAsRaw(requestParameters: AdminApiLoginAsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminAccountLoginDto>>;
210
+ /**
211
+ *
212
+ */
213
+ loginAs(requestParameters: AdminApiLoginAsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminAccountLoginDto>;
192
214
  /**
193
215
  *
194
216
  */
@@ -661,6 +661,59 @@ var AdminApi = /** @class */ (function (_super) {
661
661
  });
662
662
  });
663
663
  };
664
+ /**
665
+ *
666
+ */
667
+ AdminApi.prototype.getSubscriptionDetailsRaw = function (requestParameters, initOverrides) {
668
+ return __awaiter(this, void 0, void 0, function () {
669
+ var queryParameters, headerParameters, token, tokenString, response;
670
+ return __generator(this, function (_a) {
671
+ switch (_a.label) {
672
+ case 0:
673
+ if (requestParameters['subscriptionId'] == null) {
674
+ throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling getSubscriptionDetails().');
675
+ }
676
+ queryParameters = {};
677
+ headerParameters = {};
678
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
679
+ token = this.configuration.accessToken;
680
+ return [4 /*yield*/, token("bearer", [])];
681
+ case 1:
682
+ tokenString = _a.sent();
683
+ if (tokenString) {
684
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
685
+ }
686
+ _a.label = 2;
687
+ case 2: return [4 /*yield*/, this.request({
688
+ path: "/admin/subscriptions/{subscriptionId}".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
689
+ method: 'GET',
690
+ headers: headerParameters,
691
+ query: queryParameters,
692
+ }, initOverrides)];
693
+ case 3:
694
+ response = _a.sent();
695
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SubscriptionDetailsDtoFromJSON)(jsonValue); })];
696
+ }
697
+ });
698
+ });
699
+ };
700
+ /**
701
+ *
702
+ */
703
+ AdminApi.prototype.getSubscriptionDetails = function (requestParameters, initOverrides) {
704
+ return __awaiter(this, void 0, void 0, function () {
705
+ var response;
706
+ return __generator(this, function (_a) {
707
+ switch (_a.label) {
708
+ case 0: return [4 /*yield*/, this.getSubscriptionDetailsRaw(requestParameters, initOverrides)];
709
+ case 1:
710
+ response = _a.sent();
711
+ return [4 /*yield*/, response.value()];
712
+ case 2: return [2 /*return*/, _a.sent()];
713
+ }
714
+ });
715
+ });
716
+ };
664
717
  /**
665
718
  *
666
719
  */
@@ -787,6 +840,59 @@ var AdminApi = /** @class */ (function (_super) {
787
840
  });
788
841
  });
789
842
  };
843
+ /**
844
+ *
845
+ */
846
+ AdminApi.prototype.loginAsRaw = function (requestParameters, initOverrides) {
847
+ return __awaiter(this, void 0, void 0, function () {
848
+ var queryParameters, headerParameters, token, tokenString, response;
849
+ return __generator(this, function (_a) {
850
+ switch (_a.label) {
851
+ case 0:
852
+ if (requestParameters['accountId'] == null) {
853
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling loginAs().');
854
+ }
855
+ queryParameters = {};
856
+ headerParameters = {};
857
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
858
+ token = this.configuration.accessToken;
859
+ return [4 /*yield*/, token("bearer", [])];
860
+ case 1:
861
+ tokenString = _a.sent();
862
+ if (tokenString) {
863
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
864
+ }
865
+ _a.label = 2;
866
+ case 2: return [4 /*yield*/, this.request({
867
+ path: "/admin/accounts/{accountId}/login-as".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
868
+ method: 'POST',
869
+ headers: headerParameters,
870
+ query: queryParameters,
871
+ }, initOverrides)];
872
+ case 3:
873
+ response = _a.sent();
874
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AdminAccountLoginDtoFromJSON)(jsonValue); })];
875
+ }
876
+ });
877
+ });
878
+ };
879
+ /**
880
+ *
881
+ */
882
+ AdminApi.prototype.loginAs = function (requestParameters, initOverrides) {
883
+ return __awaiter(this, void 0, void 0, function () {
884
+ var response;
885
+ return __generator(this, function (_a) {
886
+ switch (_a.label) {
887
+ case 0: return [4 /*yield*/, this.loginAsRaw(requestParameters, initOverrides)];
888
+ case 1:
889
+ response = _a.sent();
890
+ return [4 /*yield*/, response.value()];
891
+ case 2: return [2 /*return*/, _a.sent()];
892
+ }
893
+ });
894
+ });
895
+ };
790
896
  /**
791
897
  *
792
898
  */
@@ -54,10 +54,10 @@ export type AccountNotificationDtoLevelEnum = typeof AccountNotificationDtoLevel
54
54
  * @export
55
55
  */
56
56
  export declare const AccountNotificationDtoTypeEnum: {
57
- readonly BILLING_INFORMATION_NOT_CONFIGURED: "account.billing_information.not_configured";
58
- readonly PAYMENT_PROVIDER_NOT_CONFIGURED: "account.payment_provider.not_configured";
59
- readonly PAYMENT_PROVIDER_NOT_ACTIVE: "account.payment_provider.not_active";
60
- readonly PAYMENT_PROVIDER_WAS_CHANGED: "account.payment_provider.was_changed";
57
+ readonly ACCOUNT_BILLING_INFORMATION_NOT_CONFIGURED: "account.billing_information.not_configured";
58
+ readonly ACCOUNT_PAYMENT_PROVIDER_NOT_CONFIGURED: "account.payment_provider.not_configured";
59
+ readonly ACCOUNT_PAYMENT_PROVIDER_NOT_ACTIVE: "account.payment_provider.not_active";
60
+ readonly ACCOUNT_PAYMENT_PROVIDER_WAS_CHANGED: "account.payment_provider.was_changed";
61
61
  };
62
62
  export type AccountNotificationDtoTypeEnum = typeof AccountNotificationDtoTypeEnum[keyof typeof AccountNotificationDtoTypeEnum];
63
63
  /**
@@ -32,10 +32,10 @@ exports.AccountNotificationDtoLevelEnum = {
32
32
  * @export
33
33
  */
34
34
  exports.AccountNotificationDtoTypeEnum = {
35
- BILLING_INFORMATION_NOT_CONFIGURED: 'account.billing_information.not_configured',
36
- PAYMENT_PROVIDER_NOT_CONFIGURED: 'account.payment_provider.not_configured',
37
- PAYMENT_PROVIDER_NOT_ACTIVE: 'account.payment_provider.not_active',
38
- PAYMENT_PROVIDER_WAS_CHANGED: 'account.payment_provider.was_changed'
35
+ ACCOUNT_BILLING_INFORMATION_NOT_CONFIGURED: 'account.billing_information.not_configured',
36
+ ACCOUNT_PAYMENT_PROVIDER_NOT_CONFIGURED: 'account.payment_provider.not_configured',
37
+ ACCOUNT_PAYMENT_PROVIDER_NOT_ACTIVE: 'account.payment_provider.not_active',
38
+ ACCOUNT_PAYMENT_PROVIDER_WAS_CHANGED: 'account.payment_provider.was_changed'
39
39
  };
40
40
  /**
41
41
  * Check if a given object implements the AccountNotificationDto interface.
@@ -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 AdminAccountLoginDto
16
+ */
17
+ export interface AdminAccountLoginDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminAccountLoginDto
22
+ */
23
+ token: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AdminAccountLoginDto interface.
27
+ */
28
+ export declare function instanceOfAdminAccountLoginDto(value: object): value is AdminAccountLoginDto;
29
+ export declare function AdminAccountLoginDtoFromJSON(json: any): AdminAccountLoginDto;
30
+ export declare function AdminAccountLoginDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountLoginDto;
31
+ export declare function AdminAccountLoginDtoToJSON(json: any): AdminAccountLoginDto;
32
+ export declare function AdminAccountLoginDtoToJSONTyped(value?: AdminAccountLoginDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfAdminAccountLoginDto = instanceOfAdminAccountLoginDto;
17
+ exports.AdminAccountLoginDtoFromJSON = AdminAccountLoginDtoFromJSON;
18
+ exports.AdminAccountLoginDtoFromJSONTyped = AdminAccountLoginDtoFromJSONTyped;
19
+ exports.AdminAccountLoginDtoToJSON = AdminAccountLoginDtoToJSON;
20
+ exports.AdminAccountLoginDtoToJSONTyped = AdminAccountLoginDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdminAccountLoginDto interface.
23
+ */
24
+ function instanceOfAdminAccountLoginDto(value) {
25
+ if (!('token' in value) || value['token'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AdminAccountLoginDtoFromJSON(json) {
30
+ return AdminAccountLoginDtoFromJSONTyped(json, false);
31
+ }
32
+ function AdminAccountLoginDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'token': json['token'],
38
+ };
39
+ }
40
+ function AdminAccountLoginDtoToJSON(json) {
41
+ return AdminAccountLoginDtoToJSONTyped(json, false);
42
+ }
43
+ function AdminAccountLoginDtoToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'token': value['token'],
50
+ };
51
+ }
@@ -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 SubscriptionDetailsBillingPeriodicityDto
16
+ */
17
+ export interface SubscriptionDetailsBillingPeriodicityDto {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SubscriptionDetailsBillingPeriodicityDto
22
+ */
23
+ amount: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SubscriptionDetailsBillingPeriodicityDto
28
+ */
29
+ unit: SubscriptionDetailsBillingPeriodicityDtoUnitEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const SubscriptionDetailsBillingPeriodicityDtoUnitEnum: {
35
+ readonly WEEK: "week";
36
+ readonly MONTH: "month";
37
+ };
38
+ export type SubscriptionDetailsBillingPeriodicityDtoUnitEnum = typeof SubscriptionDetailsBillingPeriodicityDtoUnitEnum[keyof typeof SubscriptionDetailsBillingPeriodicityDtoUnitEnum];
39
+ /**
40
+ * Check if a given object implements the SubscriptionDetailsBillingPeriodicityDto interface.
41
+ */
42
+ export declare function instanceOfSubscriptionDetailsBillingPeriodicityDto(value: object): value is SubscriptionDetailsBillingPeriodicityDto;
43
+ export declare function SubscriptionDetailsBillingPeriodicityDtoFromJSON(json: any): SubscriptionDetailsBillingPeriodicityDto;
44
+ export declare function SubscriptionDetailsBillingPeriodicityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDetailsBillingPeriodicityDto;
45
+ export declare function SubscriptionDetailsBillingPeriodicityDtoToJSON(json: any): SubscriptionDetailsBillingPeriodicityDto;
46
+ export declare function SubscriptionDetailsBillingPeriodicityDtoToJSONTyped(value?: SubscriptionDetailsBillingPeriodicityDto | 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.SubscriptionDetailsBillingPeriodicityDtoUnitEnum = void 0;
17
+ exports.instanceOfSubscriptionDetailsBillingPeriodicityDto = instanceOfSubscriptionDetailsBillingPeriodicityDto;
18
+ exports.SubscriptionDetailsBillingPeriodicityDtoFromJSON = SubscriptionDetailsBillingPeriodicityDtoFromJSON;
19
+ exports.SubscriptionDetailsBillingPeriodicityDtoFromJSONTyped = SubscriptionDetailsBillingPeriodicityDtoFromJSONTyped;
20
+ exports.SubscriptionDetailsBillingPeriodicityDtoToJSON = SubscriptionDetailsBillingPeriodicityDtoToJSON;
21
+ exports.SubscriptionDetailsBillingPeriodicityDtoToJSONTyped = SubscriptionDetailsBillingPeriodicityDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SubscriptionDetailsBillingPeriodicityDtoUnitEnum = {
26
+ WEEK: 'week',
27
+ MONTH: 'month'
28
+ };
29
+ /**
30
+ * Check if a given object implements the SubscriptionDetailsBillingPeriodicityDto interface.
31
+ */
32
+ function instanceOfSubscriptionDetailsBillingPeriodicityDto(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 SubscriptionDetailsBillingPeriodicityDtoFromJSON(json) {
40
+ return SubscriptionDetailsBillingPeriodicityDtoFromJSONTyped(json, false);
41
+ }
42
+ function SubscriptionDetailsBillingPeriodicityDtoFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'amount': json['amount'],
48
+ 'unit': json['unit'],
49
+ };
50
+ }
51
+ function SubscriptionDetailsBillingPeriodicityDtoToJSON(json) {
52
+ return SubscriptionDetailsBillingPeriodicityDtoToJSONTyped(json, false);
53
+ }
54
+ function SubscriptionDetailsBillingPeriodicityDtoToJSONTyped(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
+ }
@@ -0,0 +1,44 @@
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 SubscriptionDetailsDomainDto
16
+ */
17
+ export interface SubscriptionDetailsDomainDto {
18
+ /**
19
+ *
20
+ * @type {object}
21
+ * @memberof SubscriptionDetailsDomainDto
22
+ */
23
+ id: object;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SubscriptionDetailsDomainDto
28
+ */
29
+ displayName: string;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof SubscriptionDetailsDomainDto
34
+ */
35
+ deletedAt: Date | null;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SubscriptionDetailsDomainDto interface.
39
+ */
40
+ export declare function instanceOfSubscriptionDetailsDomainDto(value: object): value is SubscriptionDetailsDomainDto;
41
+ export declare function SubscriptionDetailsDomainDtoFromJSON(json: any): SubscriptionDetailsDomainDto;
42
+ export declare function SubscriptionDetailsDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDetailsDomainDto;
43
+ export declare function SubscriptionDetailsDomainDtoToJSON(json: any): SubscriptionDetailsDomainDto;
44
+ export declare function SubscriptionDetailsDomainDtoToJSONTyped(value?: SubscriptionDetailsDomainDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSubscriptionDetailsDomainDto = instanceOfSubscriptionDetailsDomainDto;
17
+ exports.SubscriptionDetailsDomainDtoFromJSON = SubscriptionDetailsDomainDtoFromJSON;
18
+ exports.SubscriptionDetailsDomainDtoFromJSONTyped = SubscriptionDetailsDomainDtoFromJSONTyped;
19
+ exports.SubscriptionDetailsDomainDtoToJSON = SubscriptionDetailsDomainDtoToJSON;
20
+ exports.SubscriptionDetailsDomainDtoToJSONTyped = SubscriptionDetailsDomainDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SubscriptionDetailsDomainDto interface.
23
+ */
24
+ function instanceOfSubscriptionDetailsDomainDto(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('displayName' in value) || value['displayName'] === undefined)
28
+ return false;
29
+ if (!('deletedAt' in value) || value['deletedAt'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function SubscriptionDetailsDomainDtoFromJSON(json) {
34
+ return SubscriptionDetailsDomainDtoFromJSONTyped(json, false);
35
+ }
36
+ function SubscriptionDetailsDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'displayName': json['displayName'],
43
+ 'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
44
+ };
45
+ }
46
+ function SubscriptionDetailsDomainDtoToJSON(json) {
47
+ return SubscriptionDetailsDomainDtoToJSONTyped(json, false);
48
+ }
49
+ function SubscriptionDetailsDomainDtoToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'id': value['id'],
56
+ 'displayName': value['displayName'],
57
+ 'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
58
+ };
59
+ }
@@ -0,0 +1,45 @@
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 { SubscriptionDetailsDomainSellerUserDto } from './SubscriptionDetailsDomainSellerUserDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SubscriptionDetailsDomainSellerDto
17
+ */
18
+ export interface SubscriptionDetailsDomainSellerDto {
19
+ /**
20
+ * The subscription domain seller account ID
21
+ * @type {object}
22
+ * @memberof SubscriptionDetailsDomainSellerDto
23
+ */
24
+ id: object;
25
+ /**
26
+ * The subscription domain seller account identifier
27
+ * @type {object}
28
+ * @memberof SubscriptionDetailsDomainSellerDto
29
+ */
30
+ identifier: object;
31
+ /**
32
+ * The subscription domain seller users information
33
+ * @type {Array<SubscriptionDetailsDomainSellerUserDto>}
34
+ * @memberof SubscriptionDetailsDomainSellerDto
35
+ */
36
+ users: Array<SubscriptionDetailsDomainSellerUserDto>;
37
+ }
38
+ /**
39
+ * Check if a given object implements the SubscriptionDetailsDomainSellerDto interface.
40
+ */
41
+ export declare function instanceOfSubscriptionDetailsDomainSellerDto(value: object): value is SubscriptionDetailsDomainSellerDto;
42
+ export declare function SubscriptionDetailsDomainSellerDtoFromJSON(json: any): SubscriptionDetailsDomainSellerDto;
43
+ export declare function SubscriptionDetailsDomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDetailsDomainSellerDto;
44
+ export declare function SubscriptionDetailsDomainSellerDtoToJSON(json: any): SubscriptionDetailsDomainSellerDto;
45
+ export declare function SubscriptionDetailsDomainSellerDtoToJSONTyped(value?: SubscriptionDetailsDomainSellerDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfSubscriptionDetailsDomainSellerDto = instanceOfSubscriptionDetailsDomainSellerDto;
17
+ exports.SubscriptionDetailsDomainSellerDtoFromJSON = SubscriptionDetailsDomainSellerDtoFromJSON;
18
+ exports.SubscriptionDetailsDomainSellerDtoFromJSONTyped = SubscriptionDetailsDomainSellerDtoFromJSONTyped;
19
+ exports.SubscriptionDetailsDomainSellerDtoToJSON = SubscriptionDetailsDomainSellerDtoToJSON;
20
+ exports.SubscriptionDetailsDomainSellerDtoToJSONTyped = SubscriptionDetailsDomainSellerDtoToJSONTyped;
21
+ var SubscriptionDetailsDomainSellerUserDto_1 = require("./SubscriptionDetailsDomainSellerUserDto");
22
+ /**
23
+ * Check if a given object implements the SubscriptionDetailsDomainSellerDto interface.
24
+ */
25
+ function instanceOfSubscriptionDetailsDomainSellerDto(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('identifier' in value) || value['identifier'] === undefined)
29
+ return false;
30
+ if (!('users' in value) || value['users'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function SubscriptionDetailsDomainSellerDtoFromJSON(json) {
35
+ return SubscriptionDetailsDomainSellerDtoFromJSONTyped(json, false);
36
+ }
37
+ function SubscriptionDetailsDomainSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'],
43
+ 'identifier': json['identifier'],
44
+ 'users': (json['users'].map(SubscriptionDetailsDomainSellerUserDto_1.SubscriptionDetailsDomainSellerUserDtoFromJSON)),
45
+ };
46
+ }
47
+ function SubscriptionDetailsDomainSellerDtoToJSON(json) {
48
+ return SubscriptionDetailsDomainSellerDtoToJSONTyped(json, false);
49
+ }
50
+ function SubscriptionDetailsDomainSellerDtoToJSONTyped(value, ignoreDiscriminator) {
51
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'id': value['id'],
57
+ 'identifier': value['identifier'],
58
+ 'users': (value['users'].map(SubscriptionDetailsDomainSellerUserDto_1.SubscriptionDetailsDomainSellerUserDtoToJSON)),
59
+ };
60
+ }