@randock/nameshift-api-client 0.0.183 → 0.0.185

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +9 -1
  4. package/dist/apis/AccountsApi.js +50 -0
  5. package/dist/apis/AdminApi.d.ts +27 -1
  6. package/dist/apis/AdminApi.js +119 -0
  7. package/dist/apis/DomainsApi.d.ts +3 -3
  8. package/dist/apis/DomainsApi.js +1 -1
  9. package/dist/apis/DomainsPublicApi.d.ts +1 -0
  10. package/dist/apis/DomainsPublicApi.js +3 -0
  11. package/dist/apis/SubscriptionsPublicApi.d.ts +52 -0
  12. package/dist/apis/SubscriptionsPublicApi.js +217 -0
  13. package/dist/apis/TasksApi.d.ts +3 -3
  14. package/dist/apis/TasksApi.js +1 -1
  15. package/dist/apis/index.d.ts +1 -0
  16. package/dist/apis/index.js +1 -0
  17. package/dist/models/AccountSettingsDto.d.ts +21 -0
  18. package/dist/models/AccountSettingsDto.js +15 -0
  19. package/dist/models/AccountSettingsInput.d.ts +7 -0
  20. package/dist/models/AccountSettingsInput.js +3 -0
  21. package/dist/models/AccountSettingsLandingDto.d.ts +38 -0
  22. package/dist/models/AccountSettingsLandingDto.js +55 -0
  23. package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.d.ts +51 -0
  24. package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.js +64 -0
  25. package/dist/models/AccountSettingsSidnDto.d.ts +32 -0
  26. package/dist/models/AccountSettingsSidnDto.js +51 -0
  27. package/dist/models/ChangeSubscriptionStatusInput.d.ts +42 -0
  28. package/dist/models/ChangeSubscriptionStatusInput.js +61 -0
  29. package/dist/models/CreateSubscriptionInput.d.ts +132 -0
  30. package/dist/models/CreateSubscriptionInput.js +102 -0
  31. package/dist/models/DomainDto.d.ts +7 -0
  32. package/dist/models/DomainDto.js +5 -0
  33. package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.d.ts +57 -0
  34. package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.js +68 -0
  35. package/dist/models/GetAllSubscriptions200Response.d.ts +47 -0
  36. package/dist/models/GetAllSubscriptions200Response.js +62 -0
  37. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
  38. package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
  39. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
  40. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
  41. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +7 -0
  42. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +5 -0
  43. package/dist/models/LeaseToOwnConfigurationDto.d.ts +51 -0
  44. package/dist/models/LeaseToOwnConfigurationDto.js +64 -0
  45. package/dist/models/LeaseToOwnConfigurationInput.d.ts +44 -0
  46. package/dist/models/LeaseToOwnConfigurationInput.js +53 -0
  47. package/dist/models/LeaseToOwnConfigurationPresetsDto.d.ts +44 -0
  48. package/dist/models/LeaseToOwnConfigurationPresetsDto.js +59 -0
  49. package/dist/models/List200Response1.d.ts +3 -3
  50. package/dist/models/List200Response1.js +3 -3
  51. package/dist/models/List200Response2.d.ts +3 -3
  52. package/dist/models/List200Response2.js +3 -3
  53. package/dist/models/SubscriptionCompanyInfoDto.d.ts +39 -0
  54. package/dist/models/SubscriptionCompanyInfoDto.js +56 -0
  55. package/dist/models/SubscriptionCompanyTaxIdDto.d.ts +44 -0
  56. package/dist/models/SubscriptionCompanyTaxIdDto.js +59 -0
  57. package/dist/models/SubscriptionDomainDto.d.ts +38 -0
  58. package/dist/models/SubscriptionDomainDto.js +55 -0
  59. package/dist/models/SubscriptionDto.d.ts +165 -0
  60. package/dist/models/SubscriptionDto.js +148 -0
  61. package/dist/models/SubscriptionListItemDto.d.ts +102 -0
  62. package/dist/models/SubscriptionListItemDto.js +104 -0
  63. package/dist/models/SubscriptionListItemDtoBuyerInformation.d.ts +64 -0
  64. package/dist/models/SubscriptionListItemDtoBuyerInformation.js +73 -0
  65. package/dist/models/SubscriptionListItemDtoDomainInformation.d.ts +44 -0
  66. package/dist/models/SubscriptionListItemDtoDomainInformation.js +59 -0
  67. package/dist/models/SubscriptionListItemDtoSellerAccount.d.ts +50 -0
  68. package/dist/models/SubscriptionListItemDtoSellerAccount.js +63 -0
  69. package/dist/models/UpdateDomainInput.d.ts +7 -0
  70. package/dist/models/UpdateDomainInput.js +3 -0
  71. package/dist/models/UpdateSubscriptionInput.d.ts +112 -0
  72. package/dist/models/UpdateSubscriptionInput.js +81 -0
  73. package/dist/models/WithSettingsInner.d.ts +7 -0
  74. package/dist/models/WithSettingsInner.js +5 -0
  75. package/dist/models/index.d.ts +19 -0
  76. package/dist/models/index.js +19 -0
  77. package/package.json +1 -1
  78. package/src/apis/AccountsApi.ts +37 -0
  79. package/src/apis/AdminApi.ts +118 -0
  80. package/src/apis/DomainsApi.ts +9 -6
  81. package/src/apis/DomainsPublicApi.ts +5 -0
  82. package/src/apis/SubscriptionsPublicApi.ts +175 -0
  83. package/src/apis/TasksApi.ts +6 -6
  84. package/src/apis/index.ts +1 -0
  85. package/src/models/AccountSettingsDto.ts +48 -0
  86. package/src/models/AccountSettingsInput.ts +15 -0
  87. package/src/models/AccountSettingsLandingDto.ts +75 -0
  88. package/src/models/AccountSettingsLeaseToOwnConfigurationDto.ts +101 -0
  89. package/src/models/AccountSettingsSidnDto.ts +66 -0
  90. package/src/models/ChangeSubscriptionStatusInput.ts +79 -0
  91. package/src/models/CreateSubscriptionInput.ts +209 -0
  92. package/src/models/DomainDto.ts +16 -0
  93. package/src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts +110 -0
  94. package/src/models/GetAllSubscriptions200Response.ts +106 -0
  95. package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
  96. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
  97. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +16 -0
  98. package/src/models/LeaseToOwnConfigurationDto.ts +101 -0
  99. package/src/models/LeaseToOwnConfigurationInput.ts +81 -0
  100. package/src/models/LeaseToOwnConfigurationPresetsDto.ts +84 -0
  101. package/src/models/List200Response1.ts +10 -10
  102. package/src/models/List200Response2.ts +10 -10
  103. package/src/models/SubscriptionCompanyInfoDto.ts +83 -0
  104. package/src/models/SubscriptionCompanyTaxIdDto.ts +84 -0
  105. package/src/models/SubscriptionDomainDto.ts +75 -0
  106. package/src/models/SubscriptionDto.ts +292 -0
  107. package/src/models/SubscriptionListItemDto.ts +189 -0
  108. package/src/models/SubscriptionListItemDtoBuyerInformation.ts +126 -0
  109. package/src/models/SubscriptionListItemDtoDomainInformation.ts +84 -0
  110. package/src/models/SubscriptionListItemDtoSellerAccount.ts +93 -0
  111. package/src/models/UpdateDomainInput.ts +15 -0
  112. package/src/models/UpdateSubscriptionInput.ts +179 -0
  113. package/src/models/WithSettingsInner.ts +16 -0
  114. package/src/models/index.ts +19 -0
@@ -0,0 +1,104 @@
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.SubscriptionListItemDtoTypeEnum = exports.SubscriptionListItemDtoStatusEnum = void 0;
17
+ exports.instanceOfSubscriptionListItemDto = instanceOfSubscriptionListItemDto;
18
+ exports.SubscriptionListItemDtoFromJSON = SubscriptionListItemDtoFromJSON;
19
+ exports.SubscriptionListItemDtoFromJSONTyped = SubscriptionListItemDtoFromJSONTyped;
20
+ exports.SubscriptionListItemDtoToJSON = SubscriptionListItemDtoToJSON;
21
+ exports.SubscriptionListItemDtoToJSONTyped = SubscriptionListItemDtoToJSONTyped;
22
+ var SubscriptionListItemDtoBuyerInformation_1 = require("./SubscriptionListItemDtoBuyerInformation");
23
+ var SubscriptionListItemDtoSellerAccount_1 = require("./SubscriptionListItemDtoSellerAccount");
24
+ var MoneyDto_1 = require("./MoneyDto");
25
+ var SubscriptionListItemDtoDomainInformation_1 = require("./SubscriptionListItemDtoDomainInformation");
26
+ /**
27
+ * @export
28
+ */
29
+ exports.SubscriptionListItemDtoStatusEnum = {
30
+ DRAFT: 'draft',
31
+ ACTIVE: 'active',
32
+ PAUSED: 'paused',
33
+ CANCELLED: 'cancelled'
34
+ };
35
+ /**
36
+ * @export
37
+ */
38
+ exports.SubscriptionListItemDtoTypeEnum = {
39
+ RENT: 'rent',
40
+ LEASE_TO_OWN: 'lease_to_own'
41
+ };
42
+ /**
43
+ * Check if a given object implements the SubscriptionListItemDto interface.
44
+ */
45
+ function instanceOfSubscriptionListItemDto(value) {
46
+ if (!('id' in value) || value['id'] === undefined)
47
+ return false;
48
+ if (!('status' in value) || value['status'] === undefined)
49
+ return false;
50
+ if (!('type' in value) || value['type'] === undefined)
51
+ return false;
52
+ if (!('startedAt' in value) || value['startedAt'] === undefined)
53
+ return false;
54
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
55
+ return false;
56
+ if (!('domain' in value) || value['domain'] === undefined)
57
+ return false;
58
+ if (!('sellerAccount' in value) || value['sellerAccount'] === undefined)
59
+ return false;
60
+ if (!('buyerInformation' in value) || value['buyerInformation'] === undefined)
61
+ return false;
62
+ if (!('basePrice' in value) || value['basePrice'] === undefined)
63
+ return false;
64
+ return true;
65
+ }
66
+ function SubscriptionListItemDtoFromJSON(json) {
67
+ return SubscriptionListItemDtoFromJSONTyped(json, false);
68
+ }
69
+ function SubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+ 'id': json['id'],
75
+ 'status': json['status'],
76
+ 'type': json['type'],
77
+ 'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
78
+ 'createdAt': (new Date(json['createdAt'])),
79
+ 'domain': (0, SubscriptionListItemDtoDomainInformation_1.SubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
80
+ 'sellerAccount': (0, SubscriptionListItemDtoSellerAccount_1.SubscriptionListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
81
+ 'buyerInformation': (0, SubscriptionListItemDtoBuyerInformation_1.SubscriptionListItemDtoBuyerInformationFromJSON)(json['buyerInformation']),
82
+ 'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
83
+ };
84
+ }
85
+ function SubscriptionListItemDtoToJSON(json) {
86
+ return SubscriptionListItemDtoToJSONTyped(json, false);
87
+ }
88
+ function SubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
89
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
90
+ if (value == null) {
91
+ return value;
92
+ }
93
+ return {
94
+ 'id': value['id'],
95
+ 'status': value['status'],
96
+ 'type': value['type'],
97
+ 'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
98
+ 'createdAt': ((value['createdAt']).toISOString()),
99
+ 'domain': (0, SubscriptionListItemDtoDomainInformation_1.SubscriptionListItemDtoDomainInformationToJSON)(value['domain']),
100
+ 'sellerAccount': (0, SubscriptionListItemDtoSellerAccount_1.SubscriptionListItemDtoSellerAccountToJSON)(value['sellerAccount']),
101
+ 'buyerInformation': (0, SubscriptionListItemDtoBuyerInformation_1.SubscriptionListItemDtoBuyerInformationToJSON)(value['buyerInformation']),
102
+ 'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
103
+ };
104
+ }
@@ -0,0 +1,64 @@
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 { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
13
+ import type { AddressDto } from './AddressDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SubscriptionListItemDtoBuyerInformation
18
+ */
19
+ export interface SubscriptionListItemDtoBuyerInformation {
20
+ /**
21
+ * The subscription buyer first name
22
+ * @type {string}
23
+ * @memberof SubscriptionListItemDtoBuyerInformation
24
+ */
25
+ firstName: string | null;
26
+ /**
27
+ * The subscription buyer last name
28
+ * @type {string}
29
+ * @memberof SubscriptionListItemDtoBuyerInformation
30
+ */
31
+ lastName: string | null;
32
+ /**
33
+ * The subscription buyer email
34
+ * @type {string}
35
+ * @memberof SubscriptionListItemDtoBuyerInformation
36
+ */
37
+ email: string;
38
+ /**
39
+ * The subscription buyer phone
40
+ * @type {string}
41
+ * @memberof SubscriptionListItemDtoBuyerInformation
42
+ */
43
+ phone: string | null;
44
+ /**
45
+ * The subscription buyer address
46
+ * @type {AddressDto}
47
+ * @memberof SubscriptionListItemDtoBuyerInformation
48
+ */
49
+ address: AddressDto | null;
50
+ /**
51
+ * The subscription buyer company information
52
+ * @type {SubscriptionCompanyInfoDto}
53
+ * @memberof SubscriptionListItemDtoBuyerInformation
54
+ */
55
+ companyInfo: SubscriptionCompanyInfoDto | null;
56
+ }
57
+ /**
58
+ * Check if a given object implements the SubscriptionListItemDtoBuyerInformation interface.
59
+ */
60
+ export declare function instanceOfSubscriptionListItemDtoBuyerInformation(value: object): value is SubscriptionListItemDtoBuyerInformation;
61
+ export declare function SubscriptionListItemDtoBuyerInformationFromJSON(json: any): SubscriptionListItemDtoBuyerInformation;
62
+ export declare function SubscriptionListItemDtoBuyerInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDtoBuyerInformation;
63
+ export declare function SubscriptionListItemDtoBuyerInformationToJSON(json: any): SubscriptionListItemDtoBuyerInformation;
64
+ export declare function SubscriptionListItemDtoBuyerInformationToJSONTyped(value?: SubscriptionListItemDtoBuyerInformation | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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.instanceOfSubscriptionListItemDtoBuyerInformation = instanceOfSubscriptionListItemDtoBuyerInformation;
17
+ exports.SubscriptionListItemDtoBuyerInformationFromJSON = SubscriptionListItemDtoBuyerInformationFromJSON;
18
+ exports.SubscriptionListItemDtoBuyerInformationFromJSONTyped = SubscriptionListItemDtoBuyerInformationFromJSONTyped;
19
+ exports.SubscriptionListItemDtoBuyerInformationToJSON = SubscriptionListItemDtoBuyerInformationToJSON;
20
+ exports.SubscriptionListItemDtoBuyerInformationToJSONTyped = SubscriptionListItemDtoBuyerInformationToJSONTyped;
21
+ var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
22
+ var AddressDto_1 = require("./AddressDto");
23
+ /**
24
+ * Check if a given object implements the SubscriptionListItemDtoBuyerInformation interface.
25
+ */
26
+ function instanceOfSubscriptionListItemDtoBuyerInformation(value) {
27
+ if (!('firstName' in value) || value['firstName'] === undefined)
28
+ return false;
29
+ if (!('lastName' in value) || value['lastName'] === undefined)
30
+ return false;
31
+ if (!('email' in value) || value['email'] === undefined)
32
+ return false;
33
+ if (!('phone' in value) || value['phone'] === undefined)
34
+ return false;
35
+ if (!('address' in value) || value['address'] === undefined)
36
+ return false;
37
+ if (!('companyInfo' in value) || value['companyInfo'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function SubscriptionListItemDtoBuyerInformationFromJSON(json) {
42
+ return SubscriptionListItemDtoBuyerInformationFromJSONTyped(json, false);
43
+ }
44
+ function SubscriptionListItemDtoBuyerInformationFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'firstName': json['firstName'],
50
+ 'lastName': json['lastName'],
51
+ 'email': json['email'],
52
+ 'phone': json['phone'],
53
+ 'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
54
+ 'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
55
+ };
56
+ }
57
+ function SubscriptionListItemDtoBuyerInformationToJSON(json) {
58
+ return SubscriptionListItemDtoBuyerInformationToJSONTyped(json, false);
59
+ }
60
+ function SubscriptionListItemDtoBuyerInformationToJSONTyped(value, ignoreDiscriminator) {
61
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'firstName': value['firstName'],
67
+ 'lastName': value['lastName'],
68
+ 'email': value['email'],
69
+ 'phone': value['phone'],
70
+ 'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
71
+ 'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
72
+ };
73
+ }
@@ -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 SubscriptionListItemDtoDomainInformation
16
+ */
17
+ export interface SubscriptionListItemDtoDomainInformation {
18
+ /**
19
+ * The subscription domain TLD
20
+ * @type {string}
21
+ * @memberof SubscriptionListItemDtoDomainInformation
22
+ */
23
+ tld: string;
24
+ /**
25
+ * The subscription domain name
26
+ * @type {string}
27
+ * @memberof SubscriptionListItemDtoDomainInformation
28
+ */
29
+ name: string;
30
+ /**
31
+ * The subscription domain name
32
+ * @type {string}
33
+ * @memberof SubscriptionListItemDtoDomainInformation
34
+ */
35
+ displayName: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SubscriptionListItemDtoDomainInformation interface.
39
+ */
40
+ export declare function instanceOfSubscriptionListItemDtoDomainInformation(value: object): value is SubscriptionListItemDtoDomainInformation;
41
+ export declare function SubscriptionListItemDtoDomainInformationFromJSON(json: any): SubscriptionListItemDtoDomainInformation;
42
+ export declare function SubscriptionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDtoDomainInformation;
43
+ export declare function SubscriptionListItemDtoDomainInformationToJSON(json: any): SubscriptionListItemDtoDomainInformation;
44
+ export declare function SubscriptionListItemDtoDomainInformationToJSONTyped(value?: SubscriptionListItemDtoDomainInformation | 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.instanceOfSubscriptionListItemDtoDomainInformation = instanceOfSubscriptionListItemDtoDomainInformation;
17
+ exports.SubscriptionListItemDtoDomainInformationFromJSON = SubscriptionListItemDtoDomainInformationFromJSON;
18
+ exports.SubscriptionListItemDtoDomainInformationFromJSONTyped = SubscriptionListItemDtoDomainInformationFromJSONTyped;
19
+ exports.SubscriptionListItemDtoDomainInformationToJSON = SubscriptionListItemDtoDomainInformationToJSON;
20
+ exports.SubscriptionListItemDtoDomainInformationToJSONTyped = SubscriptionListItemDtoDomainInformationToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SubscriptionListItemDtoDomainInformation interface.
23
+ */
24
+ function instanceOfSubscriptionListItemDtoDomainInformation(value) {
25
+ if (!('tld' in value) || value['tld'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('displayName' in value) || value['displayName'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function SubscriptionListItemDtoDomainInformationFromJSON(json) {
34
+ return SubscriptionListItemDtoDomainInformationFromJSONTyped(json, false);
35
+ }
36
+ function SubscriptionListItemDtoDomainInformationFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'tld': json['tld'],
42
+ 'name': json['name'],
43
+ 'displayName': json['displayName'],
44
+ };
45
+ }
46
+ function SubscriptionListItemDtoDomainInformationToJSON(json) {
47
+ return SubscriptionListItemDtoDomainInformationToJSONTyped(json, false);
48
+ }
49
+ function SubscriptionListItemDtoDomainInformationToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'tld': value['tld'],
56
+ 'name': value['name'],
57
+ 'displayName': value['displayName'],
58
+ };
59
+ }
@@ -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 SubscriptionListItemDtoSellerAccount
16
+ */
17
+ export interface SubscriptionListItemDtoSellerAccount {
18
+ /**
19
+ * The subscription seller account ID
20
+ * @type {object}
21
+ * @memberof SubscriptionListItemDtoSellerAccount
22
+ */
23
+ accountId: object;
24
+ /**
25
+ * The subscription seller account ID
26
+ * @type {string}
27
+ * @memberof SubscriptionListItemDtoSellerAccount
28
+ */
29
+ identifier: string;
30
+ /**
31
+ * The subscription seller account name
32
+ * @type {string}
33
+ * @memberof SubscriptionListItemDtoSellerAccount
34
+ */
35
+ name: string;
36
+ /**
37
+ * Indicates if subscription seller account is a business or not
38
+ * @type {boolean}
39
+ * @memberof SubscriptionListItemDtoSellerAccount
40
+ */
41
+ isBusiness: boolean | null;
42
+ }
43
+ /**
44
+ * Check if a given object implements the SubscriptionListItemDtoSellerAccount interface.
45
+ */
46
+ export declare function instanceOfSubscriptionListItemDtoSellerAccount(value: object): value is SubscriptionListItemDtoSellerAccount;
47
+ export declare function SubscriptionListItemDtoSellerAccountFromJSON(json: any): SubscriptionListItemDtoSellerAccount;
48
+ export declare function SubscriptionListItemDtoSellerAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDtoSellerAccount;
49
+ export declare function SubscriptionListItemDtoSellerAccountToJSON(json: any): SubscriptionListItemDtoSellerAccount;
50
+ export declare function SubscriptionListItemDtoSellerAccountToJSONTyped(value?: SubscriptionListItemDtoSellerAccount | 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.instanceOfSubscriptionListItemDtoSellerAccount = instanceOfSubscriptionListItemDtoSellerAccount;
17
+ exports.SubscriptionListItemDtoSellerAccountFromJSON = SubscriptionListItemDtoSellerAccountFromJSON;
18
+ exports.SubscriptionListItemDtoSellerAccountFromJSONTyped = SubscriptionListItemDtoSellerAccountFromJSONTyped;
19
+ exports.SubscriptionListItemDtoSellerAccountToJSON = SubscriptionListItemDtoSellerAccountToJSON;
20
+ exports.SubscriptionListItemDtoSellerAccountToJSONTyped = SubscriptionListItemDtoSellerAccountToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SubscriptionListItemDtoSellerAccount interface.
23
+ */
24
+ function instanceOfSubscriptionListItemDtoSellerAccount(value) {
25
+ if (!('accountId' in value) || value['accountId'] === undefined)
26
+ return false;
27
+ if (!('identifier' in value) || value['identifier'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('isBusiness' in value) || value['isBusiness'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function SubscriptionListItemDtoSellerAccountFromJSON(json) {
36
+ return SubscriptionListItemDtoSellerAccountFromJSONTyped(json, false);
37
+ }
38
+ function SubscriptionListItemDtoSellerAccountFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'accountId': json['accountId'],
44
+ 'identifier': json['identifier'],
45
+ 'name': json['name'],
46
+ 'isBusiness': json['isBusiness'],
47
+ };
48
+ }
49
+ function SubscriptionListItemDtoSellerAccountToJSON(json) {
50
+ return SubscriptionListItemDtoSellerAccountToJSONTyped(json, false);
51
+ }
52
+ function SubscriptionListItemDtoSellerAccountToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'accountId': value['accountId'],
59
+ 'identifier': value['identifier'],
60
+ 'name': value['name'],
61
+ 'isBusiness': value['isBusiness'],
62
+ };
63
+ }
@@ -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
@@ -34,6 +35,12 @@ export interface UpdateDomainInput {
34
35
  * @memberof UpdateDomainInput
35
36
  */
36
37
  currencyCode?: string;
38
+ /**
39
+ *
40
+ * @type {LeaseToOwnConfigurationInput}
41
+ * @memberof UpdateDomainInput
42
+ */
43
+ leaseToOwn?: LeaseToOwnConfigurationInput;
37
44
  }
38
45
  /**
39
46
  * Check if a given object implements the UpdateDomainInput interface.
@@ -19,6 +19,7 @@ exports.UpdateDomainInputFromJSONTyped = UpdateDomainInputFromJSONTyped;
19
19
  exports.UpdateDomainInputToJSON = UpdateDomainInputToJSON;
20
20
  exports.UpdateDomainInputToJSONTyped = UpdateDomainInputToJSONTyped;
21
21
  var MoneyDto_1 = require("./MoneyDto");
22
+ var LeaseToOwnConfigurationInput_1 = require("./LeaseToOwnConfigurationInput");
22
23
  /**
23
24
  * Check if a given object implements the UpdateDomainInput interface.
24
25
  */
@@ -36,6 +37,7 @@ function UpdateDomainInputFromJSONTyped(json, ignoreDiscriminator) {
36
37
  'bin': json['bin'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['bin']),
37
38
  'minOffer': json['minOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
38
39
  'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
40
+ 'leaseToOwn': json['leaseToOwn'] == null ? undefined : (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputFromJSON)(json['leaseToOwn']),
39
41
  };
40
42
  }
41
43
  function UpdateDomainInputToJSON(json) {
@@ -50,5 +52,6 @@ function UpdateDomainInputToJSONTyped(value, ignoreDiscriminator) {
50
52
  'bin': (0, MoneyDto_1.MoneyDtoToJSON)(value['bin']),
51
53
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
52
54
  'currencyCode': value['currencyCode'],
55
+ 'leaseToOwn': (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputToJSON)(value['leaseToOwn']),
53
56
  };
54
57
  }
@@ -0,0 +1,112 @@
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 { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateSubscriptionInput
17
+ */
18
+ export interface UpdateSubscriptionInput {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof UpdateSubscriptionInput
23
+ */
24
+ locale?: string;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof UpdateSubscriptionInput
29
+ */
30
+ periodicity?: number;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof UpdateSubscriptionInput
35
+ */
36
+ periodicityUnit?: UpdateSubscriptionInputPeriodicityUnitEnum;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof UpdateSubscriptionInput
41
+ */
42
+ email?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof UpdateSubscriptionInput
47
+ */
48
+ firstName?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof UpdateSubscriptionInput
53
+ */
54
+ lastName?: string | null;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof UpdateSubscriptionInput
59
+ */
60
+ addressCountryCode?: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof UpdateSubscriptionInput
65
+ */
66
+ addressStateCode?: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof UpdateSubscriptionInput
71
+ */
72
+ addressLine1?: string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof UpdateSubscriptionInput
77
+ */
78
+ addressLine2?: string;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof UpdateSubscriptionInput
83
+ */
84
+ addressPostalCode?: string;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof UpdateSubscriptionInput
89
+ */
90
+ addressCity?: string;
91
+ /**
92
+ *
93
+ * @type {SubscriptionCompanyInfoDto}
94
+ * @memberof UpdateSubscriptionInput
95
+ */
96
+ companyInfo?: SubscriptionCompanyInfoDto | null;
97
+ }
98
+ /**
99
+ * @export
100
+ */
101
+ export declare const UpdateSubscriptionInputPeriodicityUnitEnum: {
102
+ readonly MONTH: "month";
103
+ };
104
+ export type UpdateSubscriptionInputPeriodicityUnitEnum = typeof UpdateSubscriptionInputPeriodicityUnitEnum[keyof typeof UpdateSubscriptionInputPeriodicityUnitEnum];
105
+ /**
106
+ * Check if a given object implements the UpdateSubscriptionInput interface.
107
+ */
108
+ export declare function instanceOfUpdateSubscriptionInput(value: object): value is UpdateSubscriptionInput;
109
+ export declare function UpdateSubscriptionInputFromJSON(json: any): UpdateSubscriptionInput;
110
+ export declare function UpdateSubscriptionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubscriptionInput;
111
+ export declare function UpdateSubscriptionInputToJSON(json: any): UpdateSubscriptionInput;
112
+ export declare function UpdateSubscriptionInputToJSONTyped(value?: UpdateSubscriptionInput | null, ignoreDiscriminator?: boolean): any;