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
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
### v3.40.0 (2025-12-30)
* * *

### New Attributes:
* retry_engine has been added to Invoice#DunningAttempt.

### New Endpoint:
* move action has been added to ItemPrice.

### New Parameters:
* exclude_tax_type has been added to Estimate#RenewalEstimateInputParam.
* variant_id has been added to ItemPrice#MoveInputParam.
* custom has been added to PricingPageSession#CreateForNewSubscriptionInputParam.
* custom has been added to PricingPageSession#CreateForExistingSubscriptionInputParam.

### New Enums:
* ELECTRONIC_PAYMENT_STANDARD has been added to PaymentMethodTypeEnum.
* KBC_PAYMENT_BUTTON has been added to PaymentMethodTypeEnum.
* PAY_BY_BANK has been added to PaymentMethodTypeEnum.
* TRUSTLY has been added to PaymentMethodTypeEnum.
* STABLECOIN has been added to PaymentMethodTypeEnum.

### v3.39.0 (2025-11-26)
* * *

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.chargebee</groupId>
<artifactId>chargebee-java</artifactId>
<version>3.39.0</version>
<version>3.40.0</version>


<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/chargebee/Environment.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class Environment {

public static final String API_VERSION = "v2";

public static final String LIBRARY_VERSION = "3.39.0";
public static final String LIBRARY_VERSION = "3.40.0";

private final String apiBaseUrl;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/chargebee/models/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public Boolean sendBillingEmail() {

public static class PaymentMethod extends Resource<PaymentMethod> {
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,
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,
_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 */
}
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/chargebee/models/Estimate.java
Original file line number Diff line number Diff line change
Expand Up @@ -2335,6 +2335,12 @@ public RenewalEstimateRequest ignoreScheduledChanges(Boolean ignoreScheduledChan
}


public RenewalEstimateRequest excludeTaxType(com.chargebee.models.enums.ExcludeTaxType excludeTaxType) {
params.addOpt("exclude_tax_type", excludeTaxType);
return this;
}


@Override
public Params params() {
return params;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/chargebee/models/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,10 @@ public Long txnAmount() {
return optLong("txn_amount");
}

public RetryEngine retryEngine() {
return optEnum("retry_engine", RetryEngine.class);
}

}

public static class AppliedCredit extends Resource<AppliedCredit> {
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/chargebee/models/ItemPrice.java
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,12 @@ public MoveItemPriceRequest destinationItemId(String destinationItemId) {
}


public MoveItemPriceRequest variantId(String variantId) {
params.addOpt("variant_id", variantId);
return this;
}


@Override
public Params params() {
return params;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/chargebee/models/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public enum PaymentMethodType {
KLARNA_PAY_NOW,
ONLINE_BANKING_POLAND,
PAYCONIQ_BY_BANCONTACT,
ELECTRONIC_PAYMENT_STANDARD,
KBC_PAYMENT_BUTTON,
PAY_BY_BANK,
TRUSTLY,
STABLECOIN,
_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 */
}
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/com/chargebee/models/PricingPageSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ public CreateForNewSubscriptionRequest autoSelectLocalCurrency(Boolean autoSelec
}


public CreateForNewSubscriptionRequest custom(JSONObject custom) {
params.addOpt("custom", custom);
return this;
}


public CreateForNewSubscriptionRequest pricingPageId(String pricingPageId) {
params.add("pricing_page[id]", pricingPageId);
return this;
Expand Down Expand Up @@ -327,6 +333,12 @@ public CreateForExistingSubscriptionRequest redirectUrl(String redirectUrl) {
}


public CreateForExistingSubscriptionRequest custom(JSONObject custom) {
params.addOpt("custom", custom);
return this;
}


public CreateForExistingSubscriptionRequest pricingPageId(String pricingPageId) {
params.add("pricing_page[id]", pricingPageId);
return this;
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/chargebee/models/enums/ExcludeTaxType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.chargebee.models.enums;

public enum ExcludeTaxType {
EXCLUSIVE,
NONE,
_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 */
}
5 changes: 5 additions & 0 deletions src/main/java/com/chargebee/models/enums/PaymentMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public enum PaymentMethod {
KLARNA_PAY_NOW,
ONLINE_BANKING_POLAND,
PAYCONIQ_BY_BANCONTACT,
ELECTRONIC_PAYMENT_STANDARD,
KBC_PAYMENT_BUTTON,
PAY_BY_BANK,
TRUSTLY,
STABLECOIN,
_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 */
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public enum PaymentMethodType {
KLARNA_PAY_NOW,
ONLINE_BANKING_POLAND,
PAYCONIQ_BY_BANCONTACT,
ELECTRONIC_PAYMENT_STANDARD,
KBC_PAYMENT_BUTTON,
PAY_BY_BANK,
TRUSTLY,
STABLECOIN,
_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 */
}
9 changes: 9 additions & 0 deletions src/main/java/com/chargebee/models/enums/RetryEngine.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.chargebee.models.enums;

public enum RetryEngine {
CHARGEBEE,
FLEXPAY,
SUCCESSPLUS,
_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 */
}
5 changes: 5 additions & 0 deletions src/main/java/com/chargebee/models/enums/Type.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public enum Type {
KLARNA_PAY_NOW,
ONLINE_BANKING_POLAND,
PAYCONIQ_BY_BANCONTACT,
ELECTRONIC_PAYMENT_STANDARD,
KBC_PAYMENT_BUTTON,
PAY_BY_BANK,
TRUSTLY,
STABLECOIN,
FREE_TRIAL,
PAY_UP_FRONT,
PAY_AS_YOU_GO,
Expand Down