@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,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.instanceOfAccountSettingsSidnDto = instanceOfAccountSettingsSidnDto;
17
+ exports.AccountSettingsSidnDtoFromJSON = AccountSettingsSidnDtoFromJSON;
18
+ exports.AccountSettingsSidnDtoFromJSONTyped = AccountSettingsSidnDtoFromJSONTyped;
19
+ exports.AccountSettingsSidnDtoToJSON = AccountSettingsSidnDtoToJSON;
20
+ exports.AccountSettingsSidnDtoToJSONTyped = AccountSettingsSidnDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AccountSettingsSidnDto interface.
23
+ */
24
+ function instanceOfAccountSettingsSidnDto(value) {
25
+ if (!('idCode' in value) || value['idCode'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AccountSettingsSidnDtoFromJSON(json) {
30
+ return AccountSettingsSidnDtoFromJSONTyped(json, false);
31
+ }
32
+ function AccountSettingsSidnDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'idCode': json['idCode'],
38
+ };
39
+ }
40
+ function AccountSettingsSidnDtoToJSON(json) {
41
+ return AccountSettingsSidnDtoToJSONTyped(json, false);
42
+ }
43
+ function AccountSettingsSidnDtoToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'idCode': value['idCode'],
50
+ };
51
+ }
@@ -0,0 +1,42 @@
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 ChangeSubscriptionStatusInput
16
+ */
17
+ export interface ChangeSubscriptionStatusInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ChangeSubscriptionStatusInput
22
+ */
23
+ status: ChangeSubscriptionStatusInputStatusEnum;
24
+ }
25
+ /**
26
+ * @export
27
+ */
28
+ export declare const ChangeSubscriptionStatusInputStatusEnum: {
29
+ readonly DRAFT: "draft";
30
+ readonly ACTIVE: "active";
31
+ readonly PAUSED: "paused";
32
+ readonly CANCELLED: "cancelled";
33
+ };
34
+ export type ChangeSubscriptionStatusInputStatusEnum = typeof ChangeSubscriptionStatusInputStatusEnum[keyof typeof ChangeSubscriptionStatusInputStatusEnum];
35
+ /**
36
+ * Check if a given object implements the ChangeSubscriptionStatusInput interface.
37
+ */
38
+ export declare function instanceOfChangeSubscriptionStatusInput(value: object): value is ChangeSubscriptionStatusInput;
39
+ export declare function ChangeSubscriptionStatusInputFromJSON(json: any): ChangeSubscriptionStatusInput;
40
+ export declare function ChangeSubscriptionStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeSubscriptionStatusInput;
41
+ export declare function ChangeSubscriptionStatusInputToJSON(json: any): ChangeSubscriptionStatusInput;
42
+ export declare function ChangeSubscriptionStatusInputToJSONTyped(value?: ChangeSubscriptionStatusInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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.ChangeSubscriptionStatusInputStatusEnum = void 0;
17
+ exports.instanceOfChangeSubscriptionStatusInput = instanceOfChangeSubscriptionStatusInput;
18
+ exports.ChangeSubscriptionStatusInputFromJSON = ChangeSubscriptionStatusInputFromJSON;
19
+ exports.ChangeSubscriptionStatusInputFromJSONTyped = ChangeSubscriptionStatusInputFromJSONTyped;
20
+ exports.ChangeSubscriptionStatusInputToJSON = ChangeSubscriptionStatusInputToJSON;
21
+ exports.ChangeSubscriptionStatusInputToJSONTyped = ChangeSubscriptionStatusInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ChangeSubscriptionStatusInputStatusEnum = {
26
+ DRAFT: 'draft',
27
+ ACTIVE: 'active',
28
+ PAUSED: 'paused',
29
+ CANCELLED: 'cancelled'
30
+ };
31
+ /**
32
+ * Check if a given object implements the ChangeSubscriptionStatusInput interface.
33
+ */
34
+ function instanceOfChangeSubscriptionStatusInput(value) {
35
+ if (!('status' in value) || value['status'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function ChangeSubscriptionStatusInputFromJSON(json) {
40
+ return ChangeSubscriptionStatusInputFromJSONTyped(json, false);
41
+ }
42
+ function ChangeSubscriptionStatusInputFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'status': json['status'],
48
+ };
49
+ }
50
+ function ChangeSubscriptionStatusInputToJSON(json) {
51
+ return ChangeSubscriptionStatusInputToJSONTyped(json, false);
52
+ }
53
+ function ChangeSubscriptionStatusInputToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'status': value['status'],
60
+ };
61
+ }
@@ -0,0 +1,132 @@
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 { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateSubscriptionInput
17
+ */
18
+ export interface CreateSubscriptionInput {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CreateSubscriptionInput
23
+ */
24
+ locale: string;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof CreateSubscriptionInput
29
+ */
30
+ periodicity: number;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof CreateSubscriptionInput
35
+ */
36
+ periodicityUnit: CreateSubscriptionInputPeriodicityUnitEnum;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof CreateSubscriptionInput
41
+ */
42
+ domainName: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof CreateSubscriptionInput
47
+ */
48
+ subscriptionType: CreateSubscriptionInputSubscriptionTypeEnum;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof CreateSubscriptionInput
53
+ */
54
+ email?: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof CreateSubscriptionInput
59
+ */
60
+ firstName?: string | null;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof CreateSubscriptionInput
65
+ */
66
+ lastName?: string | null;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof CreateSubscriptionInput
71
+ */
72
+ addressCountryCode?: string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof CreateSubscriptionInput
77
+ */
78
+ addressStateCode?: string;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof CreateSubscriptionInput
83
+ */
84
+ addressLine1?: string;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof CreateSubscriptionInput
89
+ */
90
+ addressLine2?: string;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof CreateSubscriptionInput
95
+ */
96
+ addressPostalCode?: string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof CreateSubscriptionInput
101
+ */
102
+ addressCity?: string;
103
+ /**
104
+ *
105
+ * @type {SubscriptionCompanyInfoDto}
106
+ * @memberof CreateSubscriptionInput
107
+ */
108
+ companyInfo?: SubscriptionCompanyInfoDto | null;
109
+ }
110
+ /**
111
+ * @export
112
+ */
113
+ export declare const CreateSubscriptionInputPeriodicityUnitEnum: {
114
+ readonly MONTH: "month";
115
+ };
116
+ export type CreateSubscriptionInputPeriodicityUnitEnum = typeof CreateSubscriptionInputPeriodicityUnitEnum[keyof typeof CreateSubscriptionInputPeriodicityUnitEnum];
117
+ /**
118
+ * @export
119
+ */
120
+ export declare const CreateSubscriptionInputSubscriptionTypeEnum: {
121
+ readonly RENT: "rent";
122
+ readonly LEASE_TO_OWN: "lease_to_own";
123
+ };
124
+ export type CreateSubscriptionInputSubscriptionTypeEnum = typeof CreateSubscriptionInputSubscriptionTypeEnum[keyof typeof CreateSubscriptionInputSubscriptionTypeEnum];
125
+ /**
126
+ * Check if a given object implements the CreateSubscriptionInput interface.
127
+ */
128
+ export declare function instanceOfCreateSubscriptionInput(value: object): value is CreateSubscriptionInput;
129
+ export declare function CreateSubscriptionInputFromJSON(json: any): CreateSubscriptionInput;
130
+ export declare function CreateSubscriptionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscriptionInput;
131
+ export declare function CreateSubscriptionInputToJSON(json: any): CreateSubscriptionInput;
132
+ export declare function CreateSubscriptionInputToJSONTyped(value?: CreateSubscriptionInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,102 @@
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.CreateSubscriptionInputSubscriptionTypeEnum = exports.CreateSubscriptionInputPeriodicityUnitEnum = void 0;
17
+ exports.instanceOfCreateSubscriptionInput = instanceOfCreateSubscriptionInput;
18
+ exports.CreateSubscriptionInputFromJSON = CreateSubscriptionInputFromJSON;
19
+ exports.CreateSubscriptionInputFromJSONTyped = CreateSubscriptionInputFromJSONTyped;
20
+ exports.CreateSubscriptionInputToJSON = CreateSubscriptionInputToJSON;
21
+ exports.CreateSubscriptionInputToJSONTyped = CreateSubscriptionInputToJSONTyped;
22
+ var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.CreateSubscriptionInputPeriodicityUnitEnum = {
27
+ MONTH: 'month'
28
+ };
29
+ /**
30
+ * @export
31
+ */
32
+ exports.CreateSubscriptionInputSubscriptionTypeEnum = {
33
+ RENT: 'rent',
34
+ LEASE_TO_OWN: 'lease_to_own'
35
+ };
36
+ /**
37
+ * Check if a given object implements the CreateSubscriptionInput interface.
38
+ */
39
+ function instanceOfCreateSubscriptionInput(value) {
40
+ if (!('locale' in value) || value['locale'] === undefined)
41
+ return false;
42
+ if (!('periodicity' in value) || value['periodicity'] === undefined)
43
+ return false;
44
+ if (!('periodicityUnit' in value) || value['periodicityUnit'] === undefined)
45
+ return false;
46
+ if (!('domainName' in value) || value['domainName'] === undefined)
47
+ return false;
48
+ if (!('subscriptionType' in value) || value['subscriptionType'] === undefined)
49
+ return false;
50
+ return true;
51
+ }
52
+ function CreateSubscriptionInputFromJSON(json) {
53
+ return CreateSubscriptionInputFromJSONTyped(json, false);
54
+ }
55
+ function CreateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'locale': json['locale'],
61
+ 'periodicity': json['periodicity'],
62
+ 'periodicityUnit': json['periodicityUnit'],
63
+ 'domainName': json['domainName'],
64
+ 'subscriptionType': json['subscriptionType'],
65
+ 'email': json['email'] == null ? undefined : json['email'],
66
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
67
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
68
+ 'addressCountryCode': json['addressCountryCode'] == null ? undefined : json['addressCountryCode'],
69
+ 'addressStateCode': json['addressStateCode'] == null ? undefined : json['addressStateCode'],
70
+ 'addressLine1': json['addressLine1'] == null ? undefined : json['addressLine1'],
71
+ 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
72
+ 'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
73
+ 'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
74
+ 'companyInfo': json['companyInfo'] == null ? undefined : (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
75
+ };
76
+ }
77
+ function CreateSubscriptionInputToJSON(json) {
78
+ return CreateSubscriptionInputToJSONTyped(json, false);
79
+ }
80
+ function CreateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
81
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
82
+ if (value == null) {
83
+ return value;
84
+ }
85
+ return {
86
+ 'locale': value['locale'],
87
+ 'periodicity': value['periodicity'],
88
+ 'periodicityUnit': value['periodicityUnit'],
89
+ 'domainName': value['domainName'],
90
+ 'subscriptionType': value['subscriptionType'],
91
+ 'email': value['email'],
92
+ 'firstName': value['firstName'],
93
+ 'lastName': value['lastName'],
94
+ 'addressCountryCode': value['addressCountryCode'],
95
+ 'addressStateCode': value['addressStateCode'],
96
+ 'addressLine1': value['addressLine1'],
97
+ 'addressLine2': value['addressLine2'],
98
+ 'addressPostalCode': value['addressPostalCode'],
99
+ 'addressCity': value['addressCity'],
100
+ 'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
101
+ };
102
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { MoneyDto } from './MoneyDto';
13
+ import type { LeaseToOwnConfigurationDto } from './LeaseToOwnConfigurationDto';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -77,6 +78,12 @@ export interface DomainDto {
77
78
  * @memberof DomainDto
78
79
  */
79
80
  buyNow: MoneyDto;
81
+ /**
82
+ * The lease to own configuration
83
+ * @type {LeaseToOwnConfigurationDto}
84
+ * @memberof DomainDto
85
+ */
86
+ leaseToOwn: LeaseToOwnConfigurationDto;
80
87
  /**
81
88
  * The minimum offer
82
89
  * @type {MoneyDto}
@@ -19,6 +19,7 @@ exports.DomainDtoFromJSONTyped = DomainDtoFromJSONTyped;
19
19
  exports.DomainDtoToJSON = DomainDtoToJSON;
20
20
  exports.DomainDtoToJSONTyped = DomainDtoToJSONTyped;
21
21
  var MoneyDto_1 = require("./MoneyDto");
22
+ var LeaseToOwnConfigurationDto_1 = require("./LeaseToOwnConfigurationDto");
22
23
  /**
23
24
  * Check if a given object implements the DomainDto interface.
24
25
  */
@@ -43,6 +44,8 @@ function instanceOfDomainDto(value) {
43
44
  return false;
44
45
  if (!('buyNow' in value) || value['buyNow'] === undefined)
45
46
  return false;
47
+ if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
48
+ return false;
46
49
  if (!('minOffer' in value) || value['minOffer'] === undefined)
47
50
  return false;
48
51
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -71,6 +74,7 @@ function DomainDtoFromJSONTyped(json, ignoreDiscriminator) {
71
74
  'displayName': json['displayName'],
72
75
  'currencyCode': json['currencyCode'],
73
76
  'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
77
+ 'leaseToOwn': (0, LeaseToOwnConfigurationDto_1.LeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
74
78
  'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
75
79
  'createdAt': (new Date(json['createdAt'])),
76
80
  'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
@@ -96,6 +100,7 @@ function DomainDtoToJSONTyped(value, ignoreDiscriminator) {
96
100
  'displayName': value['displayName'],
97
101
  'currencyCode': value['currencyCode'],
98
102
  'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
103
+ 'leaseToOwn': (0, LeaseToOwnConfigurationDto_1.LeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
99
104
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
100
105
  'createdAt': ((value['createdAt']).toISOString()),
101
106
  'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
@@ -0,0 +1,57 @@
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 DomainSalesInformationLeaseToOwnConfigurationDto
17
+ */
18
+ export interface DomainSalesInformationLeaseToOwnConfigurationDto {
19
+ /**
20
+ * Enabled status of lease to own
21
+ * @type {boolean}
22
+ * @memberof DomainSalesInformationLeaseToOwnConfigurationDto
23
+ */
24
+ enabled: boolean;
25
+ /**
26
+ * Minimum months option
27
+ * @type {number}
28
+ * @memberof DomainSalesInformationLeaseToOwnConfigurationDto
29
+ */
30
+ minMonths: number;
31
+ /**
32
+ * Maximum months option
33
+ * @type {number}
34
+ * @memberof DomainSalesInformationLeaseToOwnConfigurationDto
35
+ */
36
+ maxMonths: number;
37
+ /**
38
+ * Total lease to own total subscription price
39
+ * @type {MoneyDto}
40
+ * @memberof DomainSalesInformationLeaseToOwnConfigurationDto
41
+ */
42
+ basePrice: MoneyDto;
43
+ /**
44
+ * Total lease to own recurring price
45
+ * @type {MoneyDto}
46
+ * @memberof DomainSalesInformationLeaseToOwnConfigurationDto
47
+ */
48
+ recurringPrice: MoneyDto;
49
+ }
50
+ /**
51
+ * Check if a given object implements the DomainSalesInformationLeaseToOwnConfigurationDto interface.
52
+ */
53
+ export declare function instanceOfDomainSalesInformationLeaseToOwnConfigurationDto(value: object): value is DomainSalesInformationLeaseToOwnConfigurationDto;
54
+ export declare function DomainSalesInformationLeaseToOwnConfigurationDtoFromJSON(json: any): DomainSalesInformationLeaseToOwnConfigurationDto;
55
+ export declare function DomainSalesInformationLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSalesInformationLeaseToOwnConfigurationDto;
56
+ export declare function DomainSalesInformationLeaseToOwnConfigurationDtoToJSON(json: any): DomainSalesInformationLeaseToOwnConfigurationDto;
57
+ export declare function DomainSalesInformationLeaseToOwnConfigurationDtoToJSONTyped(value?: DomainSalesInformationLeaseToOwnConfigurationDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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.instanceOfDomainSalesInformationLeaseToOwnConfigurationDto = instanceOfDomainSalesInformationLeaseToOwnConfigurationDto;
17
+ exports.DomainSalesInformationLeaseToOwnConfigurationDtoFromJSON = DomainSalesInformationLeaseToOwnConfigurationDtoFromJSON;
18
+ exports.DomainSalesInformationLeaseToOwnConfigurationDtoFromJSONTyped = DomainSalesInformationLeaseToOwnConfigurationDtoFromJSONTyped;
19
+ exports.DomainSalesInformationLeaseToOwnConfigurationDtoToJSON = DomainSalesInformationLeaseToOwnConfigurationDtoToJSON;
20
+ exports.DomainSalesInformationLeaseToOwnConfigurationDtoToJSONTyped = DomainSalesInformationLeaseToOwnConfigurationDtoToJSONTyped;
21
+ var MoneyDto_1 = require("./MoneyDto");
22
+ /**
23
+ * Check if a given object implements the DomainSalesInformationLeaseToOwnConfigurationDto interface.
24
+ */
25
+ function instanceOfDomainSalesInformationLeaseToOwnConfigurationDto(value) {
26
+ if (!('enabled' in value) || value['enabled'] === undefined)
27
+ return false;
28
+ if (!('minMonths' in value) || value['minMonths'] === undefined)
29
+ return false;
30
+ if (!('maxMonths' in value) || value['maxMonths'] === undefined)
31
+ return false;
32
+ if (!('basePrice' in value) || value['basePrice'] === undefined)
33
+ return false;
34
+ if (!('recurringPrice' in value) || value['recurringPrice'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function DomainSalesInformationLeaseToOwnConfigurationDtoFromJSON(json) {
39
+ return DomainSalesInformationLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
40
+ }
41
+ function DomainSalesInformationLeaseToOwnConfigurationDtoFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'enabled': json['enabled'],
47
+ 'minMonths': json['minMonths'],
48
+ 'maxMonths': json['maxMonths'],
49
+ 'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
50
+ 'recurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringPrice']),
51
+ };
52
+ }
53
+ function DomainSalesInformationLeaseToOwnConfigurationDtoToJSON(json) {
54
+ return DomainSalesInformationLeaseToOwnConfigurationDtoToJSONTyped(json, false);
55
+ }
56
+ function DomainSalesInformationLeaseToOwnConfigurationDtoToJSONTyped(value, ignoreDiscriminator) {
57
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'enabled': value['enabled'],
63
+ 'minMonths': value['minMonths'],
64
+ 'maxMonths': value['maxMonths'],
65
+ 'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
66
+ 'recurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringPrice']),
67
+ };
68
+ }
@@ -0,0 +1,47 @@
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 { PaginateResponseLinks } from './PaginateResponseLinks';
13
+ import type { SubscriptionListItemDto } from './SubscriptionListItemDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetAllSubscriptions200Response
19
+ */
20
+ export interface GetAllSubscriptions200Response {
21
+ /**
22
+ *
23
+ * @type {Array<SubscriptionListItemDto>}
24
+ * @memberof GetAllSubscriptions200Response
25
+ */
26
+ data: Array<SubscriptionListItemDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof GetAllSubscriptions200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof GetAllSubscriptions200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the GetAllSubscriptions200Response interface.
42
+ */
43
+ export declare function instanceOfGetAllSubscriptions200Response(value: object): value is GetAllSubscriptions200Response;
44
+ export declare function GetAllSubscriptions200ResponseFromJSON(json: any): GetAllSubscriptions200Response;
45
+ export declare function GetAllSubscriptions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllSubscriptions200Response;
46
+ export declare function GetAllSubscriptions200ResponseToJSON(json: any): GetAllSubscriptions200Response;
47
+ export declare function GetAllSubscriptions200ResponseToJSONTyped(value?: GetAllSubscriptions200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfGetAllSubscriptions200Response = instanceOfGetAllSubscriptions200Response;
17
+ exports.GetAllSubscriptions200ResponseFromJSON = GetAllSubscriptions200ResponseFromJSON;
18
+ exports.GetAllSubscriptions200ResponseFromJSONTyped = GetAllSubscriptions200ResponseFromJSONTyped;
19
+ exports.GetAllSubscriptions200ResponseToJSON = GetAllSubscriptions200ResponseToJSON;
20
+ exports.GetAllSubscriptions200ResponseToJSONTyped = GetAllSubscriptions200ResponseToJSONTyped;
21
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var SubscriptionListItemDto_1 = require("./SubscriptionListItemDto");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the GetAllSubscriptions200Response interface.
26
+ */
27
+ function instanceOfGetAllSubscriptions200Response(value) {
28
+ if (!('data' in value) || value['data'] === undefined)
29
+ return false;
30
+ if (!('meta' in value) || value['meta'] === undefined)
31
+ return false;
32
+ if (!('links' in value) || value['links'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function GetAllSubscriptions200ResponseFromJSON(json) {
37
+ return GetAllSubscriptions200ResponseFromJSONTyped(json, false);
38
+ }
39
+ function GetAllSubscriptions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(SubscriptionListItemDto_1.SubscriptionListItemDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function GetAllSubscriptions200ResponseToJSON(json) {
50
+ return GetAllSubscriptions200ResponseToJSONTyped(json, false);
51
+ }
52
+ function GetAllSubscriptions200ResponseToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(SubscriptionListItemDto_1.SubscriptionListItemDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }