@randock/nameshift-api-client 0.0.372 → 0.0.374

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 (45) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +12 -1
  4. package/dist/apis/AdminApi.js +53 -0
  5. package/dist/models/AccountBankAccountDtoDetails.d.ts +3 -0
  6. package/dist/models/AccountBankAccountDtoDetails.js +5 -0
  7. package/dist/models/AdminBuyerLoginDto.d.ts +32 -0
  8. package/dist/models/AdminBuyerLoginDto.js +51 -0
  9. package/dist/models/AuBankAccountDetails.d.ts +1 -0
  10. package/dist/models/AuBankAccountDetails.js +1 -0
  11. package/dist/models/CaBankAccountDetails.d.ts +1 -0
  12. package/dist/models/CaBankAccountDetails.js +1 -0
  13. package/dist/models/DomainTransferDto.d.ts +6 -0
  14. package/dist/models/DomainTransferDto.js +4 -0
  15. package/dist/models/NzBankAccountDetails.d.ts +1 -0
  16. package/dist/models/NzBankAccountDetails.js +1 -0
  17. package/dist/models/OrderListItemDtoBuyerInformation.d.ts +6 -0
  18. package/dist/models/OrderListItemDtoBuyerInformation.js +4 -0
  19. package/dist/models/SeBankAccountDetails.d.ts +75 -0
  20. package/dist/models/SeBankAccountDetails.js +84 -0
  21. package/dist/models/SepaBankAccountDetails.d.ts +1 -0
  22. package/dist/models/SepaBankAccountDetails.js +1 -0
  23. package/dist/models/SubscriptionListItemDtoBuyerInformation.d.ts +6 -0
  24. package/dist/models/SubscriptionListItemDtoBuyerInformation.js +4 -0
  25. package/dist/models/UkBankAccountDetails.d.ts +1 -0
  26. package/dist/models/UkBankAccountDetails.js +1 -0
  27. package/dist/models/UsBankAccountDetails.d.ts +1 -0
  28. package/dist/models/UsBankAccountDetails.js +1 -0
  29. package/dist/models/index.d.ts +2 -0
  30. package/dist/models/index.js +2 -0
  31. package/package.json +1 -1
  32. package/src/apis/AdminApi.ts +48 -0
  33. package/src/models/AccountBankAccountDtoDetails.ts +12 -1
  34. package/src/models/AdminBuyerLoginDto.ts +66 -0
  35. package/src/models/AuBankAccountDetails.ts +1 -0
  36. package/src/models/CaBankAccountDetails.ts +1 -0
  37. package/src/models/DomainTransferDto.ts +9 -0
  38. package/src/models/NzBankAccountDetails.ts +1 -0
  39. package/src/models/OrderListItemDtoBuyerInformation.ts +9 -0
  40. package/src/models/SeBankAccountDetails.ts +127 -0
  41. package/src/models/SepaBankAccountDetails.ts +1 -0
  42. package/src/models/SubscriptionListItemDtoBuyerInformation.ts +9 -0
  43. package/src/models/UkBankAccountDetails.ts +1 -0
  44. package/src/models/UsBankAccountDetails.ts +1 -0
  45. package/src/models/index.ts +2 -0
@@ -71,6 +71,7 @@ src/models/AdminAccountSettingsInput.ts
71
71
  src/models/AdminAuctionCommissionByDateRangeInput.ts
72
72
  src/models/AdminAuctionConfigurationInput.ts
73
73
  src/models/AdminBankAccountDto.ts
74
+ src/models/AdminBuyerLoginDto.ts
74
75
  src/models/AdminCompanyStatsDto.ts
75
76
  src/models/AdminCompanyStatsLedger.ts
76
77
  src/models/AdminDashboardStatsDto.ts
@@ -356,6 +357,7 @@ src/models/RequestEmailOtpInput.ts
356
357
  src/models/SalesCountCommissionPayloadDto.ts
357
358
  src/models/SalesCountCommissionPayloadInput.ts
358
359
  src/models/SalesCountCommissionReasonPayloadDto.ts
360
+ src/models/SeBankAccountDetails.ts
359
361
  src/models/SellerAccountReferralListItemDto.ts
360
362
  src/models/SellerAffiliateCommissionDto.ts
361
363
  src/models/SellerAuctionListItemDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.372
1
+ ## @randock/nameshift-api-client@0.0.374
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.372 --save
39
+ npm install @randock/nameshift-api-client@0.0.374 --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
- e69ff99439309b5e525c109e7f4008f2f1cf490299a5c1d3e650bd08000e22486eda11bb61fbf4a942fd80c148f53444
47
+ 19aefb41454d2d9af0a3565f87d90aace47f579ae4acd0f102a90f89a56b60ee6b4a63938d6d3c0490a36de32551a282
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, DomainLockDto, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
13
+ import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, DomainLockDto, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -127,6 +127,9 @@ export interface AdminApiListLedgerMutationsRequest {
127
127
  export interface AdminApiLoginAsRequest {
128
128
  accountId: string;
129
129
  }
130
+ export interface AdminApiLoginAsBuyerRequest {
131
+ buyerId: string;
132
+ }
130
133
  export interface AdminApiPayDomainTransferSellerInvoiceRequest {
131
134
  transferId: string;
132
135
  invoiceId: string;
@@ -390,6 +393,14 @@ export declare class AdminApi extends runtime.BaseAPI {
390
393
  *
391
394
  */
392
395
  loginAs(requestParameters: AdminApiLoginAsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminAccountLoginDto>;
396
+ /**
397
+ *
398
+ */
399
+ loginAsBuyerRaw(requestParameters: AdminApiLoginAsBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminBuyerLoginDto>>;
400
+ /**
401
+ *
402
+ */
403
+ loginAsBuyer(requestParameters: AdminApiLoginAsBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminBuyerLoginDto>;
393
404
  /**
394
405
  *
395
406
  */
@@ -1675,6 +1675,59 @@ var AdminApi = /** @class */ (function (_super) {
1675
1675
  });
1676
1676
  });
1677
1677
  };
1678
+ /**
1679
+ *
1680
+ */
1681
+ AdminApi.prototype.loginAsBuyerRaw = function (requestParameters, initOverrides) {
1682
+ return __awaiter(this, void 0, void 0, function () {
1683
+ var queryParameters, headerParameters, token, tokenString, response;
1684
+ return __generator(this, function (_a) {
1685
+ switch (_a.label) {
1686
+ case 0:
1687
+ if (requestParameters['buyerId'] == null) {
1688
+ throw new runtime.RequiredError('buyerId', 'Required parameter "buyerId" was null or undefined when calling loginAsBuyer().');
1689
+ }
1690
+ queryParameters = {};
1691
+ headerParameters = {};
1692
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1693
+ token = this.configuration.accessToken;
1694
+ return [4 /*yield*/, token("bearer", [])];
1695
+ case 1:
1696
+ tokenString = _a.sent();
1697
+ if (tokenString) {
1698
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1699
+ }
1700
+ _a.label = 2;
1701
+ case 2: return [4 /*yield*/, this.request({
1702
+ path: "/admin/buyers/{buyerId}/login-as".replace("{".concat("buyerId", "}"), encodeURIComponent(String(requestParameters['buyerId']))),
1703
+ method: 'POST',
1704
+ headers: headerParameters,
1705
+ query: queryParameters,
1706
+ }, initOverrides)];
1707
+ case 3:
1708
+ response = _a.sent();
1709
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AdminBuyerLoginDtoFromJSON)(jsonValue); })];
1710
+ }
1711
+ });
1712
+ });
1713
+ };
1714
+ /**
1715
+ *
1716
+ */
1717
+ AdminApi.prototype.loginAsBuyer = function (requestParameters, initOverrides) {
1718
+ return __awaiter(this, void 0, void 0, function () {
1719
+ var response;
1720
+ return __generator(this, function (_a) {
1721
+ switch (_a.label) {
1722
+ case 0: return [4 /*yield*/, this.loginAsBuyerRaw(requestParameters, initOverrides)];
1723
+ case 1:
1724
+ response = _a.sent();
1725
+ return [4 /*yield*/, response.value()];
1726
+ case 2: return [2 /*return*/, _a.sent()];
1727
+ }
1728
+ });
1729
+ });
1730
+ };
1678
1731
  /**
1679
1732
  *
1680
1733
  */
@@ -12,6 +12,7 @@
12
12
  import type { AuBankAccountDetails } from './AuBankAccountDetails';
13
13
  import type { CaBankAccountDetails } from './CaBankAccountDetails';
14
14
  import type { NzBankAccountDetails } from './NzBankAccountDetails';
15
+ import type { SeBankAccountDetails } from './SeBankAccountDetails';
15
16
  import type { SepaBankAccountDetails } from './SepaBankAccountDetails';
16
17
  import type { UkBankAccountDetails } from './UkBankAccountDetails';
17
18
  import type { UsBankAccountDetails } from './UsBankAccountDetails';
@@ -27,6 +28,8 @@ export type AccountBankAccountDtoDetails = {
27
28
  } & CaBankAccountDetails | {
28
29
  type: 'NzBankAccountDetails';
29
30
  } & NzBankAccountDetails | {
31
+ type: 'SeBankAccountDetails';
32
+ } & SeBankAccountDetails | {
30
33
  type: 'SepaBankAccountDetails';
31
34
  } & SepaBankAccountDetails | {
32
35
  type: 'UkBankAccountDetails';
@@ -20,6 +20,7 @@ exports.AccountBankAccountDtoDetailsToJSONTyped = AccountBankAccountDtoDetailsTo
20
20
  var AuBankAccountDetails_1 = require("./AuBankAccountDetails");
21
21
  var CaBankAccountDetails_1 = require("./CaBankAccountDetails");
22
22
  var NzBankAccountDetails_1 = require("./NzBankAccountDetails");
23
+ var SeBankAccountDetails_1 = require("./SeBankAccountDetails");
23
24
  var SepaBankAccountDetails_1 = require("./SepaBankAccountDetails");
24
25
  var UkBankAccountDetails_1 = require("./UkBankAccountDetails");
25
26
  var UsBankAccountDetails_1 = require("./UsBankAccountDetails");
@@ -37,6 +38,8 @@ function AccountBankAccountDtoDetailsFromJSONTyped(json, ignoreDiscriminator) {
37
38
  return Object.assign({}, (0, CaBankAccountDetails_1.CaBankAccountDetailsFromJSONTyped)(json, true), { type: 'CaBankAccountDetails' });
38
39
  case 'NzBankAccountDetails':
39
40
  return Object.assign({}, (0, NzBankAccountDetails_1.NzBankAccountDetailsFromJSONTyped)(json, true), { type: 'NzBankAccountDetails' });
41
+ case 'SeBankAccountDetails':
42
+ return Object.assign({}, (0, SeBankAccountDetails_1.SeBankAccountDetailsFromJSONTyped)(json, true), { type: 'SeBankAccountDetails' });
40
43
  case 'SepaBankAccountDetails':
41
44
  return Object.assign({}, (0, SepaBankAccountDetails_1.SepaBankAccountDetailsFromJSONTyped)(json, true), { type: 'SepaBankAccountDetails' });
42
45
  case 'UkBankAccountDetails':
@@ -62,6 +65,8 @@ function AccountBankAccountDtoDetailsToJSONTyped(value, ignoreDiscriminator) {
62
65
  return Object.assign({}, (0, CaBankAccountDetails_1.CaBankAccountDetailsToJSON)(value), { type: 'CaBankAccountDetails' });
63
66
  case 'NzBankAccountDetails':
64
67
  return Object.assign({}, (0, NzBankAccountDetails_1.NzBankAccountDetailsToJSON)(value), { type: 'NzBankAccountDetails' });
68
+ case 'SeBankAccountDetails':
69
+ return Object.assign({}, (0, SeBankAccountDetails_1.SeBankAccountDetailsToJSON)(value), { type: 'SeBankAccountDetails' });
65
70
  case 'SepaBankAccountDetails':
66
71
  return Object.assign({}, (0, SepaBankAccountDetails_1.SepaBankAccountDetailsToJSON)(value), { type: 'SepaBankAccountDetails' });
67
72
  case 'UkBankAccountDetails':
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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 AdminBuyerLoginDto
16
+ */
17
+ export interface AdminBuyerLoginDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminBuyerLoginDto
22
+ */
23
+ token: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AdminBuyerLoginDto interface.
27
+ */
28
+ export declare function instanceOfAdminBuyerLoginDto(value: object): value is AdminBuyerLoginDto;
29
+ export declare function AdminBuyerLoginDtoFromJSON(json: any): AdminBuyerLoginDto;
30
+ export declare function AdminBuyerLoginDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBuyerLoginDto;
31
+ export declare function AdminBuyerLoginDtoToJSON(json: any): AdminBuyerLoginDto;
32
+ export declare function AdminBuyerLoginDtoToJSONTyped(value?: AdminBuyerLoginDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
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.instanceOfAdminBuyerLoginDto = instanceOfAdminBuyerLoginDto;
17
+ exports.AdminBuyerLoginDtoFromJSON = AdminBuyerLoginDtoFromJSON;
18
+ exports.AdminBuyerLoginDtoFromJSONTyped = AdminBuyerLoginDtoFromJSONTyped;
19
+ exports.AdminBuyerLoginDtoToJSON = AdminBuyerLoginDtoToJSON;
20
+ exports.AdminBuyerLoginDtoToJSONTyped = AdminBuyerLoginDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdminBuyerLoginDto interface.
23
+ */
24
+ function instanceOfAdminBuyerLoginDto(value) {
25
+ if (!('token' in value) || value['token'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AdminBuyerLoginDtoFromJSON(json) {
30
+ return AdminBuyerLoginDtoFromJSONTyped(json, false);
31
+ }
32
+ function AdminBuyerLoginDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'token': json['token'],
38
+ };
39
+ }
40
+ function AdminBuyerLoginDtoToJSON(json) {
41
+ return AdminBuyerLoginDtoToJSONTyped(json, false);
42
+ }
43
+ function AdminBuyerLoginDtoToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'token': value['token'],
50
+ };
51
+ }
@@ -49,6 +49,7 @@ export declare const AuBankAccountDetailsTypeEnum: {
49
49
  readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
50
50
  readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
51
51
  readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
52
+ readonly SE_BANK_ACCOUNT_DETAILS: "SeBankAccountDetails";
52
53
  readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
53
54
  };
54
55
  export type AuBankAccountDetailsTypeEnum = typeof AuBankAccountDetailsTypeEnum[keyof typeof AuBankAccountDetailsTypeEnum];
@@ -28,6 +28,7 @@ exports.AuBankAccountDetailsTypeEnum = {
28
28
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
29
  NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
30
  AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
31
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
31
32
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
32
33
  };
33
34
  /**
@@ -55,6 +55,7 @@ export declare const CaBankAccountDetailsTypeEnum: {
55
55
  readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
56
56
  readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
57
57
  readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
58
+ readonly SE_BANK_ACCOUNT_DETAILS: "SeBankAccountDetails";
58
59
  readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
59
60
  };
60
61
  export type CaBankAccountDetailsTypeEnum = typeof CaBankAccountDetailsTypeEnum[keyof typeof CaBankAccountDetailsTypeEnum];
@@ -28,6 +28,7 @@ exports.CaBankAccountDetailsTypeEnum = {
28
28
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
29
  NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
30
  AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
31
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
31
32
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
32
33
  };
33
34
  /**
@@ -26,6 +26,12 @@ export interface DomainTransferDto {
26
26
  * @memberof DomainTransferDto
27
27
  */
28
28
  id: string;
29
+ /**
30
+ * The buyer ID
31
+ * @type {string}
32
+ * @memberof DomainTransferDto
33
+ */
34
+ buyerId: string;
29
35
  /**
30
36
  * The domain of transfer
31
37
  * @type {DomainTransferDomainDto}
@@ -50,6 +50,8 @@ exports.DomainTransferDtoStatusSellerEnum = {
50
50
  function instanceOfDomainTransferDto(value) {
51
51
  if (!('id' in value) || value['id'] === undefined)
52
52
  return false;
53
+ if (!('buyerId' in value) || value['buyerId'] === undefined)
54
+ return false;
53
55
  if (!('domain' in value) || value['domain'] === undefined)
54
56
  return false;
55
57
  if (!('status' in value) || value['status'] === undefined)
@@ -77,6 +79,7 @@ function DomainTransferDtoFromJSONTyped(json, ignoreDiscriminator) {
77
79
  }
78
80
  return {
79
81
  'id': json['id'],
82
+ 'buyerId': json['buyerId'],
80
83
  'domain': (0, DomainTransferDomainDto_1.DomainTransferDomainDtoFromJSON)(json['domain']),
81
84
  'status': json['status'],
82
85
  'statusSeller': json['statusSeller'],
@@ -97,6 +100,7 @@ function DomainTransferDtoToJSONTyped(value, ignoreDiscriminator) {
97
100
  }
98
101
  return {
99
102
  'id': value['id'],
103
+ 'buyerId': value['buyerId'],
100
104
  'domain': (0, DomainTransferDomainDto_1.DomainTransferDomainDtoToJSON)(value['domain']),
101
105
  'status': value['status'],
102
106
  'statusSeller': value['statusSeller'],
@@ -43,6 +43,7 @@ export declare const NzBankAccountDetailsTypeEnum: {
43
43
  readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
44
44
  readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
45
45
  readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
46
+ readonly SE_BANK_ACCOUNT_DETAILS: "SeBankAccountDetails";
46
47
  readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
47
48
  };
48
49
  export type NzBankAccountDetailsTypeEnum = typeof NzBankAccountDetailsTypeEnum[keyof typeof NzBankAccountDetailsTypeEnum];
@@ -28,6 +28,7 @@ exports.NzBankAccountDetailsTypeEnum = {
28
28
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
29
  NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
30
  AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
31
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
31
32
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
32
33
  };
33
34
  /**
@@ -17,6 +17,12 @@ import type { AddressDto } from './AddressDto';
17
17
  * @interface OrderListItemDtoBuyerInformation
18
18
  */
19
19
  export interface OrderListItemDtoBuyerInformation {
20
+ /**
21
+ * The uuid for buyer.
22
+ * @type {string}
23
+ * @memberof OrderListItemDtoBuyerInformation
24
+ */
25
+ id: string;
20
26
  /**
21
27
  * The order buyer first name
22
28
  * @type {string}
@@ -24,6 +24,8 @@ var AddressDto_1 = require("./AddressDto");
24
24
  * Check if a given object implements the OrderListItemDtoBuyerInformation interface.
25
25
  */
26
26
  function instanceOfOrderListItemDtoBuyerInformation(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
27
29
  if (!('firstName' in value) || value['firstName'] === undefined)
28
30
  return false;
29
31
  if (!('lastName' in value) || value['lastName'] === undefined)
@@ -46,6 +48,7 @@ function OrderListItemDtoBuyerInformationFromJSONTyped(json, ignoreDiscriminator
46
48
  return json;
47
49
  }
48
50
  return {
51
+ 'id': json['id'],
49
52
  'firstName': json['firstName'],
50
53
  'lastName': json['lastName'],
51
54
  'email': json['email'],
@@ -63,6 +66,7 @@ function OrderListItemDtoBuyerInformationToJSONTyped(value, ignoreDiscriminator)
63
66
  return value;
64
67
  }
65
68
  return {
69
+ 'id': value['id'],
66
70
  'firstName': value['firstName'],
67
71
  'lastName': value['lastName'],
68
72
  'email': value['email'],
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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 SeBankAccountDetails
16
+ */
17
+ export interface SeBankAccountDetails {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SeBankAccountDetails
22
+ */
23
+ type: SeBankAccountDetailsTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SeBankAccountDetails
28
+ */
29
+ countryCode: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SeBankAccountDetails
34
+ */
35
+ bankCode: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SeBankAccountDetails
40
+ */
41
+ accountNumber: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SeBankAccountDetails
46
+ */
47
+ iban: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof SeBankAccountDetails
52
+ */
53
+ bic: string;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const SeBankAccountDetailsTypeEnum: {
59
+ readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
60
+ readonly US_BANK_ACCOUNT_DETAILS: "UsBankAccountDetails";
61
+ readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
62
+ readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
63
+ readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
64
+ readonly SE_BANK_ACCOUNT_DETAILS: "SeBankAccountDetails";
65
+ readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
66
+ };
67
+ export type SeBankAccountDetailsTypeEnum = typeof SeBankAccountDetailsTypeEnum[keyof typeof SeBankAccountDetailsTypeEnum];
68
+ /**
69
+ * Check if a given object implements the SeBankAccountDetails interface.
70
+ */
71
+ export declare function instanceOfSeBankAccountDetails(value: object): value is SeBankAccountDetails;
72
+ export declare function SeBankAccountDetailsFromJSON(json: any): SeBankAccountDetails;
73
+ export declare function SeBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeBankAccountDetails;
74
+ export declare function SeBankAccountDetailsToJSON(json: any): SeBankAccountDetails;
75
+ export declare function SeBankAccountDetailsToJSONTyped(value?: SeBankAccountDetails | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
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.SeBankAccountDetailsTypeEnum = void 0;
17
+ exports.instanceOfSeBankAccountDetails = instanceOfSeBankAccountDetails;
18
+ exports.SeBankAccountDetailsFromJSON = SeBankAccountDetailsFromJSON;
19
+ exports.SeBankAccountDetailsFromJSONTyped = SeBankAccountDetailsFromJSONTyped;
20
+ exports.SeBankAccountDetailsToJSON = SeBankAccountDetailsToJSON;
21
+ exports.SeBankAccountDetailsToJSONTyped = SeBankAccountDetailsToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SeBankAccountDetailsTypeEnum = {
26
+ UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
27
+ US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
28
+ CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
31
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
32
+ SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
33
+ };
34
+ /**
35
+ * Check if a given object implements the SeBankAccountDetails interface.
36
+ */
37
+ function instanceOfSeBankAccountDetails(value) {
38
+ if (!('type' in value) || value['type'] === undefined)
39
+ return false;
40
+ if (!('countryCode' in value) || value['countryCode'] === undefined)
41
+ return false;
42
+ if (!('bankCode' in value) || value['bankCode'] === undefined)
43
+ return false;
44
+ if (!('accountNumber' in value) || value['accountNumber'] === undefined)
45
+ return false;
46
+ if (!('iban' in value) || value['iban'] === undefined)
47
+ return false;
48
+ if (!('bic' in value) || value['bic'] === undefined)
49
+ return false;
50
+ return true;
51
+ }
52
+ function SeBankAccountDetailsFromJSON(json) {
53
+ return SeBankAccountDetailsFromJSONTyped(json, false);
54
+ }
55
+ function SeBankAccountDetailsFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'type': json['type'],
61
+ 'countryCode': json['countryCode'],
62
+ 'bankCode': json['bankCode'],
63
+ 'accountNumber': json['accountNumber'],
64
+ 'iban': json['iban'],
65
+ 'bic': json['bic'],
66
+ };
67
+ }
68
+ function SeBankAccountDetailsToJSON(json) {
69
+ return SeBankAccountDetailsToJSONTyped(json, false);
70
+ }
71
+ function SeBankAccountDetailsToJSONTyped(value, ignoreDiscriminator) {
72
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'type': value['type'],
78
+ 'countryCode': value['countryCode'],
79
+ 'bankCode': value['bankCode'],
80
+ 'accountNumber': value['accountNumber'],
81
+ 'iban': value['iban'],
82
+ 'bic': value['bic'],
83
+ };
84
+ }
@@ -49,6 +49,7 @@ export declare const SepaBankAccountDetailsTypeEnum: {
49
49
  readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
50
50
  readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
51
51
  readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
52
+ readonly SE_BANK_ACCOUNT_DETAILS: "SeBankAccountDetails";
52
53
  readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
53
54
  };
54
55
  export type SepaBankAccountDetailsTypeEnum = typeof SepaBankAccountDetailsTypeEnum[keyof typeof SepaBankAccountDetailsTypeEnum];
@@ -28,6 +28,7 @@ exports.SepaBankAccountDetailsTypeEnum = {
28
28
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
29
  NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
30
  AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
31
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
31
32
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
32
33
  };
33
34
  /**
@@ -17,6 +17,12 @@ import type { AddressDto } from './AddressDto';
17
17
  * @interface SubscriptionListItemDtoBuyerInformation
18
18
  */
19
19
  export interface SubscriptionListItemDtoBuyerInformation {
20
+ /**
21
+ * The uuid for buyer.
22
+ * @type {string}
23
+ * @memberof SubscriptionListItemDtoBuyerInformation
24
+ */
25
+ id: string;
20
26
  /**
21
27
  * The subscription buyer first name
22
28
  * @type {string}
@@ -24,6 +24,8 @@ var AddressDto_1 = require("./AddressDto");
24
24
  * Check if a given object implements the SubscriptionListItemDtoBuyerInformation interface.
25
25
  */
26
26
  function instanceOfSubscriptionListItemDtoBuyerInformation(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
27
29
  if (!('firstName' in value) || value['firstName'] === undefined)
28
30
  return false;
29
31
  if (!('lastName' in value) || value['lastName'] === undefined)
@@ -46,6 +48,7 @@ function SubscriptionListItemDtoBuyerInformationFromJSONTyped(json, ignoreDiscri
46
48
  return json;
47
49
  }
48
50
  return {
51
+ 'id': json['id'],
49
52
  'firstName': json['firstName'],
50
53
  'lastName': json['lastName'],
51
54
  'email': json['email'],
@@ -63,6 +66,7 @@ function SubscriptionListItemDtoBuyerInformationToJSONTyped(value, ignoreDiscrim
63
66
  return value;
64
67
  }
65
68
  return {
69
+ 'id': value['id'],
66
70
  'firstName': value['firstName'],
67
71
  'lastName': value['lastName'],
68
72
  'email': value['email'],
@@ -49,6 +49,7 @@ export declare const UkBankAccountDetailsTypeEnum: {
49
49
  readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
50
50
  readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
51
51
  readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
52
+ readonly SE_BANK_ACCOUNT_DETAILS: "SeBankAccountDetails";
52
53
  readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
53
54
  };
54
55
  export type UkBankAccountDetailsTypeEnum = typeof UkBankAccountDetailsTypeEnum[keyof typeof UkBankAccountDetailsTypeEnum];
@@ -28,6 +28,7 @@ exports.UkBankAccountDetailsTypeEnum = {
28
28
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
29
  NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
30
  AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
31
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
31
32
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
32
33
  };
33
34
  /**
@@ -49,6 +49,7 @@ export declare const UsBankAccountDetailsTypeEnum: {
49
49
  readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
50
50
  readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
51
51
  readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
52
+ readonly SE_BANK_ACCOUNT_DETAILS: "SeBankAccountDetails";
52
53
  readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
53
54
  };
54
55
  export type UsBankAccountDetailsTypeEnum = typeof UsBankAccountDetailsTypeEnum[keyof typeof UsBankAccountDetailsTypeEnum];
@@ -28,6 +28,7 @@ exports.UsBankAccountDetailsTypeEnum = {
28
28
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
29
  NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
30
  AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
31
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
31
32
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
32
33
  };
33
34
  /**
@@ -36,6 +36,7 @@ export * from './AdminAccountSettingsInput';
36
36
  export * from './AdminAuctionCommissionByDateRangeInput';
37
37
  export * from './AdminAuctionConfigurationInput';
38
38
  export * from './AdminBankAccountDto';
39
+ export * from './AdminBuyerLoginDto';
39
40
  export * from './AdminCompanyStatsDto';
40
41
  export * from './AdminCompanyStatsLedger';
41
42
  export * from './AdminDashboardStatsDto';
@@ -321,6 +322,7 @@ export * from './RequestEmailOtpInput';
321
322
  export * from './SalesCountCommissionPayloadDto';
322
323
  export * from './SalesCountCommissionPayloadInput';
323
324
  export * from './SalesCountCommissionReasonPayloadDto';
325
+ export * from './SeBankAccountDetails';
324
326
  export * from './SellerAccountReferralListItemDto';
325
327
  export * from './SellerAffiliateCommissionDto';
326
328
  export * from './SellerAuctionListItemDto';
@@ -54,6 +54,7 @@ __exportStar(require("./AdminAccountSettingsInput"), exports);
54
54
  __exportStar(require("./AdminAuctionCommissionByDateRangeInput"), exports);
55
55
  __exportStar(require("./AdminAuctionConfigurationInput"), exports);
56
56
  __exportStar(require("./AdminBankAccountDto"), exports);
57
+ __exportStar(require("./AdminBuyerLoginDto"), exports);
57
58
  __exportStar(require("./AdminCompanyStatsDto"), exports);
58
59
  __exportStar(require("./AdminCompanyStatsLedger"), exports);
59
60
  __exportStar(require("./AdminDashboardStatsDto"), exports);
@@ -339,6 +340,7 @@ __exportStar(require("./RequestEmailOtpInput"), exports);
339
340
  __exportStar(require("./SalesCountCommissionPayloadDto"), exports);
340
341
  __exportStar(require("./SalesCountCommissionPayloadInput"), exports);
341
342
  __exportStar(require("./SalesCountCommissionReasonPayloadDto"), exports);
343
+ __exportStar(require("./SeBankAccountDetails"), exports);
342
344
  __exportStar(require("./SellerAccountReferralListItemDto"), exports);
343
345
  __exportStar(require("./SellerAffiliateCommissionDto"), exports);
344
346
  __exportStar(require("./SellerAuctionListItemDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.372",
3
+ "version": "0.0.374",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -20,6 +20,7 @@ import type {
20
20
  AccountSettingsDto,
21
21
  AdminAccountLoginDto,
22
22
  AdminAccountSettingsInput,
23
+ AdminBuyerLoginDto,
23
24
  AdminCompanyStatsDto,
24
25
  AdminDashboardStatsDto,
25
26
  AdminGetAllDomainTransfers200Response,
@@ -59,6 +60,8 @@ import {
59
60
  AdminAccountLoginDtoToJSON,
60
61
  AdminAccountSettingsInputFromJSON,
61
62
  AdminAccountSettingsInputToJSON,
63
+ AdminBuyerLoginDtoFromJSON,
64
+ AdminBuyerLoginDtoToJSON,
62
65
  AdminCompanyStatsDtoFromJSON,
63
66
  AdminCompanyStatsDtoToJSON,
64
67
  AdminDashboardStatsDtoFromJSON,
@@ -259,6 +262,10 @@ export interface AdminApiLoginAsRequest {
259
262
  accountId: string;
260
263
  }
261
264
 
265
+ export interface AdminApiLoginAsBuyerRequest {
266
+ buyerId: string;
267
+ }
268
+
262
269
  export interface AdminApiPayDomainTransferSellerInvoiceRequest {
263
270
  transferId: string;
264
271
  invoiceId: string;
@@ -1575,6 +1582,47 @@ export class AdminApi extends runtime.BaseAPI {
1575
1582
  return await response.value();
1576
1583
  }
1577
1584
 
1585
+ /**
1586
+ *
1587
+ */
1588
+ async loginAsBuyerRaw(requestParameters: AdminApiLoginAsBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminBuyerLoginDto>> {
1589
+ if (requestParameters['buyerId'] == null) {
1590
+ throw new runtime.RequiredError(
1591
+ 'buyerId',
1592
+ 'Required parameter "buyerId" was null or undefined when calling loginAsBuyer().'
1593
+ );
1594
+ }
1595
+
1596
+ const queryParameters: any = {};
1597
+
1598
+ const headerParameters: runtime.HTTPHeaders = {};
1599
+
1600
+ if (this.configuration && this.configuration.accessToken) {
1601
+ const token = this.configuration.accessToken;
1602
+ const tokenString = await token("bearer", []);
1603
+
1604
+ if (tokenString) {
1605
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1606
+ }
1607
+ }
1608
+ const response = await this.request({
1609
+ path: `/admin/buyers/{buyerId}/login-as`.replace(`{${"buyerId"}}`, encodeURIComponent(String(requestParameters['buyerId']))),
1610
+ method: 'POST',
1611
+ headers: headerParameters,
1612
+ query: queryParameters,
1613
+ }, initOverrides);
1614
+
1615
+ return new runtime.JSONApiResponse(response, (jsonValue) => AdminBuyerLoginDtoFromJSON(jsonValue));
1616
+ }
1617
+
1618
+ /**
1619
+ *
1620
+ */
1621
+ async loginAsBuyer(requestParameters: AdminApiLoginAsBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminBuyerLoginDto> {
1622
+ const response = await this.loginAsBuyerRaw(requestParameters, initOverrides);
1623
+ return await response.value();
1624
+ }
1625
+
1578
1626
  /**
1579
1627
  *
1580
1628
  */
@@ -33,6 +33,13 @@ import {
33
33
  NzBankAccountDetailsFromJSONTyped,
34
34
  NzBankAccountDetailsToJSON,
35
35
  } from './NzBankAccountDetails';
36
+ import type { SeBankAccountDetails } from './SeBankAccountDetails';
37
+ import {
38
+ instanceOfSeBankAccountDetails,
39
+ SeBankAccountDetailsFromJSON,
40
+ SeBankAccountDetailsFromJSONTyped,
41
+ SeBankAccountDetailsToJSON,
42
+ } from './SeBankAccountDetails';
36
43
  import type { SepaBankAccountDetails } from './SepaBankAccountDetails';
37
44
  import {
38
45
  instanceOfSepaBankAccountDetails,
@@ -60,7 +67,7 @@ import {
60
67
  *
61
68
  * @export
62
69
  */
63
- export type AccountBankAccountDtoDetails = { type: 'AuBankAccountDetails' } & AuBankAccountDetails | { type: 'CaBankAccountDetails' } & CaBankAccountDetails | { type: 'NzBankAccountDetails' } & NzBankAccountDetails | { type: 'SepaBankAccountDetails' } & SepaBankAccountDetails | { type: 'UkBankAccountDetails' } & UkBankAccountDetails | { type: 'UsBankAccountDetails' } & UsBankAccountDetails;
70
+ export type AccountBankAccountDtoDetails = { type: 'AuBankAccountDetails' } & AuBankAccountDetails | { type: 'CaBankAccountDetails' } & CaBankAccountDetails | { type: 'NzBankAccountDetails' } & NzBankAccountDetails | { type: 'SeBankAccountDetails' } & SeBankAccountDetails | { type: 'SepaBankAccountDetails' } & SepaBankAccountDetails | { type: 'UkBankAccountDetails' } & UkBankAccountDetails | { type: 'UsBankAccountDetails' } & UsBankAccountDetails;
64
71
 
65
72
  export function AccountBankAccountDtoDetailsFromJSON(json: any): AccountBankAccountDtoDetails {
66
73
  return AccountBankAccountDtoDetailsFromJSONTyped(json, false);
@@ -77,6 +84,8 @@ export function AccountBankAccountDtoDetailsFromJSONTyped(json: any, ignoreDiscr
77
84
  return Object.assign({}, CaBankAccountDetailsFromJSONTyped(json, true), { type: 'CaBankAccountDetails' } as const);
78
85
  case 'NzBankAccountDetails':
79
86
  return Object.assign({}, NzBankAccountDetailsFromJSONTyped(json, true), { type: 'NzBankAccountDetails' } as const);
87
+ case 'SeBankAccountDetails':
88
+ return Object.assign({}, SeBankAccountDetailsFromJSONTyped(json, true), { type: 'SeBankAccountDetails' } as const);
80
89
  case 'SepaBankAccountDetails':
81
90
  return Object.assign({}, SepaBankAccountDetailsFromJSONTyped(json, true), { type: 'SepaBankAccountDetails' } as const);
82
91
  case 'UkBankAccountDetails':
@@ -103,6 +112,8 @@ export function AccountBankAccountDtoDetailsToJSONTyped(value?: AccountBankAccou
103
112
  return Object.assign({}, CaBankAccountDetailsToJSON(value), { type: 'CaBankAccountDetails' } as const);
104
113
  case 'NzBankAccountDetails':
105
114
  return Object.assign({}, NzBankAccountDetailsToJSON(value), { type: 'NzBankAccountDetails' } as const);
115
+ case 'SeBankAccountDetails':
116
+ return Object.assign({}, SeBankAccountDetailsToJSON(value), { type: 'SeBankAccountDetails' } as const);
106
117
  case 'SepaBankAccountDetails':
107
118
  return Object.assign({}, SepaBankAccountDetailsToJSON(value), { type: 'SepaBankAccountDetails' } as const);
108
119
  case 'UkBankAccountDetails':
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
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 AdminBuyerLoginDto
20
+ */
21
+ export interface AdminBuyerLoginDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AdminBuyerLoginDto
26
+ */
27
+ token: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AdminBuyerLoginDto interface.
32
+ */
33
+ export function instanceOfAdminBuyerLoginDto(value: object): value is AdminBuyerLoginDto {
34
+ if (!('token' in value) || value['token'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AdminBuyerLoginDtoFromJSON(json: any): AdminBuyerLoginDto {
39
+ return AdminBuyerLoginDtoFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AdminBuyerLoginDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBuyerLoginDto {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'token': json['token'],
49
+ };
50
+ }
51
+
52
+ export function AdminBuyerLoginDtoToJSON(json: any): AdminBuyerLoginDto {
53
+ return AdminBuyerLoginDtoToJSONTyped(json, false);
54
+ }
55
+
56
+ export function AdminBuyerLoginDtoToJSONTyped(value?: AdminBuyerLoginDto | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'token': value['token'],
64
+ };
65
+ }
66
+
@@ -55,6 +55,7 @@ export const AuBankAccountDetailsTypeEnum = {
55
55
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
56
56
  NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
57
57
  AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
58
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
58
59
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
59
60
  } as const;
60
61
  export type AuBankAccountDetailsTypeEnum = typeof AuBankAccountDetailsTypeEnum[keyof typeof AuBankAccountDetailsTypeEnum];
@@ -61,6 +61,7 @@ export const CaBankAccountDetailsTypeEnum = {
61
61
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
62
62
  NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
63
63
  AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
64
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
64
65
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
65
66
  } as const;
66
67
  export type CaBankAccountDetailsTypeEnum = typeof CaBankAccountDetailsTypeEnum[keyof typeof CaBankAccountDetailsTypeEnum];
@@ -61,6 +61,12 @@ export interface DomainTransferDto {
61
61
  * @memberof DomainTransferDto
62
62
  */
63
63
  id: string;
64
+ /**
65
+ * The buyer ID
66
+ * @type {string}
67
+ * @memberof DomainTransferDto
68
+ */
69
+ buyerId: string;
64
70
  /**
65
71
  * The domain of transfer
66
72
  * @type {DomainTransferDomainDto}
@@ -142,6 +148,7 @@ export type DomainTransferDtoStatusSellerEnum = typeof DomainTransferDtoStatusSe
142
148
  */
143
149
  export function instanceOfDomainTransferDto(value: object): value is DomainTransferDto {
144
150
  if (!('id' in value) || value['id'] === undefined) return false;
151
+ if (!('buyerId' in value) || value['buyerId'] === undefined) return false;
145
152
  if (!('domain' in value) || value['domain'] === undefined) return false;
146
153
  if (!('status' in value) || value['status'] === undefined) return false;
147
154
  if (!('statusSeller' in value) || value['statusSeller'] === undefined) return false;
@@ -164,6 +171,7 @@ export function DomainTransferDtoFromJSONTyped(json: any, ignoreDiscriminator: b
164
171
  return {
165
172
 
166
173
  'id': json['id'],
174
+ 'buyerId': json['buyerId'],
167
175
  'domain': DomainTransferDomainDtoFromJSON(json['domain']),
168
176
  'status': json['status'],
169
177
  'statusSeller': json['statusSeller'],
@@ -187,6 +195,7 @@ export function DomainTransferDtoToJSONTyped(value?: DomainTransferDto | null, i
187
195
  return {
188
196
 
189
197
  'id': value['id'],
198
+ 'buyerId': value['buyerId'],
190
199
  'domain': DomainTransferDomainDtoToJSON(value['domain']),
191
200
  'status': value['status'],
192
201
  'statusSeller': value['statusSeller'],
@@ -49,6 +49,7 @@ export const NzBankAccountDetailsTypeEnum = {
49
49
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
50
50
  NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
51
51
  AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
52
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
52
53
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
53
54
  } as const;
54
55
  export type NzBankAccountDetailsTypeEnum = typeof NzBankAccountDetailsTypeEnum[keyof typeof NzBankAccountDetailsTypeEnum];
@@ -34,6 +34,12 @@ import {
34
34
  * @interface OrderListItemDtoBuyerInformation
35
35
  */
36
36
  export interface OrderListItemDtoBuyerInformation {
37
+ /**
38
+ * The uuid for buyer.
39
+ * @type {string}
40
+ * @memberof OrderListItemDtoBuyerInformation
41
+ */
42
+ id: string;
37
43
  /**
38
44
  * The order buyer first name
39
45
  * @type {string}
@@ -76,6 +82,7 @@ export interface OrderListItemDtoBuyerInformation {
76
82
  * Check if a given object implements the OrderListItemDtoBuyerInformation interface.
77
83
  */
78
84
  export function instanceOfOrderListItemDtoBuyerInformation(value: object): value is OrderListItemDtoBuyerInformation {
85
+ if (!('id' in value) || value['id'] === undefined) return false;
79
86
  if (!('firstName' in value) || value['firstName'] === undefined) return false;
80
87
  if (!('lastName' in value) || value['lastName'] === undefined) return false;
81
88
  if (!('email' in value) || value['email'] === undefined) return false;
@@ -95,6 +102,7 @@ export function OrderListItemDtoBuyerInformationFromJSONTyped(json: any, ignoreD
95
102
  }
96
103
  return {
97
104
 
105
+ 'id': json['id'],
98
106
  'firstName': json['firstName'],
99
107
  'lastName': json['lastName'],
100
108
  'email': json['email'],
@@ -115,6 +123,7 @@ export function OrderListItemDtoBuyerInformationToJSONTyped(value?: OrderListIte
115
123
 
116
124
  return {
117
125
 
126
+ 'id': value['id'],
118
127
  'firstName': value['firstName'],
119
128
  'lastName': value['lastName'],
120
129
  'email': value['email'],
@@ -0,0 +1,127 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
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 SeBankAccountDetails
20
+ */
21
+ export interface SeBankAccountDetails {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SeBankAccountDetails
26
+ */
27
+ type: SeBankAccountDetailsTypeEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SeBankAccountDetails
32
+ */
33
+ countryCode: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SeBankAccountDetails
38
+ */
39
+ bankCode: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof SeBankAccountDetails
44
+ */
45
+ accountNumber: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof SeBankAccountDetails
50
+ */
51
+ iban: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof SeBankAccountDetails
56
+ */
57
+ bic: string;
58
+ }
59
+
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const SeBankAccountDetailsTypeEnum = {
65
+ UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
66
+ US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
67
+ CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
68
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
69
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
70
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
71
+ SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
72
+ } as const;
73
+ export type SeBankAccountDetailsTypeEnum = typeof SeBankAccountDetailsTypeEnum[keyof typeof SeBankAccountDetailsTypeEnum];
74
+
75
+
76
+ /**
77
+ * Check if a given object implements the SeBankAccountDetails interface.
78
+ */
79
+ export function instanceOfSeBankAccountDetails(value: object): value is SeBankAccountDetails {
80
+ if (!('type' in value) || value['type'] === undefined) return false;
81
+ if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
82
+ if (!('bankCode' in value) || value['bankCode'] === undefined) return false;
83
+ if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
84
+ if (!('iban' in value) || value['iban'] === undefined) return false;
85
+ if (!('bic' in value) || value['bic'] === undefined) return false;
86
+ return true;
87
+ }
88
+
89
+ export function SeBankAccountDetailsFromJSON(json: any): SeBankAccountDetails {
90
+ return SeBankAccountDetailsFromJSONTyped(json, false);
91
+ }
92
+
93
+ export function SeBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeBankAccountDetails {
94
+ if (json == null) {
95
+ return json;
96
+ }
97
+ return {
98
+
99
+ 'type': json['type'],
100
+ 'countryCode': json['countryCode'],
101
+ 'bankCode': json['bankCode'],
102
+ 'accountNumber': json['accountNumber'],
103
+ 'iban': json['iban'],
104
+ 'bic': json['bic'],
105
+ };
106
+ }
107
+
108
+ export function SeBankAccountDetailsToJSON(json: any): SeBankAccountDetails {
109
+ return SeBankAccountDetailsToJSONTyped(json, false);
110
+ }
111
+
112
+ export function SeBankAccountDetailsToJSONTyped(value?: SeBankAccountDetails | null, ignoreDiscriminator: boolean = false): any {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+
117
+ return {
118
+
119
+ 'type': value['type'],
120
+ 'countryCode': value['countryCode'],
121
+ 'bankCode': value['bankCode'],
122
+ 'accountNumber': value['accountNumber'],
123
+ 'iban': value['iban'],
124
+ 'bic': value['bic'],
125
+ };
126
+ }
127
+
@@ -55,6 +55,7 @@ export const SepaBankAccountDetailsTypeEnum = {
55
55
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
56
56
  NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
57
57
  AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
58
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
58
59
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
59
60
  } as const;
60
61
  export type SepaBankAccountDetailsTypeEnum = typeof SepaBankAccountDetailsTypeEnum[keyof typeof SepaBankAccountDetailsTypeEnum];
@@ -34,6 +34,12 @@ import {
34
34
  * @interface SubscriptionListItemDtoBuyerInformation
35
35
  */
36
36
  export interface SubscriptionListItemDtoBuyerInformation {
37
+ /**
38
+ * The uuid for buyer.
39
+ * @type {string}
40
+ * @memberof SubscriptionListItemDtoBuyerInformation
41
+ */
42
+ id: string;
37
43
  /**
38
44
  * The subscription buyer first name
39
45
  * @type {string}
@@ -76,6 +82,7 @@ export interface SubscriptionListItemDtoBuyerInformation {
76
82
  * Check if a given object implements the SubscriptionListItemDtoBuyerInformation interface.
77
83
  */
78
84
  export function instanceOfSubscriptionListItemDtoBuyerInformation(value: object): value is SubscriptionListItemDtoBuyerInformation {
85
+ if (!('id' in value) || value['id'] === undefined) return false;
79
86
  if (!('firstName' in value) || value['firstName'] === undefined) return false;
80
87
  if (!('lastName' in value) || value['lastName'] === undefined) return false;
81
88
  if (!('email' in value) || value['email'] === undefined) return false;
@@ -95,6 +102,7 @@ export function SubscriptionListItemDtoBuyerInformationFromJSONTyped(json: any,
95
102
  }
96
103
  return {
97
104
 
105
+ 'id': json['id'],
98
106
  'firstName': json['firstName'],
99
107
  'lastName': json['lastName'],
100
108
  'email': json['email'],
@@ -115,6 +123,7 @@ export function SubscriptionListItemDtoBuyerInformationToJSONTyped(value?: Subsc
115
123
 
116
124
  return {
117
125
 
126
+ 'id': value['id'],
118
127
  'firstName': value['firstName'],
119
128
  'lastName': value['lastName'],
120
129
  'email': value['email'],
@@ -55,6 +55,7 @@ export const UkBankAccountDetailsTypeEnum = {
55
55
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
56
56
  NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
57
57
  AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
58
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
58
59
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
59
60
  } as const;
60
61
  export type UkBankAccountDetailsTypeEnum = typeof UkBankAccountDetailsTypeEnum[keyof typeof UkBankAccountDetailsTypeEnum];
@@ -55,6 +55,7 @@ export const UsBankAccountDetailsTypeEnum = {
55
55
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
56
56
  NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
57
57
  AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
58
+ SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
58
59
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
59
60
  } as const;
60
61
  export type UsBankAccountDetailsTypeEnum = typeof UsBankAccountDetailsTypeEnum[keyof typeof UsBankAccountDetailsTypeEnum];
@@ -38,6 +38,7 @@ export * from './AdminAccountSettingsInput';
38
38
  export * from './AdminAuctionCommissionByDateRangeInput';
39
39
  export * from './AdminAuctionConfigurationInput';
40
40
  export * from './AdminBankAccountDto';
41
+ export * from './AdminBuyerLoginDto';
41
42
  export * from './AdminCompanyStatsDto';
42
43
  export * from './AdminCompanyStatsLedger';
43
44
  export * from './AdminDashboardStatsDto';
@@ -323,6 +324,7 @@ export * from './RequestEmailOtpInput';
323
324
  export * from './SalesCountCommissionPayloadDto';
324
325
  export * from './SalesCountCommissionPayloadInput';
325
326
  export * from './SalesCountCommissionReasonPayloadDto';
327
+ export * from './SeBankAccountDetails';
326
328
  export * from './SellerAccountReferralListItemDto';
327
329
  export * from './SellerAffiliateCommissionDto';
328
330
  export * from './SellerAuctionListItemDto';