diff --git a/CHANGELOG.md b/CHANGELOG.md index 4147cf78..5257ff34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,47 @@ + +### v3.43.0 (2026-02-06) +* * * +### New Attributes: +- [`subscription_id`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/entitlement-override-object#subscription_id) has been added to [`EntitlementOverride`](https://apidocs.chargebee.com/docs/api/entitlement_overrides). +- [`is_enabled`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/entitlement-override-object#is_enabled) has been added to [`EntitlementOverride`](https://apidocs.chargebee.com/docs/api/entitlement_overrides). +- [`decommissioned`](https://apidocs.chargebee.com/docs/api/subscriptions/subscription-object#decommissioned) has been added to [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). + + +### New Parameters: +- [`omnichannel_subscription_item`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#omnichannel_subscription_item) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions). +- [`entitlement_overrides.entity_id`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/upsert-or-remove-entitlement-overrides-for-a-subscription#entitlement_overrides_entity_id) has been added as request body parameter to [`upsert_or_remove_entitlement_overrides_for_a_subscription`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/upsert-or-remove-entitlement-overrides-for-a-subscription) in [`EntitlementOverride`](https://apidocs.chargebee.com/docs/api/entitlement_overrides). +- [`entitlement_overrides.entity_type`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/upsert-or-remove-entitlement-overrides-for-a-subscription#entitlement_overrides_entity_type) has been added as request body parameter to [`upsert_or_remove_entitlement_overrides_for_a_subscription`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/upsert-or-remove-entitlement-overrides-for-a-subscription) in [`EntitlementOverride`](https://apidocs.chargebee.com/docs/api/entitlement_overrides). +- [`entitlement_overrides.is_enabled`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/upsert-or-remove-entitlement-overrides-for-a-subscription#entitlement_overrides_is_enabled) has been added as request body parameter to [`upsert_or_remove_entitlement_overrides_for_a_subscription`](https://apidocs.chargebee.com/docs/api/entitlement_overrides/upsert-or-remove-entitlement-overrides-for-a-subscription) in [`EntitlementOverride`](https://apidocs.chargebee.com/docs/api/entitlement_overrides). +- [`payment_method_save_policy`](https://apidocs.chargebee.com/docs/api/hosted_pages/collect-now#payment_method_save_policy) has been added as request body parameter to [`collect_now`](https://apidocs.chargebee.com/docs/api/hosted_pages/collect-now) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). +- [`decommissioned`](https://apidocs.chargebee.com/docs/api/subscriptions/cancel-subscription-for-items#decommissioned) has been added as request body parameter to [`cancel_subscription_for_items`](https://apidocs.chargebee.com/docs/api/subscriptions/cancel-subscription-for-items) in [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). + + +### Parameter Updates: +- [`pricing_page`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-existing-subscription#pricing_page) has been changed from required to optional in [`create_pricing_page_for_existing_subscription`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-existing-subscription) of [`PricingPageSession`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions). + + +### New Events: +- [`payment_due_reminder`](https://apidocs.chargebee.com/docs/api/events/webhook/payment_due_reminder) has been added. + + +### New Enums: +- `charge` has been added as a new value enum `EntityType`. +- `payment_due_reminder` has been added as a new value enum `EventType`. +- `tempus` has been added as a new value enum `Gateway`. +- `kakao_pay`, `naver_pay`, `revolut_pay`, and `cash_app_pay` have been added as new values enum `PaymentMethod`. +- `always`, `ask`, and `never` have been added as new values enum `PaymentMethodSavePolicy`. +- `kakao_pay`, `naver_pay`, `revolut_pay`, and `cash_app_pay` have been added as new values enum `PaymentMethodType`. +- `kakao_pay`, `naver_pay`, `revolut_pay`, and `cash_app_pay` have been added as new values enum `Type`. +- `accepted`, `rejected`, `message_acknowledgement`, `in_process`, `under_query`, `conditionally_accepted`, and `paid` have been added as new values to enum attribute [`einvoice.status`](https://apidocs.chargebee.com/docs/api/credit_notes/credit-note-object#einvoice_status) in [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes). +- `accepted`, `rejected`, `message_acknowledgement`, `in_process`, `under_query`, `conditionally_accepted`, and `paid` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#status) in [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- `accepted`, `rejected`, `message_acknowledgement`, `in_process`, `under_query`, `conditionally_accepted`, and `paid` have been added as new values to enum attribute [`einvoice.status`](https://apidocs.chargebee.com/docs/api/invoices/invoice-object#einvoice_status) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices). +- `kakao_pay`, `naver_pay`, `revolut_pay`, `cash_app_pay`, `wechat_pay`, and `alipay` have been added as new values to enum attribute [`payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `kakao_pay`, `naver_pay`, `revolut_pay`, `cash_app_pay`, `wechat_pay`, and `alipay` have been added as new values to enum attribute [`active_payment_attempt.payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#active_payment_attempt_payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `kakao_pay`, `naver_pay`, `revolut_pay`, `cash_app_pay`, `wechat_pay`, and `alipay` have been added as new values to enum request body parameter `payment_method_type` in [`update_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/update-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `kakao_pay`, `naver_pay`, `revolut_pay`, `cash_app_pay`, `wechat_pay`, and `alipay` have been added as new values to enum request body parameter `payment_method_type` in [`create_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). + + + ### v3.42.0 (2026-01-16) * * * diff --git a/VERSION b/VERSION index 476cebe0..a9184766 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.42.0 +3.43.0 diff --git a/pom.xml b/pom.xml index cc0f159d..65c7fd9d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.chargebee chargebee-java - 3.42.0 + 3.43.0 jar diff --git a/src/main/java/com/chargebee/Environment.java b/src/main/java/com/chargebee/Environment.java index 9c1e63be..5cea314c 100644 --- a/src/main/java/com/chargebee/Environment.java +++ b/src/main/java/com/chargebee/Environment.java @@ -38,7 +38,7 @@ public class Environment { public static final String API_VERSION = "v2"; - public static final String LIBRARY_VERSION = "3.42.0"; + public static final String LIBRARY_VERSION = "3.43.0"; private final String apiBaseUrl; diff --git a/src/main/java/com/chargebee/models/CreditNote.java b/src/main/java/com/chargebee/models/CreditNote.java index 89a781ef..8fe5ad71 100644 --- a/src/main/java/com/chargebee/models/CreditNote.java +++ b/src/main/java/com/chargebee/models/CreditNote.java @@ -666,7 +666,7 @@ public ValidationStatus validationStatus() { public static class Einvoice extends Resource { public enum Status { - SCHEDULED,SKIPPED,IN_PROGRESS,SUCCESS,FAILED,REGISTERED, + SCHEDULED,SKIPPED,IN_PROGRESS,SUCCESS,FAILED,REGISTERED,ACCEPTED,REJECTED,MESSAGE_ACKNOWLEDGEMENT,IN_PROCESS,UNDER_QUERY,CONDITIONALLY_ACCEPTED,PAID, _UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a java-client version incompatibility. We suggest you to upgrade to the latest version */ } diff --git a/src/main/java/com/chargebee/models/Customer.java b/src/main/java/com/chargebee/models/Customer.java index 8974600f..b96f373e 100644 --- a/src/main/java/com/chargebee/models/Customer.java +++ b/src/main/java/com/chargebee/models/Customer.java @@ -209,7 +209,7 @@ public Boolean sendBillingEmail() { public static class PaymentMethod extends Resource { public enum Type { - CARD,PAYPAL_EXPRESS_CHECKOUT,AMAZON_PAYMENTS,DIRECT_DEBIT,GENERIC,ALIPAY,UNIONPAY,APPLE_PAY,WECHAT_PAY,IDEAL,GOOGLE_PAY,SOFORT,BANCONTACT,GIROPAY,DOTPAY,UPI,NETBANKING_EMANDATES,VENMO,PAY_TO,FASTER_PAYMENTS,SEPA_INSTANT_TRANSFER,AUTOMATED_BANK_TRANSFER,KLARNA_PAY_NOW,ONLINE_BANKING_POLAND,PAYCONIQ_BY_BANCONTACT,ELECTRONIC_PAYMENT_STANDARD,KBC_PAYMENT_BUTTON,PAY_BY_BANK,TRUSTLY,STABLECOIN, + CARD,PAYPAL_EXPRESS_CHECKOUT,AMAZON_PAYMENTS,DIRECT_DEBIT,GENERIC,ALIPAY,UNIONPAY,APPLE_PAY,WECHAT_PAY,IDEAL,GOOGLE_PAY,SOFORT,BANCONTACT,GIROPAY,DOTPAY,UPI,NETBANKING_EMANDATES,VENMO,PAY_TO,FASTER_PAYMENTS,SEPA_INSTANT_TRANSFER,AUTOMATED_BANK_TRANSFER,KLARNA_PAY_NOW,ONLINE_BANKING_POLAND,PAYCONIQ_BY_BANCONTACT,ELECTRONIC_PAYMENT_STANDARD,KBC_PAYMENT_BUTTON,PAY_BY_BANK,TRUSTLY,STABLECOIN,KAKAO_PAY,NAVER_PAY,REVOLUT_PAY,CASH_APP_PAY, _UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a java-client version incompatibility. We suggest you to upgrade to the latest version */ } diff --git a/src/main/java/com/chargebee/models/Einvoice.java b/src/main/java/com/chargebee/models/Einvoice.java index f865dac3..c728e314 100644 --- a/src/main/java/com/chargebee/models/Einvoice.java +++ b/src/main/java/com/chargebee/models/Einvoice.java @@ -20,6 +20,13 @@ public enum Status { SUCCESS, FAILED, REGISTERED, + ACCEPTED, + REJECTED, + MESSAGE_ACKNOWLEDGEMENT, + IN_PROCESS, + UNDER_QUERY, + CONDITIONALLY_ACCEPTED, + PAID, _UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a java-client version incompatibility. We suggest you to upgrade to the latest version */ } diff --git a/src/main/java/com/chargebee/models/EntitlementOverride.java b/src/main/java/com/chargebee/models/EntitlementOverride.java index e3ac36c5..b4cf64c5 100644 --- a/src/main/java/com/chargebee/models/EntitlementOverride.java +++ b/src/main/java/com/chargebee/models/EntitlementOverride.java @@ -40,6 +40,10 @@ public String id() { return reqString("id"); } + public String subscriptionId() { + return optString("subscription_id"); + } + public String entityId() { return optString("entity_id"); } @@ -72,6 +76,10 @@ public Timestamp effectiveFrom() { return optTimestamp("effective_from"); } + public Boolean isEnabled() { + return reqBoolean("is_enabled"); + } + @Deprecated public ScheduleStatus scheduleStatus() { return optEnum("schedule_status", ScheduleStatus.class); @@ -110,6 +118,14 @@ public AddEntitlementOverrideForSubscriptionRequest entitlementOverrideFeatureId params.add("entitlement_overrides[feature_id][" + index + "]", entitlementOverrideFeatureId); return this; } + public AddEntitlementOverrideForSubscriptionRequest entitlementOverrideEntityId(int index, String entitlementOverrideEntityId) { + params.addOpt("entitlement_overrides[entity_id][" + index + "]", entitlementOverrideEntityId); + return this; + } + public AddEntitlementOverrideForSubscriptionRequest entitlementOverrideEntityType(int index, com.chargebee.models.enums.EntityType entitlementOverrideEntityType) { + params.addOpt("entitlement_overrides[entity_type][" + index + "]", entitlementOverrideEntityType); + return this; + } public AddEntitlementOverrideForSubscriptionRequest entitlementOverrideValue(int index, String entitlementOverrideValue) { params.addOpt("entitlement_overrides[value][" + index + "]", entitlementOverrideValue); return this; @@ -122,6 +138,10 @@ public AddEntitlementOverrideForSubscriptionRequest entitlementOverrideEffective params.addOpt("entitlement_overrides[effective_from][" + index + "]", entitlementOverrideEffectiveFrom); return this; } + public AddEntitlementOverrideForSubscriptionRequest entitlementOverrideIsEnabled(int index, Boolean entitlementOverrideIsEnabled) { + params.addOpt("entitlement_overrides[is_enabled][" + index + "]", entitlementOverrideIsEnabled); + return this; + } @Override public Params params() { return params; diff --git a/src/main/java/com/chargebee/models/HostedPage.java b/src/main/java/com/chargebee/models/HostedPage.java index 6f5d5577..7db6bda0 100644 --- a/src/main/java/com/chargebee/models/HostedPage.java +++ b/src/main/java/com/chargebee/models/HostedPage.java @@ -2868,6 +2868,12 @@ public CollectNowRequest currencyCode(String currencyCode) { } + public CollectNowRequest paymentMethodSavePolicy(com.chargebee.models.enums.PaymentMethodSavePolicy paymentMethodSavePolicy) { + params.addOpt("payment_method_save_policy", paymentMethodSavePolicy); + return this; + } + + public CollectNowRequest customerId(String customerId) { params.add("customer[id]", customerId); return this; diff --git a/src/main/java/com/chargebee/models/Invoice.java b/src/main/java/com/chargebee/models/Invoice.java index 1c91e69f..7a24ca4b 100644 --- a/src/main/java/com/chargebee/models/Invoice.java +++ b/src/main/java/com/chargebee/models/Invoice.java @@ -906,7 +906,7 @@ public String descriptor() { public static class Einvoice extends Resource { public enum Status { - SCHEDULED,SKIPPED,IN_PROGRESS,SUCCESS,FAILED,REGISTERED, + SCHEDULED,SKIPPED,IN_PROGRESS,SUCCESS,FAILED,REGISTERED,ACCEPTED,REJECTED,MESSAGE_ACKNOWLEDGEMENT,IN_PROCESS,UNDER_QUERY,CONDITIONALLY_ACCEPTED,PAID, _UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a java-client version incompatibility. We suggest you to upgrade to the latest version */ } diff --git a/src/main/java/com/chargebee/models/OmnichannelSubscription.java b/src/main/java/com/chargebee/models/OmnichannelSubscription.java index d73c094d..6062589d 100644 --- a/src/main/java/com/chargebee/models/OmnichannelSubscription.java +++ b/src/main/java/com/chargebee/models/OmnichannelSubscription.java @@ -103,6 +103,16 @@ private OmnichannelSubscriptionListRequest(String uri) { super(uri); } + public EnumFilter omnichannelSubscriptionItemStatus() { + return new EnumFilter("omnichannel_subscription_item[status]",this); + } + + + public StringFilter omnichannelSubscriptionItemItemIdAtSource() { + return new StringFilter("omnichannel_subscription_item[item_id_at_source]",this); + } + + public EnumFilter source() { return new EnumFilter("source",this); } diff --git a/src/main/java/com/chargebee/models/PaymentIntent.java b/src/main/java/com/chargebee/models/PaymentIntent.java index 979e3d7e..f5c48ceb 100644 --- a/src/main/java/com/chargebee/models/PaymentIntent.java +++ b/src/main/java/com/chargebee/models/PaymentIntent.java @@ -50,6 +50,12 @@ public enum PaymentMethodType { PAY_BY_BANK, TRUSTLY, STABLECOIN, + KAKAO_PAY, + NAVER_PAY, + REVOLUT_PAY, + CASH_APP_PAY, + WECHAT_PAY, + ALIPAY, _UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a java-client version incompatibility. We suggest you to upgrade to the latest version */ } diff --git a/src/main/java/com/chargebee/models/PricingPageSession.java b/src/main/java/com/chargebee/models/PricingPageSession.java index 705ec859..07096136 100644 --- a/src/main/java/com/chargebee/models/PricingPageSession.java +++ b/src/main/java/com/chargebee/models/PricingPageSession.java @@ -340,7 +340,7 @@ public CreateForExistingSubscriptionRequest custom(JSONObject custom) { public CreateForExistingSubscriptionRequest pricingPageId(String pricingPageId) { - params.add("pricing_page[id]", pricingPageId); + params.addOpt("pricing_page[id]", pricingPageId); return this; } diff --git a/src/main/java/com/chargebee/models/Subscription.java b/src/main/java/com/chargebee/models/Subscription.java index 88ad7057..01585144 100644 --- a/src/main/java/com/chargebee/models/Subscription.java +++ b/src/main/java/com/chargebee/models/Subscription.java @@ -1006,6 +1006,10 @@ public String businessEntityId() { return optString("business_entity_id"); } + public Boolean decommissioned() { + return reqBoolean("decommissioned"); + } + @Deprecated public JSONObject metadata(){ return optJSONObject("metadata"); @@ -6933,6 +6937,12 @@ public CancelForItemsRequest cancelReasonCode(String cancelReasonCode) { } + public CancelForItemsRequest decommissioned(Boolean decommissioned) { + params.addOpt("decommissioned", decommissioned); + return this; + } + + public CancelForItemsRequest subscriptionItemItemPriceId(int index, String subscriptionItemItemPriceId) { params.addOpt("subscription_items[item_price_id][" + index + "]", subscriptionItemItemPriceId); return this; diff --git a/src/main/java/com/chargebee/models/enums/EntityType.java b/src/main/java/com/chargebee/models/enums/EntityType.java index 437b3aa0..9d3c369e 100644 --- a/src/main/java/com/chargebee/models/enums/EntityType.java +++ b/src/main/java/com/chargebee/models/enums/EntityType.java @@ -41,6 +41,7 @@ public enum EntityType { USAGE_FILE, BUSINESS_RULE, RULESET, + CHARGE, _UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a java-client version incompatibility. We suggest you to upgrade to the latest version */ } \ No newline at end of file diff --git a/src/main/java/com/chargebee/models/enums/EventType.java b/src/main/java/com/chargebee/models/enums/EventType.java index 778868e2..42b2d2ef 100644 --- a/src/main/java/com/chargebee/models/enums/EventType.java +++ b/src/main/java/com/chargebee/models/enums/EventType.java @@ -83,6 +83,7 @@ public enum EventType { PAYMENT_SCHEDULE_SCHEME_DELETED, SUBSCRIPTION_RENEWAL_REMINDER, ADD_USAGES_REMINDER, + PAYMENT_DUE_REMINDER, TRANSACTION_CREATED, TRANSACTION_UPDATED, TRANSACTION_DELETED, diff --git a/src/main/java/com/chargebee/models/enums/Gateway.java b/src/main/java/com/chargebee/models/enums/Gateway.java index 72044f80..41673a9d 100644 --- a/src/main/java/com/chargebee/models/enums/Gateway.java +++ b/src/main/java/com/chargebee/models/enums/Gateway.java @@ -57,6 +57,7 @@ public enum Gateway { DEUTSCHE_BANK, EZIDEBIT, TWIKEY, + TEMPUS, GOCARDLESS, NOT_APPLICABLE, _UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a diff --git a/src/main/java/com/chargebee/models/enums/PaymentMethod.java b/src/main/java/com/chargebee/models/enums/PaymentMethod.java index 4d4ff362..47fd46c2 100644 --- a/src/main/java/com/chargebee/models/enums/PaymentMethod.java +++ b/src/main/java/com/chargebee/models/enums/PaymentMethod.java @@ -39,6 +39,10 @@ public enum PaymentMethod { PAY_BY_BANK, TRUSTLY, STABLECOIN, + KAKAO_PAY, + NAVER_PAY, + REVOLUT_PAY, + CASH_APP_PAY, _UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a java-client version incompatibility. We suggest you to upgrade to the latest version */ } \ No newline at end of file diff --git a/src/main/java/com/chargebee/models/enums/PaymentMethodSavePolicy.java b/src/main/java/com/chargebee/models/enums/PaymentMethodSavePolicy.java new file mode 100644 index 00000000..8fda81b8 --- /dev/null +++ b/src/main/java/com/chargebee/models/enums/PaymentMethodSavePolicy.java @@ -0,0 +1,9 @@ +package com.chargebee.models.enums; + +public enum PaymentMethodSavePolicy { + ALWAYS, + ASK, + NEVER, + _UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a + java-client version incompatibility. We suggest you to upgrade to the latest version */ +} \ No newline at end of file diff --git a/src/main/java/com/chargebee/models/enums/PaymentMethodType.java b/src/main/java/com/chargebee/models/enums/PaymentMethodType.java index 778ba81c..d2a31087 100644 --- a/src/main/java/com/chargebee/models/enums/PaymentMethodType.java +++ b/src/main/java/com/chargebee/models/enums/PaymentMethodType.java @@ -31,6 +31,10 @@ public enum PaymentMethodType { PAY_BY_BANK, TRUSTLY, STABLECOIN, + KAKAO_PAY, + NAVER_PAY, + REVOLUT_PAY, + CASH_APP_PAY, _UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a java-client version incompatibility. We suggest you to upgrade to the latest version */ } \ No newline at end of file diff --git a/src/main/java/com/chargebee/models/enums/Type.java b/src/main/java/com/chargebee/models/enums/Type.java index e9ed8598..055bc214 100644 --- a/src/main/java/com/chargebee/models/enums/Type.java +++ b/src/main/java/com/chargebee/models/enums/Type.java @@ -31,6 +31,10 @@ public enum Type { PAY_BY_BANK, TRUSTLY, STABLECOIN, + KAKAO_PAY, + NAVER_PAY, + REVOLUT_PAY, + CASH_APP_PAY, FREE_TRIAL, PAY_UP_FRONT, PAY_AS_YOU_GO,