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
package/lib/chargebee.js
CHANGED
|
@@ -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
|
@@ -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
|
+
}
|