@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,292 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { InvoiceItemDto } from './InvoiceItemDto';
17
+ import {
18
+ InvoiceItemDtoFromJSON,
19
+ InvoiceItemDtoFromJSONTyped,
20
+ InvoiceItemDtoToJSON,
21
+ InvoiceItemDtoToJSONTyped,
22
+ } from './InvoiceItemDto';
23
+ import type { InvoiceTransactionDto } from './InvoiceTransactionDto';
24
+ import {
25
+ InvoiceTransactionDtoFromJSON,
26
+ InvoiceTransactionDtoFromJSONTyped,
27
+ InvoiceTransactionDtoToJSON,
28
+ InvoiceTransactionDtoToJSONTyped,
29
+ } from './InvoiceTransactionDto';
30
+ import type { MoneyDto } from './MoneyDto';
31
+ import {
32
+ MoneyDtoFromJSON,
33
+ MoneyDtoFromJSONTyped,
34
+ MoneyDtoToJSON,
35
+ MoneyDtoToJSONTyped,
36
+ } from './MoneyDto';
37
+ import type { SubscriptionDomainDto } from './SubscriptionDomainDto';
38
+ import {
39
+ SubscriptionDomainDtoFromJSON,
40
+ SubscriptionDomainDtoFromJSONTyped,
41
+ SubscriptionDomainDtoToJSON,
42
+ SubscriptionDomainDtoToJSONTyped,
43
+ } from './SubscriptionDomainDto';
44
+ import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
45
+ import {
46
+ SubscriptionCompanyInfoDtoFromJSON,
47
+ SubscriptionCompanyInfoDtoFromJSONTyped,
48
+ SubscriptionCompanyInfoDtoToJSON,
49
+ SubscriptionCompanyInfoDtoToJSONTyped,
50
+ } from './SubscriptionCompanyInfoDto';
51
+ import type { AddressDto } from './AddressDto';
52
+ import {
53
+ AddressDtoFromJSON,
54
+ AddressDtoFromJSONTyped,
55
+ AddressDtoToJSON,
56
+ AddressDtoToJSONTyped,
57
+ } from './AddressDto';
58
+
59
+ /**
60
+ *
61
+ * @export
62
+ * @interface SubscriptionDto
63
+ */
64
+ export interface SubscriptionDto {
65
+ /**
66
+ * The uuid for this subscription.
67
+ * @type {string}
68
+ * @memberof SubscriptionDto
69
+ */
70
+ id: string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof SubscriptionDto
75
+ */
76
+ status: SubscriptionDtoStatusEnum;
77
+ /**
78
+ *
79
+ * @type {MoneyDto}
80
+ * @memberof SubscriptionDto
81
+ */
82
+ basePrice: MoneyDto;
83
+ /**
84
+ *
85
+ * @type {MoneyDto}
86
+ * @memberof SubscriptionDto
87
+ */
88
+ recurringPrice: MoneyDto;
89
+ /**
90
+ *
91
+ * @type {MoneyDto}
92
+ * @memberof SubscriptionDto
93
+ */
94
+ totalPrice: MoneyDto;
95
+ /**
96
+ *
97
+ * @type {Array<InvoiceItemDto>}
98
+ * @memberof SubscriptionDto
99
+ */
100
+ items: Array<InvoiceItemDto>;
101
+ /**
102
+ *
103
+ * @type {string}
104
+ * @memberof SubscriptionDto
105
+ */
106
+ firstName: string;
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof SubscriptionDto
111
+ */
112
+ lastName: string;
113
+ /**
114
+ *
115
+ * @type {string}
116
+ * @memberof SubscriptionDto
117
+ */
118
+ email: string;
119
+ /**
120
+ *
121
+ * @type {string}
122
+ * @memberof SubscriptionDto
123
+ */
124
+ phone: string | null;
125
+ /**
126
+ *
127
+ * @type {AddressDto}
128
+ * @memberof SubscriptionDto
129
+ */
130
+ address: AddressDto | null;
131
+ /**
132
+ *
133
+ * @type {string}
134
+ * @memberof SubscriptionDto
135
+ */
136
+ locale: string;
137
+ /**
138
+ *
139
+ * @type {SubscriptionCompanyInfoDto}
140
+ * @memberof SubscriptionDto
141
+ */
142
+ companyInfo: SubscriptionCompanyInfoDto | null;
143
+ /**
144
+ *
145
+ * @type {InvoiceTransactionDto}
146
+ * @memberof SubscriptionDto
147
+ */
148
+ transaction: InvoiceTransactionDto;
149
+ /**
150
+ *
151
+ * @type {SubscriptionDomainDto}
152
+ * @memberof SubscriptionDto
153
+ */
154
+ domain: SubscriptionDomainDto;
155
+ /**
156
+ *
157
+ * @type {string}
158
+ * @memberof SubscriptionDto
159
+ */
160
+ type: SubscriptionDtoTypeEnum;
161
+ /**
162
+ *
163
+ * @type {number}
164
+ * @memberof SubscriptionDto
165
+ */
166
+ periodicity: number;
167
+ /**
168
+ *
169
+ * @type {string}
170
+ * @memberof SubscriptionDto
171
+ */
172
+ periodicityUnit: SubscriptionDtoPeriodicityUnitEnum;
173
+ }
174
+
175
+
176
+ /**
177
+ * @export
178
+ */
179
+ export const SubscriptionDtoStatusEnum = {
180
+ DRAFT: 'draft',
181
+ ACTIVE: 'active',
182
+ PAUSED: 'paused',
183
+ CANCELLED: 'cancelled'
184
+ } as const;
185
+ export type SubscriptionDtoStatusEnum = typeof SubscriptionDtoStatusEnum[keyof typeof SubscriptionDtoStatusEnum];
186
+
187
+ /**
188
+ * @export
189
+ */
190
+ export const SubscriptionDtoTypeEnum = {
191
+ RENT: 'rent',
192
+ LEASE_TO_OWN: 'lease_to_own'
193
+ } as const;
194
+ export type SubscriptionDtoTypeEnum = typeof SubscriptionDtoTypeEnum[keyof typeof SubscriptionDtoTypeEnum];
195
+
196
+ /**
197
+ * @export
198
+ */
199
+ export const SubscriptionDtoPeriodicityUnitEnum = {
200
+ MONTH: 'month'
201
+ } as const;
202
+ export type SubscriptionDtoPeriodicityUnitEnum = typeof SubscriptionDtoPeriodicityUnitEnum[keyof typeof SubscriptionDtoPeriodicityUnitEnum];
203
+
204
+
205
+ /**
206
+ * Check if a given object implements the SubscriptionDto interface.
207
+ */
208
+ export function instanceOfSubscriptionDto(value: object): value is SubscriptionDto {
209
+ if (!('id' in value) || value['id'] === undefined) return false;
210
+ if (!('status' in value) || value['status'] === undefined) return false;
211
+ if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
212
+ if (!('recurringPrice' in value) || value['recurringPrice'] === undefined) return false;
213
+ if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
214
+ if (!('items' in value) || value['items'] === undefined) return false;
215
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
216
+ if (!('lastName' in value) || value['lastName'] === undefined) return false;
217
+ if (!('email' in value) || value['email'] === undefined) return false;
218
+ if (!('phone' in value) || value['phone'] === undefined) return false;
219
+ if (!('address' in value) || value['address'] === undefined) return false;
220
+ if (!('locale' in value) || value['locale'] === undefined) return false;
221
+ if (!('companyInfo' in value) || value['companyInfo'] === undefined) return false;
222
+ if (!('transaction' in value) || value['transaction'] === undefined) return false;
223
+ if (!('domain' in value) || value['domain'] === undefined) return false;
224
+ if (!('type' in value) || value['type'] === undefined) return false;
225
+ if (!('periodicity' in value) || value['periodicity'] === undefined) return false;
226
+ if (!('periodicityUnit' in value) || value['periodicityUnit'] === undefined) return false;
227
+ return true;
228
+ }
229
+
230
+ export function SubscriptionDtoFromJSON(json: any): SubscriptionDto {
231
+ return SubscriptionDtoFromJSONTyped(json, false);
232
+ }
233
+
234
+ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDto {
235
+ if (json == null) {
236
+ return json;
237
+ }
238
+ return {
239
+
240
+ 'id': json['id'],
241
+ 'status': json['status'],
242
+ 'basePrice': MoneyDtoFromJSON(json['basePrice']),
243
+ 'recurringPrice': MoneyDtoFromJSON(json['recurringPrice']),
244
+ 'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
245
+ 'items': ((json['items'] as Array<any>).map(InvoiceItemDtoFromJSON)),
246
+ 'firstName': json['firstName'],
247
+ 'lastName': json['lastName'],
248
+ 'email': json['email'],
249
+ 'phone': json['phone'],
250
+ 'address': AddressDtoFromJSON(json['address']),
251
+ 'locale': json['locale'],
252
+ 'companyInfo': SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
253
+ 'transaction': InvoiceTransactionDtoFromJSON(json['transaction']),
254
+ 'domain': SubscriptionDomainDtoFromJSON(json['domain']),
255
+ 'type': json['type'],
256
+ 'periodicity': json['periodicity'],
257
+ 'periodicityUnit': json['periodicityUnit'],
258
+ };
259
+ }
260
+
261
+ export function SubscriptionDtoToJSON(json: any): SubscriptionDto {
262
+ return SubscriptionDtoToJSONTyped(json, false);
263
+ }
264
+
265
+ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignoreDiscriminator: boolean = false): any {
266
+ if (value == null) {
267
+ return value;
268
+ }
269
+
270
+ return {
271
+
272
+ 'id': value['id'],
273
+ 'status': value['status'],
274
+ 'basePrice': MoneyDtoToJSON(value['basePrice']),
275
+ 'recurringPrice': MoneyDtoToJSON(value['recurringPrice']),
276
+ 'totalPrice': MoneyDtoToJSON(value['totalPrice']),
277
+ 'items': ((value['items'] as Array<any>).map(InvoiceItemDtoToJSON)),
278
+ 'firstName': value['firstName'],
279
+ 'lastName': value['lastName'],
280
+ 'email': value['email'],
281
+ 'phone': value['phone'],
282
+ 'address': AddressDtoToJSON(value['address']),
283
+ 'locale': value['locale'],
284
+ 'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
285
+ 'transaction': InvoiceTransactionDtoToJSON(value['transaction']),
286
+ 'domain': SubscriptionDomainDtoToJSON(value['domain']),
287
+ 'type': value['type'],
288
+ 'periodicity': value['periodicity'],
289
+ 'periodicityUnit': value['periodicityUnit'],
290
+ };
291
+ }
292
+
@@ -0,0 +1,189 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { SubscriptionListItemDtoBuyerInformation } from './SubscriptionListItemDtoBuyerInformation';
17
+ import {
18
+ SubscriptionListItemDtoBuyerInformationFromJSON,
19
+ SubscriptionListItemDtoBuyerInformationFromJSONTyped,
20
+ SubscriptionListItemDtoBuyerInformationToJSON,
21
+ SubscriptionListItemDtoBuyerInformationToJSONTyped,
22
+ } from './SubscriptionListItemDtoBuyerInformation';
23
+ import type { SubscriptionListItemDtoSellerAccount } from './SubscriptionListItemDtoSellerAccount';
24
+ import {
25
+ SubscriptionListItemDtoSellerAccountFromJSON,
26
+ SubscriptionListItemDtoSellerAccountFromJSONTyped,
27
+ SubscriptionListItemDtoSellerAccountToJSON,
28
+ SubscriptionListItemDtoSellerAccountToJSONTyped,
29
+ } from './SubscriptionListItemDtoSellerAccount';
30
+ import type { MoneyDto } from './MoneyDto';
31
+ import {
32
+ MoneyDtoFromJSON,
33
+ MoneyDtoFromJSONTyped,
34
+ MoneyDtoToJSON,
35
+ MoneyDtoToJSONTyped,
36
+ } from './MoneyDto';
37
+ import type { SubscriptionListItemDtoDomainInformation } from './SubscriptionListItemDtoDomainInformation';
38
+ import {
39
+ SubscriptionListItemDtoDomainInformationFromJSON,
40
+ SubscriptionListItemDtoDomainInformationFromJSONTyped,
41
+ SubscriptionListItemDtoDomainInformationToJSON,
42
+ SubscriptionListItemDtoDomainInformationToJSONTyped,
43
+ } from './SubscriptionListItemDtoDomainInformation';
44
+
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface SubscriptionListItemDto
49
+ */
50
+ export interface SubscriptionListItemDto {
51
+ /**
52
+ * The subscription ID
53
+ * @type {object}
54
+ * @memberof SubscriptionListItemDto
55
+ */
56
+ id: object;
57
+ /**
58
+ * The subscription status
59
+ * @type {string}
60
+ * @memberof SubscriptionListItemDto
61
+ */
62
+ status: SubscriptionListItemDtoStatusEnum;
63
+ /**
64
+ * The subscription type
65
+ * @type {string}
66
+ * @memberof SubscriptionListItemDto
67
+ */
68
+ type: SubscriptionListItemDtoTypeEnum;
69
+ /**
70
+ * The subscription start date
71
+ * @type {Date}
72
+ * @memberof SubscriptionListItemDto
73
+ */
74
+ startedAt: Date | null;
75
+ /**
76
+ * The subscription creation date
77
+ * @type {Date}
78
+ * @memberof SubscriptionListItemDto
79
+ */
80
+ createdAt: Date;
81
+ /**
82
+ * The subscription domain information
83
+ * @type {SubscriptionListItemDtoDomainInformation}
84
+ * @memberof SubscriptionListItemDto
85
+ */
86
+ domain: SubscriptionListItemDtoDomainInformation;
87
+ /**
88
+ * The subscription seller information
89
+ * @type {SubscriptionListItemDtoSellerAccount}
90
+ * @memberof SubscriptionListItemDto
91
+ */
92
+ sellerAccount: SubscriptionListItemDtoSellerAccount;
93
+ /**
94
+ * The subscription buyer information
95
+ * @type {SubscriptionListItemDtoBuyerInformation}
96
+ * @memberof SubscriptionListItemDto
97
+ */
98
+ buyerInformation: SubscriptionListItemDtoBuyerInformation;
99
+ /**
100
+ * The subscription base price
101
+ * @type {MoneyDto}
102
+ * @memberof SubscriptionListItemDto
103
+ */
104
+ basePrice: MoneyDto | null;
105
+ }
106
+
107
+
108
+ /**
109
+ * @export
110
+ */
111
+ export const SubscriptionListItemDtoStatusEnum = {
112
+ DRAFT: 'draft',
113
+ ACTIVE: 'active',
114
+ PAUSED: 'paused',
115
+ CANCELLED: 'cancelled'
116
+ } as const;
117
+ export type SubscriptionListItemDtoStatusEnum = typeof SubscriptionListItemDtoStatusEnum[keyof typeof SubscriptionListItemDtoStatusEnum];
118
+
119
+ /**
120
+ * @export
121
+ */
122
+ export const SubscriptionListItemDtoTypeEnum = {
123
+ RENT: 'rent',
124
+ LEASE_TO_OWN: 'lease_to_own'
125
+ } as const;
126
+ export type SubscriptionListItemDtoTypeEnum = typeof SubscriptionListItemDtoTypeEnum[keyof typeof SubscriptionListItemDtoTypeEnum];
127
+
128
+
129
+ /**
130
+ * Check if a given object implements the SubscriptionListItemDto interface.
131
+ */
132
+ export function instanceOfSubscriptionListItemDto(value: object): value is SubscriptionListItemDto {
133
+ if (!('id' in value) || value['id'] === undefined) return false;
134
+ if (!('status' in value) || value['status'] === undefined) return false;
135
+ if (!('type' in value) || value['type'] === undefined) return false;
136
+ if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
137
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
138
+ if (!('domain' in value) || value['domain'] === undefined) return false;
139
+ if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
140
+ if (!('buyerInformation' in value) || value['buyerInformation'] === undefined) return false;
141
+ if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
142
+ return true;
143
+ }
144
+
145
+ export function SubscriptionListItemDtoFromJSON(json: any): SubscriptionListItemDto {
146
+ return SubscriptionListItemDtoFromJSONTyped(json, false);
147
+ }
148
+
149
+ export function SubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDto {
150
+ if (json == null) {
151
+ return json;
152
+ }
153
+ return {
154
+
155
+ 'id': json['id'],
156
+ 'status': json['status'],
157
+ 'type': json['type'],
158
+ 'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
159
+ 'createdAt': (new Date(json['createdAt'])),
160
+ 'domain': SubscriptionListItemDtoDomainInformationFromJSON(json['domain']),
161
+ 'sellerAccount': SubscriptionListItemDtoSellerAccountFromJSON(json['sellerAccount']),
162
+ 'buyerInformation': SubscriptionListItemDtoBuyerInformationFromJSON(json['buyerInformation']),
163
+ 'basePrice': MoneyDtoFromJSON(json['basePrice']),
164
+ };
165
+ }
166
+
167
+ export function SubscriptionListItemDtoToJSON(json: any): SubscriptionListItemDto {
168
+ return SubscriptionListItemDtoToJSONTyped(json, false);
169
+ }
170
+
171
+ export function SubscriptionListItemDtoToJSONTyped(value?: SubscriptionListItemDto | null, ignoreDiscriminator: boolean = false): any {
172
+ if (value == null) {
173
+ return value;
174
+ }
175
+
176
+ return {
177
+
178
+ 'id': value['id'],
179
+ 'status': value['status'],
180
+ 'type': value['type'],
181
+ 'startedAt': (value['startedAt'] == null ? null : (value['startedAt'] as any).toISOString()),
182
+ 'createdAt': ((value['createdAt']).toISOString()),
183
+ 'domain': SubscriptionListItemDtoDomainInformationToJSON(value['domain']),
184
+ 'sellerAccount': SubscriptionListItemDtoSellerAccountToJSON(value['sellerAccount']),
185
+ 'buyerInformation': SubscriptionListItemDtoBuyerInformationToJSON(value['buyerInformation']),
186
+ 'basePrice': MoneyDtoToJSON(value['basePrice']),
187
+ };
188
+ }
189
+
@@ -0,0 +1,126 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
17
+ import {
18
+ SubscriptionCompanyInfoDtoFromJSON,
19
+ SubscriptionCompanyInfoDtoFromJSONTyped,
20
+ SubscriptionCompanyInfoDtoToJSON,
21
+ SubscriptionCompanyInfoDtoToJSONTyped,
22
+ } from './SubscriptionCompanyInfoDto';
23
+ import type { AddressDto } from './AddressDto';
24
+ import {
25
+ AddressDtoFromJSON,
26
+ AddressDtoFromJSONTyped,
27
+ AddressDtoToJSON,
28
+ AddressDtoToJSONTyped,
29
+ } from './AddressDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface SubscriptionListItemDtoBuyerInformation
35
+ */
36
+ export interface SubscriptionListItemDtoBuyerInformation {
37
+ /**
38
+ * The subscription buyer first name
39
+ * @type {string}
40
+ * @memberof SubscriptionListItemDtoBuyerInformation
41
+ */
42
+ firstName: string | null;
43
+ /**
44
+ * The subscription buyer last name
45
+ * @type {string}
46
+ * @memberof SubscriptionListItemDtoBuyerInformation
47
+ */
48
+ lastName: string | null;
49
+ /**
50
+ * The subscription buyer email
51
+ * @type {string}
52
+ * @memberof SubscriptionListItemDtoBuyerInformation
53
+ */
54
+ email: string;
55
+ /**
56
+ * The subscription buyer phone
57
+ * @type {string}
58
+ * @memberof SubscriptionListItemDtoBuyerInformation
59
+ */
60
+ phone: string | null;
61
+ /**
62
+ * The subscription buyer address
63
+ * @type {AddressDto}
64
+ * @memberof SubscriptionListItemDtoBuyerInformation
65
+ */
66
+ address: AddressDto | null;
67
+ /**
68
+ * The subscription buyer company information
69
+ * @type {SubscriptionCompanyInfoDto}
70
+ * @memberof SubscriptionListItemDtoBuyerInformation
71
+ */
72
+ companyInfo: SubscriptionCompanyInfoDto | null;
73
+ }
74
+
75
+ /**
76
+ * Check if a given object implements the SubscriptionListItemDtoBuyerInformation interface.
77
+ */
78
+ export function instanceOfSubscriptionListItemDtoBuyerInformation(value: object): value is SubscriptionListItemDtoBuyerInformation {
79
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
80
+ if (!('lastName' in value) || value['lastName'] === undefined) return false;
81
+ if (!('email' in value) || value['email'] === undefined) return false;
82
+ if (!('phone' in value) || value['phone'] === undefined) return false;
83
+ if (!('address' in value) || value['address'] === undefined) return false;
84
+ if (!('companyInfo' in value) || value['companyInfo'] === undefined) return false;
85
+ return true;
86
+ }
87
+
88
+ export function SubscriptionListItemDtoBuyerInformationFromJSON(json: any): SubscriptionListItemDtoBuyerInformation {
89
+ return SubscriptionListItemDtoBuyerInformationFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function SubscriptionListItemDtoBuyerInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDtoBuyerInformation {
93
+ if (json == null) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'firstName': json['firstName'],
99
+ 'lastName': json['lastName'],
100
+ 'email': json['email'],
101
+ 'phone': json['phone'],
102
+ 'address': AddressDtoFromJSON(json['address']),
103
+ 'companyInfo': SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
104
+ };
105
+ }
106
+
107
+ export function SubscriptionListItemDtoBuyerInformationToJSON(json: any): SubscriptionListItemDtoBuyerInformation {
108
+ return SubscriptionListItemDtoBuyerInformationToJSONTyped(json, false);
109
+ }
110
+
111
+ export function SubscriptionListItemDtoBuyerInformationToJSONTyped(value?: SubscriptionListItemDtoBuyerInformation | null, ignoreDiscriminator: boolean = false): any {
112
+ if (value == null) {
113
+ return value;
114
+ }
115
+
116
+ return {
117
+
118
+ 'firstName': value['firstName'],
119
+ 'lastName': value['lastName'],
120
+ 'email': value['email'],
121
+ 'phone': value['phone'],
122
+ 'address': AddressDtoToJSON(value['address']),
123
+ 'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
124
+ };
125
+ }
126
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SubscriptionListItemDtoDomainInformation
20
+ */
21
+ export interface SubscriptionListItemDtoDomainInformation {
22
+ /**
23
+ * The subscription domain TLD
24
+ * @type {string}
25
+ * @memberof SubscriptionListItemDtoDomainInformation
26
+ */
27
+ tld: string;
28
+ /**
29
+ * The subscription domain name
30
+ * @type {string}
31
+ * @memberof SubscriptionListItemDtoDomainInformation
32
+ */
33
+ name: string;
34
+ /**
35
+ * The subscription domain name
36
+ * @type {string}
37
+ * @memberof SubscriptionListItemDtoDomainInformation
38
+ */
39
+ displayName: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the SubscriptionListItemDtoDomainInformation interface.
44
+ */
45
+ export function instanceOfSubscriptionListItemDtoDomainInformation(value: object): value is SubscriptionListItemDtoDomainInformation {
46
+ if (!('tld' in value) || value['tld'] === undefined) return false;
47
+ if (!('name' in value) || value['name'] === undefined) return false;
48
+ if (!('displayName' in value) || value['displayName'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function SubscriptionListItemDtoDomainInformationFromJSON(json: any): SubscriptionListItemDtoDomainInformation {
53
+ return SubscriptionListItemDtoDomainInformationFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function SubscriptionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDtoDomainInformation {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'tld': json['tld'],
63
+ 'name': json['name'],
64
+ 'displayName': json['displayName'],
65
+ };
66
+ }
67
+
68
+ export function SubscriptionListItemDtoDomainInformationToJSON(json: any): SubscriptionListItemDtoDomainInformation {
69
+ return SubscriptionListItemDtoDomainInformationToJSONTyped(json, false);
70
+ }
71
+
72
+ export function SubscriptionListItemDtoDomainInformationToJSONTyped(value?: SubscriptionListItemDtoDomainInformation | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'tld': value['tld'],
80
+ 'name': value['name'],
81
+ 'displayName': value['displayName'],
82
+ };
83
+ }
84
+