Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk-java): note that catalog info and product can return null

Yudhi Armyndharis60f08f0edbc6
diff --git a/sdk/java/src/main/java/com/rmyndharis/openwa/resources/CatalogResource.java b/sdk/java/src/main/java/com/rmyndharis/openwa/resources/CatalogResource.java
index ea656cd1b..041278b60 100644
--- a/sdk/java/src/main/java/com/rmyndharis/openwa/resources/CatalogResource.java
+++ b/sdk/java/src/main/java/com/rmyndharis/openwa/resources/CatalogResource.java
@@ -26,7 +26,7 @@ public final class CatalogResource {
this.client = client;
}
- /** Get the business catalog info. */
+ /** Get the business catalog info, or {@code null} when the account has no catalog. */
public CatalogInfo info(String sessionId) {
return client.request(
HttpMethod.GET, "/api/sessions/" + encodeSegment(sessionId) + "/catalog", null, null, CatalogInfo.class);
@@ -42,7 +42,7 @@ public final class CatalogResource {
PaginatedProducts.class);
}
- /** Get a single product by id. */
+ /** Get a single product by id, or {@code null} when no product in the catalog carries that id. */
public CatalogProduct product(String sessionId, String productId) {
return client.request(
HttpMethod.GET,