pingram 1.0.28-alpha.1444 → 1.0.28-alpha.1446

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.
@@ -75,12 +75,6 @@ export interface AccountGetResponse {
75
75
  * @memberof AccountGetResponse
76
76
  */
77
77
  anniversaryDate: string;
78
- /**
79
- *
80
- * @type {boolean}
81
- * @memberof AccountGetResponse
82
- */
83
- allowOverage: boolean;
84
78
  /**
85
79
  *
86
80
  * @type {string}
@@ -105,6 +99,24 @@ export interface AccountGetResponse {
105
99
  * @memberof AccountGetResponse
106
100
  */
107
101
  subscriptionStatus?: AccountGetResponseSubscriptionStatusEnum | null;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof AccountGetResponse
106
+ */
107
+ pendingDowngradeEffectiveDate?: string;
108
+ /**
109
+ *
110
+ * @type {number}
111
+ * @memberof AccountGetResponse
112
+ */
113
+ pendingDowngradeCostCap?: number;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof AccountGetResponse
118
+ */
119
+ pendingDowngradeAccountType?: AccountGetResponsePendingDowngradeAccountTypeEnum;
108
120
  }
109
121
  /**
110
122
  * @export
@@ -141,6 +153,13 @@ export declare enum AccountGetResponseSubscriptionStatusEnum {
141
153
  PAST_DUE = "past_due",
142
154
  PAUSED = "paused"
143
155
  }
156
+ /**
157
+ * @export
158
+ * @enum {string}
159
+ */
160
+ export declare enum AccountGetResponsePendingDowngradeAccountTypeEnum {
161
+ FREE = "free"
162
+ }
144
163
  /**
145
164
  * Check if a given object implements the AccountGetResponse interface.
146
165
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AccountGetResponseSubscriptionStatusEnum = exports.AccountGetResponseStatusEnum = exports.AccountGetResponseBillingVersionEnum = exports.AccountGetResponseAccountTypeEnum = void 0;
16
+ exports.AccountGetResponsePendingDowngradeAccountTypeEnum = exports.AccountGetResponseSubscriptionStatusEnum = exports.AccountGetResponseStatusEnum = exports.AccountGetResponseBillingVersionEnum = exports.AccountGetResponseAccountTypeEnum = void 0;
17
17
  exports.instanceOfAccountGetResponse = instanceOfAccountGetResponse;
18
18
  exports.AccountGetResponseFromJSON = AccountGetResponseFromJSON;
19
19
  exports.AccountGetResponseFromJSONTyped = AccountGetResponseFromJSONTyped;
@@ -58,6 +58,14 @@ var AccountGetResponseSubscriptionStatusEnum;
58
58
  AccountGetResponseSubscriptionStatusEnum["PAST_DUE"] = "past_due";
59
59
  AccountGetResponseSubscriptionStatusEnum["PAUSED"] = "paused";
60
60
  })(AccountGetResponseSubscriptionStatusEnum || (exports.AccountGetResponseSubscriptionStatusEnum = AccountGetResponseSubscriptionStatusEnum = {}));
61
+ /**
62
+ * @export
63
+ * @enum {string}
64
+ */
65
+ var AccountGetResponsePendingDowngradeAccountTypeEnum;
66
+ (function (AccountGetResponsePendingDowngradeAccountTypeEnum) {
67
+ AccountGetResponsePendingDowngradeAccountTypeEnum["FREE"] = "free";
68
+ })(AccountGetResponsePendingDowngradeAccountTypeEnum || (exports.AccountGetResponsePendingDowngradeAccountTypeEnum = AccountGetResponsePendingDowngradeAccountTypeEnum = {}));
61
69
  /**
62
70
  * Check if a given object implements the AccountGetResponse interface.
63
71
  */
@@ -72,8 +80,6 @@ function instanceOfAccountGetResponse(value) {
72
80
  return false;
73
81
  if (!('anniversaryDate' in value) || value['anniversaryDate'] === undefined)
74
82
  return false;
75
- if (!('allowOverage' in value) || value['allowOverage'] === undefined)
76
- return false;
77
83
  if (!('createdAt' in value) || value['createdAt'] === undefined)
78
84
  return false;
79
85
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -98,13 +104,21 @@ function AccountGetResponseFromJSONTyped(json, ignoreDiscriminator) {
98
104
  callCap: json['callCap'] == null ? undefined : json['callCap'],
99
105
  billingVersion: json['billingVersion'] == null ? undefined : json['billingVersion'],
100
106
  anniversaryDate: json['anniversaryDate'],
101
- allowOverage: json['allowOverage'],
102
107
  createdAt: json['createdAt'],
103
108
  updatedAt: json['updatedAt'],
104
109
  status: json['status'] == null ? undefined : json['status'],
105
110
  subscriptionStatus: json['subscriptionStatus'] == null
106
111
  ? undefined
107
- : json['subscriptionStatus']
112
+ : json['subscriptionStatus'],
113
+ pendingDowngradeEffectiveDate: json['pendingDowngradeEffectiveDate'] == null
114
+ ? undefined
115
+ : json['pendingDowngradeEffectiveDate'],
116
+ pendingDowngradeCostCap: json['pendingDowngradeCostCap'] == null
117
+ ? undefined
118
+ : json['pendingDowngradeCostCap'],
119
+ pendingDowngradeAccountType: json['pendingDowngradeAccountType'] == null
120
+ ? undefined
121
+ : json['pendingDowngradeAccountType']
108
122
  };
109
123
  }
110
124
  function AccountGetResponseToJSON(json) {
@@ -125,10 +139,12 @@ function AccountGetResponseToJSONTyped(value, ignoreDiscriminator = false) {
125
139
  callCap: value['callCap'],
126
140
  billingVersion: value['billingVersion'],
127
141
  anniversaryDate: value['anniversaryDate'],
128
- allowOverage: value['allowOverage'],
129
142
  createdAt: value['createdAt'],
130
143
  updatedAt: value['updatedAt'],
131
144
  status: value['status'],
132
- subscriptionStatus: value['subscriptionStatus']
145
+ subscriptionStatus: value['subscriptionStatus'],
146
+ pendingDowngradeEffectiveDate: value['pendingDowngradeEffectiveDate'],
147
+ pendingDowngradeCostCap: value['pendingDowngradeCostCap'],
148
+ pendingDowngradeAccountType: value['pendingDowngradeAccountType']
133
149
  };
134
150
  }
@@ -75,12 +75,6 @@ export interface BillingPostResponseBody {
75
75
  * @memberof BillingPostResponseBody
76
76
  */
77
77
  anniversaryDate: string;
78
- /**
79
- *
80
- * @type {boolean}
81
- * @memberof BillingPostResponseBody
82
- */
83
- allowOverage: boolean;
84
78
  /**
85
79
  *
86
80
  * @type {string}
@@ -105,6 +99,24 @@ export interface BillingPostResponseBody {
105
99
  * @memberof BillingPostResponseBody
106
100
  */
107
101
  subscriptionStatus?: BillingPostResponseBodySubscriptionStatusEnum | null;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof BillingPostResponseBody
106
+ */
107
+ pendingDowngradeEffectiveDate?: string;
108
+ /**
109
+ *
110
+ * @type {number}
111
+ * @memberof BillingPostResponseBody
112
+ */
113
+ pendingDowngradeCostCap?: number;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof BillingPostResponseBody
118
+ */
119
+ pendingDowngradeAccountType?: BillingPostResponseBodyPendingDowngradeAccountTypeEnum;
108
120
  /**
109
121
  *
110
122
  * @type {string}
@@ -153,6 +165,13 @@ export declare enum BillingPostResponseBodySubscriptionStatusEnum {
153
165
  PAST_DUE = "past_due",
154
166
  PAUSED = "paused"
155
167
  }
168
+ /**
169
+ * @export
170
+ * @enum {string}
171
+ */
172
+ export declare enum BillingPostResponseBodyPendingDowngradeAccountTypeEnum {
173
+ FREE = "free"
174
+ }
156
175
  /**
157
176
  * Check if a given object implements the BillingPostResponseBody interface.
158
177
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.BillingPostResponseBodySubscriptionStatusEnum = exports.BillingPostResponseBodyStatusEnum = exports.BillingPostResponseBodyBillingVersionEnum = exports.BillingPostResponseBodyAccountTypeEnum = void 0;
16
+ exports.BillingPostResponseBodyPendingDowngradeAccountTypeEnum = exports.BillingPostResponseBodySubscriptionStatusEnum = exports.BillingPostResponseBodyStatusEnum = exports.BillingPostResponseBodyBillingVersionEnum = exports.BillingPostResponseBodyAccountTypeEnum = void 0;
17
17
  exports.instanceOfBillingPostResponseBody = instanceOfBillingPostResponseBody;
18
18
  exports.BillingPostResponseBodyFromJSON = BillingPostResponseBodyFromJSON;
19
19
  exports.BillingPostResponseBodyFromJSONTyped = BillingPostResponseBodyFromJSONTyped;
@@ -58,6 +58,14 @@ var BillingPostResponseBodySubscriptionStatusEnum;
58
58
  BillingPostResponseBodySubscriptionStatusEnum["PAST_DUE"] = "past_due";
59
59
  BillingPostResponseBodySubscriptionStatusEnum["PAUSED"] = "paused";
60
60
  })(BillingPostResponseBodySubscriptionStatusEnum || (exports.BillingPostResponseBodySubscriptionStatusEnum = BillingPostResponseBodySubscriptionStatusEnum = {}));
61
+ /**
62
+ * @export
63
+ * @enum {string}
64
+ */
65
+ var BillingPostResponseBodyPendingDowngradeAccountTypeEnum;
66
+ (function (BillingPostResponseBodyPendingDowngradeAccountTypeEnum) {
67
+ BillingPostResponseBodyPendingDowngradeAccountTypeEnum["FREE"] = "free";
68
+ })(BillingPostResponseBodyPendingDowngradeAccountTypeEnum || (exports.BillingPostResponseBodyPendingDowngradeAccountTypeEnum = BillingPostResponseBodyPendingDowngradeAccountTypeEnum = {}));
61
69
  /**
62
70
  * Check if a given object implements the BillingPostResponseBody interface.
63
71
  */
@@ -72,8 +80,6 @@ function instanceOfBillingPostResponseBody(value) {
72
80
  return false;
73
81
  if (!('anniversaryDate' in value) || value['anniversaryDate'] === undefined)
74
82
  return false;
75
- if (!('allowOverage' in value) || value['allowOverage'] === undefined)
76
- return false;
77
83
  if (!('createdAt' in value) || value['createdAt'] === undefined)
78
84
  return false;
79
85
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -98,13 +104,21 @@ function BillingPostResponseBodyFromJSONTyped(json, ignoreDiscriminator) {
98
104
  callCap: json['callCap'] == null ? undefined : json['callCap'],
99
105
  billingVersion: json['billingVersion'] == null ? undefined : json['billingVersion'],
100
106
  anniversaryDate: json['anniversaryDate'],
101
- allowOverage: json['allowOverage'],
102
107
  createdAt: json['createdAt'],
103
108
  updatedAt: json['updatedAt'],
104
109
  status: json['status'] == null ? undefined : json['status'],
105
110
  subscriptionStatus: json['subscriptionStatus'] == null
106
111
  ? undefined
107
112
  : json['subscriptionStatus'],
113
+ pendingDowngradeEffectiveDate: json['pendingDowngradeEffectiveDate'] == null
114
+ ? undefined
115
+ : json['pendingDowngradeEffectiveDate'],
116
+ pendingDowngradeCostCap: json['pendingDowngradeCostCap'] == null
117
+ ? undefined
118
+ : json['pendingDowngradeCostCap'],
119
+ pendingDowngradeAccountType: json['pendingDowngradeAccountType'] == null
120
+ ? undefined
121
+ : json['pendingDowngradeAccountType'],
108
122
  sessionId: json['sessionId'] == null ? undefined : json['sessionId'],
109
123
  url: json['url'] == null ? undefined : json['url']
110
124
  };
@@ -127,11 +141,13 @@ function BillingPostResponseBodyToJSONTyped(value, ignoreDiscriminator = false)
127
141
  callCap: value['callCap'],
128
142
  billingVersion: value['billingVersion'],
129
143
  anniversaryDate: value['anniversaryDate'],
130
- allowOverage: value['allowOverage'],
131
144
  createdAt: value['createdAt'],
132
145
  updatedAt: value['updatedAt'],
133
146
  status: value['status'],
134
147
  subscriptionStatus: value['subscriptionStatus'],
148
+ pendingDowngradeEffectiveDate: value['pendingDowngradeEffectiveDate'],
149
+ pendingDowngradeCostCap: value['pendingDowngradeCostCap'],
150
+ pendingDowngradeAccountType: value['pendingDowngradeAccountType'],
135
151
  sessionId: value['sessionId'],
136
152
  url: value['url']
137
153
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingram",
3
- "version": "1.0.28-alpha.1444",
3
+ "version": "1.0.28-alpha.1446",
4
4
  "description": "Official Node.js SDK for Pingram - Send notifications via Email, SMS, Push, In-App, and more",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",