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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
### v4.20.0 (2026-11-13)

### New Resources:
- `OrganizationDetail` has been added.

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

### v4.19.0 (2026-11-11)
* * *
### New Resources:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.19.0
4.20.0
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "com.chargebee"
version = "4.19.0"
version = "4.20.0"
description = "Java client library for ChargeBee"

// Project metadata
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/com/chargebee/v4/client/ClientMethods.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@

import com.chargebee.v4.services.ExportService;

import com.chargebee.v4.services.OrganizationDetailService;

import com.chargebee.v4.services.CustomerEntitlementService;

import com.chargebee.v4.services.PersonalizedOfferService;
Expand Down Expand Up @@ -671,6 +673,13 @@ public interface ClientMethods {
*/
ExportService exports();

/**
* Access organization_detail-related operations.
*
* @return OrganizationDetailService instance for fluent API access
*/
OrganizationDetailService organizationDetails();

/**
* Access customer_entitlement-related operations.
*
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/chargebee/v4/client/ClientMethodsImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@

import com.chargebee.v4.services.ExportService;

import com.chargebee.v4.services.OrganizationDetailService;

import com.chargebee.v4.services.CustomerEntitlementService;

import com.chargebee.v4.services.PersonalizedOfferService;
Expand Down Expand Up @@ -543,6 +545,11 @@ public ExportService exports() {
return getServiceRegistry().exports();
}

@Override
public OrganizationDetailService organizationDetails() {
return getServiceRegistry().organizationDetails();
}

@Override
public CustomerEntitlementService customerEntitlements() {
return getServiceRegistry().customerEntitlements();
Expand Down
19 changes: 19 additions & 0 deletions src/main/java/com/chargebee/v4/client/ServiceRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@

import com.chargebee.v4.services.ExportService;

import com.chargebee.v4.services.OrganizationDetailService;

import com.chargebee.v4.services.CustomerEntitlementService;

import com.chargebee.v4.services.PersonalizedOfferService;
Expand Down Expand Up @@ -347,6 +349,8 @@ final class ServiceRegistry {

private volatile ExportService exportService;

private volatile OrganizationDetailService organizationDetailService;

private volatile CustomerEntitlementService customerEntitlementService;

private volatile PersonalizedOfferService personalizedOfferService;
Expand Down Expand Up @@ -1406,6 +1410,21 @@ ExportService exports() {
return exportService;
}

/**
* Get or create the OrganizationDetailService instance. Thread-safe lazy initialization using
* double-checked locking.
*/
OrganizationDetailService organizationDetails() {
if (organizationDetailService == null) {
synchronized (this) {
if (organizationDetailService == null) {
organizationDetailService = new OrganizationDetailService(client);
}
}
}
return organizationDetailService;
}

/**
* Get or create the CustomerEntitlementService instance. Thread-safe lazy initialization using
* double-checked locking.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,26 +132,26 @@ public static final class IdFilter extends StringFilter<CreditUnitListBuilder> {
}
}

public enum StatusIs {
public enum StatusIn {
ACTIVE("active"),

ARCHIVED("archived"),

/** An enum member indicating that StatusIs was instantiated with an unknown value. */
/** An enum member indicating that StatusIn was instantiated with an unknown value. */
_UNKNOWN(null);
private final String value;

StatusIs(String value) {
StatusIn(String value) {
this.value = value;
}

public String getValue() {
return value;
}

public static StatusIs fromString(String value) {
public static StatusIn fromString(String value) {
if (value == null) return _UNKNOWN;
for (StatusIs enumValue : StatusIs.values()) {
for (StatusIn enumValue : StatusIn.values()) {
if (enumValue.value != null && enumValue.value.equals(value)) {
return enumValue;
}
Expand All @@ -160,26 +160,26 @@ public static StatusIs fromString(String value) {
}
}

public enum StatusIn {
public enum StatusIs {
ACTIVE("active"),

ARCHIVED("archived"),

/** An enum member indicating that StatusIn was instantiated with an unknown value. */
/** An enum member indicating that StatusIs was instantiated with an unknown value. */
_UNKNOWN(null);
private final String value;

StatusIn(String value) {
StatusIs(String value) {
this.value = value;
}

public String getValue() {
return value;
}

public static StatusIn fromString(String value) {
public static StatusIs fromString(String value) {
if (value == null) return _UNKNOWN;
for (StatusIn enumValue : StatusIn.values()) {
for (StatusIs enumValue : StatusIs.values()) {
if (enumValue.value != null && enumValue.value.equals(value)) {
return enumValue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public static final class EntityIdFilter extends StringFilter<EntitlementListBui
}
}

public enum EntityTypeIs {
public enum EntityTypeIn {
PLAN("plan"),

ADDON("addon"),
Expand All @@ -168,21 +168,21 @@ public enum EntityTypeIs {

ADDON_PRICE("addon_price"),

/** An enum member indicating that EntityTypeIs was instantiated with an unknown value. */
/** An enum member indicating that EntityTypeIn was instantiated with an unknown value. */
_UNKNOWN(null);
private final String value;

EntityTypeIs(String value) {
EntityTypeIn(String value) {
this.value = value;
}

public String getValue() {
return value;
}

public static EntityTypeIs fromString(String value) {
public static EntityTypeIn fromString(String value) {
if (value == null) return _UNKNOWN;
for (EntityTypeIs enumValue : EntityTypeIs.values()) {
for (EntityTypeIn enumValue : EntityTypeIn.values()) {
if (enumValue.value != null && enumValue.value.equals(value)) {
return enumValue;
}
Expand All @@ -191,7 +191,7 @@ public static EntityTypeIs fromString(String value) {
}
}

public enum EntityTypeIn {
public enum EntityTypeIs {
PLAN("plan"),

ADDON("addon"),
Expand All @@ -202,21 +202,21 @@ public enum EntityTypeIn {

ADDON_PRICE("addon_price"),

/** An enum member indicating that EntityTypeIn was instantiated with an unknown value. */
/** An enum member indicating that EntityTypeIs was instantiated with an unknown value. */
_UNKNOWN(null);
private final String value;

EntityTypeIn(String value) {
EntityTypeIs(String value) {
this.value = value;
}

public String getValue() {
return value;
}

public static EntityTypeIn fromString(String value) {
public static EntityTypeIs fromString(String value) {
if (value == null) return _UNKNOWN;
for (EntityTypeIn enumValue : EntityTypeIn.values()) {
for (EntityTypeIs enumValue : EntityTypeIs.values()) {
if (enumValue.value != null && enumValue.value.equals(value)) {
return enumValue;
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/chargebee/v4/models/event/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,10 @@ public enum EventType {

PAYMENT_SOURCE_BUSINESS_ENTITY_CHANGED("payment_source_business_entity_changed"),

ORGANIZATION_DETAILS_CREATED("organization_details_created"),

ORGANIZATION_DETAILS_UPDATED("organization_details_updated"),

PURCHASE_CREATED("purchase_created"),

VOUCHER_CREATED("voucher_created"),
Expand Down
Loading
Loading