@randock/nameshift-api-client 0.0.92 → 0.0.94

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 (94) hide show
  1. package/.openapi-generator/FILES +8 -6
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +10 -11
  4. package/dist/apis/AccountsApi.js +27 -30
  5. package/dist/apis/OrdersPublicApi.d.ts +12 -1
  6. package/dist/apis/OrdersPublicApi.js +44 -0
  7. package/dist/apis/StripePublicApi.d.ts +28 -0
  8. package/dist/apis/StripePublicApi.js +124 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AccountDto.d.ts +7 -0
  12. package/dist/models/AccountDto.js +5 -0
  13. package/dist/models/AccountPaymentProviderSessionDto.d.ts +31 -0
  14. package/dist/models/AccountPaymentProviderSessionDto.js +46 -0
  15. package/dist/models/AddressDto.d.ts +61 -0
  16. package/dist/models/AddressDto.js +66 -0
  17. package/dist/models/CreateAccountPaymentProviderInput.d.ts +31 -0
  18. package/dist/models/CreateAccountPaymentProviderInput.js +46 -0
  19. package/dist/models/CreateLeadInput.d.ts +0 -6
  20. package/dist/models/CreateLeadInput.js +0 -4
  21. package/dist/models/CreateOrderInput.d.ts +0 -30
  22. package/dist/models/CreateOrderInput.js +0 -20
  23. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +69 -0
  24. package/dist/models/{IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js → IntersectionAccountDtoWithSettingsDto.js} +14 -19
  25. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +6 -0
  26. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +4 -0
  27. package/dist/models/OrderCheckoutSessionDto.d.ts +31 -0
  28. package/dist/models/OrderCheckoutSessionDto.js +46 -0
  29. package/dist/models/OrderDto.d.ts +12 -16
  30. package/dist/models/OrderDto.js +12 -14
  31. package/dist/models/OrderListItemDtoBuyerInformation.d.ts +4 -21
  32. package/dist/models/OrderListItemDtoBuyerInformation.js +3 -14
  33. package/dist/models/OrderTaxDto.d.ts +44 -0
  34. package/dist/models/OrderTaxDto.js +55 -0
  35. package/dist/models/PaymentProviderDto.d.ts +45 -0
  36. package/dist/models/PaymentProviderDto.js +58 -0
  37. package/dist/models/PublicLeadBuyerDto.d.ts +0 -6
  38. package/dist/models/PublicLeadBuyerDto.js +0 -4
  39. package/dist/models/UpdateLeadInput.d.ts +0 -6
  40. package/dist/models/UpdateLeadInput.js +0 -4
  41. package/dist/models/UpdateOrderInput.d.ts +0 -30
  42. package/dist/models/UpdateOrderInput.js +0 -20
  43. package/dist/models/index.d.ts +7 -6
  44. package/dist/models/index.js +7 -6
  45. package/package.json +1 -1
  46. package/src/apis/AccountsApi.ts +44 -54
  47. package/src/apis/AccountsPublicApi.ts +0 -3
  48. package/src/apis/AdminApi.ts +0 -3
  49. package/src/apis/BuyersApi.ts +0 -3
  50. package/src/apis/BuyersPublicApi.ts +0 -3
  51. package/src/apis/DashboardApi.ts +0 -3
  52. package/src/apis/DomainsApi.ts +0 -3
  53. package/src/apis/DomainsPublicApi.ts +0 -3
  54. package/src/apis/LeadsApi.ts +0 -3
  55. package/src/apis/LeadsPublicApi.ts +0 -3
  56. package/src/apis/OrdersPublicApi.ts +40 -3
  57. package/src/apis/StripePublicApi.ts +70 -0
  58. package/src/apis/UsersApi.ts +0 -3
  59. package/src/apis/UsersPublicApi.ts +0 -3
  60. package/src/apis/index.ts +1 -0
  61. package/src/models/AccountDto.ts +16 -0
  62. package/src/models/AccountPaymentProviderSessionDto.ts +61 -0
  63. package/src/models/AddressDto.ts +106 -0
  64. package/src/models/CreateAccountPaymentProviderInput.ts +61 -0
  65. package/src/models/CreateLeadInput.ts +0 -9
  66. package/src/models/CreateOrderInput.ts +0 -45
  67. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +128 -0
  68. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +9 -0
  69. package/src/models/OrderCheckoutSessionDto.ts +61 -0
  70. package/src/models/OrderDto.ts +30 -27
  71. package/src/models/OrderListItemDtoBuyerInformation.ts +12 -32
  72. package/src/models/OrderTaxDto.ts +86 -0
  73. package/src/models/PaymentProviderDto.ts +81 -0
  74. package/src/models/PublicLeadBuyerDto.ts +0 -9
  75. package/src/models/UpdateLeadInput.ts +0 -9
  76. package/src/models/UpdateOrderInput.ts +0 -45
  77. package/src/models/index.ts +7 -6
  78. package/dist/models/AccountAddressDto.d.ts +0 -68
  79. package/dist/models/AccountAddressDto.js +0 -71
  80. package/dist/models/AccountAddressInput.d.ts +0 -68
  81. package/dist/models/AccountAddressInput.js +0 -71
  82. package/dist/models/AccountFinancialInput.d.ts +0 -49
  83. package/dist/models/AccountFinancialInput.js +0 -58
  84. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +0 -76
  85. package/dist/models/ThrottlerException.d.ts +0 -43
  86. package/dist/models/ThrottlerException.js +0 -54
  87. package/dist/models/WithFinancialDtoInner.d.ts +0 -49
  88. package/dist/models/WithFinancialDtoInner.js +0 -58
  89. package/src/models/AccountAddressDto.ts +0 -115
  90. package/src/models/AccountAddressInput.ts +0 -115
  91. package/src/models/AccountFinancialInput.ts +0 -88
  92. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +0 -143
  93. package/src/models/ThrottlerException.ts +0 -79
  94. package/src/models/WithFinancialDtoInner.ts +0 -88
@@ -1,71 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Nameshift
6
- * Nameshift API
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AccountAddressInputTypeEnum = void 0;
17
- exports.instanceOfAccountAddressInput = instanceOfAccountAddressInput;
18
- exports.AccountAddressInputFromJSON = AccountAddressInputFromJSON;
19
- exports.AccountAddressInputFromJSONTyped = AccountAddressInputFromJSONTyped;
20
- exports.AccountAddressInputToJSON = AccountAddressInputToJSON;
21
- /**
22
- * @export
23
- */
24
- exports.AccountAddressInputTypeEnum = {
25
- BILLING: 'billing'
26
- };
27
- /**
28
- * Check if a given object implements the AccountAddressInput interface.
29
- */
30
- function instanceOfAccountAddressInput(value) {
31
- if (!('type' in value) || value['type'] === undefined)
32
- return false;
33
- if (!('address' in value) || value['address'] === undefined)
34
- return false;
35
- if (!('postalCode' in value) || value['postalCode'] === undefined)
36
- return false;
37
- if (!('city' in value) || value['city'] === undefined)
38
- return false;
39
- if (!('country' in value) || value['country'] === undefined)
40
- return false;
41
- return true;
42
- }
43
- function AccountAddressInputFromJSON(json) {
44
- return AccountAddressInputFromJSONTyped(json, false);
45
- }
46
- function AccountAddressInputFromJSONTyped(json, ignoreDiscriminator) {
47
- if (json == null) {
48
- return json;
49
- }
50
- return {
51
- 'type': json['type'],
52
- 'address': json['address'],
53
- 'postalCode': json['postalCode'],
54
- 'city': json['city'],
55
- 'state': json['state'] == null ? undefined : json['state'],
56
- 'country': json['country'],
57
- };
58
- }
59
- function AccountAddressInputToJSON(value) {
60
- if (value == null) {
61
- return value;
62
- }
63
- return {
64
- 'type': value['type'],
65
- 'address': value['address'],
66
- 'postalCode': value['postalCode'],
67
- 'city': value['city'],
68
- 'state': value['state'],
69
- 'country': value['country'],
70
- };
71
- }
@@ -1,49 +0,0 @@
1
- /**
2
- * Nameshift
3
- * Nameshift API
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface AccountFinancialInput
16
- */
17
- export interface AccountFinancialInput {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof AccountFinancialInput
22
- */
23
- companyName: string | null;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof AccountFinancialInput
28
- */
29
- companyVatNumber: string | null;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof AccountFinancialInput
34
- */
35
- companyRegistrationNumber: string | null;
36
- /**
37
- *
38
- * @type {boolean}
39
- * @memberof AccountFinancialInput
40
- */
41
- company: boolean;
42
- }
43
- /**
44
- * Check if a given object implements the AccountFinancialInput interface.
45
- */
46
- export declare function instanceOfAccountFinancialInput(value: object): value is AccountFinancialInput;
47
- export declare function AccountFinancialInputFromJSON(json: any): AccountFinancialInput;
48
- export declare function AccountFinancialInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountFinancialInput;
49
- export declare function AccountFinancialInputToJSON(value?: AccountFinancialInput | null): any;
@@ -1,58 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Nameshift
6
- * Nameshift API
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfAccountFinancialInput = instanceOfAccountFinancialInput;
17
- exports.AccountFinancialInputFromJSON = AccountFinancialInputFromJSON;
18
- exports.AccountFinancialInputFromJSONTyped = AccountFinancialInputFromJSONTyped;
19
- exports.AccountFinancialInputToJSON = AccountFinancialInputToJSON;
20
- /**
21
- * Check if a given object implements the AccountFinancialInput interface.
22
- */
23
- function instanceOfAccountFinancialInput(value) {
24
- if (!('companyName' in value) || value['companyName'] === undefined)
25
- return false;
26
- if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
27
- return false;
28
- if (!('companyRegistrationNumber' in value) || value['companyRegistrationNumber'] === undefined)
29
- return false;
30
- if (!('company' in value) || value['company'] === undefined)
31
- return false;
32
- return true;
33
- }
34
- function AccountFinancialInputFromJSON(json) {
35
- return AccountFinancialInputFromJSONTyped(json, false);
36
- }
37
- function AccountFinancialInputFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'companyName': json['companyName'],
43
- 'companyVatNumber': json['companyVatNumber'],
44
- 'companyRegistrationNumber': json['companyRegistrationNumber'],
45
- 'company': json['company'],
46
- };
47
- }
48
- function AccountFinancialInputToJSON(value) {
49
- if (value == null) {
50
- return value;
51
- }
52
- return {
53
- 'companyName': value['companyName'],
54
- 'companyVatNumber': value['companyVatNumber'],
55
- 'companyRegistrationNumber': value['companyRegistrationNumber'],
56
- 'company': value['company'],
57
- };
58
- }
@@ -1,76 +0,0 @@
1
- /**
2
- * Nameshift
3
- * Nameshift API
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { WithSettingsInner } from './WithSettingsInner';
13
- import type { WithFinancialDtoInner } from './WithFinancialDtoInner';
14
- import type { AccountAddressDto } from './AccountAddressDto';
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 {string}
36
- * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
37
- */
38
- name: string;
39
- /**
40
- *
41
- * @type {number}
42
- * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
43
- */
44
- activeDomainTransfersNumber: number;
45
- /**
46
- *
47
- * @type {number}
48
- * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
49
- */
50
- activeLeadsNumber: number;
51
- /**
52
- *
53
- * @type {WithFinancialDtoInner}
54
- * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
55
- */
56
- financial: WithFinancialDtoInner;
57
- /**
58
- *
59
- * @type {WithSettingsInner}
60
- * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
61
- */
62
- settings: WithSettingsInner;
63
- /**
64
- *
65
- * @type {Array<AccountAddressDto>}
66
- * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
67
- */
68
- addresses: Array<AccountAddressDto>;
69
- }
70
- /**
71
- * Check if a given object implements the IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
72
- */
73
- export declare function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto(value: object): value is IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
74
- export declare function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(json: any): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
75
- export declare function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
76
- export declare function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON(value?: IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto | null): any;
@@ -1,43 +0,0 @@
1
- /**
2
- * Nameshift
3
- * Nameshift API
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface ThrottlerException
16
- */
17
- export interface ThrottlerException {
18
- /**
19
- * Exception name
20
- * @type {string}
21
- * @memberof ThrottlerException
22
- */
23
- name: string;
24
- /**
25
- * http status code
26
- * @type {number}
27
- * @memberof ThrottlerException
28
- */
29
- statusCode: number;
30
- /**
31
- * error message
32
- * @type {string}
33
- * @memberof ThrottlerException
34
- */
35
- message: string;
36
- }
37
- /**
38
- * Check if a given object implements the ThrottlerException interface.
39
- */
40
- export declare function instanceOfThrottlerException(value: object): value is ThrottlerException;
41
- export declare function ThrottlerExceptionFromJSON(json: any): ThrottlerException;
42
- export declare function ThrottlerExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThrottlerException;
43
- export declare function ThrottlerExceptionToJSON(value?: ThrottlerException | null): any;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Nameshift
6
- * Nameshift API
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfThrottlerException = instanceOfThrottlerException;
17
- exports.ThrottlerExceptionFromJSON = ThrottlerExceptionFromJSON;
18
- exports.ThrottlerExceptionFromJSONTyped = ThrottlerExceptionFromJSONTyped;
19
- exports.ThrottlerExceptionToJSON = ThrottlerExceptionToJSON;
20
- /**
21
- * Check if a given object implements the ThrottlerException interface.
22
- */
23
- function instanceOfThrottlerException(value) {
24
- if (!('name' in value) || value['name'] === undefined)
25
- return false;
26
- if (!('statusCode' in value) || value['statusCode'] === undefined)
27
- return false;
28
- if (!('message' in value) || value['message'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- function ThrottlerExceptionFromJSON(json) {
33
- return ThrottlerExceptionFromJSONTyped(json, false);
34
- }
35
- function ThrottlerExceptionFromJSONTyped(json, ignoreDiscriminator) {
36
- if (json == null) {
37
- return json;
38
- }
39
- return {
40
- 'name': json['name'],
41
- 'statusCode': json['statusCode'],
42
- 'message': json['message'],
43
- };
44
- }
45
- function ThrottlerExceptionToJSON(value) {
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'name': value['name'],
51
- 'statusCode': value['statusCode'],
52
- 'message': value['message'],
53
- };
54
- }
@@ -1,49 +0,0 @@
1
- /**
2
- * Nameshift
3
- * Nameshift API
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface 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): value is WithFinancialDtoInner;
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;
@@ -1,58 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Nameshift
6
- * Nameshift API
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfWithFinancialDtoInner = instanceOfWithFinancialDtoInner;
17
- exports.WithFinancialDtoInnerFromJSON = WithFinancialDtoInnerFromJSON;
18
- exports.WithFinancialDtoInnerFromJSONTyped = WithFinancialDtoInnerFromJSONTyped;
19
- exports.WithFinancialDtoInnerToJSON = WithFinancialDtoInnerToJSON;
20
- /**
21
- * Check if a given object implements the WithFinancialDtoInner interface.
22
- */
23
- function instanceOfWithFinancialDtoInner(value) {
24
- if (!('company' in value) || value['company'] === undefined)
25
- return false;
26
- if (!('companyName' in value) || value['companyName'] === undefined)
27
- return false;
28
- if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
29
- return false;
30
- if (!('companyRegistrationNumber' in value) || value['companyRegistrationNumber'] === undefined)
31
- return false;
32
- return true;
33
- }
34
- function WithFinancialDtoInnerFromJSON(json) {
35
- return WithFinancialDtoInnerFromJSONTyped(json, false);
36
- }
37
- function WithFinancialDtoInnerFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'company': json['company'],
43
- 'companyName': json['companyName'],
44
- 'companyVatNumber': json['companyVatNumber'],
45
- 'companyRegistrationNumber': json['companyRegistrationNumber'],
46
- };
47
- }
48
- function WithFinancialDtoInnerToJSON(value) {
49
- if (value == null) {
50
- return value;
51
- }
52
- return {
53
- 'company': value['company'],
54
- 'companyName': value['companyName'],
55
- 'companyVatNumber': value['companyVatNumber'],
56
- 'companyRegistrationNumber': value['companyRegistrationNumber'],
57
- };
58
- }
@@ -1,115 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Nameshift
5
- * Nameshift API
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface AccountAddressDto
20
- */
21
- export interface AccountAddressDto {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof AccountAddressDto
26
- */
27
- type: AccountAddressDtoTypeEnum;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof AccountAddressDto
32
- */
33
- address: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof AccountAddressDto
38
- */
39
- postalCode: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof AccountAddressDto
44
- */
45
- city: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof AccountAddressDto
50
- */
51
- state?: string;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof AccountAddressDto
56
- */
57
- country: string;
58
- }
59
-
60
-
61
- /**
62
- * @export
63
- */
64
- export const AccountAddressDtoTypeEnum = {
65
- BILLING: 'billing'
66
- } as const;
67
- export type AccountAddressDtoTypeEnum = typeof AccountAddressDtoTypeEnum[keyof typeof AccountAddressDtoTypeEnum];
68
-
69
-
70
- /**
71
- * Check if a given object implements the AccountAddressDto interface.
72
- */
73
- export function instanceOfAccountAddressDto(value: object): value is AccountAddressDto {
74
- if (!('type' in value) || value['type'] === undefined) return false;
75
- if (!('address' in value) || value['address'] === undefined) return false;
76
- if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
77
- if (!('city' in value) || value['city'] === undefined) return false;
78
- if (!('country' in value) || value['country'] === undefined) return false;
79
- return true;
80
- }
81
-
82
- export function AccountAddressDtoFromJSON(json: any): AccountAddressDto {
83
- return AccountAddressDtoFromJSONTyped(json, false);
84
- }
85
-
86
- export function AccountAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAddressDto {
87
- if (json == null) {
88
- return json;
89
- }
90
- return {
91
-
92
- 'type': json['type'],
93
- 'address': json['address'],
94
- 'postalCode': json['postalCode'],
95
- 'city': json['city'],
96
- 'state': json['state'] == null ? undefined : json['state'],
97
- 'country': json['country'],
98
- };
99
- }
100
-
101
- export function AccountAddressDtoToJSON(value?: AccountAddressDto | null): any {
102
- if (value == null) {
103
- return value;
104
- }
105
- return {
106
-
107
- 'type': value['type'],
108
- 'address': value['address'],
109
- 'postalCode': value['postalCode'],
110
- 'city': value['city'],
111
- 'state': value['state'],
112
- 'country': value['country'],
113
- };
114
- }
115
-
@@ -1,115 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Nameshift
5
- * Nameshift API
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface AccountAddressInput
20
- */
21
- export interface AccountAddressInput {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof AccountAddressInput
26
- */
27
- type: AccountAddressInputTypeEnum;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof AccountAddressInput
32
- */
33
- address: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof AccountAddressInput
38
- */
39
- postalCode: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof AccountAddressInput
44
- */
45
- city: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof AccountAddressInput
50
- */
51
- state?: string;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof AccountAddressInput
56
- */
57
- country: string;
58
- }
59
-
60
-
61
- /**
62
- * @export
63
- */
64
- export const AccountAddressInputTypeEnum = {
65
- BILLING: 'billing'
66
- } as const;
67
- export type AccountAddressInputTypeEnum = typeof AccountAddressInputTypeEnum[keyof typeof AccountAddressInputTypeEnum];
68
-
69
-
70
- /**
71
- * Check if a given object implements the AccountAddressInput interface.
72
- */
73
- export function instanceOfAccountAddressInput(value: object): value is AccountAddressInput {
74
- if (!('type' in value) || value['type'] === undefined) return false;
75
- if (!('address' in value) || value['address'] === undefined) return false;
76
- if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
77
- if (!('city' in value) || value['city'] === undefined) return false;
78
- if (!('country' in value) || value['country'] === undefined) return false;
79
- return true;
80
- }
81
-
82
- export function AccountAddressInputFromJSON(json: any): AccountAddressInput {
83
- return AccountAddressInputFromJSONTyped(json, false);
84
- }
85
-
86
- export function AccountAddressInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAddressInput {
87
- if (json == null) {
88
- return json;
89
- }
90
- return {
91
-
92
- 'type': json['type'],
93
- 'address': json['address'],
94
- 'postalCode': json['postalCode'],
95
- 'city': json['city'],
96
- 'state': json['state'] == null ? undefined : json['state'],
97
- 'country': json['country'],
98
- };
99
- }
100
-
101
- export function AccountAddressInputToJSON(value?: AccountAddressInput | null): any {
102
- if (value == null) {
103
- return value;
104
- }
105
- return {
106
-
107
- 'type': value['type'],
108
- 'address': value['address'],
109
- 'postalCode': value['postalCode'],
110
- 'city': value['city'],
111
- 'state': value['state'],
112
- 'country': value['country'],
113
- };
114
- }
115
-