@integrahub/vergefy-client 0.21.0 → 0.22.0
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/README.md +2 -2
- package/dist/esm/ext/telemetry.js +1 -1
- package/dist/esm/models/SubscriptionDTO.js +15 -5
- package/dist/ext/telemetry.d.ts +1 -1
- package/dist/ext/telemetry.js +1 -1
- package/dist/models/SubscriptionDTO.d.ts +5 -5
- package/dist/models/SubscriptionDTO.js +15 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @integrahub/vergefy-client@0.
|
|
1
|
+
# @integrahub/vergefy-client@0.22.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the your-vergefy-host.invalid API.
|
|
4
4
|
|
|
@@ -90,7 +90,7 @@ and is automatically generated by the
|
|
|
90
90
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
91
91
|
|
|
92
92
|
- API version: `2026-05-30`
|
|
93
|
-
- Package version: `0.
|
|
93
|
+
- Package version: `0.22.0`
|
|
94
94
|
- Generator version: `7.22.0`
|
|
95
95
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
96
96
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Mirrors the canonical Java `ext/Telemetry`.
|
|
9
9
|
*/
|
|
10
10
|
/** Kept in sync with `vergefySdkVersion` (the published artifact version). */
|
|
11
|
-
export const VERSION = '0.
|
|
11
|
+
export const VERSION = '0.22.0';
|
|
12
12
|
const NAME = 'vergefy-typescript-client';
|
|
13
13
|
/** The `User-Agent` value, e.g. `vergefy-typescript-client/0.1.0`. */
|
|
14
14
|
export function userAgent() {
|
|
@@ -81,6 +81,16 @@ export const SubscriptionDTOStatusEnum = {
|
|
|
81
81
|
* Check if a given object implements the SubscriptionDTO interface.
|
|
82
82
|
*/
|
|
83
83
|
export function instanceOfSubscriptionDTO(value) {
|
|
84
|
+
if (!('cancelAtPeriodEnd' in value) || value['cancelAtPeriodEnd'] === undefined)
|
|
85
|
+
return false;
|
|
86
|
+
if (!('collectionMethod' in value) || value['collectionMethod'] === undefined)
|
|
87
|
+
return false;
|
|
88
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
89
|
+
return false;
|
|
90
|
+
if (!('paymentBehaviour' in value) || value['paymentBehaviour'] === undefined)
|
|
91
|
+
return false;
|
|
92
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
93
|
+
return false;
|
|
84
94
|
return true;
|
|
85
95
|
}
|
|
86
96
|
export function SubscriptionDTOFromJSON(json) {
|
|
@@ -93,14 +103,14 @@ export function SubscriptionDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
93
103
|
return {
|
|
94
104
|
'billingCycleAnchor': json['billingCycleAnchor'] == null ? undefined : (new Date(json['billingCycleAnchor'])),
|
|
95
105
|
'cancelAt': json['cancelAt'] == null ? undefined : (new Date(json['cancelAt'])),
|
|
96
|
-
'cancelAtPeriodEnd': json['cancelAtPeriodEnd']
|
|
106
|
+
'cancelAtPeriodEnd': json['cancelAtPeriodEnd'],
|
|
97
107
|
'cancellationComment': json['cancellationComment'] == null ? undefined : json['cancellationComment'],
|
|
98
108
|
'cancellationFeedback': json['cancellationFeedback'] == null ? undefined : json['cancellationFeedback'],
|
|
99
109
|
'cancelledAt': json['cancelledAt'] == null ? undefined : (new Date(json['cancelledAt'])),
|
|
100
|
-
'collectionMethod': json['collectionMethod']
|
|
110
|
+
'collectionMethod': json['collectionMethod'],
|
|
101
111
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
102
112
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
103
|
-
'currencyCode': json['currencyCode']
|
|
113
|
+
'currencyCode': json['currencyCode'],
|
|
104
114
|
'currentPeriodEnd': json['currentPeriodEnd'] == null ? undefined : (new Date(json['currentPeriodEnd'])),
|
|
105
115
|
'currentPeriodStart': json['currentPeriodStart'] == null ? undefined : (new Date(json['currentPeriodStart'])),
|
|
106
116
|
'customId': json['customId'] == null ? undefined : json['customId'],
|
|
@@ -118,7 +128,7 @@ export function SubscriptionDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
118
128
|
'oneTimeItems': json['oneTimeItems'] == null ? undefined : (json['oneTimeItems'].map(SubscriptionItemDTOFromJSON)),
|
|
119
129
|
'orderNumber': json['orderNumber'] == null ? undefined : json['orderNumber'],
|
|
120
130
|
'pauseCollection': json['pauseCollection'] == null ? undefined : SubscriptionPauseCollectionDTOFromJSON(json['pauseCollection']),
|
|
121
|
-
'paymentBehaviour': json['paymentBehaviour']
|
|
131
|
+
'paymentBehaviour': json['paymentBehaviour'],
|
|
122
132
|
'permission': json['permission'] == null ? undefined : ElementPermissionBasedEntityEmbeddableDTOFromJSON(json['permission']),
|
|
123
133
|
'prorationBehavior': json['prorationBehavior'] == null ? undefined : json['prorationBehavior'],
|
|
124
134
|
'prorationDate': json['prorationDate'] == null ? undefined : (new Date(json['prorationDate'])),
|
|
@@ -127,7 +137,7 @@ export function SubscriptionDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
127
137
|
'requireRequiredServiceCompleteness': json['requireRequiredServiceCompleteness'] == null ? undefined : json['requireRequiredServiceCompleteness'],
|
|
128
138
|
'schedule': json['schedule'] == null ? undefined : SubscriptionScheduleDTOFromJSON(json['schedule']),
|
|
129
139
|
'startAt': json['startAt'] == null ? undefined : (new Date(json['startAt'])),
|
|
130
|
-
'status': json['status']
|
|
140
|
+
'status': json['status'],
|
|
131
141
|
'subscriberAccount': json['subscriberAccount'] == null ? undefined : AccountDTOFromJSON(json['subscriberAccount']),
|
|
132
142
|
'trialEndAt': json['trialEndAt'] == null ? undefined : (new Date(json['trialEndAt'])),
|
|
133
143
|
'trialStartAt': json['trialStartAt'] == null ? undefined : (new Date(json['trialStartAt'])),
|
package/dist/ext/telemetry.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Mirrors the canonical Java `ext/Telemetry`.
|
|
7
7
|
*/
|
|
8
8
|
/** Kept in sync with `vergefySdkVersion` (the published artifact version). */
|
|
9
|
-
export declare const VERSION = "0.
|
|
9
|
+
export declare const VERSION = "0.22.0";
|
|
10
10
|
/** The `User-Agent` value, e.g. `vergefy-typescript-client/0.1.0`. */
|
|
11
11
|
export declare function userAgent(): string;
|
|
12
12
|
/** The structured `X-Vergefy-Client-User-Agent` JSON header value. */
|
package/dist/ext/telemetry.js
CHANGED
|
@@ -14,7 +14,7 @@ exports.userAgent = userAgent;
|
|
|
14
14
|
exports.clientInfo = clientInfo;
|
|
15
15
|
exports.telemetryHeaders = telemetryHeaders;
|
|
16
16
|
/** Kept in sync with `vergefySdkVersion` (the published artifact version). */
|
|
17
|
-
exports.VERSION = '0.
|
|
17
|
+
exports.VERSION = '0.22.0';
|
|
18
18
|
const NAME = 'vergefy-typescript-client';
|
|
19
19
|
/** The `User-Agent` value, e.g. `vergefy-typescript-client/0.1.0`. */
|
|
20
20
|
function userAgent() {
|
|
@@ -38,7 +38,7 @@ export interface SubscriptionDTO {
|
|
|
38
38
|
* @type {boolean}
|
|
39
39
|
* @memberof SubscriptionDTO
|
|
40
40
|
*/
|
|
41
|
-
cancelAtPeriodEnd
|
|
41
|
+
cancelAtPeriodEnd: boolean;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -62,7 +62,7 @@ export interface SubscriptionDTO {
|
|
|
62
62
|
* @type {SubscriptionDTOCollectionMethodEnum}
|
|
63
63
|
* @memberof SubscriptionDTO
|
|
64
64
|
*/
|
|
65
|
-
collectionMethod
|
|
65
|
+
collectionMethod: SubscriptionDTOCollectionMethodEnum;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {Date}
|
|
@@ -80,7 +80,7 @@ export interface SubscriptionDTO {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof SubscriptionDTO
|
|
82
82
|
*/
|
|
83
|
-
currencyCode
|
|
83
|
+
currencyCode: string;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {Date}
|
|
@@ -188,7 +188,7 @@ export interface SubscriptionDTO {
|
|
|
188
188
|
* @type {SubscriptionDTOPaymentBehaviourEnum}
|
|
189
189
|
* @memberof SubscriptionDTO
|
|
190
190
|
*/
|
|
191
|
-
paymentBehaviour
|
|
191
|
+
paymentBehaviour: SubscriptionDTOPaymentBehaviourEnum;
|
|
192
192
|
/**
|
|
193
193
|
*
|
|
194
194
|
* @type {ElementPermissionBasedEntityEmbeddableDTO}
|
|
@@ -242,7 +242,7 @@ export interface SubscriptionDTO {
|
|
|
242
242
|
* @type {SubscriptionDTOStatusEnum}
|
|
243
243
|
* @memberof SubscriptionDTO
|
|
244
244
|
*/
|
|
245
|
-
status
|
|
245
|
+
status: SubscriptionDTOStatusEnum;
|
|
246
246
|
/**
|
|
247
247
|
*
|
|
248
248
|
* @type {AccountDTO}
|
|
@@ -89,6 +89,16 @@ exports.SubscriptionDTOStatusEnum = {
|
|
|
89
89
|
* Check if a given object implements the SubscriptionDTO interface.
|
|
90
90
|
*/
|
|
91
91
|
function instanceOfSubscriptionDTO(value) {
|
|
92
|
+
if (!('cancelAtPeriodEnd' in value) || value['cancelAtPeriodEnd'] === undefined)
|
|
93
|
+
return false;
|
|
94
|
+
if (!('collectionMethod' in value) || value['collectionMethod'] === undefined)
|
|
95
|
+
return false;
|
|
96
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
97
|
+
return false;
|
|
98
|
+
if (!('paymentBehaviour' in value) || value['paymentBehaviour'] === undefined)
|
|
99
|
+
return false;
|
|
100
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
101
|
+
return false;
|
|
92
102
|
return true;
|
|
93
103
|
}
|
|
94
104
|
function SubscriptionDTOFromJSON(json) {
|
|
@@ -101,14 +111,14 @@ function SubscriptionDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
101
111
|
return {
|
|
102
112
|
'billingCycleAnchor': json['billingCycleAnchor'] == null ? undefined : (new Date(json['billingCycleAnchor'])),
|
|
103
113
|
'cancelAt': json['cancelAt'] == null ? undefined : (new Date(json['cancelAt'])),
|
|
104
|
-
'cancelAtPeriodEnd': json['cancelAtPeriodEnd']
|
|
114
|
+
'cancelAtPeriodEnd': json['cancelAtPeriodEnd'],
|
|
105
115
|
'cancellationComment': json['cancellationComment'] == null ? undefined : json['cancellationComment'],
|
|
106
116
|
'cancellationFeedback': json['cancellationFeedback'] == null ? undefined : json['cancellationFeedback'],
|
|
107
117
|
'cancelledAt': json['cancelledAt'] == null ? undefined : (new Date(json['cancelledAt'])),
|
|
108
|
-
'collectionMethod': json['collectionMethod']
|
|
118
|
+
'collectionMethod': json['collectionMethod'],
|
|
109
119
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
110
120
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
111
|
-
'currencyCode': json['currencyCode']
|
|
121
|
+
'currencyCode': json['currencyCode'],
|
|
112
122
|
'currentPeriodEnd': json['currentPeriodEnd'] == null ? undefined : (new Date(json['currentPeriodEnd'])),
|
|
113
123
|
'currentPeriodStart': json['currentPeriodStart'] == null ? undefined : (new Date(json['currentPeriodStart'])),
|
|
114
124
|
'customId': json['customId'] == null ? undefined : json['customId'],
|
|
@@ -126,7 +136,7 @@ function SubscriptionDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
126
136
|
'oneTimeItems': json['oneTimeItems'] == null ? undefined : (json['oneTimeItems'].map(SubscriptionItemDTO_1.SubscriptionItemDTOFromJSON)),
|
|
127
137
|
'orderNumber': json['orderNumber'] == null ? undefined : json['orderNumber'],
|
|
128
138
|
'pauseCollection': json['pauseCollection'] == null ? undefined : (0, SubscriptionPauseCollectionDTO_1.SubscriptionPauseCollectionDTOFromJSON)(json['pauseCollection']),
|
|
129
|
-
'paymentBehaviour': json['paymentBehaviour']
|
|
139
|
+
'paymentBehaviour': json['paymentBehaviour'],
|
|
130
140
|
'permission': json['permission'] == null ? undefined : (0, ElementPermissionBasedEntityEmbeddableDTO_1.ElementPermissionBasedEntityEmbeddableDTOFromJSON)(json['permission']),
|
|
131
141
|
'prorationBehavior': json['prorationBehavior'] == null ? undefined : json['prorationBehavior'],
|
|
132
142
|
'prorationDate': json['prorationDate'] == null ? undefined : (new Date(json['prorationDate'])),
|
|
@@ -135,7 +145,7 @@ function SubscriptionDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
135
145
|
'requireRequiredServiceCompleteness': json['requireRequiredServiceCompleteness'] == null ? undefined : json['requireRequiredServiceCompleteness'],
|
|
136
146
|
'schedule': json['schedule'] == null ? undefined : (0, SubscriptionScheduleDTO_1.SubscriptionScheduleDTOFromJSON)(json['schedule']),
|
|
137
147
|
'startAt': json['startAt'] == null ? undefined : (new Date(json['startAt'])),
|
|
138
|
-
'status': json['status']
|
|
148
|
+
'status': json['status'],
|
|
139
149
|
'subscriberAccount': json['subscriberAccount'] == null ? undefined : (0, AccountDTO_1.AccountDTOFromJSON)(json['subscriberAccount']),
|
|
140
150
|
'trialEndAt': json['trialEndAt'] == null ? undefined : (new Date(json['trialEndAt'])),
|
|
141
151
|
'trialStartAt': json['trialStartAt'] == null ? undefined : (new Date(json['trialStartAt'])),
|
package/package.json
CHANGED