chargebee 2.27.0 → 2.29.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.
Files changed (51) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.yml +81 -0
  2. package/.github/ISSUE_TEMPLATE/config.yml +6 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.yml +34 -0
  4. package/.github/PULL_REQUEST_TEMPLATE.md +8 -0
  5. package/.github/workflows/greeting.yml +47 -0
  6. package/CHANGELOG.md +69 -2
  7. package/SECURITY.md +8 -0
  8. package/lib/chargebee.js +1 -1
  9. package/lib/resources/api_endpoints.js +0 -7
  10. package/package.json +1 -1
  11. package/types/core.d.ts +4 -4
  12. package/types/resources/AttachedItem.d.ts +88 -88
  13. package/types/resources/Card.d.ts +68 -68
  14. package/types/resources/Comment.d.ts +50 -44
  15. package/types/resources/Coupon.d.ts +242 -207
  16. package/types/resources/CouponSet.d.ts +72 -68
  17. package/types/resources/CreditNote.d.ts +612 -236
  18. package/types/resources/Customer.d.ts +655 -513
  19. package/types/resources/DifferentialPrice.d.ts +99 -74
  20. package/types/resources/EntitlementOverride.d.ts +27 -12
  21. package/types/resources/Estimate.d.ts +450 -450
  22. package/types/resources/Event.d.ts +30 -12
  23. package/types/resources/Export.d.ts +200 -200
  24. package/types/resources/Feature.d.ts +66 -35
  25. package/types/resources/Gift.d.ts +54 -44
  26. package/types/resources/HostedPage.d.ts +381 -381
  27. package/types/resources/InAppSubscription.d.ts +94 -90
  28. package/types/resources/Invoice.d.ts +1242 -660
  29. package/types/resources/Item.d.ts +148 -142
  30. package/types/resources/ItemEntitlement.d.ts +36 -36
  31. package/types/resources/ItemFamily.d.ts +45 -45
  32. package/types/resources/ItemPrice.d.ts +317 -273
  33. package/types/resources/PaymentIntent.d.ts +60 -60
  34. package/types/resources/PaymentVoucher.d.ts +74 -59
  35. package/types/resources/PortalSession.d.ts +45 -20
  36. package/types/resources/PromotionalCredit.d.ts +68 -68
  37. package/types/resources/Purchase.d.ts +3 -3
  38. package/types/resources/Quote.d.ts +652 -363
  39. package/types/resources/QuoteLineGroup.d.ts +245 -0
  40. package/types/resources/QuotedCharge.d.ts +170 -0
  41. package/types/resources/QuotedSubscription.d.ts +219 -0
  42. package/types/resources/SiteMigrationDetail.d.ts +7 -7
  43. package/types/resources/Subscription.d.ts +1219 -932
  44. package/types/resources/SubscriptionEntitlement.d.ts +33 -12
  45. package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -1
  46. package/types/resources/TimeMachine.d.ts +15 -15
  47. package/types/resources/Token.d.ts +23 -23
  48. package/types/resources/Transaction.d.ts +229 -112
  49. package/types/resources/UnbilledCharge.d.ts +112 -67
  50. package/types/resources/Usage.d.ts +46 -47
  51. package/types/resources/VirtualBankAccount.d.ts +66 -66
@@ -10,7 +10,7 @@ declare module 'chargebee' {
10
10
  id:string;
11
11
 
12
12
  /**
13
- * @description Type of the entity this comment generated for \* item - Entity that represents item \* order - Entity that represents an order \* item_price - Entity that represents item price \* customer - Entity that represents a customer \* invoice - Invoice description \* business_entity - Entity that represents item of type business entity \* plan - Entity that represents a subscription plan \* coupon - Entity that represents a discount coupon \* subscription - Entity that represents a subscription of a customer \* item_family - Entity that represents item family \* transaction - Entity that represents a transaction. \* addon - Entity that represents an addon \* credit_note - Credit note description \* quote - Entity that represents a quote
13
+ * @description Type of the entity this comment generated for \* item - Entity that represents item \* invoice - Invoice description \* product - Entity that represents product \* plan - Entity that represents a subscription plan \* item_family - Entity that represents item family \* transaction - Entity that represents a transaction. \* quote - Entity that represents a quote \* order - Entity that represents an order \* item_price - Entity that represents item price \* customer - Entity that represents a customer \* variant - Entity that represents product variants \* business_entity - Entity that represents item of type business entity \* coupon - Entity that represents a discount coupon \* subscription - Entity that represents a subscription of a customer \* addon - Entity that represents an addon \* credit_note - Credit note description
14
14
 
15
15
  */
16
16
 
@@ -38,7 +38,7 @@ declare module 'chargebee' {
38
38
  created_at:number;
39
39
 
40
40
  /**
41
- * @description Type of comment this is. \* user - Comment generated by user either via API or Admin console. \* system - Comment generated by Chargebee when any backend changes happen for an entity
41
+ * @description Type of comment this is. \* system - Comment generated by Chargebee when any backend changes happen for an entity \* user - Comment generated by user either via API or Admin console.
42
42
 
43
43
  */
44
44
 
@@ -54,13 +54,11 @@ declare module 'chargebee' {
54
54
  export namespace Comment {
55
55
  export class CommentResource {
56
56
  /**
57
- * @description Delete a comment for an [entity](https://apidocs.chargebee.com/docs/api/v1/comments?prod_cat_ver=1#create_a_comment_entity_type) identified by comment ID.
58
-
59
- Only the comments that are added via Admin console and API can be deleted. Chargebee generated "System" comments cannot be deleted.
57
+ * @description Create a new comment for an entity. The newly added comment will be shown in the web interface as well.
60
58
 
61
59
  */
62
60
 
63
- delete(comment_id:string):ChargebeeRequest<DeleteResponse>;
61
+ create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
64
62
 
65
63
  /**
66
64
  * @description Retrieve a comment for an entity identified by comment ID.
@@ -79,16 +77,47 @@ If you want to retrieve the list of comments for an [entity](https://apidocs.cha
79
77
  list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
80
78
 
81
79
  /**
82
- * @description Create a new comment for an entity. The newly added comment will be shown in the web interface as well.
80
+ * @description Delete a comment for an [entity](https://apidocs.chargebee.com/docs/api/v1/comments?prod_cat_ver&#x3D;1#create_a_comment_entity_type) identified by comment ID.
81
+
82
+ Only the comments that are added via Admin console and API can be deleted. Chargebee generated &quot;System&quot; comments cannot be deleted.
83
83
 
84
84
  */
85
85
 
86
- create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
86
+ delete(comment_id:string):ChargebeeRequest<DeleteResponse>;
87
87
  }
88
- export interface DeleteResponse {
88
+ export interface CreateResponse {
89
89
  comment:Comment;
90
90
  }
91
-
91
+ export interface CreateInputParam {
92
+
93
+ /**
94
+ * @description Type of the entity to create the comment for. \* item - Entity that represents item \* order - Entity that represents an order \* item_price - Entity that represents item price \* customer - Entity that represents a customer \* variant - Entity that represents product variants \* invoice - Invoice description \* product - Entity that represents product \* business_entity - Entity that represents item of type business entity \* plan - Entity that represents a subscription plan \* coupon - Entity that represents a discount coupon \* subscription - Entity that represents a subscription of a customer \* item_family - Entity that represents item family \* transaction - Entity that represents a transaction. \* addon - Entity that represents an addon \* credit_note - Credit note description \* quote - Entity that represents a quote
95
+
96
+ */
97
+
98
+ entity_type:EntityType;
99
+
100
+ /**
101
+ * @description Unique identifier of the entity.
102
+
103
+ */
104
+
105
+ entity_id:string;
106
+
107
+ /**
108
+ * @description Actual notes for the comment.
109
+
110
+ */
111
+
112
+ notes:string;
113
+
114
+ /**
115
+ * @description The user who created the comment. If created via API, this contains the name given for the API key used.
116
+
117
+ */
118
+
119
+ added_by?:string;
120
+ }
92
121
  export interface RetrieveResponse {
93
122
  comment:Comment;
94
123
  }
@@ -115,14 +144,18 @@ If you want to retrieve the list of comments for an [entity](https://apidocs.cha
115
144
  export interface ListInputParam {
116
145
  [key : string]: any;
117
146
  /**
118
- * @description The number of resources to be returned.
147
+ * @description Retrieve the list of comments sorted by the recent ones on the top.
148
+
149
+ If you want to retrieve the list of comments for an [entity](https://apidocs.chargebee.com/docs/api/v1/comments?prod_cat_ver&#x3D;1#list_comments_entity_type), for example, subscription you can filter them by passing the entity type and unique identifier for that entity, for example, subscription ID.
119
150
 
120
151
  */
121
152
 
122
153
  limit?:number;
123
154
 
124
155
  /**
125
- * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \&#x60;offset\&#x60; to the value of \&#x60;next_offset\&#x60; obtained in the previous iteration of the API call.
156
+ * @description Retrieve the list of comments sorted by the recent ones on the top.
157
+
158
+ If you want to retrieve the list of comments for an [entity](https://apidocs.chargebee.com/docs/api/v1/comments?prod_cat_ver&#x3D;1#list_comments_entity_type), for example, subscription you can filter them by passing the entity type and unique identifier for that entity, for example, subscription ID.
126
159
 
127
160
  */
128
161
 
@@ -147,7 +180,9 @@ If you want to retrieve the list of comments for an [entity](https://apidocs.cha
147
180
  entity_id?:string;
148
181
 
149
182
  /**
150
- * @description The time at which this comment was created
183
+ * @description Retrieve the list of comments sorted by the recent ones on the top.
184
+
185
+ If you want to retrieve the list of comments for an [entity](https://apidocs.chargebee.com/docs/api/v1/comments?prod_cat_ver&#x3D;1#list_comments_entity_type), for example, subscription you can filter them by passing the entity type and unique identifier for that entity, for example, subscription ID.
151
186
 
152
187
  */
153
188
 
@@ -162,39 +197,10 @@ If you want to retrieve the list of comments for an [entity](https://apidocs.cha
162
197
 
163
198
  sort_by?:{asc?:'created_at',desc?:'created_at'};
164
199
  }
165
- export interface CreateResponse {
200
+ export interface DeleteResponse {
166
201
  comment:Comment;
167
202
  }
168
- export interface CreateInputParam {
169
-
170
- /**
171
- * @description Type of the entity to create the comment for. \* item - Entity that represents item \* order - Entity that represents an order \* item_price - Entity that represents item price \* customer - Entity that represents a customer \* invoice - Invoice description \* business_entity - Entity that represents item of type business entity \* plan - Entity that represents a subscription plan \* coupon - Entity that represents a discount coupon \* subscription - Entity that represents a subscription of a customer \* item_family - Entity that represents item family \* transaction - Entity that represents a transaction. \* addon - Entity that represents an addon \* credit_note - Credit note description \* quote - Entity that represents a quote
172
-
173
- */
174
-
175
- entity_type:EntityType;
176
-
177
- /**
178
- * @description Unique identifier of the entity.
179
-
180
- */
181
-
182
- entity_id:string;
183
-
184
- /**
185
- * @description Actual notes for the comment.
186
-
187
- */
188
-
189
- notes:string;
190
-
191
- /**
192
- * @description The user who created the comment. If created via API, this contains the name given for the API key used.
193
-
194
- */
195
-
196
- added_by?:string;
197
- }
203
+
198
204
 
199
205
  }
200
206
  }