@randock/nameshift-api-client 0.0.185 → 0.0.186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/README.md +3 -3
- package/dist/apis/DomainsPublicApi.d.ts +1 -1
- package/dist/apis/DomainsPublicApi.js +2 -2
- package/dist/models/ChangeSubscriptionStatusInput.d.ts +1 -0
- package/dist/models/ChangeSubscriptionStatusInput.js +2 -1
- package/dist/models/CreateSubscriptionBillingPeriodicityInput.d.ts +46 -0
- package/dist/models/CreateSubscriptionBillingPeriodicityInput.js +63 -0
- package/dist/models/CreateSubscriptionInput.d.ts +4 -10
- package/dist/models/CreateSubscriptionInput.js +8 -13
- package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.d.ts +1 -0
- package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.js +1 -0
- package/dist/models/SubscriptionBillingPeriodicityDto.d.ts +46 -0
- package/dist/models/SubscriptionBillingPeriodicityDto.js +63 -0
- package/dist/models/SubscriptionDto.d.ts +5 -10
- package/dist/models/SubscriptionDto.js +10 -14
- package/dist/models/SubscriptionListItemDto.d.ts +1 -0
- package/dist/models/SubscriptionListItemDto.js +2 -1
- package/dist/models/UpdateSubscriptionBillingPeriodicityInput.d.ts +46 -0
- package/dist/models/UpdateSubscriptionBillingPeriodicityInput.js +59 -0
- package/dist/models/UpdateSubscriptionInput.d.ts +4 -10
- package/dist/models/UpdateSubscriptionInput.js +5 -11
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/DomainsPublicApi.ts +3 -3
- package/src/apis/SubscriptionsPublicApi.ts +0 -3
- package/src/models/ChangeSubscriptionStatusInput.ts +2 -1
- package/src/models/CreateSubscriptionBillingPeriodicityInput.ts +86 -0
- package/src/models/CreateSubscriptionInput.ts +16 -17
- package/src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts +1 -0
- package/src/models/SubscriptionBillingPeriodicityDto.ts +86 -0
- package/src/models/SubscriptionDto.ts +18 -18
- package/src/models/SubscriptionListItemDto.ts +2 -1
- package/src/models/UpdateSubscriptionBillingPeriodicityInput.ts +84 -0
- package/src/models/UpdateSubscriptionInput.ts +14 -17
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -61,6 +61,7 @@ src/models/CreateLeadInput.ts
|
|
|
61
61
|
src/models/CreateLeadMessageInput.ts
|
|
62
62
|
src/models/CreateManualLeadInput.ts
|
|
63
63
|
src/models/CreateOrderInput.ts
|
|
64
|
+
src/models/CreateSubscriptionBillingPeriodicityInput.ts
|
|
64
65
|
src/models/CreateSubscriptionInput.ts
|
|
65
66
|
src/models/DeleteDomainsInput.ts
|
|
66
67
|
src/models/DomainDto.ts
|
|
@@ -164,6 +165,7 @@ src/models/SetDomainTransferConfirmationInput.ts
|
|
|
164
165
|
src/models/SetNewPasswordInput.ts
|
|
165
166
|
src/models/StoreBuyerLocaleInput.ts
|
|
166
167
|
src/models/StoreUserLocaleInput.ts
|
|
168
|
+
src/models/SubscriptionBillingPeriodicityDto.ts
|
|
167
169
|
src/models/SubscriptionCompanyInfoDto.ts
|
|
168
170
|
src/models/SubscriptionCompanyTaxIdDto.ts
|
|
169
171
|
src/models/SubscriptionDomainDto.ts
|
|
@@ -181,6 +183,7 @@ src/models/UpdateDomainInput.ts
|
|
|
181
183
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
182
184
|
src/models/UpdateLeadInput.ts
|
|
183
185
|
src/models/UpdateOrderInput.ts
|
|
186
|
+
src/models/UpdateSubscriptionBillingPeriodicityInput.ts
|
|
184
187
|
src/models/UpdateSubscriptionInput.ts
|
|
185
188
|
src/models/UserPasswordResetDto.ts
|
|
186
189
|
src/models/ValidationError.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.186
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.186 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
e143a93606c8dd1e0ea51b206e218d8f181b43d80be3f2016c1f5bd37391a927ec4997e7d78355133f4a00667440b1f1
|
|
@@ -14,7 +14,7 @@ import type { IntersectionDomainSalesInformationDtoWithDomainStatsDto, List200Re
|
|
|
14
14
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
15
|
domainName: string;
|
|
16
16
|
includeStats?: boolean;
|
|
17
|
-
|
|
17
|
+
installments?: number;
|
|
18
18
|
}
|
|
19
19
|
export interface DomainsPublicApiListRequest {
|
|
20
20
|
filter?: object;
|
|
@@ -91,8 +91,8 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
91
91
|
if (requestParameters['includeStats'] != null) {
|
|
92
92
|
queryParameters['includeStats'] = requestParameters['includeStats'];
|
|
93
93
|
}
|
|
94
|
-
if (requestParameters['
|
|
95
|
-
queryParameters['
|
|
94
|
+
if (requestParameters['installments'] != null) {
|
|
95
|
+
queryParameters['installments'] = requestParameters['installments'];
|
|
96
96
|
}
|
|
97
97
|
headerParameters = {};
|
|
98
98
|
return [4 /*yield*/, this.request({
|
|
@@ -30,6 +30,7 @@ export declare const ChangeSubscriptionStatusInputStatusEnum: {
|
|
|
30
30
|
readonly ACTIVE: "active";
|
|
31
31
|
readonly PAUSED: "paused";
|
|
32
32
|
readonly CANCELLED: "cancelled";
|
|
33
|
+
readonly FINISHED: "finished";
|
|
33
34
|
};
|
|
34
35
|
export type ChangeSubscriptionStatusInputStatusEnum = typeof ChangeSubscriptionStatusInputStatusEnum[keyof typeof ChangeSubscriptionStatusInputStatusEnum];
|
|
35
36
|
/**
|
|
@@ -26,7 +26,8 @@ exports.ChangeSubscriptionStatusInputStatusEnum = {
|
|
|
26
26
|
DRAFT: 'draft',
|
|
27
27
|
ACTIVE: 'active',
|
|
28
28
|
PAUSED: 'paused',
|
|
29
|
-
CANCELLED: 'cancelled'
|
|
29
|
+
CANCELLED: 'cancelled',
|
|
30
|
+
FINISHED: 'finished'
|
|
30
31
|
};
|
|
31
32
|
/**
|
|
32
33
|
* Check if a given object implements the ChangeSubscriptionStatusInput interface.
|
|
@@ -0,0 +1,46 @@
|
|
|
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 CreateSubscriptionBillingPeriodicityInput
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateSubscriptionBillingPeriodicityInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreateSubscriptionBillingPeriodicityInput
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateSubscriptionBillingPeriodicityInput
|
|
28
|
+
*/
|
|
29
|
+
unit: CreateSubscriptionBillingPeriodicityInputUnitEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const CreateSubscriptionBillingPeriodicityInputUnitEnum: {
|
|
35
|
+
readonly WEEK: "week";
|
|
36
|
+
readonly MONTH: "month";
|
|
37
|
+
};
|
|
38
|
+
export type CreateSubscriptionBillingPeriodicityInputUnitEnum = typeof CreateSubscriptionBillingPeriodicityInputUnitEnum[keyof typeof CreateSubscriptionBillingPeriodicityInputUnitEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the CreateSubscriptionBillingPeriodicityInput interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfCreateSubscriptionBillingPeriodicityInput(value: object): value is CreateSubscriptionBillingPeriodicityInput;
|
|
43
|
+
export declare function CreateSubscriptionBillingPeriodicityInputFromJSON(json: any): CreateSubscriptionBillingPeriodicityInput;
|
|
44
|
+
export declare function CreateSubscriptionBillingPeriodicityInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscriptionBillingPeriodicityInput;
|
|
45
|
+
export declare function CreateSubscriptionBillingPeriodicityInputToJSON(json: any): CreateSubscriptionBillingPeriodicityInput;
|
|
46
|
+
export declare function CreateSubscriptionBillingPeriodicityInputToJSONTyped(value?: CreateSubscriptionBillingPeriodicityInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.CreateSubscriptionBillingPeriodicityInputUnitEnum = void 0;
|
|
17
|
+
exports.instanceOfCreateSubscriptionBillingPeriodicityInput = instanceOfCreateSubscriptionBillingPeriodicityInput;
|
|
18
|
+
exports.CreateSubscriptionBillingPeriodicityInputFromJSON = CreateSubscriptionBillingPeriodicityInputFromJSON;
|
|
19
|
+
exports.CreateSubscriptionBillingPeriodicityInputFromJSONTyped = CreateSubscriptionBillingPeriodicityInputFromJSONTyped;
|
|
20
|
+
exports.CreateSubscriptionBillingPeriodicityInputToJSON = CreateSubscriptionBillingPeriodicityInputToJSON;
|
|
21
|
+
exports.CreateSubscriptionBillingPeriodicityInputToJSONTyped = CreateSubscriptionBillingPeriodicityInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateSubscriptionBillingPeriodicityInputUnitEnum = {
|
|
26
|
+
WEEK: 'week',
|
|
27
|
+
MONTH: 'month'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the CreateSubscriptionBillingPeriodicityInput interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfCreateSubscriptionBillingPeriodicityInput(value) {
|
|
33
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('unit' in value) || value['unit'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function CreateSubscriptionBillingPeriodicityInputFromJSON(json) {
|
|
40
|
+
return CreateSubscriptionBillingPeriodicityInputFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CreateSubscriptionBillingPeriodicityInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'amount': json['amount'],
|
|
48
|
+
'unit': json['unit'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function CreateSubscriptionBillingPeriodicityInputToJSON(json) {
|
|
52
|
+
return CreateSubscriptionBillingPeriodicityInputToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function CreateSubscriptionBillingPeriodicityInputToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'amount': value['amount'],
|
|
61
|
+
'unit': value['unit'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CreateSubscriptionBillingPeriodicityInput } from './CreateSubscriptionBillingPeriodicityInput';
|
|
12
13
|
import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -27,13 +28,13 @@ export interface CreateSubscriptionInput {
|
|
|
27
28
|
* @type {number}
|
|
28
29
|
* @memberof CreateSubscriptionInput
|
|
29
30
|
*/
|
|
30
|
-
|
|
31
|
+
installments: number;
|
|
31
32
|
/**
|
|
32
33
|
*
|
|
33
|
-
* @type {
|
|
34
|
+
* @type {CreateSubscriptionBillingPeriodicityInput}
|
|
34
35
|
* @memberof CreateSubscriptionInput
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
+
billingPeriodicity: CreateSubscriptionBillingPeriodicityInput;
|
|
37
38
|
/**
|
|
38
39
|
*
|
|
39
40
|
* @type {string}
|
|
@@ -107,13 +108,6 @@ export interface CreateSubscriptionInput {
|
|
|
107
108
|
*/
|
|
108
109
|
companyInfo?: SubscriptionCompanyInfoDto | null;
|
|
109
110
|
}
|
|
110
|
-
/**
|
|
111
|
-
* @export
|
|
112
|
-
*/
|
|
113
|
-
export declare const CreateSubscriptionInputPeriodicityUnitEnum: {
|
|
114
|
-
readonly MONTH: "month";
|
|
115
|
-
};
|
|
116
|
-
export type CreateSubscriptionInputPeriodicityUnitEnum = typeof CreateSubscriptionInputPeriodicityUnitEnum[keyof typeof CreateSubscriptionInputPeriodicityUnitEnum];
|
|
117
111
|
/**
|
|
118
112
|
* @export
|
|
119
113
|
*/
|
|
@@ -13,19 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateSubscriptionInputSubscriptionTypeEnum =
|
|
16
|
+
exports.CreateSubscriptionInputSubscriptionTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfCreateSubscriptionInput = instanceOfCreateSubscriptionInput;
|
|
18
18
|
exports.CreateSubscriptionInputFromJSON = CreateSubscriptionInputFromJSON;
|
|
19
19
|
exports.CreateSubscriptionInputFromJSONTyped = CreateSubscriptionInputFromJSONTyped;
|
|
20
20
|
exports.CreateSubscriptionInputToJSON = CreateSubscriptionInputToJSON;
|
|
21
21
|
exports.CreateSubscriptionInputToJSONTyped = CreateSubscriptionInputToJSONTyped;
|
|
22
|
+
var CreateSubscriptionBillingPeriodicityInput_1 = require("./CreateSubscriptionBillingPeriodicityInput");
|
|
22
23
|
var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.CreateSubscriptionInputPeriodicityUnitEnum = {
|
|
27
|
-
MONTH: 'month'
|
|
28
|
-
};
|
|
29
24
|
/**
|
|
30
25
|
* @export
|
|
31
26
|
*/
|
|
@@ -39,9 +34,9 @@ exports.CreateSubscriptionInputSubscriptionTypeEnum = {
|
|
|
39
34
|
function instanceOfCreateSubscriptionInput(value) {
|
|
40
35
|
if (!('locale' in value) || value['locale'] === undefined)
|
|
41
36
|
return false;
|
|
42
|
-
if (!('
|
|
37
|
+
if (!('installments' in value) || value['installments'] === undefined)
|
|
43
38
|
return false;
|
|
44
|
-
if (!('
|
|
39
|
+
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined)
|
|
45
40
|
return false;
|
|
46
41
|
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
47
42
|
return false;
|
|
@@ -58,8 +53,8 @@ function CreateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
53
|
}
|
|
59
54
|
return {
|
|
60
55
|
'locale': json['locale'],
|
|
61
|
-
'
|
|
62
|
-
'
|
|
56
|
+
'installments': json['installments'],
|
|
57
|
+
'billingPeriodicity': (0, CreateSubscriptionBillingPeriodicityInput_1.CreateSubscriptionBillingPeriodicityInputFromJSON)(json['billingPeriodicity']),
|
|
63
58
|
'domainName': json['domainName'],
|
|
64
59
|
'subscriptionType': json['subscriptionType'],
|
|
65
60
|
'email': json['email'] == null ? undefined : json['email'],
|
|
@@ -84,8 +79,8 @@ function CreateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
84
79
|
}
|
|
85
80
|
return {
|
|
86
81
|
'locale': value['locale'],
|
|
87
|
-
'
|
|
88
|
-
'
|
|
82
|
+
'installments': value['installments'],
|
|
83
|
+
'billingPeriodicity': (0, CreateSubscriptionBillingPeriodicityInput_1.CreateSubscriptionBillingPeriodicityInputToJSON)(value['billingPeriodicity']),
|
|
89
84
|
'domainName': value['domainName'],
|
|
90
85
|
'subscriptionType': value['subscriptionType'],
|
|
91
86
|
'email': value['email'],
|
|
@@ -41,6 +41,7 @@ export interface DomainTransferDetailSellerPayoutInvoiceDto {
|
|
|
41
41
|
export declare const DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum: {
|
|
42
42
|
readonly OPEN: "open";
|
|
43
43
|
readonly PAID: "paid";
|
|
44
|
+
readonly ERROR: "error";
|
|
44
45
|
readonly CANCELLED: "cancelled";
|
|
45
46
|
readonly REFUNDED: "refunded";
|
|
46
47
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
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 SubscriptionBillingPeriodicityDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionBillingPeriodicityDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SubscriptionBillingPeriodicityDto
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubscriptionBillingPeriodicityDto
|
|
28
|
+
*/
|
|
29
|
+
unit: SubscriptionBillingPeriodicityDtoUnitEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const SubscriptionBillingPeriodicityDtoUnitEnum: {
|
|
35
|
+
readonly WEEK: "week";
|
|
36
|
+
readonly MONTH: "month";
|
|
37
|
+
};
|
|
38
|
+
export type SubscriptionBillingPeriodicityDtoUnitEnum = typeof SubscriptionBillingPeriodicityDtoUnitEnum[keyof typeof SubscriptionBillingPeriodicityDtoUnitEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the SubscriptionBillingPeriodicityDto interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfSubscriptionBillingPeriodicityDto(value: object): value is SubscriptionBillingPeriodicityDto;
|
|
43
|
+
export declare function SubscriptionBillingPeriodicityDtoFromJSON(json: any): SubscriptionBillingPeriodicityDto;
|
|
44
|
+
export declare function SubscriptionBillingPeriodicityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionBillingPeriodicityDto;
|
|
45
|
+
export declare function SubscriptionBillingPeriodicityDtoToJSON(json: any): SubscriptionBillingPeriodicityDto;
|
|
46
|
+
export declare function SubscriptionBillingPeriodicityDtoToJSONTyped(value?: SubscriptionBillingPeriodicityDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.SubscriptionBillingPeriodicityDtoUnitEnum = void 0;
|
|
17
|
+
exports.instanceOfSubscriptionBillingPeriodicityDto = instanceOfSubscriptionBillingPeriodicityDto;
|
|
18
|
+
exports.SubscriptionBillingPeriodicityDtoFromJSON = SubscriptionBillingPeriodicityDtoFromJSON;
|
|
19
|
+
exports.SubscriptionBillingPeriodicityDtoFromJSONTyped = SubscriptionBillingPeriodicityDtoFromJSONTyped;
|
|
20
|
+
exports.SubscriptionBillingPeriodicityDtoToJSON = SubscriptionBillingPeriodicityDtoToJSON;
|
|
21
|
+
exports.SubscriptionBillingPeriodicityDtoToJSONTyped = SubscriptionBillingPeriodicityDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SubscriptionBillingPeriodicityDtoUnitEnum = {
|
|
26
|
+
WEEK: 'week',
|
|
27
|
+
MONTH: 'month'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the SubscriptionBillingPeriodicityDto interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfSubscriptionBillingPeriodicityDto(value) {
|
|
33
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('unit' in value) || value['unit'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function SubscriptionBillingPeriodicityDtoFromJSON(json) {
|
|
40
|
+
return SubscriptionBillingPeriodicityDtoFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function SubscriptionBillingPeriodicityDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'amount': json['amount'],
|
|
48
|
+
'unit': json['unit'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function SubscriptionBillingPeriodicityDtoToJSON(json) {
|
|
52
|
+
return SubscriptionBillingPeriodicityDtoToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function SubscriptionBillingPeriodicityDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'amount': value['amount'],
|
|
61
|
+
'unit': value['unit'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -13,6 +13,7 @@ import type { InvoiceItemDto } from './InvoiceItemDto';
|
|
|
13
13
|
import type { InvoiceTransactionDto } from './InvoiceTransactionDto';
|
|
14
14
|
import type { MoneyDto } from './MoneyDto';
|
|
15
15
|
import type { SubscriptionDomainDto } from './SubscriptionDomainDto';
|
|
16
|
+
import type { SubscriptionBillingPeriodicityDto } from './SubscriptionBillingPeriodicityDto';
|
|
16
17
|
import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
|
|
17
18
|
import type { AddressDto } from './AddressDto';
|
|
18
19
|
/**
|
|
@@ -122,13 +123,13 @@ export interface SubscriptionDto {
|
|
|
122
123
|
* @type {number}
|
|
123
124
|
* @memberof SubscriptionDto
|
|
124
125
|
*/
|
|
125
|
-
|
|
126
|
+
installments: number;
|
|
126
127
|
/**
|
|
127
128
|
*
|
|
128
|
-
* @type {
|
|
129
|
+
* @type {SubscriptionBillingPeriodicityDto}
|
|
129
130
|
* @memberof SubscriptionDto
|
|
130
131
|
*/
|
|
131
|
-
|
|
132
|
+
billingPeriodicity: SubscriptionBillingPeriodicityDto;
|
|
132
133
|
}
|
|
133
134
|
/**
|
|
134
135
|
* @export
|
|
@@ -138,6 +139,7 @@ export declare const SubscriptionDtoStatusEnum: {
|
|
|
138
139
|
readonly ACTIVE: "active";
|
|
139
140
|
readonly PAUSED: "paused";
|
|
140
141
|
readonly CANCELLED: "cancelled";
|
|
142
|
+
readonly FINISHED: "finished";
|
|
141
143
|
};
|
|
142
144
|
export type SubscriptionDtoStatusEnum = typeof SubscriptionDtoStatusEnum[keyof typeof SubscriptionDtoStatusEnum];
|
|
143
145
|
/**
|
|
@@ -148,13 +150,6 @@ export declare const SubscriptionDtoTypeEnum: {
|
|
|
148
150
|
readonly LEASE_TO_OWN: "lease_to_own";
|
|
149
151
|
};
|
|
150
152
|
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
153
|
/**
|
|
159
154
|
* Check if a given object implements the SubscriptionDto interface.
|
|
160
155
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.SubscriptionDtoTypeEnum = exports.SubscriptionDtoStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfSubscriptionDto = instanceOfSubscriptionDto;
|
|
18
18
|
exports.SubscriptionDtoFromJSON = SubscriptionDtoFromJSON;
|
|
19
19
|
exports.SubscriptionDtoFromJSONTyped = SubscriptionDtoFromJSONTyped;
|
|
@@ -23,6 +23,7 @@ var InvoiceItemDto_1 = require("./InvoiceItemDto");
|
|
|
23
23
|
var InvoiceTransactionDto_1 = require("./InvoiceTransactionDto");
|
|
24
24
|
var MoneyDto_1 = require("./MoneyDto");
|
|
25
25
|
var SubscriptionDomainDto_1 = require("./SubscriptionDomainDto");
|
|
26
|
+
var SubscriptionBillingPeriodicityDto_1 = require("./SubscriptionBillingPeriodicityDto");
|
|
26
27
|
var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
|
|
27
28
|
var AddressDto_1 = require("./AddressDto");
|
|
28
29
|
/**
|
|
@@ -32,7 +33,8 @@ exports.SubscriptionDtoStatusEnum = {
|
|
|
32
33
|
DRAFT: 'draft',
|
|
33
34
|
ACTIVE: 'active',
|
|
34
35
|
PAUSED: 'paused',
|
|
35
|
-
CANCELLED: 'cancelled'
|
|
36
|
+
CANCELLED: 'cancelled',
|
|
37
|
+
FINISHED: 'finished'
|
|
36
38
|
};
|
|
37
39
|
/**
|
|
38
40
|
* @export
|
|
@@ -41,12 +43,6 @@ exports.SubscriptionDtoTypeEnum = {
|
|
|
41
43
|
RENT: 'rent',
|
|
42
44
|
LEASE_TO_OWN: 'lease_to_own'
|
|
43
45
|
};
|
|
44
|
-
/**
|
|
45
|
-
* @export
|
|
46
|
-
*/
|
|
47
|
-
exports.SubscriptionDtoPeriodicityUnitEnum = {
|
|
48
|
-
MONTH: 'month'
|
|
49
|
-
};
|
|
50
46
|
/**
|
|
51
47
|
* Check if a given object implements the SubscriptionDto interface.
|
|
52
48
|
*/
|
|
@@ -83,9 +79,9 @@ function instanceOfSubscriptionDto(value) {
|
|
|
83
79
|
return false;
|
|
84
80
|
if (!('type' in value) || value['type'] === undefined)
|
|
85
81
|
return false;
|
|
86
|
-
if (!('
|
|
82
|
+
if (!('installments' in value) || value['installments'] === undefined)
|
|
87
83
|
return false;
|
|
88
|
-
if (!('
|
|
84
|
+
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined)
|
|
89
85
|
return false;
|
|
90
86
|
return true;
|
|
91
87
|
}
|
|
@@ -113,8 +109,8 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
113
109
|
'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoFromJSON)(json['transaction']),
|
|
114
110
|
'domain': (0, SubscriptionDomainDto_1.SubscriptionDomainDtoFromJSON)(json['domain']),
|
|
115
111
|
'type': json['type'],
|
|
116
|
-
'
|
|
117
|
-
'
|
|
112
|
+
'installments': json['installments'],
|
|
113
|
+
'billingPeriodicity': (0, SubscriptionBillingPeriodicityDto_1.SubscriptionBillingPeriodicityDtoFromJSON)(json['billingPeriodicity']),
|
|
118
114
|
};
|
|
119
115
|
}
|
|
120
116
|
function SubscriptionDtoToJSON(json) {
|
|
@@ -142,7 +138,7 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
142
138
|
'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoToJSON)(value['transaction']),
|
|
143
139
|
'domain': (0, SubscriptionDomainDto_1.SubscriptionDomainDtoToJSON)(value['domain']),
|
|
144
140
|
'type': value['type'],
|
|
145
|
-
'
|
|
146
|
-
'
|
|
141
|
+
'installments': value['installments'],
|
|
142
|
+
'billingPeriodicity': (0, SubscriptionBillingPeriodicityDto_1.SubscriptionBillingPeriodicityDtoToJSON)(value['billingPeriodicity']),
|
|
147
143
|
};
|
|
148
144
|
}
|
|
@@ -82,6 +82,7 @@ export declare const SubscriptionListItemDtoStatusEnum: {
|
|
|
82
82
|
readonly ACTIVE: "active";
|
|
83
83
|
readonly PAUSED: "paused";
|
|
84
84
|
readonly CANCELLED: "cancelled";
|
|
85
|
+
readonly FINISHED: "finished";
|
|
85
86
|
};
|
|
86
87
|
export type SubscriptionListItemDtoStatusEnum = typeof SubscriptionListItemDtoStatusEnum[keyof typeof SubscriptionListItemDtoStatusEnum];
|
|
87
88
|
/**
|
|
@@ -0,0 +1,46 @@
|
|
|
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 UpdateSubscriptionBillingPeriodicityInput
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateSubscriptionBillingPeriodicityInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UpdateSubscriptionBillingPeriodicityInput
|
|
22
|
+
*/
|
|
23
|
+
amount?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateSubscriptionBillingPeriodicityInput
|
|
28
|
+
*/
|
|
29
|
+
unit?: UpdateSubscriptionBillingPeriodicityInputUnitEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const UpdateSubscriptionBillingPeriodicityInputUnitEnum: {
|
|
35
|
+
readonly WEEK: "week";
|
|
36
|
+
readonly MONTH: "month";
|
|
37
|
+
};
|
|
38
|
+
export type UpdateSubscriptionBillingPeriodicityInputUnitEnum = typeof UpdateSubscriptionBillingPeriodicityInputUnitEnum[keyof typeof UpdateSubscriptionBillingPeriodicityInputUnitEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the UpdateSubscriptionBillingPeriodicityInput interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfUpdateSubscriptionBillingPeriodicityInput(value: object): value is UpdateSubscriptionBillingPeriodicityInput;
|
|
43
|
+
export declare function UpdateSubscriptionBillingPeriodicityInputFromJSON(json: any): UpdateSubscriptionBillingPeriodicityInput;
|
|
44
|
+
export declare function UpdateSubscriptionBillingPeriodicityInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubscriptionBillingPeriodicityInput;
|
|
45
|
+
export declare function UpdateSubscriptionBillingPeriodicityInputToJSON(json: any): UpdateSubscriptionBillingPeriodicityInput;
|
|
46
|
+
export declare function UpdateSubscriptionBillingPeriodicityInputToJSONTyped(value?: UpdateSubscriptionBillingPeriodicityInput | null, ignoreDiscriminator?: boolean): any;
|