@randock/nameshift-api-client 0.0.213 → 0.0.214
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 +1 -0
- package/README.md +3 -3
- package/dist/models/BuyerSubscriptionListItemDto.d.ts +24 -0
- package/dist/models/BuyerSubscriptionListItemDto.js +16 -0
- package/dist/models/SellerSubscriptionListItemDto.d.ts +19 -1
- package/dist/models/SellerSubscriptionListItemDto.js +12 -0
- package/dist/models/SubscriptionListItemBillingPeriodicityDto.d.ts +46 -0
- package/dist/models/SubscriptionListItemBillingPeriodicityDto.js +63 -0
- package/dist/models/SubscriptionListItemDto.d.ts +68 -1
- package/dist/models/SubscriptionListItemDto.js +45 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/BuyerSubscriptionListItemDto.ts +36 -0
- package/src/models/SellerSubscriptionListItemDto.ts +28 -1
- package/src/models/SubscriptionListItemBillingPeriodicityDto.ts +86 -0
- package/src/models/SubscriptionListItemDto.ts +107 -1
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -200,6 +200,7 @@ src/models/SubscriptionDetailsDomainSellerUserDto.ts
|
|
|
200
200
|
src/models/SubscriptionDetailsDto.ts
|
|
201
201
|
src/models/SubscriptionDomainDto.ts
|
|
202
202
|
src/models/SubscriptionDto.ts
|
|
203
|
+
src/models/SubscriptionListItemBillingPeriodicityDto.ts
|
|
203
204
|
src/models/SubscriptionListItemDto.ts
|
|
204
205
|
src/models/SubscriptionListItemDtoBuyerInformation.ts
|
|
205
206
|
src/models/SubscriptionListItemDtoDomainInformation.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.214
|
|
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.214 --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
|
+
7b3418fbeaf246469529434be271707ce6300857ce17aa49a3453d0b70418840156642c0bc5246e2e5353d5f4dfea921
|
|
@@ -65,6 +65,30 @@ export interface BuyerSubscriptionListItemDto {
|
|
|
65
65
|
* @memberof BuyerSubscriptionListItemDto
|
|
66
66
|
*/
|
|
67
67
|
basePrice: MoneyDto | null;
|
|
68
|
+
/**
|
|
69
|
+
* The subscription buyer recurring price
|
|
70
|
+
* @type {MoneyDto}
|
|
71
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
72
|
+
*/
|
|
73
|
+
recurringPrice: MoneyDto | null;
|
|
74
|
+
/**
|
|
75
|
+
* The subscription buyer installments number
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
78
|
+
*/
|
|
79
|
+
installments: number;
|
|
80
|
+
/**
|
|
81
|
+
* The subscription buyer paid installments number
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
84
|
+
*/
|
|
85
|
+
paidInstallmentsNumber: number;
|
|
86
|
+
/**
|
|
87
|
+
* The subscription renew date
|
|
88
|
+
* @type {Date}
|
|
89
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
90
|
+
*/
|
|
91
|
+
renewAt: Date;
|
|
68
92
|
}
|
|
69
93
|
/**
|
|
70
94
|
* @export
|
|
@@ -58,6 +58,14 @@ function instanceOfBuyerSubscriptionListItemDto(value) {
|
|
|
58
58
|
return false;
|
|
59
59
|
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
60
60
|
return false;
|
|
61
|
+
if (!('recurringPrice' in value) || value['recurringPrice'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('installments' in value) || value['installments'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('paidInstallmentsNumber' in value) || value['paidInstallmentsNumber'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('renewAt' in value) || value['renewAt'] === undefined)
|
|
68
|
+
return false;
|
|
61
69
|
return true;
|
|
62
70
|
}
|
|
63
71
|
function BuyerSubscriptionListItemDtoFromJSON(json) {
|
|
@@ -76,6 +84,10 @@ function BuyerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
84
|
'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
|
|
77
85
|
'domain': (0, BuyerSubscriptionListItemDtoDomainInformation_1.BuyerSubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
|
|
78
86
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
87
|
+
'recurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringPrice']),
|
|
88
|
+
'installments': json['installments'],
|
|
89
|
+
'paidInstallmentsNumber': json['paidInstallmentsNumber'],
|
|
90
|
+
'renewAt': (new Date(json['renewAt'])),
|
|
79
91
|
};
|
|
80
92
|
}
|
|
81
93
|
function BuyerSubscriptionListItemDtoToJSON(json) {
|
|
@@ -95,5 +107,9 @@ function BuyerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
95
107
|
'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : value['scheduledCancellationAt'].toISOString()),
|
|
96
108
|
'domain': (0, BuyerSubscriptionListItemDtoDomainInformation_1.BuyerSubscriptionListItemDtoDomainInformationToJSON)(value['domain']),
|
|
97
109
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
110
|
+
'recurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringPrice']),
|
|
111
|
+
'installments': value['installments'],
|
|
112
|
+
'paidInstallmentsNumber': value['paidInstallmentsNumber'],
|
|
113
|
+
'renewAt': ((value['renewAt']).toISOString()),
|
|
98
114
|
};
|
|
99
115
|
}
|
|
@@ -58,7 +58,25 @@ export interface SellerSubscriptionListItemDto {
|
|
|
58
58
|
* @type {MoneyDto}
|
|
59
59
|
* @memberof SellerSubscriptionListItemDto
|
|
60
60
|
*/
|
|
61
|
-
basePrice: MoneyDto
|
|
61
|
+
basePrice: MoneyDto;
|
|
62
|
+
/**
|
|
63
|
+
* The subscription seller recurring price
|
|
64
|
+
* @type {MoneyDto}
|
|
65
|
+
* @memberof SellerSubscriptionListItemDto
|
|
66
|
+
*/
|
|
67
|
+
recurringPrice: MoneyDto;
|
|
68
|
+
/**
|
|
69
|
+
* The subscription seller installments number
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof SellerSubscriptionListItemDto
|
|
72
|
+
*/
|
|
73
|
+
installments: number;
|
|
74
|
+
/**
|
|
75
|
+
* The subscription seller paid installments number
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof SellerSubscriptionListItemDto
|
|
78
|
+
*/
|
|
79
|
+
paidInstallmentsNumber: number;
|
|
62
80
|
}
|
|
63
81
|
/**
|
|
64
82
|
* @export
|
|
@@ -56,6 +56,12 @@ function instanceOfSellerSubscriptionListItemDto(value) {
|
|
|
56
56
|
return false;
|
|
57
57
|
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
58
58
|
return false;
|
|
59
|
+
if (!('recurringPrice' in value) || value['recurringPrice'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('installments' in value) || value['installments'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('paidInstallmentsNumber' in value) || value['paidInstallmentsNumber'] === undefined)
|
|
64
|
+
return false;
|
|
59
65
|
return true;
|
|
60
66
|
}
|
|
61
67
|
function SellerSubscriptionListItemDtoFromJSON(json) {
|
|
@@ -73,6 +79,9 @@ function SellerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
73
79
|
'createdAt': (new Date(json['createdAt'])),
|
|
74
80
|
'domain': (0, SellerSubscriptionListItemDtoDomainInformation_1.SellerSubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
|
|
75
81
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
82
|
+
'recurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringPrice']),
|
|
83
|
+
'installments': json['installments'],
|
|
84
|
+
'paidInstallmentsNumber': json['paidInstallmentsNumber'],
|
|
76
85
|
};
|
|
77
86
|
}
|
|
78
87
|
function SellerSubscriptionListItemDtoToJSON(json) {
|
|
@@ -91,5 +100,8 @@ function SellerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
91
100
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
92
101
|
'domain': (0, SellerSubscriptionListItemDtoDomainInformation_1.SellerSubscriptionListItemDtoDomainInformationToJSON)(value['domain']),
|
|
93
102
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
103
|
+
'recurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringPrice']),
|
|
104
|
+
'installments': value['installments'],
|
|
105
|
+
'paidInstallmentsNumber': value['paidInstallmentsNumber'],
|
|
94
106
|
};
|
|
95
107
|
}
|
|
@@ -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 SubscriptionListItemBillingPeriodicityDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionListItemBillingPeriodicityDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SubscriptionListItemBillingPeriodicityDto
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubscriptionListItemBillingPeriodicityDto
|
|
28
|
+
*/
|
|
29
|
+
unit: SubscriptionListItemBillingPeriodicityDtoUnitEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const SubscriptionListItemBillingPeriodicityDtoUnitEnum: {
|
|
35
|
+
readonly WEEK: "week";
|
|
36
|
+
readonly MONTH: "month";
|
|
37
|
+
};
|
|
38
|
+
export type SubscriptionListItemBillingPeriodicityDtoUnitEnum = typeof SubscriptionListItemBillingPeriodicityDtoUnitEnum[keyof typeof SubscriptionListItemBillingPeriodicityDtoUnitEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the SubscriptionListItemBillingPeriodicityDto interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfSubscriptionListItemBillingPeriodicityDto(value: object): value is SubscriptionListItemBillingPeriodicityDto;
|
|
43
|
+
export declare function SubscriptionListItemBillingPeriodicityDtoFromJSON(json: any): SubscriptionListItemBillingPeriodicityDto;
|
|
44
|
+
export declare function SubscriptionListItemBillingPeriodicityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemBillingPeriodicityDto;
|
|
45
|
+
export declare function SubscriptionListItemBillingPeriodicityDtoToJSON(json: any): SubscriptionListItemBillingPeriodicityDto;
|
|
46
|
+
export declare function SubscriptionListItemBillingPeriodicityDtoToJSONTyped(value?: SubscriptionListItemBillingPeriodicityDto | 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.SubscriptionListItemBillingPeriodicityDtoUnitEnum = void 0;
|
|
17
|
+
exports.instanceOfSubscriptionListItemBillingPeriodicityDto = instanceOfSubscriptionListItemBillingPeriodicityDto;
|
|
18
|
+
exports.SubscriptionListItemBillingPeriodicityDtoFromJSON = SubscriptionListItemBillingPeriodicityDtoFromJSON;
|
|
19
|
+
exports.SubscriptionListItemBillingPeriodicityDtoFromJSONTyped = SubscriptionListItemBillingPeriodicityDtoFromJSONTyped;
|
|
20
|
+
exports.SubscriptionListItemBillingPeriodicityDtoToJSON = SubscriptionListItemBillingPeriodicityDtoToJSON;
|
|
21
|
+
exports.SubscriptionListItemBillingPeriodicityDtoToJSONTyped = SubscriptionListItemBillingPeriodicityDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SubscriptionListItemBillingPeriodicityDtoUnitEnum = {
|
|
26
|
+
WEEK: 'week',
|
|
27
|
+
MONTH: 'month'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the SubscriptionListItemBillingPeriodicityDto interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfSubscriptionListItemBillingPeriodicityDto(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 SubscriptionListItemBillingPeriodicityDtoFromJSON(json) {
|
|
40
|
+
return SubscriptionListItemBillingPeriodicityDtoFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function SubscriptionListItemBillingPeriodicityDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'amount': json['amount'],
|
|
48
|
+
'unit': json['unit'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function SubscriptionListItemBillingPeriodicityDtoToJSON(json) {
|
|
52
|
+
return SubscriptionListItemBillingPeriodicityDtoToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function SubscriptionListItemBillingPeriodicityDtoToJSONTyped(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 { SubscriptionListItemBillingPeriodicityDto } from './SubscriptionListItemBillingPeriodicityDto';
|
|
12
13
|
import type { SubscriptionListItemDtoBuyerInformation } from './SubscriptionListItemDtoBuyerInformation';
|
|
13
14
|
import type { SubscriptionListItemDtoSellerAccount } from './SubscriptionListItemDtoSellerAccount';
|
|
14
15
|
import type { MoneyDto } from './MoneyDto';
|
|
@@ -78,7 +79,73 @@ export interface SubscriptionListItemDto {
|
|
|
78
79
|
* @type {MoneyDto}
|
|
79
80
|
* @memberof SubscriptionListItemDto
|
|
80
81
|
*/
|
|
81
|
-
basePrice: MoneyDto
|
|
82
|
+
basePrice: MoneyDto;
|
|
83
|
+
/**
|
|
84
|
+
* The subscription recurring price
|
|
85
|
+
* @type {MoneyDto}
|
|
86
|
+
* @memberof SubscriptionListItemDto
|
|
87
|
+
*/
|
|
88
|
+
buyerRecurringPrice: MoneyDto;
|
|
89
|
+
/**
|
|
90
|
+
* The subscription seller recurring price
|
|
91
|
+
* @type {MoneyDto}
|
|
92
|
+
* @memberof SubscriptionListItemDto
|
|
93
|
+
*/
|
|
94
|
+
sellerRecurringPrice: MoneyDto;
|
|
95
|
+
/**
|
|
96
|
+
* The subscription installments number
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof SubscriptionListItemDto
|
|
99
|
+
*/
|
|
100
|
+
installments: number;
|
|
101
|
+
/**
|
|
102
|
+
* The subscription paid installments number
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof SubscriptionListItemDto
|
|
105
|
+
*/
|
|
106
|
+
paidBuyerInstallmentsNumber: number;
|
|
107
|
+
/**
|
|
108
|
+
* The subscription paid seller installments number
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @memberof SubscriptionListItemDto
|
|
111
|
+
*/
|
|
112
|
+
paidSellerInstallmentsNumber: number;
|
|
113
|
+
/**
|
|
114
|
+
* The subscription renew date
|
|
115
|
+
* @type {Date}
|
|
116
|
+
* @memberof SubscriptionListItemDto
|
|
117
|
+
*/
|
|
118
|
+
renewAt: Date;
|
|
119
|
+
/**
|
|
120
|
+
* The subscription renew retry date
|
|
121
|
+
* @type {Date}
|
|
122
|
+
* @memberof SubscriptionListItemDto
|
|
123
|
+
*/
|
|
124
|
+
renewRetryAt: Date;
|
|
125
|
+
/**
|
|
126
|
+
* The subscription recurring markup percentage
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @memberof SubscriptionListItemDto
|
|
129
|
+
*/
|
|
130
|
+
recurringMarkupPercentage: number;
|
|
131
|
+
/**
|
|
132
|
+
* The subscription recurring markup price
|
|
133
|
+
* @type {MoneyDto}
|
|
134
|
+
* @memberof SubscriptionListItemDto
|
|
135
|
+
*/
|
|
136
|
+
recurringMarkupPrice: MoneyDto;
|
|
137
|
+
/**
|
|
138
|
+
* The subscription billing periodicity
|
|
139
|
+
* @type {SubscriptionListItemBillingPeriodicityDto}
|
|
140
|
+
* @memberof SubscriptionListItemDto
|
|
141
|
+
*/
|
|
142
|
+
billingPeriodicity: SubscriptionListItemBillingPeriodicityDto;
|
|
143
|
+
/**
|
|
144
|
+
* The subscription seller lease to own kickback percentage
|
|
145
|
+
* @type {number}
|
|
146
|
+
* @memberof SubscriptionListItemDto
|
|
147
|
+
*/
|
|
148
|
+
sellerLeaseToOwnKickBackPercentage: number;
|
|
82
149
|
}
|
|
83
150
|
/**
|
|
84
151
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.SubscriptionListItemDtoFromJSON = SubscriptionListItemDtoFromJSON;
|
|
|
19
19
|
exports.SubscriptionListItemDtoFromJSONTyped = SubscriptionListItemDtoFromJSONTyped;
|
|
20
20
|
exports.SubscriptionListItemDtoToJSON = SubscriptionListItemDtoToJSON;
|
|
21
21
|
exports.SubscriptionListItemDtoToJSONTyped = SubscriptionListItemDtoToJSONTyped;
|
|
22
|
+
var SubscriptionListItemBillingPeriodicityDto_1 = require("./SubscriptionListItemBillingPeriodicityDto");
|
|
22
23
|
var SubscriptionListItemDtoBuyerInformation_1 = require("./SubscriptionListItemDtoBuyerInformation");
|
|
23
24
|
var SubscriptionListItemDtoSellerAccount_1 = require("./SubscriptionListItemDtoSellerAccount");
|
|
24
25
|
var MoneyDto_1 = require("./MoneyDto");
|
|
@@ -64,6 +65,28 @@ function instanceOfSubscriptionListItemDto(value) {
|
|
|
64
65
|
return false;
|
|
65
66
|
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
66
67
|
return false;
|
|
68
|
+
if (!('buyerRecurringPrice' in value) || value['buyerRecurringPrice'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('sellerRecurringPrice' in value) || value['sellerRecurringPrice'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('installments' in value) || value['installments'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('paidBuyerInstallmentsNumber' in value) || value['paidBuyerInstallmentsNumber'] === undefined)
|
|
75
|
+
return false;
|
|
76
|
+
if (!('paidSellerInstallmentsNumber' in value) || value['paidSellerInstallmentsNumber'] === undefined)
|
|
77
|
+
return false;
|
|
78
|
+
if (!('renewAt' in value) || value['renewAt'] === undefined)
|
|
79
|
+
return false;
|
|
80
|
+
if (!('renewRetryAt' in value) || value['renewRetryAt'] === undefined)
|
|
81
|
+
return false;
|
|
82
|
+
if (!('recurringMarkupPercentage' in value) || value['recurringMarkupPercentage'] === undefined)
|
|
83
|
+
return false;
|
|
84
|
+
if (!('recurringMarkupPrice' in value) || value['recurringMarkupPrice'] === undefined)
|
|
85
|
+
return false;
|
|
86
|
+
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined)
|
|
87
|
+
return false;
|
|
88
|
+
if (!('sellerLeaseToOwnKickBackPercentage' in value) || value['sellerLeaseToOwnKickBackPercentage'] === undefined)
|
|
89
|
+
return false;
|
|
67
90
|
return true;
|
|
68
91
|
}
|
|
69
92
|
function SubscriptionListItemDtoFromJSON(json) {
|
|
@@ -84,6 +107,17 @@ function SubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
84
107
|
'sellerAccount': (0, SubscriptionListItemDtoSellerAccount_1.SubscriptionListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
|
|
85
108
|
'buyerInformation': (0, SubscriptionListItemDtoBuyerInformation_1.SubscriptionListItemDtoBuyerInformationFromJSON)(json['buyerInformation']),
|
|
86
109
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
110
|
+
'buyerRecurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyerRecurringPrice']),
|
|
111
|
+
'sellerRecurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['sellerRecurringPrice']),
|
|
112
|
+
'installments': json['installments'],
|
|
113
|
+
'paidBuyerInstallmentsNumber': json['paidBuyerInstallmentsNumber'],
|
|
114
|
+
'paidSellerInstallmentsNumber': json['paidSellerInstallmentsNumber'],
|
|
115
|
+
'renewAt': (new Date(json['renewAt'])),
|
|
116
|
+
'renewRetryAt': (new Date(json['renewRetryAt'])),
|
|
117
|
+
'recurringMarkupPercentage': json['recurringMarkupPercentage'],
|
|
118
|
+
'recurringMarkupPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringMarkupPrice']),
|
|
119
|
+
'billingPeriodicity': (0, SubscriptionListItemBillingPeriodicityDto_1.SubscriptionListItemBillingPeriodicityDtoFromJSON)(json['billingPeriodicity']),
|
|
120
|
+
'sellerLeaseToOwnKickBackPercentage': json['sellerLeaseToOwnKickBackPercentage'],
|
|
87
121
|
};
|
|
88
122
|
}
|
|
89
123
|
function SubscriptionListItemDtoToJSON(json) {
|
|
@@ -105,5 +139,16 @@ function SubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
105
139
|
'sellerAccount': (0, SubscriptionListItemDtoSellerAccount_1.SubscriptionListItemDtoSellerAccountToJSON)(value['sellerAccount']),
|
|
106
140
|
'buyerInformation': (0, SubscriptionListItemDtoBuyerInformation_1.SubscriptionListItemDtoBuyerInformationToJSON)(value['buyerInformation']),
|
|
107
141
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
142
|
+
'buyerRecurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyerRecurringPrice']),
|
|
143
|
+
'sellerRecurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['sellerRecurringPrice']),
|
|
144
|
+
'installments': value['installments'],
|
|
145
|
+
'paidBuyerInstallmentsNumber': value['paidBuyerInstallmentsNumber'],
|
|
146
|
+
'paidSellerInstallmentsNumber': value['paidSellerInstallmentsNumber'],
|
|
147
|
+
'renewAt': ((value['renewAt']).toISOString()),
|
|
148
|
+
'renewRetryAt': ((value['renewRetryAt']).toISOString()),
|
|
149
|
+
'recurringMarkupPercentage': value['recurringMarkupPercentage'],
|
|
150
|
+
'recurringMarkupPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringMarkupPrice']),
|
|
151
|
+
'billingPeriodicity': (0, SubscriptionListItemBillingPeriodicityDto_1.SubscriptionListItemBillingPeriodicityDtoToJSON)(value['billingPeriodicity']),
|
|
152
|
+
'sellerLeaseToOwnKickBackPercentage': value['sellerLeaseToOwnKickBackPercentage'],
|
|
108
153
|
};
|
|
109
154
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -174,6 +174,7 @@ export * from './SubscriptionDetailsDomainSellerUserDto';
|
|
|
174
174
|
export * from './SubscriptionDetailsDto';
|
|
175
175
|
export * from './SubscriptionDomainDto';
|
|
176
176
|
export * from './SubscriptionDto';
|
|
177
|
+
export * from './SubscriptionListItemBillingPeriodicityDto';
|
|
177
178
|
export * from './SubscriptionListItemDto';
|
|
178
179
|
export * from './SubscriptionListItemDtoBuyerInformation';
|
|
179
180
|
export * from './SubscriptionListItemDtoDomainInformation';
|
package/dist/models/index.js
CHANGED
|
@@ -192,6 +192,7 @@ __exportStar(require("./SubscriptionDetailsDomainSellerUserDto"), exports);
|
|
|
192
192
|
__exportStar(require("./SubscriptionDetailsDto"), exports);
|
|
193
193
|
__exportStar(require("./SubscriptionDomainDto"), exports);
|
|
194
194
|
__exportStar(require("./SubscriptionDto"), exports);
|
|
195
|
+
__exportStar(require("./SubscriptionListItemBillingPeriodicityDto"), exports);
|
|
195
196
|
__exportStar(require("./SubscriptionListItemDto"), exports);
|
|
196
197
|
__exportStar(require("./SubscriptionListItemDtoBuyerInformation"), exports);
|
|
197
198
|
__exportStar(require("./SubscriptionListItemDtoDomainInformation"), exports);
|
package/package.json
CHANGED
|
@@ -82,6 +82,30 @@ export interface BuyerSubscriptionListItemDto {
|
|
|
82
82
|
* @memberof BuyerSubscriptionListItemDto
|
|
83
83
|
*/
|
|
84
84
|
basePrice: MoneyDto | null;
|
|
85
|
+
/**
|
|
86
|
+
* The subscription buyer recurring price
|
|
87
|
+
* @type {MoneyDto}
|
|
88
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
89
|
+
*/
|
|
90
|
+
recurringPrice: MoneyDto | null;
|
|
91
|
+
/**
|
|
92
|
+
* The subscription buyer installments number
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
95
|
+
*/
|
|
96
|
+
installments: number;
|
|
97
|
+
/**
|
|
98
|
+
* The subscription buyer paid installments number
|
|
99
|
+
* @type {number}
|
|
100
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
101
|
+
*/
|
|
102
|
+
paidInstallmentsNumber: number;
|
|
103
|
+
/**
|
|
104
|
+
* The subscription renew date
|
|
105
|
+
* @type {Date}
|
|
106
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
107
|
+
*/
|
|
108
|
+
renewAt: Date;
|
|
85
109
|
}
|
|
86
110
|
|
|
87
111
|
|
|
@@ -119,6 +143,10 @@ export function instanceOfBuyerSubscriptionListItemDto(value: object): value is
|
|
|
119
143
|
if (!('scheduledCancellationAt' in value) || value['scheduledCancellationAt'] === undefined) return false;
|
|
120
144
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
121
145
|
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
146
|
+
if (!('recurringPrice' in value) || value['recurringPrice'] === undefined) return false;
|
|
147
|
+
if (!('installments' in value) || value['installments'] === undefined) return false;
|
|
148
|
+
if (!('paidInstallmentsNumber' in value) || value['paidInstallmentsNumber'] === undefined) return false;
|
|
149
|
+
if (!('renewAt' in value) || value['renewAt'] === undefined) return false;
|
|
122
150
|
return true;
|
|
123
151
|
}
|
|
124
152
|
|
|
@@ -140,6 +168,10 @@ export function BuyerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscr
|
|
|
140
168
|
'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
|
|
141
169
|
'domain': BuyerSubscriptionListItemDtoDomainInformationFromJSON(json['domain']),
|
|
142
170
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
171
|
+
'recurringPrice': MoneyDtoFromJSON(json['recurringPrice']),
|
|
172
|
+
'installments': json['installments'],
|
|
173
|
+
'paidInstallmentsNumber': json['paidInstallmentsNumber'],
|
|
174
|
+
'renewAt': (new Date(json['renewAt'])),
|
|
143
175
|
};
|
|
144
176
|
}
|
|
145
177
|
|
|
@@ -162,6 +194,10 @@ export function BuyerSubscriptionListItemDtoToJSONTyped(value?: BuyerSubscriptio
|
|
|
162
194
|
'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : (value['scheduledCancellationAt'] as any).toISOString()),
|
|
163
195
|
'domain': BuyerSubscriptionListItemDtoDomainInformationToJSON(value['domain']),
|
|
164
196
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
197
|
+
'recurringPrice': MoneyDtoToJSON(value['recurringPrice']),
|
|
198
|
+
'installments': value['installments'],
|
|
199
|
+
'paidInstallmentsNumber': value['paidInstallmentsNumber'],
|
|
200
|
+
'renewAt': ((value['renewAt']).toISOString()),
|
|
165
201
|
};
|
|
166
202
|
}
|
|
167
203
|
|
|
@@ -75,7 +75,25 @@ export interface SellerSubscriptionListItemDto {
|
|
|
75
75
|
* @type {MoneyDto}
|
|
76
76
|
* @memberof SellerSubscriptionListItemDto
|
|
77
77
|
*/
|
|
78
|
-
basePrice: MoneyDto
|
|
78
|
+
basePrice: MoneyDto;
|
|
79
|
+
/**
|
|
80
|
+
* The subscription seller recurring price
|
|
81
|
+
* @type {MoneyDto}
|
|
82
|
+
* @memberof SellerSubscriptionListItemDto
|
|
83
|
+
*/
|
|
84
|
+
recurringPrice: MoneyDto;
|
|
85
|
+
/**
|
|
86
|
+
* The subscription seller installments number
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof SellerSubscriptionListItemDto
|
|
89
|
+
*/
|
|
90
|
+
installments: number;
|
|
91
|
+
/**
|
|
92
|
+
* The subscription seller paid installments number
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof SellerSubscriptionListItemDto
|
|
95
|
+
*/
|
|
96
|
+
paidInstallmentsNumber: number;
|
|
79
97
|
}
|
|
80
98
|
|
|
81
99
|
|
|
@@ -112,6 +130,9 @@ export function instanceOfSellerSubscriptionListItemDto(value: object): value is
|
|
|
112
130
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
113
131
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
114
132
|
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
133
|
+
if (!('recurringPrice' in value) || value['recurringPrice'] === undefined) return false;
|
|
134
|
+
if (!('installments' in value) || value['installments'] === undefined) return false;
|
|
135
|
+
if (!('paidInstallmentsNumber' in value) || value['paidInstallmentsNumber'] === undefined) return false;
|
|
115
136
|
return true;
|
|
116
137
|
}
|
|
117
138
|
|
|
@@ -132,6 +153,9 @@ export function SellerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDisc
|
|
|
132
153
|
'createdAt': (new Date(json['createdAt'])),
|
|
133
154
|
'domain': SellerSubscriptionListItemDtoDomainInformationFromJSON(json['domain']),
|
|
134
155
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
156
|
+
'recurringPrice': MoneyDtoFromJSON(json['recurringPrice']),
|
|
157
|
+
'installments': json['installments'],
|
|
158
|
+
'paidInstallmentsNumber': json['paidInstallmentsNumber'],
|
|
135
159
|
};
|
|
136
160
|
}
|
|
137
161
|
|
|
@@ -153,6 +177,9 @@ export function SellerSubscriptionListItemDtoToJSONTyped(value?: SellerSubscript
|
|
|
153
177
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
154
178
|
'domain': SellerSubscriptionListItemDtoDomainInformationToJSON(value['domain']),
|
|
155
179
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
180
|
+
'recurringPrice': MoneyDtoToJSON(value['recurringPrice']),
|
|
181
|
+
'installments': value['installments'],
|
|
182
|
+
'paidInstallmentsNumber': value['paidInstallmentsNumber'],
|
|
156
183
|
};
|
|
157
184
|
}
|
|
158
185
|
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SubscriptionListItemBillingPeriodicityDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SubscriptionListItemBillingPeriodicityDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof SubscriptionListItemBillingPeriodicityDto
|
|
26
|
+
*/
|
|
27
|
+
amount: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SubscriptionListItemBillingPeriodicityDto
|
|
32
|
+
*/
|
|
33
|
+
unit: SubscriptionListItemBillingPeriodicityDtoUnitEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const SubscriptionListItemBillingPeriodicityDtoUnitEnum = {
|
|
41
|
+
WEEK: 'week',
|
|
42
|
+
MONTH: 'month'
|
|
43
|
+
} as const;
|
|
44
|
+
export type SubscriptionListItemBillingPeriodicityDtoUnitEnum = typeof SubscriptionListItemBillingPeriodicityDtoUnitEnum[keyof typeof SubscriptionListItemBillingPeriodicityDtoUnitEnum];
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the SubscriptionListItemBillingPeriodicityDto interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfSubscriptionListItemBillingPeriodicityDto(value: object): value is SubscriptionListItemBillingPeriodicityDto {
|
|
51
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
52
|
+
if (!('unit' in value) || value['unit'] === undefined) return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SubscriptionListItemBillingPeriodicityDtoFromJSON(json: any): SubscriptionListItemBillingPeriodicityDto {
|
|
57
|
+
return SubscriptionListItemBillingPeriodicityDtoFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SubscriptionListItemBillingPeriodicityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemBillingPeriodicityDto {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'amount': json['amount'],
|
|
67
|
+
'unit': json['unit'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function SubscriptionListItemBillingPeriodicityDtoToJSON(json: any): SubscriptionListItemBillingPeriodicityDto {
|
|
72
|
+
return SubscriptionListItemBillingPeriodicityDtoToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function SubscriptionListItemBillingPeriodicityDtoToJSONTyped(value?: SubscriptionListItemBillingPeriodicityDto | null, ignoreDiscriminator: boolean = false): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'amount': value['amount'],
|
|
83
|
+
'unit': value['unit'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SubscriptionListItemBillingPeriodicityDto } from './SubscriptionListItemBillingPeriodicityDto';
|
|
17
|
+
import {
|
|
18
|
+
SubscriptionListItemBillingPeriodicityDtoFromJSON,
|
|
19
|
+
SubscriptionListItemBillingPeriodicityDtoFromJSONTyped,
|
|
20
|
+
SubscriptionListItemBillingPeriodicityDtoToJSON,
|
|
21
|
+
SubscriptionListItemBillingPeriodicityDtoToJSONTyped,
|
|
22
|
+
} from './SubscriptionListItemBillingPeriodicityDto';
|
|
16
23
|
import type { SubscriptionListItemDtoBuyerInformation } from './SubscriptionListItemDtoBuyerInformation';
|
|
17
24
|
import {
|
|
18
25
|
SubscriptionListItemDtoBuyerInformationFromJSON,
|
|
@@ -107,7 +114,73 @@ export interface SubscriptionListItemDto {
|
|
|
107
114
|
* @type {MoneyDto}
|
|
108
115
|
* @memberof SubscriptionListItemDto
|
|
109
116
|
*/
|
|
110
|
-
basePrice: MoneyDto
|
|
117
|
+
basePrice: MoneyDto;
|
|
118
|
+
/**
|
|
119
|
+
* The subscription recurring price
|
|
120
|
+
* @type {MoneyDto}
|
|
121
|
+
* @memberof SubscriptionListItemDto
|
|
122
|
+
*/
|
|
123
|
+
buyerRecurringPrice: MoneyDto;
|
|
124
|
+
/**
|
|
125
|
+
* The subscription seller recurring price
|
|
126
|
+
* @type {MoneyDto}
|
|
127
|
+
* @memberof SubscriptionListItemDto
|
|
128
|
+
*/
|
|
129
|
+
sellerRecurringPrice: MoneyDto;
|
|
130
|
+
/**
|
|
131
|
+
* The subscription installments number
|
|
132
|
+
* @type {number}
|
|
133
|
+
* @memberof SubscriptionListItemDto
|
|
134
|
+
*/
|
|
135
|
+
installments: number;
|
|
136
|
+
/**
|
|
137
|
+
* The subscription paid installments number
|
|
138
|
+
* @type {number}
|
|
139
|
+
* @memberof SubscriptionListItemDto
|
|
140
|
+
*/
|
|
141
|
+
paidBuyerInstallmentsNumber: number;
|
|
142
|
+
/**
|
|
143
|
+
* The subscription paid seller installments number
|
|
144
|
+
* @type {number}
|
|
145
|
+
* @memberof SubscriptionListItemDto
|
|
146
|
+
*/
|
|
147
|
+
paidSellerInstallmentsNumber: number;
|
|
148
|
+
/**
|
|
149
|
+
* The subscription renew date
|
|
150
|
+
* @type {Date}
|
|
151
|
+
* @memberof SubscriptionListItemDto
|
|
152
|
+
*/
|
|
153
|
+
renewAt: Date;
|
|
154
|
+
/**
|
|
155
|
+
* The subscription renew retry date
|
|
156
|
+
* @type {Date}
|
|
157
|
+
* @memberof SubscriptionListItemDto
|
|
158
|
+
*/
|
|
159
|
+
renewRetryAt: Date;
|
|
160
|
+
/**
|
|
161
|
+
* The subscription recurring markup percentage
|
|
162
|
+
* @type {number}
|
|
163
|
+
* @memberof SubscriptionListItemDto
|
|
164
|
+
*/
|
|
165
|
+
recurringMarkupPercentage: number;
|
|
166
|
+
/**
|
|
167
|
+
* The subscription recurring markup price
|
|
168
|
+
* @type {MoneyDto}
|
|
169
|
+
* @memberof SubscriptionListItemDto
|
|
170
|
+
*/
|
|
171
|
+
recurringMarkupPrice: MoneyDto;
|
|
172
|
+
/**
|
|
173
|
+
* The subscription billing periodicity
|
|
174
|
+
* @type {SubscriptionListItemBillingPeriodicityDto}
|
|
175
|
+
* @memberof SubscriptionListItemDto
|
|
176
|
+
*/
|
|
177
|
+
billingPeriodicity: SubscriptionListItemBillingPeriodicityDto;
|
|
178
|
+
/**
|
|
179
|
+
* The subscription seller lease to own kickback percentage
|
|
180
|
+
* @type {number}
|
|
181
|
+
* @memberof SubscriptionListItemDto
|
|
182
|
+
*/
|
|
183
|
+
sellerLeaseToOwnKickBackPercentage: number;
|
|
111
184
|
}
|
|
112
185
|
|
|
113
186
|
|
|
@@ -147,6 +220,17 @@ export function instanceOfSubscriptionListItemDto(value: object): value is Subsc
|
|
|
147
220
|
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
|
|
148
221
|
if (!('buyerInformation' in value) || value['buyerInformation'] === undefined) return false;
|
|
149
222
|
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
223
|
+
if (!('buyerRecurringPrice' in value) || value['buyerRecurringPrice'] === undefined) return false;
|
|
224
|
+
if (!('sellerRecurringPrice' in value) || value['sellerRecurringPrice'] === undefined) return false;
|
|
225
|
+
if (!('installments' in value) || value['installments'] === undefined) return false;
|
|
226
|
+
if (!('paidBuyerInstallmentsNumber' in value) || value['paidBuyerInstallmentsNumber'] === undefined) return false;
|
|
227
|
+
if (!('paidSellerInstallmentsNumber' in value) || value['paidSellerInstallmentsNumber'] === undefined) return false;
|
|
228
|
+
if (!('renewAt' in value) || value['renewAt'] === undefined) return false;
|
|
229
|
+
if (!('renewRetryAt' in value) || value['renewRetryAt'] === undefined) return false;
|
|
230
|
+
if (!('recurringMarkupPercentage' in value) || value['recurringMarkupPercentage'] === undefined) return false;
|
|
231
|
+
if (!('recurringMarkupPrice' in value) || value['recurringMarkupPrice'] === undefined) return false;
|
|
232
|
+
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined) return false;
|
|
233
|
+
if (!('sellerLeaseToOwnKickBackPercentage' in value) || value['sellerLeaseToOwnKickBackPercentage'] === undefined) return false;
|
|
150
234
|
return true;
|
|
151
235
|
}
|
|
152
236
|
|
|
@@ -170,6 +254,17 @@ export function SubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
170
254
|
'sellerAccount': SubscriptionListItemDtoSellerAccountFromJSON(json['sellerAccount']),
|
|
171
255
|
'buyerInformation': SubscriptionListItemDtoBuyerInformationFromJSON(json['buyerInformation']),
|
|
172
256
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
257
|
+
'buyerRecurringPrice': MoneyDtoFromJSON(json['buyerRecurringPrice']),
|
|
258
|
+
'sellerRecurringPrice': MoneyDtoFromJSON(json['sellerRecurringPrice']),
|
|
259
|
+
'installments': json['installments'],
|
|
260
|
+
'paidBuyerInstallmentsNumber': json['paidBuyerInstallmentsNumber'],
|
|
261
|
+
'paidSellerInstallmentsNumber': json['paidSellerInstallmentsNumber'],
|
|
262
|
+
'renewAt': (new Date(json['renewAt'])),
|
|
263
|
+
'renewRetryAt': (new Date(json['renewRetryAt'])),
|
|
264
|
+
'recurringMarkupPercentage': json['recurringMarkupPercentage'],
|
|
265
|
+
'recurringMarkupPrice': MoneyDtoFromJSON(json['recurringMarkupPrice']),
|
|
266
|
+
'billingPeriodicity': SubscriptionListItemBillingPeriodicityDtoFromJSON(json['billingPeriodicity']),
|
|
267
|
+
'sellerLeaseToOwnKickBackPercentage': json['sellerLeaseToOwnKickBackPercentage'],
|
|
173
268
|
};
|
|
174
269
|
}
|
|
175
270
|
|
|
@@ -194,6 +289,17 @@ export function SubscriptionListItemDtoToJSONTyped(value?: SubscriptionListItemD
|
|
|
194
289
|
'sellerAccount': SubscriptionListItemDtoSellerAccountToJSON(value['sellerAccount']),
|
|
195
290
|
'buyerInformation': SubscriptionListItemDtoBuyerInformationToJSON(value['buyerInformation']),
|
|
196
291
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
292
|
+
'buyerRecurringPrice': MoneyDtoToJSON(value['buyerRecurringPrice']),
|
|
293
|
+
'sellerRecurringPrice': MoneyDtoToJSON(value['sellerRecurringPrice']),
|
|
294
|
+
'installments': value['installments'],
|
|
295
|
+
'paidBuyerInstallmentsNumber': value['paidBuyerInstallmentsNumber'],
|
|
296
|
+
'paidSellerInstallmentsNumber': value['paidSellerInstallmentsNumber'],
|
|
297
|
+
'renewAt': ((value['renewAt']).toISOString()),
|
|
298
|
+
'renewRetryAt': ((value['renewRetryAt']).toISOString()),
|
|
299
|
+
'recurringMarkupPercentage': value['recurringMarkupPercentage'],
|
|
300
|
+
'recurringMarkupPrice': MoneyDtoToJSON(value['recurringMarkupPrice']),
|
|
301
|
+
'billingPeriodicity': SubscriptionListItemBillingPeriodicityDtoToJSON(value['billingPeriodicity']),
|
|
302
|
+
'sellerLeaseToOwnKickBackPercentage': value['sellerLeaseToOwnKickBackPercentage'],
|
|
197
303
|
};
|
|
198
304
|
}
|
|
199
305
|
|
package/src/models/index.ts
CHANGED
|
@@ -176,6 +176,7 @@ export * from './SubscriptionDetailsDomainSellerUserDto';
|
|
|
176
176
|
export * from './SubscriptionDetailsDto';
|
|
177
177
|
export * from './SubscriptionDomainDto';
|
|
178
178
|
export * from './SubscriptionDto';
|
|
179
|
+
export * from './SubscriptionListItemBillingPeriodicityDto';
|
|
179
180
|
export * from './SubscriptionListItemDto';
|
|
180
181
|
export * from './SubscriptionListItemDtoBuyerInformation';
|
|
181
182
|
export * from './SubscriptionListItemDtoDomainInformation';
|