rotacloud 2.3.0 → 2.3.3

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.
@@ -43,6 +43,7 @@ export interface AccountSubscription {
43
43
  }
44
44
  export interface AccountSubscriptionExtended extends AccountSubscription {
45
45
  billingFrequency: string;
46
+ paymentFrequency: 'monthly' | 'yearly';
46
47
  billingEmail: string;
47
48
  country: number;
48
49
  subscriptionPaymentSourceId: string;
@@ -55,14 +56,14 @@ export interface AccountSubscriptionExtended extends AccountSubscription {
55
56
  }
56
57
  export interface SubscriptionUpdateReq {
57
58
  paymentFrequency?: 'monthly' | 'yearly';
58
- plans?: [{
59
+ plans?: {
59
60
  planId: string;
60
61
  trial?: boolean;
61
- }];
62
- addons?: [{
62
+ }[];
63
+ addons?: {
63
64
  addonId: string;
64
65
  trial?: boolean;
65
- }];
66
+ }[];
66
67
  subscriptionPaymentSourceId?: string;
67
68
  billingEmail?: string;
68
69
  country?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rotacloud",
3
- "version": "2.3.0",
3
+ "version": "2.3.3",
4
4
  "description": "The RotaCloud SDK for the RotaCloud API",
5
5
  "type": "module",
6
6
  "engines": {
@@ -45,6 +45,7 @@ export interface AccountSubscription {
45
45
 
46
46
  export interface AccountSubscriptionExtended extends AccountSubscription {
47
47
  billingFrequency: string;
48
+ paymentFrequency: 'monthly' | 'yearly';
48
49
  billingEmail: string;
49
50
  country: number;
50
51
  subscriptionPaymentSourceId: string;
@@ -58,8 +59,8 @@ export interface AccountSubscriptionExtended extends AccountSubscription {
58
59
 
59
60
  export interface SubscriptionUpdateReq {
60
61
  paymentFrequency?: 'monthly' | 'yearly';
61
- plans?: [{ planId: string; trial?: boolean }];
62
- addons?: [{ addonId: string; trial?: boolean }];
62
+ plans?: { planId: string; trial?: boolean }[];
63
+ addons?: { addonId: string; trial?: boolean }[];
63
64
  subscriptionPaymentSourceId?: string;
64
65
  billingEmail?: string;
65
66
  country?: number;