@randock/nameshift-api-client 0.0.511 → 0.0.513
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 +2 -1
- package/README.md +3 -3
- package/dist/apis/PartnerApi.d.ts +14 -1
- package/dist/apis/PartnerApi.js +54 -0
- package/dist/models/ApiKeyDto.d.ts +1 -0
- package/dist/models/ApiKeyDto.js +1 -0
- package/dist/models/ApiKeyScopeDto.d.ts +1 -0
- package/dist/models/ApiKeyScopeDto.js +1 -0
- package/dist/models/CreateApiKeyInput.d.ts +1 -0
- package/dist/models/CreateApiKeyInput.js +1 -0
- package/dist/models/CreatedApiKeyDto.d.ts +1 -0
- package/dist/models/CreatedApiKeyDto.js +1 -0
- package/dist/models/LandingPageInput.d.ts +14 -0
- package/dist/models/LandingPageInput.js +10 -1
- package/dist/models/LandingPageSettingsDto.d.ts +14 -0
- package/dist/models/LandingPageSettingsDto.js +12 -1
- package/dist/models/PaymentMethodAvailabilityProfile.d.ts +25 -0
- package/dist/models/PaymentMethodAvailabilityProfile.js +51 -0
- package/dist/models/PaymentMethodsAvailabilityDto.d.ts +55 -0
- package/dist/models/PaymentMethodsAvailabilityDto.js +64 -0
- package/dist/models/UpdateApiKeyInput.d.ts +1 -0
- package/dist/models/UpdateApiKeyInput.js +1 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +0 -3
- package/src/apis/AdminApi.ts +0 -3
- package/src/apis/BuyersApi.ts +0 -3
- package/src/apis/CustomerSuccessApi.ts +0 -3
- package/src/apis/DomainsApi.ts +0 -3
- package/src/apis/PartnerApi.ts +43 -0
- package/src/models/ApiKeyDto.ts +1 -0
- package/src/models/ApiKeyScopeDto.ts +1 -0
- package/src/models/CreateApiKeyInput.ts +1 -0
- package/src/models/CreatedApiKeyDto.ts +1 -0
- package/src/models/LandingPageInput.ts +17 -0
- package/src/models/LandingPageSettingsDto.ts +18 -0
- package/src/models/PaymentMethodAvailabilityProfile.ts +53 -0
- package/src/models/PaymentMethodsAvailabilityDto.ts +103 -0
- package/src/models/UpdateApiKeyInput.ts +1 -0
- package/src/models/index.ts +2 -1
- package/dist/models/ForbiddenException.d.ts +0 -44
- package/dist/models/ForbiddenException.js +0 -59
- package/src/models/ForbiddenException.ts +0 -84
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -32,7 +32,6 @@ import type {
|
|
|
32
32
|
BuyerSessionDto,
|
|
33
33
|
BuyerTaskDetailsDto,
|
|
34
34
|
CreateBuyerLeadMessageInput,
|
|
35
|
-
ForbiddenException,
|
|
36
35
|
GetBuyerAuctions200Response,
|
|
37
36
|
GetBuyerDomainAppraisalRequests200Response,
|
|
38
37
|
GetBuyerInvoices200Response,
|
|
@@ -97,8 +96,6 @@ import {
|
|
|
97
96
|
BuyerTaskDetailsDtoToJSON,
|
|
98
97
|
CreateBuyerLeadMessageInputFromJSON,
|
|
99
98
|
CreateBuyerLeadMessageInputToJSON,
|
|
100
|
-
ForbiddenExceptionFromJSON,
|
|
101
|
-
ForbiddenExceptionToJSON,
|
|
102
99
|
GetBuyerAuctions200ResponseFromJSON,
|
|
103
100
|
GetBuyerAuctions200ResponseToJSON,
|
|
104
101
|
GetBuyerDomainAppraisalRequests200ResponseFromJSON,
|
|
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
AccountNoteListDto,
|
|
19
19
|
CreateAccountNoteInput,
|
|
20
|
-
ForbiddenException,
|
|
21
20
|
ListCustomerSuccessAccountDomains200Response,
|
|
22
21
|
ListCustomerSuccessAccounts200Response,
|
|
23
22
|
UpdateAccountNoteInput,
|
|
@@ -28,8 +27,6 @@ import {
|
|
|
28
27
|
AccountNoteListDtoToJSON,
|
|
29
28
|
CreateAccountNoteInputFromJSON,
|
|
30
29
|
CreateAccountNoteInputToJSON,
|
|
31
|
-
ForbiddenExceptionFromJSON,
|
|
32
|
-
ForbiddenExceptionToJSON,
|
|
33
30
|
ListCustomerSuccessAccountDomains200ResponseFromJSON,
|
|
34
31
|
ListCustomerSuccessAccountDomains200ResponseToJSON,
|
|
35
32
|
ListCustomerSuccessAccounts200ResponseFromJSON,
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -28,7 +28,6 @@ import type {
|
|
|
28
28
|
DomainSearchTranslationDto,
|
|
29
29
|
DomainUrlDto,
|
|
30
30
|
DomainVerificationStatusDto,
|
|
31
|
-
ForbiddenException,
|
|
32
31
|
GetAllDomainTransfers200Response,
|
|
33
32
|
ImportDomainsResponseDto,
|
|
34
33
|
IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
@@ -71,8 +70,6 @@ import {
|
|
|
71
70
|
DomainUrlDtoToJSON,
|
|
72
71
|
DomainVerificationStatusDtoFromJSON,
|
|
73
72
|
DomainVerificationStatusDtoToJSON,
|
|
74
|
-
ForbiddenExceptionFromJSON,
|
|
75
|
-
ForbiddenExceptionToJSON,
|
|
76
73
|
GetAllDomainTransfers200ResponseFromJSON,
|
|
77
74
|
GetAllDomainTransfers200ResponseToJSON,
|
|
78
75
|
ImportDomainsResponseDtoFromJSON,
|
package/src/apis/PartnerApi.ts
CHANGED
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
ListDomainsWithUpdatedPricing200Response,
|
|
20
20
|
PartnerDomainFindDto,
|
|
21
21
|
PartnerDomainSeoMetricsDto,
|
|
22
|
+
PaymentMethodsAvailabilityDto,
|
|
22
23
|
ValidationException,
|
|
23
24
|
} from '../models/index';
|
|
24
25
|
import {
|
|
@@ -30,6 +31,8 @@ import {
|
|
|
30
31
|
PartnerDomainFindDtoToJSON,
|
|
31
32
|
PartnerDomainSeoMetricsDtoFromJSON,
|
|
32
33
|
PartnerDomainSeoMetricsDtoToJSON,
|
|
34
|
+
PaymentMethodsAvailabilityDtoFromJSON,
|
|
35
|
+
PaymentMethodsAvailabilityDtoToJSON,
|
|
33
36
|
ValidationExceptionFromJSON,
|
|
34
37
|
ValidationExceptionToJSON,
|
|
35
38
|
} from '../models/index';
|
|
@@ -43,6 +46,10 @@ export interface PartnerApiGetPartnerDomainSeoMetricsRequest {
|
|
|
43
46
|
domainName: string;
|
|
44
47
|
}
|
|
45
48
|
|
|
49
|
+
export interface PartnerApiGetPaymentMethodsAvailabilityRequest {
|
|
50
|
+
amountEur?: number;
|
|
51
|
+
}
|
|
52
|
+
|
|
46
53
|
export interface PartnerApiListAuctionsRequest {
|
|
47
54
|
limit?: number;
|
|
48
55
|
cursor?: string;
|
|
@@ -141,6 +148,42 @@ export class PartnerApi extends runtime.BaseAPI {
|
|
|
141
148
|
return await response.value();
|
|
142
149
|
}
|
|
143
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Returns the payment methods worth showing a visitor before checkout: what a domain purchase of the given amount would offer, for every country Nameshift has payment methods for and every currency it supports, with domestic methods (iDEAL, Bancontact, BLIK…) only in their own countries.
|
|
153
|
+
* Get payment methods availability
|
|
154
|
+
*/
|
|
155
|
+
async getPaymentMethodsAvailabilityRaw(requestParameters: PartnerApiGetPaymentMethodsAvailabilityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentMethodsAvailabilityDto>> {
|
|
156
|
+
const queryParameters: any = {};
|
|
157
|
+
|
|
158
|
+
if (requestParameters['amountEur'] != null) {
|
|
159
|
+
queryParameters['amountEur'] = requestParameters['amountEur'];
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
163
|
+
|
|
164
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
165
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
const response = await this.request({
|
|
169
|
+
path: `/partner/payment-methods/availability`,
|
|
170
|
+
method: 'GET',
|
|
171
|
+
headers: headerParameters,
|
|
172
|
+
query: queryParameters,
|
|
173
|
+
}, initOverrides);
|
|
174
|
+
|
|
175
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaymentMethodsAvailabilityDtoFromJSON(jsonValue));
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Returns the payment methods worth showing a visitor before checkout: what a domain purchase of the given amount would offer, for every country Nameshift has payment methods for and every currency it supports, with domestic methods (iDEAL, Bancontact, BLIK…) only in their own countries.
|
|
180
|
+
* Get payment methods availability
|
|
181
|
+
*/
|
|
182
|
+
async getPaymentMethodsAvailability(requestParameters: PartnerApiGetPaymentMethodsAvailabilityRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentMethodsAvailabilityDto> {
|
|
183
|
+
const response = await this.getPaymentMethodsAvailabilityRaw(requestParameters, initOverrides);
|
|
184
|
+
return await response.value();
|
|
185
|
+
}
|
|
186
|
+
|
|
144
187
|
/**
|
|
145
188
|
* Lists auctions available to the partner API key.
|
|
146
189
|
* List partner auctions
|
package/src/models/ApiKeyDto.ts
CHANGED
|
@@ -73,6 +73,7 @@ export const ApiKeyDtoScopeEnum = {
|
|
|
73
73
|
AUCTION_LIST: 'AUCTION_LIST',
|
|
74
74
|
MARKET_DATA: 'MARKET_DATA',
|
|
75
75
|
DOMAIN_SEO_METRICS: 'DOMAIN_SEO_METRICS',
|
|
76
|
+
PAYMENT_METHODS_AVAILABILITY: 'PAYMENT_METHODS_AVAILABILITY',
|
|
76
77
|
DOMAINS_READ: 'DOMAINS_READ',
|
|
77
78
|
DOMAINS_WRITE: 'DOMAINS_WRITE',
|
|
78
79
|
EPP_WRITE: 'EPP_WRITE',
|
|
@@ -49,6 +49,7 @@ export const ApiKeyScopeDtoScopeEnum = {
|
|
|
49
49
|
AUCTION_LIST: 'AUCTION_LIST',
|
|
50
50
|
MARKET_DATA: 'MARKET_DATA',
|
|
51
51
|
DOMAIN_SEO_METRICS: 'DOMAIN_SEO_METRICS',
|
|
52
|
+
PAYMENT_METHODS_AVAILABILITY: 'PAYMENT_METHODS_AVAILABILITY',
|
|
52
53
|
DOMAINS_READ: 'DOMAINS_READ',
|
|
53
54
|
DOMAINS_WRITE: 'DOMAINS_WRITE',
|
|
54
55
|
EPP_WRITE: 'EPP_WRITE',
|
|
@@ -49,6 +49,7 @@ export const CreateApiKeyInputScopeEnum = {
|
|
|
49
49
|
AUCTION_LIST: 'AUCTION_LIST',
|
|
50
50
|
MARKET_DATA: 'MARKET_DATA',
|
|
51
51
|
DOMAIN_SEO_METRICS: 'DOMAIN_SEO_METRICS',
|
|
52
|
+
PAYMENT_METHODS_AVAILABILITY: 'PAYMENT_METHODS_AVAILABILITY',
|
|
52
53
|
DOMAINS_READ: 'DOMAINS_READ',
|
|
53
54
|
DOMAINS_WRITE: 'DOMAINS_WRITE',
|
|
54
55
|
EPP_WRITE: 'EPP_WRITE',
|
|
@@ -79,6 +79,7 @@ export const CreatedApiKeyDtoScopeEnum = {
|
|
|
79
79
|
AUCTION_LIST: 'AUCTION_LIST',
|
|
80
80
|
MARKET_DATA: 'MARKET_DATA',
|
|
81
81
|
DOMAIN_SEO_METRICS: 'DOMAIN_SEO_METRICS',
|
|
82
|
+
PAYMENT_METHODS_AVAILABILITY: 'PAYMENT_METHODS_AVAILABILITY',
|
|
82
83
|
DOMAINS_READ: 'DOMAINS_READ',
|
|
83
84
|
DOMAINS_WRITE: 'DOMAINS_WRITE',
|
|
84
85
|
EPP_WRITE: 'EPP_WRITE',
|
|
@@ -81,6 +81,12 @@ export interface LandingPageInput {
|
|
|
81
81
|
* @memberof LandingPageInput
|
|
82
82
|
*/
|
|
83
83
|
domainNameTldCase?: LandingPageInputDomainNameTldCaseEnum | null;
|
|
84
|
+
/**
|
|
85
|
+
* How the landing page picks its language when the visitor has not chosen one: from the browser language or from the domain extension.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof LandingPageInput
|
|
88
|
+
*/
|
|
89
|
+
localeRedirect?: LandingPageInputLocaleRedirectEnum | null;
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
|
|
@@ -126,6 +132,15 @@ export const LandingPageInputDomainNameTldCaseEnum = {
|
|
|
126
132
|
} as const;
|
|
127
133
|
export type LandingPageInputDomainNameTldCaseEnum = typeof LandingPageInputDomainNameTldCaseEnum[keyof typeof LandingPageInputDomainNameTldCaseEnum];
|
|
128
134
|
|
|
135
|
+
/**
|
|
136
|
+
* @export
|
|
137
|
+
*/
|
|
138
|
+
export const LandingPageInputLocaleRedirectEnum = {
|
|
139
|
+
ACCEPT_LANGUAGE: 'accept_language',
|
|
140
|
+
TLD: 'tld'
|
|
141
|
+
} as const;
|
|
142
|
+
export type LandingPageInputLocaleRedirectEnum = typeof LandingPageInputLocaleRedirectEnum[keyof typeof LandingPageInputLocaleRedirectEnum];
|
|
143
|
+
|
|
129
144
|
|
|
130
145
|
/**
|
|
131
146
|
* Check if a given object implements the LandingPageInput interface.
|
|
@@ -153,6 +168,7 @@ export function LandingPageInputFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
153
168
|
'domainNameCase': json['domainNameCase'] == null ? undefined : json['domainNameCase'],
|
|
154
169
|
'domainNameUppercaseThreshold': json['domainNameUppercaseThreshold'] == null ? undefined : json['domainNameUppercaseThreshold'],
|
|
155
170
|
'domainNameTldCase': json['domainNameTldCase'] == null ? undefined : json['domainNameTldCase'],
|
|
171
|
+
'localeRedirect': json['localeRedirect'] == null ? undefined : json['localeRedirect'],
|
|
156
172
|
};
|
|
157
173
|
}
|
|
158
174
|
|
|
@@ -176,6 +192,7 @@ export function LandingPageInputToJSONTyped(value?: LandingPageInput | null, ign
|
|
|
176
192
|
'domainNameCase': value['domainNameCase'],
|
|
177
193
|
'domainNameUppercaseThreshold': value['domainNameUppercaseThreshold'],
|
|
178
194
|
'domainNameTldCase': value['domainNameTldCase'],
|
|
195
|
+
'localeRedirect': value['localeRedirect'],
|
|
179
196
|
};
|
|
180
197
|
}
|
|
181
198
|
|
|
@@ -81,6 +81,12 @@ export interface LandingPageSettingsDto {
|
|
|
81
81
|
* @memberof LandingPageSettingsDto
|
|
82
82
|
*/
|
|
83
83
|
domainNameTldCase: LandingPageSettingsDtoDomainNameTldCaseEnum | null;
|
|
84
|
+
/**
|
|
85
|
+
* How the landing page picks its language when the visitor has not chosen one: from the browser language or from the domain extension.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof LandingPageSettingsDto
|
|
88
|
+
*/
|
|
89
|
+
localeRedirect: LandingPageSettingsDtoLocaleRedirectEnum | null;
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
|
|
@@ -126,6 +132,15 @@ export const LandingPageSettingsDtoDomainNameTldCaseEnum = {
|
|
|
126
132
|
} as const;
|
|
127
133
|
export type LandingPageSettingsDtoDomainNameTldCaseEnum = typeof LandingPageSettingsDtoDomainNameTldCaseEnum[keyof typeof LandingPageSettingsDtoDomainNameTldCaseEnum];
|
|
128
134
|
|
|
135
|
+
/**
|
|
136
|
+
* @export
|
|
137
|
+
*/
|
|
138
|
+
export const LandingPageSettingsDtoLocaleRedirectEnum = {
|
|
139
|
+
ACCEPT_LANGUAGE: 'accept_language',
|
|
140
|
+
TLD: 'tld'
|
|
141
|
+
} as const;
|
|
142
|
+
export type LandingPageSettingsDtoLocaleRedirectEnum = typeof LandingPageSettingsDtoLocaleRedirectEnum[keyof typeof LandingPageSettingsDtoLocaleRedirectEnum];
|
|
143
|
+
|
|
129
144
|
|
|
130
145
|
/**
|
|
131
146
|
* Check if a given object implements the LandingPageSettingsDto interface.
|
|
@@ -140,6 +155,7 @@ export function instanceOfLandingPageSettingsDto(value: object): value is Landin
|
|
|
140
155
|
if (!('domainNameCase' in value) || value['domainNameCase'] === undefined) return false;
|
|
141
156
|
if (!('domainNameUppercaseThreshold' in value) || value['domainNameUppercaseThreshold'] === undefined) return false;
|
|
142
157
|
if (!('domainNameTldCase' in value) || value['domainNameTldCase'] === undefined) return false;
|
|
158
|
+
if (!('localeRedirect' in value) || value['localeRedirect'] === undefined) return false;
|
|
143
159
|
return true;
|
|
144
160
|
}
|
|
145
161
|
|
|
@@ -162,6 +178,7 @@ export function LandingPageSettingsDtoFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
162
178
|
'domainNameCase': json['domainNameCase'],
|
|
163
179
|
'domainNameUppercaseThreshold': json['domainNameUppercaseThreshold'],
|
|
164
180
|
'domainNameTldCase': json['domainNameTldCase'],
|
|
181
|
+
'localeRedirect': json['localeRedirect'],
|
|
165
182
|
};
|
|
166
183
|
}
|
|
167
184
|
|
|
@@ -185,6 +202,7 @@ export function LandingPageSettingsDtoToJSONTyped(value?: LandingPageSettingsDto
|
|
|
185
202
|
'domainNameCase': value['domainNameCase'],
|
|
186
203
|
'domainNameUppercaseThreshold': value['domainNameUppercaseThreshold'],
|
|
187
204
|
'domainNameTldCase': value['domainNameTldCase'],
|
|
205
|
+
'localeRedirect': value['localeRedirect'],
|
|
188
206
|
};
|
|
189
207
|
}
|
|
190
208
|
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Checkout profile the availability was resolved for.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PaymentMethodAvailabilityProfile = {
|
|
21
|
+
ORDERS: 'orders',
|
|
22
|
+
SUBSCRIPTIONS: 'subscriptions'
|
|
23
|
+
} as const;
|
|
24
|
+
export type PaymentMethodAvailabilityProfile = typeof PaymentMethodAvailabilityProfile[keyof typeof PaymentMethodAvailabilityProfile];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfPaymentMethodAvailabilityProfile(value: any): boolean {
|
|
28
|
+
for (const key in PaymentMethodAvailabilityProfile) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(PaymentMethodAvailabilityProfile, key)) {
|
|
30
|
+
if (PaymentMethodAvailabilityProfile[key as keyof typeof PaymentMethodAvailabilityProfile] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PaymentMethodAvailabilityProfileFromJSON(json: any): PaymentMethodAvailabilityProfile {
|
|
39
|
+
return PaymentMethodAvailabilityProfileFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PaymentMethodAvailabilityProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodAvailabilityProfile {
|
|
43
|
+
return json as PaymentMethodAvailabilityProfile;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PaymentMethodAvailabilityProfileToJSON(value?: PaymentMethodAvailabilityProfile | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PaymentMethodAvailabilityProfileToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentMethodAvailabilityProfile {
|
|
51
|
+
return value as PaymentMethodAvailabilityProfile;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
import type { PaymentMethodAvailabilityProfile } from './PaymentMethodAvailabilityProfile';
|
|
17
|
+
import {
|
|
18
|
+
PaymentMethodAvailabilityProfileFromJSON,
|
|
19
|
+
PaymentMethodAvailabilityProfileFromJSONTyped,
|
|
20
|
+
PaymentMethodAvailabilityProfileToJSON,
|
|
21
|
+
PaymentMethodAvailabilityProfileToJSONTyped,
|
|
22
|
+
} from './PaymentMethodAvailabilityProfile';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PaymentMethodsAvailabilityDto
|
|
28
|
+
*/
|
|
29
|
+
export interface PaymentMethodsAvailabilityDto {
|
|
30
|
+
/**
|
|
31
|
+
* Order total, in EUR, the availability was resolved for.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PaymentMethodsAvailabilityDto
|
|
34
|
+
*/
|
|
35
|
+
amountEur: string;
|
|
36
|
+
/**
|
|
37
|
+
* Checkout profile the availability was resolved for.
|
|
38
|
+
* @type {PaymentMethodAvailabilityProfile}
|
|
39
|
+
* @memberof PaymentMethodsAvailabilityDto
|
|
40
|
+
*/
|
|
41
|
+
profile: PaymentMethodAvailabilityProfile;
|
|
42
|
+
/**
|
|
43
|
+
* Currencies the platform supports. Each of them is listed for every country.
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof PaymentMethodsAvailabilityDto
|
|
46
|
+
*/
|
|
47
|
+
currencies: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Canonical payment method ids by country (ISO 3166-1 alpha-2) and then by currency, sorted. Domestic methods (iDEAL, Bancontact, BLIK…) only appear in their own countries. A currency with no payment method has an empty list.
|
|
50
|
+
* @type {{ [key: string]: { [key: string]: Array<string>; }; }}
|
|
51
|
+
* @memberof PaymentMethodsAvailabilityDto
|
|
52
|
+
*/
|
|
53
|
+
countries: { [key: string]: { [key: string]: Array<string>; }; };
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the PaymentMethodsAvailabilityDto interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfPaymentMethodsAvailabilityDto(value: object): value is PaymentMethodsAvailabilityDto {
|
|
62
|
+
if (!('amountEur' in value) || value['amountEur'] === undefined) return false;
|
|
63
|
+
if (!('profile' in value) || value['profile'] === undefined) return false;
|
|
64
|
+
if (!('currencies' in value) || value['currencies'] === undefined) return false;
|
|
65
|
+
if (!('countries' in value) || value['countries'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PaymentMethodsAvailabilityDtoFromJSON(json: any): PaymentMethodsAvailabilityDto {
|
|
70
|
+
return PaymentMethodsAvailabilityDtoFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PaymentMethodsAvailabilityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodsAvailabilityDto {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'amountEur': json['amountEur'],
|
|
80
|
+
'profile': PaymentMethodAvailabilityProfileFromJSON(json['profile']),
|
|
81
|
+
'currencies': json['currencies'],
|
|
82
|
+
'countries': json['countries'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function PaymentMethodsAvailabilityDtoToJSON(json: any): PaymentMethodsAvailabilityDto {
|
|
87
|
+
return PaymentMethodsAvailabilityDtoToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function PaymentMethodsAvailabilityDtoToJSONTyped(value?: PaymentMethodsAvailabilityDto | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'amountEur': value['amountEur'],
|
|
98
|
+
'profile': PaymentMethodAvailabilityProfileToJSON(value['profile']),
|
|
99
|
+
'currencies': value['currencies'],
|
|
100
|
+
'countries': value['countries'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -43,6 +43,7 @@ export const UpdateApiKeyInputScopeEnum = {
|
|
|
43
43
|
AUCTION_LIST: 'AUCTION_LIST',
|
|
44
44
|
MARKET_DATA: 'MARKET_DATA',
|
|
45
45
|
DOMAIN_SEO_METRICS: 'DOMAIN_SEO_METRICS',
|
|
46
|
+
PAYMENT_METHODS_AVAILABILITY: 'PAYMENT_METHODS_AVAILABILITY',
|
|
46
47
|
DOMAINS_READ: 'DOMAINS_READ',
|
|
47
48
|
DOMAINS_WRITE: 'DOMAINS_WRITE',
|
|
48
49
|
EPP_WRITE: 'EPP_WRITE',
|
package/src/models/index.ts
CHANGED
|
@@ -276,7 +276,6 @@ export * from './FixedCommissionPayloadDto';
|
|
|
276
276
|
export * from './FixedCommissionPayloadInput';
|
|
277
277
|
export * from './FixedCommissionPayloadSimulationInput';
|
|
278
278
|
export * from './FixedCommissionReasonPayloadDto';
|
|
279
|
-
export * from './ForbiddenException';
|
|
280
279
|
export * from './ForgotPasswordRequestInput';
|
|
281
280
|
export * from './GetAccountChallengeRewardUsagesListDto';
|
|
282
281
|
export * from './GetAccountNameshiftCommissionsResponseDto';
|
|
@@ -455,6 +454,8 @@ export * from './PartnerMozMetricsDto';
|
|
|
455
454
|
export * from './PasskeyOptionsDto';
|
|
456
455
|
export * from './PayAccountPaymentInput';
|
|
457
456
|
export * from './PaySellerInvoicesInput';
|
|
457
|
+
export * from './PaymentMethodAvailabilityProfile';
|
|
458
|
+
export * from './PaymentMethodsAvailabilityDto';
|
|
458
459
|
export * from './PaymentMethodsStatsDto';
|
|
459
460
|
export * from './PayoutFrequency';
|
|
460
461
|
export * from './PopularCategoryDto';
|
|
@@ -1,44 +0,0 @@
|
|
|
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 ForbiddenException
|
|
16
|
-
*/
|
|
17
|
-
export interface ForbiddenException {
|
|
18
|
-
/**
|
|
19
|
-
* Exception name.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ForbiddenException
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
/**
|
|
25
|
-
* HTTP status code.
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof ForbiddenException
|
|
28
|
-
*/
|
|
29
|
-
statusCode: number;
|
|
30
|
-
/**
|
|
31
|
-
* error message
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ForbiddenException
|
|
34
|
-
*/
|
|
35
|
-
message: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the ForbiddenException interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfForbiddenException(value: object): value is ForbiddenException;
|
|
41
|
-
export declare function ForbiddenExceptionFromJSON(json: any): ForbiddenException;
|
|
42
|
-
export declare function ForbiddenExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForbiddenException;
|
|
43
|
-
export declare function ForbiddenExceptionToJSON(json: any): ForbiddenException;
|
|
44
|
-
export declare function ForbiddenExceptionToJSONTyped(value?: ForbiddenException | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,59 +0,0 @@
|
|
|
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.instanceOfForbiddenException = instanceOfForbiddenException;
|
|
17
|
-
exports.ForbiddenExceptionFromJSON = ForbiddenExceptionFromJSON;
|
|
18
|
-
exports.ForbiddenExceptionFromJSONTyped = ForbiddenExceptionFromJSONTyped;
|
|
19
|
-
exports.ForbiddenExceptionToJSON = ForbiddenExceptionToJSON;
|
|
20
|
-
exports.ForbiddenExceptionToJSONTyped = ForbiddenExceptionToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the ForbiddenException interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfForbiddenException(value) {
|
|
25
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('message' in value) || value['message'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function ForbiddenExceptionFromJSON(json) {
|
|
34
|
-
return ForbiddenExceptionFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function ForbiddenExceptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'name': json['name'],
|
|
42
|
-
'statusCode': json['statusCode'],
|
|
43
|
-
'message': json['message'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function ForbiddenExceptionToJSON(json) {
|
|
47
|
-
return ForbiddenExceptionToJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
function ForbiddenExceptionToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'name': value['name'],
|
|
56
|
-
'statusCode': value['statusCode'],
|
|
57
|
-
'message': value['message'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
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 ForbiddenException
|
|
20
|
-
*/
|
|
21
|
-
export interface ForbiddenException {
|
|
22
|
-
/**
|
|
23
|
-
* Exception name.
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ForbiddenException
|
|
26
|
-
*/
|
|
27
|
-
name: string;
|
|
28
|
-
/**
|
|
29
|
-
* HTTP status code.
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof ForbiddenException
|
|
32
|
-
*/
|
|
33
|
-
statusCode: number;
|
|
34
|
-
/**
|
|
35
|
-
* error message
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ForbiddenException
|
|
38
|
-
*/
|
|
39
|
-
message: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the ForbiddenException interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfForbiddenException(value: object): value is ForbiddenException {
|
|
46
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
-
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
48
|
-
if (!('message' in value) || value['message'] === undefined) return false;
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function ForbiddenExceptionFromJSON(json: any): ForbiddenException {
|
|
53
|
-
return ForbiddenExceptionFromJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function ForbiddenExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForbiddenException {
|
|
57
|
-
if (json == null) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'name': json['name'],
|
|
63
|
-
'statusCode': json['statusCode'],
|
|
64
|
-
'message': json['message'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function ForbiddenExceptionToJSON(json: any): ForbiddenException {
|
|
69
|
-
return ForbiddenExceptionToJSONTyped(json, false);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function ForbiddenExceptionToJSONTyped(value?: ForbiddenException | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'name': value['name'],
|
|
80
|
-
'statusCode': value['statusCode'],
|
|
81
|
-
'message': value['message'],
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|