rotacloud 2.3.4 → 2.3.7

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.
@@ -68,10 +68,6 @@ export interface SubscriptionUpdateReq {
68
68
  billingEmail?: string;
69
69
  country?: number;
70
70
  }
71
- export interface EstimatesRes {
72
- owed: number;
73
- totalPrice: number;
74
- }
75
71
  export interface ProductCatalogueItemPrice {
76
72
  id: string;
77
73
  currency: string;
@@ -111,3 +107,30 @@ export interface CancelSubscriptionReq {
111
107
  message?: string;
112
108
  detail?: string;
113
109
  }
110
+ export interface EstimateLineItem {
111
+ id: string;
112
+ description: string;
113
+ amount: number;
114
+ discountAmount: number;
115
+ }
116
+ export interface UpdatedPlan {
117
+ planId: string;
118
+ trial?: boolean;
119
+ }
120
+ export interface UpdatedAddon {
121
+ addonId: string;
122
+ trial?: boolean;
123
+ }
124
+ export interface EstimatesReq {
125
+ plans?: UpdatedPlan[];
126
+ addons?: UpdatedAddon[];
127
+ paymentFrequency: 'monthly' | 'yearly';
128
+ }
129
+ export interface EstimatesRes {
130
+ paymentFrequency: 'monthly' | 'yearly';
131
+ subTotal: number;
132
+ chargedImmediately: number;
133
+ creditsApplied: number;
134
+ quantity: number;
135
+ lineItems: EstimateLineItem[];
136
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rotacloud",
3
- "version": "2.3.4",
3
+ "version": "2.3.7",
4
4
  "description": "The RotaCloud SDK for the RotaCloud API",
5
5
  "type": "module",
6
6
  "engines": {
@@ -66,11 +66,6 @@ export interface SubscriptionUpdateReq {
66
66
  country?: number;
67
67
  }
68
68
 
69
- export interface EstimatesRes {
70
- owed: number;
71
- totalPrice: number;
72
- }
73
-
74
69
  export interface ProductCatalogueItemPrice {
75
70
  id: string;
76
71
  currency: string;
@@ -108,3 +103,35 @@ export interface CancelSubscriptionReq {
108
103
  message?: string;
109
104
  detail?: string;
110
105
  }
106
+
107
+ export interface EstimateLineItem {
108
+ id: string;
109
+ description: string;
110
+ amount: number;
111
+ discountAmount: number;
112
+ }
113
+
114
+ export interface UpdatedPlan {
115
+ planId: string;
116
+ trial?: boolean;
117
+ }
118
+
119
+ export interface UpdatedAddon {
120
+ addonId: string;
121
+ trial?: boolean;
122
+ }
123
+
124
+ export interface EstimatesReq {
125
+ plans?: UpdatedPlan[];
126
+ addons?: UpdatedAddon[];
127
+ paymentFrequency: 'monthly' | 'yearly';
128
+ }
129
+
130
+ export interface EstimatesRes {
131
+ paymentFrequency: 'monthly' | 'yearly';
132
+ subTotal: number;
133
+ chargedImmediately: number;
134
+ creditsApplied: number;
135
+ quantity: number;
136
+ lineItems: EstimateLineItem[];
137
+ }