@randock/nameshift-api-client 0.0.474 → 0.0.476

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 (52) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +71 -1
  4. package/dist/apis/AdminApi.js +288 -0
  5. package/dist/apis/BuyersApi.d.ts +15 -1
  6. package/dist/apis/BuyersApi.js +58 -0
  7. package/dist/apis/CustomerSuccessApi.d.ts +57 -1
  8. package/dist/apis/CustomerSuccessApi.js +230 -0
  9. package/dist/models/AccountNoteAuthorDto.d.ts +50 -0
  10. package/dist/models/AccountNoteAuthorDto.js +63 -0
  11. package/dist/models/AccountNoteDto.d.ts +63 -0
  12. package/dist/models/AccountNoteDto.js +72 -0
  13. package/dist/models/AccountNoteListDto.d.ts +33 -0
  14. package/dist/models/AccountNoteListDto.js +52 -0
  15. package/dist/models/AdminListAccountDto.d.ts +12 -0
  16. package/dist/models/AdminListAccountDto.js +8 -0
  17. package/dist/models/BuyerSubscriptionListItemDto.d.ts +7 -0
  18. package/dist/models/BuyerSubscriptionListItemDto.js +5 -0
  19. package/dist/models/CompanyInformationDto.d.ts +2 -2
  20. package/dist/models/CreateAccountNoteInput.d.ts +32 -0
  21. package/dist/models/CreateAccountNoteInput.js +51 -0
  22. package/dist/models/CustomerSuccessListAccountDto.d.ts +12 -0
  23. package/dist/models/CustomerSuccessListAccountDto.js +8 -0
  24. package/dist/models/ForbiddenException.d.ts +44 -0
  25. package/dist/models/ForbiddenException.js +59 -0
  26. package/dist/models/SubscriptionDetailsDto.d.ts +7 -0
  27. package/dist/models/SubscriptionDetailsDto.js +5 -0
  28. package/dist/models/UpdateAccountNoteInput.d.ts +32 -0
  29. package/dist/models/UpdateAccountNoteInput.js +51 -0
  30. package/dist/models/UpdateSubscriptionBuyerInformationInput.d.ts +33 -0
  31. package/dist/models/UpdateSubscriptionBuyerInformationInput.js +52 -0
  32. package/dist/models/index.d.ts +7 -0
  33. package/dist/models/index.js +7 -0
  34. package/package.json +1 -1
  35. package/src/apis/AccountsApi.ts +3 -0
  36. package/src/apis/AdminApi.ts +295 -0
  37. package/src/apis/BuyersApi.ts +63 -0
  38. package/src/apis/CustomerSuccessApi.ts +238 -0
  39. package/src/apis/DomainsApi.ts +3 -0
  40. package/src/models/AccountNoteAuthorDto.ts +93 -0
  41. package/src/models/AccountNoteDto.ts +119 -0
  42. package/src/models/AccountNoteListDto.ts +74 -0
  43. package/src/models/AdminListAccountDto.ts +18 -0
  44. package/src/models/BuyerSubscriptionListItemDto.ts +16 -0
  45. package/src/models/CompanyInformationDto.ts +2 -2
  46. package/src/models/CreateAccountNoteInput.ts +66 -0
  47. package/src/models/CustomerSuccessListAccountDto.ts +18 -0
  48. package/src/models/ForbiddenException.ts +84 -0
  49. package/src/models/SubscriptionDetailsDto.ts +16 -0
  50. package/src/models/UpdateAccountNoteInput.ts +66 -0
  51. package/src/models/UpdateSubscriptionBuyerInformationInput.ts +74 -0
  52. package/src/models/index.ts +7 -0
@@ -15,6 +15,9 @@ export * from './AccountNameshiftCommissionByTypeDto';
15
15
  export * from './AccountNameshiftCommissionItemDto';
16
16
  export * from './AccountNameshiftCommissionReasonDto';
17
17
  export * from './AccountNameshiftCommissionSubtypeCurrentDto';
18
+ export * from './AccountNoteAuthorDto';
19
+ export * from './AccountNoteDto';
20
+ export * from './AccountNoteListDto';
18
21
  export * from './AccountNotificationDto';
19
22
  export * from './AccountNotificationReadStatusDto';
20
23
  export * from './AccountOnboardingDto';
@@ -166,6 +169,7 @@ export * from './CommissionsStatsDto';
166
169
  export * from './CompanyInformationDto';
167
170
  export * from './CompanyTaxIdDto';
168
171
  export * from './ConflictException';
172
+ export * from './CreateAccountNoteInput';
169
173
  export * from './CreateAccountPaymentInput';
170
174
  export * from './CreateAccountPaymentManualTransactionInput';
171
175
  export * from './CreateApiKeyInput';
@@ -242,6 +246,7 @@ export * from './FixedCommissionPayloadDto';
242
246
  export * from './FixedCommissionPayloadInput';
243
247
  export * from './FixedCommissionPayloadSimulationInput';
244
248
  export * from './FixedCommissionReasonPayloadDto';
249
+ export * from './ForbiddenException';
245
250
  export * from './ForgotPasswordRequestInput';
246
251
  export * from './GetAccountChallengeRewardUsagesListDto';
247
252
  export * from './GetAccountNameshiftCommissionsResponseDto';
@@ -516,6 +521,7 @@ export * from './TranslateDomainSearchInput';
516
521
  export * from './UkBankAccountDetails';
517
522
  export * from './UpdateAccountBillingInformationInput';
518
523
  export * from './UpdateAccountChallengeRewardBalanceInput';
524
+ export * from './UpdateAccountNoteInput';
519
525
  export * from './UpdateApiKeyInput';
520
526
  export * from './UpdateAuctionMuteStatusInput';
521
527
  export * from './UpdateBuyerDomainTransferBuyerInfoInput';
@@ -534,6 +540,7 @@ export * from './UpdateMarketplaceInput';
534
540
  export * from './UpdateOrderInput';
535
541
  export * from './UpdateRentConfigurationDto';
536
542
  export * from './UpdateSubscriptionBillingPeriodicityInput';
543
+ export * from './UpdateSubscriptionBuyerInformationInput';
537
544
  export * from './UpdateSubscriptionDomainNameserversInput';
538
545
  export * from './UpdateSubscriptionDomainRecordInput';
539
546
  export * from './UpdateSubscriptionInput';
@@ -33,6 +33,9 @@ __exportStar(require("./AccountNameshiftCommissionByTypeDto"), exports);
33
33
  __exportStar(require("./AccountNameshiftCommissionItemDto"), exports);
34
34
  __exportStar(require("./AccountNameshiftCommissionReasonDto"), exports);
35
35
  __exportStar(require("./AccountNameshiftCommissionSubtypeCurrentDto"), exports);
36
+ __exportStar(require("./AccountNoteAuthorDto"), exports);
37
+ __exportStar(require("./AccountNoteDto"), exports);
38
+ __exportStar(require("./AccountNoteListDto"), exports);
36
39
  __exportStar(require("./AccountNotificationDto"), exports);
37
40
  __exportStar(require("./AccountNotificationReadStatusDto"), exports);
38
41
  __exportStar(require("./AccountOnboardingDto"), exports);
@@ -184,6 +187,7 @@ __exportStar(require("./CommissionsStatsDto"), exports);
184
187
  __exportStar(require("./CompanyInformationDto"), exports);
185
188
  __exportStar(require("./CompanyTaxIdDto"), exports);
186
189
  __exportStar(require("./ConflictException"), exports);
190
+ __exportStar(require("./CreateAccountNoteInput"), exports);
187
191
  __exportStar(require("./CreateAccountPaymentInput"), exports);
188
192
  __exportStar(require("./CreateAccountPaymentManualTransactionInput"), exports);
189
193
  __exportStar(require("./CreateApiKeyInput"), exports);
@@ -260,6 +264,7 @@ __exportStar(require("./FixedCommissionPayloadDto"), exports);
260
264
  __exportStar(require("./FixedCommissionPayloadInput"), exports);
261
265
  __exportStar(require("./FixedCommissionPayloadSimulationInput"), exports);
262
266
  __exportStar(require("./FixedCommissionReasonPayloadDto"), exports);
267
+ __exportStar(require("./ForbiddenException"), exports);
263
268
  __exportStar(require("./ForgotPasswordRequestInput"), exports);
264
269
  __exportStar(require("./GetAccountChallengeRewardUsagesListDto"), exports);
265
270
  __exportStar(require("./GetAccountNameshiftCommissionsResponseDto"), exports);
@@ -534,6 +539,7 @@ __exportStar(require("./TranslateDomainSearchInput"), exports);
534
539
  __exportStar(require("./UkBankAccountDetails"), exports);
535
540
  __exportStar(require("./UpdateAccountBillingInformationInput"), exports);
536
541
  __exportStar(require("./UpdateAccountChallengeRewardBalanceInput"), exports);
542
+ __exportStar(require("./UpdateAccountNoteInput"), exports);
537
543
  __exportStar(require("./UpdateApiKeyInput"), exports);
538
544
  __exportStar(require("./UpdateAuctionMuteStatusInput"), exports);
539
545
  __exportStar(require("./UpdateBuyerDomainTransferBuyerInfoInput"), exports);
@@ -552,6 +558,7 @@ __exportStar(require("./UpdateMarketplaceInput"), exports);
552
558
  __exportStar(require("./UpdateOrderInput"), exports);
553
559
  __exportStar(require("./UpdateRentConfigurationDto"), exports);
554
560
  __exportStar(require("./UpdateSubscriptionBillingPeriodicityInput"), exports);
561
+ __exportStar(require("./UpdateSubscriptionBuyerInformationInput"), exports);
555
562
  __exportStar(require("./UpdateSubscriptionDomainNameserversInput"), exports);
556
563
  __exportStar(require("./UpdateSubscriptionDomainRecordInput"), exports);
557
564
  __exportStar(require("./UpdateSubscriptionInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.474",
3
+ "version": "0.0.476",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -23,6 +23,7 @@ import type {
23
23
  BadRequestException,
24
24
  CreateAccountPaymentInput,
25
25
  CreateAccountPaymentManualTransactionInput,
26
+ ForbiddenException,
26
27
  GetAccountNameshiftCommissionsResponseDto,
27
28
  GetAllAffiliateCommissions200Response,
28
29
  GetAllReferrals200Response,
@@ -52,6 +53,8 @@ import {
52
53
  CreateAccountPaymentInputToJSON,
53
54
  CreateAccountPaymentManualTransactionInputFromJSON,
54
55
  CreateAccountPaymentManualTransactionInputToJSON,
56
+ ForbiddenExceptionFromJSON,
57
+ ForbiddenExceptionToJSON,
55
58
  GetAccountNameshiftCommissionsResponseDtoFromJSON,
56
59
  GetAccountNameshiftCommissionsResponseDtoToJSON,
57
60
  GetAllAffiliateCommissions200ResponseFromJSON,
@@ -16,6 +16,7 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  AccountNameshiftCommissionByTypeDto,
19
+ AccountNoteListDto,
19
20
  AccountPaymentMethodProfileDto,
20
21
  AccountSettingsDto,
21
22
  AdminAccountLoginDto,
@@ -34,11 +35,13 @@ import type {
34
35
  CommissionListDto,
35
36
  CommissionSimulationResultDto,
36
37
  ConflictException,
38
+ CreateAccountNoteInput,
37
39
  CreateChallengeInput,
38
40
  DomainLockDto,
39
41
  DomainStatsDto,
40
42
  DomainTldsDto,
41
43
  DomainTransferDetailsDto,
44
+ ForbiddenException,
42
45
  GetAccountChallengeRewardUsagesListDto,
43
46
  GetAllAuctions200Response,
44
47
  GetAllFeatureFlags200Response,
@@ -65,14 +68,18 @@ import type {
65
68
  StatsFilterInputDateRange,
66
69
  SubscriptionDetailsDto,
67
70
  UpdateAccountChallengeRewardBalanceInput,
71
+ UpdateAccountNoteInput,
68
72
  UpdateChallengeInput,
69
73
  UpdateFeatureFlagInput,
70
74
  UpdateMarketplaceInput,
75
+ UpdateSubscriptionBuyerInformationInput,
71
76
  ValidationException,
72
77
  } from '../models/index';
73
78
  import {
74
79
  AccountNameshiftCommissionByTypeDtoFromJSON,
75
80
  AccountNameshiftCommissionByTypeDtoToJSON,
81
+ AccountNoteListDtoFromJSON,
82
+ AccountNoteListDtoToJSON,
76
83
  AccountPaymentMethodProfileDtoFromJSON,
77
84
  AccountPaymentMethodProfileDtoToJSON,
78
85
  AccountSettingsDtoFromJSON,
@@ -109,6 +116,8 @@ import {
109
116
  CommissionSimulationResultDtoToJSON,
110
117
  ConflictExceptionFromJSON,
111
118
  ConflictExceptionToJSON,
119
+ CreateAccountNoteInputFromJSON,
120
+ CreateAccountNoteInputToJSON,
112
121
  CreateChallengeInputFromJSON,
113
122
  CreateChallengeInputToJSON,
114
123
  DomainLockDtoFromJSON,
@@ -119,6 +128,8 @@ import {
119
128
  DomainTldsDtoToJSON,
120
129
  DomainTransferDetailsDtoFromJSON,
121
130
  DomainTransferDetailsDtoToJSON,
131
+ ForbiddenExceptionFromJSON,
132
+ ForbiddenExceptionToJSON,
122
133
  GetAccountChallengeRewardUsagesListDtoFromJSON,
123
134
  GetAccountChallengeRewardUsagesListDtoToJSON,
124
135
  GetAllAuctions200ResponseFromJSON,
@@ -171,12 +182,16 @@ import {
171
182
  SubscriptionDetailsDtoToJSON,
172
183
  UpdateAccountChallengeRewardBalanceInputFromJSON,
173
184
  UpdateAccountChallengeRewardBalanceInputToJSON,
185
+ UpdateAccountNoteInputFromJSON,
186
+ UpdateAccountNoteInputToJSON,
174
187
  UpdateChallengeInputFromJSON,
175
188
  UpdateChallengeInputToJSON,
176
189
  UpdateFeatureFlagInputFromJSON,
177
190
  UpdateFeatureFlagInputToJSON,
178
191
  UpdateMarketplaceInputFromJSON,
179
192
  UpdateMarketplaceInputToJSON,
193
+ UpdateSubscriptionBuyerInformationInputFromJSON,
194
+ UpdateSubscriptionBuyerInformationInputToJSON,
180
195
  ValidationExceptionFromJSON,
181
196
  ValidationExceptionToJSON,
182
197
  } from '../models/index';
@@ -221,6 +236,11 @@ export interface AdminApiCheckDomainNameserverRequest {
221
236
  domainId: string;
222
237
  }
223
238
 
239
+ export interface AdminApiCreateAccountNoteRequest {
240
+ accountId: string;
241
+ createAccountNoteInput: CreateAccountNoteInput;
242
+ }
243
+
224
244
  export interface AdminApiCreateChallengeRequest {
225
245
  createChallengeInput: CreateChallengeInput;
226
246
  }
@@ -229,6 +249,11 @@ export interface AdminApiCreateNegativeInvoiceRequest {
229
249
  invoiceId: string;
230
250
  }
231
251
 
252
+ export interface AdminApiDeleteAccountNoteRequest {
253
+ accountId: string;
254
+ noteId: string;
255
+ }
256
+
232
257
  export interface AdminApiDeleteChallengeRequest {
233
258
  id: string;
234
259
  }
@@ -361,6 +386,10 @@ export interface AdminApiLinkBankDepositToInvoiceRequest {
361
386
  linkBankDepositToInvoiceInput: LinkBankDepositToInvoiceInput;
362
387
  }
363
388
 
389
+ export interface AdminApiListAccountNotesRequest {
390
+ accountId: string;
391
+ }
392
+
364
393
  export interface AdminApiListAccountsRequest {
365
394
  filter?: { [key: string]: string; };
366
395
  page?: number;
@@ -490,6 +519,12 @@ export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
490
519
  updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
491
520
  }
492
521
 
522
+ export interface AdminApiUpdateAccountNoteRequest {
523
+ accountId: string;
524
+ noteId: string;
525
+ updateAccountNoteInput: UpdateAccountNoteInput;
526
+ }
527
+
493
528
  export interface AdminApiUpdateAccountSettingsRequest {
494
529
  accountId: string;
495
530
  adminAccountSettingsInput: AdminAccountSettingsInput;
@@ -510,6 +545,11 @@ export interface AdminApiUpdateMarketplaceRequest {
510
545
  updateMarketplaceInput: UpdateMarketplaceInput;
511
546
  }
512
547
 
548
+ export interface AdminApiUpdateSubscriptionBuyerInformationRequest {
549
+ subscriptionId: string;
550
+ updateSubscriptionBuyerInformationInput: UpdateSubscriptionBuyerInformationInput;
551
+ }
552
+
513
553
  export interface AdminApiVerifyAccountAliasRequest {
514
554
  accountId: string;
515
555
  }
@@ -910,6 +950,58 @@ export class AdminApi extends runtime.BaseAPI {
910
950
  await this.checkDomainNameserverRaw(requestParameters, initOverrides);
911
951
  }
912
952
 
953
+ /**
954
+ * Adds a private note to a seller account.
955
+ * Create account note
956
+ */
957
+ async createAccountNoteRaw(requestParameters: AdminApiCreateAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
958
+ if (requestParameters['accountId'] == null) {
959
+ throw new runtime.RequiredError(
960
+ 'accountId',
961
+ 'Required parameter "accountId" was null or undefined when calling createAccountNote().'
962
+ );
963
+ }
964
+
965
+ if (requestParameters['createAccountNoteInput'] == null) {
966
+ throw new runtime.RequiredError(
967
+ 'createAccountNoteInput',
968
+ 'Required parameter "createAccountNoteInput" was null or undefined when calling createAccountNote().'
969
+ );
970
+ }
971
+
972
+ const queryParameters: any = {};
973
+
974
+ const headerParameters: runtime.HTTPHeaders = {};
975
+
976
+ headerParameters['Content-Type'] = 'application/json';
977
+
978
+ if (this.configuration && this.configuration.accessToken) {
979
+ const token = this.configuration.accessToken;
980
+ const tokenString = await token("bearer", []);
981
+
982
+ if (tokenString) {
983
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
984
+ }
985
+ }
986
+ const response = await this.request({
987
+ path: `/admin/accounts/{accountId}/notes`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
988
+ method: 'POST',
989
+ headers: headerParameters,
990
+ query: queryParameters,
991
+ body: CreateAccountNoteInputToJSON(requestParameters['createAccountNoteInput']),
992
+ }, initOverrides);
993
+
994
+ return new runtime.VoidApiResponse(response);
995
+ }
996
+
997
+ /**
998
+ * Adds a private note to a seller account.
999
+ * Create account note
1000
+ */
1001
+ async createAccountNote(requestParameters: AdminApiCreateAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1002
+ await this.createAccountNoteRaw(requestParameters, initOverrides);
1003
+ }
1004
+
913
1005
  /**
914
1006
  * Creates a new challenge.
915
1007
  * Create challenge
@@ -998,6 +1090,55 @@ export class AdminApi extends runtime.BaseAPI {
998
1090
  return await response.value();
999
1091
  }
1000
1092
 
1093
+ /**
1094
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
1095
+ * Delete account note
1096
+ */
1097
+ async deleteAccountNoteRaw(requestParameters: AdminApiDeleteAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1098
+ if (requestParameters['accountId'] == null) {
1099
+ throw new runtime.RequiredError(
1100
+ 'accountId',
1101
+ 'Required parameter "accountId" was null or undefined when calling deleteAccountNote().'
1102
+ );
1103
+ }
1104
+
1105
+ if (requestParameters['noteId'] == null) {
1106
+ throw new runtime.RequiredError(
1107
+ 'noteId',
1108
+ 'Required parameter "noteId" was null or undefined when calling deleteAccountNote().'
1109
+ );
1110
+ }
1111
+
1112
+ const queryParameters: any = {};
1113
+
1114
+ const headerParameters: runtime.HTTPHeaders = {};
1115
+
1116
+ if (this.configuration && this.configuration.accessToken) {
1117
+ const token = this.configuration.accessToken;
1118
+ const tokenString = await token("bearer", []);
1119
+
1120
+ if (tokenString) {
1121
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1122
+ }
1123
+ }
1124
+ const response = await this.request({
1125
+ path: `/admin/accounts/{accountId}/notes/{noteId}`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))).replace(`{${"noteId"}}`, encodeURIComponent(String(requestParameters['noteId']))),
1126
+ method: 'DELETE',
1127
+ headers: headerParameters,
1128
+ query: queryParameters,
1129
+ }, initOverrides);
1130
+
1131
+ return new runtime.VoidApiResponse(response);
1132
+ }
1133
+
1134
+ /**
1135
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
1136
+ * Delete account note
1137
+ */
1138
+ async deleteAccountNote(requestParameters: AdminApiDeleteAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1139
+ await this.deleteAccountNoteRaw(requestParameters, initOverrides);
1140
+ }
1141
+
1001
1142
  /**
1002
1143
  * Soft-deletes a multi-count challenge. At least one challenge of each type must remain.
1003
1144
  * Delete challenge
@@ -2159,6 +2300,49 @@ export class AdminApi extends runtime.BaseAPI {
2159
2300
  await this.linkBankDepositToInvoiceRaw(requestParameters, initOverrides);
2160
2301
  }
2161
2302
 
2303
+ /**
2304
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
2305
+ * List account notes
2306
+ */
2307
+ async listAccountNotesRaw(requestParameters: AdminApiListAccountNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountNoteListDto>> {
2308
+ if (requestParameters['accountId'] == null) {
2309
+ throw new runtime.RequiredError(
2310
+ 'accountId',
2311
+ 'Required parameter "accountId" was null or undefined when calling listAccountNotes().'
2312
+ );
2313
+ }
2314
+
2315
+ const queryParameters: any = {};
2316
+
2317
+ const headerParameters: runtime.HTTPHeaders = {};
2318
+
2319
+ if (this.configuration && this.configuration.accessToken) {
2320
+ const token = this.configuration.accessToken;
2321
+ const tokenString = await token("bearer", []);
2322
+
2323
+ if (tokenString) {
2324
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2325
+ }
2326
+ }
2327
+ const response = await this.request({
2328
+ path: `/admin/accounts/{accountId}/notes`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
2329
+ method: 'GET',
2330
+ headers: headerParameters,
2331
+ query: queryParameters,
2332
+ }, initOverrides);
2333
+
2334
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccountNoteListDtoFromJSON(jsonValue));
2335
+ }
2336
+
2337
+ /**
2338
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
2339
+ * List account notes
2340
+ */
2341
+ async listAccountNotes(requestParameters: AdminApiListAccountNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountNoteListDto> {
2342
+ const response = await this.listAccountNotesRaw(requestParameters, initOverrides);
2343
+ return await response.value();
2344
+ }
2345
+
2162
2346
  /**
2163
2347
  * Lists all seller accounts.
2164
2348
  * List accounts
@@ -3429,6 +3613,65 @@ export class AdminApi extends runtime.BaseAPI {
3429
3613
  await this.updateAccountChallengeRewardBalancePointsRaw(requestParameters, initOverrides);
3430
3614
  }
3431
3615
 
3616
+ /**
3617
+ * Updates the body of a note. Only its author, or a super admin, may do so.
3618
+ * Update account note
3619
+ */
3620
+ async updateAccountNoteRaw(requestParameters: AdminApiUpdateAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
3621
+ if (requestParameters['accountId'] == null) {
3622
+ throw new runtime.RequiredError(
3623
+ 'accountId',
3624
+ 'Required parameter "accountId" was null or undefined when calling updateAccountNote().'
3625
+ );
3626
+ }
3627
+
3628
+ if (requestParameters['noteId'] == null) {
3629
+ throw new runtime.RequiredError(
3630
+ 'noteId',
3631
+ 'Required parameter "noteId" was null or undefined when calling updateAccountNote().'
3632
+ );
3633
+ }
3634
+
3635
+ if (requestParameters['updateAccountNoteInput'] == null) {
3636
+ throw new runtime.RequiredError(
3637
+ 'updateAccountNoteInput',
3638
+ 'Required parameter "updateAccountNoteInput" was null or undefined when calling updateAccountNote().'
3639
+ );
3640
+ }
3641
+
3642
+ const queryParameters: any = {};
3643
+
3644
+ const headerParameters: runtime.HTTPHeaders = {};
3645
+
3646
+ headerParameters['Content-Type'] = 'application/json';
3647
+
3648
+ if (this.configuration && this.configuration.accessToken) {
3649
+ const token = this.configuration.accessToken;
3650
+ const tokenString = await token("bearer", []);
3651
+
3652
+ if (tokenString) {
3653
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3654
+ }
3655
+ }
3656
+ const response = await this.request({
3657
+ path: `/admin/accounts/{accountId}/notes/{noteId}`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))).replace(`{${"noteId"}}`, encodeURIComponent(String(requestParameters['noteId']))),
3658
+ method: 'PATCH',
3659
+ headers: headerParameters,
3660
+ query: queryParameters,
3661
+ body: UpdateAccountNoteInputToJSON(requestParameters['updateAccountNoteInput']),
3662
+ }, initOverrides);
3663
+
3664
+ return new runtime.VoidApiResponse(response);
3665
+ }
3666
+
3667
+ /**
3668
+ * Updates the body of a note. Only its author, or a super admin, may do so.
3669
+ * Update account note
3670
+ */
3671
+ async updateAccountNote(requestParameters: AdminApiUpdateAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
3672
+ await this.updateAccountNoteRaw(requestParameters, initOverrides);
3673
+ }
3674
+
3432
3675
  /**
3433
3676
  * Updates admin-managed account settings.
3434
3677
  * Update account settings
@@ -3637,6 +3880,58 @@ export class AdminApi extends runtime.BaseAPI {
3637
3880
  await this.updateMarketplaceRaw(requestParameters, initOverrides);
3638
3881
  }
3639
3882
 
3883
+ /**
3884
+ * Updates the buyer information stored on the subscription. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched. Note that the emails related to the current invoice are still sent to the email of that invoice.
3885
+ * Update subscription buyer information
3886
+ */
3887
+ async updateSubscriptionBuyerInformationRaw(requestParameters: AdminApiUpdateSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
3888
+ if (requestParameters['subscriptionId'] == null) {
3889
+ throw new runtime.RequiredError(
3890
+ 'subscriptionId',
3891
+ 'Required parameter "subscriptionId" was null or undefined when calling updateSubscriptionBuyerInformation().'
3892
+ );
3893
+ }
3894
+
3895
+ if (requestParameters['updateSubscriptionBuyerInformationInput'] == null) {
3896
+ throw new runtime.RequiredError(
3897
+ 'updateSubscriptionBuyerInformationInput',
3898
+ 'Required parameter "updateSubscriptionBuyerInformationInput" was null or undefined when calling updateSubscriptionBuyerInformation().'
3899
+ );
3900
+ }
3901
+
3902
+ const queryParameters: any = {};
3903
+
3904
+ const headerParameters: runtime.HTTPHeaders = {};
3905
+
3906
+ headerParameters['Content-Type'] = 'application/json';
3907
+
3908
+ if (this.configuration && this.configuration.accessToken) {
3909
+ const token = this.configuration.accessToken;
3910
+ const tokenString = await token("bearer", []);
3911
+
3912
+ if (tokenString) {
3913
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3914
+ }
3915
+ }
3916
+ const response = await this.request({
3917
+ path: `/admin/subscriptions/{subscriptionId}/buyer-information`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
3918
+ method: 'PATCH',
3919
+ headers: headerParameters,
3920
+ query: queryParameters,
3921
+ body: UpdateSubscriptionBuyerInformationInputToJSON(requestParameters['updateSubscriptionBuyerInformationInput']),
3922
+ }, initOverrides);
3923
+
3924
+ return new runtime.VoidApiResponse(response);
3925
+ }
3926
+
3927
+ /**
3928
+ * Updates the buyer information stored on the subscription. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched. Note that the emails related to the current invoice are still sent to the email of that invoice.
3929
+ * Update subscription buyer information
3930
+ */
3931
+ async updateSubscriptionBuyerInformation(requestParameters: AdminApiUpdateSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
3932
+ await this.updateSubscriptionBuyerInformationRaw(requestParameters, initOverrides);
3933
+ }
3934
+
3640
3935
  /**
3641
3936
  * Marks the account alias as verified.
3642
3937
  * Verify account alias
@@ -32,6 +32,7 @@ import type {
32
32
  BuyerSessionDto,
33
33
  BuyerTaskDetailsDto,
34
34
  CreateBuyerLeadMessageInput,
35
+ ForbiddenException,
35
36
  GetBuyerAuctions200Response,
36
37
  GetBuyerInvoices200Response,
37
38
  GetBuyerLeads200Response,
@@ -54,6 +55,7 @@ import type {
54
55
  UpdateBuyerDomainTransferIpsTagInputDto,
55
56
  UpdateBuyerNotificationSettingsInput,
56
57
  UpdateLeadMuteStatusForBuyerInput,
58
+ UpdateSubscriptionBuyerInformationInput,
57
59
  UpdateSubscriptionDomainNameserversInput,
58
60
  UpdateSubscriptionDomainRecordInput,
59
61
  UpdateTaskMuteStatusForBuyerInput,
@@ -95,6 +97,8 @@ import {
95
97
  BuyerTaskDetailsDtoToJSON,
96
98
  CreateBuyerLeadMessageInputFromJSON,
97
99
  CreateBuyerLeadMessageInputToJSON,
100
+ ForbiddenExceptionFromJSON,
101
+ ForbiddenExceptionToJSON,
98
102
  GetBuyerAuctions200ResponseFromJSON,
99
103
  GetBuyerAuctions200ResponseToJSON,
100
104
  GetBuyerInvoices200ResponseFromJSON,
@@ -139,6 +143,8 @@ import {
139
143
  UpdateBuyerNotificationSettingsInputToJSON,
140
144
  UpdateLeadMuteStatusForBuyerInputFromJSON,
141
145
  UpdateLeadMuteStatusForBuyerInputToJSON,
146
+ UpdateSubscriptionBuyerInformationInputFromJSON,
147
+ UpdateSubscriptionBuyerInformationInputToJSON,
142
148
  UpdateSubscriptionDomainNameserversInputFromJSON,
143
149
  UpdateSubscriptionDomainNameserversInputToJSON,
144
150
  UpdateSubscriptionDomainRecordInputFromJSON,
@@ -323,6 +329,11 @@ export interface BuyersApiUpdateBuyerNotificationSettingsRequest {
323
329
  updateBuyerNotificationSettingsInput: UpdateBuyerNotificationSettingsInput;
324
330
  }
325
331
 
332
+ export interface BuyersApiUpdateBuyerSubscriptionBuyerInformationRequest {
333
+ subscriptionId: string;
334
+ updateSubscriptionBuyerInformationInput: UpdateSubscriptionBuyerInformationInput;
335
+ }
336
+
326
337
  export interface BuyersApiUpdateDomainTransferIpsTagRequest {
327
338
  transferId: string;
328
339
  updateBuyerDomainTransferIpsTagInputDto: UpdateBuyerDomainTransferIpsTagInputDto;
@@ -2188,6 +2199,58 @@ export class BuyersApi extends runtime.BaseAPI {
2188
2199
  await this.updateBuyerNotificationSettingsRaw(requestParameters, initOverrides);
2189
2200
  }
2190
2201
 
2202
+ /**
2203
+ * Updates the billing information stored on one of the subscriptions of the current buyer. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched.
2204
+ * Update the billing information of a subscription
2205
+ */
2206
+ async updateBuyerSubscriptionBuyerInformationRaw(requestParameters: BuyersApiUpdateBuyerSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2207
+ if (requestParameters['subscriptionId'] == null) {
2208
+ throw new runtime.RequiredError(
2209
+ 'subscriptionId',
2210
+ 'Required parameter "subscriptionId" was null or undefined when calling updateBuyerSubscriptionBuyerInformation().'
2211
+ );
2212
+ }
2213
+
2214
+ if (requestParameters['updateSubscriptionBuyerInformationInput'] == null) {
2215
+ throw new runtime.RequiredError(
2216
+ 'updateSubscriptionBuyerInformationInput',
2217
+ 'Required parameter "updateSubscriptionBuyerInformationInput" was null or undefined when calling updateBuyerSubscriptionBuyerInformation().'
2218
+ );
2219
+ }
2220
+
2221
+ const queryParameters: any = {};
2222
+
2223
+ const headerParameters: runtime.HTTPHeaders = {};
2224
+
2225
+ headerParameters['Content-Type'] = 'application/json';
2226
+
2227
+ if (this.configuration && this.configuration.accessToken) {
2228
+ const token = this.configuration.accessToken;
2229
+ const tokenString = await token("bearer", []);
2230
+
2231
+ if (tokenString) {
2232
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2233
+ }
2234
+ }
2235
+ const response = await this.request({
2236
+ path: `/buyers/private/subscriptions/{subscriptionId}/buyer-information`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
2237
+ method: 'PATCH',
2238
+ headers: headerParameters,
2239
+ query: queryParameters,
2240
+ body: UpdateSubscriptionBuyerInformationInputToJSON(requestParameters['updateSubscriptionBuyerInformationInput']),
2241
+ }, initOverrides);
2242
+
2243
+ return new runtime.VoidApiResponse(response);
2244
+ }
2245
+
2246
+ /**
2247
+ * Updates the billing information stored on one of the subscriptions of the current buyer. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched.
2248
+ * Update the billing information of a subscription
2249
+ */
2250
+ async updateBuyerSubscriptionBuyerInformation(requestParameters: BuyersApiUpdateBuyerSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2251
+ await this.updateBuyerSubscriptionBuyerInformationRaw(requestParameters, initOverrides);
2252
+ }
2253
+
2191
2254
  /**
2192
2255
  * Updates the IPS tag for a .uk domain transfer during the buyer workflow step.
2193
2256
  * Update IPS tag