@randock/nameshift-api-client 0.0.441 → 0.0.443

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 (91) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +49 -1
  4. package/dist/apis/AdminApi.js +187 -0
  5. package/dist/models/AdminBankDepositAccountBankAccountDto.d.ts +39 -0
  6. package/dist/models/AdminBankDepositAccountBankAccountDto.js +56 -0
  7. package/dist/models/AdminBankDepositAccountDto.d.ts +38 -0
  8. package/dist/models/AdminBankDepositAccountDto.js +55 -0
  9. package/dist/models/AdminBankDepositDto.d.ts +76 -0
  10. package/dist/models/AdminBankDepositDto.js +81 -0
  11. package/dist/models/AdminBankDepositInvoiceDto.d.ts +54 -0
  12. package/dist/models/AdminBankDepositInvoiceDto.js +69 -0
  13. package/dist/models/AdminBankDepositInvoiceTransactionDto.d.ts +39 -0
  14. package/dist/models/AdminBankDepositInvoiceTransactionDto.js +56 -0
  15. package/dist/models/AirwallexBankAccountDetailsDto.d.ts +1 -1
  16. package/dist/models/DomainMinimalLandingPageDesignDto.d.ts +46 -0
  17. package/dist/models/DomainMinimalLandingPageDesignDto.js +63 -0
  18. package/dist/models/DomainModernLandingPageDesignDto.d.ts +46 -0
  19. package/dist/models/DomainModernLandingPageDesignDto.js +63 -0
  20. package/dist/models/DomainOriginalLandingPageDesignDto.d.ts +46 -0
  21. package/dist/models/DomainOriginalLandingPageDesignDto.js +63 -0
  22. package/dist/models/DomainSalesInformationDto.d.ts +7 -24
  23. package/dist/models/DomainSalesInformationDto.js +5 -16
  24. package/dist/models/DomainSalesInformationDtoLandingPageDesign.d.ts +30 -0
  25. package/dist/models/DomainSalesInformationDtoLandingPageDesign.js +59 -0
  26. package/dist/models/DomainSellerDto.d.ts +0 -6
  27. package/dist/models/DomainSellerDto.js +0 -4
  28. package/dist/models/LandingPageDesignSettingsDto.d.ts +47 -0
  29. package/dist/models/LandingPageDesignSettingsDto.js +62 -0
  30. package/dist/models/LandingPageDesignSettingsInput.d.ts +47 -0
  31. package/dist/models/LandingPageDesignSettingsInput.js +56 -0
  32. package/dist/models/LandingPageInput.d.ts +6 -47
  33. package/dist/models/LandingPageInput.js +3 -16
  34. package/dist/models/LandingPageMinimalDesignSettingsDto.d.ts +32 -0
  35. package/dist/models/LandingPageMinimalDesignSettingsDto.js +51 -0
  36. package/dist/models/LandingPageMinimalDesignSettingsInput.d.ts +32 -0
  37. package/dist/models/LandingPageMinimalDesignSettingsInput.js +49 -0
  38. package/dist/models/LandingPageModernDesignSettingsDto.d.ts +74 -0
  39. package/dist/models/LandingPageModernDesignSettingsDto.js +79 -0
  40. package/dist/models/LandingPageModernDesignSettingsInput.d.ts +74 -0
  41. package/dist/models/LandingPageModernDesignSettingsInput.js +63 -0
  42. package/dist/models/LandingPageOriginalDesignSettingsDto.d.ts +74 -0
  43. package/dist/models/LandingPageOriginalDesignSettingsDto.js +79 -0
  44. package/dist/models/LandingPageOriginalDesignSettingsInput.d.ts +74 -0
  45. package/dist/models/LandingPageOriginalDesignSettingsInput.js +63 -0
  46. package/dist/models/LandingPageSettingsDto.d.ts +6 -47
  47. package/dist/models/LandingPageSettingsDto.js +5 -32
  48. package/dist/models/LinkBankDepositToBankAccountInput.d.ts +32 -0
  49. package/dist/models/LinkBankDepositToBankAccountInput.js +51 -0
  50. package/dist/models/LinkBankDepositToInvoiceInput.d.ts +32 -0
  51. package/dist/models/LinkBankDepositToInvoiceInput.js +51 -0
  52. package/dist/models/ListBankDeposits200Response.d.ts +47 -0
  53. package/dist/models/ListBankDeposits200Response.js +62 -0
  54. package/dist/models/OrderListItemDto.d.ts +1 -1
  55. package/dist/models/OrderListItemDtoTransaction.d.ts +95 -6
  56. package/dist/models/OrderListItemDtoTransaction.js +93 -8
  57. package/dist/models/WithSettingsInner.d.ts +0 -24
  58. package/dist/models/WithSettingsInner.js +0 -16
  59. package/dist/models/index.d.ts +20 -0
  60. package/dist/models/index.js +20 -0
  61. package/package.json +1 -1
  62. package/src/apis/AdminApi.ts +192 -0
  63. package/src/models/AdminBankDepositAccountBankAccountDto.ts +83 -0
  64. package/src/models/AdminBankDepositAccountDto.ts +75 -0
  65. package/src/models/AdminBankDepositDto.ts +144 -0
  66. package/src/models/AdminBankDepositInvoiceDto.ts +97 -0
  67. package/src/models/AdminBankDepositInvoiceTransactionDto.ts +83 -0
  68. package/src/models/AirwallexBankAccountDetailsDto.ts +1 -1
  69. package/src/models/DomainMinimalLandingPageDesignDto.ts +93 -0
  70. package/src/models/DomainModernLandingPageDesignDto.ts +93 -0
  71. package/src/models/DomainOriginalLandingPageDesignDto.ts +93 -0
  72. package/src/models/DomainSalesInformationDto.ts +16 -36
  73. package/src/models/DomainSalesInformationDtoLandingPageDesign.ts +84 -0
  74. package/src/models/DomainSellerDto.ts +0 -9
  75. package/src/models/LandingPageDesignSettingsDto.ts +106 -0
  76. package/src/models/LandingPageDesignSettingsInput.ts +103 -0
  77. package/src/models/LandingPageInput.ts +15 -63
  78. package/src/models/LandingPageMinimalDesignSettingsDto.ts +66 -0
  79. package/src/models/LandingPageMinimalDesignSettingsInput.ts +65 -0
  80. package/src/models/LandingPageModernDesignSettingsDto.ts +129 -0
  81. package/src/models/LandingPageModernDesignSettingsInput.ts +121 -0
  82. package/src/models/LandingPageOriginalDesignSettingsDto.ts +129 -0
  83. package/src/models/LandingPageOriginalDesignSettingsInput.ts +121 -0
  84. package/src/models/LandingPageSettingsDto.ts +16 -71
  85. package/src/models/LinkBankDepositToBankAccountInput.ts +66 -0
  86. package/src/models/LinkBankDepositToInvoiceInput.ts +66 -0
  87. package/src/models/ListBankDeposits200Response.ts +106 -0
  88. package/src/models/OrderListItemDto.ts +1 -1
  89. package/src/models/OrderListItemDtoTransaction.ts +106 -19
  90. package/src/models/WithSettingsInner.ts +0 -36
  91. package/src/models/index.ts +20 -0
@@ -79,6 +79,11 @@ src/models/AdminAccountSettingsInput.ts
79
79
  src/models/AdminAuctionCommissionByDateRangeInput.ts
80
80
  src/models/AdminAuctionConfigurationInput.ts
81
81
  src/models/AdminBankAccountDto.ts
82
+ src/models/AdminBankDepositAccountBankAccountDto.ts
83
+ src/models/AdminBankDepositAccountDto.ts
84
+ src/models/AdminBankDepositDto.ts
85
+ src/models/AdminBankDepositInvoiceDto.ts
86
+ src/models/AdminBankDepositInvoiceTransactionDto.ts
82
87
  src/models/AdminBuyerLoginDto.ts
83
88
  src/models/AdminChallengeListDto.ts
84
89
  src/models/AdminChallengeListItemDto.ts
@@ -207,8 +212,12 @@ src/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.ts
207
212
  src/models/DomainLeadPriceNegotiatorAiAgentConfigurationInput.ts
208
213
  src/models/DomainLockConfigurationDto.ts
209
214
  src/models/DomainLockDto.ts
215
+ src/models/DomainMinimalLandingPageDesignDto.ts
216
+ src/models/DomainModernLandingPageDesignDto.ts
217
+ src/models/DomainOriginalLandingPageDesignDto.ts
210
218
  src/models/DomainPricesChangeDto.ts
211
219
  src/models/DomainSalesInformationDto.ts
220
+ src/models/DomainSalesInformationDtoLandingPageDesign.ts
212
221
  src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts
213
222
  src/models/DomainSalesInformationRentConfigurationDto.ts
214
223
  src/models/DomainSellerDto.ts
@@ -282,7 +291,15 @@ src/models/InvoiceItemDto.ts
282
291
  src/models/InvoiceItemTaxDto.ts
283
292
  src/models/InvoiceSellerAccountDto.ts
284
293
  src/models/InvoiceTransactionDto.ts
294
+ src/models/LandingPageDesignSettingsDto.ts
295
+ src/models/LandingPageDesignSettingsInput.ts
285
296
  src/models/LandingPageInput.ts
297
+ src/models/LandingPageMinimalDesignSettingsDto.ts
298
+ src/models/LandingPageMinimalDesignSettingsInput.ts
299
+ src/models/LandingPageModernDesignSettingsDto.ts
300
+ src/models/LandingPageModernDesignSettingsInput.ts
301
+ src/models/LandingPageOriginalDesignSettingsDto.ts
302
+ src/models/LandingPageOriginalDesignSettingsInput.ts
286
303
  src/models/LandingPageSettingsDto.ts
287
304
  src/models/LeadBuyerConfigDto.ts
288
305
  src/models/LeadDomainDto.ts
@@ -307,6 +324,8 @@ src/models/LeaseToOwnDto.ts
307
324
  src/models/LedgerMutationAttachmentDto.ts
308
325
  src/models/LedgerMutationDto.ts
309
326
  src/models/LedgerMutationsDto.ts
327
+ src/models/LinkBankDepositToBankAccountInput.ts
328
+ src/models/LinkBankDepositToInvoiceInput.ts
310
329
  src/models/List200Response.ts
311
330
  src/models/List200Response1.ts
312
331
  src/models/List200Response2.ts
@@ -318,6 +337,7 @@ src/models/ListAccountUserDto.ts
318
337
  src/models/ListAccounts200Response.ts
319
338
  src/models/ListAuctions200Response.ts
320
339
  src/models/ListBankAccounts200Response.ts
340
+ src/models/ListBankDeposits200Response.ts
321
341
  src/models/ListBuyerNotifications200Response.ts
322
342
  src/models/ListDomains200Response.ts
323
343
  src/models/ListDomainsWithUpdatedPricing200Response.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.441
1
+ ## @randock/nameshift-api-client@0.0.443
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.441 --save
39
+ npm install @randock/nameshift-api-client@0.0.443 --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
- c0e400a4ea098ef76871c3474077d0dfaf23fd47884b20a41a4a3142d8d45a789061d214438d4002d8c1e31a2bdfb3ca
47
+ 3d7b7aacd09d6d143d688f0d44faeeaf56d1a26454ed02369f44def1a513782249d48cfc6c961d911284db3f3f10b1c2
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
13
+ import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
14
14
  export interface AdminApiAdminDeleteAuctionRequest {
15
15
  auctionId: string;
16
16
  }
@@ -125,6 +125,7 @@ export interface AdminApiGetAllOrdersRequest {
125
125
  sortBy?: Array<string>;
126
126
  filterSearchTerm?: string;
127
127
  filterStatus?: string;
128
+ filterNotLeadDrafts?: string;
128
129
  }
129
130
  export interface AdminApiGetAllOwnedDomainsRequest {
130
131
  filter?: {
@@ -158,6 +159,14 @@ export interface AdminApiGetLedgerMutationAttachmentRequest {
158
159
  export interface AdminApiGetSubscriptionDetailsRequest {
159
160
  subscriptionId: string;
160
161
  }
162
+ export interface AdminApiLinkBankDepositToBankAccountRequest {
163
+ depositId: string;
164
+ linkBankDepositToBankAccountInput: LinkBankDepositToBankAccountInput;
165
+ }
166
+ export interface AdminApiLinkBankDepositToInvoiceRequest {
167
+ depositId: string;
168
+ linkBankDepositToInvoiceInput: LinkBankDepositToInvoiceInput;
169
+ }
161
170
  export interface AdminApiListAccountsRequest {
162
171
  filter?: {
163
172
  [key: string]: string;
@@ -180,6 +189,15 @@ export interface AdminApiListBankAccountsRequest {
180
189
  filterVerificationStatus?: string;
181
190
  filterAccountId?: string;
182
191
  }
192
+ export interface AdminApiListBankDepositsRequest {
193
+ filter?: {
194
+ [key: string]: string;
195
+ };
196
+ page?: number;
197
+ limit?: number;
198
+ sortBy?: Array<string>;
199
+ filterSearchTerm?: string;
200
+ }
183
201
  export interface AdminApiListDomainLocksRequest {
184
202
  domainId: string;
185
203
  }
@@ -587,6 +605,26 @@ export declare class AdminApi extends runtime.BaseAPI {
587
605
  * Get subscription details
588
606
  */
589
607
  getSubscriptionDetails(requestParameters: AdminApiGetSubscriptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDetailsDto>;
608
+ /**
609
+ * Links a bank deposit with an account bank account. Requires super admin role.
610
+ * Link bank deposit to bank account
611
+ */
612
+ linkBankDepositToBankAccountRaw(requestParameters: AdminApiLinkBankDepositToBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
613
+ /**
614
+ * Links a bank deposit with an account bank account. Requires super admin role.
615
+ * Link bank deposit to bank account
616
+ */
617
+ linkBankDepositToBankAccount(requestParameters: AdminApiLinkBankDepositToBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
618
+ /**
619
+ * Links a bank deposit with an invoice. Requires super admin role.
620
+ * Link bank deposit to invoice
621
+ */
622
+ linkBankDepositToInvoiceRaw(requestParameters: AdminApiLinkBankDepositToInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
623
+ /**
624
+ * Links a bank deposit with an invoice. Requires super admin role.
625
+ * Link bank deposit to invoice
626
+ */
627
+ linkBankDepositToInvoice(requestParameters: AdminApiLinkBankDepositToInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
590
628
  /**
591
629
  * Lists all seller accounts.
592
630
  * List accounts
@@ -627,6 +665,16 @@ export declare class AdminApi extends runtime.BaseAPI {
627
665
  * List all bank accounts
628
666
  */
629
667
  listBankAccounts(requestParameters?: AdminApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBankAccounts200Response>;
668
+ /**
669
+ * Lists Airwallex bank deposits across all bank accounts.
670
+ * List all bank deposits
671
+ */
672
+ listBankDepositsRaw(requestParameters: AdminApiListBankDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListBankDeposits200Response>>;
673
+ /**
674
+ * Lists Airwallex bank deposits across all bank accounts.
675
+ * List all bank deposits
676
+ */
677
+ listBankDeposits(requestParameters?: AdminApiListBankDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBankDeposits200Response>;
630
678
  /**
631
679
  * Returns all active locks for the specified domain.
632
680
  * List domain locks
@@ -1498,6 +1498,9 @@ var AdminApi = /** @class */ (function (_super) {
1498
1498
  if (requestParameters['filterStatus'] != null) {
1499
1499
  queryParameters['filter[status]'] = requestParameters['filterStatus'];
1500
1500
  }
1501
+ if (requestParameters['filterNotLeadDrafts'] != null) {
1502
+ queryParameters['filter[not_lead_drafts]'] = requestParameters['filterNotLeadDrafts'];
1503
+ }
1501
1504
  headerParameters = {};
1502
1505
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1503
1506
  token = this.configuration.accessToken;
@@ -1903,6 +1906,122 @@ var AdminApi = /** @class */ (function (_super) {
1903
1906
  });
1904
1907
  });
1905
1908
  };
1909
+ /**
1910
+ * Links a bank deposit with an account bank account. Requires super admin role.
1911
+ * Link bank deposit to bank account
1912
+ */
1913
+ AdminApi.prototype.linkBankDepositToBankAccountRaw = function (requestParameters, initOverrides) {
1914
+ return __awaiter(this, void 0, void 0, function () {
1915
+ var queryParameters, headerParameters, token, tokenString, response;
1916
+ return __generator(this, function (_a) {
1917
+ switch (_a.label) {
1918
+ case 0:
1919
+ if (requestParameters['depositId'] == null) {
1920
+ throw new runtime.RequiredError('depositId', 'Required parameter "depositId" was null or undefined when calling linkBankDepositToBankAccount().');
1921
+ }
1922
+ if (requestParameters['linkBankDepositToBankAccountInput'] == null) {
1923
+ throw new runtime.RequiredError('linkBankDepositToBankAccountInput', 'Required parameter "linkBankDepositToBankAccountInput" was null or undefined when calling linkBankDepositToBankAccount().');
1924
+ }
1925
+ queryParameters = {};
1926
+ headerParameters = {};
1927
+ headerParameters['Content-Type'] = 'application/json';
1928
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1929
+ token = this.configuration.accessToken;
1930
+ return [4 /*yield*/, token("bearer", [])];
1931
+ case 1:
1932
+ tokenString = _a.sent();
1933
+ if (tokenString) {
1934
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1935
+ }
1936
+ _a.label = 2;
1937
+ case 2: return [4 /*yield*/, this.request({
1938
+ path: "/admin/bank-deposits/{depositId}/link-bank-account".replace("{".concat("depositId", "}"), encodeURIComponent(String(requestParameters['depositId']))),
1939
+ method: 'POST',
1940
+ headers: headerParameters,
1941
+ query: queryParameters,
1942
+ body: (0, index_1.LinkBankDepositToBankAccountInputToJSON)(requestParameters['linkBankDepositToBankAccountInput']),
1943
+ }, initOverrides)];
1944
+ case 3:
1945
+ response = _a.sent();
1946
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
1947
+ }
1948
+ });
1949
+ });
1950
+ };
1951
+ /**
1952
+ * Links a bank deposit with an account bank account. Requires super admin role.
1953
+ * Link bank deposit to bank account
1954
+ */
1955
+ AdminApi.prototype.linkBankDepositToBankAccount = function (requestParameters, initOverrides) {
1956
+ return __awaiter(this, void 0, void 0, function () {
1957
+ return __generator(this, function (_a) {
1958
+ switch (_a.label) {
1959
+ case 0: return [4 /*yield*/, this.linkBankDepositToBankAccountRaw(requestParameters, initOverrides)];
1960
+ case 1:
1961
+ _a.sent();
1962
+ return [2 /*return*/];
1963
+ }
1964
+ });
1965
+ });
1966
+ };
1967
+ /**
1968
+ * Links a bank deposit with an invoice. Requires super admin role.
1969
+ * Link bank deposit to invoice
1970
+ */
1971
+ AdminApi.prototype.linkBankDepositToInvoiceRaw = function (requestParameters, initOverrides) {
1972
+ return __awaiter(this, void 0, void 0, function () {
1973
+ var queryParameters, headerParameters, token, tokenString, response;
1974
+ return __generator(this, function (_a) {
1975
+ switch (_a.label) {
1976
+ case 0:
1977
+ if (requestParameters['depositId'] == null) {
1978
+ throw new runtime.RequiredError('depositId', 'Required parameter "depositId" was null or undefined when calling linkBankDepositToInvoice().');
1979
+ }
1980
+ if (requestParameters['linkBankDepositToInvoiceInput'] == null) {
1981
+ throw new runtime.RequiredError('linkBankDepositToInvoiceInput', 'Required parameter "linkBankDepositToInvoiceInput" was null or undefined when calling linkBankDepositToInvoice().');
1982
+ }
1983
+ queryParameters = {};
1984
+ headerParameters = {};
1985
+ headerParameters['Content-Type'] = 'application/json';
1986
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1987
+ token = this.configuration.accessToken;
1988
+ return [4 /*yield*/, token("bearer", [])];
1989
+ case 1:
1990
+ tokenString = _a.sent();
1991
+ if (tokenString) {
1992
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1993
+ }
1994
+ _a.label = 2;
1995
+ case 2: return [4 /*yield*/, this.request({
1996
+ path: "/admin/bank-deposits/{depositId}/link-invoice".replace("{".concat("depositId", "}"), encodeURIComponent(String(requestParameters['depositId']))),
1997
+ method: 'POST',
1998
+ headers: headerParameters,
1999
+ query: queryParameters,
2000
+ body: (0, index_1.LinkBankDepositToInvoiceInputToJSON)(requestParameters['linkBankDepositToInvoiceInput']),
2001
+ }, initOverrides)];
2002
+ case 3:
2003
+ response = _a.sent();
2004
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
2005
+ }
2006
+ });
2007
+ });
2008
+ };
2009
+ /**
2010
+ * Links a bank deposit with an invoice. Requires super admin role.
2011
+ * Link bank deposit to invoice
2012
+ */
2013
+ AdminApi.prototype.linkBankDepositToInvoice = function (requestParameters, initOverrides) {
2014
+ return __awaiter(this, void 0, void 0, function () {
2015
+ return __generator(this, function (_a) {
2016
+ switch (_a.label) {
2017
+ case 0: return [4 /*yield*/, this.linkBankDepositToInvoiceRaw(requestParameters, initOverrides)];
2018
+ case 1:
2019
+ _a.sent();
2020
+ return [2 /*return*/];
2021
+ }
2022
+ });
2023
+ });
2024
+ };
1906
2025
  /**
1907
2026
  * Lists all seller accounts.
1908
2027
  * List accounts
@@ -2150,6 +2269,74 @@ var AdminApi = /** @class */ (function (_super) {
2150
2269
  });
2151
2270
  });
2152
2271
  };
2272
+ /**
2273
+ * Lists Airwallex bank deposits across all bank accounts.
2274
+ * List all bank deposits
2275
+ */
2276
+ AdminApi.prototype.listBankDepositsRaw = function (requestParameters, initOverrides) {
2277
+ return __awaiter(this, void 0, void 0, function () {
2278
+ var queryParameters, headerParameters, token, tokenString, response;
2279
+ return __generator(this, function (_a) {
2280
+ switch (_a.label) {
2281
+ case 0:
2282
+ queryParameters = {};
2283
+ if (requestParameters['filter'] != null) {
2284
+ queryParameters['filter'] = requestParameters['filter'];
2285
+ }
2286
+ if (requestParameters['page'] != null) {
2287
+ queryParameters['page'] = requestParameters['page'];
2288
+ }
2289
+ if (requestParameters['limit'] != null) {
2290
+ queryParameters['limit'] = requestParameters['limit'];
2291
+ }
2292
+ if (requestParameters['sortBy'] != null) {
2293
+ queryParameters['sortBy'] = requestParameters['sortBy'];
2294
+ }
2295
+ if (requestParameters['filterSearchTerm'] != null) {
2296
+ queryParameters['filter[search_term]'] = requestParameters['filterSearchTerm'];
2297
+ }
2298
+ headerParameters = {};
2299
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2300
+ token = this.configuration.accessToken;
2301
+ return [4 /*yield*/, token("bearer", [])];
2302
+ case 1:
2303
+ tokenString = _a.sent();
2304
+ if (tokenString) {
2305
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
2306
+ }
2307
+ _a.label = 2;
2308
+ case 2: return [4 /*yield*/, this.request({
2309
+ path: "/admin/bank-deposits",
2310
+ method: 'GET',
2311
+ headers: headerParameters,
2312
+ query: queryParameters,
2313
+ }, initOverrides)];
2314
+ case 3:
2315
+ response = _a.sent();
2316
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListBankDeposits200ResponseFromJSON)(jsonValue); })];
2317
+ }
2318
+ });
2319
+ });
2320
+ };
2321
+ /**
2322
+ * Lists Airwallex bank deposits across all bank accounts.
2323
+ * List all bank deposits
2324
+ */
2325
+ AdminApi.prototype.listBankDeposits = function () {
2326
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
2327
+ var response;
2328
+ if (requestParameters === void 0) { requestParameters = {}; }
2329
+ return __generator(this, function (_a) {
2330
+ switch (_a.label) {
2331
+ case 0: return [4 /*yield*/, this.listBankDepositsRaw(requestParameters, initOverrides)];
2332
+ case 1:
2333
+ response = _a.sent();
2334
+ return [4 /*yield*/, response.value()];
2335
+ case 2: return [2 /*return*/, _a.sent()];
2336
+ }
2337
+ });
2338
+ });
2339
+ };
2153
2340
  /**
2154
2341
  * Returns all active locks for the specified domain.
2155
2342
  * List domain locks
@@ -0,0 +1,39 @@
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 { AdminBankDepositAccountDto } from './AdminBankDepositAccountDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AdminBankDepositAccountBankAccountDto
17
+ */
18
+ export interface AdminBankDepositAccountBankAccountDto {
19
+ /**
20
+ * Bank account ID.
21
+ * @type {string}
22
+ * @memberof AdminBankDepositAccountBankAccountDto
23
+ */
24
+ accountBankAccountId: string;
25
+ /**
26
+ * Seller account linked to the bank account.
27
+ * @type {AdminBankDepositAccountDto}
28
+ * @memberof AdminBankDepositAccountBankAccountDto
29
+ */
30
+ account: AdminBankDepositAccountDto;
31
+ }
32
+ /**
33
+ * Check if a given object implements the AdminBankDepositAccountBankAccountDto interface.
34
+ */
35
+ export declare function instanceOfAdminBankDepositAccountBankAccountDto(value: object): value is AdminBankDepositAccountBankAccountDto;
36
+ export declare function AdminBankDepositAccountBankAccountDtoFromJSON(json: any): AdminBankDepositAccountBankAccountDto;
37
+ export declare function AdminBankDepositAccountBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankDepositAccountBankAccountDto;
38
+ export declare function AdminBankDepositAccountBankAccountDtoToJSON(json: any): AdminBankDepositAccountBankAccountDto;
39
+ export declare function AdminBankDepositAccountBankAccountDtoToJSONTyped(value?: AdminBankDepositAccountBankAccountDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfAdminBankDepositAccountBankAccountDto = instanceOfAdminBankDepositAccountBankAccountDto;
17
+ exports.AdminBankDepositAccountBankAccountDtoFromJSON = AdminBankDepositAccountBankAccountDtoFromJSON;
18
+ exports.AdminBankDepositAccountBankAccountDtoFromJSONTyped = AdminBankDepositAccountBankAccountDtoFromJSONTyped;
19
+ exports.AdminBankDepositAccountBankAccountDtoToJSON = AdminBankDepositAccountBankAccountDtoToJSON;
20
+ exports.AdminBankDepositAccountBankAccountDtoToJSONTyped = AdminBankDepositAccountBankAccountDtoToJSONTyped;
21
+ var AdminBankDepositAccountDto_1 = require("./AdminBankDepositAccountDto");
22
+ /**
23
+ * Check if a given object implements the AdminBankDepositAccountBankAccountDto interface.
24
+ */
25
+ function instanceOfAdminBankDepositAccountBankAccountDto(value) {
26
+ if (!('accountBankAccountId' in value) || value['accountBankAccountId'] === undefined)
27
+ return false;
28
+ if (!('account' in value) || value['account'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function AdminBankDepositAccountBankAccountDtoFromJSON(json) {
33
+ return AdminBankDepositAccountBankAccountDtoFromJSONTyped(json, false);
34
+ }
35
+ function AdminBankDepositAccountBankAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'accountBankAccountId': json['accountBankAccountId'],
41
+ 'account': (0, AdminBankDepositAccountDto_1.AdminBankDepositAccountDtoFromJSON)(json['account']),
42
+ };
43
+ }
44
+ function AdminBankDepositAccountBankAccountDtoToJSON(json) {
45
+ return AdminBankDepositAccountBankAccountDtoToJSONTyped(json, false);
46
+ }
47
+ function AdminBankDepositAccountBankAccountDtoToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'accountBankAccountId': value['accountBankAccountId'],
54
+ 'account': (0, AdminBankDepositAccountDto_1.AdminBankDepositAccountDtoToJSON)(value['account']),
55
+ };
56
+ }
@@ -0,0 +1,38 @@
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 AdminBankDepositAccountDto
16
+ */
17
+ export interface AdminBankDepositAccountDto {
18
+ /**
19
+ * Account ID.
20
+ * @type {string}
21
+ * @memberof AdminBankDepositAccountDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * Account identifier.
26
+ * @type {object}
27
+ * @memberof AdminBankDepositAccountDto
28
+ */
29
+ identifier: object;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AdminBankDepositAccountDto interface.
33
+ */
34
+ export declare function instanceOfAdminBankDepositAccountDto(value: object): value is AdminBankDepositAccountDto;
35
+ export declare function AdminBankDepositAccountDtoFromJSON(json: any): AdminBankDepositAccountDto;
36
+ export declare function AdminBankDepositAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankDepositAccountDto;
37
+ export declare function AdminBankDepositAccountDtoToJSON(json: any): AdminBankDepositAccountDto;
38
+ export declare function AdminBankDepositAccountDtoToJSONTyped(value?: AdminBankDepositAccountDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfAdminBankDepositAccountDto = instanceOfAdminBankDepositAccountDto;
17
+ exports.AdminBankDepositAccountDtoFromJSON = AdminBankDepositAccountDtoFromJSON;
18
+ exports.AdminBankDepositAccountDtoFromJSONTyped = AdminBankDepositAccountDtoFromJSONTyped;
19
+ exports.AdminBankDepositAccountDtoToJSON = AdminBankDepositAccountDtoToJSON;
20
+ exports.AdminBankDepositAccountDtoToJSONTyped = AdminBankDepositAccountDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdminBankDepositAccountDto interface.
23
+ */
24
+ function instanceOfAdminBankDepositAccountDto(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('identifier' in value) || value['identifier'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AdminBankDepositAccountDtoFromJSON(json) {
32
+ return AdminBankDepositAccountDtoFromJSONTyped(json, false);
33
+ }
34
+ function AdminBankDepositAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'identifier': json['identifier'],
41
+ };
42
+ }
43
+ function AdminBankDepositAccountDtoToJSON(json) {
44
+ return AdminBankDepositAccountDtoToJSONTyped(json, false);
45
+ }
46
+ function AdminBankDepositAccountDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'id': value['id'],
53
+ 'identifier': value['identifier'],
54
+ };
55
+ }
@@ -0,0 +1,76 @@
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 { AdminBankDepositInvoiceTransactionDto } from './AdminBankDepositInvoiceTransactionDto';
13
+ import type { AdminBankDepositAccountBankAccountDto } from './AdminBankDepositAccountBankAccountDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AdminBankDepositDto
18
+ */
19
+ export interface AdminBankDepositDto {
20
+ /**
21
+ * Bank deposit ID.
22
+ * @type {string}
23
+ * @memberof AdminBankDepositDto
24
+ */
25
+ id: string;
26
+ /**
27
+ * Deposit creation date.
28
+ * @type {Date}
29
+ * @memberof AdminBankDepositDto
30
+ */
31
+ createdAt: Date;
32
+ /**
33
+ * External transaction ID from the payment provider.
34
+ * @type {string}
35
+ * @memberof AdminBankDepositDto
36
+ */
37
+ externalTransactionId: string;
38
+ /**
39
+ * Deposit has been processed.
40
+ * @type {boolean}
41
+ * @memberof AdminBankDepositDto
42
+ */
43
+ processed: boolean;
44
+ /**
45
+ * Associated bank account, if any.
46
+ * @type {AdminBankDepositAccountBankAccountDto}
47
+ * @memberof AdminBankDepositDto
48
+ */
49
+ accountBankAccount: AdminBankDepositAccountBankAccountDto | null;
50
+ /**
51
+ * Associated invoice transaction ID, if any.
52
+ * @type {string}
53
+ * @memberof AdminBankDepositDto
54
+ */
55
+ invoiceTransactionId: string | null;
56
+ /**
57
+ * Linked invoice transaction (if available).
58
+ * @type {AdminBankDepositInvoiceTransactionDto}
59
+ * @memberof AdminBankDepositDto
60
+ */
61
+ invoiceTransaction: AdminBankDepositInvoiceTransactionDto | null;
62
+ /**
63
+ * Raw deposit payload from the payment provider.
64
+ * @type {object}
65
+ * @memberof AdminBankDepositDto
66
+ */
67
+ raw: object;
68
+ }
69
+ /**
70
+ * Check if a given object implements the AdminBankDepositDto interface.
71
+ */
72
+ export declare function instanceOfAdminBankDepositDto(value: object): value is AdminBankDepositDto;
73
+ export declare function AdminBankDepositDtoFromJSON(json: any): AdminBankDepositDto;
74
+ export declare function AdminBankDepositDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankDepositDto;
75
+ export declare function AdminBankDepositDtoToJSON(json: any): AdminBankDepositDto;
76
+ export declare function AdminBankDepositDtoToJSONTyped(value?: AdminBankDepositDto | null, ignoreDiscriminator?: boolean): any;