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
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
### v3.38.0 (2025-10-28)
* * *

### New Attributes:
* reference_transactions has been added to Invoice.
* payment_attempts[] has been added to PaymentIntent.
* checkout_details has been added to PaymentIntent#PaymentAttempt.
* line_item_id has been added to CreditNoteEstimate#Discount.
* line_item_id has been added to CreditNote#Discount.
* line_item_id has been added to InvoiceEstimate#Discount.
* line_item_id has been added to Invoice#Discount.
* line_item_id has been added to InvoiceEstimate#Discount.
* line_item_id has been added to Quote#Discount.
* line_item_id has been added to QuoteLineGroup#Discount.

### Modified Attributes:
* omnichannel_subscription_item_offers has been made optional attribute from required attribute.

### New Input Parameters:
* discount[line_item_id] has been added to CreditNote#ImportCreditNoteRequest.
* discount[line_item_id] has been added to CreditNote#ImportInvoiceRequest.

### New Enums:
* OMNICHANNEL_TRANSACTION_CREATED has been added to EventTypeEnum.
* DEUTSCHE_BANK has been added to Gateway.

### v3.37.0 ( 2025-09-23)
* * *

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.37.0</version>
<version>3.38.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.37.0";
public static final String LIBRARY_VERSION = "3.38.0";

private final String apiBaseUrl;

Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/chargebee/models/CreditNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,10 @@ public String description() {
return optString("description");
}

public String lineItemId() {
return optString("line_item_id");
}

public EntityType entityType() {
return reqEnum("entity_type", EntityType.class);
}
Expand Down Expand Up @@ -1688,6 +1692,10 @@ public ImportCreditNoteRequest lineItemTierUnitAmountInDecimal(int index, String
params.addOpt("line_item_tiers[unit_amount_in_decimal][" + index + "]", lineItemTierUnitAmountInDecimal);
return this;
}
public ImportCreditNoteRequest discountLineItemId(int index, String discountLineItemId) {
params.addOpt("discounts[line_item_id][" + index + "]", discountLineItemId);
return this;
}
public ImportCreditNoteRequest discountEntityType(int index, CreditNote.Discount.EntityType discountEntityType) {
params.add("discounts[entity_type][" + index + "]", discountEntityType);
return this;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/chargebee/models/CreditNoteEstimate.java
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ public String description() {
return optString("description");
}

public String lineItemId() {
return optString("line_item_id");
}

public EntityType entityType() {
return reqEnum("entity_type", EntityType.class);
}
Expand Down
55 changes: 55 additions & 0 deletions src/main/java/com/chargebee/models/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ public String description() {
return optString("description");
}

public String lineItemId() {
return optString("line_item_id");
}

public EntityType entityType() {
return reqEnum("entity_type", EntityType.class);
}
Expand Down Expand Up @@ -498,6 +502,49 @@ public Long txnAmount() {

}

public static class ReferenceTransaction extends Resource<ReferenceTransaction> {
public ReferenceTransaction(JSONObject jsonObj) {
super(jsonObj);
}

public Long appliedAmount() {
return reqLong("applied_amount");
}

public Timestamp appliedAt() {
return reqTimestamp("applied_at");
}

public String txnId() {
return reqString("txn_id");
}

public Transaction.Status txnStatus() {
return optEnum("txn_status", Transaction.Status.class);
}

public Timestamp txnDate() {
return optTimestamp("txn_date");
}

public Long txnAmount() {
return optLong("txn_amount");
}

public Transaction.Type txnType() {
return reqEnum("txn_type", Transaction.Type.class);
}

public Long amountCapturable() {
return reqLong("amount_capturable");
}

public Transaction.AuthorizationReason authorizationReason() {
return optEnum("authorization_reason", Transaction.AuthorizationReason.class);
}

}

public static class DunningAttempt extends Resource<DunningAttempt> {
public DunningAttempt(JSONObject jsonObj) {
super(jsonObj);
Expand Down Expand Up @@ -1115,6 +1162,10 @@ public List<Invoice.LinkedPayment> linkedPayments() {
return optList("linked_payments", Invoice.LinkedPayment.class);
}

public List<Invoice.ReferenceTransaction> referenceTransactions() {
return optList("reference_transactions", Invoice.ReferenceTransaction.class);
}

public List<Invoice.DunningAttempt> dunningAttempts() {
return optList("dunning_attempts", Invoice.DunningAttempt.class);
}
Expand Down Expand Up @@ -3437,6 +3488,10 @@ public ImportInvoiceRequest lineItemTierUnitAmountInDecimal(int index, String li
params.addOpt("line_item_tiers[unit_amount_in_decimal][" + index + "]", lineItemTierUnitAmountInDecimal);
return this;
}
public ImportInvoiceRequest discountLineItemId(int index, String discountLineItemId) {
params.addOpt("discounts[line_item_id][" + index + "]", discountLineItemId);
return this;
}
public ImportInvoiceRequest discountEntityType(int index, Invoice.Discount.EntityType discountEntityType) {
params.add("discounts[entity_type][" + index + "]", discountEntityType);
return this;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/chargebee/models/InvoiceEstimate.java
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ public String description() {
return optString("description");
}

public String lineItemId() {
return optString("line_item_id");
}

public EntityType entityType() {
return reqEnum("entity_type", EntityType.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public Long resourceVersion() {
}

public List<OmnichannelSubscriptionItemOffer> omnichannelSubscriptionItemOffers() {
return reqList("omnichannel_subscription_item_offers", OmnichannelSubscriptionItemOffer.class);
return optList("omnichannel_subscription_item_offers", OmnichannelSubscriptionItemOffer.class);
}

public OmnichannelSubscriptionItem.UpcomingRenewal upcomingRenewal() {
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/chargebee/models/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ public String errorText() {
return optString("error_text");
}

public String checkoutDetails() {
return optString("checkout_details");
}

public Timestamp createdAt() {
return reqTimestamp("created_at");
}
Expand Down Expand Up @@ -180,6 +184,10 @@ public PaymentIntent.PaymentAttempt activePaymentAttempt() {
return optSubResource("active_payment_attempt", PaymentIntent.PaymentAttempt.class);
}

public List<PaymentIntent.PaymentAttempt> paymentAttempts() {
return optList("payment_attempts", PaymentIntent.PaymentAttempt.class);
}

public String businessEntityId() {
return optString("business_entity_id");
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/chargebee/models/Quote.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,10 @@ public String description() {
return optString("description");
}

public String lineItemId() {
return optString("line_item_id");
}

public EntityType entityType() {
return reqEnum("entity_type", EntityType.class);
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/chargebee/models/QuoteLineGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ public String description() {
return optString("description");
}

public String lineItemId() {
return optString("line_item_id");
}

public EntityType entityType() {
return reqEnum("entity_type", EntityType.class);
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/chargebee/models/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public enum InitiatorType {
public enum AuthorizationReason {
BLOCKING_FUNDS,
VERIFICATION,
SCHEDULED_CAPTURE,
_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
1 change: 1 addition & 0 deletions src/main/java/com/chargebee/models/enums/EventType.java
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ public enum EventType {
USAGE_FILE_INGESTED,
OMNICHANNEL_SUBSCRIPTION_ITEM_PAUSE_SCHEDULED,
OMNICHANNEL_SUBSCRIPTION_MOVED_IN,
OMNICHANNEL_TRANSACTION_CREATED,
PLAN_CREATED,
PLAN_UPDATED,
PLAN_DELETED,
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/chargebee/models/enums/Gateway.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public enum Gateway {
SOLIDGATE,
PAYSTACK,
JP_MORGAN,
DEUTSCHE_BANK,
GOCARDLESS,
NOT_APPLICABLE,
_UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a
Expand Down