@randock/nameshift-api-client 0.0.445 → 0.0.447

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 (82) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +2 -2
  4. package/dist/apis/AccountsApi.js +2 -2
  5. package/dist/apis/AdminApi.d.ts +16 -3
  6. package/dist/apis/AdminApi.js +59 -2
  7. package/dist/apis/MarketApi.d.ts +71 -0
  8. package/dist/apis/MarketApi.js +299 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +6 -0
  12. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +4 -0
  13. package/dist/models/AccountNameshiftCommissionByTypeDto.d.ts +2 -2
  14. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +12 -0
  15. package/dist/models/AccountNameshiftCommissionItemDto.js +8 -0
  16. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +21 -0
  17. package/dist/models/AccountNameshiftCommissionReasonDto.js +13 -1
  18. package/dist/models/CommissionConfigurationSimulationInput.d.ts +33 -0
  19. package/dist/models/CommissionConfigurationSimulationInput.js +52 -0
  20. package/dist/models/CommissionConfigurationSimulationInputPayload.d.ts +27 -0
  21. package/dist/models/CommissionConfigurationSimulationInputPayload.js +54 -0
  22. package/dist/models/CommissionDto.d.ts +12 -0
  23. package/dist/models/CommissionDto.js +8 -0
  24. package/dist/models/CommissionFactor.d.ts +1 -1
  25. package/dist/models/CommissionFactor.js +1 -1
  26. package/dist/models/CommissionPayloadInput.d.ts +12 -0
  27. package/dist/models/CommissionPayloadInput.js +4 -0
  28. package/dist/models/CommissionReasonDto.d.ts +33 -0
  29. package/dist/models/CommissionReasonDto.js +17 -1
  30. package/dist/models/CommissionSimulationItemInput.d.ts +123 -0
  31. package/dist/models/CommissionSimulationItemInput.js +113 -0
  32. package/dist/models/CommissionSimulationResultDto.d.ts +39 -0
  33. package/dist/models/CommissionSimulationResultDto.js +56 -0
  34. package/dist/models/FixedCommissionPayloadSimulationInput.d.ts +39 -0
  35. package/dist/models/FixedCommissionPayloadSimulationInput.js +56 -0
  36. package/dist/models/GetAccountNameshiftCommissionsResponseDto.d.ts +1 -1
  37. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +6 -0
  38. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +4 -0
  39. package/dist/models/LeadDto.d.ts +6 -0
  40. package/dist/models/LeadDto.js +4 -0
  41. package/dist/models/ListLeadsResultItem.d.ts +6 -0
  42. package/dist/models/ListLeadsResultItem.js +4 -0
  43. package/dist/models/MozMetrics.d.ts +6 -0
  44. package/dist/models/MozMetrics.js +4 -0
  45. package/dist/models/PopularCategoryDto.d.ts +44 -0
  46. package/dist/models/PopularCategoryDto.js +59 -0
  47. package/dist/models/SalesCountCommissionPayloadSimulationInput.d.ts +40 -0
  48. package/dist/models/SalesCountCommissionPayloadSimulationInput.js +57 -0
  49. package/dist/models/SellerLeadDetails.d.ts +6 -0
  50. package/dist/models/SellerLeadDetails.js +4 -0
  51. package/dist/models/SimulateCommissionInput.d.ts +67 -0
  52. package/dist/models/SimulateCommissionInput.js +78 -0
  53. package/dist/models/index.d.ts +8 -0
  54. package/dist/models/index.js +8 -0
  55. package/package.json +1 -1
  56. package/src/apis/AccountsApi.ts +2 -2
  57. package/src/apis/AdminApi.ts +58 -2
  58. package/src/apis/MarketApi.ts +204 -0
  59. package/src/apis/index.ts +1 -0
  60. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +9 -0
  61. package/src/models/AccountNameshiftCommissionByTypeDto.ts +2 -2
  62. package/src/models/AccountNameshiftCommissionItemDto.ts +18 -0
  63. package/src/models/AccountNameshiftCommissionReasonDto.ts +26 -0
  64. package/src/models/CommissionConfigurationSimulationInput.ts +74 -0
  65. package/src/models/CommissionConfigurationSimulationInputPayload.ts +73 -0
  66. package/src/models/CommissionDto.ts +18 -0
  67. package/src/models/CommissionFactor.ts +1 -1
  68. package/src/models/CommissionPayloadInput.ts +16 -0
  69. package/src/models/CommissionReasonDto.ts +42 -0
  70. package/src/models/CommissionSimulationItemInput.ts +202 -0
  71. package/src/models/CommissionSimulationResultDto.ts +83 -0
  72. package/src/models/FixedCommissionPayloadSimulationInput.ts +85 -0
  73. package/src/models/GetAccountNameshiftCommissionsResponseDto.ts +1 -1
  74. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +9 -0
  75. package/src/models/LeadDto.ts +9 -0
  76. package/src/models/ListLeadsResultItem.ts +9 -0
  77. package/src/models/MozMetrics.ts +9 -0
  78. package/src/models/PopularCategoryDto.ts +84 -0
  79. package/src/models/SalesCountCommissionPayloadSimulationInput.ts +92 -0
  80. package/src/models/SellerLeadDetails.ts +9 -0
  81. package/src/models/SimulateCommissionInput.ts +123 -0
  82. package/src/models/index.ts +8 -0
@@ -35,6 +35,8 @@ exports.AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = {
35
35
  function instanceOfAccountNameshiftCommissionBySubtypeDto(value) {
36
36
  if (!('subtype' in value) || value['subtype'] === undefined)
37
37
  return false;
38
+ if (!('tlds' in value) || value['tlds'] === undefined)
39
+ return false;
38
40
  if (!('percentage' in value) || value['percentage'] === undefined)
39
41
  return false;
40
42
  if (!('reason' in value) || value['reason'] === undefined)
@@ -50,6 +52,7 @@ function AccountNameshiftCommissionBySubtypeDtoFromJSONTyped(json, ignoreDiscrim
50
52
  }
51
53
  return {
52
54
  'subtype': json['subtype'],
55
+ 'tlds': json['tlds'] == null ? null : json['tlds'],
53
56
  'percentage': json['percentage'],
54
57
  'reason': (0, CommissionReasonDto_1.CommissionReasonDtoFromJSON)(json['reason']),
55
58
  };
@@ -64,6 +67,7 @@ function AccountNameshiftCommissionBySubtypeDtoToJSONTyped(value, ignoreDiscrimi
64
67
  }
65
68
  return {
66
69
  'subtype': value['subtype'],
70
+ 'tlds': value['tlds'],
67
71
  'percentage': value['percentage'],
68
72
  'reason': (0, CommissionReasonDto_1.CommissionReasonDtoToJSON)(value['reason']),
69
73
  };
@@ -18,13 +18,13 @@ import type { AccountNameshiftCommissionItemDto } from './AccountNameshiftCommis
18
18
  */
19
19
  export interface AccountNameshiftCommissionByTypeDto {
20
20
  /**
21
- * Commissions grouped by subtype.
21
+ * Current commissions by subtype and domain extension group.
22
22
  * @type {Array<AccountNameshiftCommissionBySubtypeDto>}
23
23
  * @memberof AccountNameshiftCommissionByTypeDto
24
24
  */
25
25
  commissions: Array<AccountNameshiftCommissionBySubtypeDto>;
26
26
  /**
27
- * List of nameshift commissions (not expired or not yet started)
27
+ * Commission schedules for the account.
28
28
  * @type {Array<AccountNameshiftCommissionItemDto>}
29
29
  * @memberof AccountNameshiftCommissionByTypeDto
30
30
  */
@@ -52,6 +52,18 @@ export interface AccountNameshiftCommissionItemDto {
52
52
  * @memberof AccountNameshiftCommissionItemDto
53
53
  */
54
54
  dateEnd: Date | null;
55
+ /**
56
+ * Domain extensions this commission applies to. When empty, the commission applies to all extensions.
57
+ * @type {Array<string>}
58
+ * @memberof AccountNameshiftCommissionItemDto
59
+ */
60
+ tlds: Array<string>;
61
+ /**
62
+ * Domain extensions excluded from this commission.
63
+ * @type {Array<string>}
64
+ * @memberof AccountNameshiftCommissionItemDto
65
+ */
66
+ excludedTlds: Array<string>;
55
67
  }
56
68
  /**
57
69
  * @export
@@ -45,6 +45,10 @@ function instanceOfAccountNameshiftCommissionItemDto(value) {
45
45
  return false;
46
46
  if (!('dateEnd' in value) || value['dateEnd'] === undefined)
47
47
  return false;
48
+ if (!('tlds' in value) || value['tlds'] === undefined)
49
+ return false;
50
+ if (!('excludedTlds' in value) || value['excludedTlds'] === undefined)
51
+ return false;
48
52
  return true;
49
53
  }
50
54
  function AccountNameshiftCommissionItemDtoFromJSON(json) {
@@ -61,6 +65,8 @@ function AccountNameshiftCommissionItemDtoFromJSONTyped(json, ignoreDiscriminato
61
65
  'config': (0, CommissionConfigurationDto_1.CommissionConfigurationDtoFromJSON)(json['config']),
62
66
  'dateStart': (new Date(json['dateStart'])),
63
67
  'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
68
+ 'tlds': json['tlds'],
69
+ 'excludedTlds': json['excludedTlds'],
64
70
  };
65
71
  }
66
72
  function AccountNameshiftCommissionItemDtoToJSON(json) {
@@ -78,5 +84,7 @@ function AccountNameshiftCommissionItemDtoToJSONTyped(value, ignoreDiscriminator
78
84
  'config': (0, CommissionConfigurationDto_1.CommissionConfigurationDtoToJSON)(value['config']),
79
85
  'dateStart': ((value['dateStart']).toISOString()),
80
86
  'dateEnd': (value['dateEnd'] == null ? null : value['dateEnd'].toISOString()),
87
+ 'tlds': value['tlds'],
88
+ 'excludedTlds': value['excludedTlds'],
81
89
  };
82
90
  }
@@ -83,6 +83,18 @@ export interface AccountNameshiftCommissionReasonDto {
83
83
  * @memberof AccountNameshiftCommissionReasonDto
84
84
  */
85
85
  factorCountResult?: number | null;
86
+ /**
87
+ * How the commission was selected for the domain extension.
88
+ * @type {string}
89
+ * @memberof AccountNameshiftCommissionReasonDto
90
+ */
91
+ tldMatchType?: AccountNameshiftCommissionReasonDtoTldMatchTypeEnum;
92
+ /**
93
+ * Domain extension used to select the commission, if any.
94
+ * @type {string}
95
+ * @memberof AccountNameshiftCommissionReasonDto
96
+ */
97
+ tldMatchedValue?: string | null;
86
98
  }
87
99
  /**
88
100
  * @export
@@ -102,6 +114,15 @@ export declare const AccountNameshiftCommissionReasonDtoSubtypeEnum: {
102
114
  readonly AUCTION: "auction";
103
115
  };
104
116
  export type AccountNameshiftCommissionReasonDtoSubtypeEnum = typeof AccountNameshiftCommissionReasonDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionReasonDtoSubtypeEnum];
117
+ /**
118
+ * @export
119
+ */
120
+ export declare const AccountNameshiftCommissionReasonDtoTldMatchTypeEnum: {
121
+ readonly NULL_TLD_DEFAULT: "null_tld_default";
122
+ readonly INCLUDED_TLD_LIST: "included_tld_list";
123
+ readonly ALL_TLDS_DEFAULT: "all_tlds_default";
124
+ };
125
+ export type AccountNameshiftCommissionReasonDtoTldMatchTypeEnum = typeof AccountNameshiftCommissionReasonDtoTldMatchTypeEnum[keyof typeof AccountNameshiftCommissionReasonDtoTldMatchTypeEnum];
105
126
  /**
106
127
  * Check if a given object implements the AccountNameshiftCommissionReasonDto interface.
107
128
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AccountNameshiftCommissionReasonDtoSubtypeEnum = exports.AccountNameshiftCommissionReasonDtoTypeEnum = void 0;
16
+ exports.AccountNameshiftCommissionReasonDtoTldMatchTypeEnum = exports.AccountNameshiftCommissionReasonDtoSubtypeEnum = exports.AccountNameshiftCommissionReasonDtoTypeEnum = void 0;
17
17
  exports.instanceOfAccountNameshiftCommissionReasonDto = instanceOfAccountNameshiftCommissionReasonDto;
18
18
  exports.AccountNameshiftCommissionReasonDtoFromJSON = AccountNameshiftCommissionReasonDtoFromJSON;
19
19
  exports.AccountNameshiftCommissionReasonDtoFromJSONTyped = AccountNameshiftCommissionReasonDtoFromJSONTyped;
@@ -37,6 +37,14 @@ exports.AccountNameshiftCommissionReasonDtoSubtypeEnum = {
37
37
  MANUAL_LEAD: 'manual_lead',
38
38
  AUCTION: 'auction'
39
39
  };
40
+ /**
41
+ * @export
42
+ */
43
+ exports.AccountNameshiftCommissionReasonDtoTldMatchTypeEnum = {
44
+ NULL_TLD_DEFAULT: 'null_tld_default',
45
+ INCLUDED_TLD_LIST: 'included_tld_list',
46
+ ALL_TLDS_DEFAULT: 'all_tlds_default'
47
+ };
40
48
  /**
41
49
  * Check if a given object implements the AccountNameshiftCommissionReasonDto interface.
42
50
  */
@@ -62,6 +70,8 @@ function AccountNameshiftCommissionReasonDtoFromJSONTyped(json, ignoreDiscrimina
62
70
  'selectedValue': json['selectedValue'] == null ? undefined : json['selectedValue'],
63
71
  'selectedTier': json['selectedTier'] == null ? undefined : (0, CommissionPercentageRangeDto_1.CommissionPercentageRangeDtoFromJSON)(json['selectedTier']),
64
72
  'factorCountResult': json['factorCountResult'] == null ? undefined : json['factorCountResult'],
73
+ 'tldMatchType': json['tldMatchType'] == null ? undefined : json['tldMatchType'],
74
+ 'tldMatchedValue': json['tldMatchedValue'] == null ? undefined : json['tldMatchedValue'],
65
75
  };
66
76
  }
67
77
  function AccountNameshiftCommissionReasonDtoToJSON(json) {
@@ -84,5 +94,7 @@ function AccountNameshiftCommissionReasonDtoToJSONTyped(value, ignoreDiscriminat
84
94
  'selectedValue': value['selectedValue'],
85
95
  'selectedTier': (0, CommissionPercentageRangeDto_1.CommissionPercentageRangeDtoToJSON)(value['selectedTier']),
86
96
  'factorCountResult': value['factorCountResult'],
97
+ 'tldMatchType': value['tldMatchType'],
98
+ 'tldMatchedValue': value['tldMatchedValue'],
87
99
  };
88
100
  }
@@ -0,0 +1,33 @@
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
+ import type { CommissionConfigurationSimulationInputPayload } from './CommissionConfigurationSimulationInputPayload';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionConfigurationSimulationInput
17
+ */
18
+ export interface CommissionConfigurationSimulationInput {
19
+ /**
20
+ *
21
+ * @type {CommissionConfigurationSimulationInputPayload}
22
+ * @memberof CommissionConfigurationSimulationInput
23
+ */
24
+ payload: CommissionConfigurationSimulationInputPayload;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CommissionConfigurationSimulationInput interface.
28
+ */
29
+ export declare function instanceOfCommissionConfigurationSimulationInput(value: object): value is CommissionConfigurationSimulationInput;
30
+ export declare function CommissionConfigurationSimulationInputFromJSON(json: any): CommissionConfigurationSimulationInput;
31
+ export declare function CommissionConfigurationSimulationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionConfigurationSimulationInput;
32
+ export declare function CommissionConfigurationSimulationInputToJSON(json: any): CommissionConfigurationSimulationInput;
33
+ export declare function CommissionConfigurationSimulationInputToJSONTyped(value?: CommissionConfigurationSimulationInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfCommissionConfigurationSimulationInput = instanceOfCommissionConfigurationSimulationInput;
17
+ exports.CommissionConfigurationSimulationInputFromJSON = CommissionConfigurationSimulationInputFromJSON;
18
+ exports.CommissionConfigurationSimulationInputFromJSONTyped = CommissionConfigurationSimulationInputFromJSONTyped;
19
+ exports.CommissionConfigurationSimulationInputToJSON = CommissionConfigurationSimulationInputToJSON;
20
+ exports.CommissionConfigurationSimulationInputToJSONTyped = CommissionConfigurationSimulationInputToJSONTyped;
21
+ var CommissionConfigurationSimulationInputPayload_1 = require("./CommissionConfigurationSimulationInputPayload");
22
+ /**
23
+ * Check if a given object implements the CommissionConfigurationSimulationInput interface.
24
+ */
25
+ function instanceOfCommissionConfigurationSimulationInput(value) {
26
+ if (!('payload' in value) || value['payload'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function CommissionConfigurationSimulationInputFromJSON(json) {
31
+ return CommissionConfigurationSimulationInputFromJSONTyped(json, false);
32
+ }
33
+ function CommissionConfigurationSimulationInputFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'payload': (0, CommissionConfigurationSimulationInputPayload_1.CommissionConfigurationSimulationInputPayloadFromJSON)(json['payload']),
39
+ };
40
+ }
41
+ function CommissionConfigurationSimulationInputToJSON(json) {
42
+ return CommissionConfigurationSimulationInputToJSONTyped(json, false);
43
+ }
44
+ function CommissionConfigurationSimulationInputToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'payload': (0, CommissionConfigurationSimulationInputPayload_1.CommissionConfigurationSimulationInputPayloadToJSON)(value['payload']),
51
+ };
52
+ }
@@ -0,0 +1,27 @@
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
+ import type { FixedCommissionPayloadSimulationInput } from './FixedCommissionPayloadSimulationInput';
13
+ import type { SalesCountCommissionPayloadSimulationInput } from './SalesCountCommissionPayloadSimulationInput';
14
+ /**
15
+ * @type CommissionConfigurationSimulationInputPayload
16
+ * Commission configuration payload. Shape depends on `factor`.
17
+ * @export
18
+ */
19
+ export type CommissionConfigurationSimulationInputPayload = {
20
+ factor: 'fixed';
21
+ } & FixedCommissionPayloadSimulationInput | {
22
+ factor: 'monthly_sales_count';
23
+ } & SalesCountCommissionPayloadSimulationInput;
24
+ export declare function CommissionConfigurationSimulationInputPayloadFromJSON(json: any): CommissionConfigurationSimulationInputPayload;
25
+ export declare function CommissionConfigurationSimulationInputPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionConfigurationSimulationInputPayload;
26
+ export declare function CommissionConfigurationSimulationInputPayloadToJSON(json: any): any;
27
+ export declare function CommissionConfigurationSimulationInputPayloadToJSONTyped(value?: CommissionConfigurationSimulationInputPayload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.CommissionConfigurationSimulationInputPayloadFromJSON = CommissionConfigurationSimulationInputPayloadFromJSON;
17
+ exports.CommissionConfigurationSimulationInputPayloadFromJSONTyped = CommissionConfigurationSimulationInputPayloadFromJSONTyped;
18
+ exports.CommissionConfigurationSimulationInputPayloadToJSON = CommissionConfigurationSimulationInputPayloadToJSON;
19
+ exports.CommissionConfigurationSimulationInputPayloadToJSONTyped = CommissionConfigurationSimulationInputPayloadToJSONTyped;
20
+ var FixedCommissionPayloadSimulationInput_1 = require("./FixedCommissionPayloadSimulationInput");
21
+ var SalesCountCommissionPayloadSimulationInput_1 = require("./SalesCountCommissionPayloadSimulationInput");
22
+ function CommissionConfigurationSimulationInputPayloadFromJSON(json) {
23
+ return CommissionConfigurationSimulationInputPayloadFromJSONTyped(json, false);
24
+ }
25
+ function CommissionConfigurationSimulationInputPayloadFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ switch (json['factor']) {
30
+ case 'fixed':
31
+ return Object.assign({}, (0, FixedCommissionPayloadSimulationInput_1.FixedCommissionPayloadSimulationInputFromJSONTyped)(json, true), { factor: 'fixed' });
32
+ case 'monthly_sales_count':
33
+ return Object.assign({}, (0, SalesCountCommissionPayloadSimulationInput_1.SalesCountCommissionPayloadSimulationInputFromJSONTyped)(json, true), { factor: 'monthly_sales_count' });
34
+ default:
35
+ throw new Error("No variant of CommissionConfigurationSimulationInputPayload exists with 'factor=".concat(json['factor'], "'"));
36
+ }
37
+ }
38
+ function CommissionConfigurationSimulationInputPayloadToJSON(json) {
39
+ return CommissionConfigurationSimulationInputPayloadToJSONTyped(json, false);
40
+ }
41
+ function CommissionConfigurationSimulationInputPayloadToJSONTyped(value, ignoreDiscriminator) {
42
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ switch (value['factor']) {
47
+ case 'fixed':
48
+ return Object.assign({}, (0, FixedCommissionPayloadSimulationInput_1.FixedCommissionPayloadSimulationInputToJSON)(value), { factor: 'fixed' });
49
+ case 'monthly_sales_count':
50
+ return Object.assign({}, (0, SalesCountCommissionPayloadSimulationInput_1.SalesCountCommissionPayloadSimulationInputToJSON)(value), { factor: 'monthly_sales_count' });
51
+ default:
52
+ throw new Error("No variant of CommissionConfigurationSimulationInputPayload exists with 'factor=".concat(value['factor'], "'"));
53
+ }
54
+ }
@@ -71,6 +71,18 @@ export interface CommissionDto {
71
71
  * @memberof CommissionDto
72
72
  */
73
73
  excludedAccountIds: Array<string>;
74
+ /**
75
+ * Domain extensions this commission applies to. When empty, the commission applies to all extensions.
76
+ * @type {Array<string>}
77
+ * @memberof CommissionDto
78
+ */
79
+ tlds: Array<string>;
80
+ /**
81
+ * Domain extensions excluded from this commission.
82
+ * @type {Array<string>}
83
+ * @memberof CommissionDto
84
+ */
85
+ excludedTlds: Array<string>;
74
86
  /**
75
87
  * Commission creation date.
76
88
  * @type {Date}
@@ -59,6 +59,10 @@ function instanceOfCommissionDto(value) {
59
59
  return false;
60
60
  if (!('excludedAccountIds' in value) || value['excludedAccountIds'] === undefined)
61
61
  return false;
62
+ if (!('tlds' in value) || value['tlds'] === undefined)
63
+ return false;
64
+ if (!('excludedTlds' in value) || value['excludedTlds'] === undefined)
65
+ return false;
62
66
  if (!('createdAt' in value) || value['createdAt'] === undefined)
63
67
  return false;
64
68
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -82,6 +86,8 @@ function CommissionDtoFromJSONTyped(json, ignoreDiscriminator) {
82
86
  'dateStart': (new Date(json['dateStart'])),
83
87
  'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
84
88
  'excludedAccountIds': json['excludedAccountIds'],
89
+ 'tlds': json['tlds'],
90
+ 'excludedTlds': json['excludedTlds'],
85
91
  'createdAt': (new Date(json['createdAt'])),
86
92
  'updatedAt': (new Date(json['updatedAt'])),
87
93
  };
@@ -104,6 +110,8 @@ function CommissionDtoToJSONTyped(value, ignoreDiscriminator) {
104
110
  'dateStart': ((value['dateStart']).toISOString()),
105
111
  'dateEnd': (value['dateEnd'] == null ? null : value['dateEnd'].toISOString()),
106
112
  'excludedAccountIds': value['excludedAccountIds'],
113
+ 'tlds': value['tlds'],
114
+ 'excludedTlds': value['excludedTlds'],
107
115
  'createdAt': ((value['createdAt']).toISOString()),
108
116
  'updatedAt': ((value['updatedAt']).toISOString()),
109
117
  };
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Factor that determines how the commission is calculated
13
+ * Commission factor (MONTHLY_SALES_COUNT)
14
14
  * @export
15
15
  */
16
16
  export declare const CommissionFactor: {
@@ -20,7 +20,7 @@ exports.CommissionFactorFromJSONTyped = CommissionFactorFromJSONTyped;
20
20
  exports.CommissionFactorToJSON = CommissionFactorToJSON;
21
21
  exports.CommissionFactorToJSONTyped = CommissionFactorToJSONTyped;
22
22
  /**
23
- * Factor that determines how the commission is calculated
23
+ * Commission factor (MONTHLY_SALES_COUNT)
24
24
  * @export
25
25
  */
26
26
  exports.CommissionFactor = {
@@ -70,6 +70,18 @@ export interface CommissionPayloadInput {
70
70
  * @memberof CommissionPayloadInput
71
71
  */
72
72
  excludedAccountIds: Array<string>;
73
+ /**
74
+ * Domain extensions this commission applies to (for example: "com", "net"). When empty, the commission applies to all extensions.
75
+ * @type {Array<string>}
76
+ * @memberof CommissionPayloadInput
77
+ */
78
+ tlds?: Array<string>;
79
+ /**
80
+ * Domain extensions excluded from this commission.
81
+ * @type {Array<string>}
82
+ * @memberof CommissionPayloadInput
83
+ */
84
+ excludedTlds?: Array<string>;
73
85
  }
74
86
  /**
75
87
  * @export
@@ -77,6 +77,8 @@ function CommissionPayloadInputFromJSONTyped(json, ignoreDiscriminator) {
77
77
  'dateStart': (new Date(json['dateStart'])),
78
78
  'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
79
79
  'excludedAccountIds': json['excludedAccountIds'],
80
+ 'tlds': json['tlds'] == null ? undefined : json['tlds'],
81
+ 'excludedTlds': json['excludedTlds'] == null ? undefined : json['excludedTlds'],
80
82
  };
81
83
  }
82
84
  function CommissionPayloadInputToJSON(json) {
@@ -97,5 +99,7 @@ function CommissionPayloadInputToJSONTyped(value, ignoreDiscriminator) {
97
99
  'dateStart': ((value['dateStart']).toISOString()),
98
100
  'dateEnd': (value['dateEnd'] == null ? null : value['dateEnd'].toISOString()),
99
101
  'excludedAccountIds': value['excludedAccountIds'],
102
+ 'tlds': value['tlds'],
103
+ 'excludedTlds': value['excludedTlds'],
100
104
  };
101
105
  }
@@ -71,6 +71,18 @@ export interface CommissionReasonDto {
71
71
  * @memberof CommissionReasonDto
72
72
  */
73
73
  excludedAccountIds?: Array<string>;
74
+ /**
75
+ * Domain extensions this commission applies to. When empty, the commission applies to all extensions.
76
+ * @type {Array<string>}
77
+ * @memberof CommissionReasonDto
78
+ */
79
+ tlds?: Array<string>;
80
+ /**
81
+ * Domain extensions excluded from this commission.
82
+ * @type {Array<string>}
83
+ * @memberof CommissionReasonDto
84
+ */
85
+ excludedTlds?: Array<string>;
74
86
  /**
75
87
  * Selected commission percentage value.
76
88
  * @type {number}
@@ -89,6 +101,18 @@ export interface CommissionReasonDto {
89
101
  * @memberof CommissionReasonDto
90
102
  */
91
103
  factorCountResult?: number | null;
104
+ /**
105
+ * How the commission was selected for the domain extension.
106
+ * @type {string}
107
+ * @memberof CommissionReasonDto
108
+ */
109
+ tldMatchType?: CommissionReasonDtoTldMatchTypeEnum;
110
+ /**
111
+ * Domain extension used to select the commission, if any.
112
+ * @type {string}
113
+ * @memberof CommissionReasonDto
114
+ */
115
+ tldMatchedValue?: string | null;
92
116
  }
93
117
  /**
94
118
  * @export
@@ -108,6 +132,15 @@ export declare const CommissionReasonDtoSubtypeEnum: {
108
132
  readonly AUCTION: "auction";
109
133
  };
110
134
  export type CommissionReasonDtoSubtypeEnum = typeof CommissionReasonDtoSubtypeEnum[keyof typeof CommissionReasonDtoSubtypeEnum];
135
+ /**
136
+ * @export
137
+ */
138
+ export declare const CommissionReasonDtoTldMatchTypeEnum: {
139
+ readonly NULL_TLD_DEFAULT: "null_tld_default";
140
+ readonly INCLUDED_TLD_LIST: "included_tld_list";
141
+ readonly ALL_TLDS_DEFAULT: "all_tlds_default";
142
+ };
143
+ export type CommissionReasonDtoTldMatchTypeEnum = typeof CommissionReasonDtoTldMatchTypeEnum[keyof typeof CommissionReasonDtoTldMatchTypeEnum];
111
144
  /**
112
145
  * Check if a given object implements the CommissionReasonDto interface.
113
146
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CommissionReasonDtoSubtypeEnum = exports.CommissionReasonDtoTypeEnum = void 0;
16
+ exports.CommissionReasonDtoTldMatchTypeEnum = exports.CommissionReasonDtoSubtypeEnum = exports.CommissionReasonDtoTypeEnum = void 0;
17
17
  exports.instanceOfCommissionReasonDto = instanceOfCommissionReasonDto;
18
18
  exports.CommissionReasonDtoFromJSON = CommissionReasonDtoFromJSON;
19
19
  exports.CommissionReasonDtoFromJSONTyped = CommissionReasonDtoFromJSONTyped;
@@ -37,6 +37,14 @@ exports.CommissionReasonDtoSubtypeEnum = {
37
37
  MANUAL_LEAD: 'manual_lead',
38
38
  AUCTION: 'auction'
39
39
  };
40
+ /**
41
+ * @export
42
+ */
43
+ exports.CommissionReasonDtoTldMatchTypeEnum = {
44
+ NULL_TLD_DEFAULT: 'null_tld_default',
45
+ INCLUDED_TLD_LIST: 'included_tld_list',
46
+ ALL_TLDS_DEFAULT: 'all_tlds_default'
47
+ };
40
48
  /**
41
49
  * Check if a given object implements the CommissionReasonDto interface.
42
50
  */
@@ -60,9 +68,13 @@ function CommissionReasonDtoFromJSONTyped(json, ignoreDiscriminator) {
60
68
  'dateStart': json['dateStart'] == null ? undefined : json['dateStart'],
61
69
  'dateEnd': json['dateEnd'] == null ? undefined : json['dateEnd'],
62
70
  'excludedAccountIds': json['excludedAccountIds'] == null ? undefined : json['excludedAccountIds'],
71
+ 'tlds': json['tlds'] == null ? undefined : json['tlds'],
72
+ 'excludedTlds': json['excludedTlds'] == null ? undefined : json['excludedTlds'],
63
73
  'selectedValue': json['selectedValue'] == null ? undefined : json['selectedValue'],
64
74
  'selectedTier': json['selectedTier'] == null ? undefined : (0, CommissionPercentageRangeDto_1.CommissionPercentageRangeDtoFromJSON)(json['selectedTier']),
65
75
  'factorCountResult': json['factorCountResult'] == null ? undefined : json['factorCountResult'],
76
+ 'tldMatchType': json['tldMatchType'] == null ? undefined : json['tldMatchType'],
77
+ 'tldMatchedValue': json['tldMatchedValue'] == null ? undefined : json['tldMatchedValue'],
66
78
  };
67
79
  }
68
80
  function CommissionReasonDtoToJSON(json) {
@@ -83,8 +95,12 @@ function CommissionReasonDtoToJSONTyped(value, ignoreDiscriminator) {
83
95
  'dateStart': value['dateStart'],
84
96
  'dateEnd': value['dateEnd'],
85
97
  'excludedAccountIds': value['excludedAccountIds'],
98
+ 'tlds': value['tlds'],
99
+ 'excludedTlds': value['excludedTlds'],
86
100
  'selectedValue': value['selectedValue'],
87
101
  'selectedTier': (0, CommissionPercentageRangeDto_1.CommissionPercentageRangeDtoToJSON)(value['selectedTier']),
88
102
  'factorCountResult': value['factorCountResult'],
103
+ 'tldMatchType': value['tldMatchType'],
104
+ 'tldMatchedValue': value['tldMatchedValue'],
89
105
  };
90
106
  }