@randock/nameshift-api-client 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/.openapi-generator/FILES +3 -3
  2. package/README.md +2 -2
  3. package/dist/apis/AccountsApi.d.ts +3 -3
  4. package/dist/apis/AccountsApi.js +1 -1
  5. package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +3 -3
  6. package/dist/models/IntersectionAccountDtoWithFinancialDto.js +3 -3
  7. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +3 -3
  8. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +58 -0
  9. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +65 -0
  10. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +3 -3
  11. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +3 -3
  12. package/dist/models/WithFinancialDtoInner.d.ts +49 -0
  13. package/dist/models/WithFinancialDtoInner.js +59 -0
  14. package/dist/models/WithSettingsInner.d.ts +32 -0
  15. package/dist/models/WithSettingsInner.js +51 -0
  16. package/dist/models/index.d.ts +3 -3
  17. package/dist/models/index.js +3 -3
  18. package/package.json +5 -1
  19. package/src/apis/AccountsApi.ts +6 -6
  20. package/src/models/IntersectionAccountDtoWithFinancialDto.ts +9 -9
  21. package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +3 -3
  22. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +121 -0
  23. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +9 -9
  24. package/src/models/WithFinancialDtoInner.ts +93 -0
  25. package/src/models/WithSettingsInner.ts +73 -0
  26. package/src/models/index.ts +3 -3
@@ -11,7 +11,6 @@ src/apis/index.ts
11
11
  src/index.ts
12
12
  src/models/AccountAddressDto.ts
13
13
  src/models/AccountAddressInput.ts
14
- src/models/AccountDto.ts
15
14
  src/models/AccountFinancialInput.ts
16
15
  src/models/AccountSettingsInput.ts
17
16
  src/models/BatchUpdate404Response.ts
@@ -22,9 +21,8 @@ src/models/DomainDto.ts
22
21
  src/models/ImportDomainsDto.ts
23
22
  src/models/IntersectionAccountDtoWithAddressDto.ts
24
23
  src/models/IntersectionAccountDtoWithFinancialDto.ts
25
- src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts
24
+ src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
26
25
  src/models/IntersectionAccountDtoWithSettingsDto.ts
27
- src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts
28
26
  src/models/LeadDto.ts
29
27
  src/models/List200Response.ts
30
28
  src/models/List400Response.ts
@@ -42,6 +40,8 @@ src/models/TokenDto.ts
42
40
  src/models/UpdateDomainInput.ts
43
41
  src/models/UpdateSettings401Response.ts
44
42
  src/models/UpdateSettings429Response.ts
43
+ src/models/WithFinancialDtoInner.ts
44
+ src/models/WithSettingsInner.ts
45
45
  src/models/index.ts
46
46
  src/runtime.ts
47
47
  tsconfig.json
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@1.0
1
+ ## @randock/nameshift-api-client@0.0.7
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@1.0 --save
39
+ npm install @randock/nameshift-api-client@0.0.7 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountAddressInput, AccountDto, AccountFinancialInput, AccountSettingsInput, IntersectionAccountDtoWithAddressDto, IntersectionAccountDtoWithFinancialDto, IntersectionAccountDtoWithSettingsDto } from '../models/index';
13
+ import type { AccountAddressInput, AccountFinancialInput, AccountSettingsInput, IntersectionAccountDtoWithAddressDto, IntersectionAccountDtoWithFinancialDto, IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto, IntersectionAccountDtoWithSettingsDto } from '../models/index';
14
14
  export interface UpdateAddressRequest {
15
15
  accountId: string;
16
16
  accountAddressInput: AccountAddressInput;
@@ -30,11 +30,11 @@ export declare class AccountsApi extends runtime.BaseAPI {
30
30
  /**
31
31
  *
32
32
  */
33
- meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountDto>>;
33
+ meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>>;
34
34
  /**
35
35
  *
36
36
  */
37
- me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountDto>;
37
+ me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>;
38
38
  /**
39
39
  *
40
40
  */
@@ -103,7 +103,7 @@ var AccountsApi = /** @class */ (function (_super) {
103
103
  }, initOverrides)];
104
104
  case 3:
105
105
  response = _a.sent();
106
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AccountDtoFromJSON)(jsonValue); })];
106
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON)(jsonValue); })];
107
107
  }
108
108
  });
109
109
  });
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { IntersectionAccountDtoWithFinancialDtoFinancial } from './IntersectionAccountDtoWithFinancialDtoFinancial';
12
+ import type { WithFinancialDtoInner } from './WithFinancialDtoInner';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -30,10 +30,10 @@ export interface IntersectionAccountDtoWithFinancialDto {
30
30
  identifier: string;
31
31
  /**
32
32
  *
33
- * @type {IntersectionAccountDtoWithFinancialDtoFinancial}
33
+ * @type {WithFinancialDtoInner}
34
34
  * @memberof IntersectionAccountDtoWithFinancialDto
35
35
  */
36
- financial: IntersectionAccountDtoWithFinancialDtoFinancial;
36
+ financial: WithFinancialDtoInner;
37
37
  }
38
38
  /**
39
39
  * Check if a given object implements the IntersectionAccountDtoWithFinancialDto interface.
@@ -14,7 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.IntersectionAccountDtoWithFinancialDtoToJSON = exports.IntersectionAccountDtoWithFinancialDtoFromJSONTyped = exports.IntersectionAccountDtoWithFinancialDtoFromJSON = exports.instanceOfIntersectionAccountDtoWithFinancialDto = void 0;
17
- var IntersectionAccountDtoWithFinancialDtoFinancial_1 = require("./IntersectionAccountDtoWithFinancialDtoFinancial");
17
+ var WithFinancialDtoInner_1 = require("./WithFinancialDtoInner");
18
18
  /**
19
19
  * Check if a given object implements the IntersectionAccountDtoWithFinancialDto interface.
20
20
  */
@@ -37,7 +37,7 @@ function IntersectionAccountDtoWithFinancialDtoFromJSONTyped(json, ignoreDiscrim
37
37
  return {
38
38
  'id': json['id'],
39
39
  'identifier': json['identifier'],
40
- 'financial': (0, IntersectionAccountDtoWithFinancialDtoFinancial_1.IntersectionAccountDtoWithFinancialDtoFinancialFromJSON)(json['financial']),
40
+ 'financial': (0, WithFinancialDtoInner_1.WithFinancialDtoInnerFromJSON)(json['financial']),
41
41
  };
42
42
  }
43
43
  exports.IntersectionAccountDtoWithFinancialDtoFromJSONTyped = IntersectionAccountDtoWithFinancialDtoFromJSONTyped;
@@ -51,7 +51,7 @@ function IntersectionAccountDtoWithFinancialDtoToJSON(value) {
51
51
  return {
52
52
  'id': value.id,
53
53
  'identifier': value.identifier,
54
- 'financial': (0, IntersectionAccountDtoWithFinancialDtoFinancial_1.IntersectionAccountDtoWithFinancialDtoFinancialToJSON)(value.financial),
54
+ 'financial': (0, WithFinancialDtoInner_1.WithFinancialDtoInnerToJSON)(value.financial),
55
55
  };
56
56
  }
57
57
  exports.IntersectionAccountDtoWithFinancialDtoToJSON = IntersectionAccountDtoWithFinancialDtoToJSON;
@@ -26,19 +26,19 @@ export interface IntersectionAccountDtoWithFinancialDtoFinancial {
26
26
  * @type {string}
27
27
  * @memberof IntersectionAccountDtoWithFinancialDtoFinancial
28
28
  */
29
- companyName?: string;
29
+ companyName?: string | null;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof IntersectionAccountDtoWithFinancialDtoFinancial
34
34
  */
35
- companyVatNumber?: string;
35
+ companyVatNumber?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
39
  * @memberof IntersectionAccountDtoWithFinancialDtoFinancial
40
40
  */
41
- companyRegistrationNumber?: string;
41
+ companyRegistrationNumber?: string | null;
42
42
  }
43
43
  /**
44
44
  * Check if a given object implements the IntersectionAccountDtoWithFinancialDtoFinancial interface.
@@ -0,0 +1,58 @@
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 { AccountAddressDto } from './AccountAddressDto';
13
+ import type { WithFinancialDtoInner } from './WithFinancialDtoInner';
14
+ import type { WithSettingsInner } from './WithSettingsInner';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
19
+ */
20
+ export interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
25
+ */
26
+ id: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
31
+ */
32
+ identifier: string;
33
+ /**
34
+ *
35
+ * @type {WithFinancialDtoInner}
36
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
37
+ */
38
+ financial: WithFinancialDtoInner;
39
+ /**
40
+ *
41
+ * @type {WithSettingsInner}
42
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
43
+ */
44
+ settings: WithSettingsInner;
45
+ /**
46
+ *
47
+ * @type {Array<AccountAddressDto>}
48
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
49
+ */
50
+ addresses: Array<AccountAddressDto>;
51
+ }
52
+ /**
53
+ * Check if a given object implements the IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
54
+ */
55
+ export declare function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto(value: object): boolean;
56
+ export declare function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(json: any): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
57
+ export declare function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
58
+ export declare function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON(value?: IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto | null): 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.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON = exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped = exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON = exports.instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto = void 0;
17
+ var AccountAddressDto_1 = require("./AccountAddressDto");
18
+ var WithFinancialDtoInner_1 = require("./WithFinancialDtoInner");
19
+ var WithSettingsInner_1 = require("./WithSettingsInner");
20
+ /**
21
+ * Check if a given object implements the IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
22
+ */
23
+ function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto(value) {
24
+ var isInstance = true;
25
+ isInstance = isInstance && "id" in value;
26
+ isInstance = isInstance && "identifier" in value;
27
+ isInstance = isInstance && "financial" in value;
28
+ isInstance = isInstance && "settings" in value;
29
+ isInstance = isInstance && "addresses" in value;
30
+ return isInstance;
31
+ }
32
+ exports.instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto = instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
33
+ function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(json) {
34
+ return IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json, false);
35
+ }
36
+ exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON;
37
+ function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json, ignoreDiscriminator) {
38
+ if ((json === undefined) || (json === null)) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'],
43
+ 'identifier': json['identifier'],
44
+ 'financial': (0, WithFinancialDtoInner_1.WithFinancialDtoInnerFromJSON)(json['financial']),
45
+ 'settings': (0, WithSettingsInner_1.WithSettingsInnerFromJSON)(json['settings']),
46
+ 'addresses': (json['addresses'].map(AccountAddressDto_1.AccountAddressDtoFromJSON)),
47
+ };
48
+ }
49
+ exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped;
50
+ function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON(value) {
51
+ if (value === undefined) {
52
+ return undefined;
53
+ }
54
+ if (value === null) {
55
+ return null;
56
+ }
57
+ return {
58
+ 'id': value.id,
59
+ 'identifier': value.identifier,
60
+ 'financial': (0, WithFinancialDtoInner_1.WithFinancialDtoInnerToJSON)(value.financial),
61
+ 'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value.settings),
62
+ 'addresses': (value.addresses.map(AccountAddressDto_1.AccountAddressDtoToJSON)),
63
+ };
64
+ }
65
+ exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON;
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { IntersectionAccountDtoWithSettingsDtoSettings } from './IntersectionAccountDtoWithSettingsDtoSettings';
12
+ import type { WithSettingsInner } from './WithSettingsInner';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -30,10 +30,10 @@ export interface IntersectionAccountDtoWithSettingsDto {
30
30
  identifier: string;
31
31
  /**
32
32
  *
33
- * @type {IntersectionAccountDtoWithSettingsDtoSettings}
33
+ * @type {WithSettingsInner}
34
34
  * @memberof IntersectionAccountDtoWithSettingsDto
35
35
  */
36
- settings: IntersectionAccountDtoWithSettingsDtoSettings;
36
+ settings: WithSettingsInner;
37
37
  }
38
38
  /**
39
39
  * Check if a given object implements the IntersectionAccountDtoWithSettingsDto interface.
@@ -14,7 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.IntersectionAccountDtoWithSettingsDtoToJSON = exports.IntersectionAccountDtoWithSettingsDtoFromJSONTyped = exports.IntersectionAccountDtoWithSettingsDtoFromJSON = exports.instanceOfIntersectionAccountDtoWithSettingsDto = void 0;
17
- var IntersectionAccountDtoWithSettingsDtoSettings_1 = require("./IntersectionAccountDtoWithSettingsDtoSettings");
17
+ var WithSettingsInner_1 = require("./WithSettingsInner");
18
18
  /**
19
19
  * Check if a given object implements the IntersectionAccountDtoWithSettingsDto interface.
20
20
  */
@@ -37,7 +37,7 @@ function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json, ignoreDiscrimi
37
37
  return {
38
38
  'id': json['id'],
39
39
  'identifier': json['identifier'],
40
- 'settings': (0, IntersectionAccountDtoWithSettingsDtoSettings_1.IntersectionAccountDtoWithSettingsDtoSettingsFromJSON)(json['settings']),
40
+ 'settings': (0, WithSettingsInner_1.WithSettingsInnerFromJSON)(json['settings']),
41
41
  };
42
42
  }
43
43
  exports.IntersectionAccountDtoWithSettingsDtoFromJSONTyped = IntersectionAccountDtoWithSettingsDtoFromJSONTyped;
@@ -51,7 +51,7 @@ function IntersectionAccountDtoWithSettingsDtoToJSON(value) {
51
51
  return {
52
52
  'id': value.id,
53
53
  'identifier': value.identifier,
54
- 'settings': (0, IntersectionAccountDtoWithSettingsDtoSettings_1.IntersectionAccountDtoWithSettingsDtoSettingsToJSON)(value.settings),
54
+ 'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value.settings),
55
55
  };
56
56
  }
57
57
  exports.IntersectionAccountDtoWithSettingsDtoToJSON = IntersectionAccountDtoWithSettingsDtoToJSON;
@@ -0,0 +1,49 @@
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 WithFinancialDtoInner
16
+ */
17
+ export interface WithFinancialDtoInner {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof WithFinancialDtoInner
22
+ */
23
+ company: boolean;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof WithFinancialDtoInner
28
+ */
29
+ companyName: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof WithFinancialDtoInner
34
+ */
35
+ companyVatNumber: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof WithFinancialDtoInner
40
+ */
41
+ companyRegistrationNumber: string | null;
42
+ }
43
+ /**
44
+ * Check if a given object implements the WithFinancialDtoInner interface.
45
+ */
46
+ export declare function instanceOfWithFinancialDtoInner(value: object): boolean;
47
+ export declare function WithFinancialDtoInnerFromJSON(json: any): WithFinancialDtoInner;
48
+ export declare function WithFinancialDtoInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithFinancialDtoInner;
49
+ export declare function WithFinancialDtoInnerToJSON(value?: WithFinancialDtoInner | null): any;
@@ -0,0 +1,59 @@
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.WithFinancialDtoInnerToJSON = exports.WithFinancialDtoInnerFromJSONTyped = exports.WithFinancialDtoInnerFromJSON = exports.instanceOfWithFinancialDtoInner = void 0;
17
+ /**
18
+ * Check if a given object implements the WithFinancialDtoInner interface.
19
+ */
20
+ function instanceOfWithFinancialDtoInner(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "company" in value;
23
+ isInstance = isInstance && "companyName" in value;
24
+ isInstance = isInstance && "companyVatNumber" in value;
25
+ isInstance = isInstance && "companyRegistrationNumber" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfWithFinancialDtoInner = instanceOfWithFinancialDtoInner;
29
+ function WithFinancialDtoInnerFromJSON(json) {
30
+ return WithFinancialDtoInnerFromJSONTyped(json, false);
31
+ }
32
+ exports.WithFinancialDtoInnerFromJSON = WithFinancialDtoInnerFromJSON;
33
+ function WithFinancialDtoInnerFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'company': json['company'],
39
+ 'companyName': json['companyName'],
40
+ 'companyVatNumber': json['companyVatNumber'],
41
+ 'companyRegistrationNumber': json['companyRegistrationNumber'],
42
+ };
43
+ }
44
+ exports.WithFinancialDtoInnerFromJSONTyped = WithFinancialDtoInnerFromJSONTyped;
45
+ function WithFinancialDtoInnerToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'company': value.company,
54
+ 'companyName': value.companyName,
55
+ 'companyVatNumber': value.companyVatNumber,
56
+ 'companyRegistrationNumber': value.companyRegistrationNumber,
57
+ };
58
+ }
59
+ exports.WithFinancialDtoInnerToJSON = WithFinancialDtoInnerToJSON;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WithSettingsInner
17
+ */
18
+ export interface WithSettingsInner {
19
+ /**
20
+ *
21
+ * @type {MoneyDto}
22
+ * @memberof WithSettingsInner
23
+ */
24
+ defaultStartingOffer: MoneyDto;
25
+ }
26
+ /**
27
+ * Check if a given object implements the WithSettingsInner interface.
28
+ */
29
+ export declare function instanceOfWithSettingsInner(value: object): boolean;
30
+ export declare function WithSettingsInnerFromJSON(json: any): WithSettingsInner;
31
+ export declare function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithSettingsInner;
32
+ export declare function WithSettingsInnerToJSON(value?: WithSettingsInner | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.WithSettingsInnerToJSON = exports.WithSettingsInnerFromJSONTyped = exports.WithSettingsInnerFromJSON = exports.instanceOfWithSettingsInner = void 0;
17
+ var MoneyDto_1 = require("./MoneyDto");
18
+ /**
19
+ * Check if a given object implements the WithSettingsInner interface.
20
+ */
21
+ function instanceOfWithSettingsInner(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "defaultStartingOffer" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfWithSettingsInner = instanceOfWithSettingsInner;
27
+ function WithSettingsInnerFromJSON(json) {
28
+ return WithSettingsInnerFromJSONTyped(json, false);
29
+ }
30
+ exports.WithSettingsInnerFromJSON = WithSettingsInnerFromJSON;
31
+ function WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
37
+ };
38
+ }
39
+ exports.WithSettingsInnerFromJSONTyped = WithSettingsInnerFromJSONTyped;
40
+ function WithSettingsInnerToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value.defaultStartingOffer),
49
+ };
50
+ }
51
+ exports.WithSettingsInnerToJSON = WithSettingsInnerToJSON;
@@ -1,6 +1,5 @@
1
1
  export * from './AccountAddressDto';
2
2
  export * from './AccountAddressInput';
3
- export * from './AccountDto';
4
3
  export * from './AccountFinancialInput';
5
4
  export * from './AccountSettingsInput';
6
5
  export * from './BatchUpdate404Response';
@@ -11,9 +10,8 @@ export * from './DomainDto';
11
10
  export * from './ImportDomainsDto';
12
11
  export * from './IntersectionAccountDtoWithAddressDto';
13
12
  export * from './IntersectionAccountDtoWithFinancialDto';
14
- export * from './IntersectionAccountDtoWithFinancialDtoFinancial';
13
+ export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
15
14
  export * from './IntersectionAccountDtoWithSettingsDto';
16
- export * from './IntersectionAccountDtoWithSettingsDtoSettings';
17
15
  export * from './LeadDto';
18
16
  export * from './List200Response';
19
17
  export * from './List400Response';
@@ -31,3 +29,5 @@ export * from './TokenDto';
31
29
  export * from './UpdateDomainInput';
32
30
  export * from './UpdateSettings401Response';
33
31
  export * from './UpdateSettings429Response';
32
+ export * from './WithFinancialDtoInner';
33
+ export * from './WithSettingsInner';
@@ -18,7 +18,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AccountAddressDto"), exports);
20
20
  __exportStar(require("./AccountAddressInput"), exports);
21
- __exportStar(require("./AccountDto"), exports);
22
21
  __exportStar(require("./AccountFinancialInput"), exports);
23
22
  __exportStar(require("./AccountSettingsInput"), exports);
24
23
  __exportStar(require("./BatchUpdate404Response"), exports);
@@ -29,9 +28,8 @@ __exportStar(require("./DomainDto"), exports);
29
28
  __exportStar(require("./ImportDomainsDto"), exports);
30
29
  __exportStar(require("./IntersectionAccountDtoWithAddressDto"), exports);
31
30
  __exportStar(require("./IntersectionAccountDtoWithFinancialDto"), exports);
32
- __exportStar(require("./IntersectionAccountDtoWithFinancialDtoFinancial"), exports);
31
+ __exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
33
32
  __exportStar(require("./IntersectionAccountDtoWithSettingsDto"), exports);
34
- __exportStar(require("./IntersectionAccountDtoWithSettingsDtoSettings"), exports);
35
33
  __exportStar(require("./LeadDto"), exports);
36
34
  __exportStar(require("./List200Response"), exports);
37
35
  __exportStar(require("./List400Response"), exports);
@@ -49,3 +47,5 @@ __exportStar(require("./TokenDto"), exports);
49
47
  __exportStar(require("./UpdateDomainInput"), exports);
50
48
  __exportStar(require("./UpdateSettings401Response"), exports);
51
49
  __exportStar(require("./UpdateSettings429Response"), exports);
50
+ __exportStar(require("./WithFinancialDtoInner"), exports);
51
+ __exportStar(require("./WithSettingsInner"), exports);
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
9
+ },
6
10
  "main": "./dist/index.js",
7
11
  "typings": "./dist/index.d.ts",
8
12
  "scripts": {
@@ -16,11 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  AccountAddressInput,
19
- AccountDto,
20
19
  AccountFinancialInput,
21
20
  AccountSettingsInput,
22
21
  IntersectionAccountDtoWithAddressDto,
23
22
  IntersectionAccountDtoWithFinancialDto,
23
+ IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto,
24
24
  IntersectionAccountDtoWithSettingsDto,
25
25
  UpdateSettings401Response,
26
26
  UpdateSettings429Response,
@@ -28,8 +28,6 @@ import type {
28
28
  import {
29
29
  AccountAddressInputFromJSON,
30
30
  AccountAddressInputToJSON,
31
- AccountDtoFromJSON,
32
- AccountDtoToJSON,
33
31
  AccountFinancialInputFromJSON,
34
32
  AccountFinancialInputToJSON,
35
33
  AccountSettingsInputFromJSON,
@@ -38,6 +36,8 @@ import {
38
36
  IntersectionAccountDtoWithAddressDtoToJSON,
39
37
  IntersectionAccountDtoWithFinancialDtoFromJSON,
40
38
  IntersectionAccountDtoWithFinancialDtoToJSON,
39
+ IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON,
40
+ IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON,
41
41
  IntersectionAccountDtoWithSettingsDtoFromJSON,
42
42
  IntersectionAccountDtoWithSettingsDtoToJSON,
43
43
  UpdateSettings401ResponseFromJSON,
@@ -69,7 +69,7 @@ export class AccountsApi extends runtime.BaseAPI {
69
69
  /**
70
70
  *
71
71
  */
72
- async meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountDto>> {
72
+ async meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>> {
73
73
  const queryParameters: any = {};
74
74
 
75
75
  const headerParameters: runtime.HTTPHeaders = {};
@@ -89,13 +89,13 @@ export class AccountsApi extends runtime.BaseAPI {
89
89
  query: queryParameters,
90
90
  }, initOverrides);
91
91
 
92
- return new runtime.JSONApiResponse(response, (jsonValue) => AccountDtoFromJSON(jsonValue));
92
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(jsonValue));
93
93
  }
94
94
 
95
95
  /**
96
96
  *
97
97
  */
98
- async me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountDto> {
98
+ async me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto> {
99
99
  const response = await this.meRaw(initOverrides);
100
100
  return await response.value();
101
101
  }
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { IntersectionAccountDtoWithFinancialDtoFinancial } from './IntersectionAccountDtoWithFinancialDtoFinancial';
16
+ import type { WithFinancialDtoInner } from './WithFinancialDtoInner';
17
17
  import {
18
- IntersectionAccountDtoWithFinancialDtoFinancialFromJSON,
19
- IntersectionAccountDtoWithFinancialDtoFinancialFromJSONTyped,
20
- IntersectionAccountDtoWithFinancialDtoFinancialToJSON,
21
- } from './IntersectionAccountDtoWithFinancialDtoFinancial';
18
+ WithFinancialDtoInnerFromJSON,
19
+ WithFinancialDtoInnerFromJSONTyped,
20
+ WithFinancialDtoInnerToJSON,
21
+ } from './WithFinancialDtoInner';
22
22
 
23
23
  /**
24
24
  *
@@ -40,10 +40,10 @@ export interface IntersectionAccountDtoWithFinancialDto {
40
40
  identifier: string;
41
41
  /**
42
42
  *
43
- * @type {IntersectionAccountDtoWithFinancialDtoFinancial}
43
+ * @type {WithFinancialDtoInner}
44
44
  * @memberof IntersectionAccountDtoWithFinancialDto
45
45
  */
46
- financial: IntersectionAccountDtoWithFinancialDtoFinancial;
46
+ financial: WithFinancialDtoInner;
47
47
  }
48
48
 
49
49
  /**
@@ -70,7 +70,7 @@ export function IntersectionAccountDtoWithFinancialDtoFromJSONTyped(json: any, i
70
70
 
71
71
  'id': json['id'],
72
72
  'identifier': json['identifier'],
73
- 'financial': IntersectionAccountDtoWithFinancialDtoFinancialFromJSON(json['financial']),
73
+ 'financial': WithFinancialDtoInnerFromJSON(json['financial']),
74
74
  };
75
75
  }
76
76
 
@@ -85,7 +85,7 @@ export function IntersectionAccountDtoWithFinancialDtoToJSON(value?: Intersectio
85
85
 
86
86
  'id': value.id,
87
87
  'identifier': value.identifier,
88
- 'financial': IntersectionAccountDtoWithFinancialDtoFinancialToJSON(value.financial),
88
+ 'financial': WithFinancialDtoInnerToJSON(value.financial),
89
89
  };
90
90
  }
91
91
 
@@ -30,19 +30,19 @@ export interface IntersectionAccountDtoWithFinancialDtoFinancial {
30
30
  * @type {string}
31
31
  * @memberof IntersectionAccountDtoWithFinancialDtoFinancial
32
32
  */
33
- companyName?: string;
33
+ companyName?: string | null;
34
34
  /**
35
35
  *
36
36
  * @type {string}
37
37
  * @memberof IntersectionAccountDtoWithFinancialDtoFinancial
38
38
  */
39
- companyVatNumber?: string;
39
+ companyVatNumber?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
43
  * @memberof IntersectionAccountDtoWithFinancialDtoFinancial
44
44
  */
45
- companyRegistrationNumber?: string;
45
+ companyRegistrationNumber?: string | null;
46
46
  }
47
47
 
48
48
  /**
@@ -0,0 +1,121 @@
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 { exists, mapValues } from '../runtime';
16
+ import type { AccountAddressDto } from './AccountAddressDto';
17
+ import {
18
+ AccountAddressDtoFromJSON,
19
+ AccountAddressDtoFromJSONTyped,
20
+ AccountAddressDtoToJSON,
21
+ } from './AccountAddressDto';
22
+ import type { WithFinancialDtoInner } from './WithFinancialDtoInner';
23
+ import {
24
+ WithFinancialDtoInnerFromJSON,
25
+ WithFinancialDtoInnerFromJSONTyped,
26
+ WithFinancialDtoInnerToJSON,
27
+ } from './WithFinancialDtoInner';
28
+ import type { WithSettingsInner } from './WithSettingsInner';
29
+ import {
30
+ WithSettingsInnerFromJSON,
31
+ WithSettingsInnerFromJSONTyped,
32
+ WithSettingsInnerToJSON,
33
+ } from './WithSettingsInner';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
39
+ */
40
+ export interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto {
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
45
+ */
46
+ id: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
51
+ */
52
+ identifier: string;
53
+ /**
54
+ *
55
+ * @type {WithFinancialDtoInner}
56
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
57
+ */
58
+ financial: WithFinancialDtoInner;
59
+ /**
60
+ *
61
+ * @type {WithSettingsInner}
62
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
63
+ */
64
+ settings: WithSettingsInner;
65
+ /**
66
+ *
67
+ * @type {Array<AccountAddressDto>}
68
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
69
+ */
70
+ addresses: Array<AccountAddressDto>;
71
+ }
72
+
73
+ /**
74
+ * Check if a given object implements the IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
75
+ */
76
+ export function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto(value: object): boolean {
77
+ let isInstance = true;
78
+ isInstance = isInstance && "id" in value;
79
+ isInstance = isInstance && "identifier" in value;
80
+ isInstance = isInstance && "financial" in value;
81
+ isInstance = isInstance && "settings" in value;
82
+ isInstance = isInstance && "addresses" in value;
83
+
84
+ return isInstance;
85
+ }
86
+
87
+ export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(json: any): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto {
88
+ return IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json, false);
89
+ }
90
+
91
+ export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto {
92
+ if ((json === undefined) || (json === null)) {
93
+ return json;
94
+ }
95
+ return {
96
+
97
+ 'id': json['id'],
98
+ 'identifier': json['identifier'],
99
+ 'financial': WithFinancialDtoInnerFromJSON(json['financial']),
100
+ 'settings': WithSettingsInnerFromJSON(json['settings']),
101
+ 'addresses': ((json['addresses'] as Array<any>).map(AccountAddressDtoFromJSON)),
102
+ };
103
+ }
104
+
105
+ export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON(value?: IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto | null): any {
106
+ if (value === undefined) {
107
+ return undefined;
108
+ }
109
+ if (value === null) {
110
+ return null;
111
+ }
112
+ return {
113
+
114
+ 'id': value.id,
115
+ 'identifier': value.identifier,
116
+ 'financial': WithFinancialDtoInnerToJSON(value.financial),
117
+ 'settings': WithSettingsInnerToJSON(value.settings),
118
+ 'addresses': ((value.addresses as Array<any>).map(AccountAddressDtoToJSON)),
119
+ };
120
+ }
121
+
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { IntersectionAccountDtoWithSettingsDtoSettings } from './IntersectionAccountDtoWithSettingsDtoSettings';
16
+ import type { WithSettingsInner } from './WithSettingsInner';
17
17
  import {
18
- IntersectionAccountDtoWithSettingsDtoSettingsFromJSON,
19
- IntersectionAccountDtoWithSettingsDtoSettingsFromJSONTyped,
20
- IntersectionAccountDtoWithSettingsDtoSettingsToJSON,
21
- } from './IntersectionAccountDtoWithSettingsDtoSettings';
18
+ WithSettingsInnerFromJSON,
19
+ WithSettingsInnerFromJSONTyped,
20
+ WithSettingsInnerToJSON,
21
+ } from './WithSettingsInner';
22
22
 
23
23
  /**
24
24
  *
@@ -40,10 +40,10 @@ export interface IntersectionAccountDtoWithSettingsDto {
40
40
  identifier: string;
41
41
  /**
42
42
  *
43
- * @type {IntersectionAccountDtoWithSettingsDtoSettings}
43
+ * @type {WithSettingsInner}
44
44
  * @memberof IntersectionAccountDtoWithSettingsDto
45
45
  */
46
- settings: IntersectionAccountDtoWithSettingsDtoSettings;
46
+ settings: WithSettingsInner;
47
47
  }
48
48
 
49
49
  /**
@@ -70,7 +70,7 @@ export function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json: any, ig
70
70
 
71
71
  'id': json['id'],
72
72
  'identifier': json['identifier'],
73
- 'settings': IntersectionAccountDtoWithSettingsDtoSettingsFromJSON(json['settings']),
73
+ 'settings': WithSettingsInnerFromJSON(json['settings']),
74
74
  };
75
75
  }
76
76
 
@@ -85,7 +85,7 @@ export function IntersectionAccountDtoWithSettingsDtoToJSON(value?: Intersection
85
85
 
86
86
  'id': value.id,
87
87
  'identifier': value.identifier,
88
- 'settings': IntersectionAccountDtoWithSettingsDtoSettingsToJSON(value.settings),
88
+ 'settings': WithSettingsInnerToJSON(value.settings),
89
89
  };
90
90
  }
91
91
 
@@ -0,0 +1,93 @@
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface WithFinancialDtoInner
20
+ */
21
+ export interface WithFinancialDtoInner {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof WithFinancialDtoInner
26
+ */
27
+ company: boolean;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof WithFinancialDtoInner
32
+ */
33
+ companyName: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof WithFinancialDtoInner
38
+ */
39
+ companyVatNumber: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof WithFinancialDtoInner
44
+ */
45
+ companyRegistrationNumber: string | null;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the WithFinancialDtoInner interface.
50
+ */
51
+ export function instanceOfWithFinancialDtoInner(value: object): boolean {
52
+ let isInstance = true;
53
+ isInstance = isInstance && "company" in value;
54
+ isInstance = isInstance && "companyName" in value;
55
+ isInstance = isInstance && "companyVatNumber" in value;
56
+ isInstance = isInstance && "companyRegistrationNumber" in value;
57
+
58
+ return isInstance;
59
+ }
60
+
61
+ export function WithFinancialDtoInnerFromJSON(json: any): WithFinancialDtoInner {
62
+ return WithFinancialDtoInnerFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function WithFinancialDtoInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithFinancialDtoInner {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'company': json['company'],
72
+ 'companyName': json['companyName'],
73
+ 'companyVatNumber': json['companyVatNumber'],
74
+ 'companyRegistrationNumber': json['companyRegistrationNumber'],
75
+ };
76
+ }
77
+
78
+ export function WithFinancialDtoInnerToJSON(value?: WithFinancialDtoInner | null): any {
79
+ if (value === undefined) {
80
+ return undefined;
81
+ }
82
+ if (value === null) {
83
+ return null;
84
+ }
85
+ return {
86
+
87
+ 'company': value.company,
88
+ 'companyName': value.companyName,
89
+ 'companyVatNumber': value.companyVatNumber,
90
+ 'companyRegistrationNumber': value.companyRegistrationNumber,
91
+ };
92
+ }
93
+
@@ -0,0 +1,73 @@
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 { exists, mapValues } from '../runtime';
16
+ import type { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ } from './MoneyDto';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface WithSettingsInner
27
+ */
28
+ export interface WithSettingsInner {
29
+ /**
30
+ *
31
+ * @type {MoneyDto}
32
+ * @memberof WithSettingsInner
33
+ */
34
+ defaultStartingOffer: MoneyDto;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the WithSettingsInner interface.
39
+ */
40
+ export function instanceOfWithSettingsInner(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "defaultStartingOffer" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function WithSettingsInnerFromJSON(json: any): WithSettingsInner {
48
+ return WithSettingsInnerFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithSettingsInner {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'defaultStartingOffer': MoneyDtoFromJSON(json['defaultStartingOffer']),
58
+ };
59
+ }
60
+
61
+ export function WithSettingsInnerToJSON(value?: WithSettingsInner | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'defaultStartingOffer': MoneyDtoToJSON(value.defaultStartingOffer),
71
+ };
72
+ }
73
+
@@ -2,7 +2,6 @@
2
2
  /* eslint-disable */
3
3
  export * from './AccountAddressDto';
4
4
  export * from './AccountAddressInput';
5
- export * from './AccountDto';
6
5
  export * from './AccountFinancialInput';
7
6
  export * from './AccountSettingsInput';
8
7
  export * from './BatchUpdate404Response';
@@ -13,9 +12,8 @@ export * from './DomainDto';
13
12
  export * from './ImportDomainsDto';
14
13
  export * from './IntersectionAccountDtoWithAddressDto';
15
14
  export * from './IntersectionAccountDtoWithFinancialDto';
16
- export * from './IntersectionAccountDtoWithFinancialDtoFinancial';
15
+ export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
17
16
  export * from './IntersectionAccountDtoWithSettingsDto';
18
- export * from './IntersectionAccountDtoWithSettingsDtoSettings';
19
17
  export * from './LeadDto';
20
18
  export * from './List200Response';
21
19
  export * from './List400Response';
@@ -33,3 +31,5 @@ export * from './TokenDto';
33
31
  export * from './UpdateDomainInput';
34
32
  export * from './UpdateSettings401Response';
35
33
  export * from './UpdateSettings429Response';
34
+ export * from './WithFinancialDtoInner';
35
+ export * from './WithSettingsInner';