@randock/nameshift-api-client 0.0.510 → 0.0.512

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 (41) hide show
  1. package/.openapi-generator/FILES +2 -1
  2. package/README.md +3 -3
  3. package/dist/apis/LeadsPublicApi.d.ts +2 -2
  4. package/dist/apis/LeadsPublicApi.js +5 -16
  5. package/dist/apis/PartnerApi.d.ts +14 -1
  6. package/dist/apis/PartnerApi.js +54 -0
  7. package/dist/models/ApiKeyDto.d.ts +1 -0
  8. package/dist/models/ApiKeyDto.js +1 -0
  9. package/dist/models/ApiKeyScopeDto.d.ts +1 -0
  10. package/dist/models/ApiKeyScopeDto.js +1 -0
  11. package/dist/models/CreateApiKeyInput.d.ts +1 -0
  12. package/dist/models/CreateApiKeyInput.js +1 -0
  13. package/dist/models/CreatedApiKeyDto.d.ts +1 -0
  14. package/dist/models/CreatedApiKeyDto.js +1 -0
  15. package/dist/models/PaymentMethodAvailabilityProfile.d.ts +25 -0
  16. package/dist/models/PaymentMethodAvailabilityProfile.js +51 -0
  17. package/dist/models/PaymentMethodsAvailabilityDto.d.ts +55 -0
  18. package/dist/models/PaymentMethodsAvailabilityDto.js +64 -0
  19. package/dist/models/UpdateApiKeyInput.d.ts +1 -0
  20. package/dist/models/UpdateApiKeyInput.js +1 -0
  21. package/dist/models/index.d.ts +2 -1
  22. package/dist/models/index.js +2 -1
  23. package/package.json +1 -1
  24. package/src/apis/AccountsApi.ts +0 -3
  25. package/src/apis/AdminApi.ts +0 -3
  26. package/src/apis/BuyersApi.ts +0 -3
  27. package/src/apis/CustomerSuccessApi.ts +0 -3
  28. package/src/apis/DomainsApi.ts +0 -3
  29. package/src/apis/LeadsPublicApi.ts +4 -12
  30. package/src/apis/PartnerApi.ts +43 -0
  31. package/src/models/ApiKeyDto.ts +1 -0
  32. package/src/models/ApiKeyScopeDto.ts +1 -0
  33. package/src/models/CreateApiKeyInput.ts +1 -0
  34. package/src/models/CreatedApiKeyDto.ts +1 -0
  35. package/src/models/PaymentMethodAvailabilityProfile.ts +53 -0
  36. package/src/models/PaymentMethodsAvailabilityDto.ts +103 -0
  37. package/src/models/UpdateApiKeyInput.ts +1 -0
  38. package/src/models/index.ts +2 -1
  39. package/dist/models/ForbiddenException.d.ts +0 -44
  40. package/dist/models/ForbiddenException.js +0 -59
  41. 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.510
1
+ ## @randock/nameshift-api-client@0.0.512
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.510 --save
39
+ npm install @randock/nameshift-api-client@0.0.512 --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
- 9fc9492f2ee12efed7ce9b25ea506b1849a810402b767f71961ecc39f68861a3ade5b8b36b8a5e70294520e48e1ace9a
47
+ 616e904d2cde3b5d4c8a0eb96762a94087d5f82d54748b55abdeb69f564bd1f8500f2ed8b3e5a3c872fe5f982f54c6a6
@@ -108,12 +108,12 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
108
108
  * Updates buyer contact details on an existing lead while it is still in an updatable status. No authentication required.
109
109
  * Update a lead
110
110
  */
111
- updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>>;
111
+ updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
112
112
  /**
113
113
  * Updates buyer contact details on an existing lead while it is still in an updatable status. No authentication required.
114
114
  * Update a lead
115
115
  */
116
- updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId | null | undefined>;
116
+ updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
117
117
  /**
118
118
  * Verifies a lead using the one-time code sent to the buyer email. No authentication required.
119
119
  * Verify a lead
@@ -390,7 +390,7 @@ var LeadsPublicApi = /** @class */ (function (_super) {
390
390
  }, initOverrides)];
391
391
  case 1:
392
392
  response = _a.sent();
393
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ObjectIdFromJSON)(jsonValue); })];
393
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
394
394
  }
395
395
  });
396
396
  });
@@ -401,23 +401,12 @@ var LeadsPublicApi = /** @class */ (function (_super) {
401
401
  */
402
402
  LeadsPublicApi.prototype.updateLead = function (requestParameters, initOverrides) {
403
403
  return __awaiter(this, void 0, void 0, function () {
404
- var response, _a;
405
- return __generator(this, function (_b) {
406
- switch (_b.label) {
404
+ return __generator(this, function (_a) {
405
+ switch (_a.label) {
407
406
  case 0: return [4 /*yield*/, this.updateLeadRaw(requestParameters, initOverrides)];
408
407
  case 1:
409
- response = _b.sent();
410
- _a = response.raw.status;
411
- switch (_a) {
412
- case 202: return [3 /*break*/, 2];
413
- case 204: return [3 /*break*/, 4];
414
- }
415
- return [3 /*break*/, 5];
416
- case 2: return [4 /*yield*/, response.value()];
417
- case 3: return [2 /*return*/, _b.sent()];
418
- case 4: return [2 /*return*/, null];
419
- case 5: return [4 /*yield*/, response.value()];
420
- case 6: return [2 /*return*/, _b.sent()];
408
+ _a.sent();
409
+ return [2 /*return*/];
421
410
  }
422
411
  });
423
412
  });
@@ -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',
@@ -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.510",
3
+ "version": "0.0.512",
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,
@@ -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,
@@ -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,
@@ -327,7 +327,7 @@ export class LeadsPublicApi extends runtime.BaseAPI {
327
327
  * Updates buyer contact details on an existing lead while it is still in an updatable status. No authentication required.
328
328
  * Update a lead
329
329
  */
330
- async updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
330
+ async updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
331
331
  if (requestParameters['leadId'] == null) {
332
332
  throw new runtime.RequiredError(
333
333
  'leadId',
@@ -356,23 +356,15 @@ export class LeadsPublicApi extends runtime.BaseAPI {
356
356
  body: UpdateLeadInputToJSON(requestParameters['updateLeadInput']),
357
357
  }, initOverrides);
358
358
 
359
- return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
359
+ return new runtime.VoidApiResponse(response);
360
360
  }
361
361
 
362
362
  /**
363
363
  * Updates buyer contact details on an existing lead while it is still in an updatable status. No authentication required.
364
364
  * Update a lead
365
365
  */
366
- async updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId | null | undefined > {
367
- const response = await this.updateLeadRaw(requestParameters, initOverrides);
368
- switch (response.raw.status) {
369
- case 202:
370
- return await response.value();
371
- case 204:
372
- return null;
373
- default:
374
- return await response.value();
375
- }
366
+ async updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
367
+ await this.updateLeadRaw(requestParameters, initOverrides);
376
368
  }
377
369
 
378
370
  /**
@@ -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
@@ -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',
@@ -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',
@@ -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
-