Skip to content

Commit

Permalink
Release 3.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-yateshmathuria committed Nov 10, 2022
1 parent c226285 commit 6d94561
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 41 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
### v3.12.0 (2022-11-10)
* * *

### Fixes:
* Fixed the correct import of content in init.php

#### New endpoints:
* credit_notes#import_credit_note has been added to the credit_notes resource.
* subscriptions#import_unbilled_charges has been added to the subscriptions resource.

#### New attributes:
* shipped_at parameter has been added to the orders#list_orders API.

#### Added input parameters:
* voided_at and void_reason_code have been added to the invoices#import_invoice API.

#### New attributes:
* business_entity_id has been added to the orders resource.

#### New Enum values:
* registered has been added to the status enum in credit_note_einvoice and invoice_einvoice subresources.
* type enum has been added to the subscription_discount subresource.
* subscription_entitlements_created has been added to the event_type enum.


### v3.11.0 (2022-09-20)

#### New Resource:
Expand Down
5 changes: 5 additions & 0 deletions lib/ChargeBee/Models/CreditNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ public static function resendEinvoice($id, $env = null, $headers = array())
return Request::send(Request::POST, Util::encodeURIPath("credit_notes",$id,"resend_einvoice"), array(), $env, $headers);
}

public static function importCreditNote($params, $env = null, $headers = array())
{
return Request::send(Request::POST, Util::encodeURIPath("credit_notes","import_credit_note"), $params, $env, $headers);
}

}

?>
38 changes: 0 additions & 38 deletions lib/ChargeBee/Models/Discount.php

This file was deleted.

2 changes: 1 addition & 1 deletion lib/ChargeBee/Models/ItemPrice.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function retrieve($id, $env = null, $headers = array())
return Request::send(Request::GET, Util::encodeURIPath("item_prices",$id), array(), $env, $headers);
}

public static function update($id, $params = array(), $env = null, $headers = array())
public static function update($id, $params, $env = null, $headers = array())
{
return Request::send(Request::POST, Util::encodeURIPath("item_prices",$id), $params, $env, $headers);
}
Expand Down
1 change: 1 addition & 0 deletions lib/ChargeBee/Models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class Order extends Model
'giftId',
'resendReason',
'resentOrders',
'businessEntityId',
];


Expand Down
5 changes: 5 additions & 0 deletions lib/ChargeBee/Models/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ public static function importContractTerm($id, $params = array(), $env = null, $
return Request::send(Request::POST, Util::encodeURIPath("subscriptions",$id,"import_contract_term"), $params, $env, $headers);
}

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

public static function importForItems($id, $params, $env = null, $headers = array())
{
return Request::send(Request::POST, Util::encodeURIPath("customers",$id,"import_for_items"), $params, $env, $headers);
Expand Down
1 change: 1 addition & 0 deletions lib/ChargeBee/Models/SubscriptionDiscount.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class SubscriptionDiscount extends Model
protected $allowed = [
'id',
'invoiceName',
'type',
'percentage',
'amount',
'currencyCode',
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.11.0';
const VERSION = '3.12.0';
}

?>
2 changes: 1 addition & 1 deletion lib/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,4 @@
require(dirname(__FILE__) . '/ChargeBee/Models/VirtualBankAccount.php');
require(dirname(__FILE__) . '/ChargeBee/Models/Content.php');

?>
?>

0 comments on commit 6d94561

Please sign in to comment.