Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,68 @@
### v3.36.0 (2026-11-12)
* * *
### New Resources:
- `BillingLineItem` has been added.
- `BillingMetadata` has been added.
- `GatewayRequestLog` has been added.
- `GatewayWebhookLog` has been added.
- `OrganizationDetail` has been added.


### New Attributes:
- `description` has been added to `Discount`.
- `billing_metadata` has been added to `GrantBlock`.
- `offline_payment_method` has been added to `Invoice`.


### New Parameters:
- `discounts.description` has been added as request body parameter to `estimate_for_creating_a_customer_and_subscription` in `Estimate`.
- `discounts.description` has been added as request body parameter to `estimate_for_updating_a_subscription` in `Estimate`.
- `discounts.description` has been added as request body parameter to `estimate_for_creating_a_subscription` in `Estimate`.
- `allowed_billing_frequencies` has been added as request body parameter to `checkout_gift_subscription_for_items` in `HostedPage`.
- `show_billing_frequency_selector` has been added as request body parameter to `checkout_gift_subscription_for_items` in `HostedPage`.
- `allowed_billing_frequencies` has been added as request body parameter to `create_checkout_for_a_new_subscription` in `HostedPage`.
- `show_billing_frequency_selector` has been added as request body parameter to `create_checkout_for_a_new_subscription` in `HostedPage`.
- `allowed_billing_frequencies` has been added as request body parameter to `create_checkout_to_update_a_subscription` in `HostedPage`.
- `show_billing_frequency_selector` has been added as request body parameter to `create_checkout_to_update_a_subscription` in `HostedPage`.
- `credit_notes.amount` has been added as request body parameter to `apply_credits_for_an_invoice` in `Invoice`.
- `credit_notes.applied_at` has been added as request body parameter to `apply_credits_for_an_invoice` in `Invoice`.
- `offline_payment_method` has been added as request body parameter to `create_invoice_for_items_and_one-time_charges` in `Invoice`.
- `discounts.description` has been added as request body parameter to `update_subscription_for_items` in `Subscription`.
- `discounts.description` has been added as request body parameter to `create_subscription_for_items` in `Subscription`.
- `group_by.window_size` has been added as request body parameter to `retrieve_usages_for_an_invoice_as_pdf` in `Usage`.


### New Events:
- `organization_details_updated` has been added.
- `organization_details_created` has been added.


### Deleted Actions:
- `list_citations_for_a_draft_request` has been removed from `DraftRequest`.
- `add_citations_to_a_draft_request` has been removed from `DraftRequest`.
- `execute_a_draft_request` has been removed from `DraftRequest`.
- `estimate_a_draft_request` has been removed from `DraftRequest`.
- `list_comments_for_a_draft_request` has been removed from `DraftRequest`.
- `add_comments_to_a_draft_request` has been removed from `DraftRequest`.
- `retrieve_a_draft_request` has been removed from `DraftRequest`.
- `update_a_draft_request` has been removed from `DraftRequest`.
- `create_a_draft_request` has been removed from `DraftRequest`.


### New Enums:
- `organization_details_created` and `organization_details_updated` have been added as new values enum `EventType`.
- `invocation_time` has been added as a new value to enum query parameter `sort_by.asc` in `list_gateway_request_logs` of `GatewayRequestLog`.
- `invocation_time` has been added as a new value to enum query parameter `sort_by.desc` in `list_gateway_request_logs` of `GatewayRequestLog`.
- `received_at` has been added as a new value to enum query parameter `sort_by.asc` in `list_gateway_webhook_logs` of `GatewayWebhookLog`.
- `received_at` has been added as a new value to enum query parameter `sort_by.desc` in `list_gateway_webhook_logs` of `GatewayWebhookLog`.
- `none` and `day` have been added as new values to enum request body parameter `group_by.window_size` in `retrieve_usages_for_an_invoice_as_pdf` of `Usage`.


### Bug Fixes:
- Fixed `enableValidation` rejecting correctly typed params: filter operators now accept arrays, numbers and booleans (e.g. `status: { in: ['active'] }`), and composite array params (e.g. `subscription_items`) accept an array of objects. Resolves https://github.com/chargebee/chargebee-node/issues/140.



### v3.35.0 (2026-11-02)
* * *
### New Resources:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.35.0
3.36.0
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": "3.35.0",
"version": "3.36.0",
"description": "A library for integrating with Chargebee.",
"scripts": {
"prepack": "npm ci && npm run build",
Expand Down
2 changes: 1 addition & 1 deletion src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const Environment = {
hostSuffix: '.chargebee.com',
apiPath: '/api/v2',
timeout: DEFAULT_TIME_OUT,
clientVersion: 'v3.35.0',
clientVersion: 'v3.36.0',
port: DEFAULT_PORT,
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
Expand Down
60 changes: 60 additions & 0 deletions src/resources/api_endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ interface Endpoints {
card: EndpointTuple[];
promotionalCredit: EndpointTuple[];
emailLog: EndpointTuple[];
gatewayRequestLog: EndpointTuple[];
gatewayWebhookLog: EndpointTuple[];
invoice: EndpointTuple[];
paymentReferenceNumber: EndpointTuple[];
paymentSchedule: EndpointTuple[];
Expand Down Expand Up @@ -96,6 +98,7 @@ interface Endpoints {
businessEntity: EndpointTuple[];
purchase: EndpointTuple[];
paymentVoucher: EndpointTuple[];
organizationDetail: EndpointTuple[];
currency: EndpointTuple[];
ramp: EndpointTuple[];
paymentScheduleScheme: EndpointTuple[];
Expand Down Expand Up @@ -147,6 +150,7 @@ interface Endpoints {
emailAttachment: EndpointTuple[];
ledgerAccountBalance: EndpointTuple[];
ledgerOperation: EndpointTuple[];
billingMetadata: EndpointTuple[];
grantBlock: EndpointTuple[];
ledgerEntry: EndpointTuple[];
promotionalGrant: EndpointTuple[];
Expand Down Expand Up @@ -1381,6 +1385,34 @@ export const Endpoints: Endpoints = {
{},
],
],
gatewayRequestLog: [
['list', 'GET', '/gateway_request_logs', null, false, null, false, {}, {}],
[
'retrieve',
'GET',
'/gateway_request_logs',
null,
true,
null,
false,
{},
{},
],
],
gatewayWebhookLog: [
['list', 'GET', '/gateway_webhook_logs', null, false, null, false, {}, {}],
[
'retrieve',
'GET',
'/gateway_webhook_logs',
null,
true,
null,
false,
{},
{},
],
],
invoice: [
[
'create',
Expand Down Expand Up @@ -4960,6 +4992,33 @@ export const Endpoints: Endpoints = {
{},
],
],
organizationDetail: [
[
'create',
'POST',
'/organization_details',
null,
false,
null,
false,
{},
{
isIdempotent: true,
},
],
[
'retrieve',
'GET',
'/organization_details',
null,
true,
null,
false,
{},
{},
],
['list', 'GET', '/organization_details', null, false, null, false, {}, {}],
],
currency: [
['list', 'GET', '/currencies', '/list', false, null, false, {}, {}],
['retrieve', 'GET', '/currencies', null, true, null, false, {}, {}],
Expand Down Expand Up @@ -5996,6 +6055,7 @@ export const Endpoints: Endpoints = {
{},
],
],
billingMetadata: [],
grantBlock: [
[
'listGrantBlocks',
Expand Down
12 changes: 12 additions & 0 deletions src/resources/webhook/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,14 @@ export interface OrderUpdatedContent {
Order: import('chargebee').Order;
}

export interface OrganizationDetailsCreatedContent {
OrganizationDetail: import('chargebee').OrganizationDetail;
}

export interface OrganizationDetailsUpdatedContent {
OrganizationDetail: import('chargebee').OrganizationDetail;
}

export interface PaymentDueReminderContent {
Customer: import('chargebee').Customer;

Expand Down Expand Up @@ -1997,6 +2005,10 @@ export type WebhookContentMap = {

[WebhookEventType.OrderUpdated]: OrderUpdatedContent;

[WebhookEventType.OrganizationDetailsCreated]: OrganizationDetailsCreatedContent;

[WebhookEventType.OrganizationDetailsUpdated]: OrganizationDetailsUpdatedContent;

[WebhookEventType.PaymentDueReminder]: PaymentDueReminderContent;

[WebhookEventType.PaymentFailed]: PaymentFailedContent;
Expand Down
4 changes: 4 additions & 0 deletions src/resources/webhook/eventType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ export enum WebhookEventType {

OrderUpdated = 'order_updated',

OrganizationDetailsCreated = 'organization_details_created',

OrganizationDetailsUpdated = 'organization_details_updated',

PaymentDueReminder = 'payment_due_reminder',

PaymentFailed = 'payment_failed',
Expand Down
Loading
Loading