@randock/nameshift-api-client 0.0.191 → 0.0.192

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.
@@ -170,6 +170,11 @@ src/models/StoreUserLocaleInput.ts
170
170
  src/models/SubscriptionBillingPeriodicityDto.ts
171
171
  src/models/SubscriptionCompanyInfoDto.ts
172
172
  src/models/SubscriptionCompanyTaxIdDto.ts
173
+ src/models/SubscriptionDetailsBillingPeriodicityDto.ts
174
+ src/models/SubscriptionDetailsDomainDto.ts
175
+ src/models/SubscriptionDetailsDomainSellerDto.ts
176
+ src/models/SubscriptionDetailsDomainSellerUserDto.ts
177
+ src/models/SubscriptionDetailsDto.ts
173
178
  src/models/SubscriptionDomainDto.ts
174
179
  src/models/SubscriptionDto.ts
175
180
  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.192
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.192 --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
+ abe60b5df2a4c9ea0d288199d037cc2548c801e1b522d6d1909d974d7180bb7ed946d2300e1e1595d39e3e7b7f72e835
@@ -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, 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;
@@ -173,6 +176,14 @@ export declare class AdminApi extends runtime.BaseAPI {
173
176
  *
174
177
  */
175
178
  getAllSubscriptions(requestParameters?: AdminApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllSubscriptions200Response>;
179
+ /**
180
+ *
181
+ */
182
+ getSubscriptionDetailsRaw(requestParameters: AdminApiGetSubscriptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionDetailsDto>>;
183
+ /**
184
+ *
185
+ */
186
+ getSubscriptionDetails(requestParameters: AdminApiGetSubscriptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDetailsDto>;
176
187
  /**
177
188
  *
178
189
  */
@@ -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
  */
@@ -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,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
+ }
@@ -0,0 +1,50 @@
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 SubscriptionDetailsDomainSellerUserDto
16
+ */
17
+ export interface SubscriptionDetailsDomainSellerUserDto {
18
+ /**
19
+ * The order seller account user first name
20
+ * @type {string}
21
+ * @memberof SubscriptionDetailsDomainSellerUserDto
22
+ */
23
+ firstName: string;
24
+ /**
25
+ * The order seller account user last name
26
+ * @type {string}
27
+ * @memberof SubscriptionDetailsDomainSellerUserDto
28
+ */
29
+ lastName: string;
30
+ /**
31
+ * The order seller account user email
32
+ * @type {string}
33
+ * @memberof SubscriptionDetailsDomainSellerUserDto
34
+ */
35
+ email: string;
36
+ /**
37
+ * The order seller account user phone number
38
+ * @type {string}
39
+ * @memberof SubscriptionDetailsDomainSellerUserDto
40
+ */
41
+ phoneNumber: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the SubscriptionDetailsDomainSellerUserDto interface.
45
+ */
46
+ export declare function instanceOfSubscriptionDetailsDomainSellerUserDto(value: object): value is SubscriptionDetailsDomainSellerUserDto;
47
+ export declare function SubscriptionDetailsDomainSellerUserDtoFromJSON(json: any): SubscriptionDetailsDomainSellerUserDto;
48
+ export declare function SubscriptionDetailsDomainSellerUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDetailsDomainSellerUserDto;
49
+ export declare function SubscriptionDetailsDomainSellerUserDtoToJSON(json: any): SubscriptionDetailsDomainSellerUserDto;
50
+ export declare function SubscriptionDetailsDomainSellerUserDtoToJSONTyped(value?: SubscriptionDetailsDomainSellerUserDto | 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.instanceOfSubscriptionDetailsDomainSellerUserDto = instanceOfSubscriptionDetailsDomainSellerUserDto;
17
+ exports.SubscriptionDetailsDomainSellerUserDtoFromJSON = SubscriptionDetailsDomainSellerUserDtoFromJSON;
18
+ exports.SubscriptionDetailsDomainSellerUserDtoFromJSONTyped = SubscriptionDetailsDomainSellerUserDtoFromJSONTyped;
19
+ exports.SubscriptionDetailsDomainSellerUserDtoToJSON = SubscriptionDetailsDomainSellerUserDtoToJSON;
20
+ exports.SubscriptionDetailsDomainSellerUserDtoToJSONTyped = SubscriptionDetailsDomainSellerUserDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SubscriptionDetailsDomainSellerUserDto interface.
23
+ */
24
+ function instanceOfSubscriptionDetailsDomainSellerUserDto(value) {
25
+ if (!('firstName' in value) || value['firstName'] === undefined)
26
+ return false;
27
+ if (!('lastName' in value) || value['lastName'] === undefined)
28
+ return false;
29
+ if (!('email' in value) || value['email'] === undefined)
30
+ return false;
31
+ if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function SubscriptionDetailsDomainSellerUserDtoFromJSON(json) {
36
+ return SubscriptionDetailsDomainSellerUserDtoFromJSONTyped(json, false);
37
+ }
38
+ function SubscriptionDetailsDomainSellerUserDtoFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'firstName': json['firstName'],
44
+ 'lastName': json['lastName'],
45
+ 'email': json['email'],
46
+ 'phoneNumber': json['phoneNumber'],
47
+ };
48
+ }
49
+ function SubscriptionDetailsDomainSellerUserDtoToJSON(json) {
50
+ return SubscriptionDetailsDomainSellerUserDtoToJSONTyped(json, false);
51
+ }
52
+ function SubscriptionDetailsDomainSellerUserDtoToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'firstName': value['firstName'],
59
+ 'lastName': value['lastName'],
60
+ 'email': value['email'],
61
+ 'phoneNumber': value['phoneNumber'],
62
+ };
63
+ }