From f3ed29941400f0fe6f8c7465f9ed4cecac1f47a3 Mon Sep 17 00:00:00 2001 From: chargebee-ci Date: Thu, 24 Sep 2026 05:31:24 +0000 Subject: [PATCH] Releasing v3.54.0 --- CHANGELOG.md | 190 +++++++++++ VERSION | 2 +- pom.xml | 2 +- src/main/java/com/chargebee/Environment.java | 2 +- .../com/chargebee/internal/ResultBase.java | 48 ++- .../chargebee/models/AppliedBusinessRule.java | 72 ++++ .../com/chargebee/models/AppliedRule.java | 62 ++++ .../java/com/chargebee/models/ApplyRule.java | 97 ++++++ .../com/chargebee/models/BusinessRule.java | 312 ++++++++++++++++++ .../com/chargebee/models/BusinessRuleset.java | 288 ++++++++++++++++ .../chargebee/models/BusinessRulesetRule.java | 42 +++ src/main/java/com/chargebee/models/Card.java | 1 + .../java/com/chargebee/models/CreditNote.java | 17 + .../chargebee/models/CustomDataSchema.java | 73 ++++ .../java/com/chargebee/models/Customer.java | 17 +- .../java/com/chargebee/models/Dispute.java | 168 ++++++++++ .../java/com/chargebee/models/Einvoice.java | 152 +++++++++ .../java/com/chargebee/models/EmailLog.java | 117 +++++++ .../java/com/chargebee/models/Estimate.java | 12 + src/main/java/com/chargebee/models/Event.java | 4 + .../java/com/chargebee/models/GrantBlock.java | 111 ++++++- .../java/com/chargebee/models/HostedPage.java | 64 ++++ .../java/com/chargebee/models/Invoice.java | 17 + .../com/chargebee/models/LedgerEntry.java | 24 +- .../com/chargebee/models/LedgerOperation.java | 19 +- .../models/OmnichannelSubscriptionItem.java | 1 + .../com/chargebee/models/PaymentIntent.java | 23 ++ .../com/chargebee/models/PaymentSchedule.java | 74 +++++ .../models/PaymentScheduleEstimate.java | 4 + .../models/PaymentScheduleScheme.java | 27 ++ .../com/chargebee/models/PaymentSource.java | 68 +++- .../chargebee/models/PricingPageSession.java | 6 + .../chargebee/models/PromotionalGrant.java | 12 + .../chargebee/models/QuotedSubscription.java | 4 + src/main/java/com/chargebee/models/Ramp.java | 27 ++ .../com/chargebee/models/Subscription.java | 38 +++ .../models/ThirdPartyPaymentMethod.java | 4 + .../com/chargebee/models/Transaction.java | 19 ++ .../chargebee/models/enums/EnabledEvents.java | 14 + .../chargebee/models/enums/EntityType.java | 3 +- .../com/chargebee/models/enums/EventType.java | 14 + .../com/chargebee/models/enums/Gateway.java | 1 + .../chargebee/models/enums/GatewayName.java | 1 + .../chargebee/models/enums/PaymentMethod.java | 17 +- .../models/enums/PaymentMethodType.java | 13 + .../com/chargebee/models/enums/Status.java | 10 +- .../chargebee/models/enums/Taxability.java | 1 + .../java/com/chargebee/models/enums/Type.java | 13 + 48 files changed, 2264 insertions(+), 43 deletions(-) create mode 100644 src/main/java/com/chargebee/models/AppliedBusinessRule.java create mode 100644 src/main/java/com/chargebee/models/AppliedRule.java create mode 100644 src/main/java/com/chargebee/models/ApplyRule.java create mode 100644 src/main/java/com/chargebee/models/BusinessRule.java create mode 100644 src/main/java/com/chargebee/models/BusinessRuleset.java create mode 100644 src/main/java/com/chargebee/models/BusinessRulesetRule.java create mode 100644 src/main/java/com/chargebee/models/CustomDataSchema.java create mode 100644 src/main/java/com/chargebee/models/Dispute.java create mode 100644 src/main/java/com/chargebee/models/EmailLog.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 08f4517a3..862bc5381 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,193 @@ +### v3.54.0 (2026-09-24) +* * * +### New Resources: +- [`AppliedBusinessRule`](https://apidocs.chargebee.com/docs/api/applied_business_rules) has been added. +- [`AppliedRule`](https://apidocs.chargebee.com/docs/api/applied_rules) has been added. +- [`ApplyRule`](https://apidocs.chargebee.com/docs/api/apply_rules) has been added. +- [`BusinessRule`](https://apidocs.chargebee.com/docs/api/business_rules) has been added. +- [`BusinessRuleset`](https://apidocs.chargebee.com/docs/api/business_rulesets) has been added. +- [`BusinessRulesetRule`](https://apidocs.chargebee.com/docs/api/business_ruleset_rules) has been added. +- [`CustomDataSchema`](https://apidocs.chargebee.com/docs/api/custom_data_schemas) has been added. +- [`Dispute`](https://apidocs.chargebee.com/docs/api/disputes) has been added. +- [`EmailLog`](https://apidocs.chargebee.com/docs/api/email_logs) has been added. + + +### New Actions: +- [`send_credit_note_email`](https://apidocs.chargebee.com/docs/api/credit_notes/send-credit-note-email) has been added to [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes). +- [`send_payment_request_email`](https://apidocs.chargebee.com/docs/api/customers/send-payment-request-email) has been added to [`Customer`](https://apidocs.chargebee.com/docs/api/customers). +- [`list_e-invoices`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`retrieve_an_e-invoice`](https://apidocs.chargebee.com/docs/api/einvoices/retrieve-an-e-invoice) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`send_invoice_email`](https://apidocs.chargebee.com/docs/api/invoices/send-invoice-email) has been added to [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices). +- [`list_payment_schedules`](https://apidocs.chargebee.com/docs/api/payment_schedules/list-payment-schedules) has been added to [`PaymentSchedule`](https://apidocs.chargebee.com/docs/api/payment_schedules). +- [`list_payment_schedule_schemes`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes/list-payment-schedule-schemes) has been added to [`PaymentScheduleScheme`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes). + + +### New Attributes: +- [`brand_id`](https://apidocs.chargebee.com/docs/api/credit_notes/credit-note-object#brand_id) has been added to [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/customers/customer-object#brand_id) has been added to [`Customer`](https://apidocs.chargebee.com/docs/api/customers). +- [`entity_type`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#entity_type) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`entity_id`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#entity_id) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`created_at`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#created_at) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`resource_version`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#resource_version) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`updated_at`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#updated_at) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`deleted`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#deleted) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`business_entity_id`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#business_entity_id) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`artifacts`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#artifacts) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`site_id`](https://apidocs.chargebee.com/docs/api/events/event-object#site_id) has been added to [`Event`](https://apidocs.chargebee.com/docs/api/events). +- [`provisioned_block_balance`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#provisioned_block_balance) has been added to [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks). +- [`overdraft_block_balance`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#overdraft_block_balance) has been added to [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/hosted-page-object#brand_id) has been added to [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/invoices/invoice-object#brand_id) has been added to [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#brand_id) has been added to [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- [`reference_transactions`](https://apidocs.chargebee.com/docs/api/payment_schedules/payment-schedule-object#reference_transactions) has been added to [`PaymentSchedule`](https://apidocs.chargebee.com/docs/api/payment_schedules). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/payment_sources/payment-source-object#brand_id) has been added to [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`network_transaction_reference`](https://apidocs.chargebee.com/docs/api/payment_sources/payment-source-object#network_transaction_reference) has been added to [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`billing_configuration`](https://apidocs.chargebee.com/docs/api/ramps/ramp-object#billing_configuration) has been added to [`Ramp`](https://apidocs.chargebee.com/docs/api/ramps). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/subscriptions/subscription-object#brand_id) has been added to [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). +- [`network_transaction_reference`](https://apidocs.chargebee.com/docs/api/third_party_payment_methods/third-party-payment-method-object#network_transaction_reference) has been added to [`ThirdPartyPaymentMethod`](https://apidocs.chargebee.com/docs/api/third_party_payment_methods). +- [`network_transaction_details`](https://apidocs.chargebee.com/docs/api/transactions/transaction-object#network_transaction_details) has been added to [`Transaction`](https://apidocs.chargebee.com/docs/api/transactions). + + +### New Parameters: +- [`limit`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices#limit) has been added as query parameter to [`list_e-invoices`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices) in [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`offset`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices#offset) has been added as query parameter to [`list_e-invoices`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices) in [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`id`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices#id) has been added as query parameter to [`list_e-invoices`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices) in [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`reference_id`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices#reference_id) has been added as query parameter to [`list_e-invoices`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices) in [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`updated_at`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices#updated_at) has been added as query parameter to [`list_e-invoices`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices) in [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`sort_by`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices#sort_by) has been added as query parameter to [`list_e-invoices`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices) in [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`invoice_id`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices#invoice_id) has been added as query parameter to [`list_e-invoices`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices) in [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`credit_note_id`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices#credit_note_id) has been added as query parameter to [`list_e-invoices`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices) in [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- [`limit`](https://apidocs.chargebee.com/docs/api/payment_schedules/list-payment-schedules#limit) has been added as query parameter to [`list_payment_schedules`](https://apidocs.chargebee.com/docs/api/payment_schedules/list-payment-schedules) in [`PaymentSchedule`](https://apidocs.chargebee.com/docs/api/payment_schedules). +- [`offset`](https://apidocs.chargebee.com/docs/api/payment_schedules/list-payment-schedules#offset) has been added as query parameter to [`list_payment_schedules`](https://apidocs.chargebee.com/docs/api/payment_schedules/list-payment-schedules) in [`PaymentSchedule`](https://apidocs.chargebee.com/docs/api/payment_schedules). +- [`invoice_id`](https://apidocs.chargebee.com/docs/api/payment_schedules/list-payment-schedules#invoice_id) has been added as query parameter to [`list_payment_schedules`](https://apidocs.chargebee.com/docs/api/payment_schedules/list-payment-schedules) in [`PaymentSchedule`](https://apidocs.chargebee.com/docs/api/payment_schedules). +- [`id`](https://apidocs.chargebee.com/docs/api/payment_schedules/list-payment-schedules#id) has been added as query parameter to [`list_payment_schedules`](https://apidocs.chargebee.com/docs/api/payment_schedules/list-payment-schedules) in [`PaymentSchedule`](https://apidocs.chargebee.com/docs/api/payment_schedules). +- [`updated_at`](https://apidocs.chargebee.com/docs/api/payment_schedules/list-payment-schedules#updated_at) has been added as query parameter to [`list_payment_schedules`](https://apidocs.chargebee.com/docs/api/payment_schedules/list-payment-schedules) in [`PaymentSchedule`](https://apidocs.chargebee.com/docs/api/payment_schedules). +- [`limit`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes/list-payment-schedule-schemes#limit) has been added as query parameter to [`list_payment_schedule_schemes`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes/list-payment-schedule-schemes) in [`PaymentScheduleScheme`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes). +- [`offset`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes/list-payment-schedule-schemes#offset) has been added as query parameter to [`list_payment_schedule_schemes`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes/list-payment-schedule-schemes) in [`PaymentScheduleScheme`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes). +- [`id`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes/list-payment-schedule-schemes#id) has been added as query parameter to [`list_payment_schedule_schemes`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes/list-payment-schedule-schemes) in [`PaymentScheduleScheme`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes). +- [`updated_at`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes/list-payment-schedule-schemes#updated_at) has been added as query parameter to [`list_payment_schedule_schemes`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes/list-payment-schedule-schemes) in [`PaymentScheduleScheme`](https://apidocs.chargebee.com/docs/api/payment_schedule_schemes). +- [`line_items.is_partial_tax_applied`](https://apidocs.chargebee.com/docs/api/credit_notes/import-credit-note#line_items_is_partial_tax_applied) has been added as request body parameter to [`import_credit_note`](https://apidocs.chargebee.com/docs/api/credit_notes/import-credit-note) in [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes). +- [`line_items.taxable_amount`](https://apidocs.chargebee.com/docs/api/credit_notes/import-credit-note#line_items_taxable_amount) has been added as request body parameter to [`import_credit_note`](https://apidocs.chargebee.com/docs/api/credit_notes/import-credit-note) in [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/customers/create-a-customer#brand_id) has been added as request body parameter to [`create_a_customer`](https://apidocs.chargebee.com/docs/api/customers/create-a-customer) in [`Customer`](https://apidocs.chargebee.com/docs/api/customers). +- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/estimates/estimate-for-creating-a-customer-and-subscription#subscription_items_description) has been added as request body parameter to [`estimate_for_creating_a_customer_and_subscription`](https://apidocs.chargebee.com/docs/api/estimates/estimate-for-creating-a-customer-and-subscription) in [`Estimate`](https://apidocs.chargebee.com/docs/api/estimates). +- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/estimates/estimate-for-updating-a-subscription#subscription_items_description) has been added as request body parameter to [`estimate_for_updating_a_subscription`](https://apidocs.chargebee.com/docs/api/estimates/estimate-for-updating-a-subscription) in [`Estimate`](https://apidocs.chargebee.com/docs/api/estimates). +- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/estimates/estimate-for-creating-a-subscription#subscription_items_description) has been added as request body parameter to [`estimate_for_creating_a_subscription`](https://apidocs.chargebee.com/docs/api/estimates/estimate-for-creating-a-subscription) in [`Estimate`](https://apidocs.chargebee.com/docs/api/estimates). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/checkout-charge-items-and-one-time-charges#brand_id) has been added as request body parameter to [`checkout_charge-items_and_one-time_charges`](https://apidocs.chargebee.com/docs/api/hosted_pages/checkout-charge-items-and-one-time-charges) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/extend-subscription#brand_id) has been added as request body parameter to [`extend_subscription`](https://apidocs.chargebee.com/docs/api/hosted_pages/extend-subscription) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/checkout-gift-subscription-for-items#brand_id) has been added as request body parameter to [`checkout_gift_subscription_for_items`](https://apidocs.chargebee.com/docs/api/hosted_pages/checkout-gift-subscription-for-items) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/collect-now#brand_id) has been added as request body parameter to [`collect_now`](https://apidocs.chargebee.com/docs/api/hosted_pages/collect-now) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/accept-a-quote#brand_id) has been added as request body parameter to [`accept_a_quote`](https://apidocs.chargebee.com/docs/api/hosted_pages/accept-a-quote) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/create-checkout-for-a-new-subscription#brand_id) has been added as request body parameter to [`create_checkout_for_a_new_subscription`](https://apidocs.chargebee.com/docs/api/hosted_pages/create-checkout-for-a-new-subscription) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/claim-a-gift-subscription#brand_id) has been added as request body parameter to [`claim_a_gift_subscription`](https://apidocs.chargebee.com/docs/api/hosted_pages/claim-a-gift-subscription) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/create-checkout-to-update-a-subscription#brand_id) has been added as request body parameter to [`create_checkout_to_update_a_subscription`](https://apidocs.chargebee.com/docs/api/hosted_pages/create-checkout-to-update-a-subscription) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/create-a-pre-cancel-hosted-page#brand_id) 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). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/manage-payment-sources#brand_id) has been added as request body parameter to [`manage_payment_sources`](https://apidocs.chargebee.com/docs/api/hosted_pages/manage-payment-sources) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages). +- [`line_items.is_partial_tax_applied`](https://apidocs.chargebee.com/docs/api/invoices/import-invoice#line_items_is_partial_tax_applied) has been added as request body parameter to [`import_invoice`](https://apidocs.chargebee.com/docs/api/invoices/import-invoice) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices). +- [`line_items.taxable_amount`](https://apidocs.chargebee.com/docs/api/invoices/import-invoice#line_items_taxable_amount) has been added as request body parameter to [`import_invoice`](https://apidocs.chargebee.com/docs/api/invoices/import-invoice) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices). +- [`id`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate#id) has been added as request body parameter to [`allocate`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate) in [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations). +- [`effective_from`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate#effective_from) has been added as request body parameter to [`allocate`](https://apidocs.chargebee.com/docs/api/ledger_operations/allocate) in [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent#brand_id) 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). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/payment_sources/create-using-permanent-token#brand_id) has been added as request body parameter to [`create_using_permanent_token`](https://apidocs.chargebee.com/docs/api/payment_sources/create-using-permanent-token) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/payment_sources/create-a-card-payment-source#brand_id) has been added as request body parameter to [`create_a_card_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/create-a-card-payment-source) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/payment_sources/create-using-payment-intent#brand_id) has been added as request body parameter to [`create_using_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_sources/create-using-payment-intent) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/payment_sources/create-a-voucher-payment-method#brand_id) has been added as request body parameter to [`create_a_voucher_payment_method`](https://apidocs.chargebee.com/docs/api/payment_sources/create-a-voucher-payment-method) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/payment_sources/create-using-gateway-temporary-token#brand_id) has been added as request body parameter to [`create_using_gateway_temporary_token`](https://apidocs.chargebee.com/docs/api/payment_sources/create-using-gateway-temporary-token) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`network_transaction_reference`](https://apidocs.chargebee.com/docs/api/payment_sources/update-a-card-payment-source#network_transaction_reference) has been added as request body parameter to [`update_a_card_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/update-a-card-payment-source) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/payment_sources/create-using-chargebee-token#brand_id) has been added as request body parameter to [`create_using_chargebee_token`](https://apidocs.chargebee.com/docs/api/payment_sources/create-using-chargebee-token) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/payment_sources/create-a-bank-account-payment-source#brand_id) has been added as request body parameter to [`create_a_bank_account_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/create-a-bank-account-payment-source) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-new-subscription#brand_id) has been added as request body parameter to [`create_pricing_page_for_new_subscription`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-new-subscription) in [`PricingPageSession`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions). +- [`id`](https://apidocs.chargebee.com/docs/api/promotional_grants/create-promotional-grant#id) has been added as request body parameter to [`create_promotional_grant`](https://apidocs.chargebee.com/docs/api/promotional_grants/create-promotional-grant) in [`PromotionalGrant`](https://apidocs.chargebee.com/docs/api/promotional_grants). +- [`effective_from`](https://apidocs.chargebee.com/docs/api/promotional_grants/create-promotional-grant#effective_from) has been added as request body parameter to [`create_promotional_grant`](https://apidocs.chargebee.com/docs/api/promotional_grants/create-promotional-grant) in [`PromotionalGrant`](https://apidocs.chargebee.com/docs/api/promotional_grants). +- [`billing_configuration`](https://apidocs.chargebee.com/docs/api/ramps/create-a-ramp#billing_configuration) has been added as request body parameter to [`create_a_ramp`](https://apidocs.chargebee.com/docs/api/ramps/create-a-ramp) in [`Ramp`](https://apidocs.chargebee.com/docs/api/ramps). +- [`billing_configuration`](https://apidocs.chargebee.com/docs/api/ramps/update-a-subscription-ramp#billing_configuration) has been added as request body parameter to [`update_a_subscription_ramp`](https://apidocs.chargebee.com/docs/api/ramps/update-a-subscription-ramp) in [`Ramp`](https://apidocs.chargebee.com/docs/api/ramps). +- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/subscriptions/update-subscription-for-items#subscription_items_description) has been added as request body parameter to [`update_subscription_for_items`](https://apidocs.chargebee.com/docs/api/subscriptions/update-subscription-for-items) in [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/subscriptions/create-a-subscription#brand_id) has been added as request body parameter to [`create_a_subscription`](https://apidocs.chargebee.com/docs/api/subscriptions/create-a-subscription) in [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/subscriptions/create-subscription-for-customer#brand_id) has been added as request body parameter to [`create_subscription_for_customer`](https://apidocs.chargebee.com/docs/api/subscriptions/create-subscription-for-customer) in [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). +- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/subscriptions/import-subscription-for-items#subscription_items_description) has been added as request body parameter to [`import_subscription_for_items`](https://apidocs.chargebee.com/docs/api/subscriptions/import-subscription-for-items) in [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). +- [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/subscriptions/create-subscription-for-items#subscription_items_description) has been added as request body parameter to [`create_subscription_for_items`](https://apidocs.chargebee.com/docs/api/subscriptions/create-subscription-for-items) in [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). +- [`brand_id`](https://apidocs.chargebee.com/docs/api/subscriptions/create-subscription-for-items#brand_id) has been added as request body parameter to [`create_subscription_for_items`](https://apidocs.chargebee.com/docs/api/subscriptions/create-subscription-for-items) in [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). + + +### New Events: +- [`business_rule_deleted`](https://apidocs.chargebee.com/docs/api/events/webhook/business_rule_deleted) has been added. +- [`business_rules_applied`](https://apidocs.chargebee.com/docs/api/events/webhook/business_rules_applied) has been added. +- [`business_ruleset_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/business_ruleset_updated) has been added. +- [`business_rule_created`](https://apidocs.chargebee.com/docs/api/events/webhook/business_rule_created) has been added. +- [`einvoice_created`](https://apidocs.chargebee.com/docs/api/events/webhook/einvoice_created) has been added. +- [`business_ruleset_deactivated`](https://apidocs.chargebee.com/docs/api/events/webhook/business_ruleset_deactivated) has been added. +- [`business_ruleset_deleted`](https://apidocs.chargebee.com/docs/api/events/webhook/business_ruleset_deleted) has been added. +- [`business_ruleset_created`](https://apidocs.chargebee.com/docs/api/events/webhook/business_ruleset_created) has been added. +- [`business_ruleset_activated`](https://apidocs.chargebee.com/docs/api/events/webhook/business_ruleset_activated) has been added. +- [`business_rule_deactivated`](https://apidocs.chargebee.com/docs/api/events/webhook/business_rule_deactivated) has been added. +- [`einvoice_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/einvoice_updated) has been added. +- [`business_rule_released`](https://apidocs.chargebee.com/docs/api/events/webhook/business_rule_released) has been added. +- [`business_rule_activated`](https://apidocs.chargebee.com/docs/api/events/webhook/business_rule_activated) has been added. +- [`business_rule_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/business_rule_updated) has been added. + + +### New Enums: +- `business_ruleset` and `price_ramp` have been added as new values enum `EntityType`. +- `einvoice_created`, `einvoice_updated`, `business_rule_created`, `business_rule_updated`, `business_rule_activated`, `business_rule_deactivated`, `business_rule_deleted`, `business_rule_released`, `business_rules_applied`, `business_ruleset_created`, `business_ruleset_updated`, `business_ruleset_activated`, `business_ruleset_deactivated`, and `business_ruleset_deleted` have been added as new values enum `EventType`. +- `payu` has been added as a new value enum `Gateway`. +- `payu` has been added as a new value enum `GatewayName`. +- `blik`, `fpx`, `wero`, `p24`, `ovo`, `momo`, `mercado_pago`, `nequi`, `nupay`, `picpay`, `thai_qr`, `affirm_pay`, and `rakuten_pay` have been added as new values enum `PaymentMethod`. +- `ovo`, `momo`, `mercado_pago`, `nequi`, `nupay`, `picpay`, `thai_qr`, `blik`, `fpx`, `wero`, `p24`, `affirm_pay`, and `rakuten_pay` have been added as new values enum `PaymentMethodType`. +- `rescheduled`, `succeeded`, `failed`, `deferred`, `delivered`, `opened`, `bounced`, and `dropped` have been added as new values enum `Status`. +- `zero_rated` has been added as a new value enum `Taxability`. +- `ovo`, `momo`, `mercado_pago`, `nequi`, `nupay`, `picpay`, `thai_qr`, `blik`, `fpx`, `wero`, `p24`, `affirm_pay`, and `rakuten_pay` have been added as new values enum `Type`. +- `cpq_quote` has been added as a new value to enum attribute [`entity_type`](https://apidocs.chargebee.com/docs/api/applied_business_rules/applied-business-rule-object#entity_type) in [`AppliedBusinessRule`](https://apidocs.chargebee.com/docs/api/applied_business_rules). +- `stop_on_first_true`, `stop_on_first_false`, `execute_all`, and `execute_all_true` have been added as new values to enum attribute [`execute_mode`](https://apidocs.chargebee.com/docs/api/business_rulesets/business-ruleset-object#execute_mode) in [`BusinessRuleset`](https://apidocs.chargebee.com/docs/api/business_rulesets). +- `active` and `archived` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/custom_data_schemas/custom-data-schema-object#status) in [`CustomDataSchema`](https://apidocs.chargebee.com/docs/api/custom_data_schemas). +- `initiated`, `funds_withdrawn`, `in_review`, `cancelled`, `lost`, and `won` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/disputes/dispute-object#status) in [`Dispute`](https://apidocs.chargebee.com/docs/api/disputes). +- `chargeback` and `inquiry` have been added as new values to enum attribute [`type`](https://apidocs.chargebee.com/docs/api/disputes/dispute-object#type) in [`Dispute`](https://apidocs.chargebee.com/docs/api/disputes). +- `invoice` and `credit_note` have been added as new values to enum attribute [`entity_type`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#entity_type) in [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- `overdraft_settlement` has been added as a new value to enum attribute [`type`](https://apidocs.chargebee.com/docs/api/ledger_operations/ledger-operation-object#type) in [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations). +- `subscription_not_found_in_source` has been added as a new value to enum attribute [`expiration_reason`](https://apidocs.chargebee.com/docs/api/omnichannel_subscription_items/omnichannel-subscription-item-object#expiration_reason) in [`OmnichannelSubscriptionItem`](https://apidocs.chargebee.com/docs/api/omnichannel_subscription_items). +- `ovo`, `momo`, `mercado_pago`, `nequi`, `nupay`, `picpay`, `thai_qr`, `blik`, `fpx`, `wero`, `p24`, `affirm_pay`, and `rakuten_pay` have been added as new values to enum attribute [`payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `ovo`, `momo`, `mercado_pago`, `nequi`, `nupay`, `picpay`, `thai_qr`, `blik`, `fpx`, `wero`, `p24`, `affirm_pay`, and `rakuten_pay` have been added as new values to enum attribute [`active_payment_attempt.payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#active_payment_attempt_payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `true` and `false` have been added as new values to enum query parameter `draft.is` in [`list_business_rules`](https://apidocs.chargebee.com/docs/api/business_rules/list-business-rules) of [`BusinessRule`](https://apidocs.chargebee.com/docs/api/business_rules). +- `true` and `false` have been added as new values to enum query parameter `active.is` in [`list_business_rules`](https://apidocs.chargebee.com/docs/api/business_rules/list-business-rules) of [`BusinessRule`](https://apidocs.chargebee.com/docs/api/business_rules). +- `stop_on_first_true`, `stop_on_first_false`, `execute_all`, and `execute_all_true` have been added as new values to enum request body parameter `execute_mode` in [`update_a_business_ruleset`](https://apidocs.chargebee.com/docs/api/business_rulesets/update-a-business-ruleset) of [`BusinessRuleset`](https://apidocs.chargebee.com/docs/api/business_rulesets). +- `true` and `false` have been added as new values to enum query parameter `active.is` in [`list_rules_in_a_business_ruleset`](https://apidocs.chargebee.com/docs/api/business_rulesets/list-rules-in-a-business-ruleset) of [`BusinessRuleset`](https://apidocs.chargebee.com/docs/api/business_rulesets). +- `true` and `false` have been added as new values to enum query parameter `active.is` in [`list_business_rulesets`](https://apidocs.chargebee.com/docs/api/business_rulesets/list-business-rulesets) of [`BusinessRuleset`](https://apidocs.chargebee.com/docs/api/business_rulesets). +- `stop_on_first_true`, `stop_on_first_false`, `execute_all`, and `execute_all_true` have been added as new values to enum request body parameter `execute_mode` in [`create_a_business_ruleset`](https://apidocs.chargebee.com/docs/api/business_rulesets/create-a-business-ruleset) of [`BusinessRuleset`](https://apidocs.chargebee.com/docs/api/business_rulesets). +- `dankort` has been added as a new value to enum request body parameter `preferred_scheme` in [`update_card_for_a_customer`](https://apidocs.chargebee.com/docs/api/cards/update-card-for-a-customer) of [`Card`](https://apidocs.chargebee.com/docs/api/cards). +- `dankort` has been added as a new value to enum request body parameter `card.preferred_scheme` in [`create_a_customer`](https://apidocs.chargebee.com/docs/api/customers/create-a-customer) of [`Customer`](https://apidocs.chargebee.com/docs/api/customers). +- `dankort` has been added as a new value to enum request body parameter `card.preferred_scheme` in [`collect_payment_for_customer`](https://apidocs.chargebee.com/docs/api/customers/collect-payment-for-customer) of [`Customer`](https://apidocs.chargebee.com/docs/api/customers). +- `initiated`, `in_review`, `lost`, `funds_withdrawn`, `won`, and `cancelled` have been added as new values to enum query parameter `status.is` in [`list_disputes`](https://apidocs.chargebee.com/docs/api/disputes/list-disputes) of [`Dispute`](https://apidocs.chargebee.com/docs/api/disputes). +- `initiated`, `in_review`, `lost`, `funds_withdrawn`, `won`, and `cancelled` have been added as new values to enum query parameter `status.is_not` in [`list_disputes`](https://apidocs.chargebee.com/docs/api/disputes/list-disputes) of [`Dispute`](https://apidocs.chargebee.com/docs/api/disputes). +- `initiated`, `in_review`, `lost`, `funds_withdrawn`, `won`, and `cancelled` have been added as new values to enum query parameter `status.in` in [`list_disputes`](https://apidocs.chargebee.com/docs/api/disputes/list-disputes) of [`Dispute`](https://apidocs.chargebee.com/docs/api/disputes). +- `initiated`, `in_review`, `lost`, `funds_withdrawn`, `won`, and `cancelled` have been added as new values to enum query parameter `status.not_in` in [`list_disputes`](https://apidocs.chargebee.com/docs/api/disputes/list-disputes) of [`Dispute`](https://apidocs.chargebee.com/docs/api/disputes). +- `inquiry` and `chargeback` have been added as new values to enum query parameter `type.is` in [`list_disputes`](https://apidocs.chargebee.com/docs/api/disputes/list-disputes) of [`Dispute`](https://apidocs.chargebee.com/docs/api/disputes). +- `inquiry` and `chargeback` have been added as new values to enum query parameter `type.is_not` in [`list_disputes`](https://apidocs.chargebee.com/docs/api/disputes/list-disputes) of [`Dispute`](https://apidocs.chargebee.com/docs/api/disputes). +- `inquiry` and `chargeback` have been added as new values to enum query parameter `type.in` in [`list_disputes`](https://apidocs.chargebee.com/docs/api/disputes/list-disputes) of [`Dispute`](https://apidocs.chargebee.com/docs/api/disputes). +- `inquiry` and `chargeback` have been added as new values to enum query parameter `type.not_in` in [`list_disputes`](https://apidocs.chargebee.com/docs/api/disputes/list-disputes) of [`Dispute`](https://apidocs.chargebee.com/docs/api/disputes). +- `updated_at` has been added as a new value to enum query parameter `sort_by.asc` in [`list_e-invoices`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices) of [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- `updated_at` has been added as a new value to enum query parameter `sort_by.desc` in [`list_e-invoices`](https://apidocs.chargebee.com/docs/api/einvoices/list-e-invoices) of [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices). +- `dankort` has been added as a new value to enum request body parameter `card.preferred_scheme` in [`create_an_invoice`](https://apidocs.chargebee.com/docs/api/invoices/create-an-invoice) of [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices). +- `dankort` has been added as a new value to enum request body parameter `card.preferred_scheme` in [`create_invoice_for_items_and_one-time_charges`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges) of [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices). +- `overdraft_settlement` has been added as a new value to enum query parameter `type.is` in [`list_ledger_operations`](https://apidocs.chargebee.com/docs/api/ledger_operations/list-ledger-operations) of [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations). +- `overdraft_settlement` has been added as a new value to enum query parameter `type.in` in [`list_ledger_operations`](https://apidocs.chargebee.com/docs/api/ledger_operations/list-ledger-operations) of [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations). +- `ovo`, `momo`, `mercado_pago`, `nequi`, `nupay`, `picpay`, `thai_qr`, `blik`, `fpx`, `wero`, `p24`, `affirm_pay`, and `rakuten_pay` have been added as new values to enum request body parameter `payment_method_type` in [`update_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/update-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `ovo`, `momo`, `mercado_pago`, `nequi`, `nupay`, `picpay`, `thai_qr`, `blik`, `fpx`, `wero`, `p24`, `affirm_pay`, and `rakuten_pay` have been added as new values to enum request body parameter `payment_method_type` in [`create_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents). +- `dankort` has been added as a new value to enum request body parameter `card.preferred_scheme` in [`create_a_card_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/create-a-card-payment-source) of [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources). +- `dankort` has been added as a new value to enum request body parameter `card.preferred_scheme` in [`update_subscription_for_items`](https://apidocs.chargebee.com/docs/api/subscriptions/update-subscription-for-items) of [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). +- `dankort` has been added as a new value to enum request body parameter `card.preferred_scheme` in [`create_a_subscription`](https://apidocs.chargebee.com/docs/api/subscriptions/create-a-subscription) of [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). +- `dankort` has been added as a new value to enum request body parameter `card.preferred_scheme` in [`update_a_subscription`](https://apidocs.chargebee.com/docs/api/subscriptions/update-a-subscription) of [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). +- `dankort` has been added as a new value to enum request body parameter `card.preferred_scheme` in [`import_a_subscription`](https://apidocs.chargebee.com/docs/api/subscriptions/import-a-subscription) of [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions). + + +### Deprecated Attributes: +- [`granted_amount`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#granted_amount) has been deprecated in [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks). +- [`balance`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#balance) has been deprecated in [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks). +- [`hold_amount`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#hold_amount) has been deprecated in [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks). +- [`used_amount`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#used_amount) has been deprecated in [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks). +- [`expired_amount`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#expired_amount) has been deprecated in [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks). +- [`rolled_over_amount`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#rolled_over_amount) has been deprecated in [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks). +- [`voided_amount`](https://apidocs.chargebee.com/docs/api/grant_blocks/grant-block-object#voided_amount) has been deprecated in [`GrantBlock`](https://apidocs.chargebee.com/docs/api/grant_blocks). + + + ### v3.53.0 (2026-08-19) * * * ### New Resources: diff --git a/VERSION b/VERSION index c5c343b57..738c1a72d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.53.0 +3.54.0 diff --git a/pom.xml b/pom.xml index d78b9e228..1003dacb9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.chargebee chargebee-java - 3.53.0 + 3.54.0 jar diff --git a/src/main/java/com/chargebee/Environment.java b/src/main/java/com/chargebee/Environment.java index 32cffee4e..3c67f3a1d 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.53.0"; + public static final String LIBRARY_VERSION = "3.54.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 88096b7a8..bf4f81e7c 100644 --- a/src/main/java/com/chargebee/internal/ResultBase.java +++ b/src/main/java/com/chargebee/internal/ResultBase.java @@ -88,6 +88,10 @@ public PromotionalCredit promotionalCredit() { return (PromotionalCredit)get("promotional_credit"); } + public EmailLog emailLog() { + return (EmailLog)get("email_log"); + } + public Invoice invoice() { return (Invoice)get("invoice"); } @@ -100,10 +104,6 @@ public PaymentSchedule paymentSchedule() { return (PaymentSchedule)get("payment_schedule"); } - public Einvoice einvoice() { - return (Einvoice)get("einvoice"); - } - public TaxWithheld taxWithheld() { return (TaxWithheld)get("tax_withheld"); } @@ -128,6 +128,10 @@ public Transaction transaction() { return (Transaction)get("transaction"); } + public Dispute dispute() { + return (Dispute)get("dispute"); + } + public HostedPage hostedPage() { return (HostedPage)get("hosted_page"); } @@ -396,10 +400,18 @@ public MeteredFeature meteredFeature() { return (MeteredFeature)get("metered_feature"); } + public CustomDataSchema customDataSchema() { + return (CustomDataSchema)get("custom_data_schema"); + } + public UsageFile usageFile() { return (UsageFile)get("usage_file"); } + public Einvoice einvoice() { + return (Einvoice)get("einvoice"); + } + public PersonalizedOffer personalizedOffer() { return (PersonalizedOffer)get("personalized_offer"); } @@ -420,6 +432,30 @@ public WebhookEndpoint webhookEndpoint() { return (WebhookEndpoint)get("webhook_endpoint"); } + public BusinessRule businessRule() { + return (BusinessRule)get("business_rule"); + } + + public ApplyRule applyRule() { + return (ApplyRule)get("apply_rule"); + } + + public AppliedRule appliedRule() { + return (AppliedRule)get("applied_rule"); + } + + public AppliedBusinessRule appliedBusinessRule() { + return (AppliedBusinessRule)get("applied_business_rule"); + } + + public BusinessRuleset businessRuleset() { + return (BusinessRuleset)get("business_ruleset"); + } + + public BusinessRulesetRule businessRulesetRule() { + return (BusinessRulesetRule)get("business_ruleset_rule"); + } + public UsageSummary usageSummary() { return (UsageSummary)get("usage_summary"); } @@ -480,6 +516,10 @@ public List hierarchies() { return (List) getList("hierarchies", "hierarchy"); } + public List emailLogs() { + return (List) getList("email_logs", "email_log"); + } + public List invoices() { return (List) getList("invoices", "invoice"); } diff --git a/src/main/java/com/chargebee/models/AppliedBusinessRule.java b/src/main/java/com/chargebee/models/AppliedBusinessRule.java new file mode 100644 index 000000000..5db3af922 --- /dev/null +++ b/src/main/java/com/chargebee/models/AppliedBusinessRule.java @@ -0,0 +1,72 @@ +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 AppliedBusinessRule extends Resource { + + public enum EntityType { + CPQ_QUOTE, + _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 AppliedBusinessRule(String jsonStr) { + super(jsonStr); + } + + public AppliedBusinessRule(JSONObject jsonObj) { + super(jsonObj); + } + + // Fields + //======= + + public String handle() { + return reqString("handle"); + } + + public EntityType entityType() { + return reqEnum("entity_type", EntityType.class); + } + + public Long entityId() { + return reqLong("entity_id"); + } + + public Integer entityVersion() { + return optInteger("entity_version"); + } + + public String ruleId() { + return reqString("rule_id"); + } + + public Integer version() { + return reqInteger("version"); + } + + public Timestamp createdAt() { + return reqTimestamp("created_at"); + } + + public Timestamp modifiedAt() { + return reqTimestamp("modified_at"); + } + + // Operations + //=========== + + +} diff --git a/src/main/java/com/chargebee/models/AppliedRule.java b/src/main/java/com/chargebee/models/AppliedRule.java new file mode 100644 index 000000000..aa45856ec --- /dev/null +++ b/src/main/java/com/chargebee/models/AppliedRule.java @@ -0,0 +1,62 @@ +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 AppliedRule extends Resource { + + //Constructors + //============ + + public AppliedRule(String jsonStr) { + super(jsonStr); + } + + public AppliedRule(JSONObject jsonObj) { + super(jsonObj); + } + + // Fields + //======= + + public String id() { + return reqString("id"); + } + + public Integer version() { + return optInteger("version"); + } + + public String name() { + return optString("name"); + } + + public String description() { + return optString("description"); + } + + public Boolean evaluationResult() { + return optBoolean("evaluation_result"); + } + + public String errorMessage() { + return optString("error_message"); + } + + public JSONArray actions() { + return optJSONArray("actions"); + } + + // Operations + //=========== + + +} diff --git a/src/main/java/com/chargebee/models/ApplyRule.java b/src/main/java/com/chargebee/models/ApplyRule.java new file mode 100644 index 000000000..1314ee4fc --- /dev/null +++ b/src/main/java/com/chargebee/models/ApplyRule.java @@ -0,0 +1,97 @@ +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 ApplyRule extends Resource { + + public static class Rule extends Resource { + public Rule(JSONObject jsonObj) { + super(jsonObj); + } + + public String id() { + return reqString("id"); + } + + public Integer version() { + return optInteger("version"); + } + + public String name() { + return optString("name"); + } + + public String description() { + return optString("description"); + } + + public Boolean evaluationResult() { + return optBoolean("evaluation_result"); + } + + public String errorMessage() { + return optString("error_message"); + } + + public JSONArray actions() { + return optJSONArray("actions"); + } + + } + + //Constructors + //============ + + public ApplyRule(String jsonStr) { + super(jsonStr); + } + + public ApplyRule(JSONObject jsonObj) { + super(jsonObj); + } + + // Fields + //======= + + public Boolean evaluate() { + return optBoolean("evaluate"); + } + + public String ruleId() { + return optString("rule_id"); + } + + public String rulesetId() { + return optString("ruleset_id"); + } + + public Boolean skipFailedRules() { + return optBoolean("skip_failed_rules"); + } + + public JSONObject structuredExpression() { + return optJSONObject("structured_expression"); + } + + public JSONObject context() { + return optJSONObject("context"); + } + + public List rules() { + return optList("rules", ApplyRule.Rule.class); + } + + // Operations + //=========== + + +} diff --git a/src/main/java/com/chargebee/models/BusinessRule.java b/src/main/java/com/chargebee/models/BusinessRule.java new file mode 100644 index 000000000..72ccf880c --- /dev/null +++ b/src/main/java/com/chargebee/models/BusinessRule.java @@ -0,0 +1,312 @@ +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 BusinessRule extends Resource { + + //Constructors + //============ + + public BusinessRule(String jsonStr) { + super(jsonStr); + } + + public BusinessRule(JSONObject jsonObj) { + super(jsonObj); + } + + // Fields + //======= + + public String id() { + return reqString("id"); + } + + public String name() { + return reqString("name"); + } + + public String description() { + return optString("description"); + } + + public Integer latestVersion() { + return optInteger("latest_version"); + } + + public Boolean active() { + return reqBoolean("active"); + } + + public Timestamp releasedAt() { + return optTimestamp("released_at"); + } + + public String releasedBy() { + return optString("released_by"); + } + + public Timestamp updatedAt() { + return reqTimestamp("updated_at"); + } + + public String updatedBy() { + return optString("updated_by"); + } + + public String createdBy() { + return reqString("created_by"); + } + + public Timestamp createdAt() { + return reqTimestamp("created_at"); + } + + public JSONArray tags() { + return optJSONArray("tags"); + } + + public JSONObject structuredExpression() { + return optJSONObject("structured_expression"); + } + + public JSONArray actionsOnSuccess() { + return optJSONArray("actions_on_success"); + } + + public Long resourceVersion() { + return optLong("resource_version"); + } + + // Operations + //=========== + + public static CreateRequest create() { + String uri = uri("business_rules"); + return new CreateRequest(Method.POST, uri); + } + + public static Request delete(String id) { + String uri = uri("business_rules", nullCheck(id), "delete"); + return new Request(Method.POST, uri); + } + + public static UpdateDraftRequest updateDraft(String id) { + String uri = uri("business_rules", nullCheck(id), "draft"); + return new UpdateDraftRequest(Method.POST, uri); + } + + public static BusinessRuleListRequest list() { + String uri = uri("business_rules"); + return new BusinessRuleListRequest(uri); + } + + public static Request retrieve(String id) { + String uri = uri("business_rules", nullCheck(id)); + return new Request(Method.GET, uri); + } + + public static Request retrieveDraft(String id) { + String uri = uri("business_rules", nullCheck(id), "draft"); + return new Request(Method.GET, uri); + } + + public static Request deleteDraft(String id) { + String uri = uri("business_rules", nullCheck(id), "delete_draft"); + return new Request(Method.POST, uri); + } + + public static Request activateRule(String id) { + String uri = uri("business_rules", nullCheck(id), "activate"); + return new Request(Method.POST, uri); + } + + public static Request deactivateRule(String id) { + String uri = uri("business_rules", nullCheck(id), "deactivate"); + return new Request(Method.POST, uri); + } + + public static Request releaseRule(String id) { + String uri = uri("business_rules", nullCheck(id), "release"); + return new Request(Method.POST, uri); + } + + public static ApplyRulesRequest applyRules() { + String uri = uri("business_rules", "apply_rules"); + return new ApplyRulesRequest(Method.POST, uri); + } + + + // Operation Request Classes + //========================== + + public static class CreateRequest extends Request { + + private CreateRequest(Method httpMeth, String uri) { + super(httpMeth, uri); + } + + public CreateRequest id(String id) { + params.addOpt("id", id); + return this; + } + + + public CreateRequest name(String name) { + params.add("name", name); + return this; + } + + + public CreateRequest description(String description) { + params.addOpt("description", description); + return this; + } + + + public CreateRequest tags(JSONArray tags) { + params.addOpt("tags", tags); + return this; + } + + + public CreateRequest structuredExpression(JSONObject structuredExpression) { + params.add("structured_expression", structuredExpression); + return this; + } + + + public CreateRequest actionsOnSuccess(JSONArray actionsOnSuccess) { + params.addOpt("actions_on_success", actionsOnSuccess); + return this; + } + + + @Override + public Params params() { + return params; + } + } + + public static class UpdateDraftRequest extends Request { + + private UpdateDraftRequest(Method httpMeth, String uri) { + super(httpMeth, uri); + } + + public UpdateDraftRequest name(String name) { + params.add("name", name); + return this; + } + + + public UpdateDraftRequest description(String description) { + params.addOpt("description", description); + return this; + } + + + public UpdateDraftRequest tags(JSONArray tags) { + params.addOpt("tags", tags); + return this; + } + + + public UpdateDraftRequest structuredExpression(JSONObject structuredExpression) { + params.add("structured_expression", structuredExpression); + return this; + } + + + public UpdateDraftRequest actionsOnSuccess(JSONArray actionsOnSuccess) { + params.addOpt("actions_on_success", actionsOnSuccess); + return this; + } + + + @Override + public Params params() { + return params; + } + } + + public static class BusinessRuleListRequest extends ListRequest { + + private BusinessRuleListRequest(String uri) { + super(uri); + } + + public BooleanFilter draft() { + return new BooleanFilter("draft",this); + } + + + public BooleanFilter active() { + return new BooleanFilter("active",this); + } + + + @Override + public Params params() { + return params; + } + } + + public static class ApplyRulesRequest extends Request { + + private ApplyRulesRequest(Method httpMeth, String uri) { + super(httpMeth, uri); + } + + public ApplyRulesRequest evaluate(Boolean evaluate) { + params.addOpt("evaluate", evaluate); + return this; + } + + + public ApplyRulesRequest ruleId(String ruleId) { + params.addOpt("rule_id", ruleId); + return this; + } + + + public ApplyRulesRequest rulesetId(String rulesetId) { + params.addOpt("ruleset_id", rulesetId); + return this; + } + + + public ApplyRulesRequest skipFailedRules(Boolean skipFailedRules) { + params.addOpt("skip_failed_rules", skipFailedRules); + return this; + } + + + public ApplyRulesRequest structuredExpression(JSONObject structuredExpression) { + params.addOpt("structured_expression", structuredExpression); + return this; + } + + + public ApplyRulesRequest context(JSONObject context) { + params.addOpt("context", context); + return this; + } + + + @Override + public Params params() { + return params; + } + } + +} diff --git a/src/main/java/com/chargebee/models/BusinessRuleset.java b/src/main/java/com/chargebee/models/BusinessRuleset.java new file mode 100644 index 000000000..e2325c7b1 --- /dev/null +++ b/src/main/java/com/chargebee/models/BusinessRuleset.java @@ -0,0 +1,288 @@ +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 BusinessRuleset extends Resource { + + public enum ExecuteMode { + STOP_ON_FIRST_TRUE, + STOP_ON_FIRST_FALSE, + EXECUTE_ALL, + EXECUTE_ALL_TRUE, + _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 BusinessRuleset(String jsonStr) { + super(jsonStr); + } + + public BusinessRuleset(JSONObject jsonObj) { + super(jsonObj); + } + + // Fields + //======= + + public String id() { + return reqString("id"); + } + + public String name() { + return reqString("name"); + } + + public String description() { + return optString("description"); + } + + public Boolean active() { + return reqBoolean("active"); + } + + public ExecuteMode executeMode() { + return reqEnum("execute_mode", ExecuteMode.class); + } + + public Timestamp updatedAt() { + return reqTimestamp("updated_at"); + } + + public String updatedBy() { + return optString("updated_by"); + } + + public String createdBy() { + return reqString("created_by"); + } + + public Timestamp createdAt() { + return reqTimestamp("created_at"); + } + + public JSONArray rules() { + return optJSONArray("rules"); + } + + public Long resourceVersion() { + return optLong("resource_version"); + } + + // Operations + //=========== + + public static CreateRequest create() { + String uri = uri("business_rulesets"); + return new CreateRequest(Method.POST, uri); + } + + public static UpdateRequest update(String id) { + String uri = uri("business_rulesets", nullCheck(id)); + return new UpdateRequest(Method.POST, uri); + } + + public static Request delete(String id) { + String uri = uri("business_rulesets", nullCheck(id), "delete"); + return new Request(Method.POST, uri); + } + + public static Request activate(String id) { + String uri = uri("business_rulesets", nullCheck(id), "activate"); + return new Request(Method.POST, uri); + } + + public static Request deactivate(String id) { + String uri = uri("business_rulesets", nullCheck(id), "deactivate"); + return new Request(Method.POST, uri); + } + + public static AddRulesRequest addRules(String id) { + String uri = uri("business_rulesets", nullCheck(id), "add_rules"); + return new AddRulesRequest(Method.POST, uri); + } + + public static RemoveRulesRequest removeRules(String id) { + String uri = uri("business_rulesets", nullCheck(id), "remove_rules"); + return new RemoveRulesRequest(Method.POST, uri); + } + + public static ListRulesRequest listRules(String id) { + String uri = uri("business_rulesets", nullCheck(id), "rules"); + return new ListRulesRequest(Method.GET, uri); + } + + public static BusinessRulesetListRequest list() { + String uri = uri("business_rulesets"); + return new BusinessRulesetListRequest(uri); + } + + public static Request retrieve(String id) { + String uri = uri("business_rulesets", nullCheck(id)); + return new Request(Method.GET, uri); + } + + + // Operation Request Classes + //========================== + + public static class CreateRequest extends Request { + + private CreateRequest(Method httpMeth, String uri) { + super(httpMeth, uri); + } + + public CreateRequest id(String id) { + params.addOpt("id", id); + return this; + } + + + public CreateRequest name(String name) { + params.add("name", name); + return this; + } + + + public CreateRequest description(String description) { + params.addOpt("description", description); + return this; + } + + + public CreateRequest executeMode(BusinessRuleset.ExecuteMode executeMode) { + params.addOpt("execute_mode", executeMode); + return this; + } + + + public CreateRequest rules(JSONArray rules) { + params.addOpt("rules", rules); + return this; + } + + + @Override + public Params params() { + return params; + } + } + + public static class UpdateRequest extends Request { + + private UpdateRequest(Method httpMeth, String uri) { + super(httpMeth, uri); + } + + public UpdateRequest name(String name) { + params.add("name", name); + return this; + } + + + public UpdateRequest description(String description) { + params.addOpt("description", description); + return this; + } + + + public UpdateRequest executeMode(BusinessRuleset.ExecuteMode executeMode) { + params.addOpt("execute_mode", executeMode); + return this; + } + + + public UpdateRequest rules(JSONArray rules) { + params.addOpt("rules", rules); + return this; + } + + + @Override + public Params params() { + return params; + } + } + + public static class AddRulesRequest extends Request { + + private AddRulesRequest(Method httpMeth, String uri) { + super(httpMeth, uri); + } + + public AddRulesRequest rules(JSONArray rules) { + params.addOpt("rules", rules); + return this; + } + + + @Override + public Params params() { + return params; + } + } + + public static class RemoveRulesRequest extends Request { + + private RemoveRulesRequest(Method httpMeth, String uri) { + super(httpMeth, uri); + } + + public RemoveRulesRequest rules(JSONArray rules) { + params.addOpt("rules", rules); + return this; + } + + + @Override + public Params params() { + return params; + } + } + + public static class ListRulesRequest extends Request { + + private ListRulesRequest(Method httpMeth, String uri) { + super(httpMeth, uri); + } + + public BooleanFilter active() { + return new BooleanFilter("active",this); + } + + + @Override + public Params params() { + return params; + } + } + + public static class BusinessRulesetListRequest extends ListRequest { + + private BusinessRulesetListRequest(String uri) { + super(uri); + } + + public BooleanFilter active() { + return new BooleanFilter("active",this); + } + + + @Override + public Params params() { + return params; + } + } + +} diff --git a/src/main/java/com/chargebee/models/BusinessRulesetRule.java b/src/main/java/com/chargebee/models/BusinessRulesetRule.java new file mode 100644 index 000000000..1ff5eef3b --- /dev/null +++ b/src/main/java/com/chargebee/models/BusinessRulesetRule.java @@ -0,0 +1,42 @@ +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 BusinessRulesetRule extends Resource { + + //Constructors + //============ + + public BusinessRulesetRule(String jsonStr) { + super(jsonStr); + } + + public BusinessRulesetRule(JSONObject jsonObj) { + super(jsonObj); + } + + // Fields + //======= + + public String ruleId() { + return reqString("rule_id"); + } + + public Integer priority() { + return reqInteger("priority"); + } + + // Operations + //=========== + + +} diff --git a/src/main/java/com/chargebee/models/Card.java b/src/main/java/com/chargebee/models/Card.java index 9eea013dc..d50ffd03f 100644 --- a/src/main/java/com/chargebee/models/Card.java +++ b/src/main/java/com/chargebee/models/Card.java @@ -76,6 +76,7 @@ public enum PreferredScheme { CARTES_BANCAIRES, MASTERCARD, VISA, + DANKORT, _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 */ } diff --git a/src/main/java/com/chargebee/models/CreditNote.java b/src/main/java/com/chargebee/models/CreditNote.java index d70aa58b7..4ee80e3e7 100644 --- a/src/main/java/com/chargebee/models/CreditNote.java +++ b/src/main/java/com/chargebee/models/CreditNote.java @@ -939,6 +939,10 @@ public String businessEntityId() { return optString("business_entity_id"); } + public String brandId() { + return optString("brand_id"); + } + public CreditNote.ShippingAddress shippingAddress() { return optSubResource("shipping_address", CreditNote.ShippingAddress.class); } @@ -993,6 +997,11 @@ public static VoidCreditNoteRequest voidCreditNote(String id) { return new VoidCreditNoteRequest(Method.POST, uri); } + public static Request sendEmail(String id) { + String uri = uri("credit_notes", nullCheck(id), "send_email"); + return new Request(Method.POST, uri); + } + public static CreditNoteListRequest list() { String uri = uri("credit_notes"); return new CreditNoteListRequest(uri); @@ -1736,6 +1745,14 @@ public ImportCreditNoteRequest lineItemTax10Amount(int index, Long lineItemTax10 params.addOpt("line_items[tax10_amount][" + index + "]", lineItemTax10Amount); return this; } + public ImportCreditNoteRequest lineItemIsPartialTaxApplied(int index, Boolean lineItemIsPartialTaxApplied) { + params.addOpt("line_items[is_partial_tax_applied][" + index + "]", lineItemIsPartialTaxApplied); + return this; + } + public ImportCreditNoteRequest lineItemTaxableAmount(int index, Long lineItemTaxableAmount) { + params.addOpt("line_items[taxable_amount][" + index + "]", lineItemTaxableAmount); + return this; + } public ImportCreditNoteRequest lineItemProrationMode(int index, CreditNote.LineItem.ProrationMode lineItemProrationMode) { params.addOpt("line_items[proration_mode][" + index + "]", lineItemProrationMode); return this; diff --git a/src/main/java/com/chargebee/models/CustomDataSchema.java b/src/main/java/com/chargebee/models/CustomDataSchema.java new file mode 100644 index 000000000..21c2c97c5 --- /dev/null +++ b/src/main/java/com/chargebee/models/CustomDataSchema.java @@ -0,0 +1,73 @@ +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 CustomDataSchema extends Resource { + + public enum Status { + ACTIVE, + ARCHIVED, + _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 CustomDataSchema(String jsonStr) { + super(jsonStr); + } + + public CustomDataSchema(JSONObject jsonObj) { + super(jsonObj); + } + + // Fields + //======= + + public String id() { + return reqString("id"); + } + + public String displayName() { + return reqString("display_name"); + } + + public EntityType entityType() { + return reqEnum("entity_type", EntityType.class); + } + + public String schemaDefinition() { + return reqString("schema_definition"); + } + + public Status status() { + return reqEnum("status", Status.class); + } + + public Timestamp createdAt() { + return reqTimestamp("created_at"); + } + + public Timestamp modifiedAt() { + return reqTimestamp("modified_at"); + } + + public Timestamp updatedAt() { + return optTimestamp("updated_at"); + } + + // Operations + //=========== + + +} diff --git a/src/main/java/com/chargebee/models/Customer.java b/src/main/java/com/chargebee/models/Customer.java index cc0a86bd3..fbbc6082a 100644 --- a/src/main/java/com/chargebee/models/Customer.java +++ b/src/main/java/com/chargebee/models/Customer.java @@ -209,7 +209,7 @@ public Boolean sendBillingEmail() { public static class PaymentMethod extends Resource { 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,ELECTRONIC_PAYMENT_STANDARD,KBC_PAYMENT_BUTTON,PAY_BY_BANK,TRUSTLY,STABLECOIN,KAKAO_PAY,NAVER_PAY,REVOLUT_PAY,CASH_APP_PAY,TWINT,GO_PAY,GRAB_PAY,PAY_CO,AFTER_PAY,SWISH,PAYME,PIX,KLARNA,ALIPAY_HK,PAYPAY,GCASH,SOUTH_KOREAN_CARDS,PAYNOW,BIZUM,PROMPTPAY,DANA,TOUCH_N_GO,TAMARA,QPAY, + 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,KAKAO_PAY,NAVER_PAY,REVOLUT_PAY,CASH_APP_PAY,TWINT,GO_PAY,GRAB_PAY,PAY_CO,AFTER_PAY,SWISH,PAYME,PIX,KLARNA,ALIPAY_HK,PAYPAY,GCASH,SOUTH_KOREAN_CARDS,PAYNOW,BIZUM,PROMPTPAY,DANA,TOUCH_N_GO,TAMARA,QPAY,OVO,MOMO,MERCADO_PAGO,NEQUI,NUPAY,PICPAY,THAI_QR,BLIK,FPX,WERO,P24,AFFIRM_PAY,RAKUTEN_PAY, _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 */ } @@ -700,6 +700,10 @@ public String entityIdentifierStandard() { return optString("entity_identifier_standard"); } + public String brandId() { + return optString("brand_id"); + } + // Operations //=========== @@ -786,6 +790,11 @@ public static CollectPaymentRequest collectPayment(String id) { return new CollectPaymentRequest(Method.POST, uri); } + public static Request sendPaymentRequest(String id) { + String uri = uri("customers", nullCheck(id), "send_payment_request"); + return new Request(Method.POST, uri); + } + public static DeleteRequest delete(String id) { String uri = uri("customers", nullCheck(id), "delete"); return new DeleteRequest(Method.POST, uri); @@ -1038,6 +1047,12 @@ public CreateRequest businessEntityId(String businessEntityId) { } + public CreateRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + @Deprecated public CreateRequest createdFromIp(String createdFromIp) { params.addOpt("created_from_ip", createdFromIp); diff --git a/src/main/java/com/chargebee/models/Dispute.java b/src/main/java/com/chargebee/models/Dispute.java new file mode 100644 index 000000000..fc0b48582 --- /dev/null +++ b/src/main/java/com/chargebee/models/Dispute.java @@ -0,0 +1,168 @@ +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 Dispute extends Resource { + + public enum Status { + INITIATED, + FUNDS_WITHDRAWN, + IN_REVIEW, + CANCELLED, + LOST, + WON, + _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 */ + } + + public enum Type { + CHARGEBACK, + INQUIRY, + _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 Dispute(String jsonStr) { + super(jsonStr); + } + + public Dispute(JSONObject jsonObj) { + super(jsonObj); + } + + // Fields + //======= + + public String id() { + return reqString("id"); + } + + public String customerId() { + return reqString("customer_id"); + } + + public String transactionId() { + return reqString("transaction_id"); + } + + public String gatewayAccountId() { + return reqString("gateway_account_id"); + } + + public String idAtGateway() { + return optString("id_at_gateway"); + } + + public String currencyCode() { + return reqString("currency_code"); + } + + public Long amount() { + return reqLong("amount"); + } + + public String reason() { + return optString("reason"); + } + + public Status status() { + return reqEnum("status", Status.class); + } + + public Type type() { + return reqEnum("type", Type.class); + } + + public Boolean isPartialDispute() { + return reqBoolean("is_partial_dispute"); + } + + public Timestamp createdAt() { + return reqTimestamp("created_at"); + } + + public Long resourceVersion() { + return optLong("resource_version"); + } + + public Timestamp updatedAt() { + return optTimestamp("updated_at"); + } + + // Operations + //=========== + + public static Request retrieve(String id) { + String uri = uri("disputes", nullCheck(id)); + return new Request(Method.GET, uri); + } + + public static DisputeListRequest list() { + String uri = uri("disputes"); + return new DisputeListRequest(uri); + } + + + // Operation Request Classes + //========================== + + public static class DisputeListRequest extends ListRequest { + + private DisputeListRequest(String uri) { + super(uri); + } + + public StringFilter id() { + return new StringFilter("id",this).supportsMultiOperators(true); + } + + + public EnumFilter status() { + return new EnumFilter("status",this); + } + + + public EnumFilter type() { + return new EnumFilter("type",this); + } + + + public StringFilter customerId() { + return new StringFilter("customer_id",this).supportsMultiOperators(true); + } + + + public StringFilter transactionId() { + return new StringFilter("transaction_id",this).supportsMultiOperators(true); + } + + + public NumberFilter amount() { + return new NumberFilter("amount",this); + } + + + public TimestampFilter createdAt() { + return new TimestampFilter("created_at",this); + } + + + @Override + public Params params() { + return params; + } + } + +} diff --git a/src/main/java/com/chargebee/models/Einvoice.java b/src/main/java/com/chargebee/models/Einvoice.java index c7259ad68..55f089518 100644 --- a/src/main/java/com/chargebee/models/Einvoice.java +++ b/src/main/java/com/chargebee/models/Einvoice.java @@ -13,6 +13,13 @@ public class Einvoice extends Resource { + public enum EntityType { + INVOICE, + CREDIT_NOTE, + _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 */ + } + public enum Status { SCHEDULED, SKIPPED, @@ -31,6 +38,61 @@ public enum Status { java-client version incompatibility. We suggest you to upgrade to the latest version */ } + public static class Artifact extends Resource { + public enum Direction { + OUTBOUND,INBOUND, + _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 */ + } + + public enum Status { + SCHEDULED,SKIPPED,IN_PROGRESS,SUCCESS,FAILED,REGISTERED, + _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 */ + } + + public Artifact(JSONObject jsonObj) { + super(jsonObj); + } + + public String artifactType() { + return reqString("artifact_type"); + } + + public Direction direction() { + return reqEnum("direction", Direction.class); + } + + public Status status() { + return reqEnum("status", Status.class); + } + + public String code() { + return optString("code"); + } + + public String externalArtifactId() { + return optString("external_artifact_id"); + } + + public Timestamp createdAt() { + return reqTimestamp("created_at"); + } + + public Long resourceVersion() { + return optLong("resource_version"); + } + + public Timestamp updatedAt() { + return optTimestamp("updated_at"); + } + + public Boolean deleted() { + return reqBoolean("deleted"); + } + + } + //Constructors //============ @@ -49,6 +111,14 @@ public String id() { return reqString("id"); } + public EntityType entityType() { + return reqEnum("entity_type", EntityType.class); + } + + public String entityId() { + return reqString("entity_id"); + } + public String referenceId() { return optString("reference_id"); } @@ -65,12 +135,94 @@ public String message() { return optString("message"); } + public Timestamp createdAt() { + return reqTimestamp("created_at"); + } + + public Long resourceVersion() { + return optLong("resource_version"); + } + + public Timestamp updatedAt() { + return optTimestamp("updated_at"); + } + + public Boolean deleted() { + return reqBoolean("deleted"); + } + public JSONArray providerReferences() { return optJSONArray("provider_references"); } + public String businessEntityId() { + return optString("business_entity_id"); + } + + public List artifacts() { + return optList("artifacts", Einvoice.Artifact.class); + } + // Operations //=========== + public static Request retrieve(String id) { + String uri = uri("einvoices", nullCheck(id)); + return new Request(Method.GET, uri); + } + + public static EinvoiceListEinvoicesRequest listEinvoices() { + String uri = uri("einvoices"); + return new EinvoiceListEinvoicesRequest(uri); + } + + + // Operation Request Classes + //========================== + + public static class EinvoiceListEinvoicesRequest extends ListRequest { + + private EinvoiceListEinvoicesRequest(String uri) { + super(uri); + } + + public StringFilter id() { + return new StringFilter("id",this).supportsMultiOperators(true); + } + + + public StringFilter referenceId() { + return new StringFilter("reference_id",this).supportsMultiOperators(true); + } + + + public TimestampFilter updatedAt() { + return new TimestampFilter("updated_at",this); + } + + + public EinvoiceListEinvoicesRequest sortByUpdatedAt(SortOrder order) { + params.addOpt("sort_by["+order.name().toLowerCase()+"]","updated_at"); + return this; + } + + + public EinvoiceListEinvoicesRequest invoiceId(String invoiceId) { + params.addOpt("invoice_id", invoiceId); + return this; + } + + + public EinvoiceListEinvoicesRequest creditNoteId(String creditNoteId) { + params.addOpt("credit_note_id", creditNoteId); + return this; + } + + + @Override + public Params params() { + return params; + } + } } diff --git a/src/main/java/com/chargebee/models/EmailLog.java b/src/main/java/com/chargebee/models/EmailLog.java new file mode 100644 index 000000000..30ce48716 --- /dev/null +++ b/src/main/java/com/chargebee/models/EmailLog.java @@ -0,0 +1,117 @@ +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 EmailLog extends Resource { + + //Constructors + //============ + + public EmailLog(String jsonStr) { + super(jsonStr); + } + + public EmailLog(JSONObject jsonObj) { + super(jsonObj); + } + + // Fields + //======= + + public String id() { + return reqString("id"); + } + + public String templateName() { + return optString("template_name"); + } + + public String fromAddress() { + return reqString("from_address"); + } + + public String toAddress() { + return reqString("to_address"); + } + + public String subject() { + return reqString("subject"); + } + + public Status status() { + return reqEnum("status", Status.class); + } + + public Timestamp sentOn() { + return optTimestamp("sent_on"); + } + + public String customerId() { + return optString("customer_id"); + } + + public String siteId() { + return optString("site_id"); + } + + public String businessEntityId() { + return optString("business_entity_id"); + } + + public String brandId() { + return optString("brand_id"); + } + + public String errorMessage() { + return optString("error_message"); + } + + // Operations + //=========== + + public static EmailLogEmailLogsForCustomerRequest emailLogsForCustomer(String id) { + String uri = uri("customers", nullCheck(id), "email_logs"); + return new EmailLogEmailLogsForCustomerRequest(uri); + } + + + // Operation Request Classes + //========================== + + public static class EmailLogEmailLogsForCustomerRequest extends ListRequest { + + private EmailLogEmailLogsForCustomerRequest(String uri) { + super(uri); + } + + public TimestampFilter sentOn() { + return new TimestampFilter("sent_on",this); + } + + + public StringFilter businessEntityId() { + return new StringFilter("business_entity_id",this); + } + + + public StringFilter brandId() { + return new StringFilter("brand_id",this); + } + + + @Override + public Params params() { + return params; + } + } + +} diff --git a/src/main/java/com/chargebee/models/Estimate.java b/src/main/java/com/chargebee/models/Estimate.java index e5bd20458..20d91c27a 100644 --- a/src/main/java/com/chargebee/models/Estimate.java +++ b/src/main/java/com/chargebee/models/Estimate.java @@ -815,6 +815,10 @@ public CreateSubItemEstimateRequest subscriptionItemItemType(int index, com.char params.addOpt("subscription_items[item_type][" + index + "]", subscriptionItemItemType); return this; } + public CreateSubItemEstimateRequest subscriptionItemDescription(int index, String subscriptionItemDescription) { + params.addOpt("subscription_items[description][" + index + "]", subscriptionItemDescription); + return this; + } public CreateSubItemEstimateRequest discountApplyOn(int index, com.chargebee.models.enums.ApplyOn discountApplyOn) { params.addOpt("discounts[apply_on][" + index + "]", discountApplyOn); return this; @@ -1420,6 +1424,10 @@ public CreateSubItemForCustomerEstimateRequest subscriptionItemItemType(int inde params.addOpt("subscription_items[item_type][" + index + "]", subscriptionItemItemType); return this; } + public CreateSubItemForCustomerEstimateRequest subscriptionItemDescription(int index, String subscriptionItemDescription) { + params.addOpt("subscription_items[description][" + index + "]", subscriptionItemDescription); + return this; + } public CreateSubItemForCustomerEstimateRequest discountApplyOn(int index, com.chargebee.models.enums.ApplyOn discountApplyOn) { params.addOpt("discounts[apply_on][" + index + "]", discountApplyOn); return this; @@ -2215,6 +2223,10 @@ public UpdateSubscriptionForItemsRequest subscriptionItemItemType(int index, com params.addOpt("subscription_items[item_type][" + index + "]", subscriptionItemItemType); return this; } + public UpdateSubscriptionForItemsRequest subscriptionItemDescription(int index, String subscriptionItemDescription) { + params.addOpt("subscription_items[description][" + index + "]", subscriptionItemDescription); + return this; + } public UpdateSubscriptionForItemsRequest discountApplyOn(int index, com.chargebee.models.enums.ApplyOn discountApplyOn) { params.addOpt("discounts[apply_on][" + index + "]", discountApplyOn); return this; diff --git a/src/main/java/com/chargebee/models/Event.java b/src/main/java/com/chargebee/models/Event.java index d3e327b5b..16465c427 100644 --- a/src/main/java/com/chargebee/models/Event.java +++ b/src/main/java/com/chargebee/models/Event.java @@ -109,6 +109,10 @@ public EventType eventType() { return optEnum("event_type", EventType.class); } + public String siteId() { + return optString("site_id"); + } + public ApiVersion apiVersion() { return optEnum("api_version", ApiVersion.class); } diff --git a/src/main/java/com/chargebee/models/GrantBlock.java b/src/main/java/com/chargebee/models/GrantBlock.java index 38f789f29..64bd1d778 100644 --- a/src/main/java/com/chargebee/models/GrantBlock.java +++ b/src/main/java/com/chargebee/models/GrantBlock.java @@ -13,15 +13,15 @@ public class GrantBlock extends Resource { - public enum AccountType { - PROVISIONED, - OVERDRAFT, + public enum UnitType { + CREDIT_UNIT, _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 */ } - public enum UnitType { - CREDIT_UNIT, + public enum AccountType { + PROVISIONED, + OVERDRAFT, _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 */ } @@ -38,6 +38,72 @@ public enum GrantSource { java-client version incompatibility. We suggest you to upgrade to the latest version */ } + public static class ProvisionedBlockBalance extends Resource { + public ProvisionedBlockBalance(JSONObject jsonObj) { + super(jsonObj); + } + + public String grantedAmount() { + return optString("granted_amount"); + } + + public String totalBalance() { + return optString("total_balance"); + } + + public String usableBalance() { + return optString("usable_balance"); + } + + public String holdAmount() { + return optString("hold_amount"); + } + + public String usedAmount() { + return optString("used_amount"); + } + + public String expiredAmount() { + return optString("expired_amount"); + } + + public String rolledOverAmount() { + return optString("rolled_over_amount"); + } + + public String voidedAmount() { + return optString("voided_amount"); + } + + } + + public static class OverdraftBlockBalance extends Resource { + public OverdraftBlockBalance(JSONObject jsonObj) { + super(jsonObj); + } + + public Boolean isUnlimited() { + return reqBoolean("is_unlimited"); + } + + public String limit() { + return optString("limit"); + } + + public String totalBalance() { + return optString("total_balance"); + } + + public String usableBalance() { + return optString("usable_balance"); + } + + public String usedAmount() { + return optString("used_amount"); + } + + } + //Constructors //============ @@ -57,21 +123,22 @@ public String id() { } public String subscriptionId() { - return optString("subscription_id"); - } - - public AccountType accountType() { - return optEnum("account_type", AccountType.class); + return reqString("subscription_id"); } public String unitId() { - return optString("unit_id"); + return reqString("unit_id"); } public UnitType unitType() { - return optEnum("unit_type", UnitType.class); + return reqEnum("unit_type", UnitType.class); } + public AccountType accountType() { + return reqEnum("account_type", AccountType.class); + } + + @Deprecated public String grantedAmount() { return reqString("granted_amount"); } @@ -84,28 +151,34 @@ public Timestamp expiresAt() { return reqTimestamp("expires_at"); } + @Deprecated public String balance() { return reqString("balance"); } + @Deprecated public String holdAmount() { return reqString("hold_amount"); } + @Deprecated public String usedAmount() { return reqString("used_amount"); } + @Deprecated public String expiredAmount() { - return reqString("expired_amount"); + return optString("expired_amount"); } + @Deprecated public String rolledOverAmount() { - return reqString("rolled_over_amount"); + return optString("rolled_over_amount"); } + @Deprecated public String voidedAmount() { - return reqString("voided_amount"); + return optString("voided_amount"); } public String originGrantBlockId() { @@ -132,6 +205,14 @@ public Long resourceVersion() { return optLong("resource_version"); } + public GrantBlock.ProvisionedBlockBalance provisionedBlockBalance() { + return optSubResource("provisioned_block_balance", GrantBlock.ProvisionedBlockBalance.class); + } + + public GrantBlock.OverdraftBlockBalance overdraftBlockBalance() { + return optSubResource("overdraft_block_balance", GrantBlock.OverdraftBlockBalance.class); + } + public JSONObject metadata() { return optJSONObject("metadata"); } diff --git a/src/main/java/com/chargebee/models/HostedPage.java b/src/main/java/com/chargebee/models/HostedPage.java index 75c257323..c8712cc7c 100644 --- a/src/main/java/com/chargebee/models/HostedPage.java +++ b/src/main/java/com/chargebee/models/HostedPage.java @@ -124,6 +124,10 @@ public String businessEntityId() { return optString("business_entity_id"); } + public String brandId() { + return optString("brand_id"); + } + // Operations //=========== @@ -1067,6 +1071,12 @@ public CheckoutOneTimeForItemsRequest businessEntityId(String businessEntityId) } + public CheckoutOneTimeForItemsRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CheckoutOneTimeForItemsRequest layout(com.chargebee.models.enums.Layout layout) { params.addOpt("layout", layout); return this; @@ -1531,6 +1541,12 @@ public CheckoutNewForItemsRequest businessEntityId(String businessEntityId) { } + public CheckoutNewForItemsRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CheckoutNewForItemsRequest billingCycles(Integer billingCycles) { params.addOpt("billing_cycles", billingCycles); return this; @@ -2318,6 +2334,12 @@ public CheckoutExistingForItemsRequest layout(com.chargebee.models.enums.Layout } + public CheckoutExistingForItemsRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CheckoutExistingForItemsRequest mandatoryItemsToRemove(List mandatoryItemsToRemove) { params.addOpt("mandatory_items_to_remove", mandatoryItemsToRemove); return this; @@ -2834,6 +2856,12 @@ public ManagePaymentSourcesRequest businessEntityId(String businessEntityId) { } + public ManagePaymentSourcesRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public ManagePaymentSourcesRequest redirectUrl(String redirectUrl) { params.addOpt("redirect_url", redirectUrl); return this; @@ -2868,6 +2896,12 @@ private CollectNowRequest(Method httpMeth, String uri) { super(httpMeth, uri); } + public CollectNowRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CollectNowRequest redirectUrl(String redirectUrl) { params.addOpt("redirect_url", redirectUrl); return this; @@ -2914,6 +2948,12 @@ private AcceptQuoteRequest(Method httpMeth, String uri) { super(httpMeth, uri); } + public AcceptQuoteRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public AcceptQuoteRequest redirectUrl(String redirectUrl) { params.addOpt("redirect_url", redirectUrl); return this; @@ -2943,6 +2983,12 @@ private ExtendSubscriptionRequest(Method httpMeth, String uri) { super(httpMeth, uri); } + public ExtendSubscriptionRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public ExtendSubscriptionRequest expiry(Integer expiry) { params.addOpt("expiry", expiry); return this; @@ -3050,6 +3096,12 @@ public CheckoutGiftForItemsRequest businessEntityId(String businessEntityId) { } + public CheckoutGiftForItemsRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CheckoutGiftForItemsRequest redirectUrl(String redirectUrl) { params.addOpt("redirect_url", redirectUrl); return this; @@ -3131,6 +3183,12 @@ private ClaimGiftRequest(Method httpMeth, String uri) { super(httpMeth, uri); } + public ClaimGiftRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public ClaimGiftRequest redirectUrl(String redirectUrl) { params.addOpt("redirect_url", redirectUrl); return this; @@ -3209,6 +3267,12 @@ private PreCancelRequest(Method httpMeth, String uri) { super(httpMeth, uri); } + public PreCancelRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public PreCancelRequest passThruContent(String passThruContent) { params.addOpt("pass_thru_content", passThruContent); return this; diff --git a/src/main/java/com/chargebee/models/Invoice.java b/src/main/java/com/chargebee/models/Invoice.java index def37b336..674712614 100644 --- a/src/main/java/com/chargebee/models/Invoice.java +++ b/src/main/java/com/chargebee/models/Invoice.java @@ -1275,6 +1275,10 @@ public String businessEntityId() { return optString("business_entity_id"); } + public String brandId() { + return optString("brand_id"); + } + public Invoice.SiteDetailsAtCreation siteDetailsAtCreation() { return optSubResource("site_details_at_creation", Invoice.SiteDetailsAtCreation.class); } @@ -1460,6 +1464,11 @@ public static VoidBeforeCaptureRequest voidBeforeCapture(String id) { return new VoidBeforeCaptureRequest(Method.POST, uri); } + public static Request sendEmail(String id) { + String uri = uri("invoices", nullCheck(id), "send_email"); + return new Request(Method.POST, uri); + } + public static DeleteRequest delete(String id) { String uri = uri("invoices", nullCheck(id), "delete"); return new DeleteRequest(Method.POST, uri); @@ -3516,6 +3525,14 @@ public ImportInvoiceRequest lineItemTax10Amount(int index, Long lineItemTax10Amo params.addOpt("line_items[tax10_amount][" + index + "]", lineItemTax10Amount); return this; } + public ImportInvoiceRequest lineItemIsPartialTaxApplied(int index, Boolean lineItemIsPartialTaxApplied) { + params.addOpt("line_items[is_partial_tax_applied][" + index + "]", lineItemIsPartialTaxApplied); + return this; + } + public ImportInvoiceRequest lineItemTaxableAmount(int index, Long lineItemTaxableAmount) { + params.addOpt("line_items[taxable_amount][" + index + "]", lineItemTaxableAmount); + return this; + } public ImportInvoiceRequest lineItemProrationMode(int index, Invoice.LineItem.ProrationMode lineItemProrationMode) { params.addOpt("line_items[proration_mode][" + index + "]", lineItemProrationMode); return this; diff --git a/src/main/java/com/chargebee/models/LedgerEntry.java b/src/main/java/com/chargebee/models/LedgerEntry.java index 804a5676c..48c10af2a 100644 --- a/src/main/java/com/chargebee/models/LedgerEntry.java +++ b/src/main/java/com/chargebee/models/LedgerEntry.java @@ -13,15 +13,15 @@ public class LedgerEntry extends Resource { - public enum AccountType { - PROVISIONED, - OVERDRAFT, + public enum UnitType { + CREDIT_UNIT, _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 */ } - public enum UnitType { - CREDIT_UNIT, + public enum AccountType { + PROVISIONED, + OVERDRAFT, _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 */ } @@ -45,19 +45,19 @@ public String id() { } public String subscriptionId() { - return optString("subscription_id"); - } - - public AccountType accountType() { - return optEnum("account_type", AccountType.class); + return reqString("subscription_id"); } public String unitId() { - return optString("unit_id"); + return reqString("unit_id"); } public UnitType unitType() { - return optEnum("unit_type", UnitType.class); + return reqEnum("unit_type", UnitType.class); + } + + public AccountType accountType() { + return reqEnum("account_type", AccountType.class); } public String amount() { diff --git a/src/main/java/com/chargebee/models/LedgerOperation.java b/src/main/java/com/chargebee/models/LedgerOperation.java index 0e247e78c..89a80febe 100644 --- a/src/main/java/com/chargebee/models/LedgerOperation.java +++ b/src/main/java/com/chargebee/models/LedgerOperation.java @@ -29,6 +29,7 @@ public enum Type { VOID, ROLLOVER, ADJUSTMENT, + OVERDRAFT_SETTLEMENT, _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 */ } @@ -52,15 +53,15 @@ public String id() { } public String subscriptionId() { - return optString("subscription_id"); + return reqString("subscription_id"); } public String unitId() { - return optString("unit_id"); + return reqString("unit_id"); } public UnitType unitType() { - return optEnum("unit_type", UnitType.class); + return reqEnum("unit_type", UnitType.class); } public Type type() { @@ -393,12 +394,24 @@ public AllocateRequest unitId(String unitId) { } + public AllocateRequest id(String id) { + params.addOpt("id", id); + return this; + } + + public AllocateRequest amount(String amount) { params.add("amount", amount); return this; } + public AllocateRequest effectiveFrom(Timestamp effectiveFrom) { + params.addOpt("effective_from", effectiveFrom); + return this; + } + + public AllocateRequest expiresAt(Timestamp expiresAt) { params.add("expires_at", expiresAt); return this; diff --git a/src/main/java/com/chargebee/models/OmnichannelSubscriptionItem.java b/src/main/java/com/chargebee/models/OmnichannelSubscriptionItem.java index 49c7c5a78..c74ecf733 100644 --- a/src/main/java/com/chargebee/models/OmnichannelSubscriptionItem.java +++ b/src/main/java/com/chargebee/models/OmnichannelSubscriptionItem.java @@ -35,6 +35,7 @@ public enum ExpirationReason { BILLING_ERROR, PRODUCT_NOT_AVAILABLE, OTHER, + SUBSCRIPTION_NOT_FOUND_IN_SOURCE, _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 */ } diff --git a/src/main/java/com/chargebee/models/PaymentIntent.java b/src/main/java/com/chargebee/models/PaymentIntent.java index 902dcb711..d10b74516 100644 --- a/src/main/java/com/chargebee/models/PaymentIntent.java +++ b/src/main/java/com/chargebee/models/PaymentIntent.java @@ -76,6 +76,19 @@ public enum PaymentMethodType { TOUCH_N_GO, TAMARA, QPAY, + OVO, + MOMO, + MERCADO_PAGO, + NEQUI, + NUPAY, + PICPAY, + THAI_QR, + BLIK, + FPX, + WERO, + P24, + AFFIRM_PAY, + RAKUTEN_PAY, _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 */ } @@ -268,6 +281,10 @@ public String businessEntityId() { return optString("business_entity_id"); } + public String brandId() { + return optString("brand_id"); + } + // Operations //=========== @@ -302,6 +319,12 @@ public CreateRequest businessEntityId(String businessEntityId) { } + public CreateRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CreateRequest customerId(String customerId) { params.addOpt("customer_id", customerId); return this; diff --git a/src/main/java/com/chargebee/models/PaymentSchedule.java b/src/main/java/com/chargebee/models/PaymentSchedule.java index c333f3790..11b4cb1af 100644 --- a/src/main/java/com/chargebee/models/PaymentSchedule.java +++ b/src/main/java/com/chargebee/models/PaymentSchedule.java @@ -42,12 +42,47 @@ public Long amount() { return reqLong("amount"); } + public Long scheduledAmount() { + return reqLong("scheduled_amount"); + } + public Status status() { return reqEnum("status", Status.class); } } + public static class ReferenceTransaction extends Resource { + public ReferenceTransaction(JSONObject jsonObj) { + super(jsonObj); + } + + public String scheduleEntryId() { + return reqString("schedule_entry_id"); + } + + public Long appliedAmount() { + return optLong("applied_amount"); + } + + 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"); + } + + } + //Constructors //============ @@ -102,8 +137,47 @@ public List scheduleEntries() { return optList("schedule_entries", PaymentSchedule.ScheduleEntry.class); } + public List referenceTransactions() { + return optList("reference_transactions", PaymentSchedule.ReferenceTransaction.class); + } + // Operations //=========== + public static PaymentScheduleListRequest list() { + String uri = uri("payment_schedules"); + return new PaymentScheduleListRequest(uri); + } + + + // Operation Request Classes + //========================== + + public static class PaymentScheduleListRequest extends ListRequest { + + private PaymentScheduleListRequest(String uri) { + super(uri); + } + + public StringFilter invoiceId() { + return new StringFilter("invoice_id",this).supportsMultiOperators(true); + } + + + public StringFilter id() { + return new StringFilter("id",this).supportsMultiOperators(true); + } + + + public TimestampFilter updatedAt() { + return new TimestampFilter("updated_at",this); + } + + + @Override + public Params params() { + return params; + } + } } diff --git a/src/main/java/com/chargebee/models/PaymentScheduleEstimate.java b/src/main/java/com/chargebee/models/PaymentScheduleEstimate.java index 1cf3fa9db..cdd468638 100644 --- a/src/main/java/com/chargebee/models/PaymentScheduleEstimate.java +++ b/src/main/java/com/chargebee/models/PaymentScheduleEstimate.java @@ -42,6 +42,10 @@ public Long amount() { return reqLong("amount"); } + public Long scheduledAmount() { + return reqLong("scheduled_amount"); + } + public Status status() { return reqEnum("status", Status.class); } diff --git a/src/main/java/com/chargebee/models/PaymentScheduleScheme.java b/src/main/java/com/chargebee/models/PaymentScheduleScheme.java index ffea0fd50..619efe13a 100644 --- a/src/main/java/com/chargebee/models/PaymentScheduleScheme.java +++ b/src/main/java/com/chargebee/models/PaymentScheduleScheme.java @@ -105,6 +105,11 @@ public static Request retrieve(String id) { return new Request(Method.GET, uri); } + public static PaymentScheduleSchemeListRequest list() { + String uri = uri("payment_schedule_schemes"); + return new PaymentScheduleSchemeListRequest(uri); + } + public static Request delete(String id) { String uri = uri("payment_schedule_schemes", nullCheck(id), "delete"); return new Request(Method.POST, uri); @@ -158,4 +163,26 @@ public Params params() { } } + public static class PaymentScheduleSchemeListRequest extends ListRequest { + + private PaymentScheduleSchemeListRequest(String uri) { + super(uri); + } + + public StringFilter id() { + return new StringFilter("id",this).supportsMultiOperators(true); + } + + + public TimestampFilter updatedAt() { + return new TimestampFilter("updated_at",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 b45d216c4..db510690e 100644 --- a/src/main/java/com/chargebee/models/PaymentSource.java +++ b/src/main/java/com/chargebee/models/PaymentSource.java @@ -37,7 +37,7 @@ public enum FundingType { } public enum PreferredScheme { - CARTES_BANCAIRES,MASTERCARD,VISA, + CARTES_BANCAIRES,MASTERCARD,VISA,DANKORT, _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 */ } @@ -349,6 +349,17 @@ public Timestamp createdAt() { } + public static class NetworkTransactionReference extends Resource { + public NetworkTransactionReference(JSONObject jsonObj) { + super(jsonObj); + } + + public String originalNetworkTransactionId() { + return optString("original_network_transaction_id"); + } + + } + //Constructors //============ @@ -455,6 +466,10 @@ public JSONObject vaultToken() { return optJSONObject("vault_token"); } + public PaymentSource.NetworkTransactionReference networkTransactionReference() { + return optSubResource("network_transaction_reference", PaymentSource.NetworkTransactionReference.class); + } + public Boolean deleted() { return reqBoolean("deleted"); } @@ -463,6 +478,10 @@ public String businessEntityId() { return optString("business_entity_id"); } + public String brandId() { + return optString("brand_id"); + } + // Operations //=========== @@ -591,6 +610,12 @@ public CreateUsingTempTokenRequest issuingCountry(String issuingCountry) { } + public CreateUsingTempTokenRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CreateUsingTempTokenRequest replacePrimaryPaymentSource(Boolean replacePrimaryPaymentSource) { params.addOpt("replace_primary_payment_source", replacePrimaryPaymentSource); return this; @@ -621,6 +646,12 @@ public CreateUsingPermanentTokenRequest customerId(String customerId) { } + public CreateUsingPermanentTokenRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CreateUsingPermanentTokenRequest type(com.chargebee.models.enums.Type type) { params.add("type", type); return this; @@ -790,6 +821,12 @@ public CreateUsingTokenRequest customerId(String customerId) { } + public CreateUsingTokenRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CreateUsingTokenRequest replacePrimaryPaymentSource(Boolean replacePrimaryPaymentSource) { params.addOpt("replace_primary_payment_source", replacePrimaryPaymentSource); return this; @@ -820,6 +857,12 @@ public CreateUsingPaymentIntentRequest customerId(String customerId) { } + public CreateUsingPaymentIntentRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CreateUsingPaymentIntentRequest replacePrimaryPaymentSource(Boolean replacePrimaryPaymentSource) { params.addOpt("replace_primary_payment_source", replacePrimaryPaymentSource); return this; @@ -885,6 +928,12 @@ public CreateVoucherPaymentSourceRequest customerId(String customerId) { } + public CreateVoucherPaymentSourceRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CreateVoucherPaymentSourceRequest voucherPaymentSourceVoucherType(com.chargebee.models.enums.VoucherType voucherPaymentSourceVoucherType) { params.add("voucher_payment_source[voucher_type]", voucherPaymentSourceVoucherType); return this; @@ -923,6 +972,12 @@ public CreateCardRequest customerId(String customerId) { } + public CreateCardRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CreateCardRequest replacePrimaryPaymentSource(Boolean replacePrimaryPaymentSource) { params.addOpt("replace_primary_payment_source", replacePrimaryPaymentSource); return this; @@ -1027,6 +1082,12 @@ public CreateBankAccountRequest customerId(String customerId) { } + public CreateBankAccountRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CreateBankAccountRequest issuingCountry(String issuingCountry) { params.addOpt("issuing_country", issuingCountry); return this; @@ -1203,6 +1264,11 @@ public UpdateCardRequest cardAdditionalInformation(JSONObject cardAdditionalInfo return this; } + public UpdateCardRequest networkTransactionReferenceOriginalNetworkTransactionId(String networkTransactionReferenceOriginalNetworkTransactionId) { + params.addOpt("network_transaction_reference[original_network_transaction_id]", networkTransactionReferenceOriginalNetworkTransactionId); + return this; + } + @Override public Params params() { return params; diff --git a/src/main/java/com/chargebee/models/PricingPageSession.java b/src/main/java/com/chargebee/models/PricingPageSession.java index 21509c4e8..45381a0c6 100644 --- a/src/main/java/com/chargebee/models/PricingPageSession.java +++ b/src/main/java/com/chargebee/models/PricingPageSession.java @@ -78,6 +78,12 @@ public CreateForNewSubscriptionRequest businessEntityId(String businessEntityId) } + public CreateForNewSubscriptionRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CreateForNewSubscriptionRequest autoSelectLocalCurrency(Boolean autoSelectLocalCurrency) { params.addOpt("auto_select_local_currency", autoSelectLocalCurrency); return this; diff --git a/src/main/java/com/chargebee/models/PromotionalGrant.java b/src/main/java/com/chargebee/models/PromotionalGrant.java index 3e75eaf29..4f944e176 100644 --- a/src/main/java/com/chargebee/models/PromotionalGrant.java +++ b/src/main/java/com/chargebee/models/PromotionalGrant.java @@ -77,12 +77,24 @@ public PromotionalGrantsRequest unitId(String unitId) { } + public PromotionalGrantsRequest id(String id) { + params.addOpt("id", id); + return this; + } + + public PromotionalGrantsRequest amount(String amount) { params.add("amount", amount); return this; } + public PromotionalGrantsRequest effectiveFrom(Timestamp effectiveFrom) { + params.addOpt("effective_from", effectiveFrom); + return this; + } + + public PromotionalGrantsRequest expiresAt(Timestamp expiresAt) { params.add("expires_at", expiresAt); return this; diff --git a/src/main/java/com/chargebee/models/QuotedSubscription.java b/src/main/java/com/chargebee/models/QuotedSubscription.java index bb721fe10..3138d1c35 100644 --- a/src/main/java/com/chargebee/models/QuotedSubscription.java +++ b/src/main/java/com/chargebee/models/QuotedSubscription.java @@ -253,6 +253,10 @@ public UsageAccumulationResetFrequency usageAccumulationResetFrequency() { return optEnum("usage_accumulation_reset_frequency", UsageAccumulationResetFrequency.class); } + public String description() { + return optString("description"); + } + } public static class ItemTier extends Resource { diff --git a/src/main/java/com/chargebee/models/Ramp.java b/src/main/java/com/chargebee/models/Ramp.java index 1f2d0c945..ebd6d43ff 100644 --- a/src/main/java/com/chargebee/models/Ramp.java +++ b/src/main/java/com/chargebee/models/Ramp.java @@ -358,6 +358,17 @@ public ActionAtTermEnd actionAtTermEnd() { } + public static class BillingConfiguration extends Resource { + public BillingConfiguration(JSONObject jsonObj) { + super(jsonObj); + } + + public String poNumber() { + return optString("po_number"); + } + + } + public static class StatusTransitionReason extends Resource { public StatusTransitionReason(JSONObject jsonObj) { super(jsonObj); @@ -455,6 +466,10 @@ public Ramp.ContractTerm contractTerm() { return optSubResource("contract_term", Ramp.ContractTerm.class); } + public Ramp.BillingConfiguration billingConfiguration() { + return optSubResource("billing_configuration", Ramp.BillingConfiguration.class); + } + public Boolean deleted() { return reqBoolean("deleted"); } @@ -554,6 +569,12 @@ public CreateForSubscriptionRequest itemsToRemove(String... itemsToRemove) { return this; } + public CreateForSubscriptionRequest billingConfigurationPoNumber(String billingConfigurationPoNumber) { + params.addOpt("billing_configuration[po_number]", billingConfigurationPoNumber); + paramsV2.addOpt(new CompositeParameter("billing_configuration", "po_number"), billingConfigurationPoNumber); + return this; + } + public CreateForSubscriptionRequest contractTermActionAtTermEnd(ContractTerm.ActionAtTermEnd contractTermActionAtTermEnd) { params.addOpt("contract_term[action_at_term_end]", contractTermActionAtTermEnd); paramsV2.addOpt(new CompositeParameter("contract_term", "action_at_term_end"), contractTermActionAtTermEnd); @@ -841,6 +862,12 @@ public UpdateRequest itemsToRemove(String... itemsToRemove) { return this; } + public UpdateRequest billingConfigurationPoNumber(String billingConfigurationPoNumber) { + params.addOpt("billing_configuration[po_number]", billingConfigurationPoNumber); + paramsV2.addOpt(new CompositeParameter("billing_configuration", "po_number"), billingConfigurationPoNumber); + return this; + } + public UpdateRequest contractTermActionAtTermEnd(ContractTerm.ActionAtTermEnd contractTermActionAtTermEnd) { params.addOpt("contract_term[action_at_term_end]", contractTermActionAtTermEnd); paramsV2.addOpt(new CompositeParameter("contract_term", "action_at_term_end"), contractTermActionAtTermEnd); diff --git a/src/main/java/com/chargebee/models/Subscription.java b/src/main/java/com/chargebee/models/Subscription.java index c9a23f417..124afd85b 100644 --- a/src/main/java/com/chargebee/models/Subscription.java +++ b/src/main/java/com/chargebee/models/Subscription.java @@ -166,6 +166,10 @@ public UsageAccumulationResetFrequency usageAccumulationResetFrequency() { return optEnum("usage_accumulation_reset_frequency", UsageAccumulationResetFrequency.class); } + public String description() { + return optString("description"); + } + } public static class ItemTier extends Resource { @@ -1010,6 +1014,10 @@ public Boolean decommissioned() { return reqBoolean("decommissioned"); } + public String brandId() { + return optString("brand_id"); + } + @Deprecated public JSONObject metadata(){ return optJSONObject("metadata"); @@ -1219,6 +1227,12 @@ public CreateRequest id(String id) { } + public CreateRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CreateRequest planId(String planId) { params.add("plan_id", planId); return this; @@ -2069,6 +2083,12 @@ public CreateForCustomerRequest id(String id) { } + public CreateForCustomerRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CreateForCustomerRequest planId(String planId) { params.add("plan_id", planId); return this; @@ -2471,6 +2491,12 @@ public CreateWithItemsRequest businessEntityId(String businessEntityId) { } + public CreateWithItemsRequest brandId(String brandId) { + params.addOpt("brand_id", brandId); + return this; + } + + public CreateWithItemsRequest trialEnd(Timestamp trialEnd) { params.addOpt("trial_end", trialEnd); return this; @@ -2831,6 +2857,10 @@ public CreateWithItemsRequest subscriptionItemItemType(int index, com.chargebee. params.addOpt("subscription_items[item_type][" + index + "]", subscriptionItemItemType); return this; } + public CreateWithItemsRequest subscriptionItemDescription(int index, String subscriptionItemDescription) { + params.addOpt("subscription_items[description][" + index + "]", subscriptionItemDescription); + return this; + } public CreateWithItemsRequest discountApplyOn(int index, com.chargebee.models.enums.ApplyOn discountApplyOn) { params.addOpt("discounts[apply_on][" + index + "]", discountApplyOn); return this; @@ -4476,6 +4506,10 @@ public UpdateForItemsRequest subscriptionItemItemType(int index, com.chargebee.m params.addOpt("subscription_items[item_type][" + index + "]", subscriptionItemItemType); return this; } + public UpdateForItemsRequest subscriptionItemDescription(int index, String subscriptionItemDescription) { + params.addOpt("subscription_items[description][" + index + "]", subscriptionItemDescription); + return this; + } public UpdateForItemsRequest discountApplyOn(int index, com.chargebee.models.enums.ApplyOn discountApplyOn) { params.addOpt("discounts[apply_on][" + index + "]", discountApplyOn); return this; @@ -6620,6 +6654,10 @@ public ImportForItemsRequest subscriptionItemItemType(int index, com.chargebee.m params.addOpt("subscription_items[item_type][" + index + "]", subscriptionItemItemType); return this; } + public ImportForItemsRequest subscriptionItemDescription(int index, String subscriptionItemDescription) { + params.addOpt("subscription_items[description][" + index + "]", subscriptionItemDescription); + return this; + } public ImportForItemsRequest discountApplyOn(int index, com.chargebee.models.enums.ApplyOn discountApplyOn) { params.addOpt("discounts[apply_on][" + index + "]", discountApplyOn); return this; diff --git a/src/main/java/com/chargebee/models/ThirdPartyPaymentMethod.java b/src/main/java/com/chargebee/models/ThirdPartyPaymentMethod.java index 6919a4ea6..791495663 100644 --- a/src/main/java/com/chargebee/models/ThirdPartyPaymentMethod.java +++ b/src/main/java/com/chargebee/models/ThirdPartyPaymentMethod.java @@ -43,6 +43,10 @@ public String referenceId() { return reqString("reference_id"); } + public JSONObject networkTransactionReference() { + return optJSONObject("network_transaction_reference"); + } + // Operations //=========== diff --git a/src/main/java/com/chargebee/models/Transaction.java b/src/main/java/com/chargebee/models/Transaction.java index 5fd75f9e2..a1bf9e288 100644 --- a/src/main/java/com/chargebee/models/Transaction.java +++ b/src/main/java/com/chargebee/models/Transaction.java @@ -251,6 +251,21 @@ public String processorAdviceCode() { } + public static class NetworkTransactionDetail extends Resource { + public NetworkTransactionDetail(JSONObject jsonObj) { + super(jsonObj); + } + + public String networkTransactionId() { + return optString("network_transaction_id"); + } + + public String originalNetworkTransactionId() { + return optString("original_network_transaction_id"); + } + + } + //Constructors //============ @@ -449,6 +464,10 @@ public String customPaymentMethodName() { return optString("custom_payment_method_name"); } + public Transaction.NetworkTransactionDetail networkTransactionDetails() { + return optSubResource("network_transaction_details", Transaction.NetworkTransactionDetail.class); + } + // Operations //=========== diff --git a/src/main/java/com/chargebee/models/enums/EnabledEvents.java b/src/main/java/com/chargebee/models/enums/EnabledEvents.java index 7ecc32e48..2f309ab3f 100644 --- a/src/main/java/com/chargebee/models/enums/EnabledEvents.java +++ b/src/main/java/com/chargebee/models/enums/EnabledEvents.java @@ -59,6 +59,8 @@ public enum EnabledEvents { CREDIT_NOTE_CREATED_WITH_BACKDATING, CREDIT_NOTE_UPDATED, CREDIT_NOTE_DELETED, + EINVOICE_CREATED, + EINVOICE_UPDATED, PAYMENT_SCHEDULES_CREATED, PAYMENT_SCHEDULES_UPDATED, PAYMENT_SCHEDULE_SCHEME_CREATED, @@ -229,9 +231,21 @@ public enum EnabledEvents { GRANT_BLOCKS_CREATED, GRANT_BLOCKS_UPDATED, LEDGER_UPDATED, + BUSINESS_RULE_CREATED, + BUSINESS_RULE_UPDATED, + BUSINESS_RULE_ACTIVATED, + BUSINESS_RULE_DEACTIVATED, + BUSINESS_RULE_DELETED, + BUSINESS_RULE_RELEASED, VAULT_TOKEN_CREATED, VAULT_TOKEN_UPDATED, VAULT_TOKEN_DELETED, + BUSINESS_RULES_APPLIED, + BUSINESS_RULESET_CREATED, + BUSINESS_RULESET_UPDATED, + BUSINESS_RULESET_ACTIVATED, + BUSINESS_RULESET_DEACTIVATED, + BUSINESS_RULESET_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 4db4afdf8..3cae74039 100644 --- a/src/main/java/com/chargebee/models/enums/EntityType.java +++ b/src/main/java/com/chargebee/models/enums/EntityType.java @@ -42,9 +42,10 @@ public enum EntityType { OMNICHANNEL_ONE_TIME_ORDER_ITEM, USAGE_FILE, BUSINESS_RULE, - RULESET, + BUSINESS_RULESET, ALERT_STATUS, OMNICHANNEL_SUBSCRIPTION_ITEM_METRIC, + PRICE_RAMP, _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 c5b62beec..2f5fecc3e 100644 --- a/src/main/java/com/chargebee/models/enums/EventType.java +++ b/src/main/java/com/chargebee/models/enums/EventType.java @@ -77,6 +77,8 @@ public enum EventType { CREDIT_NOTE_CREATED_WITH_BACKDATING, CREDIT_NOTE_UPDATED, CREDIT_NOTE_DELETED, + EINVOICE_CREATED, + EINVOICE_UPDATED, PAYMENT_SCHEDULES_CREATED, PAYMENT_SCHEDULES_UPDATED, PAYMENT_SCHEDULE_SCHEME_CREATED, @@ -238,9 +240,21 @@ public enum EventType { GRANT_BLOCKS_CREATED, GRANT_BLOCKS_UPDATED, LEDGER_UPDATED, + BUSINESS_RULE_CREATED, + BUSINESS_RULE_UPDATED, + BUSINESS_RULE_ACTIVATED, + BUSINESS_RULE_DEACTIVATED, + BUSINESS_RULE_DELETED, + BUSINESS_RULE_RELEASED, VAULT_TOKEN_CREATED, VAULT_TOKEN_UPDATED, VAULT_TOKEN_DELETED, + BUSINESS_RULES_APPLIED, + BUSINESS_RULESET_CREATED, + BUSINESS_RULESET_UPDATED, + BUSINESS_RULESET_ACTIVATED, + BUSINESS_RULESET_DEACTIVATED, + BUSINESS_RULESET_DELETED, PLAN_CREATED, PLAN_UPDATED, PLAN_DELETED, diff --git a/src/main/java/com/chargebee/models/enums/Gateway.java b/src/main/java/com/chargebee/models/enums/Gateway.java index 8b09d9315..466cfa471 100644 --- a/src/main/java/com/chargebee/models/enums/Gateway.java +++ b/src/main/java/com/chargebee/models/enums/Gateway.java @@ -60,6 +60,7 @@ public enum Gateway { TEMPUS, MOYASAR, PAYWAY, + PAYU, GOCARDLESS, NOT_APPLICABLE, _UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a diff --git a/src/main/java/com/chargebee/models/enums/GatewayName.java b/src/main/java/com/chargebee/models/enums/GatewayName.java index bbfdd433f..0d169ddd5 100644 --- a/src/main/java/com/chargebee/models/enums/GatewayName.java +++ b/src/main/java/com/chargebee/models/enums/GatewayName.java @@ -61,6 +61,7 @@ public enum GatewayName { TEMPUS, MOYASAR, PAYWAY, + PAYU, 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 */ diff --git a/src/main/java/com/chargebee/models/enums/PaymentMethod.java b/src/main/java/com/chargebee/models/enums/PaymentMethod.java index 25d23785b..ef7cffca9 100644 --- a/src/main/java/com/chargebee/models/enums/PaymentMethod.java +++ b/src/main/java/com/chargebee/models/enums/PaymentMethod.java @@ -6,10 +6,12 @@ public enum PaymentMethod { BANK_TRANSFER, OTHER, CUSTOM, - DANA, - TOUCH_N_GO, TAMARA, QPAY, + BLIK, + FPX, + WERO, + P24, CHARGEBACK, CARD, AMAZON_PAYMENTS, @@ -63,6 +65,17 @@ public enum PaymentMethod { PAYNOW, BIZUM, PROMPTPAY, + DANA, + TOUCH_N_GO, + OVO, + MOMO, + MERCADO_PAGO, + NEQUI, + NUPAY, + PICPAY, + THAI_QR, + AFFIRM_PAY, + RAKUTEN_PAY, _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/PaymentMethodType.java b/src/main/java/com/chargebee/models/enums/PaymentMethodType.java index 3627d31e7..ae9d50f02 100644 --- a/src/main/java/com/chargebee/models/enums/PaymentMethodType.java +++ b/src/main/java/com/chargebee/models/enums/PaymentMethodType.java @@ -55,6 +55,19 @@ public enum PaymentMethodType { TOUCH_N_GO, TAMARA, QPAY, + OVO, + MOMO, + MERCADO_PAGO, + NEQUI, + NUPAY, + PICPAY, + THAI_QR, + BLIK, + FPX, + WERO, + P24, + AFFIRM_PAY, + RAKUTEN_PAY, _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/Status.java b/src/main/java/com/chargebee/models/enums/Status.java index 867ff28d9..ddd662cef 100644 --- a/src/main/java/com/chargebee/models/enums/Status.java +++ b/src/main/java/com/chargebee/models/enums/Status.java @@ -1,12 +1,20 @@ package com.chargebee.models.enums; public enum Status { + SCHEDULED, + RESCHEDULED, + SUCCEEDED, + FAILED, + DEFERRED, + DELIVERED, + OPENED, + BOUNCED, + DROPPED, ACTIVE, ARCHIVED, DELETED, AVAILABLE, EXHAUSTED, - SCHEDULED, IN_GRACE_PERIOD, _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 */ diff --git a/src/main/java/com/chargebee/models/enums/Taxability.java b/src/main/java/com/chargebee/models/enums/Taxability.java index 502c8244c..99e281b22 100644 --- a/src/main/java/com/chargebee/models/enums/Taxability.java +++ b/src/main/java/com/chargebee/models/enums/Taxability.java @@ -3,6 +3,7 @@ public enum Taxability { TAXABLE, EXEMPT, + ZERO_RATED, _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/Type.java b/src/main/java/com/chargebee/models/enums/Type.java index af0bf8ede..d1bd8fef4 100644 --- a/src/main/java/com/chargebee/models/enums/Type.java +++ b/src/main/java/com/chargebee/models/enums/Type.java @@ -55,6 +55,19 @@ public enum Type { TOUCH_N_GO, TAMARA, QPAY, + OVO, + MOMO, + MERCADO_PAGO, + NEQUI, + NUPAY, + PICPAY, + THAI_QR, + BLIK, + FPX, + WERO, + P24, + AFFIRM_PAY, + RAKUTEN_PAY, FREE_TRIAL, PAY_UP_FRONT, PAY_AS_YOU_GO,