Skip to content

Commit

Permalink
Releasing v3.25.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 eaa9454 commit 07a11bc
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### v3.25.1 (2024-03-06)
* * *
* NonSubscription has been added.

### v3.25.0 (2024-02-29)
* * *

Expand Down
31 changes: 31 additions & 0 deletions lib/ChargeBee/Models/NonSubscription.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace ChargeBee\ChargeBee\Models;

use ChargeBee\ChargeBee\Model;
use ChargeBee\ChargeBee\Request;
use ChargeBee\ChargeBee\Util;

class NonSubscription extends Model
{

protected $allowed = [
'appId',
'invoiceId',
'customerId',
'chargeId',
];



# OPERATIONS
#-----------

public static function processReceipt($id, $params, $env = null, $headers = array())
{
return Request::send(Request::POST, Util::encodeURIPath("non_subscriptions",$id,"one_time_purchase"), $params, $env, $headers);
}

}

?>
6 changes: 6 additions & 0 deletions lib/ChargeBee/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,12 @@ public function inAppSubscription()
return $in_app_subscription;
}

public function nonSubscription()
{
$non_subscription = $this->_get('non_subscription', Models\NonSubscription::class);
return $non_subscription;
}

public function entitlementOverride()
{
$entitlement_override = $this->_get('entitlement_override', Models\EntitlementOverride::class);
Expand Down
2 changes: 1 addition & 1 deletion lib/ChargeBee/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

final class Version
{
const VERSION = '3.25.0';
const VERSION = '3.25.1';
}

?>
1 change: 1 addition & 0 deletions lib/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
require(dirname(__FILE__) . '/ChargeBee/Models/ItemPriceAccountingDetail.php');
require(dirname(__FILE__) . '/ChargeBee/Models/ItemPriceTaxDetail.php');
require(dirname(__FILE__) . '/ChargeBee/Models/ItemPriceTier.php');
require(dirname(__FILE__) . '/ChargeBee/Models/NonSubscription.php');
require(dirname(__FILE__) . '/ChargeBee/Models/Order.php');
require(dirname(__FILE__) . '/ChargeBee/Models/OrderBillingAddress.php');
require(dirname(__FILE__) . '/ChargeBee/Models/OrderLineItemDiscount.php');
Expand Down

0 comments on commit 07a11bc

Please sign in to comment.