@randock/nameshift-api-client 0.0.309 → 0.0.311

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.
@@ -240,7 +240,8 @@ src/models/RentDto.ts
240
240
  src/models/RequestAccessTokenInput.ts
241
241
  src/models/SellerAccountReferralListItemDto.ts
242
242
  src/models/SellerAffiliateCommissionDto.ts
243
- src/models/SellerAffiliateCommissionReferralDto.ts
243
+ src/models/SellerDomainAffiliateCommissionDto.ts
244
+ src/models/SellerDomainAffiliateCommissionDtoDomain.ts
244
245
  src/models/SellerDomainTransferAuthCodeDto.ts
245
246
  src/models/SellerDomainTransferDomainDto.ts
246
247
  src/models/SellerDomainTransferDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.309
1
+ ## @randock/nameshift-api-client@0.0.311
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.309 --save
39
+ npm install @randock/nameshift-api-client@0.0.311 --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
- 645fd0a5a71f674f907c6b85429160f19959277a8565ff00a7aba1f216423bc681eaca2bcf2062ecf1eff2df2fee61ec
47
+ 0c28e53b9d8f4f78c4a00ae06fee14d8201eb765eaa244817679d0de72e297a3c0cf021de84625e0b497f78fc9386599
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainExchangeRateDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
13
+ import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainExchangeRateDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
14
14
  export interface DomainsApiBatchImportRequest {
15
15
  file?: Blob | null;
16
16
  domains?: Array<string>;
@@ -27,6 +27,9 @@ export interface DomainsApiCheckDnsRequest {
27
27
  export interface DomainsApiDeleteDomainsRequest {
28
28
  deleteDomainsInput: DeleteDomainsInput;
29
29
  }
30
+ export interface DomainsApiGetAffiliateCommissionRequest {
31
+ domainName: string;
32
+ }
30
33
  export interface DomainsApiGetAllDomainTransfersRequest {
31
34
  filter?: object;
32
35
  page?: number;
@@ -115,6 +118,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
115
118
  *
116
119
  */
117
120
  exportDomains(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
121
+ /**
122
+ *
123
+ */
124
+ getAffiliateCommissionRaw(requestParameters: DomainsApiGetAffiliateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SellerDomainAffiliateCommissionDto>>;
125
+ /**
126
+ *
127
+ */
128
+ getAffiliateCommission(requestParameters: DomainsApiGetAffiliateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerDomainAffiliateCommissionDto>;
118
129
  /**
119
130
  *
120
131
  */
@@ -419,6 +419,62 @@ var DomainsApi = /** @class */ (function (_super) {
419
419
  });
420
420
  });
421
421
  };
422
+ /**
423
+ *
424
+ */
425
+ DomainsApi.prototype.getAffiliateCommissionRaw = function (requestParameters, initOverrides) {
426
+ return __awaiter(this, void 0, void 0, function () {
427
+ var queryParameters, headerParameters, token, tokenString, response;
428
+ return __generator(this, function (_a) {
429
+ switch (_a.label) {
430
+ case 0:
431
+ if (requestParameters['domainName'] == null) {
432
+ throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling getAffiliateCommission().');
433
+ }
434
+ queryParameters = {};
435
+ if (requestParameters['domainName'] != null) {
436
+ queryParameters['domainName'] = requestParameters['domainName'];
437
+ }
438
+ headerParameters = {};
439
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
440
+ token = this.configuration.accessToken;
441
+ return [4 /*yield*/, token("bearer", [])];
442
+ case 1:
443
+ tokenString = _a.sent();
444
+ if (tokenString) {
445
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
446
+ }
447
+ _a.label = 2;
448
+ case 2: return [4 /*yield*/, this.request({
449
+ path: "/private/domains/affiliate-commission",
450
+ method: 'GET',
451
+ headers: headerParameters,
452
+ query: queryParameters,
453
+ }, initOverrides)];
454
+ case 3:
455
+ response = _a.sent();
456
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SellerDomainAffiliateCommissionDtoFromJSON)(jsonValue); })];
457
+ }
458
+ });
459
+ });
460
+ };
461
+ /**
462
+ *
463
+ */
464
+ DomainsApi.prototype.getAffiliateCommission = function (requestParameters, initOverrides) {
465
+ return __awaiter(this, void 0, void 0, function () {
466
+ var response;
467
+ return __generator(this, function (_a) {
468
+ switch (_a.label) {
469
+ case 0: return [4 /*yield*/, this.getAffiliateCommissionRaw(requestParameters, initOverrides)];
470
+ case 1:
471
+ response = _a.sent();
472
+ return [4 /*yield*/, response.value()];
473
+ case 2: return [2 /*return*/, _a.sent()];
474
+ }
475
+ });
476
+ });
477
+ };
422
478
  /**
423
479
  *
424
480
  */
@@ -99,6 +99,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
99
99
  readonly ZERO_COMMISSION: "ZERO_COMMISSION";
100
100
  readonly LEAD_PRICE_NEGOTIATOR_AI_AGENT: "LEAD_PRICE_NEGOTIATOR_AI_AGENT";
101
101
  readonly AFFILIATE_PROGRAM: "AFFILIATE_PROGRAM";
102
+ readonly DOMAIN_AFFILIATE_PROGRAM: "DOMAIN_AFFILIATE_PROGRAM";
102
103
  readonly SELLER_STATS_DASHBOARD: "SELLER_STATS_DASHBOARD";
103
104
  };
104
105
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
@@ -36,6 +36,7 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
36
36
  ZERO_COMMISSION: 'ZERO_COMMISSION',
37
37
  LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
38
38
  AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
39
+ DOMAIN_AFFILIATE_PROGRAM: 'DOMAIN_AFFILIATE_PROGRAM',
39
40
  SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD'
40
41
  };
41
42
  /**
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { MoneyDto } from './MoneyDto';
13
- import type { SellerAffiliateCommissionReferralDto } from './SellerAffiliateCommissionReferralDto';
14
13
  /**
15
14
  *
16
15
  * @export
@@ -54,11 +53,17 @@ export interface SellerAffiliateCommissionDto {
54
53
  */
55
54
  invoiceStatus: SellerAffiliateCommissionDtoInvoiceStatusEnum | null;
56
55
  /**
57
- * Referral account
58
- * @type {SellerAffiliateCommissionReferralDto}
56
+ *
57
+ * @type {string}
58
+ * @memberof SellerAffiliateCommissionDto
59
+ */
60
+ type: SellerAffiliateCommissionDtoTypeEnum;
61
+ /**
62
+ * Concept
63
+ * @type {string}
59
64
  * @memberof SellerAffiliateCommissionDto
60
65
  */
61
- referral: SellerAffiliateCommissionReferralDto;
66
+ concept: string;
62
67
  }
63
68
  /**
64
69
  * @export
@@ -79,6 +84,14 @@ export declare const SellerAffiliateCommissionDtoInvoiceStatusEnum: {
79
84
  readonly CANCELLED: "cancelled";
80
85
  };
81
86
  export type SellerAffiliateCommissionDtoInvoiceStatusEnum = typeof SellerAffiliateCommissionDtoInvoiceStatusEnum[keyof typeof SellerAffiliateCommissionDtoInvoiceStatusEnum];
87
+ /**
88
+ * @export
89
+ */
90
+ export declare const SellerAffiliateCommissionDtoTypeEnum: {
91
+ readonly DOMAIN: "domain";
92
+ readonly SELLER: "seller";
93
+ };
94
+ export type SellerAffiliateCommissionDtoTypeEnum = typeof SellerAffiliateCommissionDtoTypeEnum[keyof typeof SellerAffiliateCommissionDtoTypeEnum];
82
95
  /**
83
96
  * Check if a given object implements the SellerAffiliateCommissionDto interface.
84
97
  */
@@ -13,14 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SellerAffiliateCommissionDtoInvoiceStatusEnum = exports.SellerAffiliateCommissionDtoStatusEnum = void 0;
16
+ exports.SellerAffiliateCommissionDtoTypeEnum = exports.SellerAffiliateCommissionDtoInvoiceStatusEnum = exports.SellerAffiliateCommissionDtoStatusEnum = void 0;
17
17
  exports.instanceOfSellerAffiliateCommissionDto = instanceOfSellerAffiliateCommissionDto;
18
18
  exports.SellerAffiliateCommissionDtoFromJSON = SellerAffiliateCommissionDtoFromJSON;
19
19
  exports.SellerAffiliateCommissionDtoFromJSONTyped = SellerAffiliateCommissionDtoFromJSONTyped;
20
20
  exports.SellerAffiliateCommissionDtoToJSON = SellerAffiliateCommissionDtoToJSON;
21
21
  exports.SellerAffiliateCommissionDtoToJSONTyped = SellerAffiliateCommissionDtoToJSONTyped;
22
22
  var MoneyDto_1 = require("./MoneyDto");
23
- var SellerAffiliateCommissionReferralDto_1 = require("./SellerAffiliateCommissionReferralDto");
24
23
  /**
25
24
  * @export
26
25
  */
@@ -38,6 +37,13 @@ exports.SellerAffiliateCommissionDtoInvoiceStatusEnum = {
38
37
  PAID: 'paid',
39
38
  CANCELLED: 'cancelled'
40
39
  };
40
+ /**
41
+ * @export
42
+ */
43
+ exports.SellerAffiliateCommissionDtoTypeEnum = {
44
+ DOMAIN: 'domain',
45
+ SELLER: 'seller'
46
+ };
41
47
  /**
42
48
  * Check if a given object implements the SellerAffiliateCommissionDto interface.
43
49
  */
@@ -54,7 +60,9 @@ function instanceOfSellerAffiliateCommissionDto(value) {
54
60
  return false;
55
61
  if (!('invoiceStatus' in value) || value['invoiceStatus'] === undefined)
56
62
  return false;
57
- if (!('referral' in value) || value['referral'] === undefined)
63
+ if (!('type' in value) || value['type'] === undefined)
64
+ return false;
65
+ if (!('concept' in value) || value['concept'] === undefined)
58
66
  return false;
59
67
  return true;
60
68
  }
@@ -72,7 +80,8 @@ function SellerAffiliateCommissionDtoFromJSONTyped(json, ignoreDiscriminator) {
72
80
  'date': (new Date(json['date'])),
73
81
  'status': json['status'],
74
82
  'invoiceStatus': json['invoiceStatus'],
75
- 'referral': (0, SellerAffiliateCommissionReferralDto_1.SellerAffiliateCommissionReferralDtoFromJSON)(json['referral']),
83
+ 'type': json['type'],
84
+ 'concept': json['concept'],
76
85
  };
77
86
  }
78
87
  function SellerAffiliateCommissionDtoToJSON(json) {
@@ -90,6 +99,7 @@ function SellerAffiliateCommissionDtoToJSONTyped(value, ignoreDiscriminator) {
90
99
  'date': ((value['date']).toISOString()),
91
100
  'status': value['status'],
92
101
  'invoiceStatus': value['invoiceStatus'],
93
- 'referral': (0, SellerAffiliateCommissionReferralDto_1.SellerAffiliateCommissionReferralDtoToJSON)(value['referral']),
102
+ 'type': value['type'],
103
+ 'concept': value['concept'],
94
104
  };
95
105
  }
@@ -0,0 +1,89 @@
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
+ import type { SellerDomainAffiliateCommissionDtoDomain } from './SellerDomainAffiliateCommissionDtoDomain';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SellerDomainAffiliateCommissionDto
17
+ */
18
+ export interface SellerDomainAffiliateCommissionDto {
19
+ /**
20
+ *
21
+ * @type {SellerDomainAffiliateCommissionDtoDomain}
22
+ * @memberof SellerDomainAffiliateCommissionDto
23
+ */
24
+ domain: SellerDomainAffiliateCommissionDtoDomain;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof SellerDomainAffiliateCommissionDto
29
+ */
30
+ commissionPercentageLeaseToOwn: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof SellerDomainAffiliateCommissionDto
35
+ */
36
+ commissionPercentageLeaseToOwnShared: number | null;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof SellerDomainAffiliateCommissionDto
41
+ */
42
+ commissionPercentageRent: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof SellerDomainAffiliateCommissionDto
47
+ */
48
+ commissionPercentageRentShared: number | null;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof SellerDomainAffiliateCommissionDto
53
+ */
54
+ commissionPercentageOrder: number;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof SellerDomainAffiliateCommissionDto
59
+ */
60
+ commissionPercentageOrderShared: number | null;
61
+ /**
62
+ *
63
+ * @type {Array<string>}
64
+ * @memberof SellerDomainAffiliateCommissionDto
65
+ */
66
+ commissionReasons: Array<SellerDomainAffiliateCommissionDtoCommissionReasonsEnum>;
67
+ /**
68
+ *
69
+ * @type {Date}
70
+ * @memberof SellerDomainAffiliateCommissionDto
71
+ */
72
+ endDate: Date | null;
73
+ }
74
+ /**
75
+ * @export
76
+ */
77
+ export declare const SellerDomainAffiliateCommissionDtoCommissionReasonsEnum: {
78
+ readonly DATE_RANGE: "DATE_RANGE";
79
+ readonly SHARED: "SHARED";
80
+ };
81
+ export type SellerDomainAffiliateCommissionDtoCommissionReasonsEnum = typeof SellerDomainAffiliateCommissionDtoCommissionReasonsEnum[keyof typeof SellerDomainAffiliateCommissionDtoCommissionReasonsEnum];
82
+ /**
83
+ * Check if a given object implements the SellerDomainAffiliateCommissionDto interface.
84
+ */
85
+ export declare function instanceOfSellerDomainAffiliateCommissionDto(value: object): value is SellerDomainAffiliateCommissionDto;
86
+ export declare function SellerDomainAffiliateCommissionDtoFromJSON(json: any): SellerDomainAffiliateCommissionDto;
87
+ export declare function SellerDomainAffiliateCommissionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainAffiliateCommissionDto;
88
+ export declare function SellerDomainAffiliateCommissionDtoToJSON(json: any): SellerDomainAffiliateCommissionDto;
89
+ export declare function SellerDomainAffiliateCommissionDtoToJSONTyped(value?: SellerDomainAffiliateCommissionDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,92 @@
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.SellerDomainAffiliateCommissionDtoCommissionReasonsEnum = void 0;
17
+ exports.instanceOfSellerDomainAffiliateCommissionDto = instanceOfSellerDomainAffiliateCommissionDto;
18
+ exports.SellerDomainAffiliateCommissionDtoFromJSON = SellerDomainAffiliateCommissionDtoFromJSON;
19
+ exports.SellerDomainAffiliateCommissionDtoFromJSONTyped = SellerDomainAffiliateCommissionDtoFromJSONTyped;
20
+ exports.SellerDomainAffiliateCommissionDtoToJSON = SellerDomainAffiliateCommissionDtoToJSON;
21
+ exports.SellerDomainAffiliateCommissionDtoToJSONTyped = SellerDomainAffiliateCommissionDtoToJSONTyped;
22
+ var SellerDomainAffiliateCommissionDtoDomain_1 = require("./SellerDomainAffiliateCommissionDtoDomain");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.SellerDomainAffiliateCommissionDtoCommissionReasonsEnum = {
27
+ DATE_RANGE: 'DATE_RANGE',
28
+ SHARED: 'SHARED'
29
+ };
30
+ /**
31
+ * Check if a given object implements the SellerDomainAffiliateCommissionDto interface.
32
+ */
33
+ function instanceOfSellerDomainAffiliateCommissionDto(value) {
34
+ if (!('domain' in value) || value['domain'] === undefined)
35
+ return false;
36
+ if (!('commissionPercentageLeaseToOwn' in value) || value['commissionPercentageLeaseToOwn'] === undefined)
37
+ return false;
38
+ if (!('commissionPercentageLeaseToOwnShared' in value) || value['commissionPercentageLeaseToOwnShared'] === undefined)
39
+ return false;
40
+ if (!('commissionPercentageRent' in value) || value['commissionPercentageRent'] === undefined)
41
+ return false;
42
+ if (!('commissionPercentageRentShared' in value) || value['commissionPercentageRentShared'] === undefined)
43
+ return false;
44
+ if (!('commissionPercentageOrder' in value) || value['commissionPercentageOrder'] === undefined)
45
+ return false;
46
+ if (!('commissionPercentageOrderShared' in value) || value['commissionPercentageOrderShared'] === undefined)
47
+ return false;
48
+ if (!('commissionReasons' in value) || value['commissionReasons'] === undefined)
49
+ return false;
50
+ if (!('endDate' in value) || value['endDate'] === undefined)
51
+ return false;
52
+ return true;
53
+ }
54
+ function SellerDomainAffiliateCommissionDtoFromJSON(json) {
55
+ return SellerDomainAffiliateCommissionDtoFromJSONTyped(json, false);
56
+ }
57
+ function SellerDomainAffiliateCommissionDtoFromJSONTyped(json, ignoreDiscriminator) {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+ 'domain': (0, SellerDomainAffiliateCommissionDtoDomain_1.SellerDomainAffiliateCommissionDtoDomainFromJSON)(json['domain']),
63
+ 'commissionPercentageLeaseToOwn': json['commissionPercentageLeaseToOwn'],
64
+ 'commissionPercentageLeaseToOwnShared': json['commissionPercentageLeaseToOwnShared'],
65
+ 'commissionPercentageRent': json['commissionPercentageRent'],
66
+ 'commissionPercentageRentShared': json['commissionPercentageRentShared'],
67
+ 'commissionPercentageOrder': json['commissionPercentageOrder'],
68
+ 'commissionPercentageOrderShared': json['commissionPercentageOrderShared'],
69
+ 'commissionReasons': json['commissionReasons'],
70
+ 'endDate': (json['endDate'] == null ? null : new Date(json['endDate'])),
71
+ };
72
+ }
73
+ function SellerDomainAffiliateCommissionDtoToJSON(json) {
74
+ return SellerDomainAffiliateCommissionDtoToJSONTyped(json, false);
75
+ }
76
+ function SellerDomainAffiliateCommissionDtoToJSONTyped(value, ignoreDiscriminator) {
77
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'domain': (0, SellerDomainAffiliateCommissionDtoDomain_1.SellerDomainAffiliateCommissionDtoDomainToJSON)(value['domain']),
83
+ 'commissionPercentageLeaseToOwn': value['commissionPercentageLeaseToOwn'],
84
+ 'commissionPercentageLeaseToOwnShared': value['commissionPercentageLeaseToOwnShared'],
85
+ 'commissionPercentageRent': value['commissionPercentageRent'],
86
+ 'commissionPercentageRentShared': value['commissionPercentageRentShared'],
87
+ 'commissionPercentageOrder': value['commissionPercentageOrder'],
88
+ 'commissionPercentageOrderShared': value['commissionPercentageOrderShared'],
89
+ 'commissionReasons': value['commissionReasons'],
90
+ 'endDate': (value['endDate'] == null ? null : value['endDate'].toISOString()),
91
+ };
92
+ }
@@ -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 SellerDomainAffiliateCommissionDtoDomain
16
+ */
17
+ export interface SellerDomainAffiliateCommissionDtoDomain {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SellerDomainAffiliateCommissionDtoDomain
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SellerDomainAffiliateCommissionDtoDomain
28
+ */
29
+ displayName: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SellerDomainAffiliateCommissionDtoDomain interface.
33
+ */
34
+ export declare function instanceOfSellerDomainAffiliateCommissionDtoDomain(value: object): value is SellerDomainAffiliateCommissionDtoDomain;
35
+ export declare function SellerDomainAffiliateCommissionDtoDomainFromJSON(json: any): SellerDomainAffiliateCommissionDtoDomain;
36
+ export declare function SellerDomainAffiliateCommissionDtoDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainAffiliateCommissionDtoDomain;
37
+ export declare function SellerDomainAffiliateCommissionDtoDomainToJSON(json: any): SellerDomainAffiliateCommissionDtoDomain;
38
+ export declare function SellerDomainAffiliateCommissionDtoDomainToJSONTyped(value?: SellerDomainAffiliateCommissionDtoDomain | 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.instanceOfSellerDomainAffiliateCommissionDtoDomain = instanceOfSellerDomainAffiliateCommissionDtoDomain;
17
+ exports.SellerDomainAffiliateCommissionDtoDomainFromJSON = SellerDomainAffiliateCommissionDtoDomainFromJSON;
18
+ exports.SellerDomainAffiliateCommissionDtoDomainFromJSONTyped = SellerDomainAffiliateCommissionDtoDomainFromJSONTyped;
19
+ exports.SellerDomainAffiliateCommissionDtoDomainToJSON = SellerDomainAffiliateCommissionDtoDomainToJSON;
20
+ exports.SellerDomainAffiliateCommissionDtoDomainToJSONTyped = SellerDomainAffiliateCommissionDtoDomainToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SellerDomainAffiliateCommissionDtoDomain interface.
23
+ */
24
+ function instanceOfSellerDomainAffiliateCommissionDtoDomain(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('displayName' in value) || value['displayName'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function SellerDomainAffiliateCommissionDtoDomainFromJSON(json) {
32
+ return SellerDomainAffiliateCommissionDtoDomainFromJSONTyped(json, false);
33
+ }
34
+ function SellerDomainAffiliateCommissionDtoDomainFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'displayName': json['displayName'],
41
+ };
42
+ }
43
+ function SellerDomainAffiliateCommissionDtoDomainToJSON(json) {
44
+ return SellerDomainAffiliateCommissionDtoDomainToJSONTyped(json, false);
45
+ }
46
+ function SellerDomainAffiliateCommissionDtoDomainToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'name': value['name'],
53
+ 'displayName': value['displayName'],
54
+ };
55
+ }
@@ -211,7 +211,8 @@ export * from './RentDto';
211
211
  export * from './RequestAccessTokenInput';
212
212
  export * from './SellerAccountReferralListItemDto';
213
213
  export * from './SellerAffiliateCommissionDto';
214
- export * from './SellerAffiliateCommissionReferralDto';
214
+ export * from './SellerDomainAffiliateCommissionDto';
215
+ export * from './SellerDomainAffiliateCommissionDtoDomain';
215
216
  export * from './SellerDomainTransferAuthCodeDto';
216
217
  export * from './SellerDomainTransferDomainDto';
217
218
  export * from './SellerDomainTransferDto';
@@ -229,7 +229,8 @@ __exportStar(require("./RentDto"), exports);
229
229
  __exportStar(require("./RequestAccessTokenInput"), exports);
230
230
  __exportStar(require("./SellerAccountReferralListItemDto"), exports);
231
231
  __exportStar(require("./SellerAffiliateCommissionDto"), exports);
232
- __exportStar(require("./SellerAffiliateCommissionReferralDto"), exports);
232
+ __exportStar(require("./SellerDomainAffiliateCommissionDto"), exports);
233
+ __exportStar(require("./SellerDomainAffiliateCommissionDtoDomain"), exports);
233
234
  __exportStar(require("./SellerDomainTransferAuthCodeDto"), exports);
234
235
  __exportStar(require("./SellerDomainTransferDomainDto"), exports);
235
236
  __exportStar(require("./SellerDomainTransferDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.309",
3
+ "version": "0.0.311",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -25,6 +25,7 @@ import type {
25
25
  IntersectionDomainDtoWithHijackerDtoWithAccountDto,
26
26
  List200Response2,
27
27
  NotFoundException,
28
+ SellerDomainAffiliateCommissionDto,
28
29
  SellerDomainTransferDto,
29
30
  ThrottlerException,
30
31
  UpdateDomainInput,
@@ -53,6 +54,8 @@ import {
53
54
  List200Response2ToJSON,
54
55
  NotFoundExceptionFromJSON,
55
56
  NotFoundExceptionToJSON,
57
+ SellerDomainAffiliateCommissionDtoFromJSON,
58
+ SellerDomainAffiliateCommissionDtoToJSON,
56
59
  SellerDomainTransferDtoFromJSON,
57
60
  SellerDomainTransferDtoToJSON,
58
61
  ThrottlerExceptionFromJSON,
@@ -88,6 +91,10 @@ export interface DomainsApiDeleteDomainsRequest {
88
91
  deleteDomainsInput: DeleteDomainsInput;
89
92
  }
90
93
 
94
+ export interface DomainsApiGetAffiliateCommissionRequest {
95
+ domainName: string;
96
+ }
97
+
91
98
  export interface DomainsApiGetAllDomainTransfersRequest {
92
99
  filter?: object;
93
100
  page?: number;
@@ -410,6 +417,51 @@ export class DomainsApi extends runtime.BaseAPI {
410
417
  await this.exportDomainsRaw(initOverrides);
411
418
  }
412
419
 
420
+ /**
421
+ *
422
+ */
423
+ async getAffiliateCommissionRaw(requestParameters: DomainsApiGetAffiliateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SellerDomainAffiliateCommissionDto>> {
424
+ if (requestParameters['domainName'] == null) {
425
+ throw new runtime.RequiredError(
426
+ 'domainName',
427
+ 'Required parameter "domainName" was null or undefined when calling getAffiliateCommission().'
428
+ );
429
+ }
430
+
431
+ const queryParameters: any = {};
432
+
433
+ if (requestParameters['domainName'] != null) {
434
+ queryParameters['domainName'] = requestParameters['domainName'];
435
+ }
436
+
437
+ const headerParameters: runtime.HTTPHeaders = {};
438
+
439
+ if (this.configuration && this.configuration.accessToken) {
440
+ const token = this.configuration.accessToken;
441
+ const tokenString = await token("bearer", []);
442
+
443
+ if (tokenString) {
444
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
445
+ }
446
+ }
447
+ const response = await this.request({
448
+ path: `/private/domains/affiliate-commission`,
449
+ method: 'GET',
450
+ headers: headerParameters,
451
+ query: queryParameters,
452
+ }, initOverrides);
453
+
454
+ return new runtime.JSONApiResponse(response, (jsonValue) => SellerDomainAffiliateCommissionDtoFromJSON(jsonValue));
455
+ }
456
+
457
+ /**
458
+ *
459
+ */
460
+ async getAffiliateCommission(requestParameters: DomainsApiGetAffiliateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerDomainAffiliateCommissionDto> {
461
+ const response = await this.getAffiliateCommissionRaw(requestParameters, initOverrides);
462
+ return await response.value();
463
+ }
464
+
413
465
  /**
414
466
  *
415
467
  */
@@ -142,6 +142,7 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
142
142
  ZERO_COMMISSION: 'ZERO_COMMISSION',
143
143
  LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
144
144
  AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
145
+ DOMAIN_AFFILIATE_PROGRAM: 'DOMAIN_AFFILIATE_PROGRAM',
145
146
  SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD'
146
147
  } as const;
147
148
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
@@ -20,13 +20,6 @@ import {
20
20
  MoneyDtoToJSON,
21
21
  MoneyDtoToJSONTyped,
22
22
  } from './MoneyDto';
23
- import type { SellerAffiliateCommissionReferralDto } from './SellerAffiliateCommissionReferralDto';
24
- import {
25
- SellerAffiliateCommissionReferralDtoFromJSON,
26
- SellerAffiliateCommissionReferralDtoFromJSONTyped,
27
- SellerAffiliateCommissionReferralDtoToJSON,
28
- SellerAffiliateCommissionReferralDtoToJSONTyped,
29
- } from './SellerAffiliateCommissionReferralDto';
30
23
 
31
24
  /**
32
25
  *
@@ -71,11 +64,17 @@ export interface SellerAffiliateCommissionDto {
71
64
  */
72
65
  invoiceStatus: SellerAffiliateCommissionDtoInvoiceStatusEnum | null;
73
66
  /**
74
- * Referral account
75
- * @type {SellerAffiliateCommissionReferralDto}
67
+ *
68
+ * @type {string}
69
+ * @memberof SellerAffiliateCommissionDto
70
+ */
71
+ type: SellerAffiliateCommissionDtoTypeEnum;
72
+ /**
73
+ * Concept
74
+ * @type {string}
76
75
  * @memberof SellerAffiliateCommissionDto
77
76
  */
78
- referral: SellerAffiliateCommissionReferralDto;
77
+ concept: string;
79
78
  }
80
79
 
81
80
 
@@ -100,6 +99,15 @@ export const SellerAffiliateCommissionDtoInvoiceStatusEnum = {
100
99
  } as const;
101
100
  export type SellerAffiliateCommissionDtoInvoiceStatusEnum = typeof SellerAffiliateCommissionDtoInvoiceStatusEnum[keyof typeof SellerAffiliateCommissionDtoInvoiceStatusEnum];
102
101
 
102
+ /**
103
+ * @export
104
+ */
105
+ export const SellerAffiliateCommissionDtoTypeEnum = {
106
+ DOMAIN: 'domain',
107
+ SELLER: 'seller'
108
+ } as const;
109
+ export type SellerAffiliateCommissionDtoTypeEnum = typeof SellerAffiliateCommissionDtoTypeEnum[keyof typeof SellerAffiliateCommissionDtoTypeEnum];
110
+
103
111
 
104
112
  /**
105
113
  * Check if a given object implements the SellerAffiliateCommissionDto interface.
@@ -111,7 +119,8 @@ export function instanceOfSellerAffiliateCommissionDto(value: object): value is
111
119
  if (!('date' in value) || value['date'] === undefined) return false;
112
120
  if (!('status' in value) || value['status'] === undefined) return false;
113
121
  if (!('invoiceStatus' in value) || value['invoiceStatus'] === undefined) return false;
114
- if (!('referral' in value) || value['referral'] === undefined) return false;
122
+ if (!('type' in value) || value['type'] === undefined) return false;
123
+ if (!('concept' in value) || value['concept'] === undefined) return false;
115
124
  return true;
116
125
  }
117
126
 
@@ -131,7 +140,8 @@ export function SellerAffiliateCommissionDtoFromJSONTyped(json: any, ignoreDiscr
131
140
  'date': (new Date(json['date'])),
132
141
  'status': json['status'],
133
142
  'invoiceStatus': json['invoiceStatus'],
134
- 'referral': SellerAffiliateCommissionReferralDtoFromJSON(json['referral']),
143
+ 'type': json['type'],
144
+ 'concept': json['concept'],
135
145
  };
136
146
  }
137
147
 
@@ -152,7 +162,8 @@ export function SellerAffiliateCommissionDtoToJSONTyped(value?: SellerAffiliateC
152
162
  'date': ((value['date']).toISOString()),
153
163
  'status': value['status'],
154
164
  'invoiceStatus': value['invoiceStatus'],
155
- 'referral': SellerAffiliateCommissionReferralDtoToJSON(value['referral']),
165
+ 'type': value['type'],
166
+ 'concept': value['concept'],
156
167
  };
157
168
  }
158
169
 
@@ -0,0 +1,157 @@
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 { SellerDomainAffiliateCommissionDtoDomain } from './SellerDomainAffiliateCommissionDtoDomain';
17
+ import {
18
+ SellerDomainAffiliateCommissionDtoDomainFromJSON,
19
+ SellerDomainAffiliateCommissionDtoDomainFromJSONTyped,
20
+ SellerDomainAffiliateCommissionDtoDomainToJSON,
21
+ SellerDomainAffiliateCommissionDtoDomainToJSONTyped,
22
+ } from './SellerDomainAffiliateCommissionDtoDomain';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SellerDomainAffiliateCommissionDto
28
+ */
29
+ export interface SellerDomainAffiliateCommissionDto {
30
+ /**
31
+ *
32
+ * @type {SellerDomainAffiliateCommissionDtoDomain}
33
+ * @memberof SellerDomainAffiliateCommissionDto
34
+ */
35
+ domain: SellerDomainAffiliateCommissionDtoDomain;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SellerDomainAffiliateCommissionDto
40
+ */
41
+ commissionPercentageLeaseToOwn: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof SellerDomainAffiliateCommissionDto
46
+ */
47
+ commissionPercentageLeaseToOwnShared: number | null;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof SellerDomainAffiliateCommissionDto
52
+ */
53
+ commissionPercentageRent: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof SellerDomainAffiliateCommissionDto
58
+ */
59
+ commissionPercentageRentShared: number | null;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof SellerDomainAffiliateCommissionDto
64
+ */
65
+ commissionPercentageOrder: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof SellerDomainAffiliateCommissionDto
70
+ */
71
+ commissionPercentageOrderShared: number | null;
72
+ /**
73
+ *
74
+ * @type {Array<string>}
75
+ * @memberof SellerDomainAffiliateCommissionDto
76
+ */
77
+ commissionReasons: Array<SellerDomainAffiliateCommissionDtoCommissionReasonsEnum>;
78
+ /**
79
+ *
80
+ * @type {Date}
81
+ * @memberof SellerDomainAffiliateCommissionDto
82
+ */
83
+ endDate: Date | null;
84
+ }
85
+
86
+
87
+ /**
88
+ * @export
89
+ */
90
+ export const SellerDomainAffiliateCommissionDtoCommissionReasonsEnum = {
91
+ DATE_RANGE: 'DATE_RANGE',
92
+ SHARED: 'SHARED'
93
+ } as const;
94
+ export type SellerDomainAffiliateCommissionDtoCommissionReasonsEnum = typeof SellerDomainAffiliateCommissionDtoCommissionReasonsEnum[keyof typeof SellerDomainAffiliateCommissionDtoCommissionReasonsEnum];
95
+
96
+
97
+ /**
98
+ * Check if a given object implements the SellerDomainAffiliateCommissionDto interface.
99
+ */
100
+ export function instanceOfSellerDomainAffiliateCommissionDto(value: object): value is SellerDomainAffiliateCommissionDto {
101
+ if (!('domain' in value) || value['domain'] === undefined) return false;
102
+ if (!('commissionPercentageLeaseToOwn' in value) || value['commissionPercentageLeaseToOwn'] === undefined) return false;
103
+ if (!('commissionPercentageLeaseToOwnShared' in value) || value['commissionPercentageLeaseToOwnShared'] === undefined) return false;
104
+ if (!('commissionPercentageRent' in value) || value['commissionPercentageRent'] === undefined) return false;
105
+ if (!('commissionPercentageRentShared' in value) || value['commissionPercentageRentShared'] === undefined) return false;
106
+ if (!('commissionPercentageOrder' in value) || value['commissionPercentageOrder'] === undefined) return false;
107
+ if (!('commissionPercentageOrderShared' in value) || value['commissionPercentageOrderShared'] === undefined) return false;
108
+ if (!('commissionReasons' in value) || value['commissionReasons'] === undefined) return false;
109
+ if (!('endDate' in value) || value['endDate'] === undefined) return false;
110
+ return true;
111
+ }
112
+
113
+ export function SellerDomainAffiliateCommissionDtoFromJSON(json: any): SellerDomainAffiliateCommissionDto {
114
+ return SellerDomainAffiliateCommissionDtoFromJSONTyped(json, false);
115
+ }
116
+
117
+ export function SellerDomainAffiliateCommissionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainAffiliateCommissionDto {
118
+ if (json == null) {
119
+ return json;
120
+ }
121
+ return {
122
+
123
+ 'domain': SellerDomainAffiliateCommissionDtoDomainFromJSON(json['domain']),
124
+ 'commissionPercentageLeaseToOwn': json['commissionPercentageLeaseToOwn'],
125
+ 'commissionPercentageLeaseToOwnShared': json['commissionPercentageLeaseToOwnShared'],
126
+ 'commissionPercentageRent': json['commissionPercentageRent'],
127
+ 'commissionPercentageRentShared': json['commissionPercentageRentShared'],
128
+ 'commissionPercentageOrder': json['commissionPercentageOrder'],
129
+ 'commissionPercentageOrderShared': json['commissionPercentageOrderShared'],
130
+ 'commissionReasons': json['commissionReasons'],
131
+ 'endDate': (json['endDate'] == null ? null : new Date(json['endDate'])),
132
+ };
133
+ }
134
+
135
+ export function SellerDomainAffiliateCommissionDtoToJSON(json: any): SellerDomainAffiliateCommissionDto {
136
+ return SellerDomainAffiliateCommissionDtoToJSONTyped(json, false);
137
+ }
138
+
139
+ export function SellerDomainAffiliateCommissionDtoToJSONTyped(value?: SellerDomainAffiliateCommissionDto | null, ignoreDiscriminator: boolean = false): any {
140
+ if (value == null) {
141
+ return value;
142
+ }
143
+
144
+ return {
145
+
146
+ 'domain': SellerDomainAffiliateCommissionDtoDomainToJSON(value['domain']),
147
+ 'commissionPercentageLeaseToOwn': value['commissionPercentageLeaseToOwn'],
148
+ 'commissionPercentageLeaseToOwnShared': value['commissionPercentageLeaseToOwnShared'],
149
+ 'commissionPercentageRent': value['commissionPercentageRent'],
150
+ 'commissionPercentageRentShared': value['commissionPercentageRentShared'],
151
+ 'commissionPercentageOrder': value['commissionPercentageOrder'],
152
+ 'commissionPercentageOrderShared': value['commissionPercentageOrderShared'],
153
+ 'commissionReasons': value['commissionReasons'],
154
+ 'endDate': (value['endDate'] == null ? null : (value['endDate'] as any).toISOString()),
155
+ };
156
+ }
157
+
@@ -0,0 +1,75 @@
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 SellerDomainAffiliateCommissionDtoDomain
20
+ */
21
+ export interface SellerDomainAffiliateCommissionDtoDomain {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SellerDomainAffiliateCommissionDtoDomain
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SellerDomainAffiliateCommissionDtoDomain
32
+ */
33
+ displayName: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SellerDomainAffiliateCommissionDtoDomain interface.
38
+ */
39
+ export function instanceOfSellerDomainAffiliateCommissionDtoDomain(value: object): value is SellerDomainAffiliateCommissionDtoDomain {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ if (!('displayName' in value) || value['displayName'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function SellerDomainAffiliateCommissionDtoDomainFromJSON(json: any): SellerDomainAffiliateCommissionDtoDomain {
46
+ return SellerDomainAffiliateCommissionDtoDomainFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SellerDomainAffiliateCommissionDtoDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainAffiliateCommissionDtoDomain {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'name': json['name'],
56
+ 'displayName': json['displayName'],
57
+ };
58
+ }
59
+
60
+ export function SellerDomainAffiliateCommissionDtoDomainToJSON(json: any): SellerDomainAffiliateCommissionDtoDomain {
61
+ return SellerDomainAffiliateCommissionDtoDomainToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SellerDomainAffiliateCommissionDtoDomainToJSONTyped(value?: SellerDomainAffiliateCommissionDtoDomain | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'name': value['name'],
72
+ 'displayName': value['displayName'],
73
+ };
74
+ }
75
+
@@ -213,7 +213,8 @@ export * from './RentDto';
213
213
  export * from './RequestAccessTokenInput';
214
214
  export * from './SellerAccountReferralListItemDto';
215
215
  export * from './SellerAffiliateCommissionDto';
216
- export * from './SellerAffiliateCommissionReferralDto';
216
+ export * from './SellerDomainAffiliateCommissionDto';
217
+ export * from './SellerDomainAffiliateCommissionDtoDomain';
217
218
  export * from './SellerDomainTransferAuthCodeDto';
218
219
  export * from './SellerDomainTransferDomainDto';
219
220
  export * from './SellerDomainTransferDto';
@@ -1,32 +0,0 @@
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 SellerAffiliateCommissionReferralDto
16
- */
17
- export interface SellerAffiliateCommissionReferralDto {
18
- /**
19
- * Referral account name
20
- * @type {string}
21
- * @memberof SellerAffiliateCommissionReferralDto
22
- */
23
- name: string;
24
- }
25
- /**
26
- * Check if a given object implements the SellerAffiliateCommissionReferralDto interface.
27
- */
28
- export declare function instanceOfSellerAffiliateCommissionReferralDto(value: object): value is SellerAffiliateCommissionReferralDto;
29
- export declare function SellerAffiliateCommissionReferralDtoFromJSON(json: any): SellerAffiliateCommissionReferralDto;
30
- export declare function SellerAffiliateCommissionReferralDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerAffiliateCommissionReferralDto;
31
- export declare function SellerAffiliateCommissionReferralDtoToJSON(json: any): SellerAffiliateCommissionReferralDto;
32
- export declare function SellerAffiliateCommissionReferralDtoToJSONTyped(value?: SellerAffiliateCommissionReferralDto | null, ignoreDiscriminator?: boolean): any;
@@ -1,51 +0,0 @@
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.instanceOfSellerAffiliateCommissionReferralDto = instanceOfSellerAffiliateCommissionReferralDto;
17
- exports.SellerAffiliateCommissionReferralDtoFromJSON = SellerAffiliateCommissionReferralDtoFromJSON;
18
- exports.SellerAffiliateCommissionReferralDtoFromJSONTyped = SellerAffiliateCommissionReferralDtoFromJSONTyped;
19
- exports.SellerAffiliateCommissionReferralDtoToJSON = SellerAffiliateCommissionReferralDtoToJSON;
20
- exports.SellerAffiliateCommissionReferralDtoToJSONTyped = SellerAffiliateCommissionReferralDtoToJSONTyped;
21
- /**
22
- * Check if a given object implements the SellerAffiliateCommissionReferralDto interface.
23
- */
24
- function instanceOfSellerAffiliateCommissionReferralDto(value) {
25
- if (!('name' in value) || value['name'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function SellerAffiliateCommissionReferralDtoFromJSON(json) {
30
- return SellerAffiliateCommissionReferralDtoFromJSONTyped(json, false);
31
- }
32
- function SellerAffiliateCommissionReferralDtoFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'name': json['name'],
38
- };
39
- }
40
- function SellerAffiliateCommissionReferralDtoToJSON(json) {
41
- return SellerAffiliateCommissionReferralDtoToJSONTyped(json, false);
42
- }
43
- function SellerAffiliateCommissionReferralDtoToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'name': value['name'],
50
- };
51
- }
@@ -1,66 +0,0 @@
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 SellerAffiliateCommissionReferralDto
20
- */
21
- export interface SellerAffiliateCommissionReferralDto {
22
- /**
23
- * Referral account name
24
- * @type {string}
25
- * @memberof SellerAffiliateCommissionReferralDto
26
- */
27
- name: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the SellerAffiliateCommissionReferralDto interface.
32
- */
33
- export function instanceOfSellerAffiliateCommissionReferralDto(value: object): value is SellerAffiliateCommissionReferralDto {
34
- if (!('name' in value) || value['name'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function SellerAffiliateCommissionReferralDtoFromJSON(json: any): SellerAffiliateCommissionReferralDto {
39
- return SellerAffiliateCommissionReferralDtoFromJSONTyped(json, false);
40
- }
41
-
42
- export function SellerAffiliateCommissionReferralDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerAffiliateCommissionReferralDto {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'name': json['name'],
49
- };
50
- }
51
-
52
- export function SellerAffiliateCommissionReferralDtoToJSON(json: any): SellerAffiliateCommissionReferralDto {
53
- return SellerAffiliateCommissionReferralDtoToJSONTyped(json, false);
54
- }
55
-
56
- export function SellerAffiliateCommissionReferralDtoToJSONTyped(value?: SellerAffiliateCommissionReferralDto | null, ignoreDiscriminator: boolean = false): any {
57
- if (value == null) {
58
- return value;
59
- }
60
-
61
- return {
62
-
63
- 'name': value['name'],
64
- };
65
- }
66
-