chargebee 2.46.0 → 2.48.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.
@@ -0,0 +1,38 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ declare module 'chargebee' {
4
+ export interface Rule {
5
+
6
+
7
+ id:string;
8
+
9
+ namespace:string;
10
+
11
+ rule_name:string;
12
+
13
+ rule_order?:number;
14
+
15
+ status:'active' | 'disabled';
16
+
17
+ conditions?:string;
18
+
19
+ outcome?:string;
20
+
21
+ deleted:boolean;
22
+
23
+ created_at:number;
24
+
25
+ modified_at:number;
26
+
27
+ }
28
+ export namespace Rule {
29
+ export class RuleResource {
30
+ retrieve(rule_id:string):ChargebeeRequest<RetrieveResponse>;
31
+ }
32
+ export interface RetrieveResponse {
33
+ rule:Rule;
34
+ }
35
+
36
+
37
+ }
38
+ }
@@ -1409,6 +1409,8 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
1409
1409
 
1410
1410
  coupons?:{apply_till?:number,coupon_id?:string}[];
1411
1411
 
1412
+ exhausted_coupon_ids?:string[];
1413
+
1412
1414
  id?:string;
1413
1415
 
1414
1416
  trial_end?:number;
@@ -0,0 +1,46 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ declare module 'chargebee' {
4
+ export interface UsageEvent {
5
+
6
+
7
+ subscription_id:string;
8
+
9
+ deduplication_id:string;
10
+
11
+ usage_timestamp:number;
12
+
13
+ properties:object;
14
+
15
+ }
16
+ export namespace UsageEvent {
17
+ export class UsageEventResource {
18
+ create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
19
+
20
+ batch_ingest(input:BatchIngestInputParam):ChargebeeRequest<BatchIngestResponse>;
21
+ }
22
+ export interface CreateResponse {
23
+ usage_event:UsageEvent;
24
+ }
25
+ export interface CreateInputParam {
26
+
27
+ deduplication_id:string;
28
+
29
+ subscription_id:string;
30
+
31
+ usage_timestamp:number;
32
+
33
+ properties:object;
34
+ }
35
+ export interface BatchIngestResponse {
36
+ batch_id:string;
37
+
38
+ failed_events:any[];
39
+ }
40
+ export interface BatchIngestInputParam {
41
+
42
+ events:{deduplication_id:string,properties:object,subscription_id:string,usage_timestamp:number}[];
43
+ }
44
+
45
+ }
46
+ }