@randock/nameshift-api-client 0.0.448 → 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.
- package/.openapi-generator/FILES +12 -0
- package/README.md +3 -3
- package/dist/apis/APIKeysApi.d.ts +78 -0
- package/dist/apis/APIKeysApi.js +354 -0
- package/dist/apis/AccountsApi.d.ts +36 -36
- package/dist/apis/AccountsApi.js +360 -216
- package/dist/apis/AdminApi.d.ts +37 -1
- package/dist/apis/AdminApi.js +122 -1
- package/dist/apis/AuctionsApi.d.ts +4 -4
- package/dist/apis/AuctionsApi.js +40 -24
- package/dist/apis/BankAccountsApi.d.ts +10 -10
- package/dist/apis/BankAccountsApi.js +100 -60
- package/dist/apis/ChallengesApi.d.ts +6 -6
- package/dist/apis/ChallengesApi.js +60 -36
- package/dist/apis/DomainTransfersApi.d.ts +2 -2
- package/dist/apis/DomainTransfersApi.js +20 -12
- package/dist/apis/DomainsApi.d.ts +44 -44
- package/dist/apis/DomainsApi.js +440 -264
- package/dist/apis/EppApi.d.ts +2 -2
- package/dist/apis/EppApi.js +20 -12
- package/dist/apis/InvoicesApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.js +60 -36
- package/dist/apis/LeadsApi.d.ts +38 -38
- package/dist/apis/LeadsApi.js +380 -228
- package/dist/apis/MarketplacesApi.d.ts +89 -0
- package/dist/apis/MarketplacesApi.js +332 -0
- package/dist/apis/NotificationsApi.d.ts +8 -8
- package/dist/apis/NotificationsApi.js +80 -48
- package/dist/apis/StatsApi.d.ts +14 -14
- package/dist/apis/StatsApi.js +140 -84
- package/dist/apis/SubscriptionsApi.d.ts +2 -2
- package/dist/apis/SubscriptionsApi.js +20 -12
- package/dist/apis/TasksApi.d.ts +6 -6
- package/dist/apis/TasksApi.js +60 -36
- package/dist/apis/UsersApi.d.ts +10 -10
- package/dist/apis/UsersApi.js +100 -60
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountMarketplaceDto.d.ts +56 -0
- package/dist/models/AccountMarketplaceDto.js +71 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +1 -0
- package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionItemDto.js +1 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.js +1 -0
- package/dist/models/AccountSettingsDto.d.ts +18 -0
- package/dist/models/AccountSettingsDto.js +16 -0
- package/dist/models/AccountSettingsInput.d.ts +18 -0
- package/dist/models/AccountSettingsInput.js +14 -0
- package/dist/models/AdminDomainListItemDto.d.ts +19 -0
- package/dist/models/AdminDomainListItemDto.js +17 -1
- package/dist/models/AdminMarketplaceDto.d.ts +86 -0
- package/dist/models/AdminMarketplaceDto.js +91 -0
- package/dist/models/ApiKeyDto.d.ts +107 -0
- package/dist/models/ApiKeyDto.js +114 -0
- package/dist/models/ApiKeyScopeDto.d.ts +83 -0
- package/dist/models/ApiKeyScopeDto.js +98 -0
- package/dist/models/CommissionDto.d.ts +1 -0
- package/dist/models/CommissionDto.js +1 -0
- package/dist/models/CommissionPayloadInput.d.ts +1 -0
- package/dist/models/CommissionPayloadInput.js +1 -0
- package/dist/models/CommissionReasonDto.d.ts +1 -0
- package/dist/models/CommissionReasonDto.js +1 -0
- package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
- package/dist/models/CommissionSimulationItemInput.js +1 -0
- package/dist/models/CreateApiKeyInput.d.ts +83 -0
- package/dist/models/CreateApiKeyInput.js +96 -0
- package/dist/models/CreateOrderInput.d.ts +6 -0
- package/dist/models/CreateOrderInput.js +2 -0
- package/dist/models/CreateSubscriptionInput.d.ts +6 -0
- package/dist/models/CreateSubscriptionInput.js +2 -0
- package/dist/models/CreatedApiKeyDto.d.ts +113 -0
- package/dist/models/CreatedApiKeyDto.js +118 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +16 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +16 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +16 -0
- package/dist/models/MarketplaceDto.d.ts +74 -0
- package/dist/models/MarketplaceDto.js +83 -0
- package/dist/models/OrderDto.d.ts +7 -1
- package/dist/models/OrderDto.js +4 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/SetAccountMarketplaceInput.d.ts +32 -0
- package/dist/models/SetAccountMarketplaceInput.js +51 -0
- package/dist/models/SimulateCommissionInput.d.ts +1 -0
- package/dist/models/SimulateCommissionInput.js +1 -0
- package/dist/models/SubscriptionDto.d.ts +7 -1
- package/dist/models/SubscriptionDto.js +4 -0
- package/dist/models/UpdateApiKeyInput.d.ts +77 -0
- package/dist/models/UpdateApiKeyInput.js +90 -0
- package/dist/models/UpdateDomainInput.d.ts +18 -0
- package/dist/models/UpdateDomainInput.js +14 -0
- package/dist/models/UpdateMarketplaceInput.d.ts +44 -0
- package/dist/models/UpdateMarketplaceInput.js +53 -0
- package/dist/models/UpdateOrderInput.d.ts +6 -0
- package/dist/models/UpdateOrderInput.js +2 -0
- package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
- package/dist/models/UpdateSubscriptionInput.js +2 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/APIKeysApi.ts +271 -0
- package/src/apis/AccountsApi.ts +108 -36
- package/src/apis/AdminApi.ts +112 -0
- package/src/apis/AuctionsApi.ts +12 -4
- package/src/apis/BankAccountsApi.ts +30 -10
- package/src/apis/ChallengesApi.ts +18 -6
- package/src/apis/DomainTransfersApi.ts +6 -2
- package/src/apis/DomainsApi.ts +132 -44
- package/src/apis/EppApi.ts +6 -2
- package/src/apis/InvoicesApi.ts +18 -6
- package/src/apis/LeadsApi.ts +114 -38
- package/src/apis/MarketplacesApi.ts +240 -0
- package/src/apis/NotificationsApi.ts +24 -8
- package/src/apis/StatsApi.ts +42 -14
- package/src/apis/SubscriptionsApi.ts +6 -2
- package/src/apis/TasksApi.ts +18 -6
- package/src/apis/UsersApi.ts +30 -10
- package/src/apis/index.ts +2 -0
- package/src/models/AccountMarketplaceDto.ts +99 -0
- package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +1 -0
- package/src/models/AccountNameshiftCommissionItemDto.ts +1 -0
- package/src/models/AccountNameshiftCommissionReasonDto.ts +1 -0
- package/src/models/AccountSettingsDto.ts +24 -0
- package/src/models/AccountSettingsInput.ts +23 -0
- package/src/models/AdminDomainListItemDto.ts +23 -0
- package/src/models/AdminMarketplaceDto.ts +144 -0
- package/src/models/ApiKeyDto.ts +162 -0
- package/src/models/ApiKeyScopeDto.ts +126 -0
- package/src/models/CommissionDto.ts +1 -0
- package/src/models/CommissionPayloadInput.ts +1 -0
- package/src/models/CommissionReasonDto.ts +1 -0
- package/src/models/CommissionSimulationItemInput.ts +1 -0
- package/src/models/CreateApiKeyInput.ts +125 -0
- package/src/models/CreateOrderInput.ts +8 -0
- package/src/models/CreateSubscriptionInput.ts +8 -0
- package/src/models/CreatedApiKeyDto.ts +171 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +24 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +24 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +24 -0
- package/src/models/MarketplaceDto.ts +126 -0
- package/src/models/OrderDto.ts +10 -1
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/SetAccountMarketplaceInput.ts +66 -0
- package/src/models/SimulateCommissionInput.ts +1 -0
- package/src/models/SubscriptionDto.ts +10 -1
- package/src/models/UpdateApiKeyInput.ts +115 -0
- package/src/models/UpdateDomainInput.ts +23 -0
- package/src/models/UpdateMarketplaceInput.ts +81 -0
- package/src/models/UpdateOrderInput.ts +8 -0
- package/src/models/UpdateSubscriptionInput.ts +8 -0
- package/src/models/index.ts +10 -0
|
@@ -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}
|
package/dist/models/OrderDto.js
CHANGED
|
@@ -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'],
|
|
@@ -0,0 +1,77 @@
|
|
|
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 UpdateApiKeyInput
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateApiKeyInput {
|
|
18
|
+
/**
|
|
19
|
+
* New name for the key.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateApiKeyInput
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Replacement set of scopes. Takes effect on the next request made with the key.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof UpdateApiKeyInput
|
|
28
|
+
*/
|
|
29
|
+
scope?: Array<UpdateApiKeyInputScopeEnum>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const UpdateApiKeyInputScopeEnum: {
|
|
35
|
+
readonly DOMAIN_BUY_NOW_PRICES_UPDATES: "DOMAIN_BUY_NOW_PRICES_UPDATES";
|
|
36
|
+
readonly DOMAINS_FIND: "DOMAINS_FIND";
|
|
37
|
+
readonly AUCTION_LIST: "AUCTION_LIST";
|
|
38
|
+
readonly MARKET_DATA: "MARKET_DATA";
|
|
39
|
+
readonly DOMAINS_READ: "DOMAINS_READ";
|
|
40
|
+
readonly DOMAINS_WRITE: "DOMAINS_WRITE";
|
|
41
|
+
readonly EPP_WRITE: "EPP_WRITE";
|
|
42
|
+
readonly TRANSFERS_READ: "TRANSFERS_READ";
|
|
43
|
+
readonly TRANSFERS_WRITE: "TRANSFERS_WRITE";
|
|
44
|
+
readonly LEADS_READ: "LEADS_READ";
|
|
45
|
+
readonly LEADS_WRITE: "LEADS_WRITE";
|
|
46
|
+
readonly AUCTIONS_READ: "AUCTIONS_READ";
|
|
47
|
+
readonly AUCTIONS_WRITE: "AUCTIONS_WRITE";
|
|
48
|
+
readonly STATS_READ: "STATS_READ";
|
|
49
|
+
readonly INVOICES_READ: "INVOICES_READ";
|
|
50
|
+
readonly SUBSCRIPTIONS_READ: "SUBSCRIPTIONS_READ";
|
|
51
|
+
readonly COMMISSIONS_READ: "COMMISSIONS_READ";
|
|
52
|
+
readonly TASKS_READ: "TASKS_READ";
|
|
53
|
+
readonly TASKS_WRITE: "TASKS_WRITE";
|
|
54
|
+
readonly NOTIFICATIONS_READ: "NOTIFICATIONS_READ";
|
|
55
|
+
readonly NOTIFICATIONS_WRITE: "NOTIFICATIONS_WRITE";
|
|
56
|
+
readonly CHALLENGES_READ: "CHALLENGES_READ";
|
|
57
|
+
readonly CHALLENGES_WRITE: "CHALLENGES_WRITE";
|
|
58
|
+
readonly ACCOUNT_READ: "ACCOUNT_READ";
|
|
59
|
+
readonly ACCOUNT_WRITE: "ACCOUNT_WRITE";
|
|
60
|
+
readonly ACCOUNT_DELETE: "ACCOUNT_DELETE";
|
|
61
|
+
readonly PAYOUTS_READ: "PAYOUTS_READ";
|
|
62
|
+
readonly PAYOUTS_WRITE: "PAYOUTS_WRITE";
|
|
63
|
+
readonly PAYMENTS_READ: "PAYMENTS_READ";
|
|
64
|
+
readonly PAYMENTS_WRITE: "PAYMENTS_WRITE";
|
|
65
|
+
readonly USERS_READ: "USERS_READ";
|
|
66
|
+
readonly USERS_WRITE: "USERS_WRITE";
|
|
67
|
+
readonly USER_EMAIL_WRITE: "USER_EMAIL_WRITE";
|
|
68
|
+
};
|
|
69
|
+
export type UpdateApiKeyInputScopeEnum = typeof UpdateApiKeyInputScopeEnum[keyof typeof UpdateApiKeyInputScopeEnum];
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the UpdateApiKeyInput interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfUpdateApiKeyInput(value: object): value is UpdateApiKeyInput;
|
|
74
|
+
export declare function UpdateApiKeyInputFromJSON(json: any): UpdateApiKeyInput;
|
|
75
|
+
export declare function UpdateApiKeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiKeyInput;
|
|
76
|
+
export declare function UpdateApiKeyInputToJSON(json: any): UpdateApiKeyInput;
|
|
77
|
+
export declare function UpdateApiKeyInputToJSONTyped(value?: UpdateApiKeyInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,90 @@
|
|
|
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.UpdateApiKeyInputScopeEnum = void 0;
|
|
17
|
+
exports.instanceOfUpdateApiKeyInput = instanceOfUpdateApiKeyInput;
|
|
18
|
+
exports.UpdateApiKeyInputFromJSON = UpdateApiKeyInputFromJSON;
|
|
19
|
+
exports.UpdateApiKeyInputFromJSONTyped = UpdateApiKeyInputFromJSONTyped;
|
|
20
|
+
exports.UpdateApiKeyInputToJSON = UpdateApiKeyInputToJSON;
|
|
21
|
+
exports.UpdateApiKeyInputToJSONTyped = UpdateApiKeyInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.UpdateApiKeyInputScopeEnum = {
|
|
26
|
+
DOMAIN_BUY_NOW_PRICES_UPDATES: 'DOMAIN_BUY_NOW_PRICES_UPDATES',
|
|
27
|
+
DOMAINS_FIND: 'DOMAINS_FIND',
|
|
28
|
+
AUCTION_LIST: 'AUCTION_LIST',
|
|
29
|
+
MARKET_DATA: 'MARKET_DATA',
|
|
30
|
+
DOMAINS_READ: 'DOMAINS_READ',
|
|
31
|
+
DOMAINS_WRITE: 'DOMAINS_WRITE',
|
|
32
|
+
EPP_WRITE: 'EPP_WRITE',
|
|
33
|
+
TRANSFERS_READ: 'TRANSFERS_READ',
|
|
34
|
+
TRANSFERS_WRITE: 'TRANSFERS_WRITE',
|
|
35
|
+
LEADS_READ: 'LEADS_READ',
|
|
36
|
+
LEADS_WRITE: 'LEADS_WRITE',
|
|
37
|
+
AUCTIONS_READ: 'AUCTIONS_READ',
|
|
38
|
+
AUCTIONS_WRITE: 'AUCTIONS_WRITE',
|
|
39
|
+
STATS_READ: 'STATS_READ',
|
|
40
|
+
INVOICES_READ: 'INVOICES_READ',
|
|
41
|
+
SUBSCRIPTIONS_READ: 'SUBSCRIPTIONS_READ',
|
|
42
|
+
COMMISSIONS_READ: 'COMMISSIONS_READ',
|
|
43
|
+
TASKS_READ: 'TASKS_READ',
|
|
44
|
+
TASKS_WRITE: 'TASKS_WRITE',
|
|
45
|
+
NOTIFICATIONS_READ: 'NOTIFICATIONS_READ',
|
|
46
|
+
NOTIFICATIONS_WRITE: 'NOTIFICATIONS_WRITE',
|
|
47
|
+
CHALLENGES_READ: 'CHALLENGES_READ',
|
|
48
|
+
CHALLENGES_WRITE: 'CHALLENGES_WRITE',
|
|
49
|
+
ACCOUNT_READ: 'ACCOUNT_READ',
|
|
50
|
+
ACCOUNT_WRITE: 'ACCOUNT_WRITE',
|
|
51
|
+
ACCOUNT_DELETE: 'ACCOUNT_DELETE',
|
|
52
|
+
PAYOUTS_READ: 'PAYOUTS_READ',
|
|
53
|
+
PAYOUTS_WRITE: 'PAYOUTS_WRITE',
|
|
54
|
+
PAYMENTS_READ: 'PAYMENTS_READ',
|
|
55
|
+
PAYMENTS_WRITE: 'PAYMENTS_WRITE',
|
|
56
|
+
USERS_READ: 'USERS_READ',
|
|
57
|
+
USERS_WRITE: 'USERS_WRITE',
|
|
58
|
+
USER_EMAIL_WRITE: 'USER_EMAIL_WRITE'
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the UpdateApiKeyInput interface.
|
|
62
|
+
*/
|
|
63
|
+
function instanceOfUpdateApiKeyInput(value) {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
function UpdateApiKeyInputFromJSON(json) {
|
|
67
|
+
return UpdateApiKeyInputFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function UpdateApiKeyInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
75
|
+
'scope': json['scope'] == null ? undefined : json['scope'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function UpdateApiKeyInputToJSON(json) {
|
|
79
|
+
return UpdateApiKeyInputToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function UpdateApiKeyInputToJSONTyped(value, ignoreDiscriminator) {
|
|
82
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'scope': value['scope'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfUpdateMarketplaceInput = instanceOfUpdateMarketplaceInput;
|
|
17
|
+
exports.UpdateMarketplaceInputFromJSON = UpdateMarketplaceInputFromJSON;
|
|
18
|
+
exports.UpdateMarketplaceInputFromJSONTyped = UpdateMarketplaceInputFromJSONTyped;
|
|
19
|
+
exports.UpdateMarketplaceInputToJSON = UpdateMarketplaceInputToJSON;
|
|
20
|
+
exports.UpdateMarketplaceInputToJSONTyped = UpdateMarketplaceInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateMarketplaceInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateMarketplaceInput(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateMarketplaceInputFromJSON(json) {
|
|
28
|
+
return UpdateMarketplaceInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateMarketplaceInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
37
|
+
'nameservers': json['nameservers'] == null ? undefined : json['nameservers'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateMarketplaceInputToJSON(json) {
|
|
41
|
+
return UpdateMarketplaceInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateMarketplaceInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'enabled': value['enabled'],
|
|
51
|
+
'nameservers': value['nameservers'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -88,6 +88,12 @@ export interface UpdateOrderInput {
|
|
|
88
88
|
* @memberof UpdateOrderInput
|
|
89
89
|
*/
|
|
90
90
|
selfDeclaredTaxCountry?: string;
|
|
91
|
+
/**
|
|
92
|
+
* 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.
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof UpdateOrderInput
|
|
95
|
+
*/
|
|
96
|
+
forceUpdatePaymentMethods?: boolean;
|
|
91
97
|
}
|
|
92
98
|
/**
|
|
93
99
|
* Check if a given object implements the UpdateOrderInput interface.
|