@randock/nameshift-api-client 0.0.449 → 0.0.450

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 (102) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +37 -1
  4. package/dist/apis/AdminApi.js +122 -1
  5. package/dist/apis/MarketplacesApi.d.ts +89 -0
  6. package/dist/apis/MarketplacesApi.js +332 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AccountMarketplaceDto.d.ts +56 -0
  10. package/dist/models/AccountMarketplaceDto.js +71 -0
  11. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
  12. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +1 -0
  13. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
  14. package/dist/models/AccountNameshiftCommissionItemDto.js +1 -0
  15. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
  16. package/dist/models/AccountNameshiftCommissionReasonDto.js +1 -0
  17. package/dist/models/AccountSettingsDto.d.ts +18 -0
  18. package/dist/models/AccountSettingsDto.js +16 -0
  19. package/dist/models/AccountSettingsInput.d.ts +18 -0
  20. package/dist/models/AccountSettingsInput.js +14 -0
  21. package/dist/models/AdminDomainListItemDto.d.ts +19 -0
  22. package/dist/models/AdminDomainListItemDto.js +17 -1
  23. package/dist/models/AdminMarketplaceDto.d.ts +86 -0
  24. package/dist/models/AdminMarketplaceDto.js +91 -0
  25. package/dist/models/CommissionDto.d.ts +1 -0
  26. package/dist/models/CommissionDto.js +1 -0
  27. package/dist/models/CommissionPayloadInput.d.ts +1 -0
  28. package/dist/models/CommissionPayloadInput.js +1 -0
  29. package/dist/models/CommissionReasonDto.d.ts +1 -0
  30. package/dist/models/CommissionReasonDto.js +1 -0
  31. package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
  32. package/dist/models/CommissionSimulationItemInput.js +1 -0
  33. package/dist/models/CreateOrderInput.d.ts +6 -0
  34. package/dist/models/CreateOrderInput.js +2 -0
  35. package/dist/models/CreateSubscriptionInput.d.ts +6 -0
  36. package/dist/models/CreateSubscriptionInput.js +2 -0
  37. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  38. package/dist/models/FeatureFlagListItemDto.js +2 -1
  39. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  40. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  41. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
  42. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +16 -0
  43. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
  44. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +16 -0
  45. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
  46. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +16 -0
  47. package/dist/models/MarketplaceDto.d.ts +74 -0
  48. package/dist/models/MarketplaceDto.js +83 -0
  49. package/dist/models/OrderDto.d.ts +7 -1
  50. package/dist/models/OrderDto.js +4 -0
  51. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  52. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  53. package/dist/models/SetAccountMarketplaceInput.d.ts +32 -0
  54. package/dist/models/SetAccountMarketplaceInput.js +51 -0
  55. package/dist/models/SimulateCommissionInput.d.ts +1 -0
  56. package/dist/models/SimulateCommissionInput.js +1 -0
  57. package/dist/models/SubscriptionDto.d.ts +7 -1
  58. package/dist/models/SubscriptionDto.js +4 -0
  59. package/dist/models/UpdateDomainInput.d.ts +18 -0
  60. package/dist/models/UpdateDomainInput.js +14 -0
  61. package/dist/models/UpdateMarketplaceInput.d.ts +44 -0
  62. package/dist/models/UpdateMarketplaceInput.js +53 -0
  63. package/dist/models/UpdateOrderInput.d.ts +6 -0
  64. package/dist/models/UpdateOrderInput.js +2 -0
  65. package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
  66. package/dist/models/UpdateSubscriptionInput.js +2 -0
  67. package/dist/models/index.d.ts +5 -0
  68. package/dist/models/index.js +5 -0
  69. package/package.json +1 -1
  70. package/src/apis/AdminApi.ts +112 -0
  71. package/src/apis/MarketplacesApi.ts +240 -0
  72. package/src/apis/index.ts +1 -0
  73. package/src/models/AccountMarketplaceDto.ts +99 -0
  74. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +1 -0
  75. package/src/models/AccountNameshiftCommissionItemDto.ts +1 -0
  76. package/src/models/AccountNameshiftCommissionReasonDto.ts +1 -0
  77. package/src/models/AccountSettingsDto.ts +24 -0
  78. package/src/models/AccountSettingsInput.ts +23 -0
  79. package/src/models/AdminDomainListItemDto.ts +23 -0
  80. package/src/models/AdminMarketplaceDto.ts +144 -0
  81. package/src/models/CommissionDto.ts +1 -0
  82. package/src/models/CommissionPayloadInput.ts +1 -0
  83. package/src/models/CommissionReasonDto.ts +1 -0
  84. package/src/models/CommissionSimulationItemInput.ts +1 -0
  85. package/src/models/CreateOrderInput.ts +8 -0
  86. package/src/models/CreateSubscriptionInput.ts +8 -0
  87. package/src/models/FeatureFlagListItemDto.ts +2 -1
  88. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  89. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +24 -0
  90. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +24 -0
  91. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +24 -0
  92. package/src/models/MarketplaceDto.ts +126 -0
  93. package/src/models/OrderDto.ts +10 -1
  94. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  95. package/src/models/SetAccountMarketplaceInput.ts +66 -0
  96. package/src/models/SimulateCommissionInput.ts +1 -0
  97. package/src/models/SubscriptionDto.ts +10 -1
  98. package/src/models/UpdateDomainInput.ts +23 -0
  99. package/src/models/UpdateMarketplaceInput.ts +81 -0
  100. package/src/models/UpdateOrderInput.ts +8 -0
  101. package/src/models/UpdateSubscriptionInput.ts +8 -0
  102. package/src/models/index.ts +5 -0
@@ -249,6 +249,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
249
249
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
250
250
  */
251
251
  showcased: boolean;
252
+ /**
253
+ * Marketplace this domain resolves to on our nameservers, overriding the account default. Null means the account default applies; "nameshift" means the domain opts out of it and stays on our own landing page.
254
+ * @type {string}
255
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
256
+ */
257
+ marketplace: IntersectionDomainDtoWithHijackerDtoWithAccountDtoMarketplaceEnum | null;
252
258
  /**
253
259
  * Account managing the domain on behalf of the owner, when a hijacker is assigned.
254
260
  * @type {AccountDto}
@@ -263,6 +269,21 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
263
269
  account: AccountDto;
264
270
  }
265
271
 
272
+
273
+ /**
274
+ * @export
275
+ */
276
+ export const IntersectionDomainDtoWithHijackerDtoWithAccountDtoMarketplaceEnum = {
277
+ NAMESHIFT: 'nameshift',
278
+ SEDO: 'sedo',
279
+ AFTERNIC: 'afternic',
280
+ ATOM: 'atom',
281
+ SPACESHIP: 'spaceship',
282
+ NAMECLUB: 'nameclub'
283
+ } as const;
284
+ export type IntersectionDomainDtoWithHijackerDtoWithAccountDtoMarketplaceEnum = typeof IntersectionDomainDtoWithHijackerDtoWithAccountDtoMarketplaceEnum[keyof typeof IntersectionDomainDtoWithHijackerDtoWithAccountDtoMarketplaceEnum];
285
+
286
+
266
287
  /**
267
288
  * Check if a given object implements the IntersectionDomainDtoWithHijackerDtoWithAccountDto interface.
268
289
  */
@@ -297,6 +318,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
297
318
  if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
298
319
  if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
299
320
  if (!('showcased' in value) || value['showcased'] === undefined) return false;
321
+ if (!('marketplace' in value) || value['marketplace'] === undefined) return false;
300
322
  if (!('hijacker' in value) || value['hijacker'] === undefined) return false;
301
323
  if (!('account' in value) || value['account'] === undefined) return false;
302
324
  return true;
@@ -342,6 +364,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
342
364
  'isLocked': json['isLocked'],
343
365
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
344
366
  'showcased': json['showcased'],
367
+ 'marketplace': json['marketplace'],
345
368
  'hijacker': AccountDtoFromJSON(json['hijacker']),
346
369
  'account': AccountDtoFromJSON(json['account']),
347
370
  };
@@ -388,6 +411,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
388
411
  'isLocked': value['isLocked'],
389
412
  'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
390
413
  'showcased': value['showcased'],
414
+ 'marketplace': value['marketplace'],
391
415
  'hijacker': AccountDtoToJSON(value['hijacker']),
392
416
  'account': AccountDtoToJSON(value['account']),
393
417
  };
@@ -249,6 +249,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
249
249
  * @memberof IntersectionDomainDtoWithSeoMetricsDto
250
250
  */
251
251
  showcased: boolean;
252
+ /**
253
+ * Marketplace this domain resolves to on our nameservers, overriding the account default. Null means the account default applies; "nameshift" means the domain opts out of it and stays on our own landing page.
254
+ * @type {string}
255
+ * @memberof IntersectionDomainDtoWithSeoMetricsDto
256
+ */
257
+ marketplace: IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum | null;
252
258
  /**
253
259
  * SEO metrics for the domain from Moz, Majestic, and historical sources.
254
260
  * @type {SeoMetricsDto}
@@ -257,6 +263,21 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
257
263
  seoMetrics: SeoMetricsDto | null;
258
264
  }
259
265
 
266
+
267
+ /**
268
+ * @export
269
+ */
270
+ export const IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum = {
271
+ NAMESHIFT: 'nameshift',
272
+ SEDO: 'sedo',
273
+ AFTERNIC: 'afternic',
274
+ ATOM: 'atom',
275
+ SPACESHIP: 'spaceship',
276
+ NAMECLUB: 'nameclub'
277
+ } as const;
278
+ export type IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum = typeof IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum[keyof typeof IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum];
279
+
280
+
260
281
  /**
261
282
  * Check if a given object implements the IntersectionDomainDtoWithSeoMetricsDto interface.
262
283
  */
@@ -291,6 +312,7 @@ export function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value: object):
291
312
  if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
292
313
  if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
293
314
  if (!('showcased' in value) || value['showcased'] === undefined) return false;
315
+ if (!('marketplace' in value) || value['marketplace'] === undefined) return false;
294
316
  if (!('seoMetrics' in value) || value['seoMetrics'] === undefined) return false;
295
317
  return true;
296
318
  }
@@ -335,6 +357,7 @@ export function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json: any, i
335
357
  'isLocked': json['isLocked'],
336
358
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
337
359
  'showcased': json['showcased'],
360
+ 'marketplace': json['marketplace'],
338
361
  'seoMetrics': SeoMetricsDtoFromJSON(json['seoMetrics']),
339
362
  };
340
363
  }
@@ -380,6 +403,7 @@ export function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value?: Inters
380
403
  'isLocked': value['isLocked'],
381
404
  'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
382
405
  'showcased': value['showcased'],
406
+ 'marketplace': value['marketplace'],
383
407
  'seoMetrics': SeoMetricsDtoToJSON(value['seoMetrics']),
384
408
  };
385
409
  }
@@ -0,0 +1,126 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 MarketplaceDto
20
+ */
21
+ export interface MarketplaceDto {
22
+ /**
23
+ * Stable code used to select this marketplace.
24
+ * @type {string}
25
+ * @memberof MarketplaceDto
26
+ */
27
+ code: MarketplaceDtoCodeEnum;
28
+ /**
29
+ * Display name of the marketplace.
30
+ * @type {string}
31
+ * @memberof MarketplaceDto
32
+ */
33
+ name: string;
34
+ /**
35
+ * Whether domains may currently be routed to this marketplace. A marketplace without nameservers cannot be routed to.
36
+ * @type {boolean}
37
+ * @memberof MarketplaceDto
38
+ */
39
+ routable: boolean;
40
+ /**
41
+ * Record type the verification code is published as.
42
+ * @type {string}
43
+ * @memberof MarketplaceDto
44
+ */
45
+ verificationRecordType: string;
46
+ /**
47
+ * Record name the verification code is published at, relative to the domain.
48
+ * @type {string}
49
+ * @memberof MarketplaceDto
50
+ */
51
+ verificationRecordName: string;
52
+ /**
53
+ * An example of the value this marketplace issues, shown so a seller recognises it.
54
+ * @type {string}
55
+ * @memberof MarketplaceDto
56
+ */
57
+ verificationExample: string | null;
58
+ }
59
+
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const MarketplaceDtoCodeEnum = {
65
+ NAMESHIFT: 'nameshift',
66
+ SEDO: 'sedo',
67
+ AFTERNIC: 'afternic',
68
+ ATOM: 'atom',
69
+ SPACESHIP: 'spaceship',
70
+ NAMECLUB: 'nameclub'
71
+ } as const;
72
+ export type MarketplaceDtoCodeEnum = typeof MarketplaceDtoCodeEnum[keyof typeof MarketplaceDtoCodeEnum];
73
+
74
+
75
+ /**
76
+ * Check if a given object implements the MarketplaceDto interface.
77
+ */
78
+ export function instanceOfMarketplaceDto(value: object): value is MarketplaceDto {
79
+ if (!('code' in value) || value['code'] === undefined) return false;
80
+ if (!('name' in value) || value['name'] === undefined) return false;
81
+ if (!('routable' in value) || value['routable'] === undefined) return false;
82
+ if (!('verificationRecordType' in value) || value['verificationRecordType'] === undefined) return false;
83
+ if (!('verificationRecordName' in value) || value['verificationRecordName'] === undefined) return false;
84
+ if (!('verificationExample' in value) || value['verificationExample'] === undefined) return false;
85
+ return true;
86
+ }
87
+
88
+ export function MarketplaceDtoFromJSON(json: any): MarketplaceDto {
89
+ return MarketplaceDtoFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function MarketplaceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketplaceDto {
93
+ if (json == null) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'code': json['code'],
99
+ 'name': json['name'],
100
+ 'routable': json['routable'],
101
+ 'verificationRecordType': json['verificationRecordType'],
102
+ 'verificationRecordName': json['verificationRecordName'],
103
+ 'verificationExample': json['verificationExample'],
104
+ };
105
+ }
106
+
107
+ export function MarketplaceDtoToJSON(json: any): MarketplaceDto {
108
+ return MarketplaceDtoToJSONTyped(json, false);
109
+ }
110
+
111
+ export function MarketplaceDtoToJSONTyped(value?: MarketplaceDto | null, ignoreDiscriminator: boolean = false): any {
112
+ if (value == null) {
113
+ return value;
114
+ }
115
+
116
+ return {
117
+
118
+ 'code': value['code'],
119
+ 'name': value['name'],
120
+ 'routable': value['routable'],
121
+ 'verificationRecordType': value['verificationRecordType'],
122
+ 'verificationRecordName': value['verificationRecordName'],
123
+ 'verificationExample': value['verificationExample'],
124
+ };
125
+ }
126
+
@@ -164,7 +164,7 @@ export interface OrderDto {
164
164
  */
165
165
  enabledPaymentMethods: Array<OrderDtoEnabledPaymentMethodsEnum>;
166
166
  /**
167
- * Available payment methods per gateway (canonical ids), keyed by PaymentGateway
167
+ * Available payment methods per gateway (canonical ids), keyed by PaymentGateway. Empty when the cache is missing or expired.
168
168
  * @type {object}
169
169
  * @memberof OrderDto
170
170
  */
@@ -175,6 +175,12 @@ export interface OrderDto {
175
175
  * @memberof OrderDto
176
176
  */
177
177
  selectedPaymentMethod: OrderDtoSelectedPaymentMethodEnum | null;
178
+ /**
179
+ * When the cached availablePaymentMethods expire. After this time, PATCH with forceUpdatePaymentMethods=true then GET again to refresh them.
180
+ * @type {Date}
181
+ * @memberof OrderDto
182
+ */
183
+ availablePaymentMethodsExpiresAt: Date | null;
178
184
  /**
179
185
  * Whether the buyer invoice can be issued as proforma.
180
186
  * @type {boolean}
@@ -302,6 +308,7 @@ export function instanceOfOrderDto(value: object): value is OrderDto {
302
308
  if (!('enabledPaymentMethods' in value) || value['enabledPaymentMethods'] === undefined) return false;
303
309
  if (!('availablePaymentMethods' in value) || value['availablePaymentMethods'] === undefined) return false;
304
310
  if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined) return false;
311
+ if (!('availablePaymentMethodsExpiresAt' in value) || value['availablePaymentMethodsExpiresAt'] === undefined) return false;
305
312
  if (!('canBeProforma' in value) || value['canBeProforma'] === undefined) return false;
306
313
  return true;
307
314
  }
@@ -336,6 +343,7 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
336
343
  'enabledPaymentMethods': json['enabledPaymentMethods'],
337
344
  'availablePaymentMethods': json['availablePaymentMethods'],
338
345
  'selectedPaymentMethod': json['selectedPaymentMethod'],
346
+ 'availablePaymentMethodsExpiresAt': (json['availablePaymentMethodsExpiresAt'] == null ? null : new Date(json['availablePaymentMethodsExpiresAt'])),
339
347
  'canBeProforma': json['canBeProforma'],
340
348
  };
341
349
  }
@@ -371,6 +379,7 @@ export function OrderDtoToJSONTyped(value?: OrderDto | null, ignoreDiscriminator
371
379
  'enabledPaymentMethods': value['enabledPaymentMethods'],
372
380
  'availablePaymentMethods': value['availablePaymentMethods'],
373
381
  'selectedPaymentMethod': value['selectedPaymentMethod'],
382
+ 'availablePaymentMethodsExpiresAt': (value['availablePaymentMethodsExpiresAt'] == null ? null : (value['availablePaymentMethodsExpiresAt'] as any).toISOString()),
374
383
  'canBeProforma': value['canBeProforma'],
375
384
  };
376
385
  }
@@ -185,7 +185,8 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
185
185
  ALLOW_FREE_SETUP_CUSTOM_INITIAL_PRICE: 'ALLOW_FREE_SETUP_CUSTOM_INITIAL_PRICE',
186
186
  USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
187
187
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
188
- AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD'
188
+ AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
189
+ MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
189
190
  } as const;
190
191
  export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
191
192
 
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 SetAccountMarketplaceInput
20
+ */
21
+ export interface SetAccountMarketplaceInput {
22
+ /**
23
+ * The value this marketplace issued the account, copied verbatim from its account page. It is published in the record the marketplace defines, for every domain of the account.
24
+ * @type {string}
25
+ * @memberof SetAccountMarketplaceInput
26
+ */
27
+ verificationCode: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SetAccountMarketplaceInput interface.
32
+ */
33
+ export function instanceOfSetAccountMarketplaceInput(value: object): value is SetAccountMarketplaceInput {
34
+ if (!('verificationCode' in value) || value['verificationCode'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function SetAccountMarketplaceInputFromJSON(json: any): SetAccountMarketplaceInput {
39
+ return SetAccountMarketplaceInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function SetAccountMarketplaceInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetAccountMarketplaceInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'verificationCode': json['verificationCode'],
49
+ };
50
+ }
51
+
52
+ export function SetAccountMarketplaceInputToJSON(json: any): SetAccountMarketplaceInput {
53
+ return SetAccountMarketplaceInputToJSONTyped(json, false);
54
+ }
55
+
56
+ export function SetAccountMarketplaceInputToJSONTyped(value?: SetAccountMarketplaceInput | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'verificationCode': value['verificationCode'],
64
+ };
65
+ }
66
+
@@ -66,6 +66,7 @@ export interface SimulateCommissionInput {
66
66
  export const SimulateCommissionInputSubtypeEnum = {
67
67
  POINTING: 'pointing',
68
68
  NOT_POINTING: 'not_pointing',
69
+ ROUTED: 'routed',
69
70
  MANUAL_LEAD: 'manual_lead',
70
71
  AUCTION: 'auction'
71
72
  } as const;
@@ -191,7 +191,7 @@ export interface SubscriptionDto {
191
191
  */
192
192
  hasPendingTransaction: boolean;
193
193
  /**
194
- * Available payment methods per gateway (canonical ids), keyed by PaymentGateway
194
+ * Available payment methods per gateway (canonical ids), keyed by PaymentGateway. Empty when the cache is missing or expired.
195
195
  * @type {object}
196
196
  * @memberof SubscriptionDto
197
197
  */
@@ -202,6 +202,12 @@ export interface SubscriptionDto {
202
202
  * @memberof SubscriptionDto
203
203
  */
204
204
  selectedPaymentMethod: SubscriptionDtoSelectedPaymentMethodEnum | null;
205
+ /**
206
+ * When the cached availablePaymentMethods expire. After this time, PATCH with forceUpdatePaymentMethods=true then GET again to refresh them.
207
+ * @type {Date}
208
+ * @memberof SubscriptionDto
209
+ */
210
+ availablePaymentMethodsExpiresAt: Date | null;
205
211
  /**
206
212
  * Subscribed domain.
207
213
  * @type {SubscriptionDomainDto}
@@ -408,6 +414,7 @@ export function instanceOfSubscriptionDto(value: object): value is SubscriptionD
408
414
  if (!('hasPendingTransaction' in value) || value['hasPendingTransaction'] === undefined) return false;
409
415
  if (!('availablePaymentMethods' in value) || value['availablePaymentMethods'] === undefined) return false;
410
416
  if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined) return false;
417
+ if (!('availablePaymentMethodsExpiresAt' in value) || value['availablePaymentMethodsExpiresAt'] === undefined) return false;
411
418
  if (!('domain' in value) || value['domain'] === undefined) return false;
412
419
  if (!('type' in value) || value['type'] === undefined) return false;
413
420
  if (!('installments' in value) || value['installments'] === undefined) return false;
@@ -452,6 +459,7 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
452
459
  'hasPendingTransaction': json['hasPendingTransaction'],
453
460
  'availablePaymentMethods': json['availablePaymentMethods'],
454
461
  'selectedPaymentMethod': json['selectedPaymentMethod'],
462
+ 'availablePaymentMethodsExpiresAt': (json['availablePaymentMethodsExpiresAt'] == null ? null : new Date(json['availablePaymentMethodsExpiresAt'])),
455
463
  'domain': SubscriptionDomainDtoFromJSON(json['domain']),
456
464
  'type': json['type'],
457
465
  'installments': json['installments'],
@@ -497,6 +505,7 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
497
505
  'hasPendingTransaction': value['hasPendingTransaction'],
498
506
  'availablePaymentMethods': value['availablePaymentMethods'],
499
507
  'selectedPaymentMethod': value['selectedPaymentMethod'],
508
+ 'availablePaymentMethodsExpiresAt': (value['availablePaymentMethodsExpiresAt'] == null ? null : (value['availablePaymentMethodsExpiresAt'] as any).toISOString()),
500
509
  'domain': SubscriptionDomainDtoToJSON(value['domain']),
501
510
  'type': value['type'],
502
511
  'installments': value['installments'],
@@ -55,6 +55,12 @@ import {
55
55
  * @interface UpdateDomainInput
56
56
  */
57
57
  export interface UpdateDomainInput {
58
+ /**
59
+ * Marketplace this domain resolves to on our nameservers, overriding the account default. Null inherits that default; "nameshift" opts out of it and keeps the domain on our own landing page.
60
+ * @type {string}
61
+ * @memberof UpdateDomainInput
62
+ */
63
+ marketplace?: UpdateDomainInputMarketplaceEnum | null;
58
64
  /**
59
65
  * Buy-it-now price for the domain
60
66
  * @type {MoneyDto}
@@ -105,6 +111,21 @@ export interface UpdateDomainInput {
105
111
  leadPriceNegotiator?: DomainLeadPriceNegotiatorAiAgentConfigurationInput | null;
106
112
  }
107
113
 
114
+
115
+ /**
116
+ * @export
117
+ */
118
+ export const UpdateDomainInputMarketplaceEnum = {
119
+ NAMESHIFT: 'nameshift',
120
+ SEDO: 'sedo',
121
+ AFTERNIC: 'afternic',
122
+ ATOM: 'atom',
123
+ SPACESHIP: 'spaceship',
124
+ NAMECLUB: 'nameclub'
125
+ } as const;
126
+ export type UpdateDomainInputMarketplaceEnum = typeof UpdateDomainInputMarketplaceEnum[keyof typeof UpdateDomainInputMarketplaceEnum];
127
+
128
+
108
129
  /**
109
130
  * Check if a given object implements the UpdateDomainInput interface.
110
131
  */
@@ -122,6 +143,7 @@ export function UpdateDomainInputFromJSONTyped(json: any, ignoreDiscriminator: b
122
143
  }
123
144
  return {
124
145
 
146
+ 'marketplace': json['marketplace'] == null ? undefined : json['marketplace'],
125
147
  'bin': json['bin'] == null ? undefined : MoneyDtoFromJSON(json['bin']),
126
148
  'minOffer': json['minOffer'] == null ? undefined : MoneyDtoFromJSON(json['minOffer']),
127
149
  'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
@@ -144,6 +166,7 @@ export function UpdateDomainInputToJSONTyped(value?: UpdateDomainInput | null, i
144
166
 
145
167
  return {
146
168
 
169
+ 'marketplace': value['marketplace'],
147
170
  'bin': MoneyDtoToJSON(value['bin']),
148
171
  'minOffer': MoneyDtoToJSON(value['minOffer']),
149
172
  'currencyCode': value['currencyCode'],
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 UpdateMarketplaceInput
20
+ */
21
+ export interface UpdateMarketplaceInput {
22
+ /**
23
+ * Display name of the marketplace.
24
+ * @type {string}
25
+ * @memberof UpdateMarketplaceInput
26
+ */
27
+ name?: string;
28
+ /**
29
+ * Whether domains may be routed to this marketplace. Domains already pointed at a disabled marketplace fall back to our own landing page.
30
+ * @type {boolean}
31
+ * @memberof UpdateMarketplaceInput
32
+ */
33
+ enabled?: boolean;
34
+ /**
35
+ * Authoritative nameservers queried when resolving a domain routed here. Reaches the edge on the next export.
36
+ * @type {Array<string>}
37
+ * @memberof UpdateMarketplaceInput
38
+ */
39
+ nameservers?: Array<string>;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the UpdateMarketplaceInput interface.
44
+ */
45
+ export function instanceOfUpdateMarketplaceInput(value: object): value is UpdateMarketplaceInput {
46
+ return true;
47
+ }
48
+
49
+ export function UpdateMarketplaceInputFromJSON(json: any): UpdateMarketplaceInput {
50
+ return UpdateMarketplaceInputFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function UpdateMarketplaceInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMarketplaceInput {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'name': json['name'] == null ? undefined : json['name'],
60
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
61
+ 'nameservers': json['nameservers'] == null ? undefined : json['nameservers'],
62
+ };
63
+ }
64
+
65
+ export function UpdateMarketplaceInputToJSON(json: any): UpdateMarketplaceInput {
66
+ return UpdateMarketplaceInputToJSONTyped(json, false);
67
+ }
68
+
69
+ export function UpdateMarketplaceInputToJSONTyped(value?: UpdateMarketplaceInput | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'name': value['name'],
77
+ 'enabled': value['enabled'],
78
+ 'nameservers': value['nameservers'],
79
+ };
80
+ }
81
+
@@ -99,6 +99,12 @@ export interface UpdateOrderInput {
99
99
  * @memberof UpdateOrderInput
100
100
  */
101
101
  selfDeclaredTaxCountry?: string;
102
+ /**
103
+ * Controls payment methods cache refresh. true: force recalculation even if the fingerprint is still valid. false: never refresh payment methods on this update. omit/undefined: refresh only when the cache is missing or the fingerprint changed.
104
+ * @type {boolean}
105
+ * @memberof UpdateOrderInput
106
+ */
107
+ forceUpdatePaymentMethods?: boolean;
102
108
  }
103
109
 
104
110
  /**
@@ -130,6 +136,7 @@ export function UpdateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
130
136
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
131
137
  'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
132
138
  'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
139
+ 'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
133
140
  };
134
141
  }
135
142
 
@@ -156,6 +163,7 @@ export function UpdateOrderInputToJSONTyped(value?: UpdateOrderInput | null, ign
156
163
  'addressCity': value['addressCity'],
157
164
  'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
158
165
  'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
166
+ 'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
159
167
  };
160
168
  }
161
169
 
@@ -118,6 +118,12 @@ export interface UpdateSubscriptionInput {
118
118
  * @memberof UpdateSubscriptionInput
119
119
  */
120
120
  selfDeclaredTaxCountry?: string;
121
+ /**
122
+ * Controls payment methods cache refresh. true: force recalculation even if the fingerprint is still valid. false: never refresh payment methods on this update. omit/undefined: refresh only when the cache is missing or the fingerprint changed.
123
+ * @type {boolean}
124
+ * @memberof UpdateSubscriptionInput
125
+ */
126
+ forceUpdatePaymentMethods?: boolean;
121
127
  }
122
128
 
123
129
  /**
@@ -151,6 +157,7 @@ export function UpdateSubscriptionInputFromJSONTyped(json: any, ignoreDiscrimina
151
157
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
152
158
  'companyInfo': json['companyInfo'] == null ? undefined : SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
153
159
  'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
160
+ 'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
154
161
  };
155
162
  }
156
163
 
@@ -179,6 +186,7 @@ export function UpdateSubscriptionInputToJSONTyped(value?: UpdateSubscriptionInp
179
186
  'addressCity': value['addressCity'],
180
187
  'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
181
188
  'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
189
+ 'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
182
190
  };
183
191
  }
184
192
 
@@ -9,6 +9,7 @@ export * from './AccountChallengeRewardUsageListItemDtoMetadata';
9
9
  export * from './AccountCommissionByDateRangeDto';
10
10
  export * from './AccountCountryStatsDto';
11
11
  export * from './AccountDto';
12
+ export * from './AccountMarketplaceDto';
12
13
  export * from './AccountMetricsDto';
13
14
  export * from './AccountNameshiftCommissionBySubtypeDto';
14
15
  export * from './AccountNameshiftCommissionBySubtypePercentagesDto';
@@ -62,6 +63,7 @@ export * from './AdminLeadListItemBuyerDto';
62
63
  export * from './AdminLeadListItemDomainDto';
63
64
  export * from './AdminLeadListItemDto';
64
65
  export * from './AdminListAccountDto';
66
+ export * from './AdminMarketplaceDto';
65
67
  export * from './AdminVerificationDepositDto';
66
68
  export * from './AffiliatesStatsDto';
67
69
  export * from './AggregatedPaginationResponse';
@@ -334,6 +336,7 @@ export * from './ManualLeadLeaseToOwnDto';
334
336
  export * from './MarketingDashboardStatsDto';
335
337
  export * from './MarketingOrderListItemDto';
336
338
  export * from './MarketingSalesFiltersDto';
339
+ export * from './MarketplaceDto';
337
340
  export * from './MoneyDecimalDto';
338
341
  export * from './MoneyDto';
339
342
  export * from './MoneyInput';
@@ -432,6 +435,7 @@ export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInput';
432
435
  export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel';
433
436
  export * from './SeoMetricsDto';
434
437
  export * from './SepaBankAccountDetails';
438
+ export * from './SetAccountMarketplaceInput';
435
439
  export * from './SetDomainTransferConfirmationInput';
436
440
  export * from './SetNewPasswordInput';
437
441
  export * from './SetPayoutProviderInput';
@@ -489,6 +493,7 @@ export * from './UpdateLeadInput';
489
493
  export * from './UpdateLeadMuteStatusForBuyerInput';
490
494
  export * from './UpdateLeadMuteStatusInput';
491
495
  export * from './UpdateLeaseToOwnConfigurationDto';
496
+ export * from './UpdateMarketplaceInput';
492
497
  export * from './UpdateOrderInput';
493
498
  export * from './UpdateRentConfigurationDto';
494
499
  export * from './UpdateSubscriptionBillingPeriodicityInput';