@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
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoMarketplaceEnum = void 0;
16
17
  exports.instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto = instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto;
17
18
  exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON = IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON;
18
19
  exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped = IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped;
@@ -25,6 +26,17 @@ var LeaseToOwnConfigurationDto_1 = require("./LeaseToOwnConfigurationDto");
25
26
  var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
26
27
  var AccountDto_1 = require("./AccountDto");
27
28
  var DomainLeadPriceNegotiatorAiAgentConfigurationDto_1 = require("./DomainLeadPriceNegotiatorAiAgentConfigurationDto");
29
+ /**
30
+ * @export
31
+ */
32
+ exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoMarketplaceEnum = {
33
+ NAMESHIFT: 'nameshift',
34
+ SEDO: 'sedo',
35
+ AFTERNIC: 'afternic',
36
+ ATOM: 'atom',
37
+ SPACESHIP: 'spaceship',
38
+ NAMECLUB: 'nameclub'
39
+ };
28
40
  /**
29
41
  * Check if a given object implements the IntersectionDomainDtoWithHijackerDtoWithAccountDto interface.
30
42
  */
@@ -89,6 +101,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
89
101
  return false;
90
102
  if (!('showcased' in value) || value['showcased'] === undefined)
91
103
  return false;
104
+ if (!('marketplace' in value) || value['marketplace'] === undefined)
105
+ return false;
92
106
  if (!('hijacker' in value) || value['hijacker'] === undefined)
93
107
  return false;
94
108
  if (!('account' in value) || value['account'] === undefined)
@@ -133,6 +147,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
133
147
  'isLocked': json['isLocked'],
134
148
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
135
149
  'showcased': json['showcased'],
150
+ 'marketplace': json['marketplace'],
136
151
  'hijacker': (0, AccountDto_1.AccountDtoFromJSON)(json['hijacker']),
137
152
  'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
138
153
  };
@@ -176,6 +191,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(value, ig
176
191
  'isLocked': value['isLocked'],
177
192
  'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
178
193
  'showcased': value['showcased'],
194
+ 'marketplace': value['marketplace'],
179
195
  'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value['hijacker']),
180
196
  'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
181
197
  };
@@ -202,6 +202,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
202
202
  * @memberof IntersectionDomainDtoWithSeoMetricsDto
203
203
  */
204
204
  showcased: boolean;
205
+ /**
206
+ * 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.
207
+ * @type {string}
208
+ * @memberof IntersectionDomainDtoWithSeoMetricsDto
209
+ */
210
+ marketplace: IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum | null;
205
211
  /**
206
212
  * SEO metrics for the domain from Moz, Majestic, and historical sources.
207
213
  * @type {SeoMetricsDto}
@@ -209,6 +215,18 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
209
215
  */
210
216
  seoMetrics: SeoMetricsDto | null;
211
217
  }
218
+ /**
219
+ * @export
220
+ */
221
+ export declare const IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum: {
222
+ readonly NAMESHIFT: "nameshift";
223
+ readonly SEDO: "sedo";
224
+ readonly AFTERNIC: "afternic";
225
+ readonly ATOM: "atom";
226
+ readonly SPACESHIP: "spaceship";
227
+ readonly NAMECLUB: "nameclub";
228
+ };
229
+ export type IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum = typeof IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum[keyof typeof IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum];
212
230
  /**
213
231
  * Check if a given object implements the IntersectionDomainDtoWithSeoMetricsDto interface.
214
232
  */
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum = void 0;
16
17
  exports.instanceOfIntersectionDomainDtoWithSeoMetricsDto = instanceOfIntersectionDomainDtoWithSeoMetricsDto;
17
18
  exports.IntersectionDomainDtoWithSeoMetricsDtoFromJSON = IntersectionDomainDtoWithSeoMetricsDtoFromJSON;
18
19
  exports.IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped = IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped;
@@ -25,6 +26,17 @@ var LeaseToOwnConfigurationDto_1 = require("./LeaseToOwnConfigurationDto");
25
26
  var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
26
27
  var SeoMetricsDto_1 = require("./SeoMetricsDto");
27
28
  var DomainLeadPriceNegotiatorAiAgentConfigurationDto_1 = require("./DomainLeadPriceNegotiatorAiAgentConfigurationDto");
29
+ /**
30
+ * @export
31
+ */
32
+ exports.IntersectionDomainDtoWithSeoMetricsDtoMarketplaceEnum = {
33
+ NAMESHIFT: 'nameshift',
34
+ SEDO: 'sedo',
35
+ AFTERNIC: 'afternic',
36
+ ATOM: 'atom',
37
+ SPACESHIP: 'spaceship',
38
+ NAMECLUB: 'nameclub'
39
+ };
28
40
  /**
29
41
  * Check if a given object implements the IntersectionDomainDtoWithSeoMetricsDto interface.
30
42
  */
@@ -89,6 +101,8 @@ function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value) {
89
101
  return false;
90
102
  if (!('showcased' in value) || value['showcased'] === undefined)
91
103
  return false;
104
+ if (!('marketplace' in value) || value['marketplace'] === undefined)
105
+ return false;
92
106
  if (!('seoMetrics' in value) || value['seoMetrics'] === undefined)
93
107
  return false;
94
108
  return true;
@@ -131,6 +145,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscrim
131
145
  'isLocked': json['isLocked'],
132
146
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
133
147
  'showcased': json['showcased'],
148
+ 'marketplace': json['marketplace'],
134
149
  'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoFromJSON)(json['seoMetrics']),
135
150
  };
136
151
  }
@@ -173,6 +188,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscrimi
173
188
  'isLocked': value['isLocked'],
174
189
  'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
175
190
  'showcased': value['showcased'],
191
+ 'marketplace': value['marketplace'],
176
192
  'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoToJSON)(value['seoMetrics']),
177
193
  };
178
194
  }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Nameshift
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface MarketplaceDto
16
+ */
17
+ export interface MarketplaceDto {
18
+ /**
19
+ * Stable code used to select this marketplace.
20
+ * @type {string}
21
+ * @memberof MarketplaceDto
22
+ */
23
+ code: MarketplaceDtoCodeEnum;
24
+ /**
25
+ * Display name of the marketplace.
26
+ * @type {string}
27
+ * @memberof MarketplaceDto
28
+ */
29
+ name: string;
30
+ /**
31
+ * Whether domains may currently be routed to this marketplace. A marketplace without nameservers cannot be routed to.
32
+ * @type {boolean}
33
+ * @memberof MarketplaceDto
34
+ */
35
+ routable: boolean;
36
+ /**
37
+ * Record type the verification code is published as.
38
+ * @type {string}
39
+ * @memberof MarketplaceDto
40
+ */
41
+ verificationRecordType: string;
42
+ /**
43
+ * Record name the verification code is published at, relative to the domain.
44
+ * @type {string}
45
+ * @memberof MarketplaceDto
46
+ */
47
+ verificationRecordName: string;
48
+ /**
49
+ * An example of the value this marketplace issues, shown so a seller recognises it.
50
+ * @type {string}
51
+ * @memberof MarketplaceDto
52
+ */
53
+ verificationExample: string | null;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const MarketplaceDtoCodeEnum: {
59
+ readonly NAMESHIFT: "nameshift";
60
+ readonly SEDO: "sedo";
61
+ readonly AFTERNIC: "afternic";
62
+ readonly ATOM: "atom";
63
+ readonly SPACESHIP: "spaceship";
64
+ readonly NAMECLUB: "nameclub";
65
+ };
66
+ export type MarketplaceDtoCodeEnum = typeof MarketplaceDtoCodeEnum[keyof typeof MarketplaceDtoCodeEnum];
67
+ /**
68
+ * Check if a given object implements the MarketplaceDto interface.
69
+ */
70
+ export declare function instanceOfMarketplaceDto(value: object): value is MarketplaceDto;
71
+ export declare function MarketplaceDtoFromJSON(json: any): MarketplaceDto;
72
+ export declare function MarketplaceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketplaceDto;
73
+ export declare function MarketplaceDtoToJSON(json: any): MarketplaceDto;
74
+ export declare function MarketplaceDtoToJSONTyped(value?: MarketplaceDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MarketplaceDtoCodeEnum = void 0;
17
+ exports.instanceOfMarketplaceDto = instanceOfMarketplaceDto;
18
+ exports.MarketplaceDtoFromJSON = MarketplaceDtoFromJSON;
19
+ exports.MarketplaceDtoFromJSONTyped = MarketplaceDtoFromJSONTyped;
20
+ exports.MarketplaceDtoToJSON = MarketplaceDtoToJSON;
21
+ exports.MarketplaceDtoToJSONTyped = MarketplaceDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.MarketplaceDtoCodeEnum = {
26
+ NAMESHIFT: 'nameshift',
27
+ SEDO: 'sedo',
28
+ AFTERNIC: 'afternic',
29
+ ATOM: 'atom',
30
+ SPACESHIP: 'spaceship',
31
+ NAMECLUB: 'nameclub'
32
+ };
33
+ /**
34
+ * Check if a given object implements the MarketplaceDto interface.
35
+ */
36
+ function instanceOfMarketplaceDto(value) {
37
+ if (!('code' in value) || value['code'] === undefined)
38
+ return false;
39
+ if (!('name' in value) || value['name'] === undefined)
40
+ return false;
41
+ if (!('routable' in value) || value['routable'] === undefined)
42
+ return false;
43
+ if (!('verificationRecordType' in value) || value['verificationRecordType'] === undefined)
44
+ return false;
45
+ if (!('verificationRecordName' in value) || value['verificationRecordName'] === undefined)
46
+ return false;
47
+ if (!('verificationExample' in value) || value['verificationExample'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ function MarketplaceDtoFromJSON(json) {
52
+ return MarketplaceDtoFromJSONTyped(json, false);
53
+ }
54
+ function MarketplaceDtoFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'code': json['code'],
60
+ 'name': json['name'],
61
+ 'routable': json['routable'],
62
+ 'verificationRecordType': json['verificationRecordType'],
63
+ 'verificationRecordName': json['verificationRecordName'],
64
+ 'verificationExample': json['verificationExample'],
65
+ };
66
+ }
67
+ function MarketplaceDtoToJSON(json) {
68
+ return MarketplaceDtoToJSONTyped(json, false);
69
+ }
70
+ function MarketplaceDtoToJSONTyped(value, ignoreDiscriminator) {
71
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+ return {
76
+ 'code': value['code'],
77
+ 'name': value['name'],
78
+ 'routable': value['routable'],
79
+ 'verificationRecordType': value['verificationRecordType'],
80
+ 'verificationRecordName': value['verificationRecordName'],
81
+ 'verificationExample': value['verificationExample'],
82
+ };
83
+ }
@@ -129,7 +129,7 @@ export interface OrderDto {
129
129
  */
130
130
  enabledPaymentMethods: Array<OrderDtoEnabledPaymentMethodsEnum>;
131
131
  /**
132
- * Available payment methods per gateway (canonical ids), keyed by PaymentGateway
132
+ * Available payment methods per gateway (canonical ids), keyed by PaymentGateway. Empty when the cache is missing or expired.
133
133
  * @type {object}
134
134
  * @memberof OrderDto
135
135
  */
@@ -140,6 +140,12 @@ export interface OrderDto {
140
140
  * @memberof OrderDto
141
141
  */
142
142
  selectedPaymentMethod: OrderDtoSelectedPaymentMethodEnum | null;
143
+ /**
144
+ * When the cached availablePaymentMethods expire. After this time, PATCH with forceUpdatePaymentMethods=true then GET again to refresh them.
145
+ * @type {Date}
146
+ * @memberof OrderDto
147
+ */
148
+ availablePaymentMethodsExpiresAt: Date | null;
143
149
  /**
144
150
  * Whether the buyer invoice can be issued as proforma.
145
151
  * @type {boolean}
@@ -155,6 +155,8 @@ function instanceOfOrderDto(value) {
155
155
  return false;
156
156
  if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined)
157
157
  return false;
158
+ if (!('availablePaymentMethodsExpiresAt' in value) || value['availablePaymentMethodsExpiresAt'] === undefined)
159
+ return false;
158
160
  if (!('canBeProforma' in value) || value['canBeProforma'] === undefined)
159
161
  return false;
160
162
  return true;
@@ -187,6 +189,7 @@ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
187
189
  'enabledPaymentMethods': json['enabledPaymentMethods'],
188
190
  'availablePaymentMethods': json['availablePaymentMethods'],
189
191
  'selectedPaymentMethod': json['selectedPaymentMethod'],
192
+ 'availablePaymentMethodsExpiresAt': (json['availablePaymentMethodsExpiresAt'] == null ? null : new Date(json['availablePaymentMethodsExpiresAt'])),
190
193
  'canBeProforma': json['canBeProforma'],
191
194
  };
192
195
  }
@@ -219,6 +222,7 @@ function OrderDtoToJSONTyped(value, ignoreDiscriminator) {
219
222
  'enabledPaymentMethods': value['enabledPaymentMethods'],
220
223
  'availablePaymentMethods': value['availablePaymentMethods'],
221
224
  'selectedPaymentMethod': value['selectedPaymentMethod'],
225
+ 'availablePaymentMethodsExpiresAt': (value['availablePaymentMethodsExpiresAt'] == null ? null : value['availablePaymentMethodsExpiresAt'].toISOString()),
222
226
  'canBeProforma': value['canBeProforma'],
223
227
  };
224
228
  }
@@ -137,6 +137,7 @@ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
137
137
  readonly USE_MAILER_FALLBACK_URL: "USE_MAILER_FALLBACK_URL";
138
138
  readonly USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: "USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST";
139
139
  readonly AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: "AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD";
140
+ readonly MARKETPLACE_ROUTING: "MARKETPLACE_ROUTING";
140
141
  };
141
142
  export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
142
143
  /**
@@ -55,7 +55,8 @@ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
55
55
  ALLOW_FREE_SETUP_CUSTOM_INITIAL_PRICE: 'ALLOW_FREE_SETUP_CUSTOM_INITIAL_PRICE',
56
56
  USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
57
57
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
58
- AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD'
58
+ AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
59
+ MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
59
60
  };
60
61
  /**
61
62
  * Check if a given object implements the PrivateAccountGetMeResponse interface.
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Nameshift
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SetAccountMarketplaceInput
16
+ */
17
+ export interface SetAccountMarketplaceInput {
18
+ /**
19
+ * 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.
20
+ * @type {string}
21
+ * @memberof SetAccountMarketplaceInput
22
+ */
23
+ verificationCode: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SetAccountMarketplaceInput interface.
27
+ */
28
+ export declare function instanceOfSetAccountMarketplaceInput(value: object): value is SetAccountMarketplaceInput;
29
+ export declare function SetAccountMarketplaceInputFromJSON(json: any): SetAccountMarketplaceInput;
30
+ export declare function SetAccountMarketplaceInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetAccountMarketplaceInput;
31
+ export declare function SetAccountMarketplaceInputToJSON(json: any): SetAccountMarketplaceInput;
32
+ export declare function SetAccountMarketplaceInputToJSONTyped(value?: SetAccountMarketplaceInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSetAccountMarketplaceInput = instanceOfSetAccountMarketplaceInput;
17
+ exports.SetAccountMarketplaceInputFromJSON = SetAccountMarketplaceInputFromJSON;
18
+ exports.SetAccountMarketplaceInputFromJSONTyped = SetAccountMarketplaceInputFromJSONTyped;
19
+ exports.SetAccountMarketplaceInputToJSON = SetAccountMarketplaceInputToJSON;
20
+ exports.SetAccountMarketplaceInputToJSONTyped = SetAccountMarketplaceInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SetAccountMarketplaceInput interface.
23
+ */
24
+ function instanceOfSetAccountMarketplaceInput(value) {
25
+ if (!('verificationCode' in value) || value['verificationCode'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function SetAccountMarketplaceInputFromJSON(json) {
30
+ return SetAccountMarketplaceInputFromJSONTyped(json, false);
31
+ }
32
+ function SetAccountMarketplaceInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'verificationCode': json['verificationCode'],
38
+ };
39
+ }
40
+ function SetAccountMarketplaceInputToJSON(json) {
41
+ return SetAccountMarketplaceInputToJSONTyped(json, false);
42
+ }
43
+ function SetAccountMarketplaceInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'verificationCode': value['verificationCode'],
50
+ };
51
+ }
@@ -53,6 +53,7 @@ export interface SimulateCommissionInput {
53
53
  export declare const SimulateCommissionInputSubtypeEnum: {
54
54
  readonly POINTING: "pointing";
55
55
  readonly NOT_POINTING: "not_pointing";
56
+ readonly ROUTED: "routed";
56
57
  readonly MANUAL_LEAD: "manual_lead";
57
58
  readonly AUCTION: "auction";
58
59
  };
@@ -26,6 +26,7 @@ var CommissionSimulationItemInput_1 = require("./CommissionSimulationItemInput")
26
26
  exports.SimulateCommissionInputSubtypeEnum = {
27
27
  POINTING: 'pointing',
28
28
  NOT_POINTING: 'not_pointing',
29
+ ROUTED: 'routed',
29
30
  MANUAL_LEAD: 'manual_lead',
30
31
  AUCTION: 'auction'
31
32
  };
@@ -138,7 +138,7 @@ export interface SubscriptionDto {
138
138
  */
139
139
  hasPendingTransaction: boolean;
140
140
  /**
141
- * Available payment methods per gateway (canonical ids), keyed by PaymentGateway
141
+ * Available payment methods per gateway (canonical ids), keyed by PaymentGateway. Empty when the cache is missing or expired.
142
142
  * @type {object}
143
143
  * @memberof SubscriptionDto
144
144
  */
@@ -149,6 +149,12 @@ export interface SubscriptionDto {
149
149
  * @memberof SubscriptionDto
150
150
  */
151
151
  selectedPaymentMethod: SubscriptionDtoSelectedPaymentMethodEnum | null;
152
+ /**
153
+ * When the cached availablePaymentMethods expire. After this time, PATCH with forceUpdatePaymentMethods=true then GET again to refresh them.
154
+ * @type {Date}
155
+ * @memberof SubscriptionDto
156
+ */
157
+ availablePaymentMethodsExpiresAt: Date | null;
152
158
  /**
153
159
  * Subscribed domain.
154
160
  * @type {SubscriptionDomainDto}
@@ -180,6 +180,8 @@ function instanceOfSubscriptionDto(value) {
180
180
  return false;
181
181
  if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined)
182
182
  return false;
183
+ if (!('availablePaymentMethodsExpiresAt' in value) || value['availablePaymentMethodsExpiresAt'] === undefined)
184
+ return false;
183
185
  if (!('domain' in value) || value['domain'] === undefined)
184
186
  return false;
185
187
  if (!('type' in value) || value['type'] === undefined)
@@ -231,6 +233,7 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
231
233
  'hasPendingTransaction': json['hasPendingTransaction'],
232
234
  'availablePaymentMethods': json['availablePaymentMethods'],
233
235
  'selectedPaymentMethod': json['selectedPaymentMethod'],
236
+ 'availablePaymentMethodsExpiresAt': (json['availablePaymentMethodsExpiresAt'] == null ? null : new Date(json['availablePaymentMethodsExpiresAt'])),
234
237
  'domain': (0, SubscriptionDomainDto_1.SubscriptionDomainDtoFromJSON)(json['domain']),
235
238
  'type': json['type'],
236
239
  'installments': json['installments'],
@@ -273,6 +276,7 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
273
276
  'hasPendingTransaction': value['hasPendingTransaction'],
274
277
  'availablePaymentMethods': value['availablePaymentMethods'],
275
278
  'selectedPaymentMethod': value['selectedPaymentMethod'],
279
+ 'availablePaymentMethodsExpiresAt': (value['availablePaymentMethodsExpiresAt'] == null ? null : value['availablePaymentMethodsExpiresAt'].toISOString()),
276
280
  'domain': (0, SubscriptionDomainDto_1.SubscriptionDomainDtoToJSON)(value['domain']),
277
281
  'type': value['type'],
278
282
  'installments': value['installments'],
@@ -20,6 +20,12 @@ import type { DomainLeadPriceNegotiatorAiAgentConfigurationInput } from './Domai
20
20
  * @interface UpdateDomainInput
21
21
  */
22
22
  export interface UpdateDomainInput {
23
+ /**
24
+ * 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.
25
+ * @type {string}
26
+ * @memberof UpdateDomainInput
27
+ */
28
+ marketplace?: UpdateDomainInputMarketplaceEnum | null;
23
29
  /**
24
30
  * Buy-it-now price for the domain
25
31
  * @type {MoneyDto}
@@ -69,6 +75,18 @@ export interface UpdateDomainInput {
69
75
  */
70
76
  leadPriceNegotiator?: DomainLeadPriceNegotiatorAiAgentConfigurationInput | null;
71
77
  }
78
+ /**
79
+ * @export
80
+ */
81
+ export declare const UpdateDomainInputMarketplaceEnum: {
82
+ readonly NAMESHIFT: "nameshift";
83
+ readonly SEDO: "sedo";
84
+ readonly AFTERNIC: "afternic";
85
+ readonly ATOM: "atom";
86
+ readonly SPACESHIP: "spaceship";
87
+ readonly NAMECLUB: "nameclub";
88
+ };
89
+ export type UpdateDomainInputMarketplaceEnum = typeof UpdateDomainInputMarketplaceEnum[keyof typeof UpdateDomainInputMarketplaceEnum];
72
90
  /**
73
91
  * Check if a given object implements the UpdateDomainInput interface.
74
92
  */
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateDomainInputMarketplaceEnum = void 0;
16
17
  exports.instanceOfUpdateDomainInput = instanceOfUpdateDomainInput;
17
18
  exports.UpdateDomainInputFromJSON = UpdateDomainInputFromJSON;
18
19
  exports.UpdateDomainInputFromJSONTyped = UpdateDomainInputFromJSONTyped;
@@ -23,6 +24,17 @@ var LandingPageInput_1 = require("./LandingPageInput");
23
24
  var LeaseToOwnConfigurationInput_1 = require("./LeaseToOwnConfigurationInput");
24
25
  var RentConfigurationInput_1 = require("./RentConfigurationInput");
25
26
  var DomainLeadPriceNegotiatorAiAgentConfigurationInput_1 = require("./DomainLeadPriceNegotiatorAiAgentConfigurationInput");
27
+ /**
28
+ * @export
29
+ */
30
+ exports.UpdateDomainInputMarketplaceEnum = {
31
+ NAMESHIFT: 'nameshift',
32
+ SEDO: 'sedo',
33
+ AFTERNIC: 'afternic',
34
+ ATOM: 'atom',
35
+ SPACESHIP: 'spaceship',
36
+ NAMECLUB: 'nameclub'
37
+ };
26
38
  /**
27
39
  * Check if a given object implements the UpdateDomainInput interface.
28
40
  */
@@ -37,6 +49,7 @@ function UpdateDomainInputFromJSONTyped(json, ignoreDiscriminator) {
37
49
  return json;
38
50
  }
39
51
  return {
52
+ 'marketplace': json['marketplace'] == null ? undefined : json['marketplace'],
40
53
  'bin': json['bin'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['bin']),
41
54
  'minOffer': json['minOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
42
55
  'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
@@ -56,6 +69,7 @@ function UpdateDomainInputToJSONTyped(value, ignoreDiscriminator) {
56
69
  return value;
57
70
  }
58
71
  return {
72
+ 'marketplace': value['marketplace'],
59
73
  'bin': (0, MoneyDto_1.MoneyDtoToJSON)(value['bin']),
60
74
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
61
75
  'currencyCode': value['currencyCode'],
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Nameshift
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateMarketplaceInput
16
+ */
17
+ export interface UpdateMarketplaceInput {
18
+ /**
19
+ * Display name of the marketplace.
20
+ * @type {string}
21
+ * @memberof UpdateMarketplaceInput
22
+ */
23
+ name?: string;
24
+ /**
25
+ * Whether domains may be routed to this marketplace. Domains already pointed at a disabled marketplace fall back to our own landing page.
26
+ * @type {boolean}
27
+ * @memberof UpdateMarketplaceInput
28
+ */
29
+ enabled?: boolean;
30
+ /**
31
+ * Authoritative nameservers queried when resolving a domain routed here. Reaches the edge on the next export.
32
+ * @type {Array<string>}
33
+ * @memberof UpdateMarketplaceInput
34
+ */
35
+ nameservers?: Array<string>;
36
+ }
37
+ /**
38
+ * Check if a given object implements the UpdateMarketplaceInput interface.
39
+ */
40
+ export declare function instanceOfUpdateMarketplaceInput(value: object): value is UpdateMarketplaceInput;
41
+ export declare function UpdateMarketplaceInputFromJSON(json: any): UpdateMarketplaceInput;
42
+ export declare function UpdateMarketplaceInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMarketplaceInput;
43
+ export declare function UpdateMarketplaceInputToJSON(json: any): UpdateMarketplaceInput;
44
+ export declare function UpdateMarketplaceInputToJSONTyped(value?: UpdateMarketplaceInput | null, ignoreDiscriminator?: boolean): any;