Skip to content

Commit

Permalink
Releasing v2.33.1. Please check the changelog for the updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-thushitamariaselvan committed Mar 6, 2024
1 parent 12d2c8a commit 139d881
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### v2.33.1 (2024-03-06)
* * *
* NonSubscription has been added.


### v2.33.0 (2024-02-29)
* * *

Expand Down
2 changes: 1 addition & 1 deletion lib/chargebee.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ChargeBee._env = {
hostSuffix: '.chargebee.com',
apiPath: '/api/v2',
timeout: 80000,
clientVersion: 'v2.33.0',
clientVersion: 'v2.33.1',
port: 443,
timemachineWaitInMillis: 3000,
exportWaitInMillis: 3000
Expand Down
9 changes: 9 additions & 0 deletions lib/resources/api_endpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -2629,6 +2629,15 @@ var _endpoints = {
true
]
],
"non_subscription": [
[
"process_receipt",
"POST",
"/non_subscriptions",
"/one_time_purchase",
true
]
],
"entitlement_override": [
[
"add_entitlement_override_for_subscription",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name":"chargebee",
"version":"2.33.0",
"version":"2.33.1",
"description":"A library for integrating with ChargeBee.",
"keywords":[
"payments",
Expand Down
30 changes: 30 additions & 0 deletions types/resources/NonSubscription.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
///<reference path='./../core.d.ts'/>
declare module 'chargebee' {
export interface NonSubscription {

app_id:string;

invoice_id:string;

customer_id?:string;

charge_id:string;
}
export namespace NonSubscription {
export class NonSubscriptionResource {
process_receipt(non_subscription_app_id:string, input:ProcessReceiptInputParam):ChargebeeRequest<ProcessReceiptResponse>;
}
export interface ProcessReceiptResponse {
non_subscription:NonSubscription;
}
export interface ProcessReceiptInputParam {

receipt:string;

product:{currency_code:string,id:string,name?:string,price:number,price_in_decimal?:string,type:'non_consumable' | 'consumable' | 'non_renewing_subscription'};

customer?:{email?:string,first_name?:string,id?:string,last_name?:string};
}

}
}

0 comments on commit 139d881

Please sign in to comment.