@integrahub/vergefy-client 0.20.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 CHANGED
@@ -1,4 +1,4 @@
1
- # @integrahub/vergefy-client@0.20.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.20.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
 
@@ -16,6 +16,7 @@ export interface ASU001Request {
16
16
  xAppAccountId: string;
17
17
  subscriptionDTO: SubscriptionDTO;
18
18
  trialDays?: number;
19
+ priceTenantId?: string;
19
20
  acceptLanguage?: string;
20
21
  vergefyVersion?: string;
21
22
  acceptTimezone?: string;
@@ -45,6 +45,9 @@ class APIASUSubscriptionApi extends runtime.BaseAPI {
45
45
  if (requestParameters['trialDays'] != null) {
46
46
  queryParameters['trialDays'] = requestParameters['trialDays'];
47
47
  }
48
+ if (requestParameters['priceTenantId'] != null) {
49
+ queryParameters['priceTenantId'] = requestParameters['priceTenantId'];
50
+ }
48
51
  const headerParameters = {};
49
52
  headerParameters['Content-Type'] = 'application/json';
50
53
  if (requestParameters['acceptLanguage'] != null) {
@@ -42,6 +42,9 @@ export class APIASUSubscriptionApi extends runtime.BaseAPI {
42
42
  if (requestParameters['trialDays'] != null) {
43
43
  queryParameters['trialDays'] = requestParameters['trialDays'];
44
44
  }
45
+ if (requestParameters['priceTenantId'] != null) {
46
+ queryParameters['priceTenantId'] = requestParameters['priceTenantId'];
47
+ }
45
48
  const headerParameters = {};
46
49
  headerParameters['Content-Type'] = 'application/json';
47
50
  if (requestParameters['acceptLanguage'] != null) {
@@ -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.20.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'] == null ? undefined : 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'] == null ? undefined : 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'] == null ? undefined : 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'] == null ? undefined : 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'] == null ? undefined : 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'])),
@@ -30,7 +30,8 @@ export const SubscriptionItemDTOEntityStatusEnum = {
30
30
  export const SubscriptionItemDTOProvisioningOriginEnum = {
31
31
  Purchased: 'PURCHASED',
32
32
  RequiredDependency: 'REQUIRED_DEPENDENCY',
33
- SelfServe: 'SELF_SERVE'
33
+ SelfServe: 'SELF_SERVE',
34
+ PlatformBaseline: 'PLATFORM_BASELINE'
34
35
  };
35
36
  /**
36
37
  * Check if a given object implements the SubscriptionItemDTO interface.
@@ -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.20.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. */
@@ -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.20.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?: boolean;
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?: SubscriptionDTOCollectionMethodEnum;
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?: string;
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?: SubscriptionDTOPaymentBehaviourEnum;
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?: SubscriptionDTOStatusEnum;
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'] == null ? undefined : 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'] == null ? undefined : 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'] == null ? undefined : 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'] == null ? undefined : 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'] == null ? undefined : 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'])),
@@ -163,6 +163,7 @@ export declare const SubscriptionItemDTOProvisioningOriginEnum: {
163
163
  readonly Purchased: "PURCHASED";
164
164
  readonly RequiredDependency: "REQUIRED_DEPENDENCY";
165
165
  readonly SelfServe: "SELF_SERVE";
166
+ readonly PlatformBaseline: "PLATFORM_BASELINE";
166
167
  };
167
168
  export type SubscriptionItemDTOProvisioningOriginEnum = typeof SubscriptionItemDTOProvisioningOriginEnum[keyof typeof SubscriptionItemDTOProvisioningOriginEnum];
168
169
  /**
@@ -38,7 +38,8 @@ exports.SubscriptionItemDTOEntityStatusEnum = {
38
38
  exports.SubscriptionItemDTOProvisioningOriginEnum = {
39
39
  Purchased: 'PURCHASED',
40
40
  RequiredDependency: 'REQUIRED_DEPENDENCY',
41
- SelfServe: 'SELF_SERVE'
41
+ SelfServe: 'SELF_SERVE',
42
+ PlatformBaseline: 'PLATFORM_BASELINE'
42
43
  };
43
44
  /**
44
45
  * Check if a given object implements the SubscriptionItemDTO interface.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrahub/vergefy-client",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "description": "Vergefy API — generated TypeScript client SDK",
5
5
  "author": "IntegraHub Technology (https://integrahub.co)",
6
6
  "main": "./dist/index.js",