chargebee 2.33.0 → 2.33.1

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### v2.33.1 (2024-03-06)
2
+ * * *
3
+ * NonSubscription has been added.
4
+
5
+
1
6
  ### v2.33.0 (2024-02-29)
2
7
  * * *
3
8
 
package/lib/chargebee.js CHANGED
@@ -11,7 +11,7 @@ ChargeBee._env = {
11
11
  hostSuffix: '.chargebee.com',
12
12
  apiPath: '/api/v2',
13
13
  timeout: 80000,
14
- clientVersion: 'v2.33.0',
14
+ clientVersion: 'v2.33.1',
15
15
  port: 443,
16
16
  timemachineWaitInMillis: 3000,
17
17
  exportWaitInMillis: 3000
@@ -2629,6 +2629,15 @@ var _endpoints = {
2629
2629
  true
2630
2630
  ]
2631
2631
  ],
2632
+ "non_subscription": [
2633
+ [
2634
+ "process_receipt",
2635
+ "POST",
2636
+ "/non_subscriptions",
2637
+ "/one_time_purchase",
2638
+ true
2639
+ ]
2640
+ ],
2632
2641
  "entitlement_override": [
2633
2642
  [
2634
2643
  "add_entitlement_override_for_subscription",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"chargebee",
3
- "version":"2.33.0",
3
+ "version":"2.33.1",
4
4
  "description":"A library for integrating with ChargeBee.",
5
5
  "keywords":[
6
6
  "payments",
@@ -0,0 +1,30 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ declare module 'chargebee' {
3
+ export interface NonSubscription {
4
+
5
+ app_id:string;
6
+
7
+ invoice_id:string;
8
+
9
+ customer_id?:string;
10
+
11
+ charge_id:string;
12
+ }
13
+ export namespace NonSubscription {
14
+ export class NonSubscriptionResource {
15
+ process_receipt(non_subscription_app_id:string, input:ProcessReceiptInputParam):ChargebeeRequest<ProcessReceiptResponse>;
16
+ }
17
+ export interface ProcessReceiptResponse {
18
+ non_subscription:NonSubscription;
19
+ }
20
+ export interface ProcessReceiptInputParam {
21
+
22
+ receipt:string;
23
+
24
+ product:{currency_code:string,id:string,name?:string,price:number,price_in_decimal?:string,type:'non_consumable' | 'consumable' | 'non_renewing_subscription'};
25
+
26
+ customer?:{email?:string,first_name?:string,id?:string,last_name?:string};
27
+ }
28
+
29
+ }
30
+ }