@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
@@ -0,0 +1,99 @@
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 AccountMarketplaceDto
20
+ */
21
+ export interface AccountMarketplaceDto {
22
+ /**
23
+ * The marketplace this link is for.
24
+ * @type {string}
25
+ * @memberof AccountMarketplaceDto
26
+ */
27
+ code: AccountMarketplaceDtoCodeEnum;
28
+ /**
29
+ * Display name of the marketplace.
30
+ * @type {string}
31
+ * @memberof AccountMarketplaceDto
32
+ */
33
+ name: string;
34
+ /**
35
+ * The value this marketplace issued the account. Published for every domain of the account, whichever marketplace each domain is routed to, so the account stays verified everywhere.
36
+ * @type {string}
37
+ * @memberof AccountMarketplaceDto
38
+ */
39
+ verificationCode: string | null;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const AccountMarketplaceDtoCodeEnum = {
47
+ NAMESHIFT: 'nameshift',
48
+ SEDO: 'sedo',
49
+ AFTERNIC: 'afternic',
50
+ ATOM: 'atom',
51
+ SPACESHIP: 'spaceship',
52
+ NAMECLUB: 'nameclub'
53
+ } as const;
54
+ export type AccountMarketplaceDtoCodeEnum = typeof AccountMarketplaceDtoCodeEnum[keyof typeof AccountMarketplaceDtoCodeEnum];
55
+
56
+
57
+ /**
58
+ * Check if a given object implements the AccountMarketplaceDto interface.
59
+ */
60
+ export function instanceOfAccountMarketplaceDto(value: object): value is AccountMarketplaceDto {
61
+ if (!('code' in value) || value['code'] === undefined) return false;
62
+ if (!('name' in value) || value['name'] === undefined) return false;
63
+ if (!('verificationCode' in value) || value['verificationCode'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function AccountMarketplaceDtoFromJSON(json: any): AccountMarketplaceDto {
68
+ return AccountMarketplaceDtoFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function AccountMarketplaceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountMarketplaceDto {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'code': json['code'],
78
+ 'name': json['name'],
79
+ 'verificationCode': json['verificationCode'],
80
+ };
81
+ }
82
+
83
+ export function AccountMarketplaceDtoToJSON(json: any): AccountMarketplaceDto {
84
+ return AccountMarketplaceDtoToJSONTyped(json, false);
85
+ }
86
+
87
+ export function AccountMarketplaceDtoToJSONTyped(value?: AccountMarketplaceDto | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'code': value['code'],
95
+ 'name': value['name'],
96
+ 'verificationCode': value['verificationCode'],
97
+ };
98
+ }
99
+
@@ -60,6 +60,7 @@ export interface AccountNameshiftCommissionBySubtypeDto {
60
60
  export const AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = {
61
61
  POINTING: 'pointing',
62
62
  NOT_POINTING: 'not_pointing',
63
+ ROUTED: 'routed',
63
64
  MANUAL_LEAD: 'manual_lead',
64
65
  AUCTION: 'auction'
65
66
  } as const;
@@ -84,6 +84,7 @@ export interface AccountNameshiftCommissionItemDto {
84
84
  export const AccountNameshiftCommissionItemDtoSubtypeEnum = {
85
85
  POINTING: 'pointing',
86
86
  NOT_POINTING: 'not_pointing',
87
+ ROUTED: 'routed',
87
88
  MANUAL_LEAD: 'manual_lead',
88
89
  AUCTION: 'auction'
89
90
  } as const;
@@ -130,6 +130,7 @@ export type AccountNameshiftCommissionReasonDtoTypeEnum = typeof AccountNameshif
130
130
  export const AccountNameshiftCommissionReasonDtoSubtypeEnum = {
131
131
  POINTING: 'pointing',
132
132
  NOT_POINTING: 'not_pointing',
133
+ ROUTED: 'routed',
133
134
  MANUAL_LEAD: 'manual_lead',
134
135
  AUCTION: 'auction'
135
136
  } as const;
@@ -154,8 +154,29 @@ export interface AccountSettingsDto {
154
154
  * @memberof AccountSettingsDto
155
155
  */
156
156
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
157
+ /**
158
+ * Default marketplace the account's domains resolve to on our nameservers. Null serves our own landing page. Individual domains may override it.
159
+ * @type {string}
160
+ * @memberof AccountSettingsDto
161
+ */
162
+ marketplace: AccountSettingsDtoMarketplaceEnum | null;
157
163
  }
158
164
 
165
+
166
+ /**
167
+ * @export
168
+ */
169
+ export const AccountSettingsDtoMarketplaceEnum = {
170
+ NAMESHIFT: 'nameshift',
171
+ SEDO: 'sedo',
172
+ AFTERNIC: 'afternic',
173
+ ATOM: 'atom',
174
+ SPACESHIP: 'spaceship',
175
+ NAMECLUB: 'nameclub'
176
+ } as const;
177
+ export type AccountSettingsDtoMarketplaceEnum = typeof AccountSettingsDtoMarketplaceEnum[keyof typeof AccountSettingsDtoMarketplaceEnum];
178
+
179
+
159
180
  /**
160
181
  * Check if a given object implements the AccountSettingsDto interface.
161
182
  */
@@ -173,6 +194,7 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
173
194
  if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined) return false;
174
195
  if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined) return false;
175
196
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
197
+ if (!('marketplace' in value) || value['marketplace'] === undefined) return false;
176
198
  return true;
177
199
  }
178
200
 
@@ -199,6 +221,7 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
199
221
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
200
222
  'domainLockConfiguration': DomainLockConfigurationDtoFromJSON(json['domainLockConfiguration']),
201
223
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
224
+ 'marketplace': json['marketplace'],
202
225
  };
203
226
  }
204
227
 
@@ -226,6 +249,7 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
226
249
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
227
250
  'domainLockConfiguration': DomainLockConfigurationDtoToJSON(value['domainLockConfiguration']),
228
251
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
252
+ 'marketplace': value['marketplace'],
229
253
  };
230
254
  }
231
255
 
@@ -87,6 +87,12 @@ export interface AccountSettingsInput {
87
87
  * @memberof AccountSettingsInput
88
88
  */
89
89
  sidnIdcode?: string | null;
90
+ /**
91
+ * Default marketplace the account's domains resolve to on our nameservers. Null or "nameshift" serves our own landing page. Individual domains may override this.
92
+ * @type {string}
93
+ * @memberof AccountSettingsInput
94
+ */
95
+ marketplace?: AccountSettingsInputMarketplaceEnum | null;
90
96
  /**
91
97
  * Default landing page settings for the account
92
98
  * @type {LandingPageInput}
@@ -155,6 +161,21 @@ export interface AccountSettingsInput {
155
161
  leadOfferExpirationConfiguration?: LockConfigurationInput;
156
162
  }
157
163
 
164
+
165
+ /**
166
+ * @export
167
+ */
168
+ export const AccountSettingsInputMarketplaceEnum = {
169
+ NAMESHIFT: 'nameshift',
170
+ SEDO: 'sedo',
171
+ AFTERNIC: 'afternic',
172
+ ATOM: 'atom',
173
+ SPACESHIP: 'spaceship',
174
+ NAMECLUB: 'nameclub'
175
+ } as const;
176
+ export type AccountSettingsInputMarketplaceEnum = typeof AccountSettingsInputMarketplaceEnum[keyof typeof AccountSettingsInputMarketplaceEnum];
177
+
178
+
158
179
  /**
159
180
  * Check if a given object implements the AccountSettingsInput interface.
160
181
  */
@@ -175,6 +196,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
175
196
  'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : MoneyDtoFromJSON(json['defaultStartingOffer']),
176
197
  'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
177
198
  'sidnIdcode': json['sidnIdcode'] == null ? undefined : json['sidnIdcode'],
199
+ 'marketplace': json['marketplace'] == null ? undefined : json['marketplace'],
178
200
  'landingPage': json['landingPage'] == null ? undefined : LandingPageInputFromJSON(json['landingPage']),
179
201
  'leaseToOwn': json['leaseToOwn'] == null ? undefined : LeaseToOwnConfigurationInputFromJSON(json['leaseToOwn']),
180
202
  'description': json['description'] == null ? undefined : json['description'],
@@ -203,6 +225,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
203
225
  'defaultStartingOffer': MoneyDtoToJSON(value['defaultStartingOffer']),
204
226
  'defaultCurrencyCode': value['defaultCurrencyCode'],
205
227
  'sidnIdcode': value['sidnIdcode'],
228
+ 'marketplace': value['marketplace'],
206
229
  'landingPage': LandingPageInputToJSON(value['landingPage']),
207
230
  'leaseToOwn': LeaseToOwnConfigurationInputToJSON(value['leaseToOwn']),
208
231
  'description': value['description'],
@@ -249,6 +249,12 @@ export interface AdminDomainListItemDto {
249
249
  * @memberof AdminDomainListItemDto
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 AdminDomainListItemDto
256
+ */
257
+ marketplace: AdminDomainListItemDtoMarketplaceEnum | null;
252
258
  /**
253
259
  * Account that owns the domain.
254
260
  * @type {AccountDto}
@@ -264,6 +270,19 @@ export interface AdminDomainListItemDto {
264
270
  }
265
271
 
266
272
 
273
+ /**
274
+ * @export
275
+ */
276
+ export const AdminDomainListItemDtoMarketplaceEnum = {
277
+ NAMESHIFT: 'nameshift',
278
+ SEDO: 'sedo',
279
+ AFTERNIC: 'afternic',
280
+ ATOM: 'atom',
281
+ SPACESHIP: 'spaceship',
282
+ NAMECLUB: 'nameclub'
283
+ } as const;
284
+ export type AdminDomainListItemDtoMarketplaceEnum = typeof AdminDomainListItemDtoMarketplaceEnum[keyof typeof AdminDomainListItemDtoMarketplaceEnum];
285
+
267
286
  /**
268
287
  * @export
269
288
  */
@@ -272,6 +291,7 @@ export const AdminDomainListItemDtoPointsToOurServerReasonEnum = {
272
291
  VALID_A_RECORDS: 'valid_a_records',
273
292
  NO_A_RECORDS: 'no_a_records',
274
293
  INVALID_A_RECORDS: 'invalid_a_records',
294
+ ROUTED_TO_MARKETPLACE: 'routed_to_marketplace',
275
295
  NX_DOMAIN: 'nx_domain',
276
296
  DNS_LOOKUP_ERROR: 'dns_lookup_error'
277
297
  } as const;
@@ -312,6 +332,7 @@ export function instanceOfAdminDomainListItemDto(value: object): value is AdminD
312
332
  if (!('isLocked' in value) || value['isLocked'] === undefined) return false;
313
333
  if (!('lockedUntil' in value) || value['lockedUntil'] === undefined) return false;
314
334
  if (!('showcased' in value) || value['showcased'] === undefined) return false;
335
+ if (!('marketplace' in value) || value['marketplace'] === undefined) return false;
315
336
  if (!('account' in value) || value['account'] === undefined) return false;
316
337
  if (!('pointsToOurServerReason' in value) || value['pointsToOurServerReason'] === undefined) return false;
317
338
  return true;
@@ -357,6 +378,7 @@ export function AdminDomainListItemDtoFromJSONTyped(json: any, ignoreDiscriminat
357
378
  'isLocked': json['isLocked'],
358
379
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
359
380
  'showcased': json['showcased'],
381
+ 'marketplace': json['marketplace'],
360
382
  'account': AccountDtoFromJSON(json['account']),
361
383
  'pointsToOurServerReason': json['pointsToOurServerReason'],
362
384
  };
@@ -403,6 +425,7 @@ export function AdminDomainListItemDtoToJSONTyped(value?: AdminDomainListItemDto
403
425
  'isLocked': value['isLocked'],
404
426
  'lockedUntil': (value['lockedUntil'] == null ? null : (value['lockedUntil'] as any).toISOString()),
405
427
  'showcased': value['showcased'],
428
+ 'marketplace': value['marketplace'],
406
429
  'account': AccountDtoToJSON(value['account']),
407
430
  'pointsToOurServerReason': value['pointsToOurServerReason'],
408
431
  };
@@ -0,0 +1,144 @@
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 AdminMarketplaceDto
20
+ */
21
+ export interface AdminMarketplaceDto {
22
+ /**
23
+ * Stable code used to select this marketplace.
24
+ * @type {string}
25
+ * @memberof AdminMarketplaceDto
26
+ */
27
+ code: AdminMarketplaceDtoCodeEnum;
28
+ /**
29
+ * Display name of the marketplace.
30
+ * @type {string}
31
+ * @memberof AdminMarketplaceDto
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 AdminMarketplaceDto
38
+ */
39
+ routable: boolean;
40
+ /**
41
+ * Record type the verification code is published as.
42
+ * @type {string}
43
+ * @memberof AdminMarketplaceDto
44
+ */
45
+ verificationRecordType: string;
46
+ /**
47
+ * Record name the verification code is published at, relative to the domain.
48
+ * @type {string}
49
+ * @memberof AdminMarketplaceDto
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 AdminMarketplaceDto
56
+ */
57
+ verificationExample: string | null;
58
+ /**
59
+ * Authoritative nameservers queried when resolving a domain routed here.
60
+ * @type {Array<string>}
61
+ * @memberof AdminMarketplaceDto
62
+ */
63
+ nameservers: Array<string>;
64
+ /**
65
+ * Whether the marketplace is enabled.
66
+ * @type {boolean}
67
+ * @memberof AdminMarketplaceDto
68
+ */
69
+ enabled: boolean;
70
+ }
71
+
72
+
73
+ /**
74
+ * @export
75
+ */
76
+ export const AdminMarketplaceDtoCodeEnum = {
77
+ NAMESHIFT: 'nameshift',
78
+ SEDO: 'sedo',
79
+ AFTERNIC: 'afternic',
80
+ ATOM: 'atom',
81
+ SPACESHIP: 'spaceship',
82
+ NAMECLUB: 'nameclub'
83
+ } as const;
84
+ export type AdminMarketplaceDtoCodeEnum = typeof AdminMarketplaceDtoCodeEnum[keyof typeof AdminMarketplaceDtoCodeEnum];
85
+
86
+
87
+ /**
88
+ * Check if a given object implements the AdminMarketplaceDto interface.
89
+ */
90
+ export function instanceOfAdminMarketplaceDto(value: object): value is AdminMarketplaceDto {
91
+ if (!('code' in value) || value['code'] === undefined) return false;
92
+ if (!('name' in value) || value['name'] === undefined) return false;
93
+ if (!('routable' in value) || value['routable'] === undefined) return false;
94
+ if (!('verificationRecordType' in value) || value['verificationRecordType'] === undefined) return false;
95
+ if (!('verificationRecordName' in value) || value['verificationRecordName'] === undefined) return false;
96
+ if (!('verificationExample' in value) || value['verificationExample'] === undefined) return false;
97
+ if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
98
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
99
+ return true;
100
+ }
101
+
102
+ export function AdminMarketplaceDtoFromJSON(json: any): AdminMarketplaceDto {
103
+ return AdminMarketplaceDtoFromJSONTyped(json, false);
104
+ }
105
+
106
+ export function AdminMarketplaceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminMarketplaceDto {
107
+ if (json == null) {
108
+ return json;
109
+ }
110
+ return {
111
+
112
+ 'code': json['code'],
113
+ 'name': json['name'],
114
+ 'routable': json['routable'],
115
+ 'verificationRecordType': json['verificationRecordType'],
116
+ 'verificationRecordName': json['verificationRecordName'],
117
+ 'verificationExample': json['verificationExample'],
118
+ 'nameservers': json['nameservers'],
119
+ 'enabled': json['enabled'],
120
+ };
121
+ }
122
+
123
+ export function AdminMarketplaceDtoToJSON(json: any): AdminMarketplaceDto {
124
+ return AdminMarketplaceDtoToJSONTyped(json, false);
125
+ }
126
+
127
+ export function AdminMarketplaceDtoToJSONTyped(value?: AdminMarketplaceDto | null, ignoreDiscriminator: boolean = false): any {
128
+ if (value == null) {
129
+ return value;
130
+ }
131
+
132
+ return {
133
+
134
+ 'code': value['code'],
135
+ 'name': value['name'],
136
+ 'routable': value['routable'],
137
+ 'verificationRecordType': value['verificationRecordType'],
138
+ 'verificationRecordName': value['verificationRecordName'],
139
+ 'verificationExample': value['verificationExample'],
140
+ 'nameservers': value['nameservers'],
141
+ 'enabled': value['enabled'],
142
+ };
143
+ }
144
+
@@ -130,6 +130,7 @@ export type CommissionDtoTypeEnum = typeof CommissionDtoTypeEnum[keyof typeof Co
130
130
  export const CommissionDtoSubtypeEnum = {
131
131
  POINTING: 'pointing',
132
132
  NOT_POINTING: 'not_pointing',
133
+ ROUTED: 'routed',
133
134
  MANUAL_LEAD: 'manual_lead',
134
135
  AUCTION: 'auction'
135
136
  } as const;
@@ -111,6 +111,7 @@ export type CommissionPayloadInputTypeEnum = typeof CommissionPayloadInputTypeEn
111
111
  export const CommissionPayloadInputSubtypeEnum = {
112
112
  POINTING: 'pointing',
113
113
  NOT_POINTING: 'not_pointing',
114
+ ROUTED: 'routed',
114
115
  MANUAL_LEAD: 'manual_lead',
115
116
  AUCTION: 'auction'
116
117
  } as const;
@@ -148,6 +148,7 @@ export type CommissionReasonDtoTypeEnum = typeof CommissionReasonDtoTypeEnum[key
148
148
  export const CommissionReasonDtoSubtypeEnum = {
149
149
  POINTING: 'pointing',
150
150
  NOT_POINTING: 'not_pointing',
151
+ ROUTED: 'routed',
151
152
  MANUAL_LEAD: 'manual_lead',
152
153
  AUCTION: 'auction'
153
154
  } as const;
@@ -123,6 +123,7 @@ export type CommissionSimulationItemInputTypeEnum = typeof CommissionSimulationI
123
123
  export const CommissionSimulationItemInputSubtypeEnum = {
124
124
  POINTING: 'pointing',
125
125
  NOT_POINTING: 'not_pointing',
126
+ ROUTED: 'routed',
126
127
  MANUAL_LEAD: 'manual_lead',
127
128
  AUCTION: 'auction'
128
129
  } as const;
@@ -99,6 +99,12 @@ export interface CreateOrderInput {
99
99
  * @memberof CreateOrderInput
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 CreateOrderInput
106
+ */
107
+ forceUpdatePaymentMethods?: boolean;
102
108
  /**
103
109
  * Full domain name to purchase
104
110
  * @type {string}
@@ -149,6 +155,7 @@ export function CreateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
149
155
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
150
156
  'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
151
157
  'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
158
+ 'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
152
159
  'domainName': json['domainName'],
153
160
  'leadId': json['leadId'] == null ? undefined : json['leadId'],
154
161
  'affiliateId': json['affiliateId'] == null ? undefined : json['affiliateId'],
@@ -178,6 +185,7 @@ export function CreateOrderInputToJSONTyped(value?: CreateOrderInput | null, ign
178
185
  'addressCity': value['addressCity'],
179
186
  'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
180
187
  'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
188
+ 'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
181
189
  'domainName': value['domainName'],
182
190
  'leadId': value['leadId'],
183
191
  'affiliateId': value['affiliateId'],
@@ -118,6 +118,12 @@ export interface CreateSubscriptionInput {
118
118
  * @memberof CreateSubscriptionInput
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 CreateSubscriptionInput
125
+ */
126
+ forceUpdatePaymentMethods?: boolean;
121
127
  /**
122
128
  * Full domain name for the subscription
123
129
  * @type {string}
@@ -182,6 +188,7 @@ export function CreateSubscriptionInputFromJSONTyped(json: any, ignoreDiscrimina
182
188
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
183
189
  'companyInfo': json['companyInfo'] == null ? undefined : SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
184
190
  'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
191
+ 'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
185
192
  'domainName': json['domainName'],
186
193
  'subscriptionType': json['subscriptionType'],
187
194
  'affiliateId': json['affiliateId'] == null ? undefined : json['affiliateId'],
@@ -213,6 +220,7 @@ export function CreateSubscriptionInputToJSONTyped(value?: CreateSubscriptionInp
213
220
  'addressCity': value['addressCity'],
214
221
  'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
215
222
  'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
223
+ 'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
216
224
  'domainName': value['domainName'],
217
225
  'subscriptionType': value['subscriptionType'],
218
226
  'affiliateId': value['affiliateId'],
@@ -93,7 +93,8 @@ export const FeatureFlagListItemDtoNameEnum = {
93
93
  ALLOW_FREE_SETUP_CUSTOM_INITIAL_PRICE: 'ALLOW_FREE_SETUP_CUSTOM_INITIAL_PRICE',
94
94
  USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
95
95
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
96
- AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD'
96
+ AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
97
+ MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
97
98
  } as const;
98
99
  export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
99
100
 
@@ -179,7 +179,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
179
179
  ALLOW_FREE_SETUP_CUSTOM_INITIAL_PRICE: 'ALLOW_FREE_SETUP_CUSTOM_INITIAL_PRICE',
180
180
  USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
181
181
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
182
- AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD'
182
+ AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
183
+ MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
183
184
  } as const;
184
185
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
185
186
 
@@ -249,6 +249,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
249
249
  * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
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 IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
256
+ */
257
+ marketplace: IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoMarketplaceEnum | null;
252
258
  /**
253
259
  * Account that owns the domain.
254
260
  * @type {AccountDto}
@@ -263,6 +269,21 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
263
269
  hasAuction: boolean;
264
270
  }
265
271
 
272
+
273
+ /**
274
+ * @export
275
+ */
276
+ export const IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoMarketplaceEnum = {
277
+ NAMESHIFT: 'nameshift',
278
+ SEDO: 'sedo',
279
+ AFTERNIC: 'afternic',
280
+ ATOM: 'atom',
281
+ SPACESHIP: 'spaceship',
282
+ NAMECLUB: 'nameclub'
283
+ } as const;
284
+ export type IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoMarketplaceEnum = typeof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoMarketplaceEnum[keyof typeof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoMarketplaceEnum];
285
+
286
+
266
287
  /**
267
288
  * Check if a given object implements the IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto interface.
268
289
  */
@@ -297,6 +318,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(
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 (!('account' in value) || value['account'] === undefined) return false;
301
323
  if (!('hasAuction' in value) || value['hasAuction'] === undefined) return false;
302
324
  return true;
@@ -342,6 +364,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyp
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
  'account': AccountDtoFromJSON(json['account']),
346
369
  'hasAuction': json['hasAuction'],
347
370
  };
@@ -388,6 +411,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped
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
  'account': AccountDtoToJSON(value['account']),
392
416
  'hasAuction': value['hasAuction'],
393
417
  };