@randock/nameshift-api-client 0.0.183 → 0.0.185

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 (114) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +9 -1
  4. package/dist/apis/AccountsApi.js +50 -0
  5. package/dist/apis/AdminApi.d.ts +27 -1
  6. package/dist/apis/AdminApi.js +119 -0
  7. package/dist/apis/DomainsApi.d.ts +3 -3
  8. package/dist/apis/DomainsApi.js +1 -1
  9. package/dist/apis/DomainsPublicApi.d.ts +1 -0
  10. package/dist/apis/DomainsPublicApi.js +3 -0
  11. package/dist/apis/SubscriptionsPublicApi.d.ts +52 -0
  12. package/dist/apis/SubscriptionsPublicApi.js +217 -0
  13. package/dist/apis/TasksApi.d.ts +3 -3
  14. package/dist/apis/TasksApi.js +1 -1
  15. package/dist/apis/index.d.ts +1 -0
  16. package/dist/apis/index.js +1 -0
  17. package/dist/models/AccountSettingsDto.d.ts +21 -0
  18. package/dist/models/AccountSettingsDto.js +15 -0
  19. package/dist/models/AccountSettingsInput.d.ts +7 -0
  20. package/dist/models/AccountSettingsInput.js +3 -0
  21. package/dist/models/AccountSettingsLandingDto.d.ts +38 -0
  22. package/dist/models/AccountSettingsLandingDto.js +55 -0
  23. package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.d.ts +51 -0
  24. package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.js +64 -0
  25. package/dist/models/AccountSettingsSidnDto.d.ts +32 -0
  26. package/dist/models/AccountSettingsSidnDto.js +51 -0
  27. package/dist/models/ChangeSubscriptionStatusInput.d.ts +42 -0
  28. package/dist/models/ChangeSubscriptionStatusInput.js +61 -0
  29. package/dist/models/CreateSubscriptionInput.d.ts +132 -0
  30. package/dist/models/CreateSubscriptionInput.js +102 -0
  31. package/dist/models/DomainDto.d.ts +7 -0
  32. package/dist/models/DomainDto.js +5 -0
  33. package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.d.ts +57 -0
  34. package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.js +68 -0
  35. package/dist/models/GetAllSubscriptions200Response.d.ts +47 -0
  36. package/dist/models/GetAllSubscriptions200Response.js +62 -0
  37. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
  38. package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
  39. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
  40. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
  41. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +7 -0
  42. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +5 -0
  43. package/dist/models/LeaseToOwnConfigurationDto.d.ts +51 -0
  44. package/dist/models/LeaseToOwnConfigurationDto.js +64 -0
  45. package/dist/models/LeaseToOwnConfigurationInput.d.ts +44 -0
  46. package/dist/models/LeaseToOwnConfigurationInput.js +53 -0
  47. package/dist/models/LeaseToOwnConfigurationPresetsDto.d.ts +44 -0
  48. package/dist/models/LeaseToOwnConfigurationPresetsDto.js +59 -0
  49. package/dist/models/List200Response1.d.ts +3 -3
  50. package/dist/models/List200Response1.js +3 -3
  51. package/dist/models/List200Response2.d.ts +3 -3
  52. package/dist/models/List200Response2.js +3 -3
  53. package/dist/models/SubscriptionCompanyInfoDto.d.ts +39 -0
  54. package/dist/models/SubscriptionCompanyInfoDto.js +56 -0
  55. package/dist/models/SubscriptionCompanyTaxIdDto.d.ts +44 -0
  56. package/dist/models/SubscriptionCompanyTaxIdDto.js +59 -0
  57. package/dist/models/SubscriptionDomainDto.d.ts +38 -0
  58. package/dist/models/SubscriptionDomainDto.js +55 -0
  59. package/dist/models/SubscriptionDto.d.ts +165 -0
  60. package/dist/models/SubscriptionDto.js +148 -0
  61. package/dist/models/SubscriptionListItemDto.d.ts +102 -0
  62. package/dist/models/SubscriptionListItemDto.js +104 -0
  63. package/dist/models/SubscriptionListItemDtoBuyerInformation.d.ts +64 -0
  64. package/dist/models/SubscriptionListItemDtoBuyerInformation.js +73 -0
  65. package/dist/models/SubscriptionListItemDtoDomainInformation.d.ts +44 -0
  66. package/dist/models/SubscriptionListItemDtoDomainInformation.js +59 -0
  67. package/dist/models/SubscriptionListItemDtoSellerAccount.d.ts +50 -0
  68. package/dist/models/SubscriptionListItemDtoSellerAccount.js +63 -0
  69. package/dist/models/UpdateDomainInput.d.ts +7 -0
  70. package/dist/models/UpdateDomainInput.js +3 -0
  71. package/dist/models/UpdateSubscriptionInput.d.ts +112 -0
  72. package/dist/models/UpdateSubscriptionInput.js +81 -0
  73. package/dist/models/WithSettingsInner.d.ts +7 -0
  74. package/dist/models/WithSettingsInner.js +5 -0
  75. package/dist/models/index.d.ts +19 -0
  76. package/dist/models/index.js +19 -0
  77. package/package.json +1 -1
  78. package/src/apis/AccountsApi.ts +37 -0
  79. package/src/apis/AdminApi.ts +118 -0
  80. package/src/apis/DomainsApi.ts +9 -6
  81. package/src/apis/DomainsPublicApi.ts +5 -0
  82. package/src/apis/SubscriptionsPublicApi.ts +175 -0
  83. package/src/apis/TasksApi.ts +6 -6
  84. package/src/apis/index.ts +1 -0
  85. package/src/models/AccountSettingsDto.ts +48 -0
  86. package/src/models/AccountSettingsInput.ts +15 -0
  87. package/src/models/AccountSettingsLandingDto.ts +75 -0
  88. package/src/models/AccountSettingsLeaseToOwnConfigurationDto.ts +101 -0
  89. package/src/models/AccountSettingsSidnDto.ts +66 -0
  90. package/src/models/ChangeSubscriptionStatusInput.ts +79 -0
  91. package/src/models/CreateSubscriptionInput.ts +209 -0
  92. package/src/models/DomainDto.ts +16 -0
  93. package/src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts +110 -0
  94. package/src/models/GetAllSubscriptions200Response.ts +106 -0
  95. package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
  96. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
  97. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +16 -0
  98. package/src/models/LeaseToOwnConfigurationDto.ts +101 -0
  99. package/src/models/LeaseToOwnConfigurationInput.ts +81 -0
  100. package/src/models/LeaseToOwnConfigurationPresetsDto.ts +84 -0
  101. package/src/models/List200Response1.ts +10 -10
  102. package/src/models/List200Response2.ts +10 -10
  103. package/src/models/SubscriptionCompanyInfoDto.ts +83 -0
  104. package/src/models/SubscriptionCompanyTaxIdDto.ts +84 -0
  105. package/src/models/SubscriptionDomainDto.ts +75 -0
  106. package/src/models/SubscriptionDto.ts +292 -0
  107. package/src/models/SubscriptionListItemDto.ts +189 -0
  108. package/src/models/SubscriptionListItemDtoBuyerInformation.ts +126 -0
  109. package/src/models/SubscriptionListItemDtoDomainInformation.ts +84 -0
  110. package/src/models/SubscriptionListItemDtoSellerAccount.ts +93 -0
  111. package/src/models/UpdateDomainInput.ts +15 -0
  112. package/src/models/UpdateSubscriptionInput.ts +179 -0
  113. package/src/models/WithSettingsInner.ts +16 -0
  114. package/src/models/index.ts +19 -0
@@ -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.instanceOfSubscriptionCompanyInfoDto = instanceOfSubscriptionCompanyInfoDto;
17
+ exports.SubscriptionCompanyInfoDtoFromJSON = SubscriptionCompanyInfoDtoFromJSON;
18
+ exports.SubscriptionCompanyInfoDtoFromJSONTyped = SubscriptionCompanyInfoDtoFromJSONTyped;
19
+ exports.SubscriptionCompanyInfoDtoToJSON = SubscriptionCompanyInfoDtoToJSON;
20
+ exports.SubscriptionCompanyInfoDtoToJSONTyped = SubscriptionCompanyInfoDtoToJSONTyped;
21
+ var SubscriptionCompanyTaxIdDto_1 = require("./SubscriptionCompanyTaxIdDto");
22
+ /**
23
+ * Check if a given object implements the SubscriptionCompanyInfoDto interface.
24
+ */
25
+ function instanceOfSubscriptionCompanyInfoDto(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('taxId' in value) || value['taxId'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function SubscriptionCompanyInfoDtoFromJSON(json) {
33
+ return SubscriptionCompanyInfoDtoFromJSONTyped(json, false);
34
+ }
35
+ function SubscriptionCompanyInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'name': json['name'],
41
+ 'taxId': (0, SubscriptionCompanyTaxIdDto_1.SubscriptionCompanyTaxIdDtoFromJSON)(json['taxId']),
42
+ };
43
+ }
44
+ function SubscriptionCompanyInfoDtoToJSON(json) {
45
+ return SubscriptionCompanyInfoDtoToJSONTyped(json, false);
46
+ }
47
+ function SubscriptionCompanyInfoDtoToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'name': value['name'],
54
+ 'taxId': (0, SubscriptionCompanyTaxIdDto_1.SubscriptionCompanyTaxIdDtoToJSON)(value['taxId']),
55
+ };
56
+ }
@@ -0,0 +1,44 @@
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 SubscriptionCompanyTaxIdDto
16
+ */
17
+ export interface SubscriptionCompanyTaxIdDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SubscriptionCompanyTaxIdDto
22
+ */
23
+ value: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SubscriptionCompanyTaxIdDto
28
+ */
29
+ type: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SubscriptionCompanyTaxIdDto
34
+ */
35
+ countryCode: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SubscriptionCompanyTaxIdDto interface.
39
+ */
40
+ export declare function instanceOfSubscriptionCompanyTaxIdDto(value: object): value is SubscriptionCompanyTaxIdDto;
41
+ export declare function SubscriptionCompanyTaxIdDtoFromJSON(json: any): SubscriptionCompanyTaxIdDto;
42
+ export declare function SubscriptionCompanyTaxIdDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionCompanyTaxIdDto;
43
+ export declare function SubscriptionCompanyTaxIdDtoToJSON(json: any): SubscriptionCompanyTaxIdDto;
44
+ export declare function SubscriptionCompanyTaxIdDtoToJSONTyped(value?: SubscriptionCompanyTaxIdDto | null, ignoreDiscriminator?: boolean): 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.instanceOfSubscriptionCompanyTaxIdDto = instanceOfSubscriptionCompanyTaxIdDto;
17
+ exports.SubscriptionCompanyTaxIdDtoFromJSON = SubscriptionCompanyTaxIdDtoFromJSON;
18
+ exports.SubscriptionCompanyTaxIdDtoFromJSONTyped = SubscriptionCompanyTaxIdDtoFromJSONTyped;
19
+ exports.SubscriptionCompanyTaxIdDtoToJSON = SubscriptionCompanyTaxIdDtoToJSON;
20
+ exports.SubscriptionCompanyTaxIdDtoToJSONTyped = SubscriptionCompanyTaxIdDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SubscriptionCompanyTaxIdDto interface.
23
+ */
24
+ function instanceOfSubscriptionCompanyTaxIdDto(value) {
25
+ if (!('value' in value) || value['value'] === undefined)
26
+ return false;
27
+ if (!('type' in value) || value['type'] === undefined)
28
+ return false;
29
+ if (!('countryCode' in value) || value['countryCode'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function SubscriptionCompanyTaxIdDtoFromJSON(json) {
34
+ return SubscriptionCompanyTaxIdDtoFromJSONTyped(json, false);
35
+ }
36
+ function SubscriptionCompanyTaxIdDtoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'value': json['value'],
42
+ 'type': json['type'],
43
+ 'countryCode': json['countryCode'],
44
+ };
45
+ }
46
+ function SubscriptionCompanyTaxIdDtoToJSON(json) {
47
+ return SubscriptionCompanyTaxIdDtoToJSONTyped(json, false);
48
+ }
49
+ function SubscriptionCompanyTaxIdDtoToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'value': value['value'],
56
+ 'type': value['type'],
57
+ 'countryCode': value['countryCode'],
58
+ };
59
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SubscriptionDomainDto
16
+ */
17
+ export interface SubscriptionDomainDto {
18
+ /**
19
+ *
20
+ * @type {object}
21
+ * @memberof SubscriptionDomainDto
22
+ */
23
+ id: object;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SubscriptionDomainDto
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SubscriptionDomainDto interface.
33
+ */
34
+ export declare function instanceOfSubscriptionDomainDto(value: object): value is SubscriptionDomainDto;
35
+ export declare function SubscriptionDomainDtoFromJSON(json: any): SubscriptionDomainDto;
36
+ export declare function SubscriptionDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDomainDto;
37
+ export declare function SubscriptionDomainDtoToJSON(json: any): SubscriptionDomainDto;
38
+ export declare function SubscriptionDomainDtoToJSONTyped(value?: SubscriptionDomainDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSubscriptionDomainDto = instanceOfSubscriptionDomainDto;
17
+ exports.SubscriptionDomainDtoFromJSON = SubscriptionDomainDtoFromJSON;
18
+ exports.SubscriptionDomainDtoFromJSONTyped = SubscriptionDomainDtoFromJSONTyped;
19
+ exports.SubscriptionDomainDtoToJSON = SubscriptionDomainDtoToJSON;
20
+ exports.SubscriptionDomainDtoToJSONTyped = SubscriptionDomainDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SubscriptionDomainDto interface.
23
+ */
24
+ function instanceOfSubscriptionDomainDto(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function SubscriptionDomainDtoFromJSON(json) {
32
+ return SubscriptionDomainDtoFromJSONTyped(json, false);
33
+ }
34
+ function SubscriptionDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function SubscriptionDomainDtoToJSON(json) {
44
+ return SubscriptionDomainDtoToJSONTyped(json, false);
45
+ }
46
+ function SubscriptionDomainDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'id': value['id'],
53
+ 'name': value['name'],
54
+ };
55
+ }
@@ -0,0 +1,165 @@
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 { InvoiceItemDto } from './InvoiceItemDto';
13
+ import type { InvoiceTransactionDto } from './InvoiceTransactionDto';
14
+ import type { MoneyDto } from './MoneyDto';
15
+ import type { SubscriptionDomainDto } from './SubscriptionDomainDto';
16
+ import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
17
+ import type { AddressDto } from './AddressDto';
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface SubscriptionDto
22
+ */
23
+ export interface SubscriptionDto {
24
+ /**
25
+ * The uuid for this subscription.
26
+ * @type {string}
27
+ * @memberof SubscriptionDto
28
+ */
29
+ id: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SubscriptionDto
34
+ */
35
+ status: SubscriptionDtoStatusEnum;
36
+ /**
37
+ *
38
+ * @type {MoneyDto}
39
+ * @memberof SubscriptionDto
40
+ */
41
+ basePrice: MoneyDto;
42
+ /**
43
+ *
44
+ * @type {MoneyDto}
45
+ * @memberof SubscriptionDto
46
+ */
47
+ recurringPrice: MoneyDto;
48
+ /**
49
+ *
50
+ * @type {MoneyDto}
51
+ * @memberof SubscriptionDto
52
+ */
53
+ totalPrice: MoneyDto;
54
+ /**
55
+ *
56
+ * @type {Array<InvoiceItemDto>}
57
+ * @memberof SubscriptionDto
58
+ */
59
+ items: Array<InvoiceItemDto>;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof SubscriptionDto
64
+ */
65
+ firstName: string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof SubscriptionDto
70
+ */
71
+ lastName: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof SubscriptionDto
76
+ */
77
+ email: string;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof SubscriptionDto
82
+ */
83
+ phone: string | null;
84
+ /**
85
+ *
86
+ * @type {AddressDto}
87
+ * @memberof SubscriptionDto
88
+ */
89
+ address: AddressDto | null;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof SubscriptionDto
94
+ */
95
+ locale: string;
96
+ /**
97
+ *
98
+ * @type {SubscriptionCompanyInfoDto}
99
+ * @memberof SubscriptionDto
100
+ */
101
+ companyInfo: SubscriptionCompanyInfoDto | null;
102
+ /**
103
+ *
104
+ * @type {InvoiceTransactionDto}
105
+ * @memberof SubscriptionDto
106
+ */
107
+ transaction: InvoiceTransactionDto;
108
+ /**
109
+ *
110
+ * @type {SubscriptionDomainDto}
111
+ * @memberof SubscriptionDto
112
+ */
113
+ domain: SubscriptionDomainDto;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof SubscriptionDto
118
+ */
119
+ type: SubscriptionDtoTypeEnum;
120
+ /**
121
+ *
122
+ * @type {number}
123
+ * @memberof SubscriptionDto
124
+ */
125
+ periodicity: number;
126
+ /**
127
+ *
128
+ * @type {string}
129
+ * @memberof SubscriptionDto
130
+ */
131
+ periodicityUnit: SubscriptionDtoPeriodicityUnitEnum;
132
+ }
133
+ /**
134
+ * @export
135
+ */
136
+ export declare const SubscriptionDtoStatusEnum: {
137
+ readonly DRAFT: "draft";
138
+ readonly ACTIVE: "active";
139
+ readonly PAUSED: "paused";
140
+ readonly CANCELLED: "cancelled";
141
+ };
142
+ export type SubscriptionDtoStatusEnum = typeof SubscriptionDtoStatusEnum[keyof typeof SubscriptionDtoStatusEnum];
143
+ /**
144
+ * @export
145
+ */
146
+ export declare const SubscriptionDtoTypeEnum: {
147
+ readonly RENT: "rent";
148
+ readonly LEASE_TO_OWN: "lease_to_own";
149
+ };
150
+ export type SubscriptionDtoTypeEnum = typeof SubscriptionDtoTypeEnum[keyof typeof SubscriptionDtoTypeEnum];
151
+ /**
152
+ * @export
153
+ */
154
+ export declare const SubscriptionDtoPeriodicityUnitEnum: {
155
+ readonly MONTH: "month";
156
+ };
157
+ export type SubscriptionDtoPeriodicityUnitEnum = typeof SubscriptionDtoPeriodicityUnitEnum[keyof typeof SubscriptionDtoPeriodicityUnitEnum];
158
+ /**
159
+ * Check if a given object implements the SubscriptionDto interface.
160
+ */
161
+ export declare function instanceOfSubscriptionDto(value: object): value is SubscriptionDto;
162
+ export declare function SubscriptionDtoFromJSON(json: any): SubscriptionDto;
163
+ export declare function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDto;
164
+ export declare function SubscriptionDtoToJSON(json: any): SubscriptionDto;
165
+ export declare function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,148 @@
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.SubscriptionDtoPeriodicityUnitEnum = exports.SubscriptionDtoTypeEnum = exports.SubscriptionDtoStatusEnum = void 0;
17
+ exports.instanceOfSubscriptionDto = instanceOfSubscriptionDto;
18
+ exports.SubscriptionDtoFromJSON = SubscriptionDtoFromJSON;
19
+ exports.SubscriptionDtoFromJSONTyped = SubscriptionDtoFromJSONTyped;
20
+ exports.SubscriptionDtoToJSON = SubscriptionDtoToJSON;
21
+ exports.SubscriptionDtoToJSONTyped = SubscriptionDtoToJSONTyped;
22
+ var InvoiceItemDto_1 = require("./InvoiceItemDto");
23
+ var InvoiceTransactionDto_1 = require("./InvoiceTransactionDto");
24
+ var MoneyDto_1 = require("./MoneyDto");
25
+ var SubscriptionDomainDto_1 = require("./SubscriptionDomainDto");
26
+ var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
27
+ var AddressDto_1 = require("./AddressDto");
28
+ /**
29
+ * @export
30
+ */
31
+ exports.SubscriptionDtoStatusEnum = {
32
+ DRAFT: 'draft',
33
+ ACTIVE: 'active',
34
+ PAUSED: 'paused',
35
+ CANCELLED: 'cancelled'
36
+ };
37
+ /**
38
+ * @export
39
+ */
40
+ exports.SubscriptionDtoTypeEnum = {
41
+ RENT: 'rent',
42
+ LEASE_TO_OWN: 'lease_to_own'
43
+ };
44
+ /**
45
+ * @export
46
+ */
47
+ exports.SubscriptionDtoPeriodicityUnitEnum = {
48
+ MONTH: 'month'
49
+ };
50
+ /**
51
+ * Check if a given object implements the SubscriptionDto interface.
52
+ */
53
+ function instanceOfSubscriptionDto(value) {
54
+ if (!('id' in value) || value['id'] === undefined)
55
+ return false;
56
+ if (!('status' in value) || value['status'] === undefined)
57
+ return false;
58
+ if (!('basePrice' in value) || value['basePrice'] === undefined)
59
+ return false;
60
+ if (!('recurringPrice' in value) || value['recurringPrice'] === undefined)
61
+ return false;
62
+ if (!('totalPrice' in value) || value['totalPrice'] === undefined)
63
+ return false;
64
+ if (!('items' in value) || value['items'] === undefined)
65
+ return false;
66
+ if (!('firstName' in value) || value['firstName'] === undefined)
67
+ return false;
68
+ if (!('lastName' in value) || value['lastName'] === undefined)
69
+ return false;
70
+ if (!('email' in value) || value['email'] === undefined)
71
+ return false;
72
+ if (!('phone' in value) || value['phone'] === undefined)
73
+ return false;
74
+ if (!('address' in value) || value['address'] === undefined)
75
+ return false;
76
+ if (!('locale' in value) || value['locale'] === undefined)
77
+ return false;
78
+ if (!('companyInfo' in value) || value['companyInfo'] === undefined)
79
+ return false;
80
+ if (!('transaction' in value) || value['transaction'] === undefined)
81
+ return false;
82
+ if (!('domain' in value) || value['domain'] === undefined)
83
+ return false;
84
+ if (!('type' in value) || value['type'] === undefined)
85
+ return false;
86
+ if (!('periodicity' in value) || value['periodicity'] === undefined)
87
+ return false;
88
+ if (!('periodicityUnit' in value) || value['periodicityUnit'] === undefined)
89
+ return false;
90
+ return true;
91
+ }
92
+ function SubscriptionDtoFromJSON(json) {
93
+ return SubscriptionDtoFromJSONTyped(json, false);
94
+ }
95
+ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
96
+ if (json == null) {
97
+ return json;
98
+ }
99
+ return {
100
+ 'id': json['id'],
101
+ 'status': json['status'],
102
+ 'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
103
+ 'recurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringPrice']),
104
+ 'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
105
+ 'items': (json['items'].map(InvoiceItemDto_1.InvoiceItemDtoFromJSON)),
106
+ 'firstName': json['firstName'],
107
+ 'lastName': json['lastName'],
108
+ 'email': json['email'],
109
+ 'phone': json['phone'],
110
+ 'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
111
+ 'locale': json['locale'],
112
+ 'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
113
+ 'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoFromJSON)(json['transaction']),
114
+ 'domain': (0, SubscriptionDomainDto_1.SubscriptionDomainDtoFromJSON)(json['domain']),
115
+ 'type': json['type'],
116
+ 'periodicity': json['periodicity'],
117
+ 'periodicityUnit': json['periodicityUnit'],
118
+ };
119
+ }
120
+ function SubscriptionDtoToJSON(json) {
121
+ return SubscriptionDtoToJSONTyped(json, false);
122
+ }
123
+ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
124
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
125
+ if (value == null) {
126
+ return value;
127
+ }
128
+ return {
129
+ 'id': value['id'],
130
+ 'status': value['status'],
131
+ 'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
132
+ 'recurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringPrice']),
133
+ 'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
134
+ 'items': (value['items'].map(InvoiceItemDto_1.InvoiceItemDtoToJSON)),
135
+ 'firstName': value['firstName'],
136
+ 'lastName': value['lastName'],
137
+ 'email': value['email'],
138
+ 'phone': value['phone'],
139
+ 'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
140
+ 'locale': value['locale'],
141
+ 'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
142
+ 'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoToJSON)(value['transaction']),
143
+ 'domain': (0, SubscriptionDomainDto_1.SubscriptionDomainDtoToJSON)(value['domain']),
144
+ 'type': value['type'],
145
+ 'periodicity': value['periodicity'],
146
+ 'periodicityUnit': value['periodicityUnit'],
147
+ };
148
+ }
@@ -0,0 +1,102 @@
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 { SubscriptionListItemDtoBuyerInformation } from './SubscriptionListItemDtoBuyerInformation';
13
+ import type { SubscriptionListItemDtoSellerAccount } from './SubscriptionListItemDtoSellerAccount';
14
+ import type { MoneyDto } from './MoneyDto';
15
+ import type { SubscriptionListItemDtoDomainInformation } from './SubscriptionListItemDtoDomainInformation';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SubscriptionListItemDto
20
+ */
21
+ export interface SubscriptionListItemDto {
22
+ /**
23
+ * The subscription ID
24
+ * @type {object}
25
+ * @memberof SubscriptionListItemDto
26
+ */
27
+ id: object;
28
+ /**
29
+ * The subscription status
30
+ * @type {string}
31
+ * @memberof SubscriptionListItemDto
32
+ */
33
+ status: SubscriptionListItemDtoStatusEnum;
34
+ /**
35
+ * The subscription type
36
+ * @type {string}
37
+ * @memberof SubscriptionListItemDto
38
+ */
39
+ type: SubscriptionListItemDtoTypeEnum;
40
+ /**
41
+ * The subscription start date
42
+ * @type {Date}
43
+ * @memberof SubscriptionListItemDto
44
+ */
45
+ startedAt: Date | null;
46
+ /**
47
+ * The subscription creation date
48
+ * @type {Date}
49
+ * @memberof SubscriptionListItemDto
50
+ */
51
+ createdAt: Date;
52
+ /**
53
+ * The subscription domain information
54
+ * @type {SubscriptionListItemDtoDomainInformation}
55
+ * @memberof SubscriptionListItemDto
56
+ */
57
+ domain: SubscriptionListItemDtoDomainInformation;
58
+ /**
59
+ * The subscription seller information
60
+ * @type {SubscriptionListItemDtoSellerAccount}
61
+ * @memberof SubscriptionListItemDto
62
+ */
63
+ sellerAccount: SubscriptionListItemDtoSellerAccount;
64
+ /**
65
+ * The subscription buyer information
66
+ * @type {SubscriptionListItemDtoBuyerInformation}
67
+ * @memberof SubscriptionListItemDto
68
+ */
69
+ buyerInformation: SubscriptionListItemDtoBuyerInformation;
70
+ /**
71
+ * The subscription base price
72
+ * @type {MoneyDto}
73
+ * @memberof SubscriptionListItemDto
74
+ */
75
+ basePrice: MoneyDto | null;
76
+ }
77
+ /**
78
+ * @export
79
+ */
80
+ export declare const SubscriptionListItemDtoStatusEnum: {
81
+ readonly DRAFT: "draft";
82
+ readonly ACTIVE: "active";
83
+ readonly PAUSED: "paused";
84
+ readonly CANCELLED: "cancelled";
85
+ };
86
+ export type SubscriptionListItemDtoStatusEnum = typeof SubscriptionListItemDtoStatusEnum[keyof typeof SubscriptionListItemDtoStatusEnum];
87
+ /**
88
+ * @export
89
+ */
90
+ export declare const SubscriptionListItemDtoTypeEnum: {
91
+ readonly RENT: "rent";
92
+ readonly LEASE_TO_OWN: "lease_to_own";
93
+ };
94
+ export type SubscriptionListItemDtoTypeEnum = typeof SubscriptionListItemDtoTypeEnum[keyof typeof SubscriptionListItemDtoTypeEnum];
95
+ /**
96
+ * Check if a given object implements the SubscriptionListItemDto interface.
97
+ */
98
+ export declare function instanceOfSubscriptionListItemDto(value: object): value is SubscriptionListItemDto;
99
+ export declare function SubscriptionListItemDtoFromJSON(json: any): SubscriptionListItemDto;
100
+ export declare function SubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDto;
101
+ export declare function SubscriptionListItemDtoToJSON(json: any): SubscriptionListItemDto;
102
+ export declare function SubscriptionListItemDtoToJSONTyped(value?: SubscriptionListItemDto | null, ignoreDiscriminator?: boolean): any;