@randock/nameshift-api-client 0.0.359 → 0.0.360

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.359
1
+ ## @randock/nameshift-api-client@0.0.360
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.359 --save
39
+ npm install @randock/nameshift-api-client@0.0.360 --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
- 9df8a04debee73bb39bd43547d0abd74603ded2da00895815e0334133337913c82a88d173cc6b64f31dbad47e869ebd7
47
+ 7829aa320e2173d9bfedf54eaf6e68013a631f1b6c9ff94369c8e9ec72a1582d8aab46b3feae56a38c7a0e05f6a02af3
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
13
+ import type { AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -34,6 +34,9 @@ export interface AdminApiDownloadInvoiceRequest {
34
34
  export interface AdminApiGetAccountMeRequest {
35
35
  accountId: string;
36
36
  }
37
+ export interface AdminApiGetAccountPaymentMethodProfilesRequest {
38
+ accountId: string;
39
+ }
37
40
  export interface AdminApiGetAccountSettingsRequest {
38
41
  accountId: string;
39
42
  }
@@ -124,6 +127,9 @@ export interface AdminApiPostAdminExecuteDomainTransferStepActionRequest {
124
127
  export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
125
128
  sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
126
129
  }
130
+ export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
131
+ accountId: string;
132
+ }
127
133
  export interface AdminApiUpdateAccountSettingsRequest {
128
134
  accountId: string;
129
135
  adminAccountSettingsInput: AdminAccountSettingsInput;
@@ -186,6 +192,14 @@ export declare class AdminApi extends runtime.BaseAPI {
186
192
  *
187
193
  */
188
194
  getAccountMe(requestParameters: AdminApiGetAccountMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>;
195
+ /**
196
+ *
197
+ */
198
+ getAccountPaymentMethodProfilesRaw(requestParameters: AdminApiGetAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountPaymentMethodProfileDto>>>;
199
+ /**
200
+ *
201
+ */
202
+ getAccountPaymentMethodProfiles(requestParameters: AdminApiGetAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountPaymentMethodProfileDto>>;
189
203
  /**
190
204
  *
191
205
  */
@@ -346,6 +360,14 @@ export declare class AdminApi extends runtime.BaseAPI {
346
360
  *
347
361
  */
348
362
  postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>>;
363
+ /**
364
+ *
365
+ */
366
+ syncAllAccountPaymentMethodProfilesRaw(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
367
+ /**
368
+ *
369
+ */
370
+ syncAllAccountPaymentMethodProfiles(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
349
371
  /**
350
372
  *
351
373
  */
@@ -409,6 +409,59 @@ var AdminApi = /** @class */ (function (_super) {
409
409
  });
410
410
  });
411
411
  };
412
+ /**
413
+ *
414
+ */
415
+ AdminApi.prototype.getAccountPaymentMethodProfilesRaw = function (requestParameters, initOverrides) {
416
+ return __awaiter(this, void 0, void 0, function () {
417
+ var queryParameters, headerParameters, token, tokenString, response;
418
+ return __generator(this, function (_a) {
419
+ switch (_a.label) {
420
+ case 0:
421
+ if (requestParameters['accountId'] == null) {
422
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAccountPaymentMethodProfiles().');
423
+ }
424
+ queryParameters = {};
425
+ headerParameters = {};
426
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
427
+ token = this.configuration.accessToken;
428
+ return [4 /*yield*/, token("bearer", [])];
429
+ case 1:
430
+ tokenString = _a.sent();
431
+ if (tokenString) {
432
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
433
+ }
434
+ _a.label = 2;
435
+ case 2: return [4 /*yield*/, this.request({
436
+ path: "/admin/accounts/{accountId}/payment-method-profiles".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
437
+ method: 'GET',
438
+ headers: headerParameters,
439
+ query: queryParameters,
440
+ }, initOverrides)];
441
+ case 3:
442
+ response = _a.sent();
443
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AccountPaymentMethodProfileDtoFromJSON); })];
444
+ }
445
+ });
446
+ });
447
+ };
448
+ /**
449
+ *
450
+ */
451
+ AdminApi.prototype.getAccountPaymentMethodProfiles = function (requestParameters, initOverrides) {
452
+ return __awaiter(this, void 0, void 0, function () {
453
+ var response;
454
+ return __generator(this, function (_a) {
455
+ switch (_a.label) {
456
+ case 0: return [4 /*yield*/, this.getAccountPaymentMethodProfilesRaw(requestParameters, initOverrides)];
457
+ case 1:
458
+ response = _a.sent();
459
+ return [4 /*yield*/, response.value()];
460
+ case 2: return [2 /*return*/, _a.sent()];
461
+ }
462
+ });
463
+ });
464
+ };
412
465
  /**
413
466
  *
414
467
  */
@@ -1572,6 +1625,57 @@ var AdminApi = /** @class */ (function (_super) {
1572
1625
  });
1573
1626
  });
1574
1627
  };
1628
+ /**
1629
+ *
1630
+ */
1631
+ AdminApi.prototype.syncAllAccountPaymentMethodProfilesRaw = function (requestParameters, initOverrides) {
1632
+ return __awaiter(this, void 0, void 0, function () {
1633
+ var queryParameters, headerParameters, token, tokenString, response;
1634
+ return __generator(this, function (_a) {
1635
+ switch (_a.label) {
1636
+ case 0:
1637
+ if (requestParameters['accountId'] == null) {
1638
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling syncAllAccountPaymentMethodProfiles().');
1639
+ }
1640
+ queryParameters = {};
1641
+ headerParameters = {};
1642
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1643
+ token = this.configuration.accessToken;
1644
+ return [4 /*yield*/, token("bearer", [])];
1645
+ case 1:
1646
+ tokenString = _a.sent();
1647
+ if (tokenString) {
1648
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1649
+ }
1650
+ _a.label = 2;
1651
+ case 2: return [4 /*yield*/, this.request({
1652
+ path: "/admin/accounts/{accountId}/payment-method-profiles/sync".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
1653
+ method: 'POST',
1654
+ headers: headerParameters,
1655
+ query: queryParameters,
1656
+ }, initOverrides)];
1657
+ case 3:
1658
+ response = _a.sent();
1659
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
1660
+ }
1661
+ });
1662
+ });
1663
+ };
1664
+ /**
1665
+ *
1666
+ */
1667
+ AdminApi.prototype.syncAllAccountPaymentMethodProfiles = function (requestParameters, initOverrides) {
1668
+ return __awaiter(this, void 0, void 0, function () {
1669
+ return __generator(this, function (_a) {
1670
+ switch (_a.label) {
1671
+ case 0: return [4 /*yield*/, this.syncAllAccountPaymentMethodProfilesRaw(requestParameters, initOverrides)];
1672
+ case 1:
1673
+ _a.sent();
1674
+ return [2 /*return*/];
1675
+ }
1676
+ });
1677
+ });
1678
+ };
1575
1679
  /**
1576
1680
  *
1577
1681
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.359",
3
+ "version": "0.0.360",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,6 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ AccountPaymentMethodProfileDto,
18
19
  AccountSettingsDto,
19
20
  AdminAccountLoginDto,
20
21
  AdminAccountSettingsInput,
@@ -43,6 +44,8 @@ import type {
43
44
  ValidationException,
44
45
  } from '../models/index';
45
46
  import {
47
+ AccountPaymentMethodProfileDtoFromJSON,
48
+ AccountPaymentMethodProfileDtoToJSON,
46
49
  AccountSettingsDtoFromJSON,
47
50
  AccountSettingsDtoToJSON,
48
51
  AdminAccountLoginDtoFromJSON,
@@ -126,6 +129,10 @@ export interface AdminApiGetAccountMeRequest {
126
129
  accountId: string;
127
130
  }
128
131
 
132
+ export interface AdminApiGetAccountPaymentMethodProfilesRequest {
133
+ accountId: string;
134
+ }
135
+
129
136
  export interface AdminApiGetAccountSettingsRequest {
130
137
  accountId: string;
131
138
  }
@@ -236,6 +243,10 @@ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
236
243
  sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
237
244
  }
238
245
 
246
+ export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
247
+ accountId: string;
248
+ }
249
+
239
250
  export interface AdminApiUpdateAccountSettingsRequest {
240
251
  accountId: string;
241
252
  adminAccountSettingsInput: AdminAccountSettingsInput;
@@ -527,6 +538,47 @@ export class AdminApi extends runtime.BaseAPI {
527
538
  return await response.value();
528
539
  }
529
540
 
541
+ /**
542
+ *
543
+ */
544
+ async getAccountPaymentMethodProfilesRaw(requestParameters: AdminApiGetAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountPaymentMethodProfileDto>>> {
545
+ if (requestParameters['accountId'] == null) {
546
+ throw new runtime.RequiredError(
547
+ 'accountId',
548
+ 'Required parameter "accountId" was null or undefined when calling getAccountPaymentMethodProfiles().'
549
+ );
550
+ }
551
+
552
+ const queryParameters: any = {};
553
+
554
+ const headerParameters: runtime.HTTPHeaders = {};
555
+
556
+ if (this.configuration && this.configuration.accessToken) {
557
+ const token = this.configuration.accessToken;
558
+ const tokenString = await token("bearer", []);
559
+
560
+ if (tokenString) {
561
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
562
+ }
563
+ }
564
+ const response = await this.request({
565
+ path: `/admin/accounts/{accountId}/payment-method-profiles`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
566
+ method: 'GET',
567
+ headers: headerParameters,
568
+ query: queryParameters,
569
+ }, initOverrides);
570
+
571
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountPaymentMethodProfileDtoFromJSON));
572
+ }
573
+
574
+ /**
575
+ *
576
+ */
577
+ async getAccountPaymentMethodProfiles(requestParameters: AdminApiGetAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountPaymentMethodProfileDto>> {
578
+ const response = await this.getAccountPaymentMethodProfilesRaw(requestParameters, initOverrides);
579
+ return await response.value();
580
+ }
581
+
530
582
  /**
531
583
  *
532
584
  */
@@ -1463,6 +1515,46 @@ export class AdminApi extends runtime.BaseAPI {
1463
1515
  return await response.value();
1464
1516
  }
1465
1517
 
1518
+ /**
1519
+ *
1520
+ */
1521
+ async syncAllAccountPaymentMethodProfilesRaw(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1522
+ if (requestParameters['accountId'] == null) {
1523
+ throw new runtime.RequiredError(
1524
+ 'accountId',
1525
+ 'Required parameter "accountId" was null or undefined when calling syncAllAccountPaymentMethodProfiles().'
1526
+ );
1527
+ }
1528
+
1529
+ const queryParameters: any = {};
1530
+
1531
+ const headerParameters: runtime.HTTPHeaders = {};
1532
+
1533
+ if (this.configuration && this.configuration.accessToken) {
1534
+ const token = this.configuration.accessToken;
1535
+ const tokenString = await token("bearer", []);
1536
+
1537
+ if (tokenString) {
1538
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1539
+ }
1540
+ }
1541
+ const response = await this.request({
1542
+ path: `/admin/accounts/{accountId}/payment-method-profiles/sync`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
1543
+ method: 'POST',
1544
+ headers: headerParameters,
1545
+ query: queryParameters,
1546
+ }, initOverrides);
1547
+
1548
+ return new runtime.VoidApiResponse(response);
1549
+ }
1550
+
1551
+ /**
1552
+ *
1553
+ */
1554
+ async syncAllAccountPaymentMethodProfiles(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1555
+ await this.syncAllAccountPaymentMethodProfilesRaw(requestParameters, initOverrides);
1556
+ }
1557
+
1466
1558
  /**
1467
1559
  *
1468
1560
  */