Releases: chargebee/chargebee-java
Releases · chargebee/chargebee-java
Release list
v4.13.0
v4.13.0 (2026-07-21)
New Resources:
AsyncResponsehas been added.AsyncResponseListhas been added.ColumnDefinitionhas been added.Meterhas been added.MeteredFeaturehas been added.
New Attributes:
currency_codehas been added toAlert.thresholdhas been added toAlert.filter_conditionshas been added toAlert.exchange_rateshas been added toCreditNote.meteredhas been added toFeature.exchange_rateshas been added toInvoice.payment_intent_metadatahas been added toPaymentIntent.
New Parameters:
meteredhas been added as query parameter tolist_featuresinFeature.decommissionedhas been added as query parameter tolist_subscriptionsinSubscription.currency_codehas been added as request body parameter tocreate_an_alertinAlert.line_items.proration_modehas been added as request body parameter toimport_credit_noteinCreditNote.item_prices.descriptionhas been added as request body parameter tocreate_invoice_for_items_estimateinEstimate.item_prices.entity_descriptionhas been added as request body parameter tocreate_invoice_for_items_estimateinEstimate.charges.entity_descriptionhas been added as request body parameter tocreate_invoice_for_items_estimateinEstimate.subscription.decommissionedhas been added as request body parameter toexport_subscriptionsinExport.item_prices.descriptionhas been added as request body parameter tocreate_invoice_for_items_and_one-time_chargesinInvoice.item_prices.entity_descriptionhas been added as request body parameter tocreate_invoice_for_items_and_one-time_chargesinInvoice.charges.entity_descriptionhas been added as request body parameter tocreate_invoice_for_items_and_one-time_chargesinInvoice.create_pending_invoicehas been added as request body parameter tocreate_invoice_for_items_and_one-time_chargesinInvoice.line_items.proration_modehas been added as request body parameter toimport_invoiceinInvoice.paid_athas been added as request body parameter toimport_invoiceinInvoice.discounts_to_add.quantityhas been added as request body parameter tocreate_a_rampinRamp.discounts_to_add.quantityhas been added as request body parameter toupdate_a_subscription_rampinRamp.customer.emailhas been added as request body parameter torecord_a_purchaseinRecordedPurchase.customer.first_namehas been added as request body parameter torecord_a_purchaseinRecordedPurchase.customer.last_namehas been added as request body parameter torecord_a_purchaseinRecordedPurchase.
Parameter Updates:
metered_feature_idhas been changed from required to optional increate_an_alertofAlert.
New Events:
payment_source_business_entity_changedhas been added.
Deleted Attributes:
start_balancehas been removed fromLedgerOperation.end_balancehas been removed fromLedgerOperation.
New Enums:
real_time_paymentshas been added as a new value enumDunningType.payment_source_business_entity_changedhas been added as a new value enumEventType.paynow,bizum, andpromptpayhave been added as new values enumPaymentMethod.paynow,bizum, andpromptpayhave been added as new values enumPaymentMethodType.active,archived, anddeletedhave been added as new values enumStatus.zero_rated,region_non_taxable,product_exempt,high_value_physical_goods,zero_value_item, andtax_not_configured_external_providerhave been added as new values enumTaxOverrideReason.paynow,bizum,promptpay,simple,compound, andspend_exceededhave been added as new values enumType.- `success...
v3.51.0
v3.51.0 (2026-07-21)
New Resources:
AsyncResponsehas been added.AsyncResponseListhas been added.ColumnDefinitionhas been added.Meterhas been added.MeteredFeaturehas been added.
New Attributes:
currency_codehas been added toAlert.thresholdhas been added toAlert.filter_conditionshas been added toAlert.exchange_rateshas been added toCreditNote.meteredhas been added toFeature.exchange_rateshas been added toInvoice.payment_intent_metadatahas been added toPaymentIntent.
New Parameters:
meteredhas been added as query parameter tolist_featuresinFeature.decommissionedhas been added as query parameter tolist_subscriptionsinSubscription.currency_codehas been added as request body parameter tocreate_an_alertinAlert.line_items.proration_modehas been added as request body parameter toimport_credit_noteinCreditNote.item_prices.descriptionhas been added as request body parameter tocreate_invoice_for_items_estimateinEstimate.item_prices.entity_descriptionhas been added as request body parameter tocreate_invoice_for_items_estimateinEstimate.charges.entity_descriptionhas been added as request body parameter tocreate_invoice_for_items_estimateinEstimate.subscription.decommissionedhas been added as request body parameter toexport_subscriptionsinExport.item_prices.descriptionhas been added as request body parameter tocreate_invoice_for_items_and_one-time_chargesinInvoice.item_prices.entity_descriptionhas been added as request body parameter tocreate_invoice_for_items_and_one-time_chargesinInvoice.charges.entity_descriptionhas been added as request body parameter tocreate_invoice_for_items_and_one-time_chargesinInvoice.create_pending_invoicehas been added as request body parameter tocreate_invoice_for_items_and_one-time_chargesinInvoice.line_items.proration_modehas been added as request body parameter toimport_invoiceinInvoice.paid_athas been added as request body parameter toimport_invoiceinInvoice.discounts_to_add.quantityhas been added as request body parameter tocreate_a_rampinRamp.discounts_to_add.quantityhas been added as request body parameter toupdate_a_subscription_rampinRamp.customer.emailhas been added as request body parameter torecord_a_purchaseinRecordedPurchase.customer.first_namehas been added as request body parameter torecord_a_purchaseinRecordedPurchase.customer.last_namehas been added as request body parameter torecord_a_purchaseinRecordedPurchase.
Parameter Updates:
metered_feature_idhas been changed from required to optional increate_an_alertofAlert.
New Events:
payment_source_business_entity_changedhas been added.
Deleted Attributes:
start_balancehas been removed fromLedgerOperation.end_balancehas been removed fromLedgerOperation.
New Enums:
real_time_paymentshas been added as a new value enumDunningType.payment_source_business_entity_changedhas been added as a new value enumEventType.paynow,bizum, andpromptpayhave been added as new values enumPaymentMethod.paynow,bizum, andpromptpayhave been added as new values enumPaymentMethodType.active,archived, anddeletedhave been added as new values enumStatus.zero_rated,region_non_taxable,product_exempt,high_value_physical_goods,zero_value_item, andtax_not_configured_external_providerhave been added as new values enumTaxOverrideReason.paynow,bizum,promptpay,simple,compound, andspend_exceededhave been added as new values enumType.- `success...
v4.12.0
v4.12.0 (2026-06-30)
New Features
- Added an optional
telemetryAdapterhook for tracing Chargebee API calls via OpenTelemetry (or any APM). Configure it once on the client (ChargebeeClient.Builder#telemetryAdapter) or per call (RequestOptions.Builder#telemetryAdapter). When unconfigured, the SDK skips all telemetry work — no behavior change for existing integrations. - Each API call emits one CLIENT span (
chargebee.{resource}.{operation}) with OpenTelemetry HTTP semantic-convention attributes (url.full,http.request.method,server.address,http.response.status_code) pluschargebee.*attributes. Adapters may inject W3C trace context (traceparent,tracestate) into outbound request headers for distributed tracing. - Exposed the
TelemetryAdapter,RequestTelemetryContext,RequestTelemetryResult,RequestTelemetryErrortypes, theTelemetrySupporthelpers, and theTelemetryAttributeKeysconstants undercom.chargebee.v4.telemetry. - Added a convenience
updateGift(String giftId)overload (and itsupdateGiftAsyncasync variant) toGiftServicefor invokingupdate_giftwithout params.
v4.11.0
v4.11.0 (2026-06-29)
Bug Fixes:
- Fixed JSON request body serialization where
Timestampparameters were sent in a human-readable format (e.g."expires_at":"2026-06-23 09:54:44.513") instead of Unix seconds. They are now serialized as numeric Unix seconds (e.g."expires_at":1782189229), matching the form-url-encoded path and the format expected by the API. This affects all JSON content-type endpoints, such ascreate_promotional_grantinPromotionalGrant. - Fixed JSON request body serialization for endpoints that accept nested objects and arrays. Previously the JSON body reused the
application/x-www-form-urlencodedflattening (e.g.events[deduplication_id][]) and double-encoded nested objects; the JSON content-type now emits a proper nested structure. This affects JSON endpoints such asingest_usages_in_batchandcreate_a_usage_eventinUsageEvent. - Fixed
usage_timestampforUsageEventto be sent as epoch milliseconds. Theusage_timestampparameter increate_a_usage_eventandingest_usages_in_batchis now typed asLong(epoch milliseconds) instead ofTimestamp, preserving the millisecond precision required by the ingestion API.
v3.50.0
v3.50.0 (2026-06-22)
Bug Fixes:
- Fixed JSON request body serialization where
Timestampparameters were sent in a human-readable format (e.g."expires_at":"2026-06-23 09:54:44.513") instead of Unix seconds. They are now serialized as numeric Unix seconds (e.g."expires_at":1782189229), matching the form-url-encoded path and the format expected by the API. This affects all JSON content-type endpoints, such ascreate_promotional_grantinPromotionalGrant.
v4.10.0
v4.10.0 (2026-06-12)
New Resources:
GrantBlockhas been added.LedgerAccountBalancehas been added.LedgerOperationhas been added.PromotionalGranthas been added.
New Attributes:
noteshas been added toCreditNote.layouthas been added toHostedPage.
New Parameters:
sort_byhas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.
New Enums:
available,exhausted,scheduled, andin_grace_periodhave been added as new values enumStatus.subscription_created,subscription_changed,top_up,promotional_grants, androlloverhave been added as new values to enum attributegrant_sourceinGrantBlock.provisionedandoverdrafthave been added as new values to enum attributeaccount_typeinGrantBlock.credit_unithas been added as a new value to enum attributeunit_typeinGrantBlock.credit_unithas been added as a new value to enum attributeunit_typeinLedgerAccountBalance.allocation,capture,authorize,release_authorization,capture_authorization,expiry,void,rollover, andadjustmenthave been added as new values to enum attributetypeinLedgerOperation.credit_unithas been added as a new value to enum attributeunit_typeinLedgerOperation.expires_at,created_at, andeffective_fromhave been added as new values to enum query parametersort_by.ascinlist_grant_blocksofGrantBlock.expires_at,created_at, andeffective_fromhave been added as new values to enum query parametersort_by.descinlist_grant_blocksofGrantBlock.allocation,release_authorization,void,capture,rollover,adjustment,expiry,authorize, andcapture_authorizationhave been added as new values to enum query parametertype.isinlist_ledger_operationsofLedgerOperation.allocation,release_authorization,void,capture,rollover,adjustment,expiry,authorize, andcapture_authorizationhave been added as new values to enum query parametertype.ininlist_ledger_operationsofLedgerOperation.created_athas been added as a new value to enum query parametersort_by.ascinlist_ledger_operationsofLedgerOperation.created_athas been added as a new value to enum query parametersort_by.descinlist_ledger_operationsofLedgerOperation.updated_atandcreated_athave been added as new values to enum query parametersort_by.ascinlist_omnichannel_subscriptionsofOmnichannelSubscription.updated_atandcreated_athave been added as new values to enum query parametersort_by.descinlist_omnichannel_subscriptionsofOmnichannelSubscription.
v3.49.0
v3.49.0 (2026-06-12)
New Resources:
GrantBlockhas been added.LedgerAccountBalancehas been added.LedgerOperationhas been added.PromotionalGranthas been added.
New Attributes:
noteshas been added toCreditNote.layouthas been added toHostedPage.
New Parameters:
sort_byhas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.
New Enums:
available,exhausted,scheduled, andin_grace_periodhave been added as new values enumStatus.subscription_created,subscription_changed,top_up,promotional_grants, androlloverhave been added as new values to enum attributegrant_sourceinGrantBlock.provisionedandoverdrafthave been added as new values to enum attributeaccount_typeinGrantBlock.credit_unithas been added as a new value to enum attributeunit_typeinGrantBlock.credit_unithas been added as a new value to enum attributeunit_typeinLedgerAccountBalance.allocation,capture,authorize,release_authorization,capture_authorization,expiry,void,rollover, andadjustmenthave been added as new values to enum attributetypeinLedgerOperation.credit_unithas been added as a new value to enum attributeunit_typeinLedgerOperation.expires_at,created_at, andeffective_fromhave been added as new values to enum query parametersort_by.ascinlist_grant_blocksofGrantBlock.expires_at,created_at, andeffective_fromhave been added as new values to enum query parametersort_by.descinlist_grant_blocksofGrantBlock.allocation,release_authorization,void,capture,rollover,adjustment,expiry,authorize, andcapture_authorizationhave been added as new values to enum query parametertype.isinlist_ledger_operationsofLedgerOperation.allocation,release_authorization,void,capture,rollover,adjustment,expiry,authorize, andcapture_authorizationhave been added as new values to enum query parametertype.ininlist_ledger_operationsofLedgerOperation.created_athas been added as a new value to enum query parametersort_by.ascinlist_ledger_operationsofLedgerOperation.created_athas been added as a new value to enum query parametersort_by.descinlist_ledger_operationsofLedgerOperation.updated_atandcreated_athave been added as new values to enum query parametersort_by.ascinlist_omnichannel_subscriptionsofOmnichannelSubscription.updated_atandcreated_athave been added as new values to enum query parametersort_by.descinlist_omnichannel_subscriptionsofOmnichannelSubscription.
v4.9.0
v4.9.0 (2026-06-08)
New Attributes:
purchased_athas been added toOmnichannelSubscription.updated_athas been added toOmnichannelSubscription.updated_athas been added toOmnichannelSubscriptionItem.
New Parameters:
customer_id.inhas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.customer_id.not_inhas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.idhas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.id_at_sourcehas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.updated_athas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.purchased_athas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.gift_receiverhas been added as request body parameter toupdate_a_giftinGift.layouthas been added as request body parameter tocheckout_gift_subscription_for_itemsinHostedPage.
Parameter Updates:
scheduled_athas been changed from required to optional inupdate_a_giftofGift.
New Events:
omnichannel_subscription_item_updatedhas been added.omnichannel_subscription_item_recoveredhas been added.
Deleted Resources:
- QuoteEntitlement has been removed.
Deleted Attributes:
entity_idhas been removed fromQuoteEntitlement.entity_typehas been removed fromQuoteEntitlement.feature_idhas been removed fromQuoteEntitlement.valuehas been removed fromQuoteEntitlement.is_enabledhas been removed fromQuoteEntitlement.start_datehas been removed fromQuoteEntitlement.end_datehas been removed fromQuoteEntitlement.created_athas been removed fromQuoteEntitlement.modified_athas been removed fromQuoteEntitlement.
Deleted Parameters:
excludehas been removed as query parameter fromlist_invoicesinInvoice.
New Enums:
omnichannel_subscription_item_updatedandomnichannel_subscription_item_recoveredhave been added as new values enumEventType.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values enumPaymentMethod.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values enumPaymentMethodType.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values enumType.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values to enum attributepayment_method_typeinPaymentIntent.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values to enum attributeactive_payment_attempt.payment_method_typeinPaymentIntent.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values to enum request body parameterpayment_method_typeinupdate_a_payment_intentofPaymentIntent.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values to enum request body parameterpayment_method_typeincreate_a_payment_intentofPaymentIntent.
v3.48.0
v3.48.0 (2026-06-08)
New Attributes:
purchased_athas been added toOmnichannelSubscription.updated_athas been added toOmnichannelSubscription.updated_athas been added toOmnichannelSubscriptionItem.
New Parameters:
customer_id.inhas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.customer_id.not_inhas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.idhas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.id_at_sourcehas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.updated_athas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.purchased_athas been added as query parameter tolist_omnichannel_subscriptionsinOmnichannelSubscription.gift_receiverhas been added as request body parameter toupdate_a_giftinGift.layouthas been added as request body parameter tocheckout_gift_subscription_for_itemsinHostedPage.
Parameter Updates:
scheduled_athas been changed from required to optional inupdate_a_giftofGift.
New Events:
omnichannel_subscription_item_updatedhas been added.omnichannel_subscription_item_recoveredhas been added.
Deleted Resources:
- QuoteEntitlement has been removed.
Deleted Attributes:
entity_idhas been removed fromQuoteEntitlement.entity_typehas been removed fromQuoteEntitlement.feature_idhas been removed fromQuoteEntitlement.valuehas been removed fromQuoteEntitlement.is_enabledhas been removed fromQuoteEntitlement.start_datehas been removed fromQuoteEntitlement.end_datehas been removed fromQuoteEntitlement.created_athas been removed fromQuoteEntitlement.modified_athas been removed fromQuoteEntitlement.
Deleted Parameters:
excludehas been removed as query parameter fromlist_invoicesinInvoice.
New Enums:
omnichannel_subscription_item_updatedandomnichannel_subscription_item_recoveredhave been added as new values enumEventType.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values enumPaymentMethod.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values enumPaymentMethodType.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values enumType.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values to enum attributepayment_method_typeinPaymentIntent.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values to enum attributeactive_payment_attempt.payment_method_typeinPaymentIntent.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values to enum request body parameterpayment_method_typeinupdate_a_payment_intentofPaymentIntent.klarna,alipay_hk,paypay,gcash, andsouth_korean_cardshave been added as new values to enum request body parameterpayment_method_typeincreate_a_payment_intentofPaymentIntent.
v4.8.0
v4.8.0 (2026-06-02)
Enhancements:
- Added a
fromJson(Map<String, Object>)overload to all models, so nested map entities can be converted to a typed model directly (e.g.Subscription.fromJson(subscription)).
Bug Fixes:
- Fixed deserialization of nested JSON in dynamic
Map<String, Object>fields (for exampleHostedPage.getContent()andHostedPage.getCheckoutInfo()). Nested objects and arrays are now returned asMapandListinstead of JSON strings, which resolvesClassCastExceptionwhen casting nested entities such ascustomer,subscription, andinvoicetoMap<String, Object>. The same parsing behavior applies to other map attributes includingEvent.getContent(),meta_data, andconsent_fields. If your integration previously parsed nested map values as JSON strings, use the returnedMap/Listdirectly or branch oninstanceofduring upgrade.