@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.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +2 -1
  2. package/README.md +3 -3
  3. package/dist/apis/PartnerApi.d.ts +14 -1
  4. package/dist/apis/PartnerApi.js +54 -0
  5. package/dist/models/ApiKeyDto.d.ts +1 -0
  6. package/dist/models/ApiKeyDto.js +1 -0
  7. package/dist/models/ApiKeyScopeDto.d.ts +1 -0
  8. package/dist/models/ApiKeyScopeDto.js +1 -0
  9. package/dist/models/CreateApiKeyInput.d.ts +1 -0
  10. package/dist/models/CreateApiKeyInput.js +1 -0
  11. package/dist/models/CreatedApiKeyDto.d.ts +1 -0
  12. package/dist/models/CreatedApiKeyDto.js +1 -0
  13. package/dist/models/LandingPageInput.d.ts +14 -0
  14. package/dist/models/LandingPageInput.js +10 -1
  15. package/dist/models/LandingPageSettingsDto.d.ts +14 -0
  16. package/dist/models/LandingPageSettingsDto.js +12 -1
  17. package/dist/models/PaymentMethodAvailabilityProfile.d.ts +25 -0
  18. package/dist/models/PaymentMethodAvailabilityProfile.js +51 -0
  19. package/dist/models/PaymentMethodsAvailabilityDto.d.ts +55 -0
  20. package/dist/models/PaymentMethodsAvailabilityDto.js +64 -0
  21. package/dist/models/UpdateApiKeyInput.d.ts +1 -0
  22. package/dist/models/UpdateApiKeyInput.js +1 -0
  23. package/dist/models/index.d.ts +2 -1
  24. package/dist/models/index.js +2 -1
  25. package/package.json +1 -1
  26. package/src/apis/AccountsApi.ts +0 -3
  27. package/src/apis/AdminApi.ts +0 -3
  28. package/src/apis/BuyersApi.ts +0 -3
  29. package/src/apis/CustomerSuccessApi.ts +0 -3
  30. package/src/apis/DomainsApi.ts +0 -3
  31. package/src/apis/PartnerApi.ts +43 -0
  32. package/src/models/ApiKeyDto.ts +1 -0
  33. package/src/models/ApiKeyScopeDto.ts +1 -0
  34. package/src/models/CreateApiKeyInput.ts +1 -0
  35. package/src/models/CreatedApiKeyDto.ts +1 -0
  36. package/src/models/LandingPageInput.ts +17 -0
  37. package/src/models/LandingPageSettingsDto.ts +18 -0
  38. package/src/models/PaymentMethodAvailabilityProfile.ts +53 -0
  39. package/src/models/PaymentMethodsAvailabilityDto.ts +103 -0
  40. package/src/models/UpdateApiKeyInput.ts +1 -0
  41. package/src/models/index.ts +2 -1
  42. package/dist/models/ForbiddenException.d.ts +0 -44
  43. package/dist/models/ForbiddenException.js +0 -59
  44. package/src/models/ForbiddenException.ts +0 -84
@@ -317,7 +317,6 @@ src/models/FixedCommissionPayloadDto.ts
317
317
  src/models/FixedCommissionPayloadInput.ts
318
318
  src/models/FixedCommissionPayloadSimulationInput.ts
319
319
  src/models/FixedCommissionReasonPayloadDto.ts
320
- src/models/ForbiddenException.ts
321
320
  src/models/ForgotPasswordRequestInput.ts
322
321
  src/models/GetAccountChallengeRewardUsagesListDto.ts
323
322
  src/models/GetAccountNameshiftCommissionsResponseDto.ts
@@ -496,6 +495,8 @@ src/models/PartnerMozMetricsDto.ts
496
495
  src/models/PasskeyOptionsDto.ts
497
496
  src/models/PayAccountPaymentInput.ts
498
497
  src/models/PaySellerInvoicesInput.ts
498
+ src/models/PaymentMethodAvailabilityProfile.ts
499
+ src/models/PaymentMethodsAvailabilityDto.ts
499
500
  src/models/PaymentMethodsStatsDto.ts
500
501
  src/models/PayoutFrequency.ts
501
502
  src/models/PopularCategoryDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.511
1
+ ## @randock/nameshift-api-client@0.0.513
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.511 --save
39
+ npm install @randock/nameshift-api-client@0.0.513 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 6ba965a8d2990598f8d6f0f3dddd6d46f41f5574cae209e4543897d25741b42c3aeb3d1ff92936d65a6048ae3597cb6a
47
+ 03c9754bed6cc26a07373e18a1e0edc58ff90aca7642625e86cacf4d9beaf670b93490270a0aae2c73e081ef31fe8f68
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ListAuctions200Response, ListDomainsWithUpdatedPricing200Response, PartnerDomainFindDto, PartnerDomainSeoMetricsDto } from '../models/index';
13
+ import type { ListAuctions200Response, ListDomainsWithUpdatedPricing200Response, PartnerDomainFindDto, PartnerDomainSeoMetricsDto, PaymentMethodsAvailabilityDto } from '../models/index';
14
14
  export interface PartnerApiDomainsFindRequest {
15
15
  rootName: string;
16
16
  tld?: string;
@@ -18,6 +18,9 @@ export interface PartnerApiDomainsFindRequest {
18
18
  export interface PartnerApiGetPartnerDomainSeoMetricsRequest {
19
19
  domainName: string;
20
20
  }
21
+ export interface PartnerApiGetPaymentMethodsAvailabilityRequest {
22
+ amountEur?: number;
23
+ }
21
24
  export interface PartnerApiListAuctionsRequest {
22
25
  limit?: number;
23
26
  cursor?: string;
@@ -51,6 +54,16 @@ export declare class PartnerApi extends runtime.BaseAPI {
51
54
  * Get the SEO metrics of a domain
52
55
  */
53
56
  getPartnerDomainSeoMetrics(requestParameters: PartnerApiGetPartnerDomainSeoMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerDomainSeoMetricsDto>;
57
+ /**
58
+ * 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.
59
+ * Get payment methods availability
60
+ */
61
+ getPaymentMethodsAvailabilityRaw(requestParameters: PartnerApiGetPaymentMethodsAvailabilityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentMethodsAvailabilityDto>>;
62
+ /**
63
+ * 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.
64
+ * Get payment methods availability
65
+ */
66
+ getPaymentMethodsAvailability(requestParameters?: PartnerApiGetPaymentMethodsAvailabilityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentMethodsAvailabilityDto>;
54
67
  /**
55
68
  * Lists auctions available to the partner API key.
56
69
  * List partner auctions
@@ -184,6 +184,60 @@ var PartnerApi = /** @class */ (function (_super) {
184
184
  });
185
185
  });
186
186
  };
187
+ /**
188
+ * 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.
189
+ * Get payment methods availability
190
+ */
191
+ PartnerApi.prototype.getPaymentMethodsAvailabilityRaw = function (requestParameters, initOverrides) {
192
+ return __awaiter(this, void 0, void 0, function () {
193
+ var queryParameters, headerParameters, _a, _b, response;
194
+ return __generator(this, function (_c) {
195
+ switch (_c.label) {
196
+ case 0:
197
+ queryParameters = {};
198
+ if (requestParameters['amountEur'] != null) {
199
+ queryParameters['amountEur'] = requestParameters['amountEur'];
200
+ }
201
+ headerParameters = {};
202
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
203
+ _a = headerParameters;
204
+ _b = "apikey";
205
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
206
+ case 1:
207
+ _a[_b] = _c.sent(); // api_key authentication
208
+ _c.label = 2;
209
+ case 2: return [4 /*yield*/, this.request({
210
+ path: "/partner/payment-methods/availability",
211
+ method: 'GET',
212
+ headers: headerParameters,
213
+ query: queryParameters,
214
+ }, initOverrides)];
215
+ case 3:
216
+ response = _c.sent();
217
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaymentMethodsAvailabilityDtoFromJSON)(jsonValue); })];
218
+ }
219
+ });
220
+ });
221
+ };
222
+ /**
223
+ * 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.
224
+ * Get payment methods availability
225
+ */
226
+ PartnerApi.prototype.getPaymentMethodsAvailability = function () {
227
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
228
+ var response;
229
+ if (requestParameters === void 0) { requestParameters = {}; }
230
+ return __generator(this, function (_a) {
231
+ switch (_a.label) {
232
+ case 0: return [4 /*yield*/, this.getPaymentMethodsAvailabilityRaw(requestParameters, initOverrides)];
233
+ case 1:
234
+ response = _a.sent();
235
+ return [4 /*yield*/, response.value()];
236
+ case 2: return [2 /*return*/, _a.sent()];
237
+ }
238
+ });
239
+ });
240
+ };
187
241
  /**
188
242
  * Lists auctions available to the partner API key.
189
243
  * List partner auctions
@@ -67,6 +67,7 @@ export declare const ApiKeyDtoScopeEnum: {
67
67
  readonly AUCTION_LIST: "AUCTION_LIST";
68
68
  readonly MARKET_DATA: "MARKET_DATA";
69
69
  readonly DOMAIN_SEO_METRICS: "DOMAIN_SEO_METRICS";
70
+ readonly PAYMENT_METHODS_AVAILABILITY: "PAYMENT_METHODS_AVAILABILITY";
70
71
  readonly DOMAINS_READ: "DOMAINS_READ";
71
72
  readonly DOMAINS_WRITE: "DOMAINS_WRITE";
72
73
  readonly EPP_WRITE: "EPP_WRITE";
@@ -28,6 +28,7 @@ exports.ApiKeyDtoScopeEnum = {
28
28
  AUCTION_LIST: 'AUCTION_LIST',
29
29
  MARKET_DATA: 'MARKET_DATA',
30
30
  DOMAIN_SEO_METRICS: 'DOMAIN_SEO_METRICS',
31
+ PAYMENT_METHODS_AVAILABILITY: 'PAYMENT_METHODS_AVAILABILITY',
31
32
  DOMAINS_READ: 'DOMAINS_READ',
32
33
  DOMAINS_WRITE: 'DOMAINS_WRITE',
33
34
  EPP_WRITE: 'EPP_WRITE',
@@ -43,6 +43,7 @@ export declare const ApiKeyScopeDtoScopeEnum: {
43
43
  readonly AUCTION_LIST: "AUCTION_LIST";
44
44
  readonly MARKET_DATA: "MARKET_DATA";
45
45
  readonly DOMAIN_SEO_METRICS: "DOMAIN_SEO_METRICS";
46
+ readonly PAYMENT_METHODS_AVAILABILITY: "PAYMENT_METHODS_AVAILABILITY";
46
47
  readonly DOMAINS_READ: "DOMAINS_READ";
47
48
  readonly DOMAINS_WRITE: "DOMAINS_WRITE";
48
49
  readonly EPP_WRITE: "EPP_WRITE";
@@ -28,6 +28,7 @@ exports.ApiKeyScopeDtoScopeEnum = {
28
28
  AUCTION_LIST: 'AUCTION_LIST',
29
29
  MARKET_DATA: 'MARKET_DATA',
30
30
  DOMAIN_SEO_METRICS: 'DOMAIN_SEO_METRICS',
31
+ PAYMENT_METHODS_AVAILABILITY: 'PAYMENT_METHODS_AVAILABILITY',
31
32
  DOMAINS_READ: 'DOMAINS_READ',
32
33
  DOMAINS_WRITE: 'DOMAINS_WRITE',
33
34
  EPP_WRITE: 'EPP_WRITE',
@@ -43,6 +43,7 @@ export declare const CreateApiKeyInputScopeEnum: {
43
43
  readonly AUCTION_LIST: "AUCTION_LIST";
44
44
  readonly MARKET_DATA: "MARKET_DATA";
45
45
  readonly DOMAIN_SEO_METRICS: "DOMAIN_SEO_METRICS";
46
+ readonly PAYMENT_METHODS_AVAILABILITY: "PAYMENT_METHODS_AVAILABILITY";
46
47
  readonly DOMAINS_READ: "DOMAINS_READ";
47
48
  readonly DOMAINS_WRITE: "DOMAINS_WRITE";
48
49
  readonly EPP_WRITE: "EPP_WRITE";
@@ -28,6 +28,7 @@ exports.CreateApiKeyInputScopeEnum = {
28
28
  AUCTION_LIST: 'AUCTION_LIST',
29
29
  MARKET_DATA: 'MARKET_DATA',
30
30
  DOMAIN_SEO_METRICS: 'DOMAIN_SEO_METRICS',
31
+ PAYMENT_METHODS_AVAILABILITY: 'PAYMENT_METHODS_AVAILABILITY',
31
32
  DOMAINS_READ: 'DOMAINS_READ',
32
33
  DOMAINS_WRITE: 'DOMAINS_WRITE',
33
34
  EPP_WRITE: 'EPP_WRITE',
@@ -73,6 +73,7 @@ export declare const CreatedApiKeyDtoScopeEnum: {
73
73
  readonly AUCTION_LIST: "AUCTION_LIST";
74
74
  readonly MARKET_DATA: "MARKET_DATA";
75
75
  readonly DOMAIN_SEO_METRICS: "DOMAIN_SEO_METRICS";
76
+ readonly PAYMENT_METHODS_AVAILABILITY: "PAYMENT_METHODS_AVAILABILITY";
76
77
  readonly DOMAINS_READ: "DOMAINS_READ";
77
78
  readonly DOMAINS_WRITE: "DOMAINS_WRITE";
78
79
  readonly EPP_WRITE: "EPP_WRITE";
@@ -28,6 +28,7 @@ exports.CreatedApiKeyDtoScopeEnum = {
28
28
  AUCTION_LIST: 'AUCTION_LIST',
29
29
  MARKET_DATA: 'MARKET_DATA',
30
30
  DOMAIN_SEO_METRICS: 'DOMAIN_SEO_METRICS',
31
+ PAYMENT_METHODS_AVAILABILITY: 'PAYMENT_METHODS_AVAILABILITY',
31
32
  DOMAINS_READ: 'DOMAINS_READ',
32
33
  DOMAINS_WRITE: 'DOMAINS_WRITE',
33
34
  EPP_WRITE: 'EPP_WRITE',
@@ -70,6 +70,12 @@ export interface LandingPageInput {
70
70
  * @memberof LandingPageInput
71
71
  */
72
72
  domainNameTldCase?: LandingPageInputDomainNameTldCaseEnum | null;
73
+ /**
74
+ * How the landing page picks its language when the visitor has not chosen one: from the browser language or from the domain extension.
75
+ * @type {string}
76
+ * @memberof LandingPageInput
77
+ */
78
+ localeRedirect?: LandingPageInputLocaleRedirectEnum | null;
73
79
  }
74
80
  /**
75
81
  * @export
@@ -109,6 +115,14 @@ export declare const LandingPageInputDomainNameTldCaseEnum: {
109
115
  readonly UPPER: "upper";
110
116
  };
111
117
  export type LandingPageInputDomainNameTldCaseEnum = typeof LandingPageInputDomainNameTldCaseEnum[keyof typeof LandingPageInputDomainNameTldCaseEnum];
118
+ /**
119
+ * @export
120
+ */
121
+ export declare const LandingPageInputLocaleRedirectEnum: {
122
+ readonly ACCEPT_LANGUAGE: "accept_language";
123
+ readonly TLD: "tld";
124
+ };
125
+ export type LandingPageInputLocaleRedirectEnum = typeof LandingPageInputLocaleRedirectEnum[keyof typeof LandingPageInputLocaleRedirectEnum];
112
126
  /**
113
127
  * Check if a given object implements the LandingPageInput interface.
114
128
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.LandingPageInputDomainNameTldCaseEnum = exports.LandingPageInputDomainNameCaseEnum = exports.LandingPageInputDesignEnum = exports.LandingPageInputRequestLeadBuyerPhoneNumberEnum = void 0;
16
+ exports.LandingPageInputLocaleRedirectEnum = exports.LandingPageInputDomainNameTldCaseEnum = exports.LandingPageInputDomainNameCaseEnum = exports.LandingPageInputDesignEnum = exports.LandingPageInputRequestLeadBuyerPhoneNumberEnum = void 0;
17
17
  exports.instanceOfLandingPageInput = instanceOfLandingPageInput;
18
18
  exports.LandingPageInputFromJSON = LandingPageInputFromJSON;
19
19
  exports.LandingPageInputFromJSONTyped = LandingPageInputFromJSONTyped;
@@ -54,6 +54,13 @@ exports.LandingPageInputDomainNameTldCaseEnum = {
54
54
  LOWER: 'lower',
55
55
  UPPER: 'upper'
56
56
  };
57
+ /**
58
+ * @export
59
+ */
60
+ exports.LandingPageInputLocaleRedirectEnum = {
61
+ ACCEPT_LANGUAGE: 'accept_language',
62
+ TLD: 'tld'
63
+ };
57
64
  /**
58
65
  * Check if a given object implements the LandingPageInput interface.
59
66
  */
@@ -77,6 +84,7 @@ function LandingPageInputFromJSONTyped(json, ignoreDiscriminator) {
77
84
  'domainNameCase': json['domainNameCase'] == null ? undefined : json['domainNameCase'],
78
85
  'domainNameUppercaseThreshold': json['domainNameUppercaseThreshold'] == null ? undefined : json['domainNameUppercaseThreshold'],
79
86
  'domainNameTldCase': json['domainNameTldCase'] == null ? undefined : json['domainNameTldCase'],
87
+ 'localeRedirect': json['localeRedirect'] == null ? undefined : json['localeRedirect'],
80
88
  };
81
89
  }
82
90
  function LandingPageInputToJSON(json) {
@@ -97,5 +105,6 @@ function LandingPageInputToJSONTyped(value, ignoreDiscriminator) {
97
105
  'domainNameCase': value['domainNameCase'],
98
106
  'domainNameUppercaseThreshold': value['domainNameUppercaseThreshold'],
99
107
  'domainNameTldCase': value['domainNameTldCase'],
108
+ 'localeRedirect': value['localeRedirect'],
100
109
  };
101
110
  }
@@ -70,6 +70,12 @@ export interface LandingPageSettingsDto {
70
70
  * @memberof LandingPageSettingsDto
71
71
  */
72
72
  domainNameTldCase: LandingPageSettingsDtoDomainNameTldCaseEnum | null;
73
+ /**
74
+ * How the landing page picks its language when the visitor has not chosen one: from the browser language or from the domain extension.
75
+ * @type {string}
76
+ * @memberof LandingPageSettingsDto
77
+ */
78
+ localeRedirect: LandingPageSettingsDtoLocaleRedirectEnum | null;
73
79
  }
74
80
  /**
75
81
  * @export
@@ -109,6 +115,14 @@ export declare const LandingPageSettingsDtoDomainNameTldCaseEnum: {
109
115
  readonly UPPER: "upper";
110
116
  };
111
117
  export type LandingPageSettingsDtoDomainNameTldCaseEnum = typeof LandingPageSettingsDtoDomainNameTldCaseEnum[keyof typeof LandingPageSettingsDtoDomainNameTldCaseEnum];
118
+ /**
119
+ * @export
120
+ */
121
+ export declare const LandingPageSettingsDtoLocaleRedirectEnum: {
122
+ readonly ACCEPT_LANGUAGE: "accept_language";
123
+ readonly TLD: "tld";
124
+ };
125
+ export type LandingPageSettingsDtoLocaleRedirectEnum = typeof LandingPageSettingsDtoLocaleRedirectEnum[keyof typeof LandingPageSettingsDtoLocaleRedirectEnum];
112
126
  /**
113
127
  * Check if a given object implements the LandingPageSettingsDto interface.
114
128
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.LandingPageSettingsDtoDomainNameTldCaseEnum = exports.LandingPageSettingsDtoDomainNameCaseEnum = exports.LandingPageSettingsDtoDesignEnum = exports.LandingPageSettingsDtoRequestLeadBuyerPhoneNumberEnum = void 0;
16
+ exports.LandingPageSettingsDtoLocaleRedirectEnum = exports.LandingPageSettingsDtoDomainNameTldCaseEnum = exports.LandingPageSettingsDtoDomainNameCaseEnum = exports.LandingPageSettingsDtoDesignEnum = exports.LandingPageSettingsDtoRequestLeadBuyerPhoneNumberEnum = void 0;
17
17
  exports.instanceOfLandingPageSettingsDto = instanceOfLandingPageSettingsDto;
18
18
  exports.LandingPageSettingsDtoFromJSON = LandingPageSettingsDtoFromJSON;
19
19
  exports.LandingPageSettingsDtoFromJSONTyped = LandingPageSettingsDtoFromJSONTyped;
@@ -54,6 +54,13 @@ exports.LandingPageSettingsDtoDomainNameTldCaseEnum = {
54
54
  LOWER: 'lower',
55
55
  UPPER: 'upper'
56
56
  };
57
+ /**
58
+ * @export
59
+ */
60
+ exports.LandingPageSettingsDtoLocaleRedirectEnum = {
61
+ ACCEPT_LANGUAGE: 'accept_language',
62
+ TLD: 'tld'
63
+ };
57
64
  /**
58
65
  * Check if a given object implements the LandingPageSettingsDto interface.
59
66
  */
@@ -76,6 +83,8 @@ function instanceOfLandingPageSettingsDto(value) {
76
83
  return false;
77
84
  if (!('domainNameTldCase' in value) || value['domainNameTldCase'] === undefined)
78
85
  return false;
86
+ if (!('localeRedirect' in value) || value['localeRedirect'] === undefined)
87
+ return false;
79
88
  return true;
80
89
  }
81
90
  function LandingPageSettingsDtoFromJSON(json) {
@@ -95,6 +104,7 @@ function LandingPageSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
95
104
  'domainNameCase': json['domainNameCase'],
96
105
  'domainNameUppercaseThreshold': json['domainNameUppercaseThreshold'],
97
106
  'domainNameTldCase': json['domainNameTldCase'],
107
+ 'localeRedirect': json['localeRedirect'],
98
108
  };
99
109
  }
100
110
  function LandingPageSettingsDtoToJSON(json) {
@@ -115,5 +125,6 @@ function LandingPageSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
115
125
  'domainNameCase': value['domainNameCase'],
116
126
  'domainNameUppercaseThreshold': value['domainNameUppercaseThreshold'],
117
127
  'domainNameTldCase': value['domainNameTldCase'],
128
+ 'localeRedirect': value['localeRedirect'],
118
129
  };
119
130
  }
@@ -0,0 +1,25 @@
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
+ * Checkout profile the availability was resolved for.
14
+ * @export
15
+ */
16
+ export declare const PaymentMethodAvailabilityProfile: {
17
+ readonly ORDERS: "orders";
18
+ readonly SUBSCRIPTIONS: "subscriptions";
19
+ };
20
+ export type PaymentMethodAvailabilityProfile = typeof PaymentMethodAvailabilityProfile[keyof typeof PaymentMethodAvailabilityProfile];
21
+ export declare function instanceOfPaymentMethodAvailabilityProfile(value: any): boolean;
22
+ export declare function PaymentMethodAvailabilityProfileFromJSON(json: any): PaymentMethodAvailabilityProfile;
23
+ export declare function PaymentMethodAvailabilityProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodAvailabilityProfile;
24
+ export declare function PaymentMethodAvailabilityProfileToJSON(value?: PaymentMethodAvailabilityProfile | null): any;
25
+ export declare function PaymentMethodAvailabilityProfileToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentMethodAvailabilityProfile;
@@ -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.PaymentMethodAvailabilityProfile = void 0;
17
+ exports.instanceOfPaymentMethodAvailabilityProfile = instanceOfPaymentMethodAvailabilityProfile;
18
+ exports.PaymentMethodAvailabilityProfileFromJSON = PaymentMethodAvailabilityProfileFromJSON;
19
+ exports.PaymentMethodAvailabilityProfileFromJSONTyped = PaymentMethodAvailabilityProfileFromJSONTyped;
20
+ exports.PaymentMethodAvailabilityProfileToJSON = PaymentMethodAvailabilityProfileToJSON;
21
+ exports.PaymentMethodAvailabilityProfileToJSONTyped = PaymentMethodAvailabilityProfileToJSONTyped;
22
+ /**
23
+ * Checkout profile the availability was resolved for.
24
+ * @export
25
+ */
26
+ exports.PaymentMethodAvailabilityProfile = {
27
+ ORDERS: 'orders',
28
+ SUBSCRIPTIONS: 'subscriptions'
29
+ };
30
+ function instanceOfPaymentMethodAvailabilityProfile(value) {
31
+ for (var key in exports.PaymentMethodAvailabilityProfile) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.PaymentMethodAvailabilityProfile, key)) {
33
+ if (exports.PaymentMethodAvailabilityProfile[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function PaymentMethodAvailabilityProfileFromJSON(json) {
41
+ return PaymentMethodAvailabilityProfileFromJSONTyped(json, false);
42
+ }
43
+ function PaymentMethodAvailabilityProfileFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function PaymentMethodAvailabilityProfileToJSON(value) {
47
+ return value;
48
+ }
49
+ function PaymentMethodAvailabilityProfileToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -0,0 +1,55 @@
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
+ import type { PaymentMethodAvailabilityProfile } from './PaymentMethodAvailabilityProfile';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaymentMethodsAvailabilityDto
17
+ */
18
+ export interface PaymentMethodsAvailabilityDto {
19
+ /**
20
+ * Order total, in EUR, the availability was resolved for.
21
+ * @type {string}
22
+ * @memberof PaymentMethodsAvailabilityDto
23
+ */
24
+ amountEur: string;
25
+ /**
26
+ * Checkout profile the availability was resolved for.
27
+ * @type {PaymentMethodAvailabilityProfile}
28
+ * @memberof PaymentMethodsAvailabilityDto
29
+ */
30
+ profile: PaymentMethodAvailabilityProfile;
31
+ /**
32
+ * Currencies the platform supports. Each of them is listed for every country.
33
+ * @type {Array<string>}
34
+ * @memberof PaymentMethodsAvailabilityDto
35
+ */
36
+ currencies: Array<string>;
37
+ /**
38
+ * 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.
39
+ * @type {{ [key: string]: { [key: string]: Array<string>; }; }}
40
+ * @memberof PaymentMethodsAvailabilityDto
41
+ */
42
+ countries: {
43
+ [key: string]: {
44
+ [key: string]: Array<string>;
45
+ };
46
+ };
47
+ }
48
+ /**
49
+ * Check if a given object implements the PaymentMethodsAvailabilityDto interface.
50
+ */
51
+ export declare function instanceOfPaymentMethodsAvailabilityDto(value: object): value is PaymentMethodsAvailabilityDto;
52
+ export declare function PaymentMethodsAvailabilityDtoFromJSON(json: any): PaymentMethodsAvailabilityDto;
53
+ export declare function PaymentMethodsAvailabilityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodsAvailabilityDto;
54
+ export declare function PaymentMethodsAvailabilityDtoToJSON(json: any): PaymentMethodsAvailabilityDto;
55
+ export declare function PaymentMethodsAvailabilityDtoToJSONTyped(value?: PaymentMethodsAvailabilityDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.instanceOfPaymentMethodsAvailabilityDto = instanceOfPaymentMethodsAvailabilityDto;
17
+ exports.PaymentMethodsAvailabilityDtoFromJSON = PaymentMethodsAvailabilityDtoFromJSON;
18
+ exports.PaymentMethodsAvailabilityDtoFromJSONTyped = PaymentMethodsAvailabilityDtoFromJSONTyped;
19
+ exports.PaymentMethodsAvailabilityDtoToJSON = PaymentMethodsAvailabilityDtoToJSON;
20
+ exports.PaymentMethodsAvailabilityDtoToJSONTyped = PaymentMethodsAvailabilityDtoToJSONTyped;
21
+ var PaymentMethodAvailabilityProfile_1 = require("./PaymentMethodAvailabilityProfile");
22
+ /**
23
+ * Check if a given object implements the PaymentMethodsAvailabilityDto interface.
24
+ */
25
+ function instanceOfPaymentMethodsAvailabilityDto(value) {
26
+ if (!('amountEur' in value) || value['amountEur'] === undefined)
27
+ return false;
28
+ if (!('profile' in value) || value['profile'] === undefined)
29
+ return false;
30
+ if (!('currencies' in value) || value['currencies'] === undefined)
31
+ return false;
32
+ if (!('countries' in value) || value['countries'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function PaymentMethodsAvailabilityDtoFromJSON(json) {
37
+ return PaymentMethodsAvailabilityDtoFromJSONTyped(json, false);
38
+ }
39
+ function PaymentMethodsAvailabilityDtoFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'amountEur': json['amountEur'],
45
+ 'profile': (0, PaymentMethodAvailabilityProfile_1.PaymentMethodAvailabilityProfileFromJSON)(json['profile']),
46
+ 'currencies': json['currencies'],
47
+ 'countries': json['countries'],
48
+ };
49
+ }
50
+ function PaymentMethodsAvailabilityDtoToJSON(json) {
51
+ return PaymentMethodsAvailabilityDtoToJSONTyped(json, false);
52
+ }
53
+ function PaymentMethodsAvailabilityDtoToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'amountEur': value['amountEur'],
60
+ 'profile': (0, PaymentMethodAvailabilityProfile_1.PaymentMethodAvailabilityProfileToJSON)(value['profile']),
61
+ 'currencies': value['currencies'],
62
+ 'countries': value['countries'],
63
+ };
64
+ }
@@ -37,6 +37,7 @@ export declare const UpdateApiKeyInputScopeEnum: {
37
37
  readonly AUCTION_LIST: "AUCTION_LIST";
38
38
  readonly MARKET_DATA: "MARKET_DATA";
39
39
  readonly DOMAIN_SEO_METRICS: "DOMAIN_SEO_METRICS";
40
+ readonly PAYMENT_METHODS_AVAILABILITY: "PAYMENT_METHODS_AVAILABILITY";
40
41
  readonly DOMAINS_READ: "DOMAINS_READ";
41
42
  readonly DOMAINS_WRITE: "DOMAINS_WRITE";
42
43
  readonly EPP_WRITE: "EPP_WRITE";
@@ -28,6 +28,7 @@ exports.UpdateApiKeyInputScopeEnum = {
28
28
  AUCTION_LIST: 'AUCTION_LIST',
29
29
  MARKET_DATA: 'MARKET_DATA',
30
30
  DOMAIN_SEO_METRICS: 'DOMAIN_SEO_METRICS',
31
+ PAYMENT_METHODS_AVAILABILITY: 'PAYMENT_METHODS_AVAILABILITY',
31
32
  DOMAINS_READ: 'DOMAINS_READ',
32
33
  DOMAINS_WRITE: 'DOMAINS_WRITE',
33
34
  EPP_WRITE: 'EPP_WRITE',
@@ -274,7 +274,6 @@ export * from './FixedCommissionPayloadDto';
274
274
  export * from './FixedCommissionPayloadInput';
275
275
  export * from './FixedCommissionPayloadSimulationInput';
276
276
  export * from './FixedCommissionReasonPayloadDto';
277
- export * from './ForbiddenException';
278
277
  export * from './ForgotPasswordRequestInput';
279
278
  export * from './GetAccountChallengeRewardUsagesListDto';
280
279
  export * from './GetAccountNameshiftCommissionsResponseDto';
@@ -453,6 +452,8 @@ export * from './PartnerMozMetricsDto';
453
452
  export * from './PasskeyOptionsDto';
454
453
  export * from './PayAccountPaymentInput';
455
454
  export * from './PaySellerInvoicesInput';
455
+ export * from './PaymentMethodAvailabilityProfile';
456
+ export * from './PaymentMethodsAvailabilityDto';
456
457
  export * from './PaymentMethodsStatsDto';
457
458
  export * from './PayoutFrequency';
458
459
  export * from './PopularCategoryDto';
@@ -292,7 +292,6 @@ __exportStar(require("./FixedCommissionPayloadDto"), exports);
292
292
  __exportStar(require("./FixedCommissionPayloadInput"), exports);
293
293
  __exportStar(require("./FixedCommissionPayloadSimulationInput"), exports);
294
294
  __exportStar(require("./FixedCommissionReasonPayloadDto"), exports);
295
- __exportStar(require("./ForbiddenException"), exports);
296
295
  __exportStar(require("./ForgotPasswordRequestInput"), exports);
297
296
  __exportStar(require("./GetAccountChallengeRewardUsagesListDto"), exports);
298
297
  __exportStar(require("./GetAccountNameshiftCommissionsResponseDto"), exports);
@@ -471,6 +470,8 @@ __exportStar(require("./PartnerMozMetricsDto"), exports);
471
470
  __exportStar(require("./PasskeyOptionsDto"), exports);
472
471
  __exportStar(require("./PayAccountPaymentInput"), exports);
473
472
  __exportStar(require("./PaySellerInvoicesInput"), exports);
473
+ __exportStar(require("./PaymentMethodAvailabilityProfile"), exports);
474
+ __exportStar(require("./PaymentMethodsAvailabilityDto"), exports);
474
475
  __exportStar(require("./PaymentMethodsStatsDto"), exports);
475
476
  __exportStar(require("./PayoutFrequency"), exports);
476
477
  __exportStar(require("./PopularCategoryDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.511",
3
+ "version": "0.0.513",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -23,7 +23,6 @@ import type {
23
23
  BadRequestException,
24
24
  CreateAccountPaymentInput,
25
25
  CreateAccountPaymentManualTransactionInput,
26
- ForbiddenException,
27
26
  GetAccountNameshiftCommissionsResponseDto,
28
27
  GetAllAffiliateCommissions200Response,
29
28
  GetAllReferrals200Response,
@@ -53,8 +52,6 @@ import {
53
52
  CreateAccountPaymentInputToJSON,
54
53
  CreateAccountPaymentManualTransactionInputFromJSON,
55
54
  CreateAccountPaymentManualTransactionInputToJSON,
56
- ForbiddenExceptionFromJSON,
57
- ForbiddenExceptionToJSON,
58
55
  GetAccountNameshiftCommissionsResponseDtoFromJSON,
59
56
  GetAccountNameshiftCommissionsResponseDtoToJSON,
60
57
  GetAllAffiliateCommissions200ResponseFromJSON,
@@ -45,7 +45,6 @@ import type {
45
45
  DomainStatsDto,
46
46
  DomainTldsDto,
47
47
  DomainTransferDetailsDto,
48
- ForbiddenException,
49
48
  GetAccountChallengeRewardUsagesListDto,
50
49
  GetAdminDomainAppraisalRequests200Response,
51
50
  GetAllAuctions200Response,
@@ -155,8 +154,6 @@ import {
155
154
  DomainTldsDtoToJSON,
156
155
  DomainTransferDetailsDtoFromJSON,
157
156
  DomainTransferDetailsDtoToJSON,
158
- ForbiddenExceptionFromJSON,
159
- ForbiddenExceptionToJSON,
160
157
  GetAccountChallengeRewardUsagesListDtoFromJSON,
161
158
  GetAccountChallengeRewardUsagesListDtoToJSON,
162
159
  GetAdminDomainAppraisalRequests200ResponseFromJSON,