@randock/nameshift-api-client 0.0.295 → 0.0.296
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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +3 -3
- package/dist/models/AccountSettingsAffiliateCommissionDto.d.ts +56 -0
- package/dist/models/AccountSettingsAffiliateCommissionDto.js +67 -0
- package/dist/models/AccountSettingsAffiliateDto.d.ts +51 -0
- package/dist/models/AccountSettingsAffiliateDto.js +64 -0
- package/dist/models/AdminAccountSettingsAffiliateCommissionInput.d.ts +56 -0
- package/dist/models/AdminAccountSettingsAffiliateCommissionInput.js +65 -0
- package/dist/models/AdminAccountSettingsAffiliateInput.d.ts +51 -0
- package/dist/models/AdminAccountSettingsAffiliateInput.js +56 -0
- package/dist/models/AdminAccountSettingsInput.d.ts +7 -0
- package/dist/models/AdminAccountSettingsInput.js +3 -0
- package/dist/models/WithSettingsInner.d.ts +7 -0
- package/dist/models/WithSettingsInner.js +5 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/models/AccountSettingsAffiliateCommissionDto.ts +102 -0
- package/src/models/AccountSettingsAffiliateDto.ts +101 -0
- package/src/models/AdminAccountSettingsAffiliateCommissionInput.ts +101 -0
- package/src/models/AdminAccountSettingsAffiliateInput.ts +97 -0
- package/src/models/AdminAccountSettingsInput.ts +16 -0
- package/src/models/WithSettingsInner.ts +16 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -37,6 +37,8 @@ src/models/AccountNotificationReadStatusDto.ts
|
|
|
37
37
|
src/models/AccountOnboardingDto.ts
|
|
38
38
|
src/models/AccountOnboardingSessionDto.ts
|
|
39
39
|
src/models/AccountPayoutDto.ts
|
|
40
|
+
src/models/AccountSettingsAffiliateCommissionDto.ts
|
|
41
|
+
src/models/AccountSettingsAffiliateDto.ts
|
|
40
42
|
src/models/AccountSettingsAliasDto.ts
|
|
41
43
|
src/models/AccountSettingsDto.ts
|
|
42
44
|
src/models/AccountSettingsInput.ts
|
|
@@ -45,6 +47,8 @@ src/models/AccountSettingsRentConfigurationDto.ts
|
|
|
45
47
|
src/models/AccountSettingsSidnDto.ts
|
|
46
48
|
src/models/AddressDto.ts
|
|
47
49
|
src/models/AdminAccountLoginDto.ts
|
|
50
|
+
src/models/AdminAccountSettingsAffiliateCommissionInput.ts
|
|
51
|
+
src/models/AdminAccountSettingsAffiliateInput.ts
|
|
48
52
|
src/models/AdminAccountSettingsInput.ts
|
|
49
53
|
src/models/AdminBankAccountDto.ts
|
|
50
54
|
src/models/AdminCompanyStatsDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.296
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.296 --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
|
-
|
|
47
|
+
181442239f51cabd1e784d25826c73d97c01462f98edd705b41f5265d77bb2fd9b1b4a60b3ce02dc5547b94179afc9ce
|
|
@@ -0,0 +1,56 @@
|
|
|
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 AccountSettingsAffiliateCommissionDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountSettingsAffiliateCommissionDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof AccountSettingsAffiliateCommissionDto
|
|
22
|
+
*/
|
|
23
|
+
start: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof AccountSettingsAffiliateCommissionDto
|
|
28
|
+
*/
|
|
29
|
+
end: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AccountSettingsAffiliateCommissionDto
|
|
34
|
+
*/
|
|
35
|
+
leaseToOwnPercentage: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AccountSettingsAffiliateCommissionDto
|
|
40
|
+
*/
|
|
41
|
+
rentPercentage: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AccountSettingsAffiliateCommissionDto
|
|
46
|
+
*/
|
|
47
|
+
orderPercentage: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AccountSettingsAffiliateCommissionDto interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAccountSettingsAffiliateCommissionDto(value: object): value is AccountSettingsAffiliateCommissionDto;
|
|
53
|
+
export declare function AccountSettingsAffiliateCommissionDtoFromJSON(json: any): AccountSettingsAffiliateCommissionDto;
|
|
54
|
+
export declare function AccountSettingsAffiliateCommissionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsAffiliateCommissionDto;
|
|
55
|
+
export declare function AccountSettingsAffiliateCommissionDtoToJSON(json: any): AccountSettingsAffiliateCommissionDto;
|
|
56
|
+
export declare function AccountSettingsAffiliateCommissionDtoToJSONTyped(value?: AccountSettingsAffiliateCommissionDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfAccountSettingsAffiliateCommissionDto = instanceOfAccountSettingsAffiliateCommissionDto;
|
|
17
|
+
exports.AccountSettingsAffiliateCommissionDtoFromJSON = AccountSettingsAffiliateCommissionDtoFromJSON;
|
|
18
|
+
exports.AccountSettingsAffiliateCommissionDtoFromJSONTyped = AccountSettingsAffiliateCommissionDtoFromJSONTyped;
|
|
19
|
+
exports.AccountSettingsAffiliateCommissionDtoToJSON = AccountSettingsAffiliateCommissionDtoToJSON;
|
|
20
|
+
exports.AccountSettingsAffiliateCommissionDtoToJSONTyped = AccountSettingsAffiliateCommissionDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccountSettingsAffiliateCommissionDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccountSettingsAffiliateCommissionDto(value) {
|
|
25
|
+
if (!('start' in value) || value['start'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('end' in value) || value['end'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('leaseToOwnPercentage' in value) || value['leaseToOwnPercentage'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('rentPercentage' in value) || value['rentPercentage'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('orderPercentage' in value) || value['orderPercentage'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function AccountSettingsAffiliateCommissionDtoFromJSON(json) {
|
|
38
|
+
return AccountSettingsAffiliateCommissionDtoFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function AccountSettingsAffiliateCommissionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'start': (new Date(json['start'])),
|
|
46
|
+
'end': (json['end'] == null ? null : new Date(json['end'])),
|
|
47
|
+
'leaseToOwnPercentage': json['leaseToOwnPercentage'],
|
|
48
|
+
'rentPercentage': json['rentPercentage'],
|
|
49
|
+
'orderPercentage': json['orderPercentage'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function AccountSettingsAffiliateCommissionDtoToJSON(json) {
|
|
53
|
+
return AccountSettingsAffiliateCommissionDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AccountSettingsAffiliateCommissionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'start': ((value['start']).toISOString()),
|
|
62
|
+
'end': (value['end'] == null ? null : value['end'].toISOString()),
|
|
63
|
+
'leaseToOwnPercentage': value['leaseToOwnPercentage'],
|
|
64
|
+
'rentPercentage': value['rentPercentage'],
|
|
65
|
+
'orderPercentage': value['orderPercentage'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { AccountSettingsAffiliateCommissionDto } from './AccountSettingsAffiliateCommissionDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountSettingsAffiliateDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountSettingsAffiliateDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof AccountSettingsAffiliateDto
|
|
23
|
+
*/
|
|
24
|
+
defaultCommissionLeaseToOwn: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AccountSettingsAffiliateDto
|
|
29
|
+
*/
|
|
30
|
+
defaultCommissionRent: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AccountSettingsAffiliateDto
|
|
35
|
+
*/
|
|
36
|
+
defaultCommissionOrder: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<AccountSettingsAffiliateCommissionDto>}
|
|
40
|
+
* @memberof AccountSettingsAffiliateDto
|
|
41
|
+
*/
|
|
42
|
+
commissions: Array<AccountSettingsAffiliateCommissionDto>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the AccountSettingsAffiliateDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfAccountSettingsAffiliateDto(value: object): value is AccountSettingsAffiliateDto;
|
|
48
|
+
export declare function AccountSettingsAffiliateDtoFromJSON(json: any): AccountSettingsAffiliateDto;
|
|
49
|
+
export declare function AccountSettingsAffiliateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsAffiliateDto;
|
|
50
|
+
export declare function AccountSettingsAffiliateDtoToJSON(json: any): AccountSettingsAffiliateDto;
|
|
51
|
+
export declare function AccountSettingsAffiliateDtoToJSONTyped(value?: AccountSettingsAffiliateDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfAccountSettingsAffiliateDto = instanceOfAccountSettingsAffiliateDto;
|
|
17
|
+
exports.AccountSettingsAffiliateDtoFromJSON = AccountSettingsAffiliateDtoFromJSON;
|
|
18
|
+
exports.AccountSettingsAffiliateDtoFromJSONTyped = AccountSettingsAffiliateDtoFromJSONTyped;
|
|
19
|
+
exports.AccountSettingsAffiliateDtoToJSON = AccountSettingsAffiliateDtoToJSON;
|
|
20
|
+
exports.AccountSettingsAffiliateDtoToJSONTyped = AccountSettingsAffiliateDtoToJSONTyped;
|
|
21
|
+
var AccountSettingsAffiliateCommissionDto_1 = require("./AccountSettingsAffiliateCommissionDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AccountSettingsAffiliateDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAccountSettingsAffiliateDto(value) {
|
|
26
|
+
if (!('defaultCommissionLeaseToOwn' in value) || value['defaultCommissionLeaseToOwn'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('defaultCommissionRent' in value) || value['defaultCommissionRent'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('defaultCommissionOrder' in value) || value['defaultCommissionOrder'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('commissions' in value) || value['commissions'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function AccountSettingsAffiliateDtoFromJSON(json) {
|
|
37
|
+
return AccountSettingsAffiliateDtoFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function AccountSettingsAffiliateDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'defaultCommissionLeaseToOwn': json['defaultCommissionLeaseToOwn'],
|
|
45
|
+
'defaultCommissionRent': json['defaultCommissionRent'],
|
|
46
|
+
'defaultCommissionOrder': json['defaultCommissionOrder'],
|
|
47
|
+
'commissions': (json['commissions'].map(AccountSettingsAffiliateCommissionDto_1.AccountSettingsAffiliateCommissionDtoFromJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function AccountSettingsAffiliateDtoToJSON(json) {
|
|
51
|
+
return AccountSettingsAffiliateDtoToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function AccountSettingsAffiliateDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'defaultCommissionLeaseToOwn': value['defaultCommissionLeaseToOwn'],
|
|
60
|
+
'defaultCommissionRent': value['defaultCommissionRent'],
|
|
61
|
+
'defaultCommissionOrder': value['defaultCommissionOrder'],
|
|
62
|
+
'commissions': (value['commissions'].map(AccountSettingsAffiliateCommissionDto_1.AccountSettingsAffiliateCommissionDtoToJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 AdminAccountSettingsAffiliateCommissionInput
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminAccountSettingsAffiliateCommissionInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminAccountSettingsAffiliateCommissionInput
|
|
22
|
+
*/
|
|
23
|
+
startDate: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminAccountSettingsAffiliateCommissionInput
|
|
28
|
+
*/
|
|
29
|
+
endDate?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AdminAccountSettingsAffiliateCommissionInput
|
|
34
|
+
*/
|
|
35
|
+
leaseToOwnPercentage: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AdminAccountSettingsAffiliateCommissionInput
|
|
40
|
+
*/
|
|
41
|
+
rentPercentage: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AdminAccountSettingsAffiliateCommissionInput
|
|
46
|
+
*/
|
|
47
|
+
orderPercentage: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AdminAccountSettingsAffiliateCommissionInput interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAdminAccountSettingsAffiliateCommissionInput(value: object): value is AdminAccountSettingsAffiliateCommissionInput;
|
|
53
|
+
export declare function AdminAccountSettingsAffiliateCommissionInputFromJSON(json: any): AdminAccountSettingsAffiliateCommissionInput;
|
|
54
|
+
export declare function AdminAccountSettingsAffiliateCommissionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountSettingsAffiliateCommissionInput;
|
|
55
|
+
export declare function AdminAccountSettingsAffiliateCommissionInputToJSON(json: any): AdminAccountSettingsAffiliateCommissionInput;
|
|
56
|
+
export declare function AdminAccountSettingsAffiliateCommissionInputToJSONTyped(value?: AdminAccountSettingsAffiliateCommissionInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.instanceOfAdminAccountSettingsAffiliateCommissionInput = instanceOfAdminAccountSettingsAffiliateCommissionInput;
|
|
17
|
+
exports.AdminAccountSettingsAffiliateCommissionInputFromJSON = AdminAccountSettingsAffiliateCommissionInputFromJSON;
|
|
18
|
+
exports.AdminAccountSettingsAffiliateCommissionInputFromJSONTyped = AdminAccountSettingsAffiliateCommissionInputFromJSONTyped;
|
|
19
|
+
exports.AdminAccountSettingsAffiliateCommissionInputToJSON = AdminAccountSettingsAffiliateCommissionInputToJSON;
|
|
20
|
+
exports.AdminAccountSettingsAffiliateCommissionInputToJSONTyped = AdminAccountSettingsAffiliateCommissionInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminAccountSettingsAffiliateCommissionInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminAccountSettingsAffiliateCommissionInput(value) {
|
|
25
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('leaseToOwnPercentage' in value) || value['leaseToOwnPercentage'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('rentPercentage' in value) || value['rentPercentage'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('orderPercentage' in value) || value['orderPercentage'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AdminAccountSettingsAffiliateCommissionInputFromJSON(json) {
|
|
36
|
+
return AdminAccountSettingsAffiliateCommissionInputFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AdminAccountSettingsAffiliateCommissionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'startDate': json['startDate'],
|
|
44
|
+
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
45
|
+
'leaseToOwnPercentage': json['leaseToOwnPercentage'],
|
|
46
|
+
'rentPercentage': json['rentPercentage'],
|
|
47
|
+
'orderPercentage': json['orderPercentage'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function AdminAccountSettingsAffiliateCommissionInputToJSON(json) {
|
|
51
|
+
return AdminAccountSettingsAffiliateCommissionInputToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function AdminAccountSettingsAffiliateCommissionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'startDate': value['startDate'],
|
|
60
|
+
'endDate': value['endDate'],
|
|
61
|
+
'leaseToOwnPercentage': value['leaseToOwnPercentage'],
|
|
62
|
+
'rentPercentage': value['rentPercentage'],
|
|
63
|
+
'orderPercentage': value['orderPercentage'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { AdminAccountSettingsAffiliateCommissionInput } from './AdminAccountSettingsAffiliateCommissionInput';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminAccountSettingsAffiliateInput
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminAccountSettingsAffiliateInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof AdminAccountSettingsAffiliateInput
|
|
23
|
+
*/
|
|
24
|
+
defaultCommissionLeaseToOwn?: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AdminAccountSettingsAffiliateInput
|
|
29
|
+
*/
|
|
30
|
+
defaultCommissionRent?: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AdminAccountSettingsAffiliateInput
|
|
35
|
+
*/
|
|
36
|
+
defaultCommissionOrder?: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<AdminAccountSettingsAffiliateCommissionInput>}
|
|
40
|
+
* @memberof AdminAccountSettingsAffiliateInput
|
|
41
|
+
*/
|
|
42
|
+
commissions?: Array<AdminAccountSettingsAffiliateCommissionInput>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the AdminAccountSettingsAffiliateInput interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfAdminAccountSettingsAffiliateInput(value: object): value is AdminAccountSettingsAffiliateInput;
|
|
48
|
+
export declare function AdminAccountSettingsAffiliateInputFromJSON(json: any): AdminAccountSettingsAffiliateInput;
|
|
49
|
+
export declare function AdminAccountSettingsAffiliateInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountSettingsAffiliateInput;
|
|
50
|
+
export declare function AdminAccountSettingsAffiliateInputToJSON(json: any): AdminAccountSettingsAffiliateInput;
|
|
51
|
+
export declare function AdminAccountSettingsAffiliateInputToJSONTyped(value?: AdminAccountSettingsAffiliateInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfAdminAccountSettingsAffiliateInput = instanceOfAdminAccountSettingsAffiliateInput;
|
|
17
|
+
exports.AdminAccountSettingsAffiliateInputFromJSON = AdminAccountSettingsAffiliateInputFromJSON;
|
|
18
|
+
exports.AdminAccountSettingsAffiliateInputFromJSONTyped = AdminAccountSettingsAffiliateInputFromJSONTyped;
|
|
19
|
+
exports.AdminAccountSettingsAffiliateInputToJSON = AdminAccountSettingsAffiliateInputToJSON;
|
|
20
|
+
exports.AdminAccountSettingsAffiliateInputToJSONTyped = AdminAccountSettingsAffiliateInputToJSONTyped;
|
|
21
|
+
var AdminAccountSettingsAffiliateCommissionInput_1 = require("./AdminAccountSettingsAffiliateCommissionInput");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AdminAccountSettingsAffiliateInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAdminAccountSettingsAffiliateInput(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function AdminAccountSettingsAffiliateInputFromJSON(json) {
|
|
29
|
+
return AdminAccountSettingsAffiliateInputFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function AdminAccountSettingsAffiliateInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'defaultCommissionLeaseToOwn': json['defaultCommissionLeaseToOwn'] == null ? undefined : json['defaultCommissionLeaseToOwn'],
|
|
37
|
+
'defaultCommissionRent': json['defaultCommissionRent'] == null ? undefined : json['defaultCommissionRent'],
|
|
38
|
+
'defaultCommissionOrder': json['defaultCommissionOrder'] == null ? undefined : json['defaultCommissionOrder'],
|
|
39
|
+
'commissions': json['commissions'] == null ? undefined : (json['commissions'].map(AdminAccountSettingsAffiliateCommissionInput_1.AdminAccountSettingsAffiliateCommissionInputFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function AdminAccountSettingsAffiliateInputToJSON(json) {
|
|
43
|
+
return AdminAccountSettingsAffiliateInputToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function AdminAccountSettingsAffiliateInputToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'defaultCommissionLeaseToOwn': value['defaultCommissionLeaseToOwn'],
|
|
52
|
+
'defaultCommissionRent': value['defaultCommissionRent'],
|
|
53
|
+
'defaultCommissionOrder': value['defaultCommissionOrder'],
|
|
54
|
+
'commissions': value['commissions'] == null ? undefined : (value['commissions'].map(AdminAccountSettingsAffiliateCommissionInput_1.AdminAccountSettingsAffiliateCommissionInputToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AdminAccountSettingsAffiliateInput } from './AdminAccountSettingsAffiliateInput';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface AdminAccountSettingsInput {
|
|
|
27
28
|
* @memberof AdminAccountSettingsInput
|
|
28
29
|
*/
|
|
29
30
|
leaseToOwnKickBackPercentage?: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {AdminAccountSettingsAffiliateInput}
|
|
34
|
+
* @memberof AdminAccountSettingsInput
|
|
35
|
+
*/
|
|
36
|
+
affiliate?: AdminAccountSettingsAffiliateInput;
|
|
30
37
|
}
|
|
31
38
|
/**
|
|
32
39
|
* Check if a given object implements the AdminAccountSettingsInput interface.
|
|
@@ -18,6 +18,7 @@ exports.AdminAccountSettingsInputFromJSON = AdminAccountSettingsInputFromJSON;
|
|
|
18
18
|
exports.AdminAccountSettingsInputFromJSONTyped = AdminAccountSettingsInputFromJSONTyped;
|
|
19
19
|
exports.AdminAccountSettingsInputToJSON = AdminAccountSettingsInputToJSON;
|
|
20
20
|
exports.AdminAccountSettingsInputToJSONTyped = AdminAccountSettingsInputToJSONTyped;
|
|
21
|
+
var AdminAccountSettingsAffiliateInput_1 = require("./AdminAccountSettingsAffiliateInput");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the AdminAccountSettingsInput interface.
|
|
23
24
|
*/
|
|
@@ -34,6 +35,7 @@ function AdminAccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
35
|
return {
|
|
35
36
|
'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
|
|
36
37
|
'leaseToOwnKickBackPercentage': json['leaseToOwnKickBackPercentage'] == null ? undefined : json['leaseToOwnKickBackPercentage'],
|
|
38
|
+
'affiliate': json['affiliate'] == null ? undefined : (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputFromJSON)(json['affiliate']),
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
function AdminAccountSettingsInputToJSON(json) {
|
|
@@ -47,5 +49,6 @@ function AdminAccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
47
49
|
return {
|
|
48
50
|
'automaticPayouts': value['automaticPayouts'],
|
|
49
51
|
'leaseToOwnKickBackPercentage': value['leaseToOwnKickBackPercentage'],
|
|
52
|
+
'affiliate': (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputToJSON)(value['affiliate']),
|
|
50
53
|
};
|
|
51
54
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { LeadPriceNegotiatorAiAgentConfigurationDto } from './LeadPriceNegotiatorAiAgentConfigurationDto';
|
|
13
|
+
import type { AccountSettingsAffiliateDto } from './AccountSettingsAffiliateDto';
|
|
13
14
|
import type { MoneyDto } from './MoneyDto';
|
|
14
15
|
import type { AccountAliasDto } from './AccountAliasDto';
|
|
15
16
|
import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
@@ -117,6 +118,12 @@ export interface WithSettingsInner {
|
|
|
117
118
|
* @memberof WithSettingsInner
|
|
118
119
|
*/
|
|
119
120
|
leadPriceNegotiatorAiAgent: LeadPriceNegotiatorAiAgentConfigurationDto;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {AccountSettingsAffiliateDto}
|
|
124
|
+
* @memberof WithSettingsInner
|
|
125
|
+
*/
|
|
126
|
+
affiliate: AccountSettingsAffiliateDto;
|
|
120
127
|
}
|
|
121
128
|
/**
|
|
122
129
|
* Check if a given object implements the WithSettingsInner interface.
|
|
@@ -19,6 +19,7 @@ exports.WithSettingsInnerFromJSONTyped = WithSettingsInnerFromJSONTyped;
|
|
|
19
19
|
exports.WithSettingsInnerToJSON = WithSettingsInnerToJSON;
|
|
20
20
|
exports.WithSettingsInnerToJSONTyped = WithSettingsInnerToJSONTyped;
|
|
21
21
|
var LeadPriceNegotiatorAiAgentConfigurationDto_1 = require("./LeadPriceNegotiatorAiAgentConfigurationDto");
|
|
22
|
+
var AccountSettingsAffiliateDto_1 = require("./AccountSettingsAffiliateDto");
|
|
22
23
|
var MoneyDto_1 = require("./MoneyDto");
|
|
23
24
|
var AccountAliasDto_1 = require("./AccountAliasDto");
|
|
24
25
|
var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeaseToOwnConfigurationDto");
|
|
@@ -60,6 +61,8 @@ function instanceOfWithSettingsInner(value) {
|
|
|
60
61
|
return false;
|
|
61
62
|
if (!('leadPriceNegotiatorAiAgent' in value) || value['leadPriceNegotiatorAiAgent'] === undefined)
|
|
62
63
|
return false;
|
|
64
|
+
if (!('affiliate' in value) || value['affiliate'] === undefined)
|
|
65
|
+
return false;
|
|
63
66
|
return true;
|
|
64
67
|
}
|
|
65
68
|
function WithSettingsInnerFromJSON(json) {
|
|
@@ -86,6 +89,7 @@ function WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
89
|
'timezone': json['timezone'],
|
|
87
90
|
'alias': (0, AccountAliasDto_1.AccountAliasDtoFromJSON)(json['alias']),
|
|
88
91
|
'leadPriceNegotiatorAiAgent': (0, LeadPriceNegotiatorAiAgentConfigurationDto_1.LeadPriceNegotiatorAiAgentConfigurationDtoFromJSON)(json['leadPriceNegotiatorAiAgent']),
|
|
92
|
+
'affiliate': (0, AccountSettingsAffiliateDto_1.AccountSettingsAffiliateDtoFromJSON)(json['affiliate']),
|
|
89
93
|
};
|
|
90
94
|
}
|
|
91
95
|
function WithSettingsInnerToJSON(json) {
|
|
@@ -113,5 +117,6 @@ function WithSettingsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
|
113
117
|
'timezone': value['timezone'],
|
|
114
118
|
'alias': (0, AccountAliasDto_1.AccountAliasDtoToJSON)(value['alias']),
|
|
115
119
|
'leadPriceNegotiatorAiAgent': (0, LeadPriceNegotiatorAiAgentConfigurationDto_1.LeadPriceNegotiatorAiAgentConfigurationDtoToJSON)(value['leadPriceNegotiatorAiAgent']),
|
|
120
|
+
'affiliate': (0, AccountSettingsAffiliateDto_1.AccountSettingsAffiliateDtoToJSON)(value['affiliate']),
|
|
116
121
|
};
|
|
117
122
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export * from './AccountNotificationReadStatusDto';
|
|
|
9
9
|
export * from './AccountOnboardingDto';
|
|
10
10
|
export * from './AccountOnboardingSessionDto';
|
|
11
11
|
export * from './AccountPayoutDto';
|
|
12
|
+
export * from './AccountSettingsAffiliateCommissionDto';
|
|
13
|
+
export * from './AccountSettingsAffiliateDto';
|
|
12
14
|
export * from './AccountSettingsAliasDto';
|
|
13
15
|
export * from './AccountSettingsDto';
|
|
14
16
|
export * from './AccountSettingsInput';
|
|
@@ -17,6 +19,8 @@ export * from './AccountSettingsRentConfigurationDto';
|
|
|
17
19
|
export * from './AccountSettingsSidnDto';
|
|
18
20
|
export * from './AddressDto';
|
|
19
21
|
export * from './AdminAccountLoginDto';
|
|
22
|
+
export * from './AdminAccountSettingsAffiliateCommissionInput';
|
|
23
|
+
export * from './AdminAccountSettingsAffiliateInput';
|
|
20
24
|
export * from './AdminAccountSettingsInput';
|
|
21
25
|
export * from './AdminBankAccountDto';
|
|
22
26
|
export * from './AdminCompanyStatsDto';
|
package/dist/models/index.js
CHANGED
|
@@ -27,6 +27,8 @@ __exportStar(require("./AccountNotificationReadStatusDto"), exports);
|
|
|
27
27
|
__exportStar(require("./AccountOnboardingDto"), exports);
|
|
28
28
|
__exportStar(require("./AccountOnboardingSessionDto"), exports);
|
|
29
29
|
__exportStar(require("./AccountPayoutDto"), exports);
|
|
30
|
+
__exportStar(require("./AccountSettingsAffiliateCommissionDto"), exports);
|
|
31
|
+
__exportStar(require("./AccountSettingsAffiliateDto"), exports);
|
|
30
32
|
__exportStar(require("./AccountSettingsAliasDto"), exports);
|
|
31
33
|
__exportStar(require("./AccountSettingsDto"), exports);
|
|
32
34
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
@@ -35,6 +37,8 @@ __exportStar(require("./AccountSettingsRentConfigurationDto"), exports);
|
|
|
35
37
|
__exportStar(require("./AccountSettingsSidnDto"), exports);
|
|
36
38
|
__exportStar(require("./AddressDto"), exports);
|
|
37
39
|
__exportStar(require("./AdminAccountLoginDto"), exports);
|
|
40
|
+
__exportStar(require("./AdminAccountSettingsAffiliateCommissionInput"), exports);
|
|
41
|
+
__exportStar(require("./AdminAccountSettingsAffiliateInput"), exports);
|
|
38
42
|
__exportStar(require("./AdminAccountSettingsInput"), exports);
|
|
39
43
|
__exportStar(require("./AdminBankAccountDto"), exports);
|
|
40
44
|
__exportStar(require("./AdminCompanyStatsDto"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,102 @@
|
|
|
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 AccountSettingsAffiliateCommissionDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountSettingsAffiliateCommissionDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Date}
|
|
25
|
+
* @memberof AccountSettingsAffiliateCommissionDto
|
|
26
|
+
*/
|
|
27
|
+
start: Date;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof AccountSettingsAffiliateCommissionDto
|
|
32
|
+
*/
|
|
33
|
+
end: Date | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof AccountSettingsAffiliateCommissionDto
|
|
38
|
+
*/
|
|
39
|
+
leaseToOwnPercentage: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof AccountSettingsAffiliateCommissionDto
|
|
44
|
+
*/
|
|
45
|
+
rentPercentage: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AccountSettingsAffiliateCommissionDto
|
|
50
|
+
*/
|
|
51
|
+
orderPercentage: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the AccountSettingsAffiliateCommissionDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfAccountSettingsAffiliateCommissionDto(value: object): value is AccountSettingsAffiliateCommissionDto {
|
|
58
|
+
if (!('start' in value) || value['start'] === undefined) return false;
|
|
59
|
+
if (!('end' in value) || value['end'] === undefined) return false;
|
|
60
|
+
if (!('leaseToOwnPercentage' in value) || value['leaseToOwnPercentage'] === undefined) return false;
|
|
61
|
+
if (!('rentPercentage' in value) || value['rentPercentage'] === undefined) return false;
|
|
62
|
+
if (!('orderPercentage' in value) || value['orderPercentage'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AccountSettingsAffiliateCommissionDtoFromJSON(json: any): AccountSettingsAffiliateCommissionDto {
|
|
67
|
+
return AccountSettingsAffiliateCommissionDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function AccountSettingsAffiliateCommissionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsAffiliateCommissionDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'start': (new Date(json['start'])),
|
|
77
|
+
'end': (json['end'] == null ? null : new Date(json['end'])),
|
|
78
|
+
'leaseToOwnPercentage': json['leaseToOwnPercentage'],
|
|
79
|
+
'rentPercentage': json['rentPercentage'],
|
|
80
|
+
'orderPercentage': json['orderPercentage'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AccountSettingsAffiliateCommissionDtoToJSON(json: any): AccountSettingsAffiliateCommissionDto {
|
|
85
|
+
return AccountSettingsAffiliateCommissionDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AccountSettingsAffiliateCommissionDtoToJSONTyped(value?: AccountSettingsAffiliateCommissionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'start': ((value['start']).toISOString()),
|
|
96
|
+
'end': (value['end'] == null ? null : (value['end'] as any).toISOString()),
|
|
97
|
+
'leaseToOwnPercentage': value['leaseToOwnPercentage'],
|
|
98
|
+
'rentPercentage': value['rentPercentage'],
|
|
99
|
+
'orderPercentage': value['orderPercentage'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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 { AccountSettingsAffiliateCommissionDto } from './AccountSettingsAffiliateCommissionDto';
|
|
17
|
+
import {
|
|
18
|
+
AccountSettingsAffiliateCommissionDtoFromJSON,
|
|
19
|
+
AccountSettingsAffiliateCommissionDtoFromJSONTyped,
|
|
20
|
+
AccountSettingsAffiliateCommissionDtoToJSON,
|
|
21
|
+
AccountSettingsAffiliateCommissionDtoToJSONTyped,
|
|
22
|
+
} from './AccountSettingsAffiliateCommissionDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AccountSettingsAffiliateDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AccountSettingsAffiliateDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AccountSettingsAffiliateDto
|
|
34
|
+
*/
|
|
35
|
+
defaultCommissionLeaseToOwn: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AccountSettingsAffiliateDto
|
|
40
|
+
*/
|
|
41
|
+
defaultCommissionRent: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AccountSettingsAffiliateDto
|
|
46
|
+
*/
|
|
47
|
+
defaultCommissionOrder: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<AccountSettingsAffiliateCommissionDto>}
|
|
51
|
+
* @memberof AccountSettingsAffiliateDto
|
|
52
|
+
*/
|
|
53
|
+
commissions: Array<AccountSettingsAffiliateCommissionDto>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AccountSettingsAffiliateDto interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfAccountSettingsAffiliateDto(value: object): value is AccountSettingsAffiliateDto {
|
|
60
|
+
if (!('defaultCommissionLeaseToOwn' in value) || value['defaultCommissionLeaseToOwn'] === undefined) return false;
|
|
61
|
+
if (!('defaultCommissionRent' in value) || value['defaultCommissionRent'] === undefined) return false;
|
|
62
|
+
if (!('defaultCommissionOrder' in value) || value['defaultCommissionOrder'] === undefined) return false;
|
|
63
|
+
if (!('commissions' in value) || value['commissions'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function AccountSettingsAffiliateDtoFromJSON(json: any): AccountSettingsAffiliateDto {
|
|
68
|
+
return AccountSettingsAffiliateDtoFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function AccountSettingsAffiliateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsAffiliateDto {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'defaultCommissionLeaseToOwn': json['defaultCommissionLeaseToOwn'],
|
|
78
|
+
'defaultCommissionRent': json['defaultCommissionRent'],
|
|
79
|
+
'defaultCommissionOrder': json['defaultCommissionOrder'],
|
|
80
|
+
'commissions': ((json['commissions'] as Array<any>).map(AccountSettingsAffiliateCommissionDtoFromJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AccountSettingsAffiliateDtoToJSON(json: any): AccountSettingsAffiliateDto {
|
|
85
|
+
return AccountSettingsAffiliateDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AccountSettingsAffiliateDtoToJSONTyped(value?: AccountSettingsAffiliateDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'defaultCommissionLeaseToOwn': value['defaultCommissionLeaseToOwn'],
|
|
96
|
+
'defaultCommissionRent': value['defaultCommissionRent'],
|
|
97
|
+
'defaultCommissionOrder': value['defaultCommissionOrder'],
|
|
98
|
+
'commissions': ((value['commissions'] as Array<any>).map(AccountSettingsAffiliateCommissionDtoToJSON)),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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 AdminAccountSettingsAffiliateCommissionInput
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminAccountSettingsAffiliateCommissionInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AdminAccountSettingsAffiliateCommissionInput
|
|
26
|
+
*/
|
|
27
|
+
startDate: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AdminAccountSettingsAffiliateCommissionInput
|
|
32
|
+
*/
|
|
33
|
+
endDate?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof AdminAccountSettingsAffiliateCommissionInput
|
|
38
|
+
*/
|
|
39
|
+
leaseToOwnPercentage: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof AdminAccountSettingsAffiliateCommissionInput
|
|
44
|
+
*/
|
|
45
|
+
rentPercentage: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AdminAccountSettingsAffiliateCommissionInput
|
|
50
|
+
*/
|
|
51
|
+
orderPercentage: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the AdminAccountSettingsAffiliateCommissionInput interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfAdminAccountSettingsAffiliateCommissionInput(value: object): value is AdminAccountSettingsAffiliateCommissionInput {
|
|
58
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
59
|
+
if (!('leaseToOwnPercentage' in value) || value['leaseToOwnPercentage'] === undefined) return false;
|
|
60
|
+
if (!('rentPercentage' in value) || value['rentPercentage'] === undefined) return false;
|
|
61
|
+
if (!('orderPercentage' in value) || value['orderPercentage'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function AdminAccountSettingsAffiliateCommissionInputFromJSON(json: any): AdminAccountSettingsAffiliateCommissionInput {
|
|
66
|
+
return AdminAccountSettingsAffiliateCommissionInputFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function AdminAccountSettingsAffiliateCommissionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountSettingsAffiliateCommissionInput {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'startDate': json['startDate'],
|
|
76
|
+
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
77
|
+
'leaseToOwnPercentage': json['leaseToOwnPercentage'],
|
|
78
|
+
'rentPercentage': json['rentPercentage'],
|
|
79
|
+
'orderPercentage': json['orderPercentage'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function AdminAccountSettingsAffiliateCommissionInputToJSON(json: any): AdminAccountSettingsAffiliateCommissionInput {
|
|
84
|
+
return AdminAccountSettingsAffiliateCommissionInputToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function AdminAccountSettingsAffiliateCommissionInputToJSONTyped(value?: AdminAccountSettingsAffiliateCommissionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'startDate': value['startDate'],
|
|
95
|
+
'endDate': value['endDate'],
|
|
96
|
+
'leaseToOwnPercentage': value['leaseToOwnPercentage'],
|
|
97
|
+
'rentPercentage': value['rentPercentage'],
|
|
98
|
+
'orderPercentage': value['orderPercentage'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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 { AdminAccountSettingsAffiliateCommissionInput } from './AdminAccountSettingsAffiliateCommissionInput';
|
|
17
|
+
import {
|
|
18
|
+
AdminAccountSettingsAffiliateCommissionInputFromJSON,
|
|
19
|
+
AdminAccountSettingsAffiliateCommissionInputFromJSONTyped,
|
|
20
|
+
AdminAccountSettingsAffiliateCommissionInputToJSON,
|
|
21
|
+
AdminAccountSettingsAffiliateCommissionInputToJSONTyped,
|
|
22
|
+
} from './AdminAccountSettingsAffiliateCommissionInput';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AdminAccountSettingsAffiliateInput
|
|
28
|
+
*/
|
|
29
|
+
export interface AdminAccountSettingsAffiliateInput {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AdminAccountSettingsAffiliateInput
|
|
34
|
+
*/
|
|
35
|
+
defaultCommissionLeaseToOwn?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AdminAccountSettingsAffiliateInput
|
|
40
|
+
*/
|
|
41
|
+
defaultCommissionRent?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AdminAccountSettingsAffiliateInput
|
|
46
|
+
*/
|
|
47
|
+
defaultCommissionOrder?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<AdminAccountSettingsAffiliateCommissionInput>}
|
|
51
|
+
* @memberof AdminAccountSettingsAffiliateInput
|
|
52
|
+
*/
|
|
53
|
+
commissions?: Array<AdminAccountSettingsAffiliateCommissionInput>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AdminAccountSettingsAffiliateInput interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfAdminAccountSettingsAffiliateInput(value: object): value is AdminAccountSettingsAffiliateInput {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AdminAccountSettingsAffiliateInputFromJSON(json: any): AdminAccountSettingsAffiliateInput {
|
|
64
|
+
return AdminAccountSettingsAffiliateInputFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function AdminAccountSettingsAffiliateInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountSettingsAffiliateInput {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'defaultCommissionLeaseToOwn': json['defaultCommissionLeaseToOwn'] == null ? undefined : json['defaultCommissionLeaseToOwn'],
|
|
74
|
+
'defaultCommissionRent': json['defaultCommissionRent'] == null ? undefined : json['defaultCommissionRent'],
|
|
75
|
+
'defaultCommissionOrder': json['defaultCommissionOrder'] == null ? undefined : json['defaultCommissionOrder'],
|
|
76
|
+
'commissions': json['commissions'] == null ? undefined : ((json['commissions'] as Array<any>).map(AdminAccountSettingsAffiliateCommissionInputFromJSON)),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function AdminAccountSettingsAffiliateInputToJSON(json: any): AdminAccountSettingsAffiliateInput {
|
|
81
|
+
return AdminAccountSettingsAffiliateInputToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AdminAccountSettingsAffiliateInputToJSONTyped(value?: AdminAccountSettingsAffiliateInput | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'defaultCommissionLeaseToOwn': value['defaultCommissionLeaseToOwn'],
|
|
92
|
+
'defaultCommissionRent': value['defaultCommissionRent'],
|
|
93
|
+
'defaultCommissionOrder': value['defaultCommissionOrder'],
|
|
94
|
+
'commissions': value['commissions'] == null ? undefined : ((value['commissions'] as Array<any>).map(AdminAccountSettingsAffiliateCommissionInputToJSON)),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AdminAccountSettingsAffiliateInput } from './AdminAccountSettingsAffiliateInput';
|
|
17
|
+
import {
|
|
18
|
+
AdminAccountSettingsAffiliateInputFromJSON,
|
|
19
|
+
AdminAccountSettingsAffiliateInputFromJSONTyped,
|
|
20
|
+
AdminAccountSettingsAffiliateInputToJSON,
|
|
21
|
+
AdminAccountSettingsAffiliateInputToJSONTyped,
|
|
22
|
+
} from './AdminAccountSettingsAffiliateInput';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -31,6 +39,12 @@ export interface AdminAccountSettingsInput {
|
|
|
31
39
|
* @memberof AdminAccountSettingsInput
|
|
32
40
|
*/
|
|
33
41
|
leaseToOwnKickBackPercentage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {AdminAccountSettingsAffiliateInput}
|
|
45
|
+
* @memberof AdminAccountSettingsInput
|
|
46
|
+
*/
|
|
47
|
+
affiliate?: AdminAccountSettingsAffiliateInput;
|
|
34
48
|
}
|
|
35
49
|
|
|
36
50
|
/**
|
|
@@ -52,6 +66,7 @@ export function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
52
66
|
|
|
53
67
|
'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
|
|
54
68
|
'leaseToOwnKickBackPercentage': json['leaseToOwnKickBackPercentage'] == null ? undefined : json['leaseToOwnKickBackPercentage'],
|
|
69
|
+
'affiliate': json['affiliate'] == null ? undefined : AdminAccountSettingsAffiliateInputFromJSON(json['affiliate']),
|
|
55
70
|
};
|
|
56
71
|
}
|
|
57
72
|
|
|
@@ -68,6 +83,7 @@ export function AdminAccountSettingsInputToJSONTyped(value?: AdminAccountSetting
|
|
|
68
83
|
|
|
69
84
|
'automaticPayouts': value['automaticPayouts'],
|
|
70
85
|
'leaseToOwnKickBackPercentage': value['leaseToOwnKickBackPercentage'],
|
|
86
|
+
'affiliate': AdminAccountSettingsAffiliateInputToJSON(value['affiliate']),
|
|
71
87
|
};
|
|
72
88
|
}
|
|
73
89
|
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
LeadPriceNegotiatorAiAgentConfigurationDtoToJSON,
|
|
21
21
|
LeadPriceNegotiatorAiAgentConfigurationDtoToJSONTyped,
|
|
22
22
|
} from './LeadPriceNegotiatorAiAgentConfigurationDto';
|
|
23
|
+
import type { AccountSettingsAffiliateDto } from './AccountSettingsAffiliateDto';
|
|
24
|
+
import {
|
|
25
|
+
AccountSettingsAffiliateDtoFromJSON,
|
|
26
|
+
AccountSettingsAffiliateDtoFromJSONTyped,
|
|
27
|
+
AccountSettingsAffiliateDtoToJSON,
|
|
28
|
+
AccountSettingsAffiliateDtoToJSONTyped,
|
|
29
|
+
} from './AccountSettingsAffiliateDto';
|
|
23
30
|
import type { MoneyDto } from './MoneyDto';
|
|
24
31
|
import {
|
|
25
32
|
MoneyDtoFromJSON,
|
|
@@ -158,6 +165,12 @@ export interface WithSettingsInner {
|
|
|
158
165
|
* @memberof WithSettingsInner
|
|
159
166
|
*/
|
|
160
167
|
leadPriceNegotiatorAiAgent: LeadPriceNegotiatorAiAgentConfigurationDto;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {AccountSettingsAffiliateDto}
|
|
171
|
+
* @memberof WithSettingsInner
|
|
172
|
+
*/
|
|
173
|
+
affiliate: AccountSettingsAffiliateDto;
|
|
161
174
|
}
|
|
162
175
|
|
|
163
176
|
/**
|
|
@@ -180,6 +193,7 @@ export function instanceOfWithSettingsInner(value: object): value is WithSetting
|
|
|
180
193
|
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
181
194
|
if (!('alias' in value) || value['alias'] === undefined) return false;
|
|
182
195
|
if (!('leadPriceNegotiatorAiAgent' in value) || value['leadPriceNegotiatorAiAgent'] === undefined) return false;
|
|
196
|
+
if (!('affiliate' in value) || value['affiliate'] === undefined) return false;
|
|
183
197
|
return true;
|
|
184
198
|
}
|
|
185
199
|
|
|
@@ -209,6 +223,7 @@ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
209
223
|
'timezone': json['timezone'],
|
|
210
224
|
'alias': AccountAliasDtoFromJSON(json['alias']),
|
|
211
225
|
'leadPriceNegotiatorAiAgent': LeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json['leadPriceNegotiatorAiAgent']),
|
|
226
|
+
'affiliate': AccountSettingsAffiliateDtoFromJSON(json['affiliate']),
|
|
212
227
|
};
|
|
213
228
|
}
|
|
214
229
|
|
|
@@ -239,6 +254,7 @@ export function WithSettingsInnerToJSONTyped(value?: WithSettingsInner | null, i
|
|
|
239
254
|
'timezone': value['timezone'],
|
|
240
255
|
'alias': AccountAliasDtoToJSON(value['alias']),
|
|
241
256
|
'leadPriceNegotiatorAiAgent': LeadPriceNegotiatorAiAgentConfigurationDtoToJSON(value['leadPriceNegotiatorAiAgent']),
|
|
257
|
+
'affiliate': AccountSettingsAffiliateDtoToJSON(value['affiliate']),
|
|
242
258
|
};
|
|
243
259
|
}
|
|
244
260
|
|
package/src/models/index.ts
CHANGED
|
@@ -11,6 +11,8 @@ export * from './AccountNotificationReadStatusDto';
|
|
|
11
11
|
export * from './AccountOnboardingDto';
|
|
12
12
|
export * from './AccountOnboardingSessionDto';
|
|
13
13
|
export * from './AccountPayoutDto';
|
|
14
|
+
export * from './AccountSettingsAffiliateCommissionDto';
|
|
15
|
+
export * from './AccountSettingsAffiliateDto';
|
|
14
16
|
export * from './AccountSettingsAliasDto';
|
|
15
17
|
export * from './AccountSettingsDto';
|
|
16
18
|
export * from './AccountSettingsInput';
|
|
@@ -19,6 +21,8 @@ export * from './AccountSettingsRentConfigurationDto';
|
|
|
19
21
|
export * from './AccountSettingsSidnDto';
|
|
20
22
|
export * from './AddressDto';
|
|
21
23
|
export * from './AdminAccountLoginDto';
|
|
24
|
+
export * from './AdminAccountSettingsAffiliateCommissionInput';
|
|
25
|
+
export * from './AdminAccountSettingsAffiliateInput';
|
|
22
26
|
export * from './AdminAccountSettingsInput';
|
|
23
27
|
export * from './AdminBankAccountDto';
|
|
24
28
|
export * from './AdminCompanyStatsDto';
|