diff --git a/CHANGELOG.md b/CHANGELOG.md
index 46a500d6..08f4517a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,72 @@
+### v3.53.0 (2026-08-19)
+* * *
+### New Resources:
+- [`GatewayPaymentMethodToken`](https://apidocs.chargebee.com/docs/api/gateway_payment_method_tokens) has been added.
+- [`OmnichannelSubscriptionItemMetric`](https://apidocs.chargebee.com/docs/api/omnichannel_subscription_item_metrics) has been added.
+- [`QuoteEntitlement`](https://apidocs.chargebee.com/docs/api/quote_entitlements) has been added.
+- [`VaultedPaymentMethod`](https://apidocs.chargebee.com/docs/api/vaulted_payment_methods) has been added.
+
+
+### New Actions:
+- [`update_credit_note_details`](https://apidocs.chargebee.com/docs/api/credit_notes/update-credit-note-details) has been added to [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes).
+- [`export_subscription_ramps`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps) has been added to [`Export`](https://apidocs.chargebee.com/docs/api/exports).
+- [`void_authorizations_before_capture`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture) has been added to [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
+- [`list_gateway_payment_method_tokens_for_a_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source) has been added to [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources).
+
+
+### New Attributes:
+- [`payment_method_options`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_method_options) has been added to [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
+- [`vault_token`](https://apidocs.chargebee.com/docs/api/payment_sources/payment-source-object#vault_token) has been added to [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources).
+- [`has_entitlements`](https://apidocs.chargebee.com/docs/api/quotes/quote-object#has_entitlements) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
+
+
+### New Parameters:
+- [`updated_at.on`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#updated_at_on) 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).
+- [`updated_at.between`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#updated_at_between) 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).
+- [`purchased_at.on`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#purchased_at_on) 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).
+- [`purchased_at.between`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#purchased_at_between) 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).
+- [`limit`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source#limit) has been added as query parameter to [`list_gateway_payment_method_tokens_for_a_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources).
+- [`offset`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source#offset) has been added as query parameter to [`list_gateway_payment_method_tokens_for_a_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources).
+- [`include_deleted`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source#include_deleted) has been added as query parameter to [`list_gateway_payment_method_tokens_for_a_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources).
+- [`comment`](https://apidocs.chargebee.com/docs/api/credit_notes/update-credit-note-details#comment) has been added as request body parameter to [`update_credit_note_details`](https://apidocs.chargebee.com/docs/api/credit_notes/update-credit-note-details) in [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes).
+- [`ramp`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps#ramp) has been added as request body parameter to [`export_subscription_ramps`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps) in [`Export`](https://apidocs.chargebee.com/docs/api/exports).
+- [`export_type`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps#export_type) has been added as request body parameter to [`export_subscription_ramps`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps) in [`Export`](https://apidocs.chargebee.com/docs/api/exports).
+- [`locale`](https://apidocs.chargebee.com/docs/api/hosted_pages/create-a-pre-cancel-hosted-page#locale) has been added as request body parameter to [`create_a_pre-cancel_hosted_page`](https://apidocs.chargebee.com/docs/api/hosted_pages/create-a-pre-cancel-hosted-page) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages).
+- [`comment`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture#comment) has been added as request body parameter to [`void_authorizations_before_capture`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
+- [`void_reason_code`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture#void_reason_code) has been added as request body parameter to [`void_authorizations_before_capture`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
+- [`invoice_action`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture#invoice_action) has been added as request body parameter to [`void_authorizations_before_capture`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
+- [`payment_method_options`](https://apidocs.chargebee.com/docs/api/payment_intents/update-a-payment-intent#payment_method_options) has been added as request body parameter to [`update_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/update-a-payment-intent) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
+- [`payment_method_options`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent#payment_method_options) has been added as request body parameter to [`create_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
+- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items#subscription_items_description) has been added as request body parameter to [`create_a_quote_for_a_new_subscription_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
+- [`entitlement_overrides`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items#entitlement_overrides) has been added as request body parameter to [`create_a_quote_for_a_new_subscription_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
+- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/quotes/edit-update-subscription-quote-for-items#subscription_items_description) has been added as request body parameter to [`edit_update_subscription_quote_for_items`](https://apidocs.chargebee.com/docs/api/quotes/edit-update-subscription-quote-for-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
+- [`entitlement_overrides`](https://apidocs.chargebee.com/docs/api/quotes/edit-update-subscription-quote-for-items#entitlement_overrides) has been added as request body parameter to [`edit_update_subscription_quote_for_items`](https://apidocs.chargebee.com/docs/api/quotes/edit-update-subscription-quote-for-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
+- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items#subscription_items_description) has been added as request body parameter to [`edit_create_subscription_quote_for_items`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
+- [`entitlement_overrides`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items#entitlement_overrides) has been added as request body parameter to [`edit_create_subscription_quote_for_items`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
+- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-update-subscription-items#subscription_items_description) has been added as request body parameter to [`create_a_quote_for_update_subscription_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-update-subscription-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
+- [`entitlement_overrides`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-update-subscription-items#entitlement_overrides) has been added as request body parameter to [`create_a_quote_for_update_subscription_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-update-subscription-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
+
+
+### New Events:
+- [`vault_token_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/vault_token_updated) has been added.
+- [`vault_token_deleted`](https://apidocs.chargebee.com/docs/api/events/webhook/vault_token_deleted) has been added.
+- [`omnichannel_subscription_item_mrr_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/omnichannel_subscription_item_mrr_updated) has been added.
+- [`vault_token_created`](https://apidocs.chargebee.com/docs/api/events/webhook/vault_token_created) has been added.
+
+
+### New Enums:
+- `consumption_based` has been added as a new value enum `CreditOptionForCurrentTermCharges`.
+- `omnichannel_subscription_item_metric` has been added as a new value enum `EntityType`.
+- `omnichannel_subscription_item_mrr_updated`, `vault_token_created`, `vault_token_updated`, and `vault_token_deleted` have been added as new values enum `EventType`.
+- `chargebee`, `chargebee_payments`, `adyen`, `stripe`, `wepay`, `braintree`, `authorize_net`, `paypal_pro`, `pin`, `eway`, `eway_rapid`, `worldpay`, `balanced_payments`, `beanstream`, `bluepay`, `elavon`, `first_data_global`, `hdfc`, `migs`, `nmi`, `ogone`, `paymill`, `paypal_payflow_pro`, `sage_pay`, `tco`, `wirecard`, `amazon_payments`, `paypal_express_checkout`, `gocardless`, `orbital`, `moneris_us`, `moneris`, `bluesnap`, `cybersource`, `vantiv`, `checkout_com`, `paypal`, `ingenico_direct`, `exact`, `mollie`, `quickbooks`, `razorpay`, `global_payments`, `bank_of_america`, `ecentric`, `metrics_global`, `windcave`, `pay_com`, `ebanx`, `dlocal`, `nuvei`, `solidgate`, `paystack`, `jp_morgan`, `deutsche_bank`, `ezidebit`, `twikey`, `tempus`, `moyasar`, `payway`, and `not_applicable` have been added as new values enum `GatewayName`.
+- `void` and `write_off` have been added as new values enum `InvoiceAction`.
+- `active`, `inactive`, and `pending_verification` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/gateway_payment_method_tokens/gateway-payment-method-token-object#status) in [`GatewayPaymentMethodToken`](https://apidocs.chargebee.com/docs/api/gateway_payment_method_tokens).
+- `payment_method_helper`, `card_components`, `checkout`, `collect_now`, `portal`, and `payment_components` have been added as new values to enum attribute [`payment_intent_metadata.source`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_intent_metadata_source) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
+- `plan_price`, `addon_price`, `charge_price`, and `charge` have been added as new values to enum attribute [`entity_type`](https://apidocs.chargebee.com/docs/api/quote_entitlements/quote-entitlement-object#entity_type) in [`QuoteEntitlement`](https://apidocs.chargebee.com/docs/api/quote_entitlements).
+- `upsert` and `remove` have been added as new values to enum attribute [`action_type`](https://apidocs.chargebee.com/docs/api/quote_entitlements/quote-entitlement-object#action_type) in [`QuoteEntitlement`](https://apidocs.chargebee.com/docs/api/quote_entitlements).
+
+
+
### v3.52.0 (2026-07-30)
* * *
### New Resources:
diff --git a/VERSION b/VERSION
index 7ac0b0a6..c5c343b5 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.52.0
+3.53.0
diff --git a/pom.xml b/pom.xml
index a6f56a9a..d78b9e22 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.chargebee
chargebee-java
- 3.52.0
+ 3.53.0
jar
diff --git a/src/main/java/com/chargebee/Environment.java b/src/main/java/com/chargebee/Environment.java
index 71c56c4e..32cffee4 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.52.0";
+ public static final String LIBRARY_VERSION = "3.53.0";
private final String apiBaseUrl;
diff --git a/src/main/java/com/chargebee/internal/ResultBase.java b/src/main/java/com/chargebee/internal/ResultBase.java
index 390b511e..88096b7a 100644
--- a/src/main/java/com/chargebee/internal/ResultBase.java
+++ b/src/main/java/com/chargebee/internal/ResultBase.java
@@ -64,10 +64,18 @@ public PaymentSource paymentSource() {
return (PaymentSource)get("payment_source");
}
+ public GatewayPaymentMethodToken gatewayPaymentMethodToken() {
+ return (GatewayPaymentMethodToken)get("gateway_payment_method_token");
+ }
+
public ThirdPartyPaymentMethod thirdPartyPaymentMethod() {
return (ThirdPartyPaymentMethod)get("third_party_payment_method");
}
+ public VaultedPaymentMethod vaultedPaymentMethod() {
+ return (VaultedPaymentMethod)get("vaulted_payment_method");
+ }
+
public VirtualBankAccount virtualBankAccount() {
return (VirtualBankAccount)get("virtual_bank_account");
}
@@ -156,6 +164,10 @@ public QuoteLineGroup quoteLineGroup() {
return (QuoteLineGroup)get("quote_line_group");
}
+ public QuoteEntitlement quoteEntitlement() {
+ return (QuoteEntitlement)get("quote_entitlement");
+ }
+
public CpqQuoteSignature cpqQuoteSignature() {
return (CpqQuoteSignature)get("cpq_quote_signature");
}
@@ -340,6 +352,10 @@ public OmnichannelSubscriptionItemScheduledChange omnichannelSubscriptionItemSch
return (OmnichannelSubscriptionItemScheduledChange)get("omnichannel_subscription_item_scheduled_change");
}
+ public OmnichannelSubscriptionItemMetric omnichannelSubscriptionItemMetric() {
+ return (OmnichannelSubscriptionItemMetric)get("omnichannel_subscription_item_metric");
+ }
+
public OmnichannelSubscription omnichannelSubscription() {
return (OmnichannelSubscription)get("omnichannel_subscription");
}
diff --git a/src/main/java/com/chargebee/models/CreditNote.java b/src/main/java/com/chargebee/models/CreditNote.java
index 0f0e8c48..d70aa58b 100644
--- a/src/main/java/com/chargebee/models/CreditNote.java
+++ b/src/main/java/com/chargebee/models/CreditNote.java
@@ -1009,6 +1009,11 @@ public static DeleteRequest delete(String id) {
return new DeleteRequest(Method.POST, uri);
}
+ public static UpdateRequest update(String id) {
+ String uri = uri("credit_notes", nullCheck(id), "update");
+ return new UpdateRequest(Method.POST, uri);
+ }
+
public static RemoveTaxWithheldRefundRequest removeTaxWithheldRefund(String id) {
String uri = uri("credit_notes", nullCheck(id), "remove_tax_withheld_refund");
return new RemoveTaxWithheldRefundRequest(Method.POST, uri);
@@ -1437,6 +1442,24 @@ public Params params() {
}
}
+ public static class UpdateRequest extends Request {
+
+ private UpdateRequest(Method httpMeth, String uri) {
+ super(httpMeth, uri);
+ }
+
+ public UpdateRequest comment(String comment) {
+ params.addOpt("comment", comment);
+ return this;
+ }
+
+
+ @Override
+ public Params params() {
+ return params;
+ }
+ }
+
public static class RemoveTaxWithheldRefundRequest extends Request {
private RemoveTaxWithheldRefundRequest(Method httpMeth, String uri) {
diff --git a/src/main/java/com/chargebee/models/Export.java b/src/main/java/com/chargebee/models/Export.java
index 1926b3e6..7bb35830 100644
--- a/src/main/java/com/chargebee/models/Export.java
+++ b/src/main/java/com/chargebee/models/Export.java
@@ -178,6 +178,11 @@ public static PriceVariantsRequest priceVariants() {
return new PriceVariantsRequest(Method.POST, uri);
}
+ public static RampsRequest ramps() {
+ String uri = uri("exports", "ramps");
+ return new RampsRequest(Method.POST, uri);
+ }
+
public Export waitForExportCompletion()
throws Exception {
@@ -1945,6 +1950,44 @@ public TimestampFilter priceVariantCreatedAt() {
}
+ @Override
+ public Params params() {
+ return params;
+ }
+ }
+
+ public static class RampsRequest extends Request {
+
+ private RampsRequest(Method httpMeth, String uri) {
+ super(httpMeth, uri);
+ }
+
+ public RampsRequest exportType(com.chargebee.models.enums.ExportType exportType) {
+ params.addOpt("export_type", exportType);
+ return this;
+ }
+
+
+ public EnumFilter rampStatus() {
+ return new EnumFilter("ramp[status]",this);
+ }
+
+
+ public StringFilter rampSubscriptionId() {
+ return new StringFilter("ramp[subscription_id]",this).supportsMultiOperators(true);
+ }
+
+
+ public TimestampFilter rampEffectiveFrom() {
+ return new TimestampFilter("ramp[effective_from]",this);
+ }
+
+
+ public TimestampFilter rampUpdatedAt() {
+ return new TimestampFilter("ramp[updated_at]",this);
+ }
+
+
@Override
public Params params() {
return params;
diff --git a/src/main/java/com/chargebee/models/GatewayPaymentMethodToken.java b/src/main/java/com/chargebee/models/GatewayPaymentMethodToken.java
new file mode 100644
index 00000000..7feb57ed
--- /dev/null
+++ b/src/main/java/com/chargebee/models/GatewayPaymentMethodToken.java
@@ -0,0 +1,74 @@
+package com.chargebee.models;
+
+import com.chargebee.*;
+import com.chargebee.internal.*;
+import com.chargebee.filters.*;
+import com.chargebee.filters.enums.SortOrder;
+import com.chargebee.internal.HttpUtil.Method;
+import com.chargebee.models.enums.*;
+import org.json.*;
+import java.io.*;
+import java.sql.Timestamp;
+import java.util.*;
+
+public class GatewayPaymentMethodToken extends Resource {
+
+ public enum Status {
+ ACTIVE,
+ INACTIVE,
+ PENDING_VERIFICATION,
+ _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 */
+ }
+
+ //Constructors
+ //============
+
+ public GatewayPaymentMethodToken(String jsonStr) {
+ super(jsonStr);
+ }
+
+ public GatewayPaymentMethodToken(JSONObject jsonObj) {
+ super(jsonObj);
+ }
+
+ // Fields
+ //=======
+
+ public String id() {
+ return reqString("id");
+ }
+
+ public String gatewayAccountId() {
+ return reqString("gateway_account_id");
+ }
+
+ public GatewayName gatewayName() {
+ return reqEnum("gateway_name", GatewayName.class);
+ }
+
+ public String gatewayCustomerId() {
+ return optString("gateway_customer_id");
+ }
+
+ public String gatewayToken() {
+ return reqString("gateway_token");
+ }
+
+ public Status status() {
+ return reqEnum("status", Status.class);
+ }
+
+ public Timestamp createdAt() {
+ return reqTimestamp("created_at");
+ }
+
+ public Timestamp updatedAt() {
+ return optTimestamp("updated_at");
+ }
+
+ // Operations
+ //===========
+
+
+}
diff --git a/src/main/java/com/chargebee/models/HostedPage.java b/src/main/java/com/chargebee/models/HostedPage.java
index ea0f82f3..75c25732 100644
--- a/src/main/java/com/chargebee/models/HostedPage.java
+++ b/src/main/java/com/chargebee/models/HostedPage.java
@@ -3227,6 +3227,12 @@ public PreCancelRequest redirectUrl(String redirectUrl) {
}
+ public PreCancelRequest locale(String locale) {
+ params.addOpt("locale", locale);
+ return this;
+ }
+
+
public PreCancelRequest subscriptionId(String subscriptionId) {
params.add("subscription[id]", subscriptionId);
return this;
diff --git a/src/main/java/com/chargebee/models/Invoice.java b/src/main/java/com/chargebee/models/Invoice.java
index 9c452c9e..def37b33 100644
--- a/src/main/java/com/chargebee/models/Invoice.java
+++ b/src/main/java/com/chargebee/models/Invoice.java
@@ -561,7 +561,7 @@ public Transaction.Type txnType() {
}
public Long amountCapturable() {
- return reqLong("amount_capturable");
+ return optLong("amount_capturable");
}
public Transaction.AuthorizationReason authorizationReason() {
@@ -1455,6 +1455,11 @@ public static WriteOffRequest writeOff(String id) {
return new WriteOffRequest(Method.POST, uri);
}
+ public static VoidBeforeCaptureRequest voidBeforeCapture(String id) {
+ String uri = uri("invoices", nullCheck(id), "void_before_capture");
+ return new VoidBeforeCaptureRequest(Method.POST, uri);
+ }
+
public static DeleteRequest delete(String id) {
String uri = uri("invoices", nullCheck(id), "delete");
return new DeleteRequest(Method.POST, uri);
@@ -4598,6 +4603,36 @@ public Params params() {
}
}
+ public static class VoidBeforeCaptureRequest extends Request {
+
+ private VoidBeforeCaptureRequest(Method httpMeth, String uri) {
+ super(httpMeth, uri);
+ }
+
+ public VoidBeforeCaptureRequest comment(String comment) {
+ params.addOpt("comment", comment);
+ return this;
+ }
+
+
+ public VoidBeforeCaptureRequest voidReasonCode(String voidReasonCode) {
+ params.addOpt("void_reason_code", voidReasonCode);
+ return this;
+ }
+
+
+ public VoidBeforeCaptureRequest invoiceAction(com.chargebee.models.enums.InvoiceAction invoiceAction) {
+ params.addOpt("invoice_action", invoiceAction);
+ return this;
+ }
+
+
+ @Override
+ public Params params() {
+ return params;
+ }
+ }
+
public static class DeleteRequest extends Request {
private DeleteRequest(Method httpMeth, String uri) {
diff --git a/src/main/java/com/chargebee/models/OmnichannelSubscriptionItemMetric.java b/src/main/java/com/chargebee/models/OmnichannelSubscriptionItemMetric.java
new file mode 100644
index 00000000..136414f6
--- /dev/null
+++ b/src/main/java/com/chargebee/models/OmnichannelSubscriptionItemMetric.java
@@ -0,0 +1,78 @@
+package com.chargebee.models;
+
+import com.chargebee.*;
+import com.chargebee.internal.*;
+import com.chargebee.filters.*;
+import com.chargebee.filters.enums.SortOrder;
+import com.chargebee.internal.HttpUtil.Method;
+import com.chargebee.models.enums.*;
+import org.json.*;
+import java.io.*;
+import java.sql.Timestamp;
+import java.util.*;
+
+public class OmnichannelSubscriptionItemMetric extends Resource {
+
+ //Constructors
+ //============
+
+ public OmnichannelSubscriptionItemMetric(String jsonStr) {
+ super(jsonStr);
+ }
+
+ public OmnichannelSubscriptionItemMetric(JSONObject jsonObj) {
+ super(jsonObj);
+ }
+
+ // Fields
+ //=======
+
+ public String customerId() {
+ return optString("customer_id");
+ }
+
+ public String omnichannelSubscriptionId() {
+ return optString("omnichannel_subscription_id");
+ }
+
+ public String omnichannelSubscriptionItemId() {
+ return optString("omnichannel_subscription_item_id");
+ }
+
+ public String itemIdAtSource() {
+ return reqString("item_id_at_source");
+ }
+
+ public String mrrCurrency() {
+ return optString("mrr_currency");
+ }
+
+ public Long mrrUnits() {
+ return optLong("mrr_units");
+ }
+
+ public Long mrrNanos() {
+ return optLong("mrr_nanos");
+ }
+
+ public Timestamp effectiveFrom() {
+ return reqTimestamp("effective_from");
+ }
+
+ public Timestamp calculatedAt() {
+ return optTimestamp("calculated_at");
+ }
+
+ public Timestamp createdAt() {
+ return reqTimestamp("created_at");
+ }
+
+ public Long resourceVersion() {
+ return optLong("resource_version");
+ }
+
+ // Operations
+ //===========
+
+
+}
diff --git a/src/main/java/com/chargebee/models/PaymentIntent.java b/src/main/java/com/chargebee/models/PaymentIntent.java
index cbc2b392..902dcb71 100644
--- a/src/main/java/com/chargebee/models/PaymentIntent.java
+++ b/src/main/java/com/chargebee/models/PaymentIntent.java
@@ -131,11 +131,19 @@ public GatewayErrorDetail errorDetail() {
return optSubResource("error_detail", GatewayErrorDetail.class);
}
+ public String routingRuleId() {
+ return optString("routing_rule_id");
+ }
+
+ public String paymentMethodDisplayRuleId() {
+ return optString("payment_method_display_rule_id");
+ }
+
}
public static class PaymentIntentMetadata extends Resource {
public enum Source {
- CB_JS,COMPONENTS_FIELDS,CHECKOUT_V3,PAYNOW_V3,PORTAL_V3,GIFT_V3,CHECKOUT_V4,PAYMENT_COMPONENT,PC_INAPP_V4,PC_FPC_V4,
+ PAYMENT_METHOD_HELPER,CARD_COMPONENTS,CHECKOUT,COLLECT_NOW,PORTAL,PAYMENT_COMPONENTS,
_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 */
}
@@ -232,8 +240,12 @@ public Timestamp updatedAt() {
return optTimestamp("updated_at");
}
+ public JSONObject paymentMethodOptions() {
+ return optJSONObject("payment_method_options");
+ }
+
public String customerId() {
- return reqString("customer_id");
+ return optString("customer_id");
}
public String gateway() {
@@ -344,6 +356,12 @@ public CreateRequest failureUrl(String failureUrl) {
}
+ public CreateRequest paymentMethodOptions(JSONObject paymentMethodOptions) {
+ params.addOpt("payment_method_options", paymentMethodOptions);
+ return this;
+ }
+
+
@Override
public Params params() {
return params;
@@ -392,6 +410,12 @@ public UpdateRequest failureUrl(String failureUrl) {
}
+ public UpdateRequest paymentMethodOptions(JSONObject paymentMethodOptions) {
+ params.addOpt("payment_method_options", paymentMethodOptions);
+ return this;
+ }
+
+
@Override
public Params params() {
return params;
diff --git a/src/main/java/com/chargebee/models/PaymentSource.java b/src/main/java/com/chargebee/models/PaymentSource.java
index 44bda95d..b45d216c 100644
--- a/src/main/java/com/chargebee/models/PaymentSource.java
+++ b/src/main/java/com/chargebee/models/PaymentSource.java
@@ -451,6 +451,10 @@ public List mandates() {
return optList("mandates", PaymentSource.Mandate.class);
}
+ public JSONObject vaultToken() {
+ return optJSONObject("vault_token");
+ }
+
public Boolean deleted() {
return reqBoolean("deleted");
}
@@ -512,6 +516,11 @@ public static VerifyBankAccountRequest verifyBankAccount(String id) {
return new VerifyBankAccountRequest(Method.POST, uri);
}
+ public static PaymentSourceListGatewayTokensForPaymentSourceRequest listGatewayTokensForPaymentSource(String id) {
+ String uri = uri("payment_sources", nullCheck(id), "gateway_payment_method_tokens");
+ return new PaymentSourceListGatewayTokensForPaymentSourceRequest(uri);
+ }
+
public static Request retrieve(String id) {
String uri = uri("payment_sources", nullCheck(id));
return new Request(Method.GET, uri);
@@ -1251,6 +1260,24 @@ public Params params() {
}
}
+ public static class PaymentSourceListGatewayTokensForPaymentSourceRequest extends ListRequest {
+
+ private PaymentSourceListGatewayTokensForPaymentSourceRequest(String uri) {
+ super(uri);
+ }
+
+ public PaymentSourceListGatewayTokensForPaymentSourceRequest includeDeleted(Boolean includeDeleted) {
+ params.addOpt("include_deleted", includeDeleted);
+ return this;
+ }
+
+
+ @Override
+ public Params params() {
+ return params;
+ }
+ }
+
public static class PaymentSourceListRequest extends ListRequest {
private PaymentSourceListRequest(String uri) {
diff --git a/src/main/java/com/chargebee/models/PricingPageSession.java b/src/main/java/com/chargebee/models/PricingPageSession.java
index 7fef0d79..21509c4e 100644
--- a/src/main/java/com/chargebee/models/PricingPageSession.java
+++ b/src/main/java/com/chargebee/models/PricingPageSession.java
@@ -91,7 +91,7 @@ public CreateForNewSubscriptionRequest custom(JSONObject custom) {
public CreateForNewSubscriptionRequest 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/Quote.java b/src/main/java/com/chargebee/models/Quote.java
index 4fc6a426..7477ae25 100644
--- a/src/main/java/com/chargebee/models/Quote.java
+++ b/src/main/java/com/chargebee/models/Quote.java
@@ -688,6 +688,10 @@ public Long totalDiscount() {
return optLong("total_discount");
}
+ public Boolean hasEntitlements() {
+ return optBoolean("has_entitlements");
+ }
+
// Operations
//===========
@@ -2951,6 +2955,10 @@ public CreateSubItemsForCustomerQuoteRequest subscriptionItemEndDate(int index,
params.addOpt("subscription_items[end_date][" + index + "]", subscriptionItemEndDate);
return this;
}
+ public CreateSubItemsForCustomerQuoteRequest subscriptionItemDescription(int index, String subscriptionItemDescription) {
+ params.addOpt("subscription_items[description][" + index + "]", subscriptionItemDescription);
+ return this;
+ }
public CreateSubItemsForCustomerQuoteRequest subscriptionItemRampTierId(int index, String subscriptionItemRampTierId) {
params.addOpt("subscription_items[ramp_tier_id][" + index + "]", subscriptionItemRampTierId);
return this;
@@ -2979,6 +2987,34 @@ public CreateSubItemsForCustomerQuoteRequest couponEndDate(int index, Timestamp
params.addOpt("coupons[end_date][" + index + "]", couponEndDate);
return this;
}
+ public CreateSubItemsForCustomerQuoteRequest entitlementOverrideFeatureId(int index, String entitlementOverrideFeatureId) {
+ params.addOpt("entitlement_overrides[feature_id][" + index + "]", entitlementOverrideFeatureId);
+ return this;
+ }
+ public CreateSubItemsForCustomerQuoteRequest entitlementOverrideEntityId(int index, String entitlementOverrideEntityId) {
+ params.addOpt("entitlement_overrides[entity_id][" + index + "]", entitlementOverrideEntityId);
+ return this;
+ }
+ public CreateSubItemsForCustomerQuoteRequest entitlementOverrideEntityType(int index, com.chargebee.models.enums.EntityType entitlementOverrideEntityType) {
+ params.addOpt("entitlement_overrides[entity_type][" + index + "]", entitlementOverrideEntityType);
+ return this;
+ }
+ public CreateSubItemsForCustomerQuoteRequest entitlementOverrideValue(int index, String entitlementOverrideValue) {
+ params.addOpt("entitlement_overrides[value][" + index + "]", entitlementOverrideValue);
+ return this;
+ }
+ public CreateSubItemsForCustomerQuoteRequest entitlementOverrideIsEnabled(int index, Boolean entitlementOverrideIsEnabled) {
+ params.addOpt("entitlement_overrides[is_enabled][" + index + "]", entitlementOverrideIsEnabled);
+ return this;
+ }
+ public CreateSubItemsForCustomerQuoteRequest entitlementOverrideStartDate(int index, Timestamp entitlementOverrideStartDate) {
+ params.addOpt("entitlement_overrides[start_date][" + index + "]", entitlementOverrideStartDate);
+ return this;
+ }
+ public CreateSubItemsForCustomerQuoteRequest entitlementOverrideEndDate(int index, Timestamp entitlementOverrideEndDate) {
+ params.addOpt("entitlement_overrides[end_date][" + index + "]", entitlementOverrideEndDate);
+ return this;
+ }
@Override
public Params params() {
return params;
@@ -3378,6 +3414,10 @@ public EditCreateSubCustomerQuoteForItemsRequest subscriptionItemEndDate(int ind
params.addOpt("subscription_items[end_date][" + index + "]", subscriptionItemEndDate);
return this;
}
+ public EditCreateSubCustomerQuoteForItemsRequest subscriptionItemDescription(int index, String subscriptionItemDescription) {
+ params.addOpt("subscription_items[description][" + index + "]", subscriptionItemDescription);
+ return this;
+ }
public EditCreateSubCustomerQuoteForItemsRequest subscriptionItemRampTierId(int index, String subscriptionItemRampTierId) {
params.addOpt("subscription_items[ramp_tier_id][" + index + "]", subscriptionItemRampTierId);
return this;
@@ -3406,6 +3446,34 @@ public EditCreateSubCustomerQuoteForItemsRequest couponEndDate(int index, Timest
params.addOpt("coupons[end_date][" + index + "]", couponEndDate);
return this;
}
+ public EditCreateSubCustomerQuoteForItemsRequest entitlementOverrideFeatureId(int index, String entitlementOverrideFeatureId) {
+ params.addOpt("entitlement_overrides[feature_id][" + index + "]", entitlementOverrideFeatureId);
+ return this;
+ }
+ public EditCreateSubCustomerQuoteForItemsRequest entitlementOverrideEntityId(int index, String entitlementOverrideEntityId) {
+ params.addOpt("entitlement_overrides[entity_id][" + index + "]", entitlementOverrideEntityId);
+ return this;
+ }
+ public EditCreateSubCustomerQuoteForItemsRequest entitlementOverrideEntityType(int index, com.chargebee.models.enums.EntityType entitlementOverrideEntityType) {
+ params.addOpt("entitlement_overrides[entity_type][" + index + "]", entitlementOverrideEntityType);
+ return this;
+ }
+ public EditCreateSubCustomerQuoteForItemsRequest entitlementOverrideValue(int index, String entitlementOverrideValue) {
+ params.addOpt("entitlement_overrides[value][" + index + "]", entitlementOverrideValue);
+ return this;
+ }
+ public EditCreateSubCustomerQuoteForItemsRequest entitlementOverrideIsEnabled(int index, Boolean entitlementOverrideIsEnabled) {
+ params.addOpt("entitlement_overrides[is_enabled][" + index + "]", entitlementOverrideIsEnabled);
+ return this;
+ }
+ public EditCreateSubCustomerQuoteForItemsRequest entitlementOverrideStartDate(int index, Timestamp entitlementOverrideStartDate) {
+ params.addOpt("entitlement_overrides[start_date][" + index + "]", entitlementOverrideStartDate);
+ return this;
+ }
+ public EditCreateSubCustomerQuoteForItemsRequest entitlementOverrideEndDate(int index, Timestamp entitlementOverrideEndDate) {
+ params.addOpt("entitlement_overrides[end_date][" + index + "]", entitlementOverrideEndDate);
+ return this;
+ }
@Override
public Params params() {
return params;
@@ -3866,6 +3934,10 @@ public UpdateSubscriptionQuoteForItemsRequest subscriptionItemEndDate(int index,
params.addOpt("subscription_items[end_date][" + index + "]", subscriptionItemEndDate);
return this;
}
+ public UpdateSubscriptionQuoteForItemsRequest subscriptionItemDescription(int index, String subscriptionItemDescription) {
+ params.addOpt("subscription_items[description][" + index + "]", subscriptionItemDescription);
+ return this;
+ }
public UpdateSubscriptionQuoteForItemsRequest subscriptionItemRampTierId(int index, String subscriptionItemRampTierId) {
params.addOpt("subscription_items[ramp_tier_id][" + index + "]", subscriptionItemRampTierId);
return this;
@@ -3894,6 +3966,34 @@ public UpdateSubscriptionQuoteForItemsRequest couponEndDate(int index, Timestamp
params.addOpt("coupons[end_date][" + index + "]", couponEndDate);
return this;
}
+ public UpdateSubscriptionQuoteForItemsRequest entitlementOverrideFeatureId(int index, String entitlementOverrideFeatureId) {
+ params.addOpt("entitlement_overrides[feature_id][" + index + "]", entitlementOverrideFeatureId);
+ return this;
+ }
+ public UpdateSubscriptionQuoteForItemsRequest entitlementOverrideEntityId(int index, String entitlementOverrideEntityId) {
+ params.addOpt("entitlement_overrides[entity_id][" + index + "]", entitlementOverrideEntityId);
+ return this;
+ }
+ public UpdateSubscriptionQuoteForItemsRequest entitlementOverrideEntityType(int index, com.chargebee.models.enums.EntityType entitlementOverrideEntityType) {
+ params.addOpt("entitlement_overrides[entity_type][" + index + "]", entitlementOverrideEntityType);
+ return this;
+ }
+ public UpdateSubscriptionQuoteForItemsRequest entitlementOverrideValue(int index, String entitlementOverrideValue) {
+ params.addOpt("entitlement_overrides[value][" + index + "]", entitlementOverrideValue);
+ return this;
+ }
+ public UpdateSubscriptionQuoteForItemsRequest entitlementOverrideIsEnabled(int index, Boolean entitlementOverrideIsEnabled) {
+ params.addOpt("entitlement_overrides[is_enabled][" + index + "]", entitlementOverrideIsEnabled);
+ return this;
+ }
+ public UpdateSubscriptionQuoteForItemsRequest entitlementOverrideStartDate(int index, Timestamp entitlementOverrideStartDate) {
+ params.addOpt("entitlement_overrides[start_date][" + index + "]", entitlementOverrideStartDate);
+ return this;
+ }
+ public UpdateSubscriptionQuoteForItemsRequest entitlementOverrideEndDate(int index, Timestamp entitlementOverrideEndDate) {
+ params.addOpt("entitlement_overrides[end_date][" + index + "]", entitlementOverrideEndDate);
+ return this;
+ }
@Override
public Params params() {
return params;
@@ -4343,6 +4443,10 @@ public EditUpdateSubscriptionQuoteForItemsRequest subscriptionItemEndDate(int in
params.addOpt("subscription_items[end_date][" + index + "]", subscriptionItemEndDate);
return this;
}
+ public EditUpdateSubscriptionQuoteForItemsRequest subscriptionItemDescription(int index, String subscriptionItemDescription) {
+ params.addOpt("subscription_items[description][" + index + "]", subscriptionItemDescription);
+ return this;
+ }
public EditUpdateSubscriptionQuoteForItemsRequest subscriptionItemRampTierId(int index, String subscriptionItemRampTierId) {
params.addOpt("subscription_items[ramp_tier_id][" + index + "]", subscriptionItemRampTierId);
return this;
@@ -4371,6 +4475,34 @@ public EditUpdateSubscriptionQuoteForItemsRequest couponEndDate(int index, Times
params.addOpt("coupons[end_date][" + index + "]", couponEndDate);
return this;
}
+ public EditUpdateSubscriptionQuoteForItemsRequest entitlementOverrideFeatureId(int index, String entitlementOverrideFeatureId) {
+ params.addOpt("entitlement_overrides[feature_id][" + index + "]", entitlementOverrideFeatureId);
+ return this;
+ }
+ public EditUpdateSubscriptionQuoteForItemsRequest entitlementOverrideEntityId(int index, String entitlementOverrideEntityId) {
+ params.addOpt("entitlement_overrides[entity_id][" + index + "]", entitlementOverrideEntityId);
+ return this;
+ }
+ public EditUpdateSubscriptionQuoteForItemsRequest entitlementOverrideEntityType(int index, com.chargebee.models.enums.EntityType entitlementOverrideEntityType) {
+ params.addOpt("entitlement_overrides[entity_type][" + index + "]", entitlementOverrideEntityType);
+ return this;
+ }
+ public EditUpdateSubscriptionQuoteForItemsRequest entitlementOverrideValue(int index, String entitlementOverrideValue) {
+ params.addOpt("entitlement_overrides[value][" + index + "]", entitlementOverrideValue);
+ return this;
+ }
+ public EditUpdateSubscriptionQuoteForItemsRequest entitlementOverrideIsEnabled(int index, Boolean entitlementOverrideIsEnabled) {
+ params.addOpt("entitlement_overrides[is_enabled][" + index + "]", entitlementOverrideIsEnabled);
+ return this;
+ }
+ public EditUpdateSubscriptionQuoteForItemsRequest entitlementOverrideStartDate(int index, Timestamp entitlementOverrideStartDate) {
+ params.addOpt("entitlement_overrides[start_date][" + index + "]", entitlementOverrideStartDate);
+ return this;
+ }
+ public EditUpdateSubscriptionQuoteForItemsRequest entitlementOverrideEndDate(int index, Timestamp entitlementOverrideEndDate) {
+ params.addOpt("entitlement_overrides[end_date][" + index + "]", entitlementOverrideEndDate);
+ return this;
+ }
@Override
public Params params() {
return params;
diff --git a/src/main/java/com/chargebee/models/QuoteEntitlement.java b/src/main/java/com/chargebee/models/QuoteEntitlement.java
index fb90292f..79282e21 100644
--- a/src/main/java/com/chargebee/models/QuoteEntitlement.java
+++ b/src/main/java/com/chargebee/models/QuoteEntitlement.java
@@ -17,11 +17,20 @@ public enum EntityType {
PLAN_PRICE,
ADDON_PRICE,
CHARGE_PRICE,
+ @Deprecated
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 */
}
+ @Deprecated
+ public enum ActionType {
+ UPSERT,
+ REMOVE,
+ _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 */
+ }
+
//Constructors
//============
@@ -44,12 +53,17 @@ public EntityType entityType() {
return reqEnum("entity_type", EntityType.class);
}
+ @Deprecated
+ public ActionType actionType() {
+ return reqEnum("action_type", ActionType.class);
+ }
+
public String featureId() {
return reqString("feature_id");
}
public String value() {
- return reqString("value");
+ return optString("value");
}
public Boolean isEnabled() {
@@ -72,8 +86,67 @@ public Timestamp modifiedAt() {
return reqTimestamp("modified_at");
}
+ public Boolean isOverridden() {
+ return optBoolean("is_overridden");
+ }
+
+ public String featureName() {
+ return optString("feature_name");
+ }
+
+ public String featureUnit() {
+ return optString("feature_unit");
+ }
+
+ public String featureType() {
+ return optString("feature_type");
+ }
+
+ public String name() {
+ return optString("name");
+ }
+
+ public Boolean metered() {
+ return optBoolean("metered");
+ }
+
// Operations
//===========
+ public static QuoteEntitlementListQuoteEntitlementsRequest listQuoteEntitlements(String id) {
+ String uri = uri("quotes", nullCheck(id), "quote_entitlements");
+ return new QuoteEntitlementListQuoteEntitlementsRequest(uri);
+ }
+
+
+ // Operation Request Classes
+ //==========================
+
+ public static class QuoteEntitlementListQuoteEntitlementsRequest extends ListRequest {
+
+ private QuoteEntitlementListQuoteEntitlementsRequest(String uri) {
+ super(uri);
+ }
+
+ public StringFilter entityId() {
+ return new StringFilter("entity_id",this);
+ }
+
+
+ public TimestampFilter startDate() {
+ return new TimestampFilter("start_date",this);
+ }
+
+
+ public TimestampFilter endDate() {
+ return new TimestampFilter("end_date",this);
+ }
+
+
+ @Override
+ public Params params() {
+ return params;
+ }
+ }
}
diff --git a/src/main/java/com/chargebee/models/QuotedRamp.java b/src/main/java/com/chargebee/models/QuotedRamp.java
index c1dac7bd..7b32be64 100644
--- a/src/main/java/com/chargebee/models/QuotedRamp.java
+++ b/src/main/java/com/chargebee/models/QuotedRamp.java
@@ -147,6 +147,10 @@ public String netAmountPerBillingCycleInDecimal() {
return optString("net_amount_per_billing_cycle_in_decimal");
}
+ public String description() {
+ return optString("description");
+ }
+
}
public static class Discount extends Resource {
diff --git a/src/main/java/com/chargebee/models/VaultedPaymentMethod.java b/src/main/java/com/chargebee/models/VaultedPaymentMethod.java
new file mode 100644
index 00000000..d1429f04
--- /dev/null
+++ b/src/main/java/com/chargebee/models/VaultedPaymentMethod.java
@@ -0,0 +1,59 @@
+package com.chargebee.models;
+
+import com.chargebee.*;
+import com.chargebee.internal.*;
+import com.chargebee.filters.*;
+import com.chargebee.filters.enums.SortOrder;
+import com.chargebee.internal.HttpUtil.Method;
+import com.chargebee.models.enums.*;
+import org.json.*;
+import java.io.*;
+import java.sql.Timestamp;
+import java.util.*;
+
+public class VaultedPaymentMethod extends Resource {
+
+ //Constructors
+ //============
+
+ public VaultedPaymentMethod(String jsonStr) {
+ super(jsonStr);
+ }
+
+ public VaultedPaymentMethod(JSONObject jsonObj) {
+ super(jsonObj);
+ }
+
+ // Fields
+ //=======
+
+ public String id() {
+ return reqString("id");
+ }
+
+ public String customerId() {
+ return reqString("customer_id");
+ }
+
+ public String creditCardId() {
+ return reqString("credit_card_id");
+ }
+
+ public Timestamp createdAt() {
+ return reqTimestamp("created_at");
+ }
+
+ public Timestamp modifiedAt() {
+ return reqTimestamp("modified_at");
+ }
+
+ // Operations
+ //===========
+
+ public static Request retrieve(String id) {
+ String uri = uri("vaulted_payment_methods", nullCheck(id));
+ return new Request(Method.GET, uri);
+ }
+
+
+}
diff --git a/src/main/java/com/chargebee/models/enums/CreditOptionForCurrentTermCharges.java b/src/main/java/com/chargebee/models/enums/CreditOptionForCurrentTermCharges.java
index 5b781562..30a5db62 100644
--- a/src/main/java/com/chargebee/models/enums/CreditOptionForCurrentTermCharges.java
+++ b/src/main/java/com/chargebee/models/enums/CreditOptionForCurrentTermCharges.java
@@ -4,6 +4,7 @@ public enum CreditOptionForCurrentTermCharges {
NONE,
PRORATE,
FULL,
+ CONSUMPTION_BASED,
_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/EnabledEvents.java b/src/main/java/com/chargebee/models/enums/EnabledEvents.java
index f619e9ea..7ecc32e4 100644
--- a/src/main/java/com/chargebee/models/enums/EnabledEvents.java
+++ b/src/main/java/com/chargebee/models/enums/EnabledEvents.java
@@ -224,10 +224,14 @@ public enum EnabledEvents {
ALERT_STATUS_CHANGED,
OMNICHANNEL_SUBSCRIPTION_ITEM_UPDATED,
OMNICHANNEL_SUBSCRIPTION_ITEM_RECOVERED,
+ OMNICHANNEL_SUBSCRIPTION_ITEM_MRR_UPDATED,
LEDGER_ACCOUNT_BALANCE_UPDATED,
GRANT_BLOCKS_CREATED,
GRANT_BLOCKS_UPDATED,
LEDGER_UPDATED,
+ VAULT_TOKEN_CREATED,
+ VAULT_TOKEN_UPDATED,
+ VAULT_TOKEN_DELETED,
PLAN_CREATED,
PLAN_UPDATED,
PLAN_DELETED,
diff --git a/src/main/java/com/chargebee/models/enums/EntityType.java b/src/main/java/com/chargebee/models/enums/EntityType.java
index 58c525cd..4db4afdf 100644
--- a/src/main/java/com/chargebee/models/enums/EntityType.java
+++ b/src/main/java/com/chargebee/models/enums/EntityType.java
@@ -1,6 +1,8 @@
package com.chargebee.models.enums;
public enum EntityType {
+ @Deprecated
+ CHARGE,
CUSTOMER,
SUBSCRIPTION,
COUPON,
@@ -10,7 +12,6 @@ public enum EntityType {
PLAN_PRICE,
ADDON_PRICE,
CHARGE_PRICE,
- CHARGE,
INVOICE,
QUOTE,
CREDIT_NOTE,
@@ -43,6 +44,7 @@ public enum EntityType {
BUSINESS_RULE,
RULESET,
ALERT_STATUS,
+ OMNICHANNEL_SUBSCRIPTION_ITEM_METRIC,
_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 909b6cc7..c5b62bee 100644
--- a/src/main/java/com/chargebee/models/enums/EventType.java
+++ b/src/main/java/com/chargebee/models/enums/EventType.java
@@ -233,10 +233,14 @@ public enum EventType {
ALERT_STATUS_CHANGED,
OMNICHANNEL_SUBSCRIPTION_ITEM_UPDATED,
OMNICHANNEL_SUBSCRIPTION_ITEM_RECOVERED,
+ OMNICHANNEL_SUBSCRIPTION_ITEM_MRR_UPDATED,
LEDGER_ACCOUNT_BALANCE_UPDATED,
GRANT_BLOCKS_CREATED,
GRANT_BLOCKS_UPDATED,
LEDGER_UPDATED,
+ VAULT_TOKEN_CREATED,
+ VAULT_TOKEN_UPDATED,
+ VAULT_TOKEN_DELETED,
PLAN_CREATED,
PLAN_UPDATED,
PLAN_DELETED,
diff --git a/src/main/java/com/chargebee/models/enums/GatewayName.java b/src/main/java/com/chargebee/models/enums/GatewayName.java
new file mode 100644
index 00000000..bbfdd433
--- /dev/null
+++ b/src/main/java/com/chargebee/models/enums/GatewayName.java
@@ -0,0 +1,67 @@
+package com.chargebee.models.enums;
+
+public enum GatewayName {
+ CHARGEBEE,
+ CHARGEBEE_PAYMENTS,
+ ADYEN,
+ STRIPE,
+ WEPAY,
+ BRAINTREE,
+ AUTHORIZE_NET,
+ PAYPAL_PRO,
+ PIN,
+ EWAY,
+ EWAY_RAPID,
+ WORLDPAY,
+ BALANCED_PAYMENTS,
+ BEANSTREAM,
+ BLUEPAY,
+ ELAVON,
+ FIRST_DATA_GLOBAL,
+ HDFC,
+ MIGS,
+ NMI,
+ OGONE,
+ PAYMILL,
+ PAYPAL_PAYFLOW_PRO,
+ SAGE_PAY,
+ TCO,
+ WIRECARD,
+ AMAZON_PAYMENTS,
+ PAYPAL_EXPRESS_CHECKOUT,
+ GOCARDLESS,
+ ORBITAL,
+ MONERIS_US,
+ MONERIS,
+ BLUESNAP,
+ CYBERSOURCE,
+ VANTIV,
+ CHECKOUT_COM,
+ PAYPAL,
+ INGENICO_DIRECT,
+ EXACT,
+ MOLLIE,
+ QUICKBOOKS,
+ RAZORPAY,
+ GLOBAL_PAYMENTS,
+ BANK_OF_AMERICA,
+ ECENTRIC,
+ METRICS_GLOBAL,
+ WINDCAVE,
+ PAY_COM,
+ EBANX,
+ DLOCAL,
+ NUVEI,
+ SOLIDGATE,
+ PAYSTACK,
+ JP_MORGAN,
+ DEUTSCHE_BANK,
+ EZIDEBIT,
+ TWIKEY,
+ TEMPUS,
+ MOYASAR,
+ PAYWAY,
+ NOT_APPLICABLE,
+ _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/InvoiceAction.java b/src/main/java/com/chargebee/models/enums/InvoiceAction.java
new file mode 100644
index 00000000..60f00482
--- /dev/null
+++ b/src/main/java/com/chargebee/models/enums/InvoiceAction.java
@@ -0,0 +1,8 @@
+package com.chargebee.models.enums;
+
+public enum InvoiceAction {
+ VOID,
+ WRITE_OFF,
+ _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