diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f0b718..8368aa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,193 @@ +### v2.80.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). + + + ### v2.79.0 (2026-08-19) * * * ### New Resources: diff --git a/Gemfile.lock b/Gemfile.lock index f2d8b7d..03f8991 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - chargebee (2.79.0) + chargebee (2.80.0) cgi (>= 0.1.0, < 1.0.0) GEM diff --git a/VERSION b/VERSION index 45cc88f..327d827 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.79.0 +2.80.0 diff --git a/chargebee.gemspec b/chargebee.gemspec index 3f17cb7..5e6a8ec 100644 --- a/chargebee.gemspec +++ b/chargebee.gemspec @@ -4,8 +4,8 @@ Gem::Specification.new do |s| s.rubygems_version = '1.3.5' s.required_ruby_version = '>= 1.9.3' s.name = 'chargebee' - s.version = '2.79.0' - s.date = '2026-08-19' + s.version = '2.80.0' + s.date = '2026-09-24' s.summary = "Ruby client for Chargebee API." s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com." s.metadata = { @@ -47,6 +47,9 @@ Gem::Specification.new do |s| lib/chargebee/models/advance_invoice_schedule.rb lib/chargebee/models/alert.rb lib/chargebee/models/alert_status.rb + lib/chargebee/models/applied_business_rule.rb + lib/chargebee/models/applied_rule.rb + lib/chargebee/models/apply_rule.rb lib/chargebee/models/async_response.rb lib/chargebee/models/async_response_list.rb lib/chargebee/models/attached_item.rb @@ -55,6 +58,9 @@ Gem::Specification.new do |s| lib/chargebee/models/brand.rb lib/chargebee/models/business_entity.rb lib/chargebee/models/business_entity_transfer.rb + lib/chargebee/models/business_rule.rb + lib/chargebee/models/business_ruleset.rb + lib/chargebee/models/business_ruleset_rule.rb lib/chargebee/models/card.rb lib/chargebee/models/column_definition.rb lib/chargebee/models/comment.rb @@ -70,12 +76,15 @@ Gem::Specification.new do |s| lib/chargebee/models/credit_unit.rb lib/chargebee/models/csv_tax_rule.rb lib/chargebee/models/currency.rb + lib/chargebee/models/custom_data_schema.rb lib/chargebee/models/customer.rb lib/chargebee/models/customer_entitlement.rb lib/chargebee/models/differential_price.rb lib/chargebee/models/discount.rb + lib/chargebee/models/dispute.rb lib/chargebee/models/download.rb lib/chargebee/models/einvoice.rb + lib/chargebee/models/email_log.rb lib/chargebee/models/entitlement.rb lib/chargebee/models/entitlement_override.rb lib/chargebee/models/estimate.rb diff --git a/lib/chargebee.rb b/lib/chargebee.rb index 258d11e..39ff9d1 100644 --- a/lib/chargebee.rb +++ b/lib/chargebee.rb @@ -21,6 +21,9 @@ require File.dirname(__FILE__) + '/chargebee/models/advance_invoice_schedule' require File.dirname(__FILE__) + '/chargebee/models/alert' require File.dirname(__FILE__) + '/chargebee/models/alert_status' +require File.dirname(__FILE__) + '/chargebee/models/applied_business_rule' +require File.dirname(__FILE__) + '/chargebee/models/applied_rule' +require File.dirname(__FILE__) + '/chargebee/models/apply_rule' require File.dirname(__FILE__) + '/chargebee/models/async_response' require File.dirname(__FILE__) + '/chargebee/models/async_response_list' require File.dirname(__FILE__) + '/chargebee/models/attached_item' @@ -29,6 +32,9 @@ require File.dirname(__FILE__) + '/chargebee/models/brand' require File.dirname(__FILE__) + '/chargebee/models/business_entity' require File.dirname(__FILE__) + '/chargebee/models/business_entity_transfer' +require File.dirname(__FILE__) + '/chargebee/models/business_rule' +require File.dirname(__FILE__) + '/chargebee/models/business_ruleset' +require File.dirname(__FILE__) + '/chargebee/models/business_ruleset_rule' require File.dirname(__FILE__) + '/chargebee/models/card' require File.dirname(__FILE__) + '/chargebee/models/column_definition' require File.dirname(__FILE__) + '/chargebee/models/comment' @@ -43,12 +49,15 @@ require File.dirname(__FILE__) + '/chargebee/models/credit_note_estimate' require File.dirname(__FILE__) + '/chargebee/models/credit_unit' require File.dirname(__FILE__) + '/chargebee/models/currency' +require File.dirname(__FILE__) + '/chargebee/models/custom_data_schema' require File.dirname(__FILE__) + '/chargebee/models/customer' require File.dirname(__FILE__) + '/chargebee/models/customer_entitlement' require File.dirname(__FILE__) + '/chargebee/models/differential_price' require File.dirname(__FILE__) + '/chargebee/models/discount' +require File.dirname(__FILE__) + '/chargebee/models/dispute' require File.dirname(__FILE__) + '/chargebee/models/download' require File.dirname(__FILE__) + '/chargebee/models/einvoice' +require File.dirname(__FILE__) + '/chargebee/models/email_log' require File.dirname(__FILE__) + '/chargebee/models/entitlement' require File.dirname(__FILE__) + '/chargebee/models/entitlement_override' require File.dirname(__FILE__) + '/chargebee/models/estimate' @@ -140,7 +149,7 @@ module ChargeBee - VERSION = '2.79.0' + VERSION = '2.80.0' @@default_env = nil @@verify_ca_certs = true diff --git a/lib/chargebee/models/applied_business_rule.rb b/lib/chargebee/models/applied_business_rule.rb new file mode 100644 index 0000000..bbf291b --- /dev/null +++ b/lib/chargebee/models/applied_business_rule.rb @@ -0,0 +1,11 @@ +module ChargeBee + class AppliedBusinessRule < Model + + attr_accessor :handle, :entity_type, :entity_id, :entity_version, :rule_id, :version, :created_at, + :modified_at + + # OPERATIONS + #----------- + + end # ~AppliedBusinessRule +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/applied_rule.rb b/lib/chargebee/models/applied_rule.rb new file mode 100644 index 0000000..46da291 --- /dev/null +++ b/lib/chargebee/models/applied_rule.rb @@ -0,0 +1,10 @@ +module ChargeBee + class AppliedRule < Model + + attr_accessor :id, :version, :name, :description, :evaluation_result, :error_message, :actions + + # OPERATIONS + #----------- + + end # ~AppliedRule +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/apply_rule.rb b/lib/chargebee/models/apply_rule.rb new file mode 100644 index 0000000..51fb169 --- /dev/null +++ b/lib/chargebee/models/apply_rule.rb @@ -0,0 +1,15 @@ +module ChargeBee + class ApplyRule < Model + + class Rule < Model + attr_accessor :id, :version, :name, :description, :evaluation_result, :error_message, :actions + end + + attr_accessor :evaluate, :rule_id, :ruleset_id, :skip_failed_rules, :structured_expression, + :context, :rules + + # OPERATIONS + #----------- + + end # ~ApplyRule +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/business_rule.rb b/lib/chargebee/models/business_rule.rb new file mode 100644 index 0000000..d9976c4 --- /dev/null +++ b/lib/chargebee/models/business_rule.rb @@ -0,0 +1,113 @@ +module ChargeBee + class BusinessRule < Model + + attr_accessor :id, :name, :description, :latest_version, :active, :released_at, :released_by, + :updated_at, :updated_by, :created_by, :created_at, :tags, :structured_expression, :actions_on_success, + :resource_version + + # OPERATIONS + #----------- + + def self.create(params, env=nil, headers={}) + jsonKeys = { + :tags => 0, + :structured_expression => 0, + :actions_on_success => 0, + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rules"), params, env, headers,nil, false, jsonKeys, options, "businessRule", "create") + end + + def self.delete(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rules",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options, "businessRule", "delete") + end + + def self.update_draft(id, params, env=nil, headers={}) + jsonKeys = { + :tags => 0, + :structured_expression => 0, + :actions_on_success => 0, + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rules",id.to_s,"draft"), params, env, headers,nil, false, jsonKeys, options, "businessRule", "updateDraft") + end + + def self.list(params={}, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send_list_request('get', uri_path("business_rules"), params, env, headers,nil, false, jsonKeys, options, "businessRule", "list") + end + + def self.retrieve(id, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send('get', uri_path("business_rules",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "businessRule", "retrieve") + end + + def self.retrieve_draft(id, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send('get', uri_path("business_rules",id.to_s,"draft"), {}, env, headers,nil, false, jsonKeys, options, "businessRule", "retrieveDraft") + end + + def self.delete_draft(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rules",id.to_s,"delete_draft"), {}, env, headers,nil, false, jsonKeys, options, "businessRule", "deleteDraft") + end + + def self.activate_rule(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rules",id.to_s,"activate"), {}, env, headers,nil, false, jsonKeys, options, "businessRule", "activateRule") + end + + def self.deactivate_rule(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rules",id.to_s,"deactivate"), {}, env, headers,nil, false, jsonKeys, options, "businessRule", "deactivateRule") + end + + def self.release_rule(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rules",id.to_s,"release"), {}, env, headers,nil, false, jsonKeys, options, "businessRule", "releaseRule") + end + + def self.apply_rules(params={}, env=nil, headers={}) + jsonKeys = { + :structured_expression => 0, + :context => 0, + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rules","apply_rules"), params, env, headers,nil, false, jsonKeys, options, "businessRule", "applyRules") + end + + end # ~BusinessRule +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/business_ruleset.rb b/lib/chargebee/models/business_ruleset.rb new file mode 100644 index 0000000..403c4f6 --- /dev/null +++ b/lib/chargebee/models/business_ruleset.rb @@ -0,0 +1,99 @@ +module ChargeBee + class BusinessRuleset < Model + + attr_accessor :id, :name, :description, :active, :execute_mode, :updated_at, :updated_by, :created_by, + :created_at, :rules, :resource_version + + # OPERATIONS + #----------- + + def self.create(params, env=nil, headers={}) + jsonKeys = { + :rules => 0, + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rulesets"), params, env, headers,nil, false, jsonKeys, options, "businessRuleset", "create") + end + + def self.update(id, params, env=nil, headers={}) + jsonKeys = { + :rules => 0, + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rulesets",id.to_s), params, env, headers,nil, false, jsonKeys, options, "businessRuleset", "update") + end + + def self.delete(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rulesets",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options, "businessRuleset", "delete") + end + + def self.activate(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rulesets",id.to_s,"activate"), {}, env, headers,nil, false, jsonKeys, options, "businessRuleset", "activate") + end + + def self.deactivate(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rulesets",id.to_s,"deactivate"), {}, env, headers,nil, false, jsonKeys, options, "businessRuleset", "deactivate") + end + + def self.add_rules(id, params={}, env=nil, headers={}) + jsonKeys = { + :rules => 0, + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rulesets",id.to_s,"add_rules"), params, env, headers,nil, false, jsonKeys, options, "businessRuleset", "addRules") + end + + def self.remove_rules(id, params={}, env=nil, headers={}) + jsonKeys = { + :rules => 0, + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("business_rulesets",id.to_s,"remove_rules"), params, env, headers,nil, false, jsonKeys, options, "businessRuleset", "removeRules") + end + + def self.list_rules(id, params={}, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send('get', uri_path("business_rulesets",id.to_s,"rules"), params, env, headers,nil, false, jsonKeys, options, "businessRuleset", "listRules") + end + + def self.list(params={}, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send_list_request('get', uri_path("business_rulesets"), params, env, headers,nil, false, jsonKeys, options, "businessRuleset", "list") + end + + def self.retrieve(id, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send('get', uri_path("business_rulesets",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "businessRuleset", "retrieve") + end + + end # ~BusinessRuleset +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/business_ruleset_rule.rb b/lib/chargebee/models/business_ruleset_rule.rb new file mode 100644 index 0000000..23fd741 --- /dev/null +++ b/lib/chargebee/models/business_ruleset_rule.rb @@ -0,0 +1,10 @@ +module ChargeBee + class BusinessRulesetRule < Model + + attr_accessor :rule_id, :priority + + # OPERATIONS + #----------- + + end # ~BusinessRulesetRule +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/credit_note.rb b/lib/chargebee/models/credit_note.rb index 63ad421..c1ce7bf 100644 --- a/lib/chargebee/models/credit_note.rb +++ b/lib/chargebee/models/credit_note.rb @@ -68,8 +68,8 @@ class SiteDetailsAtCreation < Model :local_currency_code, :round_off_amount, :fractional_correction, :notes, :line_items, :line_item_tiers, :line_item_discounts, :line_item_taxes, :line_item_addresses, :discounts, :taxes, :tax_origin, :linked_refunds, :allocations, :deleted, :tax_category, :local_currency_exchange_rate, :exchange_rates, - :create_reason_code, :vat_number_prefix, :business_entity_id, :shipping_address, :billing_address, - :einvoice, :site_details_at_creation + :create_reason_code, :vat_number_prefix, :business_entity_id, :brand_id, :shipping_address, + :billing_address, :einvoice, :site_details_at_creation # OPERATIONS #----------- @@ -133,6 +133,15 @@ def self.void_credit_note(id, params={}, env=nil, headers={}) Request.send('post', uri_path("credit_notes",id.to_s,"void"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "voidCreditNote") end + def self.send_email(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("credit_notes",id.to_s,"send_email"), {}, env, headers,nil, false, jsonKeys, options, "creditNote", "sendEmail") + end + def self.list(params={}, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/custom_data_schema.rb b/lib/chargebee/models/custom_data_schema.rb new file mode 100644 index 0000000..a6b8533 --- /dev/null +++ b/lib/chargebee/models/custom_data_schema.rb @@ -0,0 +1,11 @@ +module ChargeBee + class CustomDataSchema < Model + + attr_accessor :id, :display_name, :entity_type, :schema_definition, :status, :created_at, :modified_at, + :updated_at + + # OPERATIONS + #----------- + + end # ~CustomDataSchema +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/customer.rb b/lib/chargebee/models/customer.rb index c2874c9..4e59a53 100644 --- a/lib/chargebee/models/customer.rb +++ b/lib/chargebee/models/customer.rb @@ -52,7 +52,8 @@ class ChildAccountAccess < Model :balances, :entity_identifiers, :tax_providers_fields, :is_einvoice_enabled, :einvoicing_method, :meta_data, :deleted, :registered_for_gst, :consolidated_invoicing, :customer_type, :business_customer_without_vat_number, :client_profile_id, :relationship, :use_default_hierarchy_settings, :parent_account_access, - :child_account_access, :vat_number_prefix, :entity_identifier_scheme, :entity_identifier_standard + :child_account_access, :vat_number_prefix, :entity_identifier_scheme, :entity_identifier_standard, + :brand_id # OPERATIONS #----------- @@ -206,6 +207,15 @@ def self.collect_payment(id, params, env=nil, headers={}) Request.send('post', uri_path("customers",id.to_s,"collect_payment"), params, env, headers,nil, false, jsonKeys, options, "customer", "collectPayment") end + def self.send_payment_request(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("customers",id.to_s,"send_payment_request"), {}, env, headers,nil, false, jsonKeys, options, "customer", "sendPaymentRequest") + end + def self.delete(id, params={}, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/dispute.rb b/lib/chargebee/models/dispute.rb new file mode 100644 index 0000000..166aa94 --- /dev/null +++ b/lib/chargebee/models/dispute.rb @@ -0,0 +1,25 @@ +module ChargeBee + class Dispute < Model + + attr_accessor :id, :customer_id, :transaction_id, :gateway_account_id, :id_at_gateway, :currency_code, + :amount, :reason, :status, :type, :is_partial_dispute, :created_at, :resource_version, :updated_at + + # OPERATIONS + #----------- + + def self.retrieve(id, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send('get', uri_path("disputes",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "dispute", "retrieve") + end + + def self.list(params={}, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send_list_request('get', uri_path("disputes"), params, env, headers,nil, false, jsonKeys, options, "dispute", "list") + end + + end # ~Dispute +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/einvoice.rb b/lib/chargebee/models/einvoice.rb index 6c996c3..a645ef2 100644 --- a/lib/chargebee/models/einvoice.rb +++ b/lib/chargebee/models/einvoice.rb @@ -1,10 +1,30 @@ module ChargeBee class Einvoice < Model - attr_accessor :id, :reference_id, :reference_number, :status, :message, :provider_references + class Artifact < Model + attr_accessor :artifact_type, :direction, :status, :code, :external_artifact_id, :created_at, :resource_version, :updated_at, :deleted + end + + attr_accessor :id, :entity_type, :entity_id, :reference_id, :reference_number, :status, :message, + :created_at, :resource_version, :updated_at, :deleted, :provider_references, :business_entity_id, + :artifacts # OPERATIONS #----------- + def self.retrieve(id, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send('get', uri_path("einvoices",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "einvoice", "retrieve") + end + + def self.list_einvoices(params={}, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send('get', uri_path("einvoices"), params, env, headers,nil, false, jsonKeys, options, "einvoice", "listEinvoices") + end + end # ~Einvoice end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/email_log.rb b/lib/chargebee/models/email_log.rb new file mode 100644 index 0000000..b5b7bd7 --- /dev/null +++ b/lib/chargebee/models/email_log.rb @@ -0,0 +1,18 @@ +module ChargeBee + class EmailLog < Model + + attr_accessor :id, :template_name, :from_address, :to_address, :subject, :status, :sent_on, + :customer_id, :site_id, :business_entity_id, :brand_id, :error_message + + # OPERATIONS + #----------- + + def self.email_logs_for_customer(id, params={}, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send('get', uri_path("customers",id.to_s,"email_logs"), params, env, headers,nil, false, jsonKeys, options, "emailLog", "emailLogsForCustomer") + end + + end # ~EmailLog +end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/event.rb b/lib/chargebee/models/event.rb index e7314b7..3440536 100644 --- a/lib/chargebee/models/event.rb +++ b/lib/chargebee/models/event.rb @@ -6,7 +6,7 @@ class Webhook < Model end attr_accessor :id, :occurred_at, :source, :user, :webhook_status, :webhook_failure_reason, :webhooks, - :event_type, :api_version, :origin_user + :event_type, :site_id, :api_version, :origin_user class Content < Result end diff --git a/lib/chargebee/models/grant_block.rb b/lib/chargebee/models/grant_block.rb index e79c9af..f23738d 100644 --- a/lib/chargebee/models/grant_block.rb +++ b/lib/chargebee/models/grant_block.rb @@ -1,10 +1,18 @@ module ChargeBee class GrantBlock < Model - attr_accessor :id, :subscription_id, :account_type, :unit_id, :unit_type, :granted_amount, :effective_from, + class ProvisionedBlockBalance < Model + attr_accessor :granted_amount, :total_balance, :usable_balance, :hold_amount, :used_amount, :expired_amount, :rolled_over_amount, :voided_amount + end + + class OverdraftBlockBalance < Model + attr_accessor :is_unlimited, :limit, :total_balance, :usable_balance, :used_amount + end + + attr_accessor :id, :subscription_id, :unit_id, :unit_type, :account_type, :granted_amount, :effective_from, :expires_at, :balance, :hold_amount, :used_amount, :expired_amount, :rolled_over_amount, :voided_amount, :origin_grant_block_id, :status, :grant_source, :created_at, :modified_at, :resource_version, - :metadata + :provisioned_block_balance, :overdraft_block_balance, :metadata # OPERATIONS #----------- diff --git a/lib/chargebee/models/hosted_page.rb b/lib/chargebee/models/hosted_page.rb index b881819..482c97e 100644 --- a/lib/chargebee/models/hosted_page.rb +++ b/lib/chargebee/models/hosted_page.rb @@ -2,7 +2,7 @@ module ChargeBee class HostedPage < Model attr_accessor :id, :type, :url, :state, :failure_reason, :pass_thru_content, :embed, :created_at, - :expires_at, :layout, :updated_at, :resource_version, :checkout_info, :business_entity_id + :expires_at, :layout, :updated_at, :resource_version, :checkout_info, :business_entity_id, :brand_id class Content < Result end diff --git a/lib/chargebee/models/invoice.rb b/lib/chargebee/models/invoice.rb index 3b9c3b5..f927bb7 100644 --- a/lib/chargebee/models/invoice.rb +++ b/lib/chargebee/models/invoice.rb @@ -104,7 +104,7 @@ class SiteDetailsAtCreation < Model :discounts, :taxes, :tax_origin, :linked_payments, :reference_transactions, :dunning_attempts, :applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address, :statement_descriptor, :einvoice, :void_reason_code, :deleted, :tax_category, - :vat_number_prefix, :channel, :business_entity_id, :site_details_at_creation + :vat_number_prefix, :channel, :business_entity_id, :brand_id, :site_details_at_creation # OPERATIONS #----------- @@ -419,6 +419,15 @@ def self.void_before_capture(id, params={}, env=nil, headers={}) Request.send('post', uri_path("invoices",id.to_s,"void_before_capture"), params, env, headers,nil, false, jsonKeys, options, "invoice", "voidBeforeCapture") end + def self.send_email(id, env=nil, headers={}) + jsonKeys = { + } + options = { + :isIdempotent => true + } + Request.send('post', uri_path("invoices",id.to_s,"send_email"), {}, env, headers,nil, false, jsonKeys, options, "invoice", "sendEmail") + end + def self.delete(id, params={}, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/ledger_entry.rb b/lib/chargebee/models/ledger_entry.rb index 6fa1cb2..f4bb72e 100644 --- a/lib/chargebee/models/ledger_entry.rb +++ b/lib/chargebee/models/ledger_entry.rb @@ -1,7 +1,7 @@ module ChargeBee class LedgerEntry < Model - attr_accessor :id, :subscription_id, :account_type, :unit_id, :unit_type, :amount, :grant_block_start_balance, + attr_accessor :id, :subscription_id, :unit_id, :unit_type, :account_type, :amount, :grant_block_start_balance, :grant_block_end_balance, :account_start_balance, :account_end_balance, :type, :ledger_operation_id, :grant_block_id, :created_at, :modified_at diff --git a/lib/chargebee/models/payment_intent.rb b/lib/chargebee/models/payment_intent.rb index 7cfeedf..9820fbc 100644 --- a/lib/chargebee/models/payment_intent.rb +++ b/lib/chargebee/models/payment_intent.rb @@ -16,7 +16,7 @@ class PaymentIntentMetadata < Model attr_accessor :id, :status, :currency_code, :amount, :gateway_account_id, :expires_at, :reference_id, :payment_method_type, :success_url, :failure_url, :created_at, :modified_at, :resource_version, :updated_at, :payment_method_options, :customer_id, :gateway, :active_payment_attempt, :payment_attempts, - :payment_intent_metadata, :business_entity_id + :payment_intent_metadata, :business_entity_id, :brand_id # OPERATIONS #----------- diff --git a/lib/chargebee/models/payment_schedule.rb b/lib/chargebee/models/payment_schedule.rb index 3bfa94a..abddd51 100644 --- a/lib/chargebee/models/payment_schedule.rb +++ b/lib/chargebee/models/payment_schedule.rb @@ -2,14 +2,25 @@ module ChargeBee class PaymentSchedule < Model class ScheduleEntry < Model - attr_accessor :id, :date, :amount, :status + attr_accessor :id, :date, :amount, :scheduled_amount, :status + end + + class ReferenceTransaction < Model + attr_accessor :schedule_entry_id, :applied_amount, :txn_id, :txn_status, :txn_date, :txn_amount end attr_accessor :id, :scheme_id, :entity_type, :entity_id, :amount, :created_at, :resource_version, - :updated_at, :currency_code, :schedule_entries + :updated_at, :currency_code, :schedule_entries, :reference_transactions # OPERATIONS #----------- + def self.list(params={}, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send_list_request('get', uri_path("payment_schedules"), params, env, headers,nil, false, jsonKeys, options, "paymentSchedule", "list") + end + end # ~PaymentSchedule end # ~ChargeBee \ No newline at end of file diff --git a/lib/chargebee/models/payment_schedule_estimate.rb b/lib/chargebee/models/payment_schedule_estimate.rb index 44c519a..05bbea4 100644 --- a/lib/chargebee/models/payment_schedule_estimate.rb +++ b/lib/chargebee/models/payment_schedule_estimate.rb @@ -2,7 +2,7 @@ module ChargeBee class PaymentScheduleEstimate < Model class ScheduleEntry < Model - attr_accessor :id, :date, :amount, :status + attr_accessor :id, :date, :amount, :scheduled_amount, :status end attr_accessor :id, :scheme_id, :entity_type, :entity_id, :amount, :currency_code, :schedule_entries diff --git a/lib/chargebee/models/payment_schedule_scheme.rb b/lib/chargebee/models/payment_schedule_scheme.rb index d8361c9..89f1493 100644 --- a/lib/chargebee/models/payment_schedule_scheme.rb +++ b/lib/chargebee/models/payment_schedule_scheme.rb @@ -27,6 +27,13 @@ def self.retrieve(id, env=nil, headers={}) Request.send('get', uri_path("payment_schedule_schemes",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "paymentScheduleScheme", "retrieve") end + def self.list(params={}, env=nil, headers={}) + jsonKeys = { + } + options = {} + Request.send_list_request('get', uri_path("payment_schedule_schemes"), params, env, headers,nil, false, jsonKeys, options, "paymentScheduleScheme", "list") + end + def self.delete(id, env=nil, headers={}) jsonKeys = { } diff --git a/lib/chargebee/models/payment_source.rb b/lib/chargebee/models/payment_source.rb index df7efbb..1b186b1 100644 --- a/lib/chargebee/models/payment_source.rb +++ b/lib/chargebee/models/payment_source.rb @@ -41,10 +41,14 @@ class Mandate < Model attr_accessor :id, :subscription_id, :created_at end + class NetworkTransactionReference < Model + attr_accessor :original_network_transaction_id + end + attr_accessor :id, :resource_version, :updated_at, :created_at, :customer_id, :type, :reference_id, :status, :gateway, :gateway_account_id, :ip_address, :issuing_country, :card, :bank_account, :boleto, :billing_address, :amazon_payment, :upi, :paypal, :venmo, :klarna_pay_now, :mandates, - :vault_token, :deleted, :business_entity_id + :vault_token, :network_transaction_reference, :deleted, :business_entity_id, :brand_id # OPERATIONS #----------- diff --git a/lib/chargebee/models/quoted_subscription.rb b/lib/chargebee/models/quoted_subscription.rb index f47f108..e000420 100644 --- a/lib/chargebee/models/quoted_subscription.rb +++ b/lib/chargebee/models/quoted_subscription.rb @@ -14,7 +14,7 @@ class Coupon < Model end class SubscriptionItem < Model - attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :current_term_start, :current_term_end, :next_billing_at, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type, :usage_accumulation_reset_frequency + attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :current_term_start, :current_term_end, :next_billing_at, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type, :usage_accumulation_reset_frequency, :description end class ItemTier < Model diff --git a/lib/chargebee/models/ramp.rb b/lib/chargebee/models/ramp.rb index 78cfa6f..76a64b9 100644 --- a/lib/chargebee/models/ramp.rb +++ b/lib/chargebee/models/ramp.rb @@ -25,13 +25,18 @@ class ContractTerm < Model attr_accessor :cancellation_cutoff_period, :renewal_billing_cycles, :action_at_term_end end + class BillingConfiguration < Model + attr_accessor :po_number + end + class StatusTransitionReason < Model attr_accessor :code, :message end attr_accessor :id, :description, :subscription_id, :effective_from, :status, :created_at, :resource_version, :updated_at, :items_to_add, :items_to_update, :coupons_to_add, :discounts_to_add, :item_tiers, - :items_to_remove, :coupons_to_remove, :discounts_to_remove, :contract_term, :deleted, :status_transition_reason + :items_to_remove, :coupons_to_remove, :discounts_to_remove, :contract_term, :billing_configuration, + :deleted, :status_transition_reason # OPERATIONS #----------- diff --git a/lib/chargebee/models/subscription.rb b/lib/chargebee/models/subscription.rb index 0cde719..4a3df31 100644 --- a/lib/chargebee/models/subscription.rb +++ b/lib/chargebee/models/subscription.rb @@ -2,7 +2,7 @@ module ChargeBee class Subscription < Model class SubscriptionItem < Model - attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :current_term_start, :current_term_end, :next_billing_at, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type, :usage_accumulation_reset_frequency + attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :current_term_start, :current_term_end, :next_billing_at, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type, :usage_accumulation_reset_frequency, :description end class ItemTier < Model @@ -62,7 +62,7 @@ class Discount < Model :addons, :event_based_addons, :charged_event_based_addons, :coupon, :coupons, :shipping_address, :referral_info, :billing_override, :invoice_notes, :meta_data, :deleted, :changes_scheduled_at, :contract_term, :cancel_reason_code, :free_period, :free_period_unit, :create_pending_invoices, - :auto_close_invoices, :discounts, :business_entity_id, :decommissioned, :metadata + :auto_close_invoices, :discounts, :business_entity_id, :decommissioned, :brand_id, :metadata def metadata warn "[DEPRECATION] `metadata` is deprecated please use meta_data instead." @metadata diff --git a/lib/chargebee/models/third_party_payment_method.rb b/lib/chargebee/models/third_party_payment_method.rb index c74e458..a028c92 100644 --- a/lib/chargebee/models/third_party_payment_method.rb +++ b/lib/chargebee/models/third_party_payment_method.rb @@ -1,7 +1,7 @@ module ChargeBee class ThirdPartyPaymentMethod < Model - attr_accessor :type, :gateway, :gateway_account_id, :reference_id + attr_accessor :type, :gateway, :gateway_account_id, :reference_id, :network_transaction_reference # OPERATIONS #----------- diff --git a/lib/chargebee/models/transaction.rb b/lib/chargebee/models/transaction.rb index 84e30a8..cd9e221 100644 --- a/lib/chargebee/models/transaction.rb +++ b/lib/chargebee/models/transaction.rb @@ -21,6 +21,10 @@ class GatewayErrorDetail < Model attr_accessor :request_id, :error_category, :error_code, :error_message, :decline_code, :decline_message, :network_error_code, :network_error_message, :error_field, :recommendation_code, :recommendation_message, :processor_error_code, :processor_error_message, :error_cause_id, :processor_advice_code end + class NetworkTransactionDetail < Model + attr_accessor :network_transaction_id, :original_network_transaction_id + end + attr_accessor :id, :customer_id, :subscription_id, :gateway_account_id, :payment_source_id, :payment_method, :reference_number, :gateway, :type, :date, :settled_at, :exchange_rate, :currency_code, :amount, :id_at_gateway, :status, :fraud_flag, :initiator_type, :three_d_secure, :authorization_reason, @@ -28,7 +32,7 @@ class GatewayErrorDetail < Model :amount_unused, :masked_card_number, :reference_transaction_id, :refunded_txn_id, :reference_authorization_id, :amount_capturable, :reversal_transaction_id, :linked_invoices, :linked_credit_notes, :linked_refunds, :linked_payments, :deleted, :iin, :last4, :merchant_reference_id, :business_entity_id, :payment_method_details, - :error_detail, :custom_payment_method_name + :error_detail, :custom_payment_method_name, :network_transaction_details # OPERATIONS #----------- diff --git a/lib/chargebee/result.rb b/lib/chargebee/result.rb index 9aba589..00e75c1 100644 --- a/lib/chargebee/result.rb +++ b/lib/chargebee/result.rb @@ -94,7 +94,7 @@ def token() def payment_source() payment_source = get(:payment_source, PaymentSource, - {:card => PaymentSource::Card, :bank_account => PaymentSource::BankAccount, :cust_voucher_source => PaymentSource::CustVoucherSource, :billing_address => PaymentSource::BillingAddress, :amazon_payment => PaymentSource::AmazonPayment, :upi => PaymentSource::Upi, :paypal => PaymentSource::Paypal, :venmo => PaymentSource::Venmo, :klarna_pay_now => PaymentSource::KlarnaPayNow, :mandates => PaymentSource::Mandate}); + {:card => PaymentSource::Card, :bank_account => PaymentSource::BankAccount, :cust_voucher_source => PaymentSource::CustVoucherSource, :billing_address => PaymentSource::BillingAddress, :amazon_payment => PaymentSource::AmazonPayment, :upi => PaymentSource::Upi, :paypal => PaymentSource::Paypal, :venmo => PaymentSource::Venmo, :klarna_pay_now => PaymentSource::KlarnaPayNow, :mandates => PaymentSource::Mandate, :network_transaction_reference => PaymentSource::NetworkTransactionReference}); return payment_source; end @@ -128,6 +128,11 @@ def promotional_credit() return promotional_credit; end + def email_log() + email_log = get(:email_log, EmailLog); + return email_log; + end + def invoice() invoice = get(:invoice, Invoice, {:exchange_rates => Invoice::ExchangeRate, :line_items => Invoice::LineItem, :line_item_tiers => Invoice::LineItemTier, :line_item_discounts => Invoice::LineItemDiscount, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_addresses => Invoice::LineItemAddress, :discounts => Invoice::Discount, :taxes => Invoice::Tax, :tax_origin => Invoice::TaxOrigin, :linked_payments => Invoice::LinkedPayment, :reference_transactions => Invoice::ReferenceTransaction, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress, :statement_descriptor => Invoice::StatementDescriptor, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation}); @@ -141,15 +146,10 @@ def payment_reference_number() def payment_schedule() payment_schedule = get(:payment_schedule, PaymentSchedule, - {:schedule_entries => PaymentSchedule::ScheduleEntry}); + {:schedule_entries => PaymentSchedule::ScheduleEntry, :reference_transactions => PaymentSchedule::ReferenceTransaction}); return payment_schedule; end - def einvoice() - einvoice = get(:einvoice, Einvoice); - return einvoice; - end - def tax_withheld() tax_withheld = get(:tax_withheld, TaxWithheld); return tax_withheld; @@ -181,10 +181,15 @@ def gift() def transaction() transaction = get(:transaction, Transaction, - {:linked_invoices => Transaction::LinkedInvoice, :linked_credit_notes => Transaction::LinkedCreditNote, :linked_refunds => Transaction::LinkedRefund, :linked_payments => Transaction::LinkedPayment, :gateway_error_detail => Transaction::GatewayErrorDetail}); + {:linked_invoices => Transaction::LinkedInvoice, :linked_credit_notes => Transaction::LinkedCreditNote, :linked_refunds => Transaction::LinkedRefund, :linked_payments => Transaction::LinkedPayment, :gateway_error_detail => Transaction::GatewayErrorDetail, :network_transaction_detail => Transaction::NetworkTransactionDetail}); return transaction; end + def dispute() + dispute = get(:dispute, Dispute); + return dispute; + end + def hosted_page() hosted_page = get(:hosted_page, HostedPage); return hosted_page; @@ -493,7 +498,7 @@ def currency() def ramp() ramp = get(:ramp, Ramp, - {:items_to_add => Ramp::ItemsToAdd, :items_to_update => Ramp::ItemsToUpdate, :coupons_to_add => Ramp::CouponsToAdd, :discounts_to_add => Ramp::DiscountsToAdd, :item_tiers => Ramp::ItemTier, :contract_term => Ramp::ContractTerm, :status_transition_reason => Ramp::StatusTransitionReason}); + {:items_to_add => Ramp::ItemsToAdd, :items_to_update => Ramp::ItemsToUpdate, :coupons_to_add => Ramp::CouponsToAdd, :discounts_to_add => Ramp::DiscountsToAdd, :item_tiers => Ramp::ItemTier, :contract_term => Ramp::ContractTerm, :billing_configuration => Ramp::BillingConfiguration, :status_transition_reason => Ramp::StatusTransitionReason}); return ramp; end @@ -594,12 +599,23 @@ def metered_feature() return metered_feature; end + def custom_data_schema() + custom_data_schema = get(:custom_data_schema, CustomDataSchema); + return custom_data_schema; + end + def usage_file() usage_file = get(:usage_file, UsageFile, {:upload_detail => UsageFile::UploadDetail}); return usage_file; end + def einvoice() + einvoice = get(:einvoice, Einvoice, + {:artifacts => Einvoice::Artifact}); + return einvoice; + end + def personalized_offer() personalized_offer = get(:personalized_offer, PersonalizedOffer, {:content => PersonalizedOffer::Content, :options => PersonalizedOffer::Option}); @@ -627,6 +643,37 @@ def webhook_endpoint() return webhook_endpoint; end + def business_rule() + business_rule = get(:business_rule, BusinessRule); + return business_rule; + end + + def apply_rule() + apply_rule = get(:apply_rule, ApplyRule, + {:rules => ApplyRule::Rule}); + return apply_rule; + end + + def applied_rule() + applied_rule = get(:applied_rule, AppliedRule); + return applied_rule; + end + + def applied_business_rule() + applied_business_rule = get(:applied_business_rule, AppliedBusinessRule); + return applied_business_rule; + end + + def business_ruleset() + business_ruleset = get(:business_ruleset, BusinessRuleset); + return business_ruleset; + end + + def business_ruleset_rule() + business_ruleset_rule = get(:business_ruleset_rule, BusinessRulesetRule); + return business_ruleset_rule; + end + def usage_summary() usage_summary = get(:usage_summary, UsageSummary); return usage_summary; @@ -665,7 +712,8 @@ def ledger_operation() end def grant_block() - grant_block = get(:grant_block, GrantBlock); + grant_block = get(:grant_block, GrantBlock, + {:provisioned_block_balance => GrantBlock::ProvisionedBlockBalance, :overdraft_block_balance => GrantBlock::OverdraftBlockBalance}); return grant_block; end @@ -707,6 +755,12 @@ def hierarchies() return hierarchies; end + def email_logs() + email_logs = get_list(:email_logs, EmailLog, + {}); + return email_logs; + end + def invoices() invoices = get_list(:invoices, Invoice, {:exchange_rates => Invoice::ExchangeRate, :line_items => Invoice::LineItem, :line_item_tiers => Invoice::LineItemTier, :line_item_discounts => Invoice::LineItemDiscount, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_addresses => Invoice::LineItemAddress, :discounts => Invoice::Discount, :taxes => Invoice::Tax, :tax_origin => Invoice::TaxOrigin, :linked_payments => Invoice::LinkedPayment, :reference_transactions => Invoice::ReferenceTransaction, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress, :statement_descriptor => Invoice::StatementDescriptor, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation}); @@ -715,7 +769,7 @@ def invoices() def payment_schedules() payment_schedules = get_list(:payment_schedules, PaymentSchedule, - {:schedule_entries => PaymentSchedule::ScheduleEntry}); + {:schedule_entries => PaymentSchedule::ScheduleEntry, :reference_transactions => PaymentSchedule::ReferenceTransaction}); return payment_schedules; end @@ -763,7 +817,7 @@ def ledger_operations() def grant_blocks() grant_blocks = get_list(:grant_blocks, GrantBlock, - {}); + {:provisioned_block_balance => GrantBlock::ProvisionedBlockBalance, :overdraft_block_balance => GrantBlock::OverdraftBlockBalance}); return grant_blocks; end