@randock/nameshift-api-client 0.0.482 → 0.0.483

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.
@@ -264,6 +264,7 @@ src/models/DomainTransferDetailWorkflowStepActionDto.ts
264
264
  src/models/DomainTransferDetailWorkflowStepDto.ts
265
265
  src/models/DomainTransferDetailsAuthCodeDto.ts
266
266
  src/models/DomainTransferDetailsBuyerDto.ts
267
+ src/models/DomainTransferDetailsBuyerInfoDto.ts
267
268
  src/models/DomainTransferDetailsDomainDto.ts
268
269
  src/models/DomainTransferDetailsDto.ts
269
270
  src/models/DomainTransferDetailsOrderDto.ts
@@ -565,6 +566,8 @@ src/models/UkBankAccountDetails.ts
565
566
  src/models/UpdateAccountBillingInformationInput.ts
566
567
  src/models/UpdateAccountChallengeRewardBalanceInput.ts
567
568
  src/models/UpdateAccountNoteInput.ts
569
+ src/models/UpdateAdminDomainTransferBuyerCompanyInfoInput.ts
570
+ src/models/UpdateAdminDomainTransferBuyerInfoInput.ts
568
571
  src/models/UpdateApiKeyInput.ts
569
572
  src/models/UpdateAuctionMuteStatusInput.ts
570
573
  src/models/UpdateBuyerDomainTransferBuyerInfoInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.482
1
+ ## @randock/nameshift-api-client@0.0.483
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.482 --save
39
+ npm install @randock/nameshift-api-client@0.0.483 --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
- bf844ad909c0ceb3018c56deba5acbcc68dabb5512e29b9d771afd85b43bf3ba53bd3a7b249e391c68a841384777c362
47
+ cd050331965a0d89b08993f33d99695a8295fa0a05771e5d748af2f2f16ac3e3472a2deaaa2cb3d19597925ce495a4d5
@@ -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, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ObjectId, SellerLeadDetails, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
13
+ import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ObjectId, SellerLeadDetails, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
14
14
  export interface AdminApiAdminDeleteAuctionRequest {
15
15
  auctionId: string;
16
16
  }
@@ -24,6 +24,14 @@ export interface AdminApiAdminGetAllDomainTransfersRequest {
24
24
  filterSearchTerm?: string;
25
25
  filterStatus?: string;
26
26
  }
27
+ export interface AdminApiAdminUpdateDomainTransferBuyerCompanyInfoRequest {
28
+ transferId: string;
29
+ updateAdminDomainTransferBuyerCompanyInfoInput: UpdateAdminDomainTransferBuyerCompanyInfoInput;
30
+ }
31
+ export interface AdminApiAdminUpdateDomainTransferBuyerInfoRequest {
32
+ transferId: string;
33
+ updateAdminDomainTransferBuyerInfoInput: UpdateAdminDomainTransferBuyerInfoInput;
34
+ }
27
35
  export interface AdminApiBulkCommissionActionsRequest {
28
36
  bulkCommissionActionsInput: BulkCommissionActionsInput;
29
37
  }
@@ -374,6 +382,26 @@ export declare class AdminApi extends runtime.BaseAPI {
374
382
  * List all domain transfers
375
383
  */
376
384
  adminGetAllDomainTransfers(requestParameters?: AdminApiAdminGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminGetAllDomainTransfers200Response>;
385
+ /**
386
+ * Corrects the company registration id stored on the active buyer invoice of the domain transfer. The registry contact of the transfer is built from it; the issued invoice and its taxes are left untouched.
387
+ * Update the company id of the buyer
388
+ */
389
+ adminUpdateDomainTransferBuyerCompanyInfoRaw(requestParameters: AdminApiAdminUpdateDomainTransferBuyerCompanyInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
390
+ /**
391
+ * Corrects the company registration id stored on the active buyer invoice of the domain transfer. The registry contact of the transfer is built from it; the issued invoice and its taxes are left untouched.
392
+ * Update the company id of the buyer
393
+ */
394
+ adminUpdateDomainTransferBuyerCompanyInfo(requestParameters: AdminApiAdminUpdateDomainTransferBuyerCompanyInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
395
+ /**
396
+ * Corrects the transfer information the buyer provided for the domain transfer, such as the social security number some registries require. Unlike the buyer endpoint, it is allowed at any point of the workflow, but only once the buyer has provided a value.
397
+ * Correct the transfer info of the buyer
398
+ */
399
+ adminUpdateDomainTransferBuyerInfoRaw(requestParameters: AdminApiAdminUpdateDomainTransferBuyerInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
400
+ /**
401
+ * Corrects the transfer information the buyer provided for the domain transfer, such as the social security number some registries require. Unlike the buyer endpoint, it is allowed at any point of the workflow, but only once the buyer has provided a value.
402
+ * Correct the transfer info of the buyer
403
+ */
404
+ adminUpdateDomainTransferBuyerInfo(requestParameters: AdminApiAdminUpdateDomainTransferBuyerInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
377
405
  /**
378
406
  * Executes multiple commission add, update, or delete actions in a single request.
379
407
  * Bulk commission actions
@@ -199,6 +199,122 @@ var AdminApi = /** @class */ (function (_super) {
199
199
  });
200
200
  });
201
201
  };
202
+ /**
203
+ * Corrects the company registration id stored on the active buyer invoice of the domain transfer. The registry contact of the transfer is built from it; the issued invoice and its taxes are left untouched.
204
+ * Update the company id of the buyer
205
+ */
206
+ AdminApi.prototype.adminUpdateDomainTransferBuyerCompanyInfoRaw = function (requestParameters, initOverrides) {
207
+ return __awaiter(this, void 0, void 0, function () {
208
+ var queryParameters, headerParameters, token, tokenString, response;
209
+ return __generator(this, function (_a) {
210
+ switch (_a.label) {
211
+ case 0:
212
+ if (requestParameters['transferId'] == null) {
213
+ throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling adminUpdateDomainTransferBuyerCompanyInfo().');
214
+ }
215
+ if (requestParameters['updateAdminDomainTransferBuyerCompanyInfoInput'] == null) {
216
+ throw new runtime.RequiredError('updateAdminDomainTransferBuyerCompanyInfoInput', 'Required parameter "updateAdminDomainTransferBuyerCompanyInfoInput" was null or undefined when calling adminUpdateDomainTransferBuyerCompanyInfo().');
217
+ }
218
+ queryParameters = {};
219
+ headerParameters = {};
220
+ headerParameters['Content-Type'] = 'application/json';
221
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
222
+ token = this.configuration.accessToken;
223
+ return [4 /*yield*/, token("bearer", [])];
224
+ case 1:
225
+ tokenString = _a.sent();
226
+ if (tokenString) {
227
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
228
+ }
229
+ _a.label = 2;
230
+ case 2: return [4 /*yield*/, this.request({
231
+ path: "/admin/domain-transfers/{transferId}/buyer-company-info".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
232
+ method: 'PATCH',
233
+ headers: headerParameters,
234
+ query: queryParameters,
235
+ body: (0, index_1.UpdateAdminDomainTransferBuyerCompanyInfoInputToJSON)(requestParameters['updateAdminDomainTransferBuyerCompanyInfoInput']),
236
+ }, initOverrides)];
237
+ case 3:
238
+ response = _a.sent();
239
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
240
+ }
241
+ });
242
+ });
243
+ };
244
+ /**
245
+ * Corrects the company registration id stored on the active buyer invoice of the domain transfer. The registry contact of the transfer is built from it; the issued invoice and its taxes are left untouched.
246
+ * Update the company id of the buyer
247
+ */
248
+ AdminApi.prototype.adminUpdateDomainTransferBuyerCompanyInfo = function (requestParameters, initOverrides) {
249
+ return __awaiter(this, void 0, void 0, function () {
250
+ return __generator(this, function (_a) {
251
+ switch (_a.label) {
252
+ case 0: return [4 /*yield*/, this.adminUpdateDomainTransferBuyerCompanyInfoRaw(requestParameters, initOverrides)];
253
+ case 1:
254
+ _a.sent();
255
+ return [2 /*return*/];
256
+ }
257
+ });
258
+ });
259
+ };
260
+ /**
261
+ * Corrects the transfer information the buyer provided for the domain transfer, such as the social security number some registries require. Unlike the buyer endpoint, it is allowed at any point of the workflow, but only once the buyer has provided a value.
262
+ * Correct the transfer info of the buyer
263
+ */
264
+ AdminApi.prototype.adminUpdateDomainTransferBuyerInfoRaw = function (requestParameters, initOverrides) {
265
+ return __awaiter(this, void 0, void 0, function () {
266
+ var queryParameters, headerParameters, token, tokenString, response;
267
+ return __generator(this, function (_a) {
268
+ switch (_a.label) {
269
+ case 0:
270
+ if (requestParameters['transferId'] == null) {
271
+ throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling adminUpdateDomainTransferBuyerInfo().');
272
+ }
273
+ if (requestParameters['updateAdminDomainTransferBuyerInfoInput'] == null) {
274
+ throw new runtime.RequiredError('updateAdminDomainTransferBuyerInfoInput', 'Required parameter "updateAdminDomainTransferBuyerInfoInput" was null or undefined when calling adminUpdateDomainTransferBuyerInfo().');
275
+ }
276
+ queryParameters = {};
277
+ headerParameters = {};
278
+ headerParameters['Content-Type'] = 'application/json';
279
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
280
+ token = this.configuration.accessToken;
281
+ return [4 /*yield*/, token("bearer", [])];
282
+ case 1:
283
+ tokenString = _a.sent();
284
+ if (tokenString) {
285
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
286
+ }
287
+ _a.label = 2;
288
+ case 2: return [4 /*yield*/, this.request({
289
+ path: "/admin/domain-transfers/{transferId}/buyer-info".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
290
+ method: 'PATCH',
291
+ headers: headerParameters,
292
+ query: queryParameters,
293
+ body: (0, index_1.UpdateAdminDomainTransferBuyerInfoInputToJSON)(requestParameters['updateAdminDomainTransferBuyerInfoInput']),
294
+ }, initOverrides)];
295
+ case 3:
296
+ response = _a.sent();
297
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
298
+ }
299
+ });
300
+ });
301
+ };
302
+ /**
303
+ * Corrects the transfer information the buyer provided for the domain transfer, such as the social security number some registries require. Unlike the buyer endpoint, it is allowed at any point of the workflow, but only once the buyer has provided a value.
304
+ * Correct the transfer info of the buyer
305
+ */
306
+ AdminApi.prototype.adminUpdateDomainTransferBuyerInfo = function (requestParameters, initOverrides) {
307
+ return __awaiter(this, void 0, void 0, function () {
308
+ return __generator(this, function (_a) {
309
+ switch (_a.label) {
310
+ case 0: return [4 /*yield*/, this.adminUpdateDomainTransferBuyerInfoRaw(requestParameters, initOverrides)];
311
+ case 1:
312
+ _a.sent();
313
+ return [2 /*return*/];
314
+ }
315
+ });
316
+ });
317
+ };
202
318
  /**
203
319
  * Executes multiple commission add, update, or delete actions in a single request.
204
320
  * Bulk commission actions
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { CompanyInformationDto } from './CompanyInformationDto';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -21,6 +22,12 @@ export interface DomainTransferDetailsBuyerDto {
21
22
  * @memberof DomainTransferDetailsBuyerDto
22
23
  */
23
24
  id: string;
25
+ /**
26
+ * Whether the buyer invoice billing details represent a person or a company.
27
+ * @type {string}
28
+ * @memberof DomainTransferDetailsBuyerDto
29
+ */
30
+ type: DomainTransferDetailsBuyerDtoTypeEnum;
24
31
  /**
25
32
  * The buyer email address.
26
33
  * @type {string}
@@ -45,7 +52,23 @@ export interface DomainTransferDetailsBuyerDto {
45
52
  * @memberof DomainTransferDetailsBuyerDto
46
53
  */
47
54
  companyName: string | null;
55
+ /**
56
+ * The company details of the buyer invoice, when it is a company.
57
+ * @type {CompanyInformationDto}
58
+ * @memberof DomainTransferDetailsBuyerDto
59
+ */
60
+ companyInfo: CompanyInformationDto | null;
48
61
  }
62
+ /**
63
+ * @export
64
+ */
65
+ export declare const DomainTransferDetailsBuyerDtoTypeEnum: {
66
+ readonly COMPANY: "company";
67
+ readonly GOVERNMENT_ENTITY: "government_entity";
68
+ readonly INDIVIDUAL: "individual";
69
+ readonly NON_PROFIT: "non_profit";
70
+ };
71
+ export type DomainTransferDetailsBuyerDtoTypeEnum = typeof DomainTransferDetailsBuyerDtoTypeEnum[keyof typeof DomainTransferDetailsBuyerDtoTypeEnum];
49
72
  /**
50
73
  * Check if a given object implements the DomainTransferDetailsBuyerDto interface.
51
74
  */
@@ -13,17 +13,30 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DomainTransferDetailsBuyerDtoTypeEnum = void 0;
16
17
  exports.instanceOfDomainTransferDetailsBuyerDto = instanceOfDomainTransferDetailsBuyerDto;
17
18
  exports.DomainTransferDetailsBuyerDtoFromJSON = DomainTransferDetailsBuyerDtoFromJSON;
18
19
  exports.DomainTransferDetailsBuyerDtoFromJSONTyped = DomainTransferDetailsBuyerDtoFromJSONTyped;
19
20
  exports.DomainTransferDetailsBuyerDtoToJSON = DomainTransferDetailsBuyerDtoToJSON;
20
21
  exports.DomainTransferDetailsBuyerDtoToJSONTyped = DomainTransferDetailsBuyerDtoToJSONTyped;
22
+ var CompanyInformationDto_1 = require("./CompanyInformationDto");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.DomainTransferDetailsBuyerDtoTypeEnum = {
27
+ COMPANY: 'company',
28
+ GOVERNMENT_ENTITY: 'government_entity',
29
+ INDIVIDUAL: 'individual',
30
+ NON_PROFIT: 'non_profit'
31
+ };
21
32
  /**
22
33
  * Check if a given object implements the DomainTransferDetailsBuyerDto interface.
23
34
  */
24
35
  function instanceOfDomainTransferDetailsBuyerDto(value) {
25
36
  if (!('id' in value) || value['id'] === undefined)
26
37
  return false;
38
+ if (!('type' in value) || value['type'] === undefined)
39
+ return false;
27
40
  if (!('email' in value) || value['email'] === undefined)
28
41
  return false;
29
42
  if (!('firstName' in value) || value['firstName'] === undefined)
@@ -32,6 +45,8 @@ function instanceOfDomainTransferDetailsBuyerDto(value) {
32
45
  return false;
33
46
  if (!('companyName' in value) || value['companyName'] === undefined)
34
47
  return false;
48
+ if (!('companyInfo' in value) || value['companyInfo'] === undefined)
49
+ return false;
35
50
  return true;
36
51
  }
37
52
  function DomainTransferDetailsBuyerDtoFromJSON(json) {
@@ -43,10 +58,12 @@ function DomainTransferDetailsBuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
43
58
  }
44
59
  return {
45
60
  'id': json['id'],
61
+ 'type': json['type'],
46
62
  'email': json['email'],
47
63
  'firstName': json['firstName'],
48
64
  'lastName': json['lastName'],
49
65
  'companyName': json['companyName'],
66
+ 'companyInfo': (0, CompanyInformationDto_1.CompanyInformationDtoFromJSON)(json['companyInfo']),
50
67
  };
51
68
  }
52
69
  function DomainTransferDetailsBuyerDtoToJSON(json) {
@@ -59,9 +76,11 @@ function DomainTransferDetailsBuyerDtoToJSONTyped(value, ignoreDiscriminator) {
59
76
  }
60
77
  return {
61
78
  'id': value['id'],
79
+ 'type': value['type'],
62
80
  'email': value['email'],
63
81
  'firstName': value['firstName'],
64
82
  'lastName': value['lastName'],
65
83
  'companyName': value['companyName'],
84
+ 'companyInfo': (0, CompanyInformationDto_1.CompanyInformationDtoToJSON)(value['companyInfo']),
66
85
  };
67
86
  }
@@ -0,0 +1,32 @@
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 DomainTransferDetailsBuyerInfoDto
16
+ */
17
+ export interface DomainTransferDetailsBuyerInfoDto {
18
+ /**
19
+ * The buyer social security number.
20
+ * @type {string}
21
+ * @memberof DomainTransferDetailsBuyerInfoDto
22
+ */
23
+ socialSecurityNumber: string | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the DomainTransferDetailsBuyerInfoDto interface.
27
+ */
28
+ export declare function instanceOfDomainTransferDetailsBuyerInfoDto(value: object): value is DomainTransferDetailsBuyerInfoDto;
29
+ export declare function DomainTransferDetailsBuyerInfoDtoFromJSON(json: any): DomainTransferDetailsBuyerInfoDto;
30
+ export declare function DomainTransferDetailsBuyerInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferDetailsBuyerInfoDto;
31
+ export declare function DomainTransferDetailsBuyerInfoDtoToJSON(json: any): DomainTransferDetailsBuyerInfoDto;
32
+ export declare function DomainTransferDetailsBuyerInfoDtoToJSONTyped(value?: DomainTransferDetailsBuyerInfoDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfDomainTransferDetailsBuyerInfoDto = instanceOfDomainTransferDetailsBuyerInfoDto;
17
+ exports.DomainTransferDetailsBuyerInfoDtoFromJSON = DomainTransferDetailsBuyerInfoDtoFromJSON;
18
+ exports.DomainTransferDetailsBuyerInfoDtoFromJSONTyped = DomainTransferDetailsBuyerInfoDtoFromJSONTyped;
19
+ exports.DomainTransferDetailsBuyerInfoDtoToJSON = DomainTransferDetailsBuyerInfoDtoToJSON;
20
+ exports.DomainTransferDetailsBuyerInfoDtoToJSONTyped = DomainTransferDetailsBuyerInfoDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DomainTransferDetailsBuyerInfoDto interface.
23
+ */
24
+ function instanceOfDomainTransferDetailsBuyerInfoDto(value) {
25
+ if (!('socialSecurityNumber' in value) || value['socialSecurityNumber'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function DomainTransferDetailsBuyerInfoDtoFromJSON(json) {
30
+ return DomainTransferDetailsBuyerInfoDtoFromJSONTyped(json, false);
31
+ }
32
+ function DomainTransferDetailsBuyerInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'socialSecurityNumber': json['socialSecurityNumber'],
38
+ };
39
+ }
40
+ function DomainTransferDetailsBuyerInfoDtoToJSON(json) {
41
+ return DomainTransferDetailsBuyerInfoDtoToJSONTyped(json, false);
42
+ }
43
+ function DomainTransferDetailsBuyerInfoDtoToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'socialSecurityNumber': value['socialSecurityNumber'],
50
+ };
51
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { DomainTransferDetailsBuyerInfoDto } from './DomainTransferDetailsBuyerInfoDto';
12
13
  import type { DomainTransferDetailsSubscriptionDto } from './DomainTransferDetailsSubscriptionDto';
13
14
  import type { DomainTransferDetailsOrderDto } from './DomainTransferDetailsOrderDto';
14
15
  import type { DomainTransferDetailSellerPayoutInvoiceDto } from './DomainTransferDetailSellerPayoutInvoiceDto';
@@ -46,6 +47,12 @@ export interface DomainTransferDetailsDto {
46
47
  * @memberof DomainTransferDetailsDto
47
48
  */
48
49
  subscription: DomainTransferDetailsSubscriptionDto | null;
50
+ /**
51
+ * The transfer information provided by the buyer.
52
+ * @type {DomainTransferDetailsBuyerInfoDto}
53
+ * @memberof DomainTransferDetailsDto
54
+ */
55
+ buyerInfo: DomainTransferDetailsBuyerInfoDto | null;
49
56
  /**
50
57
  * The domain transfer status.
51
58
  * @type {string}
@@ -19,6 +19,7 @@ exports.DomainTransferDetailsDtoFromJSON = DomainTransferDetailsDtoFromJSON;
19
19
  exports.DomainTransferDetailsDtoFromJSONTyped = DomainTransferDetailsDtoFromJSONTyped;
20
20
  exports.DomainTransferDetailsDtoToJSON = DomainTransferDetailsDtoToJSON;
21
21
  exports.DomainTransferDetailsDtoToJSONTyped = DomainTransferDetailsDtoToJSONTyped;
22
+ var DomainTransferDetailsBuyerInfoDto_1 = require("./DomainTransferDetailsBuyerInfoDto");
22
23
  var DomainTransferDetailsSubscriptionDto_1 = require("./DomainTransferDetailsSubscriptionDto");
23
24
  var DomainTransferDetailsOrderDto_1 = require("./DomainTransferDetailsOrderDto");
24
25
  var DomainTransferDetailSellerPayoutInvoiceDto_1 = require("./DomainTransferDetailSellerPayoutInvoiceDto");
@@ -60,6 +61,8 @@ function instanceOfDomainTransferDetailsDto(value) {
60
61
  return false;
61
62
  if (!('subscription' in value) || value['subscription'] === undefined)
62
63
  return false;
64
+ if (!('buyerInfo' in value) || value['buyerInfo'] === undefined)
65
+ return false;
63
66
  if (!('status' in value) || value['status'] === undefined)
64
67
  return false;
65
68
  if (!('statusSeller' in value) || value['statusSeller'] === undefined)
@@ -90,6 +93,7 @@ function DomainTransferDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
90
93
  'domain': (0, DomainTransferDetailsDomainDto_1.DomainTransferDetailsDomainDtoFromJSON)(json['domain']),
91
94
  'order': (0, DomainTransferDetailsOrderDto_1.DomainTransferDetailsOrderDtoFromJSON)(json['order']),
92
95
  'subscription': (0, DomainTransferDetailsSubscriptionDto_1.DomainTransferDetailsSubscriptionDtoFromJSON)(json['subscription']),
96
+ 'buyerInfo': (0, DomainTransferDetailsBuyerInfoDto_1.DomainTransferDetailsBuyerInfoDtoFromJSON)(json['buyerInfo']),
93
97
  'status': json['status'],
94
98
  'statusSeller': json['statusSeller'],
95
99
  'authCode': (0, DomainTransferDetailsAuthCodeDto_1.DomainTransferDetailsAuthCodeDtoFromJSON)(json['authCode']),
@@ -113,6 +117,7 @@ function DomainTransferDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
113
117
  'domain': (0, DomainTransferDetailsDomainDto_1.DomainTransferDetailsDomainDtoToJSON)(value['domain']),
114
118
  'order': (0, DomainTransferDetailsOrderDto_1.DomainTransferDetailsOrderDtoToJSON)(value['order']),
115
119
  'subscription': (0, DomainTransferDetailsSubscriptionDto_1.DomainTransferDetailsSubscriptionDtoToJSON)(value['subscription']),
120
+ 'buyerInfo': (0, DomainTransferDetailsBuyerInfoDto_1.DomainTransferDetailsBuyerInfoDtoToJSON)(value['buyerInfo']),
116
121
  'status': value['status'],
117
122
  'statusSeller': value['statusSeller'],
118
123
  'authCode': (0, DomainTransferDetailsAuthCodeDto_1.DomainTransferDetailsAuthCodeDtoToJSON)(value['authCode']),
@@ -0,0 +1,32 @@
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 UpdateAdminDomainTransferBuyerCompanyInfoInput
16
+ */
17
+ export interface UpdateAdminDomainTransferBuyerCompanyInfoInput {
18
+ /**
19
+ * Company registration or chamber of commerce ID of the buyer company. Null clears it.
20
+ * @type {string}
21
+ * @memberof UpdateAdminDomainTransferBuyerCompanyInfoInput
22
+ */
23
+ companyId: string | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateAdminDomainTransferBuyerCompanyInfoInput interface.
27
+ */
28
+ export declare function instanceOfUpdateAdminDomainTransferBuyerCompanyInfoInput(value: object): value is UpdateAdminDomainTransferBuyerCompanyInfoInput;
29
+ export declare function UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSON(json: any): UpdateAdminDomainTransferBuyerCompanyInfoInput;
30
+ export declare function UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAdminDomainTransferBuyerCompanyInfoInput;
31
+ export declare function UpdateAdminDomainTransferBuyerCompanyInfoInputToJSON(json: any): UpdateAdminDomainTransferBuyerCompanyInfoInput;
32
+ export declare function UpdateAdminDomainTransferBuyerCompanyInfoInputToJSONTyped(value?: UpdateAdminDomainTransferBuyerCompanyInfoInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUpdateAdminDomainTransferBuyerCompanyInfoInput = instanceOfUpdateAdminDomainTransferBuyerCompanyInfoInput;
17
+ exports.UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSON = UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSON;
18
+ exports.UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSONTyped = UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSONTyped;
19
+ exports.UpdateAdminDomainTransferBuyerCompanyInfoInputToJSON = UpdateAdminDomainTransferBuyerCompanyInfoInputToJSON;
20
+ exports.UpdateAdminDomainTransferBuyerCompanyInfoInputToJSONTyped = UpdateAdminDomainTransferBuyerCompanyInfoInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateAdminDomainTransferBuyerCompanyInfoInput interface.
23
+ */
24
+ function instanceOfUpdateAdminDomainTransferBuyerCompanyInfoInput(value) {
25
+ if (!('companyId' in value) || value['companyId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSON(json) {
30
+ return UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSONTyped(json, false);
31
+ }
32
+ function UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'companyId': json['companyId'],
38
+ };
39
+ }
40
+ function UpdateAdminDomainTransferBuyerCompanyInfoInputToJSON(json) {
41
+ return UpdateAdminDomainTransferBuyerCompanyInfoInputToJSONTyped(json, false);
42
+ }
43
+ function UpdateAdminDomainTransferBuyerCompanyInfoInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'companyId': value['companyId'],
50
+ };
51
+ }
@@ -0,0 +1,32 @@
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 UpdateAdminDomainTransferBuyerInfoInput
16
+ */
17
+ export interface UpdateAdminDomainTransferBuyerInfoInput {
18
+ /**
19
+ * Corrected buyer social security number required by certain domain transfer workflows.
20
+ * @type {string}
21
+ * @memberof UpdateAdminDomainTransferBuyerInfoInput
22
+ */
23
+ socialSecurityNumber: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateAdminDomainTransferBuyerInfoInput interface.
27
+ */
28
+ export declare function instanceOfUpdateAdminDomainTransferBuyerInfoInput(value: object): value is UpdateAdminDomainTransferBuyerInfoInput;
29
+ export declare function UpdateAdminDomainTransferBuyerInfoInputFromJSON(json: any): UpdateAdminDomainTransferBuyerInfoInput;
30
+ export declare function UpdateAdminDomainTransferBuyerInfoInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAdminDomainTransferBuyerInfoInput;
31
+ export declare function UpdateAdminDomainTransferBuyerInfoInputToJSON(json: any): UpdateAdminDomainTransferBuyerInfoInput;
32
+ export declare function UpdateAdminDomainTransferBuyerInfoInputToJSONTyped(value?: UpdateAdminDomainTransferBuyerInfoInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUpdateAdminDomainTransferBuyerInfoInput = instanceOfUpdateAdminDomainTransferBuyerInfoInput;
17
+ exports.UpdateAdminDomainTransferBuyerInfoInputFromJSON = UpdateAdminDomainTransferBuyerInfoInputFromJSON;
18
+ exports.UpdateAdminDomainTransferBuyerInfoInputFromJSONTyped = UpdateAdminDomainTransferBuyerInfoInputFromJSONTyped;
19
+ exports.UpdateAdminDomainTransferBuyerInfoInputToJSON = UpdateAdminDomainTransferBuyerInfoInputToJSON;
20
+ exports.UpdateAdminDomainTransferBuyerInfoInputToJSONTyped = UpdateAdminDomainTransferBuyerInfoInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateAdminDomainTransferBuyerInfoInput interface.
23
+ */
24
+ function instanceOfUpdateAdminDomainTransferBuyerInfoInput(value) {
25
+ if (!('socialSecurityNumber' in value) || value['socialSecurityNumber'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UpdateAdminDomainTransferBuyerInfoInputFromJSON(json) {
30
+ return UpdateAdminDomainTransferBuyerInfoInputFromJSONTyped(json, false);
31
+ }
32
+ function UpdateAdminDomainTransferBuyerInfoInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'socialSecurityNumber': json['socialSecurityNumber'],
38
+ };
39
+ }
40
+ function UpdateAdminDomainTransferBuyerInfoInputToJSON(json) {
41
+ return UpdateAdminDomainTransferBuyerInfoInputToJSONTyped(json, false);
42
+ }
43
+ function UpdateAdminDomainTransferBuyerInfoInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'socialSecurityNumber': value['socialSecurityNumber'],
50
+ };
51
+ }
@@ -223,6 +223,7 @@ export * from './DomainTransferDetailWorkflowStepActionDto';
223
223
  export * from './DomainTransferDetailWorkflowStepDto';
224
224
  export * from './DomainTransferDetailsAuthCodeDto';
225
225
  export * from './DomainTransferDetailsBuyerDto';
226
+ export * from './DomainTransferDetailsBuyerInfoDto';
226
227
  export * from './DomainTransferDetailsDomainDto';
227
228
  export * from './DomainTransferDetailsDto';
228
229
  export * from './DomainTransferDetailsOrderDto';
@@ -524,6 +525,8 @@ export * from './UkBankAccountDetails';
524
525
  export * from './UpdateAccountBillingInformationInput';
525
526
  export * from './UpdateAccountChallengeRewardBalanceInput';
526
527
  export * from './UpdateAccountNoteInput';
528
+ export * from './UpdateAdminDomainTransferBuyerCompanyInfoInput';
529
+ export * from './UpdateAdminDomainTransferBuyerInfoInput';
527
530
  export * from './UpdateApiKeyInput';
528
531
  export * from './UpdateAuctionMuteStatusInput';
529
532
  export * from './UpdateBuyerDomainTransferBuyerInfoInput';
@@ -241,6 +241,7 @@ __exportStar(require("./DomainTransferDetailWorkflowStepActionDto"), exports);
241
241
  __exportStar(require("./DomainTransferDetailWorkflowStepDto"), exports);
242
242
  __exportStar(require("./DomainTransferDetailsAuthCodeDto"), exports);
243
243
  __exportStar(require("./DomainTransferDetailsBuyerDto"), exports);
244
+ __exportStar(require("./DomainTransferDetailsBuyerInfoDto"), exports);
244
245
  __exportStar(require("./DomainTransferDetailsDomainDto"), exports);
245
246
  __exportStar(require("./DomainTransferDetailsDto"), exports);
246
247
  __exportStar(require("./DomainTransferDetailsOrderDto"), exports);
@@ -542,6 +543,8 @@ __exportStar(require("./UkBankAccountDetails"), exports);
542
543
  __exportStar(require("./UpdateAccountBillingInformationInput"), exports);
543
544
  __exportStar(require("./UpdateAccountChallengeRewardBalanceInput"), exports);
544
545
  __exportStar(require("./UpdateAccountNoteInput"), exports);
546
+ __exportStar(require("./UpdateAdminDomainTransferBuyerCompanyInfoInput"), exports);
547
+ __exportStar(require("./UpdateAdminDomainTransferBuyerInfoInput"), exports);
545
548
  __exportStar(require("./UpdateApiKeyInput"), exports);
546
549
  __exportStar(require("./UpdateAuctionMuteStatusInput"), exports);
547
550
  __exportStar(require("./UpdateBuyerDomainTransferBuyerInfoInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.482",
3
+ "version": "0.0.483",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -73,6 +73,8 @@ import type {
73
73
  SubscriptionDetailsDto,
74
74
  UpdateAccountChallengeRewardBalanceInput,
75
75
  UpdateAccountNoteInput,
76
+ UpdateAdminDomainTransferBuyerCompanyInfoInput,
77
+ UpdateAdminDomainTransferBuyerInfoInput,
76
78
  UpdateChallengeInput,
77
79
  UpdateFeatureFlagInput,
78
80
  UpdateMarketplaceInput,
@@ -196,6 +198,10 @@ import {
196
198
  UpdateAccountChallengeRewardBalanceInputToJSON,
197
199
  UpdateAccountNoteInputFromJSON,
198
200
  UpdateAccountNoteInputToJSON,
201
+ UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSON,
202
+ UpdateAdminDomainTransferBuyerCompanyInfoInputToJSON,
203
+ UpdateAdminDomainTransferBuyerInfoInputFromJSON,
204
+ UpdateAdminDomainTransferBuyerInfoInputToJSON,
199
205
  UpdateChallengeInputFromJSON,
200
206
  UpdateChallengeInputToJSON,
201
207
  UpdateFeatureFlagInputFromJSON,
@@ -221,6 +227,16 @@ export interface AdminApiAdminGetAllDomainTransfersRequest {
221
227
  filterStatus?: string;
222
228
  }
223
229
 
230
+ export interface AdminApiAdminUpdateDomainTransferBuyerCompanyInfoRequest {
231
+ transferId: string;
232
+ updateAdminDomainTransferBuyerCompanyInfoInput: UpdateAdminDomainTransferBuyerCompanyInfoInput;
233
+ }
234
+
235
+ export interface AdminApiAdminUpdateDomainTransferBuyerInfoRequest {
236
+ transferId: string;
237
+ updateAdminDomainTransferBuyerInfoInput: UpdateAdminDomainTransferBuyerInfoInput;
238
+ }
239
+
224
240
  export interface AdminApiBulkCommissionActionsRequest {
225
241
  bulkCommissionActionsInput: BulkCommissionActionsInput;
226
242
  }
@@ -702,6 +718,110 @@ export class AdminApi extends runtime.BaseAPI {
702
718
  return await response.value();
703
719
  }
704
720
 
721
+ /**
722
+ * Corrects the company registration id stored on the active buyer invoice of the domain transfer. The registry contact of the transfer is built from it; the issued invoice and its taxes are left untouched.
723
+ * Update the company id of the buyer
724
+ */
725
+ async adminUpdateDomainTransferBuyerCompanyInfoRaw(requestParameters: AdminApiAdminUpdateDomainTransferBuyerCompanyInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
726
+ if (requestParameters['transferId'] == null) {
727
+ throw new runtime.RequiredError(
728
+ 'transferId',
729
+ 'Required parameter "transferId" was null or undefined when calling adminUpdateDomainTransferBuyerCompanyInfo().'
730
+ );
731
+ }
732
+
733
+ if (requestParameters['updateAdminDomainTransferBuyerCompanyInfoInput'] == null) {
734
+ throw new runtime.RequiredError(
735
+ 'updateAdminDomainTransferBuyerCompanyInfoInput',
736
+ 'Required parameter "updateAdminDomainTransferBuyerCompanyInfoInput" was null or undefined when calling adminUpdateDomainTransferBuyerCompanyInfo().'
737
+ );
738
+ }
739
+
740
+ const queryParameters: any = {};
741
+
742
+ const headerParameters: runtime.HTTPHeaders = {};
743
+
744
+ headerParameters['Content-Type'] = 'application/json';
745
+
746
+ if (this.configuration && this.configuration.accessToken) {
747
+ const token = this.configuration.accessToken;
748
+ const tokenString = await token("bearer", []);
749
+
750
+ if (tokenString) {
751
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
752
+ }
753
+ }
754
+ const response = await this.request({
755
+ path: `/admin/domain-transfers/{transferId}/buyer-company-info`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
756
+ method: 'PATCH',
757
+ headers: headerParameters,
758
+ query: queryParameters,
759
+ body: UpdateAdminDomainTransferBuyerCompanyInfoInputToJSON(requestParameters['updateAdminDomainTransferBuyerCompanyInfoInput']),
760
+ }, initOverrides);
761
+
762
+ return new runtime.VoidApiResponse(response);
763
+ }
764
+
765
+ /**
766
+ * Corrects the company registration id stored on the active buyer invoice of the domain transfer. The registry contact of the transfer is built from it; the issued invoice and its taxes are left untouched.
767
+ * Update the company id of the buyer
768
+ */
769
+ async adminUpdateDomainTransferBuyerCompanyInfo(requestParameters: AdminApiAdminUpdateDomainTransferBuyerCompanyInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
770
+ await this.adminUpdateDomainTransferBuyerCompanyInfoRaw(requestParameters, initOverrides);
771
+ }
772
+
773
+ /**
774
+ * Corrects the transfer information the buyer provided for the domain transfer, such as the social security number some registries require. Unlike the buyer endpoint, it is allowed at any point of the workflow, but only once the buyer has provided a value.
775
+ * Correct the transfer info of the buyer
776
+ */
777
+ async adminUpdateDomainTransferBuyerInfoRaw(requestParameters: AdminApiAdminUpdateDomainTransferBuyerInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
778
+ if (requestParameters['transferId'] == null) {
779
+ throw new runtime.RequiredError(
780
+ 'transferId',
781
+ 'Required parameter "transferId" was null or undefined when calling adminUpdateDomainTransferBuyerInfo().'
782
+ );
783
+ }
784
+
785
+ if (requestParameters['updateAdminDomainTransferBuyerInfoInput'] == null) {
786
+ throw new runtime.RequiredError(
787
+ 'updateAdminDomainTransferBuyerInfoInput',
788
+ 'Required parameter "updateAdminDomainTransferBuyerInfoInput" was null or undefined when calling adminUpdateDomainTransferBuyerInfo().'
789
+ );
790
+ }
791
+
792
+ const queryParameters: any = {};
793
+
794
+ const headerParameters: runtime.HTTPHeaders = {};
795
+
796
+ headerParameters['Content-Type'] = 'application/json';
797
+
798
+ if (this.configuration && this.configuration.accessToken) {
799
+ const token = this.configuration.accessToken;
800
+ const tokenString = await token("bearer", []);
801
+
802
+ if (tokenString) {
803
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
804
+ }
805
+ }
806
+ const response = await this.request({
807
+ path: `/admin/domain-transfers/{transferId}/buyer-info`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
808
+ method: 'PATCH',
809
+ headers: headerParameters,
810
+ query: queryParameters,
811
+ body: UpdateAdminDomainTransferBuyerInfoInputToJSON(requestParameters['updateAdminDomainTransferBuyerInfoInput']),
812
+ }, initOverrides);
813
+
814
+ return new runtime.VoidApiResponse(response);
815
+ }
816
+
817
+ /**
818
+ * Corrects the transfer information the buyer provided for the domain transfer, such as the social security number some registries require. Unlike the buyer endpoint, it is allowed at any point of the workflow, but only once the buyer has provided a value.
819
+ * Correct the transfer info of the buyer
820
+ */
821
+ async adminUpdateDomainTransferBuyerInfo(requestParameters: AdminApiAdminUpdateDomainTransferBuyerInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
822
+ await this.adminUpdateDomainTransferBuyerInfoRaw(requestParameters, initOverrides);
823
+ }
824
+
705
825
  /**
706
826
  * Executes multiple commission add, update, or delete actions in a single request.
707
827
  * Bulk commission actions
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { CompanyInformationDto } from './CompanyInformationDto';
17
+ import {
18
+ CompanyInformationDtoFromJSON,
19
+ CompanyInformationDtoFromJSONTyped,
20
+ CompanyInformationDtoToJSON,
21
+ CompanyInformationDtoToJSONTyped,
22
+ } from './CompanyInformationDto';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -25,6 +33,12 @@ export interface DomainTransferDetailsBuyerDto {
25
33
  * @memberof DomainTransferDetailsBuyerDto
26
34
  */
27
35
  id: string;
36
+ /**
37
+ * Whether the buyer invoice billing details represent a person or a company.
38
+ * @type {string}
39
+ * @memberof DomainTransferDetailsBuyerDto
40
+ */
41
+ type: DomainTransferDetailsBuyerDtoTypeEnum;
28
42
  /**
29
43
  * The buyer email address.
30
44
  * @type {string}
@@ -49,17 +63,38 @@ export interface DomainTransferDetailsBuyerDto {
49
63
  * @memberof DomainTransferDetailsBuyerDto
50
64
  */
51
65
  companyName: string | null;
66
+ /**
67
+ * The company details of the buyer invoice, when it is a company.
68
+ * @type {CompanyInformationDto}
69
+ * @memberof DomainTransferDetailsBuyerDto
70
+ */
71
+ companyInfo: CompanyInformationDto | null;
52
72
  }
53
73
 
74
+
75
+ /**
76
+ * @export
77
+ */
78
+ export const DomainTransferDetailsBuyerDtoTypeEnum = {
79
+ COMPANY: 'company',
80
+ GOVERNMENT_ENTITY: 'government_entity',
81
+ INDIVIDUAL: 'individual',
82
+ NON_PROFIT: 'non_profit'
83
+ } as const;
84
+ export type DomainTransferDetailsBuyerDtoTypeEnum = typeof DomainTransferDetailsBuyerDtoTypeEnum[keyof typeof DomainTransferDetailsBuyerDtoTypeEnum];
85
+
86
+
54
87
  /**
55
88
  * Check if a given object implements the DomainTransferDetailsBuyerDto interface.
56
89
  */
57
90
  export function instanceOfDomainTransferDetailsBuyerDto(value: object): value is DomainTransferDetailsBuyerDto {
58
91
  if (!('id' in value) || value['id'] === undefined) return false;
92
+ if (!('type' in value) || value['type'] === undefined) return false;
59
93
  if (!('email' in value) || value['email'] === undefined) return false;
60
94
  if (!('firstName' in value) || value['firstName'] === undefined) return false;
61
95
  if (!('lastName' in value) || value['lastName'] === undefined) return false;
62
96
  if (!('companyName' in value) || value['companyName'] === undefined) return false;
97
+ if (!('companyInfo' in value) || value['companyInfo'] === undefined) return false;
63
98
  return true;
64
99
  }
65
100
 
@@ -74,10 +109,12 @@ export function DomainTransferDetailsBuyerDtoFromJSONTyped(json: any, ignoreDisc
74
109
  return {
75
110
 
76
111
  'id': json['id'],
112
+ 'type': json['type'],
77
113
  'email': json['email'],
78
114
  'firstName': json['firstName'],
79
115
  'lastName': json['lastName'],
80
116
  'companyName': json['companyName'],
117
+ 'companyInfo': CompanyInformationDtoFromJSON(json['companyInfo']),
81
118
  };
82
119
  }
83
120
 
@@ -93,10 +130,12 @@ export function DomainTransferDetailsBuyerDtoToJSONTyped(value?: DomainTransferD
93
130
  return {
94
131
 
95
132
  'id': value['id'],
133
+ 'type': value['type'],
96
134
  'email': value['email'],
97
135
  'firstName': value['firstName'],
98
136
  'lastName': value['lastName'],
99
137
  'companyName': value['companyName'],
138
+ 'companyInfo': CompanyInformationDtoToJSON(value['companyInfo']),
100
139
  };
101
140
  }
102
141
 
@@ -0,0 +1,66 @@
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 DomainTransferDetailsBuyerInfoDto
20
+ */
21
+ export interface DomainTransferDetailsBuyerInfoDto {
22
+ /**
23
+ * The buyer social security number.
24
+ * @type {string}
25
+ * @memberof DomainTransferDetailsBuyerInfoDto
26
+ */
27
+ socialSecurityNumber: string | null;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the DomainTransferDetailsBuyerInfoDto interface.
32
+ */
33
+ export function instanceOfDomainTransferDetailsBuyerInfoDto(value: object): value is DomainTransferDetailsBuyerInfoDto {
34
+ if (!('socialSecurityNumber' in value) || value['socialSecurityNumber'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function DomainTransferDetailsBuyerInfoDtoFromJSON(json: any): DomainTransferDetailsBuyerInfoDto {
39
+ return DomainTransferDetailsBuyerInfoDtoFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function DomainTransferDetailsBuyerInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferDetailsBuyerInfoDto {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'socialSecurityNumber': json['socialSecurityNumber'],
49
+ };
50
+ }
51
+
52
+ export function DomainTransferDetailsBuyerInfoDtoToJSON(json: any): DomainTransferDetailsBuyerInfoDto {
53
+ return DomainTransferDetailsBuyerInfoDtoToJSONTyped(json, false);
54
+ }
55
+
56
+ export function DomainTransferDetailsBuyerInfoDtoToJSONTyped(value?: DomainTransferDetailsBuyerInfoDto | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'socialSecurityNumber': value['socialSecurityNumber'],
64
+ };
65
+ }
66
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { DomainTransferDetailsBuyerInfoDto } from './DomainTransferDetailsBuyerInfoDto';
17
+ import {
18
+ DomainTransferDetailsBuyerInfoDtoFromJSON,
19
+ DomainTransferDetailsBuyerInfoDtoFromJSONTyped,
20
+ DomainTransferDetailsBuyerInfoDtoToJSON,
21
+ DomainTransferDetailsBuyerInfoDtoToJSONTyped,
22
+ } from './DomainTransferDetailsBuyerInfoDto';
16
23
  import type { DomainTransferDetailsSubscriptionDto } from './DomainTransferDetailsSubscriptionDto';
17
24
  import {
18
25
  DomainTransferDetailsSubscriptionDtoFromJSON,
@@ -93,6 +100,12 @@ export interface DomainTransferDetailsDto {
93
100
  * @memberof DomainTransferDetailsDto
94
101
  */
95
102
  subscription: DomainTransferDetailsSubscriptionDto | null;
103
+ /**
104
+ * The transfer information provided by the buyer.
105
+ * @type {DomainTransferDetailsBuyerInfoDto}
106
+ * @memberof DomainTransferDetailsDto
107
+ */
108
+ buyerInfo: DomainTransferDetailsBuyerInfoDto | null;
96
109
  /**
97
110
  * The domain transfer status.
98
111
  * @type {string}
@@ -179,6 +192,7 @@ export function instanceOfDomainTransferDetailsDto(value: object): value is Doma
179
192
  if (!('domain' in value) || value['domain'] === undefined) return false;
180
193
  if (!('order' in value) || value['order'] === undefined) return false;
181
194
  if (!('subscription' in value) || value['subscription'] === undefined) return false;
195
+ if (!('buyerInfo' in value) || value['buyerInfo'] === undefined) return false;
182
196
  if (!('status' in value) || value['status'] === undefined) return false;
183
197
  if (!('statusSeller' in value) || value['statusSeller'] === undefined) return false;
184
198
  if (!('authCode' in value) || value['authCode'] === undefined) return false;
@@ -204,6 +218,7 @@ export function DomainTransferDetailsDtoFromJSONTyped(json: any, ignoreDiscrimin
204
218
  'domain': DomainTransferDetailsDomainDtoFromJSON(json['domain']),
205
219
  'order': DomainTransferDetailsOrderDtoFromJSON(json['order']),
206
220
  'subscription': DomainTransferDetailsSubscriptionDtoFromJSON(json['subscription']),
221
+ 'buyerInfo': DomainTransferDetailsBuyerInfoDtoFromJSON(json['buyerInfo']),
207
222
  'status': json['status'],
208
223
  'statusSeller': json['statusSeller'],
209
224
  'authCode': DomainTransferDetailsAuthCodeDtoFromJSON(json['authCode']),
@@ -230,6 +245,7 @@ export function DomainTransferDetailsDtoToJSONTyped(value?: DomainTransferDetail
230
245
  'domain': DomainTransferDetailsDomainDtoToJSON(value['domain']),
231
246
  'order': DomainTransferDetailsOrderDtoToJSON(value['order']),
232
247
  'subscription': DomainTransferDetailsSubscriptionDtoToJSON(value['subscription']),
248
+ 'buyerInfo': DomainTransferDetailsBuyerInfoDtoToJSON(value['buyerInfo']),
233
249
  'status': value['status'],
234
250
  'statusSeller': value['statusSeller'],
235
251
  'authCode': DomainTransferDetailsAuthCodeDtoToJSON(value['authCode']),
@@ -0,0 +1,66 @@
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 UpdateAdminDomainTransferBuyerCompanyInfoInput
20
+ */
21
+ export interface UpdateAdminDomainTransferBuyerCompanyInfoInput {
22
+ /**
23
+ * Company registration or chamber of commerce ID of the buyer company. Null clears it.
24
+ * @type {string}
25
+ * @memberof UpdateAdminDomainTransferBuyerCompanyInfoInput
26
+ */
27
+ companyId: string | null;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the UpdateAdminDomainTransferBuyerCompanyInfoInput interface.
32
+ */
33
+ export function instanceOfUpdateAdminDomainTransferBuyerCompanyInfoInput(value: object): value is UpdateAdminDomainTransferBuyerCompanyInfoInput {
34
+ if (!('companyId' in value) || value['companyId'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSON(json: any): UpdateAdminDomainTransferBuyerCompanyInfoInput {
39
+ return UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function UpdateAdminDomainTransferBuyerCompanyInfoInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAdminDomainTransferBuyerCompanyInfoInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'companyId': json['companyId'],
49
+ };
50
+ }
51
+
52
+ export function UpdateAdminDomainTransferBuyerCompanyInfoInputToJSON(json: any): UpdateAdminDomainTransferBuyerCompanyInfoInput {
53
+ return UpdateAdminDomainTransferBuyerCompanyInfoInputToJSONTyped(json, false);
54
+ }
55
+
56
+ export function UpdateAdminDomainTransferBuyerCompanyInfoInputToJSONTyped(value?: UpdateAdminDomainTransferBuyerCompanyInfoInput | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'companyId': value['companyId'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,66 @@
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 UpdateAdminDomainTransferBuyerInfoInput
20
+ */
21
+ export interface UpdateAdminDomainTransferBuyerInfoInput {
22
+ /**
23
+ * Corrected buyer social security number required by certain domain transfer workflows.
24
+ * @type {string}
25
+ * @memberof UpdateAdminDomainTransferBuyerInfoInput
26
+ */
27
+ socialSecurityNumber: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the UpdateAdminDomainTransferBuyerInfoInput interface.
32
+ */
33
+ export function instanceOfUpdateAdminDomainTransferBuyerInfoInput(value: object): value is UpdateAdminDomainTransferBuyerInfoInput {
34
+ if (!('socialSecurityNumber' in value) || value['socialSecurityNumber'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function UpdateAdminDomainTransferBuyerInfoInputFromJSON(json: any): UpdateAdminDomainTransferBuyerInfoInput {
39
+ return UpdateAdminDomainTransferBuyerInfoInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function UpdateAdminDomainTransferBuyerInfoInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAdminDomainTransferBuyerInfoInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'socialSecurityNumber': json['socialSecurityNumber'],
49
+ };
50
+ }
51
+
52
+ export function UpdateAdminDomainTransferBuyerInfoInputToJSON(json: any): UpdateAdminDomainTransferBuyerInfoInput {
53
+ return UpdateAdminDomainTransferBuyerInfoInputToJSONTyped(json, false);
54
+ }
55
+
56
+ export function UpdateAdminDomainTransferBuyerInfoInputToJSONTyped(value?: UpdateAdminDomainTransferBuyerInfoInput | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'socialSecurityNumber': value['socialSecurityNumber'],
64
+ };
65
+ }
66
+
@@ -225,6 +225,7 @@ export * from './DomainTransferDetailWorkflowStepActionDto';
225
225
  export * from './DomainTransferDetailWorkflowStepDto';
226
226
  export * from './DomainTransferDetailsAuthCodeDto';
227
227
  export * from './DomainTransferDetailsBuyerDto';
228
+ export * from './DomainTransferDetailsBuyerInfoDto';
228
229
  export * from './DomainTransferDetailsDomainDto';
229
230
  export * from './DomainTransferDetailsDto';
230
231
  export * from './DomainTransferDetailsOrderDto';
@@ -526,6 +527,8 @@ export * from './UkBankAccountDetails';
526
527
  export * from './UpdateAccountBillingInformationInput';
527
528
  export * from './UpdateAccountChallengeRewardBalanceInput';
528
529
  export * from './UpdateAccountNoteInput';
530
+ export * from './UpdateAdminDomainTransferBuyerCompanyInfoInput';
531
+ export * from './UpdateAdminDomainTransferBuyerInfoInput';
529
532
  export * from './UpdateApiKeyInput';
530
533
  export * from './UpdateAuctionMuteStatusInput';
531
534
  export * from './UpdateBuyerDomainTransferBuyerInfoInput';