@randock/nameshift-api-client 0.0.440 → 0.0.442

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 (68) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +1 -0
  4. package/dist/apis/AccountsApi.js +2 -1
  5. package/dist/apis/AdminApi.d.ts +49 -1
  6. package/dist/apis/AdminApi.js +187 -0
  7. package/dist/models/AccountPaymentMethodProfileDto.d.ts +1 -0
  8. package/dist/models/AccountPaymentMethodProfileDto.js +2 -1
  9. package/dist/models/AdminBankDepositAccountBankAccountDto.d.ts +39 -0
  10. package/dist/models/AdminBankDepositAccountBankAccountDto.js +56 -0
  11. package/dist/models/AdminBankDepositAccountDto.d.ts +38 -0
  12. package/dist/models/AdminBankDepositAccountDto.js +55 -0
  13. package/dist/models/AdminBankDepositDto.d.ts +76 -0
  14. package/dist/models/AdminBankDepositDto.js +81 -0
  15. package/dist/models/AdminBankDepositInvoiceDto.d.ts +54 -0
  16. package/dist/models/AdminBankDepositInvoiceDto.js +69 -0
  17. package/dist/models/AdminBankDepositInvoiceTransactionDto.d.ts +39 -0
  18. package/dist/models/AdminBankDepositInvoiceTransactionDto.js +56 -0
  19. package/dist/models/AdminVerificationDepositDto.d.ts +18 -0
  20. package/dist/models/AdminVerificationDepositDto.js +12 -0
  21. package/dist/models/AirwallexBankAccountDetailsDto.d.ts +6 -0
  22. package/dist/models/AirwallexBankAccountDetailsDto.js +2 -0
  23. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  24. package/dist/models/FeatureFlagListItemDto.js +2 -1
  25. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  26. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  27. package/dist/models/InvoiceDtoTransaction.d.ts +8 -0
  28. package/dist/models/InvoiceDtoTransaction.js +7 -1
  29. package/dist/models/InvoiceTransactionDto.d.ts +8 -0
  30. package/dist/models/InvoiceTransactionDto.js +7 -1
  31. package/dist/models/LinkBankDepositToBankAccountInput.d.ts +32 -0
  32. package/dist/models/LinkBankDepositToBankAccountInput.js +51 -0
  33. package/dist/models/LinkBankDepositToInvoiceInput.d.ts +32 -0
  34. package/dist/models/LinkBankDepositToInvoiceInput.js +51 -0
  35. package/dist/models/ListBankDeposits200Response.d.ts +47 -0
  36. package/dist/models/ListBankDeposits200Response.js +62 -0
  37. package/dist/models/OrderListItemDto.d.ts +1 -1
  38. package/dist/models/OrderListItemDtoTransaction.d.ts +99 -2
  39. package/dist/models/OrderListItemDtoTransaction.js +96 -5
  40. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  41. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  42. package/dist/models/SubscriptionListItemDtoTransaction.d.ts +1 -0
  43. package/dist/models/SubscriptionListItemDtoTransaction.js +2 -1
  44. package/dist/models/index.d.ts +8 -0
  45. package/dist/models/index.js +8 -0
  46. package/package.json +1 -1
  47. package/src/apis/AccountsApi.ts +2 -1
  48. package/src/apis/AdminApi.ts +192 -0
  49. package/src/models/AccountPaymentMethodProfileDto.ts +2 -1
  50. package/src/models/AdminBankDepositAccountBankAccountDto.ts +83 -0
  51. package/src/models/AdminBankDepositAccountDto.ts +75 -0
  52. package/src/models/AdminBankDepositDto.ts +144 -0
  53. package/src/models/AdminBankDepositInvoiceDto.ts +97 -0
  54. package/src/models/AdminBankDepositInvoiceTransactionDto.ts +83 -0
  55. package/src/models/AdminVerificationDepositDto.ts +27 -0
  56. package/src/models/AirwallexBankAccountDetailsDto.ts +8 -0
  57. package/src/models/FeatureFlagListItemDto.ts +2 -1
  58. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  59. package/src/models/InvoiceDtoTransaction.ts +19 -1
  60. package/src/models/InvoiceTransactionDto.ts +19 -1
  61. package/src/models/LinkBankDepositToBankAccountInput.ts +66 -0
  62. package/src/models/LinkBankDepositToInvoiceInput.ts +66 -0
  63. package/src/models/ListBankDeposits200Response.ts +106 -0
  64. package/src/models/OrderListItemDto.ts +1 -1
  65. package/src/models/OrderListItemDtoTransaction.ts +111 -6
  66. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  67. package/src/models/SubscriptionListItemDtoTransaction.ts +2 -1
  68. package/src/models/index.ts +8 -0
@@ -46,8 +46,11 @@ import type {
46
46
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
47
47
  LeadMessageDto,
48
48
  LedgerMutationsDto,
49
+ LinkBankDepositToBankAccountInput,
50
+ LinkBankDepositToInvoiceInput,
49
51
  ListAccounts200Response,
50
52
  ListBankAccounts200Response,
53
+ ListBankDeposits200Response,
51
54
  ListDomains200Response,
52
55
  ListLeads200Response,
53
56
  NotFoundException,
@@ -124,10 +127,16 @@ import {
124
127
  LeadMessageDtoToJSON,
125
128
  LedgerMutationsDtoFromJSON,
126
129
  LedgerMutationsDtoToJSON,
130
+ LinkBankDepositToBankAccountInputFromJSON,
131
+ LinkBankDepositToBankAccountInputToJSON,
132
+ LinkBankDepositToInvoiceInputFromJSON,
133
+ LinkBankDepositToInvoiceInputToJSON,
127
134
  ListAccounts200ResponseFromJSON,
128
135
  ListAccounts200ResponseToJSON,
129
136
  ListBankAccounts200ResponseFromJSON,
130
137
  ListBankAccounts200ResponseToJSON,
138
+ ListBankDeposits200ResponseFromJSON,
139
+ ListBankDeposits200ResponseToJSON,
131
140
  ListDomains200ResponseFromJSON,
132
141
  ListDomains200ResponseToJSON,
133
142
  ListLeads200ResponseFromJSON,
@@ -282,6 +291,7 @@ export interface AdminApiGetAllOrdersRequest {
282
291
  sortBy?: Array<string>;
283
292
  filterSearchTerm?: string;
284
293
  filterStatus?: string;
294
+ filterNotLeadDrafts?: string;
285
295
  }
286
296
 
287
297
  export interface AdminApiGetAllOwnedDomainsRequest {
@@ -318,6 +328,16 @@ export interface AdminApiGetSubscriptionDetailsRequest {
318
328
  subscriptionId: string;
319
329
  }
320
330
 
331
+ export interface AdminApiLinkBankDepositToBankAccountRequest {
332
+ depositId: string;
333
+ linkBankDepositToBankAccountInput: LinkBankDepositToBankAccountInput;
334
+ }
335
+
336
+ export interface AdminApiLinkBankDepositToInvoiceRequest {
337
+ depositId: string;
338
+ linkBankDepositToInvoiceInput: LinkBankDepositToInvoiceInput;
339
+ }
340
+
321
341
  export interface AdminApiListAccountsRequest {
322
342
  filter?: { [key: string]: string; };
323
343
  page?: number;
@@ -339,6 +359,14 @@ export interface AdminApiListBankAccountsRequest {
339
359
  filterAccountId?: string;
340
360
  }
341
361
 
362
+ export interface AdminApiListBankDepositsRequest {
363
+ filter?: { [key: string]: string; };
364
+ page?: number;
365
+ limit?: number;
366
+ sortBy?: Array<string>;
367
+ filterSearchTerm?: string;
368
+ }
369
+
342
370
  export interface AdminApiListDomainLocksRequest {
343
371
  domainId: string;
344
372
  }
@@ -1613,6 +1641,10 @@ export class AdminApi extends runtime.BaseAPI {
1613
1641
  queryParameters['filter[status]'] = requestParameters['filterStatus'];
1614
1642
  }
1615
1643
 
1644
+ if (requestParameters['filterNotLeadDrafts'] != null) {
1645
+ queryParameters['filter[not_lead_drafts]'] = requestParameters['filterNotLeadDrafts'];
1646
+ }
1647
+
1616
1648
  const headerParameters: runtime.HTTPHeaders = {};
1617
1649
 
1618
1650
  if (this.configuration && this.configuration.accessToken) {
@@ -1931,6 +1963,110 @@ export class AdminApi extends runtime.BaseAPI {
1931
1963
  return await response.value();
1932
1964
  }
1933
1965
 
1966
+ /**
1967
+ * Links a bank deposit with an account bank account. Requires super admin role.
1968
+ * Link bank deposit to bank account
1969
+ */
1970
+ async linkBankDepositToBankAccountRaw(requestParameters: AdminApiLinkBankDepositToBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1971
+ if (requestParameters['depositId'] == null) {
1972
+ throw new runtime.RequiredError(
1973
+ 'depositId',
1974
+ 'Required parameter "depositId" was null or undefined when calling linkBankDepositToBankAccount().'
1975
+ );
1976
+ }
1977
+
1978
+ if (requestParameters['linkBankDepositToBankAccountInput'] == null) {
1979
+ throw new runtime.RequiredError(
1980
+ 'linkBankDepositToBankAccountInput',
1981
+ 'Required parameter "linkBankDepositToBankAccountInput" was null or undefined when calling linkBankDepositToBankAccount().'
1982
+ );
1983
+ }
1984
+
1985
+ const queryParameters: any = {};
1986
+
1987
+ const headerParameters: runtime.HTTPHeaders = {};
1988
+
1989
+ headerParameters['Content-Type'] = 'application/json';
1990
+
1991
+ if (this.configuration && this.configuration.accessToken) {
1992
+ const token = this.configuration.accessToken;
1993
+ const tokenString = await token("bearer", []);
1994
+
1995
+ if (tokenString) {
1996
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1997
+ }
1998
+ }
1999
+ const response = await this.request({
2000
+ path: `/admin/bank-deposits/{depositId}/link-bank-account`.replace(`{${"depositId"}}`, encodeURIComponent(String(requestParameters['depositId']))),
2001
+ method: 'POST',
2002
+ headers: headerParameters,
2003
+ query: queryParameters,
2004
+ body: LinkBankDepositToBankAccountInputToJSON(requestParameters['linkBankDepositToBankAccountInput']),
2005
+ }, initOverrides);
2006
+
2007
+ return new runtime.VoidApiResponse(response);
2008
+ }
2009
+
2010
+ /**
2011
+ * Links a bank deposit with an account bank account. Requires super admin role.
2012
+ * Link bank deposit to bank account
2013
+ */
2014
+ async linkBankDepositToBankAccount(requestParameters: AdminApiLinkBankDepositToBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2015
+ await this.linkBankDepositToBankAccountRaw(requestParameters, initOverrides);
2016
+ }
2017
+
2018
+ /**
2019
+ * Links a bank deposit with an invoice. Requires super admin role.
2020
+ * Link bank deposit to invoice
2021
+ */
2022
+ async linkBankDepositToInvoiceRaw(requestParameters: AdminApiLinkBankDepositToInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2023
+ if (requestParameters['depositId'] == null) {
2024
+ throw new runtime.RequiredError(
2025
+ 'depositId',
2026
+ 'Required parameter "depositId" was null or undefined when calling linkBankDepositToInvoice().'
2027
+ );
2028
+ }
2029
+
2030
+ if (requestParameters['linkBankDepositToInvoiceInput'] == null) {
2031
+ throw new runtime.RequiredError(
2032
+ 'linkBankDepositToInvoiceInput',
2033
+ 'Required parameter "linkBankDepositToInvoiceInput" was null or undefined when calling linkBankDepositToInvoice().'
2034
+ );
2035
+ }
2036
+
2037
+ const queryParameters: any = {};
2038
+
2039
+ const headerParameters: runtime.HTTPHeaders = {};
2040
+
2041
+ headerParameters['Content-Type'] = 'application/json';
2042
+
2043
+ if (this.configuration && this.configuration.accessToken) {
2044
+ const token = this.configuration.accessToken;
2045
+ const tokenString = await token("bearer", []);
2046
+
2047
+ if (tokenString) {
2048
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2049
+ }
2050
+ }
2051
+ const response = await this.request({
2052
+ path: `/admin/bank-deposits/{depositId}/link-invoice`.replace(`{${"depositId"}}`, encodeURIComponent(String(requestParameters['depositId']))),
2053
+ method: 'POST',
2054
+ headers: headerParameters,
2055
+ query: queryParameters,
2056
+ body: LinkBankDepositToInvoiceInputToJSON(requestParameters['linkBankDepositToInvoiceInput']),
2057
+ }, initOverrides);
2058
+
2059
+ return new runtime.VoidApiResponse(response);
2060
+ }
2061
+
2062
+ /**
2063
+ * Links a bank deposit with an invoice. Requires super admin role.
2064
+ * Link bank deposit to invoice
2065
+ */
2066
+ async linkBankDepositToInvoice(requestParameters: AdminApiLinkBankDepositToInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2067
+ await this.linkBankDepositToInvoiceRaw(requestParameters, initOverrides);
2068
+ }
2069
+
1934
2070
  /**
1935
2071
  * Lists all seller accounts.
1936
2072
  * List accounts
@@ -2123,6 +2259,62 @@ export class AdminApi extends runtime.BaseAPI {
2123
2259
  return await response.value();
2124
2260
  }
2125
2261
 
2262
+ /**
2263
+ * Lists Airwallex bank deposits across all bank accounts.
2264
+ * List all bank deposits
2265
+ */
2266
+ async listBankDepositsRaw(requestParameters: AdminApiListBankDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListBankDeposits200Response>> {
2267
+ const queryParameters: any = {};
2268
+
2269
+ if (requestParameters['filter'] != null) {
2270
+ queryParameters['filter'] = requestParameters['filter'];
2271
+ }
2272
+
2273
+ if (requestParameters['page'] != null) {
2274
+ queryParameters['page'] = requestParameters['page'];
2275
+ }
2276
+
2277
+ if (requestParameters['limit'] != null) {
2278
+ queryParameters['limit'] = requestParameters['limit'];
2279
+ }
2280
+
2281
+ if (requestParameters['sortBy'] != null) {
2282
+ queryParameters['sortBy'] = requestParameters['sortBy'];
2283
+ }
2284
+
2285
+ if (requestParameters['filterSearchTerm'] != null) {
2286
+ queryParameters['filter[search_term]'] = requestParameters['filterSearchTerm'];
2287
+ }
2288
+
2289
+ const headerParameters: runtime.HTTPHeaders = {};
2290
+
2291
+ if (this.configuration && this.configuration.accessToken) {
2292
+ const token = this.configuration.accessToken;
2293
+ const tokenString = await token("bearer", []);
2294
+
2295
+ if (tokenString) {
2296
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2297
+ }
2298
+ }
2299
+ const response = await this.request({
2300
+ path: `/admin/bank-deposits`,
2301
+ method: 'GET',
2302
+ headers: headerParameters,
2303
+ query: queryParameters,
2304
+ }, initOverrides);
2305
+
2306
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListBankDeposits200ResponseFromJSON(jsonValue));
2307
+ }
2308
+
2309
+ /**
2310
+ * Lists Airwallex bank deposits across all bank accounts.
2311
+ * List all bank deposits
2312
+ */
2313
+ async listBankDeposits(requestParameters: AdminApiListBankDepositsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBankDeposits200Response> {
2314
+ const response = await this.listBankDepositsRaw(requestParameters, initOverrides);
2315
+ return await response.value();
2316
+ }
2317
+
2126
2318
  /**
2127
2319
  * Returns all active locks for the specified domain.
2128
2320
  * List domain locks
@@ -72,7 +72,8 @@ export interface AccountPaymentMethodProfileDto {
72
72
  export const AccountPaymentMethodProfileDtoGatewayEnum = {
73
73
  STRIPE: 'stripe',
74
74
  MOLLIE: 'mollie',
75
- NICKY: 'nicky'
75
+ NICKY: 'nicky',
76
+ AIRWALLEX: 'airwallex'
76
77
  } as const;
77
78
  export type AccountPaymentMethodProfileDtoGatewayEnum = typeof AccountPaymentMethodProfileDtoGatewayEnum[keyof typeof AccountPaymentMethodProfileDtoGatewayEnum];
78
79
 
@@ -0,0 +1,83 @@
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 { AdminBankDepositAccountDto } from './AdminBankDepositAccountDto';
17
+ import {
18
+ AdminBankDepositAccountDtoFromJSON,
19
+ AdminBankDepositAccountDtoFromJSONTyped,
20
+ AdminBankDepositAccountDtoToJSON,
21
+ AdminBankDepositAccountDtoToJSONTyped,
22
+ } from './AdminBankDepositAccountDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AdminBankDepositAccountBankAccountDto
28
+ */
29
+ export interface AdminBankDepositAccountBankAccountDto {
30
+ /**
31
+ * Bank account ID.
32
+ * @type {string}
33
+ * @memberof AdminBankDepositAccountBankAccountDto
34
+ */
35
+ accountBankAccountId: string;
36
+ /**
37
+ * Seller account linked to the bank account.
38
+ * @type {AdminBankDepositAccountDto}
39
+ * @memberof AdminBankDepositAccountBankAccountDto
40
+ */
41
+ account: AdminBankDepositAccountDto;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the AdminBankDepositAccountBankAccountDto interface.
46
+ */
47
+ export function instanceOfAdminBankDepositAccountBankAccountDto(value: object): value is AdminBankDepositAccountBankAccountDto {
48
+ if (!('accountBankAccountId' in value) || value['accountBankAccountId'] === undefined) return false;
49
+ if (!('account' in value) || value['account'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function AdminBankDepositAccountBankAccountDtoFromJSON(json: any): AdminBankDepositAccountBankAccountDto {
54
+ return AdminBankDepositAccountBankAccountDtoFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function AdminBankDepositAccountBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankDepositAccountBankAccountDto {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'accountBankAccountId': json['accountBankAccountId'],
64
+ 'account': AdminBankDepositAccountDtoFromJSON(json['account']),
65
+ };
66
+ }
67
+
68
+ export function AdminBankDepositAccountBankAccountDtoToJSON(json: any): AdminBankDepositAccountBankAccountDto {
69
+ return AdminBankDepositAccountBankAccountDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function AdminBankDepositAccountBankAccountDtoToJSONTyped(value?: AdminBankDepositAccountBankAccountDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'accountBankAccountId': value['accountBankAccountId'],
80
+ 'account': AdminBankDepositAccountDtoToJSON(value['account']),
81
+ };
82
+ }
83
+
@@ -0,0 +1,75 @@
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 AdminBankDepositAccountDto
20
+ */
21
+ export interface AdminBankDepositAccountDto {
22
+ /**
23
+ * Account ID.
24
+ * @type {string}
25
+ * @memberof AdminBankDepositAccountDto
26
+ */
27
+ id: string;
28
+ /**
29
+ * Account identifier.
30
+ * @type {object}
31
+ * @memberof AdminBankDepositAccountDto
32
+ */
33
+ identifier: object;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the AdminBankDepositAccountDto interface.
38
+ */
39
+ export function instanceOfAdminBankDepositAccountDto(value: object): value is AdminBankDepositAccountDto {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function AdminBankDepositAccountDtoFromJSON(json: any): AdminBankDepositAccountDto {
46
+ return AdminBankDepositAccountDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AdminBankDepositAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankDepositAccountDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'identifier': json['identifier'],
57
+ };
58
+ }
59
+
60
+ export function AdminBankDepositAccountDtoToJSON(json: any): AdminBankDepositAccountDto {
61
+ return AdminBankDepositAccountDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function AdminBankDepositAccountDtoToJSONTyped(value?: AdminBankDepositAccountDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'identifier': value['identifier'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,144 @@
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 { AdminBankDepositInvoiceTransactionDto } from './AdminBankDepositInvoiceTransactionDto';
17
+ import {
18
+ AdminBankDepositInvoiceTransactionDtoFromJSON,
19
+ AdminBankDepositInvoiceTransactionDtoFromJSONTyped,
20
+ AdminBankDepositInvoiceTransactionDtoToJSON,
21
+ AdminBankDepositInvoiceTransactionDtoToJSONTyped,
22
+ } from './AdminBankDepositInvoiceTransactionDto';
23
+ import type { AdminBankDepositAccountBankAccountDto } from './AdminBankDepositAccountBankAccountDto';
24
+ import {
25
+ AdminBankDepositAccountBankAccountDtoFromJSON,
26
+ AdminBankDepositAccountBankAccountDtoFromJSONTyped,
27
+ AdminBankDepositAccountBankAccountDtoToJSON,
28
+ AdminBankDepositAccountBankAccountDtoToJSONTyped,
29
+ } from './AdminBankDepositAccountBankAccountDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface AdminBankDepositDto
35
+ */
36
+ export interface AdminBankDepositDto {
37
+ /**
38
+ * Bank deposit ID.
39
+ * @type {string}
40
+ * @memberof AdminBankDepositDto
41
+ */
42
+ id: string;
43
+ /**
44
+ * Deposit creation date.
45
+ * @type {Date}
46
+ * @memberof AdminBankDepositDto
47
+ */
48
+ createdAt: Date;
49
+ /**
50
+ * External transaction ID from the payment provider.
51
+ * @type {string}
52
+ * @memberof AdminBankDepositDto
53
+ */
54
+ externalTransactionId: string;
55
+ /**
56
+ * Deposit has been processed.
57
+ * @type {boolean}
58
+ * @memberof AdminBankDepositDto
59
+ */
60
+ processed: boolean;
61
+ /**
62
+ * Associated bank account, if any.
63
+ * @type {AdminBankDepositAccountBankAccountDto}
64
+ * @memberof AdminBankDepositDto
65
+ */
66
+ accountBankAccount: AdminBankDepositAccountBankAccountDto | null;
67
+ /**
68
+ * Associated invoice transaction ID, if any.
69
+ * @type {string}
70
+ * @memberof AdminBankDepositDto
71
+ */
72
+ invoiceTransactionId: string | null;
73
+ /**
74
+ * Linked invoice transaction (if available).
75
+ * @type {AdminBankDepositInvoiceTransactionDto}
76
+ * @memberof AdminBankDepositDto
77
+ */
78
+ invoiceTransaction: AdminBankDepositInvoiceTransactionDto | null;
79
+ /**
80
+ * Raw deposit payload from the payment provider.
81
+ * @type {object}
82
+ * @memberof AdminBankDepositDto
83
+ */
84
+ raw: object;
85
+ }
86
+
87
+ /**
88
+ * Check if a given object implements the AdminBankDepositDto interface.
89
+ */
90
+ export function instanceOfAdminBankDepositDto(value: object): value is AdminBankDepositDto {
91
+ if (!('id' in value) || value['id'] === undefined) return false;
92
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
93
+ if (!('externalTransactionId' in value) || value['externalTransactionId'] === undefined) return false;
94
+ if (!('processed' in value) || value['processed'] === undefined) return false;
95
+ if (!('accountBankAccount' in value) || value['accountBankAccount'] === undefined) return false;
96
+ if (!('invoiceTransactionId' in value) || value['invoiceTransactionId'] === undefined) return false;
97
+ if (!('invoiceTransaction' in value) || value['invoiceTransaction'] === undefined) return false;
98
+ if (!('raw' in value) || value['raw'] === undefined) return false;
99
+ return true;
100
+ }
101
+
102
+ export function AdminBankDepositDtoFromJSON(json: any): AdminBankDepositDto {
103
+ return AdminBankDepositDtoFromJSONTyped(json, false);
104
+ }
105
+
106
+ export function AdminBankDepositDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankDepositDto {
107
+ if (json == null) {
108
+ return json;
109
+ }
110
+ return {
111
+
112
+ 'id': json['id'],
113
+ 'createdAt': (new Date(json['createdAt'])),
114
+ 'externalTransactionId': json['externalTransactionId'],
115
+ 'processed': json['processed'],
116
+ 'accountBankAccount': AdminBankDepositAccountBankAccountDtoFromJSON(json['accountBankAccount']),
117
+ 'invoiceTransactionId': json['invoiceTransactionId'],
118
+ 'invoiceTransaction': AdminBankDepositInvoiceTransactionDtoFromJSON(json['invoiceTransaction']),
119
+ 'raw': json['raw'],
120
+ };
121
+ }
122
+
123
+ export function AdminBankDepositDtoToJSON(json: any): AdminBankDepositDto {
124
+ return AdminBankDepositDtoToJSONTyped(json, false);
125
+ }
126
+
127
+ export function AdminBankDepositDtoToJSONTyped(value?: AdminBankDepositDto | null, ignoreDiscriminator: boolean = false): any {
128
+ if (value == null) {
129
+ return value;
130
+ }
131
+
132
+ return {
133
+
134
+ 'id': value['id'],
135
+ 'createdAt': ((value['createdAt']).toISOString()),
136
+ 'externalTransactionId': value['externalTransactionId'],
137
+ 'processed': value['processed'],
138
+ 'accountBankAccount': AdminBankDepositAccountBankAccountDtoToJSON(value['accountBankAccount']),
139
+ 'invoiceTransactionId': value['invoiceTransactionId'],
140
+ 'invoiceTransaction': AdminBankDepositInvoiceTransactionDtoToJSON(value['invoiceTransaction']),
141
+ 'raw': value['raw'],
142
+ };
143
+ }
144
+
@@ -0,0 +1,97 @@
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 AdminBankDepositInvoiceDto
20
+ */
21
+ export interface AdminBankDepositInvoiceDto {
22
+ /**
23
+ * Invoice ID.
24
+ * @type {string}
25
+ * @memberof AdminBankDepositInvoiceDto
26
+ */
27
+ id: string;
28
+ /**
29
+ * Invoice status.
30
+ * @type {string}
31
+ * @memberof AdminBankDepositInvoiceDto
32
+ */
33
+ status: AdminBankDepositInvoiceDtoStatusEnum;
34
+ /**
35
+ * Invoice number.
36
+ * @type {string}
37
+ * @memberof AdminBankDepositInvoiceDto
38
+ */
39
+ invoiceNumber: string | null;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const AdminBankDepositInvoiceDtoStatusEnum = {
47
+ DRAFT: 'draft',
48
+ PENDING_PAYMENT: 'pending_payment',
49
+ PAID: 'paid',
50
+ CANCELLED: 'cancelled'
51
+ } as const;
52
+ export type AdminBankDepositInvoiceDtoStatusEnum = typeof AdminBankDepositInvoiceDtoStatusEnum[keyof typeof AdminBankDepositInvoiceDtoStatusEnum];
53
+
54
+
55
+ /**
56
+ * Check if a given object implements the AdminBankDepositInvoiceDto interface.
57
+ */
58
+ export function instanceOfAdminBankDepositInvoiceDto(value: object): value is AdminBankDepositInvoiceDto {
59
+ if (!('id' in value) || value['id'] === undefined) return false;
60
+ if (!('status' in value) || value['status'] === undefined) return false;
61
+ if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function AdminBankDepositInvoiceDtoFromJSON(json: any): AdminBankDepositInvoiceDto {
66
+ return AdminBankDepositInvoiceDtoFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function AdminBankDepositInvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankDepositInvoiceDto {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'id': json['id'],
76
+ 'status': json['status'],
77
+ 'invoiceNumber': json['invoiceNumber'],
78
+ };
79
+ }
80
+
81
+ export function AdminBankDepositInvoiceDtoToJSON(json: any): AdminBankDepositInvoiceDto {
82
+ return AdminBankDepositInvoiceDtoToJSONTyped(json, false);
83
+ }
84
+
85
+ export function AdminBankDepositInvoiceDtoToJSONTyped(value?: AdminBankDepositInvoiceDto | null, ignoreDiscriminator: boolean = false): any {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+
90
+ return {
91
+
92
+ 'id': value['id'],
93
+ 'status': value['status'],
94
+ 'invoiceNumber': value['invoiceNumber'],
95
+ };
96
+ }
97
+