@randock/nameshift-api-client 0.0.358 → 0.0.360

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 (30) hide show
  1. package/.openapi-generator/FILES +4 -1
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +23 -1
  4. package/dist/apis/AdminApi.js +104 -0
  5. package/dist/models/AdminAccountSettingsInput.d.ts +3 -3
  6. package/dist/models/AdminAccountSettingsInput.js +3 -3
  7. package/dist/models/AdminAuctionCommissionByDateRangeInput.d.ts +44 -0
  8. package/dist/models/AdminAuctionCommissionByDateRangeInput.js +57 -0
  9. package/dist/models/AdminAuctionConfigurationInput.d.ts +59 -0
  10. package/dist/models/AdminAuctionConfigurationInput.js +60 -0
  11. package/dist/models/AuctionCommissionByDateRangeDto.d.ts +44 -0
  12. package/dist/models/AuctionCommissionByDateRangeDto.js +59 -0
  13. package/dist/models/AuctionConfigurationDto.d.ts +13 -0
  14. package/dist/models/AuctionConfigurationDto.js +9 -0
  15. package/dist/models/MoneyDecimalDto.d.ts +38 -0
  16. package/dist/models/MoneyDecimalDto.js +55 -0
  17. package/dist/models/index.d.ts +4 -1
  18. package/dist/models/index.js +4 -1
  19. package/package.json +1 -1
  20. package/src/apis/AdminApi.ts +92 -0
  21. package/src/models/AdminAccountSettingsInput.ts +10 -10
  22. package/src/models/AdminAuctionCommissionByDateRangeInput.ts +83 -0
  23. package/src/models/AdminAuctionConfigurationInput.ts +119 -0
  24. package/src/models/AuctionCommissionByDateRangeDto.ts +84 -0
  25. package/src/models/AuctionConfigurationDto.ts +25 -0
  26. package/src/models/MoneyDecimalDto.ts +75 -0
  27. package/src/models/index.ts +4 -1
  28. package/dist/models/UpdateAuctionConfigurationDto.d.ts +0 -46
  29. package/dist/models/UpdateAuctionConfigurationDto.js +0 -55
  30. package/src/models/UpdateAuctionConfigurationDto.ts +0 -96
@@ -19,6 +19,7 @@ exports.AuctionConfigurationDtoFromJSONTyped = AuctionConfigurationDtoFromJSONTy
19
19
  exports.AuctionConfigurationDtoToJSON = AuctionConfigurationDtoToJSON;
20
20
  exports.AuctionConfigurationDtoToJSONTyped = AuctionConfigurationDtoToJSONTyped;
21
21
  var AuctionDurationDto_1 = require("./AuctionDurationDto");
22
+ var AuctionCommissionByDateRangeDto_1 = require("./AuctionCommissionByDateRangeDto");
22
23
  var MoneyDto_1 = require("./MoneyDto");
23
24
  /**
24
25
  * Check if a given object implements the AuctionConfigurationDto interface.
@@ -30,6 +31,10 @@ function instanceOfAuctionConfigurationDto(value) {
30
31
  return false;
31
32
  if (!('paidAuctionPrice' in value) || value['paidAuctionPrice'] === undefined)
32
33
  return false;
34
+ if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined)
35
+ return false;
36
+ if (!('commissionsByDateRange' in value) || value['commissionsByDateRange'] === undefined)
37
+ return false;
33
38
  return true;
34
39
  }
35
40
  function AuctionConfigurationDtoFromJSON(json) {
@@ -43,6 +48,8 @@ function AuctionConfigurationDtoFromJSONTyped(json, ignoreDiscriminator) {
43
48
  'defaultDurationFromLead': (0, AuctionDurationDto_1.AuctionDurationDtoFromJSON)(json['defaultDurationFromLead']),
44
49
  'defaultInitialBidAmount': json['defaultInitialBidAmount'],
45
50
  'paidAuctionPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['paidAuctionPrice']),
51
+ 'commissionPercentage': json['commissionPercentage'],
52
+ 'commissionsByDateRange': (json['commissionsByDateRange'].map(AuctionCommissionByDateRangeDto_1.AuctionCommissionByDateRangeDtoFromJSON)),
46
53
  };
47
54
  }
48
55
  function AuctionConfigurationDtoToJSON(json) {
@@ -57,5 +64,7 @@ function AuctionConfigurationDtoToJSONTyped(value, ignoreDiscriminator) {
57
64
  'defaultDurationFromLead': (0, AuctionDurationDto_1.AuctionDurationDtoToJSON)(value['defaultDurationFromLead']),
58
65
  'defaultInitialBidAmount': value['defaultInitialBidAmount'],
59
66
  'paidAuctionPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['paidAuctionPrice']),
67
+ 'commissionPercentage': value['commissionPercentage'],
68
+ 'commissionsByDateRange': (value['commissionsByDateRange'].map(AuctionCommissionByDateRangeDto_1.AuctionCommissionByDateRangeDtoToJSON)),
60
69
  };
61
70
  }
@@ -0,0 +1,38 @@
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 MoneyDecimalDto
16
+ */
17
+ export interface MoneyDecimalDto {
18
+ /**
19
+ * Monetary amount, represented as an integer without scale/decimals.
20
+ * @type {number}
21
+ * @memberof MoneyDecimalDto
22
+ */
23
+ amount: number;
24
+ /**
25
+ * Three letter ISO currency code
26
+ * @type {string}
27
+ * @memberof MoneyDecimalDto
28
+ */
29
+ currencyCode: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MoneyDecimalDto interface.
33
+ */
34
+ export declare function instanceOfMoneyDecimalDto(value: object): value is MoneyDecimalDto;
35
+ export declare function MoneyDecimalDtoFromJSON(json: any): MoneyDecimalDto;
36
+ export declare function MoneyDecimalDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyDecimalDto;
37
+ export declare function MoneyDecimalDtoToJSON(json: any): MoneyDecimalDto;
38
+ export declare function MoneyDecimalDtoToJSONTyped(value?: MoneyDecimalDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfMoneyDecimalDto = instanceOfMoneyDecimalDto;
17
+ exports.MoneyDecimalDtoFromJSON = MoneyDecimalDtoFromJSON;
18
+ exports.MoneyDecimalDtoFromJSONTyped = MoneyDecimalDtoFromJSONTyped;
19
+ exports.MoneyDecimalDtoToJSON = MoneyDecimalDtoToJSON;
20
+ exports.MoneyDecimalDtoToJSONTyped = MoneyDecimalDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MoneyDecimalDto interface.
23
+ */
24
+ function instanceOfMoneyDecimalDto(value) {
25
+ if (!('amount' in value) || value['amount'] === undefined)
26
+ return false;
27
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function MoneyDecimalDtoFromJSON(json) {
32
+ return MoneyDecimalDtoFromJSONTyped(json, false);
33
+ }
34
+ function MoneyDecimalDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'amount': json['amount'],
40
+ 'currencyCode': json['currencyCode'],
41
+ };
42
+ }
43
+ function MoneyDecimalDtoToJSON(json) {
44
+ return MoneyDecimalDtoToJSONTyped(json, false);
45
+ }
46
+ function MoneyDecimalDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'amount': value['amount'],
53
+ 'currencyCode': value['currencyCode'],
54
+ };
55
+ }
@@ -29,6 +29,8 @@ export * from './AdminAccountSettingsAffiliateCommissionInput';
29
29
  export * from './AdminAccountSettingsAffiliateInput';
30
30
  export * from './AdminAccountSettingsAffiliateReferralDurationInput';
31
31
  export * from './AdminAccountSettingsInput';
32
+ export * from './AdminAuctionCommissionByDateRangeInput';
33
+ export * from './AdminAuctionConfigurationInput';
32
34
  export * from './AdminBankAccountDto';
33
35
  export * from './AdminCompanyStatsDto';
34
36
  export * from './AdminCompanyStatsLedger';
@@ -47,6 +49,7 @@ export * from './AuctionBidInput';
47
49
  export * from './AuctionBidMetricsDto';
48
50
  export * from './AuctionBuyerDto';
49
51
  export * from './AuctionBuyerWithTokenDto';
52
+ export * from './AuctionCommissionByDateRangeDto';
50
53
  export * from './AuctionConfigurationDto';
51
54
  export * from './AuctionDto';
52
55
  export * from './AuctionDurationDto';
@@ -224,6 +227,7 @@ export * from './MajesticMetrics';
224
227
  export * from './MajesticTopicTrustFlow';
225
228
  export * from './ManualLeadBuyerDto';
226
229
  export * from './ManualLeadLeaseToOwnDto';
230
+ export * from './MoneyDecimalDto';
227
231
  export * from './MoneyDto';
228
232
  export * from './MoneyInput';
229
233
  export * from './MozMetrics';
@@ -339,7 +343,6 @@ export * from './TimeTableConfigurationDto';
339
343
  export * from './TimeTableConfigurationInput';
340
344
  export * from './UkBankAccountDetails';
341
345
  export * from './UpdateAccountBillingInformationInput';
342
- export * from './UpdateAuctionConfigurationDto';
343
346
  export * from './UpdateAuctionMuteStatusInput';
344
347
  export * from './UpdateBuyerDomainTransferIpsTagInputDto';
345
348
  export * from './UpdateBuyerNotificationSettingsInput';
@@ -47,6 +47,8 @@ __exportStar(require("./AdminAccountSettingsAffiliateCommissionInput"), exports)
47
47
  __exportStar(require("./AdminAccountSettingsAffiliateInput"), exports);
48
48
  __exportStar(require("./AdminAccountSettingsAffiliateReferralDurationInput"), exports);
49
49
  __exportStar(require("./AdminAccountSettingsInput"), exports);
50
+ __exportStar(require("./AdminAuctionCommissionByDateRangeInput"), exports);
51
+ __exportStar(require("./AdminAuctionConfigurationInput"), exports);
50
52
  __exportStar(require("./AdminBankAccountDto"), exports);
51
53
  __exportStar(require("./AdminCompanyStatsDto"), exports);
52
54
  __exportStar(require("./AdminCompanyStatsLedger"), exports);
@@ -65,6 +67,7 @@ __exportStar(require("./AuctionBidInput"), exports);
65
67
  __exportStar(require("./AuctionBidMetricsDto"), exports);
66
68
  __exportStar(require("./AuctionBuyerDto"), exports);
67
69
  __exportStar(require("./AuctionBuyerWithTokenDto"), exports);
70
+ __exportStar(require("./AuctionCommissionByDateRangeDto"), exports);
68
71
  __exportStar(require("./AuctionConfigurationDto"), exports);
69
72
  __exportStar(require("./AuctionDto"), exports);
70
73
  __exportStar(require("./AuctionDurationDto"), exports);
@@ -242,6 +245,7 @@ __exportStar(require("./MajesticMetrics"), exports);
242
245
  __exportStar(require("./MajesticTopicTrustFlow"), exports);
243
246
  __exportStar(require("./ManualLeadBuyerDto"), exports);
244
247
  __exportStar(require("./ManualLeadLeaseToOwnDto"), exports);
248
+ __exportStar(require("./MoneyDecimalDto"), exports);
245
249
  __exportStar(require("./MoneyDto"), exports);
246
250
  __exportStar(require("./MoneyInput"), exports);
247
251
  __exportStar(require("./MozMetrics"), exports);
@@ -357,7 +361,6 @@ __exportStar(require("./TimeTableConfigurationDto"), exports);
357
361
  __exportStar(require("./TimeTableConfigurationInput"), exports);
358
362
  __exportStar(require("./UkBankAccountDetails"), exports);
359
363
  __exportStar(require("./UpdateAccountBillingInformationInput"), exports);
360
- __exportStar(require("./UpdateAuctionConfigurationDto"), exports);
361
364
  __exportStar(require("./UpdateAuctionMuteStatusInput"), exports);
362
365
  __exportStar(require("./UpdateBuyerDomainTransferIpsTagInputDto"), exports);
363
366
  __exportStar(require("./UpdateBuyerNotificationSettingsInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.358",
3
+ "version": "0.0.360",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,6 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ AccountPaymentMethodProfileDto,
18
19
  AccountSettingsDto,
19
20
  AdminAccountLoginDto,
20
21
  AdminAccountSettingsInput,
@@ -43,6 +44,8 @@ import type {
43
44
  ValidationException,
44
45
  } from '../models/index';
45
46
  import {
47
+ AccountPaymentMethodProfileDtoFromJSON,
48
+ AccountPaymentMethodProfileDtoToJSON,
46
49
  AccountSettingsDtoFromJSON,
47
50
  AccountSettingsDtoToJSON,
48
51
  AdminAccountLoginDtoFromJSON,
@@ -126,6 +129,10 @@ export interface AdminApiGetAccountMeRequest {
126
129
  accountId: string;
127
130
  }
128
131
 
132
+ export interface AdminApiGetAccountPaymentMethodProfilesRequest {
133
+ accountId: string;
134
+ }
135
+
129
136
  export interface AdminApiGetAccountSettingsRequest {
130
137
  accountId: string;
131
138
  }
@@ -236,6 +243,10 @@ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
236
243
  sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
237
244
  }
238
245
 
246
+ export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
247
+ accountId: string;
248
+ }
249
+
239
250
  export interface AdminApiUpdateAccountSettingsRequest {
240
251
  accountId: string;
241
252
  adminAccountSettingsInput: AdminAccountSettingsInput;
@@ -527,6 +538,47 @@ export class AdminApi extends runtime.BaseAPI {
527
538
  return await response.value();
528
539
  }
529
540
 
541
+ /**
542
+ *
543
+ */
544
+ async getAccountPaymentMethodProfilesRaw(requestParameters: AdminApiGetAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountPaymentMethodProfileDto>>> {
545
+ if (requestParameters['accountId'] == null) {
546
+ throw new runtime.RequiredError(
547
+ 'accountId',
548
+ 'Required parameter "accountId" was null or undefined when calling getAccountPaymentMethodProfiles().'
549
+ );
550
+ }
551
+
552
+ const queryParameters: any = {};
553
+
554
+ const headerParameters: runtime.HTTPHeaders = {};
555
+
556
+ if (this.configuration && this.configuration.accessToken) {
557
+ const token = this.configuration.accessToken;
558
+ const tokenString = await token("bearer", []);
559
+
560
+ if (tokenString) {
561
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
562
+ }
563
+ }
564
+ const response = await this.request({
565
+ path: `/admin/accounts/{accountId}/payment-method-profiles`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
566
+ method: 'GET',
567
+ headers: headerParameters,
568
+ query: queryParameters,
569
+ }, initOverrides);
570
+
571
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountPaymentMethodProfileDtoFromJSON));
572
+ }
573
+
574
+ /**
575
+ *
576
+ */
577
+ async getAccountPaymentMethodProfiles(requestParameters: AdminApiGetAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountPaymentMethodProfileDto>> {
578
+ const response = await this.getAccountPaymentMethodProfilesRaw(requestParameters, initOverrides);
579
+ return await response.value();
580
+ }
581
+
530
582
  /**
531
583
  *
532
584
  */
@@ -1463,6 +1515,46 @@ export class AdminApi extends runtime.BaseAPI {
1463
1515
  return await response.value();
1464
1516
  }
1465
1517
 
1518
+ /**
1519
+ *
1520
+ */
1521
+ async syncAllAccountPaymentMethodProfilesRaw(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1522
+ if (requestParameters['accountId'] == null) {
1523
+ throw new runtime.RequiredError(
1524
+ 'accountId',
1525
+ 'Required parameter "accountId" was null or undefined when calling syncAllAccountPaymentMethodProfiles().'
1526
+ );
1527
+ }
1528
+
1529
+ const queryParameters: any = {};
1530
+
1531
+ const headerParameters: runtime.HTTPHeaders = {};
1532
+
1533
+ if (this.configuration && this.configuration.accessToken) {
1534
+ const token = this.configuration.accessToken;
1535
+ const tokenString = await token("bearer", []);
1536
+
1537
+ if (tokenString) {
1538
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1539
+ }
1540
+ }
1541
+ const response = await this.request({
1542
+ path: `/admin/accounts/{accountId}/payment-method-profiles/sync`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
1543
+ method: 'POST',
1544
+ headers: headerParameters,
1545
+ query: queryParameters,
1546
+ }, initOverrides);
1547
+
1548
+ return new runtime.VoidApiResponse(response);
1549
+ }
1550
+
1551
+ /**
1552
+ *
1553
+ */
1554
+ async syncAllAccountPaymentMethodProfiles(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1555
+ await this.syncAllAccountPaymentMethodProfilesRaw(requestParameters, initOverrides);
1556
+ }
1557
+
1466
1558
  /**
1467
1559
  *
1468
1560
  */
@@ -27,13 +27,13 @@ import {
27
27
  AdminAccountCommissionByDateRangeInputToJSON,
28
28
  AdminAccountCommissionByDateRangeInputToJSONTyped,
29
29
  } from './AdminAccountCommissionByDateRangeInput';
30
- import type { UpdateAuctionConfigurationDto } from './UpdateAuctionConfigurationDto';
30
+ import type { AdminAuctionConfigurationInput } from './AdminAuctionConfigurationInput';
31
31
  import {
32
- UpdateAuctionConfigurationDtoFromJSON,
33
- UpdateAuctionConfigurationDtoFromJSONTyped,
34
- UpdateAuctionConfigurationDtoToJSON,
35
- UpdateAuctionConfigurationDtoToJSONTyped,
36
- } from './UpdateAuctionConfigurationDto';
32
+ AdminAuctionConfigurationInputFromJSON,
33
+ AdminAuctionConfigurationInputFromJSONTyped,
34
+ AdminAuctionConfigurationInputToJSON,
35
+ AdminAuctionConfigurationInputToJSONTyped,
36
+ } from './AdminAuctionConfigurationInput';
37
37
 
38
38
  /**
39
39
  *
@@ -79,10 +79,10 @@ export interface AdminAccountSettingsInput {
79
79
  domainAffiliate?: AdminAccountSettingsAffiliateInput;
80
80
  /**
81
81
  *
82
- * @type {UpdateAuctionConfigurationDto}
82
+ * @type {AdminAuctionConfigurationInput}
83
83
  * @memberof AdminAccountSettingsInput
84
84
  */
85
- auctionConfiguration?: UpdateAuctionConfigurationDto;
85
+ auctionConfiguration?: AdminAuctionConfigurationInput;
86
86
  }
87
87
 
88
88
  /**
@@ -108,7 +108,7 @@ export function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscrimi
108
108
  'commissionsByDateRange': json['commissionsByDateRange'] == null ? undefined : ((json['commissionsByDateRange'] as Array<any>).map(AdminAccountCommissionByDateRangeInputFromJSON)),
109
109
  'affiliate': json['affiliate'] == null ? undefined : AdminAccountSettingsAffiliateInputFromJSON(json['affiliate']),
110
110
  'domainAffiliate': json['domainAffiliate'] == null ? undefined : AdminAccountSettingsAffiliateInputFromJSON(json['domainAffiliate']),
111
- 'auctionConfiguration': json['auctionConfiguration'] == null ? undefined : UpdateAuctionConfigurationDtoFromJSON(json['auctionConfiguration']),
111
+ 'auctionConfiguration': json['auctionConfiguration'] == null ? undefined : AdminAuctionConfigurationInputFromJSON(json['auctionConfiguration']),
112
112
  };
113
113
  }
114
114
 
@@ -129,7 +129,7 @@ export function AdminAccountSettingsInputToJSONTyped(value?: AdminAccountSetting
129
129
  'commissionsByDateRange': value['commissionsByDateRange'] == null ? undefined : ((value['commissionsByDateRange'] as Array<any>).map(AdminAccountCommissionByDateRangeInputToJSON)),
130
130
  'affiliate': AdminAccountSettingsAffiliateInputToJSON(value['affiliate']),
131
131
  'domainAffiliate': AdminAccountSettingsAffiliateInputToJSON(value['domainAffiliate']),
132
- 'auctionConfiguration': UpdateAuctionConfigurationDtoToJSON(value['auctionConfiguration']),
132
+ 'auctionConfiguration': AdminAuctionConfigurationInputToJSON(value['auctionConfiguration']),
133
133
  };
134
134
  }
135
135
 
@@ -0,0 +1,83 @@
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 AdminAuctionCommissionByDateRangeInput
20
+ */
21
+ export interface AdminAuctionCommissionByDateRangeInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AdminAuctionCommissionByDateRangeInput
26
+ */
27
+ startDate: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AdminAuctionCommissionByDateRangeInput
32
+ */
33
+ endDate?: string | null;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof AdminAuctionCommissionByDateRangeInput
38
+ */
39
+ commissionPercentage: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the AdminAuctionCommissionByDateRangeInput interface.
44
+ */
45
+ export function instanceOfAdminAuctionCommissionByDateRangeInput(value: object): value is AdminAuctionCommissionByDateRangeInput {
46
+ if (!('startDate' in value) || value['startDate'] === undefined) return false;
47
+ if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function AdminAuctionCommissionByDateRangeInputFromJSON(json: any): AdminAuctionCommissionByDateRangeInput {
52
+ return AdminAuctionCommissionByDateRangeInputFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function AdminAuctionCommissionByDateRangeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAuctionCommissionByDateRangeInput {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'startDate': json['startDate'],
62
+ 'endDate': json['endDate'] == null ? undefined : json['endDate'],
63
+ 'commissionPercentage': json['commissionPercentage'],
64
+ };
65
+ }
66
+
67
+ export function AdminAuctionCommissionByDateRangeInputToJSON(json: any): AdminAuctionCommissionByDateRangeInput {
68
+ return AdminAuctionCommissionByDateRangeInputToJSONTyped(json, false);
69
+ }
70
+
71
+ export function AdminAuctionCommissionByDateRangeInputToJSONTyped(value?: AdminAuctionCommissionByDateRangeInput | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'startDate': value['startDate'],
79
+ 'endDate': value['endDate'],
80
+ 'commissionPercentage': value['commissionPercentage'],
81
+ };
82
+ }
83
+
@@ -0,0 +1,119 @@
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
+ import type { AuctionDurationDto } from './AuctionDurationDto';
17
+ import {
18
+ AuctionDurationDtoFromJSON,
19
+ AuctionDurationDtoFromJSONTyped,
20
+ AuctionDurationDtoToJSON,
21
+ AuctionDurationDtoToJSONTyped,
22
+ } from './AuctionDurationDto';
23
+ import type { AdminAuctionCommissionByDateRangeInput } from './AdminAuctionCommissionByDateRangeInput';
24
+ import {
25
+ AdminAuctionCommissionByDateRangeInputFromJSON,
26
+ AdminAuctionCommissionByDateRangeInputFromJSONTyped,
27
+ AdminAuctionCommissionByDateRangeInputToJSON,
28
+ AdminAuctionCommissionByDateRangeInputToJSONTyped,
29
+ } from './AdminAuctionCommissionByDateRangeInput';
30
+ import type { MoneyDecimalDto } from './MoneyDecimalDto';
31
+ import {
32
+ MoneyDecimalDtoFromJSON,
33
+ MoneyDecimalDtoFromJSONTyped,
34
+ MoneyDecimalDtoToJSON,
35
+ MoneyDecimalDtoToJSONTyped,
36
+ } from './MoneyDecimalDto';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface AdminAuctionConfigurationInput
42
+ */
43
+ export interface AdminAuctionConfigurationInput {
44
+ /**
45
+ *
46
+ * @type {AuctionDurationDto}
47
+ * @memberof AdminAuctionConfigurationInput
48
+ */
49
+ defaultDurationFromLead?: AuctionDurationDto;
50
+ /**
51
+ *
52
+ * @type {number}
53
+ * @memberof AdminAuctionConfigurationInput
54
+ */
55
+ defaultInitialBidAmount?: number;
56
+ /**
57
+ *
58
+ * @type {MoneyDecimalDto}
59
+ * @memberof AdminAuctionConfigurationInput
60
+ */
61
+ paidAuctionPrice?: MoneyDecimalDto;
62
+ /**
63
+ *
64
+ * @type {number}
65
+ * @memberof AdminAuctionConfigurationInput
66
+ */
67
+ commissionPercentage?: number;
68
+ /**
69
+ *
70
+ * @type {Array<AdminAuctionCommissionByDateRangeInput>}
71
+ * @memberof AdminAuctionConfigurationInput
72
+ */
73
+ commissionsByDateRange?: Array<AdminAuctionCommissionByDateRangeInput>;
74
+ }
75
+
76
+ /**
77
+ * Check if a given object implements the AdminAuctionConfigurationInput interface.
78
+ */
79
+ export function instanceOfAdminAuctionConfigurationInput(value: object): value is AdminAuctionConfigurationInput {
80
+ return true;
81
+ }
82
+
83
+ export function AdminAuctionConfigurationInputFromJSON(json: any): AdminAuctionConfigurationInput {
84
+ return AdminAuctionConfigurationInputFromJSONTyped(json, false);
85
+ }
86
+
87
+ export function AdminAuctionConfigurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAuctionConfigurationInput {
88
+ if (json == null) {
89
+ return json;
90
+ }
91
+ return {
92
+
93
+ 'defaultDurationFromLead': json['defaultDurationFromLead'] == null ? undefined : AuctionDurationDtoFromJSON(json['defaultDurationFromLead']),
94
+ 'defaultInitialBidAmount': json['defaultInitialBidAmount'] == null ? undefined : json['defaultInitialBidAmount'],
95
+ 'paidAuctionPrice': json['paidAuctionPrice'] == null ? undefined : MoneyDecimalDtoFromJSON(json['paidAuctionPrice']),
96
+ 'commissionPercentage': json['commissionPercentage'] == null ? undefined : json['commissionPercentage'],
97
+ 'commissionsByDateRange': json['commissionsByDateRange'] == null ? undefined : ((json['commissionsByDateRange'] as Array<any>).map(AdminAuctionCommissionByDateRangeInputFromJSON)),
98
+ };
99
+ }
100
+
101
+ export function AdminAuctionConfigurationInputToJSON(json: any): AdminAuctionConfigurationInput {
102
+ return AdminAuctionConfigurationInputToJSONTyped(json, false);
103
+ }
104
+
105
+ export function AdminAuctionConfigurationInputToJSONTyped(value?: AdminAuctionConfigurationInput | null, ignoreDiscriminator: boolean = false): any {
106
+ if (value == null) {
107
+ return value;
108
+ }
109
+
110
+ return {
111
+
112
+ 'defaultDurationFromLead': AuctionDurationDtoToJSON(value['defaultDurationFromLead']),
113
+ 'defaultInitialBidAmount': value['defaultInitialBidAmount'],
114
+ 'paidAuctionPrice': MoneyDecimalDtoToJSON(value['paidAuctionPrice']),
115
+ 'commissionPercentage': value['commissionPercentage'],
116
+ 'commissionsByDateRange': value['commissionsByDateRange'] == null ? undefined : ((value['commissionsByDateRange'] as Array<any>).map(AdminAuctionCommissionByDateRangeInputToJSON)),
117
+ };
118
+ }
119
+
@@ -0,0 +1,84 @@
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 AuctionCommissionByDateRangeDto
20
+ */
21
+ export interface AuctionCommissionByDateRangeDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AuctionCommissionByDateRangeDto
26
+ */
27
+ start: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AuctionCommissionByDateRangeDto
32
+ */
33
+ end: string | null;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof AuctionCommissionByDateRangeDto
38
+ */
39
+ commissionPercentage: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the AuctionCommissionByDateRangeDto interface.
44
+ */
45
+ export function instanceOfAuctionCommissionByDateRangeDto(value: object): value is AuctionCommissionByDateRangeDto {
46
+ if (!('start' in value) || value['start'] === undefined) return false;
47
+ if (!('end' in value) || value['end'] === undefined) return false;
48
+ if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function AuctionCommissionByDateRangeDtoFromJSON(json: any): AuctionCommissionByDateRangeDto {
53
+ return AuctionCommissionByDateRangeDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function AuctionCommissionByDateRangeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionCommissionByDateRangeDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'start': json['start'],
63
+ 'end': json['end'],
64
+ 'commissionPercentage': json['commissionPercentage'],
65
+ };
66
+ }
67
+
68
+ export function AuctionCommissionByDateRangeDtoToJSON(json: any): AuctionCommissionByDateRangeDto {
69
+ return AuctionCommissionByDateRangeDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function AuctionCommissionByDateRangeDtoToJSONTyped(value?: AuctionCommissionByDateRangeDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'start': value['start'],
80
+ 'end': value['end'],
81
+ 'commissionPercentage': value['commissionPercentage'],
82
+ };
83
+ }
84
+