chargebee 2.69.0 → 2.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +143 -0
- data/Gemfile.lock +1 -1
- data/Makefile +2 -0
- data/VERSION +1 -1
- data/chargebee.gemspec +9 -2
- data/lib/chargebee/models/alert.rb +59 -0
- data/lib/chargebee/models/alert_status.rb +24 -0
- data/lib/chargebee/models/cpq_quote_signature.rb +11 -0
- data/lib/chargebee/models/credit_note.rb +1 -1
- data/lib/chargebee/models/einvoice.rb +1 -1
- data/lib/chargebee/models/estimate.rb +2 -2
- data/lib/chargebee/models/filter_condition.rb +10 -0
- data/lib/chargebee/models/invoice.rb +1 -1
- data/lib/chargebee/models/quote.rb +58 -0
- data/lib/chargebee/models/quote_entitlement.rb +11 -0
- data/lib/chargebee/models/unbilled_charge.rb +2 -2
- data/lib/chargebee/models/usage_charge.rb +18 -0
- data/lib/chargebee/models/usage_summary.rb +17 -0
- data/lib/chargebee/result.rb +25 -0
- data/lib/chargebee.rb +1 -1
- metadata +9 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f99b041261e6ff81f49129f896e4bd1e8350c1e6f92c23c342a4ddf5b8e5bd8
|
|
4
|
+
data.tar.gz: 7a06dac9b5a9369546306f8c511df5da798fbfa3ec039a7c4c0c2970ae1f7495
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e917722fab3438a697fa0e49721a43fa9b593b2f0c3303e691b117ce65219b915a31d307e543c31e55446d6608916110058ef8242d39a20f989e07b6e6fda018
|
|
7
|
+
data.tar.gz: 74ae9a35b8ebf5bb51e52d5e8d0bbe1db1d8841effaa3767c3b89757f50dd6c854c9f82dc0ac5e62022a0b2f311e7476042fcd10bb8e96b0556ffb2ba64787cf
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,146 @@
|
|
|
1
|
+
### v2.71.0 (2026-05-04)
|
|
2
|
+
* * *
|
|
3
|
+
### New Resources:
|
|
4
|
+
- [`QuoteEntitlement`](https://apidocs.chargebee.com/docs/api/quote_entitlements) has been added.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### New Actions:
|
|
8
|
+
- [`list_applicable_alerts_for_a_subscription`](https://apidocs.chargebee.com/docs/api/alerts/list-applicable-alerts-for-a-subscription) has been added to [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
9
|
+
- [`retrieve_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/retrieve-an-alert) has been added to [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
10
|
+
- [`update_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/update-an-alert) has been added to [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
11
|
+
- [`delete_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/delete-an-alert) has been added to [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
12
|
+
- [`list_alerts`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts) has been added to [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
13
|
+
- [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) has been added to [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
14
|
+
- [`list_alert_statuses_for_a_subscription`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-a-subscription) has been added to [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses).
|
|
15
|
+
- [`list_alert_statuses_for_an_alert`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-an-alert) has been added to [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses).
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### New Attributes:
|
|
19
|
+
- [`alarm_status`](https://apidocs.chargebee.com/docs/api/alert_statuses/alert-status-object#alarm_status) has been added to [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses).
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### New Parameters:
|
|
23
|
+
- [`limit`](https://apidocs.chargebee.com/docs/api/alerts/list-applicable-alerts-for-a-subscription#limit) has been added as query parameter to [`list_applicable_alerts_for_a_subscription`](https://apidocs.chargebee.com/docs/api/alerts/list-applicable-alerts-for-a-subscription) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
24
|
+
- [`offset`](https://apidocs.chargebee.com/docs/api/alerts/list-applicable-alerts-for-a-subscription#offset) has been added as query parameter to [`list_applicable_alerts_for_a_subscription`](https://apidocs.chargebee.com/docs/api/alerts/list-applicable-alerts-for-a-subscription) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
25
|
+
- [`status`](https://apidocs.chargebee.com/docs/api/alerts/list-applicable-alerts-for-a-subscription#status) has been added as query parameter to [`list_applicable_alerts_for_a_subscription`](https://apidocs.chargebee.com/docs/api/alerts/list-applicable-alerts-for-a-subscription) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
26
|
+
- [`type`](https://apidocs.chargebee.com/docs/api/alerts/list-applicable-alerts-for-a-subscription#type) has been added as query parameter to [`list_applicable_alerts_for_a_subscription`](https://apidocs.chargebee.com/docs/api/alerts/list-applicable-alerts-for-a-subscription) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
27
|
+
- [`limit`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts#limit) has been added as query parameter to [`list_alerts`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
28
|
+
- [`offset`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts#offset) has been added as query parameter to [`list_alerts`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
29
|
+
- [`id`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts#id) has been added as query parameter to [`list_alerts`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
30
|
+
- [`type`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts#type) has been added as query parameter to [`list_alerts`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
31
|
+
- [`subscription_id`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts#subscription_id) has been added as query parameter to [`list_alerts`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
32
|
+
- [`status`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts#status) has been added as query parameter to [`list_alerts`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
33
|
+
- [`limit`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-a-subscription#limit) has been added as query parameter to [`list_alert_statuses_for_a_subscription`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-a-subscription) in [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses).
|
|
34
|
+
- [`offset`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-a-subscription#offset) has been added as query parameter to [`list_alert_statuses_for_a_subscription`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-a-subscription) in [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses).
|
|
35
|
+
- [`alarm_status`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-a-subscription#alarm_status) has been added as query parameter to [`list_alert_statuses_for_a_subscription`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-a-subscription) in [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses).
|
|
36
|
+
- [`alert_id`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-a-subscription#alert_id) has been added as query parameter to [`list_alert_statuses_for_a_subscription`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-a-subscription) in [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses).
|
|
37
|
+
- [`limit`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-an-alert#limit) has been added as query parameter to [`list_alert_statuses_for_an_alert`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-an-alert) in [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses).
|
|
38
|
+
- [`offset`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-an-alert#offset) has been added as query parameter to [`list_alert_statuses_for_an_alert`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-an-alert) in [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses).
|
|
39
|
+
- [`alarm_status`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-an-alert#alarm_status) has been added as query parameter to [`list_alert_statuses_for_an_alert`](https://apidocs.chargebee.com/docs/api/alert_statuses/list-alert-statuses-for-an-alert) in [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses).
|
|
40
|
+
- [`exclude`](https://apidocs.chargebee.com/docs/api/invoices/list-invoices#exclude) has been added as query parameter to [`list_invoices`](https://apidocs.chargebee.com/docs/api/invoices/list-invoices) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
|
|
41
|
+
- [`threshold`](https://apidocs.chargebee.com/docs/api/alerts/update-an-alert#threshold) has been added as request body parameter to [`update_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/update-an-alert) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
42
|
+
- [`status`](https://apidocs.chargebee.com/docs/api/alerts/update-an-alert#status) has been added as request body parameter to [`update_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/update-an-alert) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
43
|
+
- [`threshold`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert#threshold) has been added as request body parameter to [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
44
|
+
- [`filter_conditions`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert#filter_conditions) has been added as request body parameter to [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
45
|
+
- [`type`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert#type) has been added as request body parameter to [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
46
|
+
- [`name`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert#name) has been added as request body parameter to [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
47
|
+
- [`description`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert#description) has been added as request body parameter to [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
48
|
+
- [`metered_feature_id`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert#metered_feature_id) has been added as request body parameter to [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
49
|
+
- [`subscription_id`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert#subscription_id) has been added as request body parameter to [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
50
|
+
- [`meta`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert#meta) has been added as request body parameter to [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
51
|
+
- [`defer_payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent#defer_payment_method_type) 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).
|
|
52
|
+
- [`net_term_days`](https://apidocs.chargebee.com/docs/api/quotes/edit-quote-for-charge-items-and-charges#net_term_days) has been added as request body parameter to [`edit_quote_for_charge_items_and_charges`](https://apidocs.chargebee.com/docs/api/quotes/edit-quote-for-charge-items-and-charges) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
53
|
+
- [`net_term_days`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-charge-and-charge-items#net_term_days) has been added as request body parameter to [`create_a_quote_for_charge_and_charge_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-charge-and-charge-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Deleted Attributes:
|
|
57
|
+
- `alarm_triggered_at` has been removed from [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
58
|
+
- `scope` has been removed from [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
59
|
+
- `alert_status` has been removed from [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses).
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### New Enums:
|
|
63
|
+
- `within_limit` and `in_alarm` have been added as new values enum `AlarmStatus`.
|
|
64
|
+
- `moyasar` and `payway` have been added as new values enum `Gateway`.
|
|
65
|
+
- `absolute` and `percentage` have been added as new values enum `Mode`.
|
|
66
|
+
- `twint`, `go_pay`, `grab_pay`, `pay_co`, `after_pay`, `swish`, and `payme` have been added as new values enum `PaymentMethod`.
|
|
67
|
+
- `twint`, `go_pay`, `grab_pay`, `pay_co`, `after_pay`, `swish`, and `payme` have been added as new values enum `PaymentMethodType`.
|
|
68
|
+
- `twint`, `go_pay`, `grab_pay`, `pay_co`, `after_pay`, `swish`, and `payme` have been added as new values enum `Type`.
|
|
69
|
+
- `mada` has been added as a new value to enum attribute [`card_type`](https://apidocs.chargebee.com/docs/api/cards/card-object#card_type) in [`Card`](https://apidocs.chargebee.com/docs/api/cards).
|
|
70
|
+
- `rate_limited` has been added as a new value to enum attribute [`webhook_status`](https://apidocs.chargebee.com/docs/api/events/event-object#webhook_status) in [`Event`](https://apidocs.chargebee.com/docs/api/events).
|
|
71
|
+
- `twint`, `go_pay`, `grab_pay`, `pay_co`, `after_pay`, `swish`, and `payme` 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).
|
|
72
|
+
- `twint`, `go_pay`, `grab_pay`, `pay_co`, `after_pay`, `swish`, and `payme` 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).
|
|
73
|
+
- `mada` has been added as a new value to enum attribute [`card.brand`](https://apidocs.chargebee.com/docs/api/payment_sources/payment-source-object#card_brand) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources).
|
|
74
|
+
- `plan_price`, `addon_price`, `charge_price`, and `charge` have been added as new values to enum attribute [`entity_type`](https://apidocs.chargebee.com/docs/api/quote_entitlements/quote-entitlement-object#entity_type) in [`QuoteEntitlement`](https://apidocs.chargebee.com/docs/api/quote_entitlements).
|
|
75
|
+
- `disabled` and `enabled` have been added as new values to enum query parameter `status.is` in [`list_applicable_alerts_for_a_subscription`](https://apidocs.chargebee.com/docs/api/alerts/list-applicable-alerts-for-a-subscription) of [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
76
|
+
- `enabled` and `disabled` have been added as new values to enum request body parameter `status` in [`update_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/update-an-alert) of [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
77
|
+
- `disabled` and `enabled` have been added as new values to enum query parameter `status.is` in [`list_alerts`](https://apidocs.chargebee.com/docs/api/alerts/list-alerts) of [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
78
|
+
- `plan_price_id` has been added as a new value to enum request body parameter `filter_conditions.field` in [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) of [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
79
|
+
- `not_equals` and `equals` have been added as new values to enum request body parameter `filter_conditions.operator` in [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) of [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
80
|
+
- `rate_limited` has been added as a new value to enum query parameter `webhook_status.is` in [`list_events`](https://apidocs.chargebee.com/docs/api/events/list-events) of [`Event`](https://apidocs.chargebee.com/docs/api/events).
|
|
81
|
+
- `rate_limited` has been added as a new value to enum query parameter `webhook_status.is_not` in [`list_events`](https://apidocs.chargebee.com/docs/api/events/list-events) of [`Event`](https://apidocs.chargebee.com/docs/api/events).
|
|
82
|
+
- `rate_limited` has been added as a new value to enum query parameter `webhook_status.in` in [`list_events`](https://apidocs.chargebee.com/docs/api/events/list-events) of [`Event`](https://apidocs.chargebee.com/docs/api/events).
|
|
83
|
+
- `rate_limited` has been added as a new value to enum query parameter `webhook_status.not_in` in [`list_events`](https://apidocs.chargebee.com/docs/api/events/list-events) of [`Event`](https://apidocs.chargebee.com/docs/api/events).
|
|
84
|
+
- `twint`, `go_pay`, `grab_pay`, `pay_co`, `after_pay`, `swish`, and `payme` 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).
|
|
85
|
+
- `twint`, `go_pay`, `grab_pay`, `pay_co`, `after_pay`, `swish`, and `payme` 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).
|
|
86
|
+
- `mada` has been added as a new value to enum request body parameter `card.brand` in [`create_using_permanent_token`](https://apidocs.chargebee.com/docs/api/payment_sources/create-using-permanent-token) of [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources).
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### v2.70.0 (2026-03-27)
|
|
91
|
+
* * *
|
|
92
|
+
### New Resources:
|
|
93
|
+
- [`Alert`](https://apidocs.chargebee.com/docs/api/alerts) has been added.
|
|
94
|
+
- [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses) has been added.
|
|
95
|
+
- [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures) has been added.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### New Actions:
|
|
99
|
+
- [`update_a_quote_signature_status`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature-status) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
100
|
+
- [`update_a_quote_signature`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
101
|
+
- [`retrieve_a_quote_signature_signed_pdf`](https://apidocs.chargebee.com/docs/api/quotes/retrieve-a-quote-signature-signed-pdf) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
102
|
+
- [`retrieve_a_quote_signature`](https://apidocs.chargebee.com/docs/api/quotes/retrieve-a-quote-signature) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
103
|
+
- [`create_a_quote_signature`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-signature) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
104
|
+
- [`refresh_a_quote_signature_link`](https://apidocs.chargebee.com/docs/api/quotes/refresh-a-quote-signature-link) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### New Attributes:
|
|
108
|
+
- [`reference_id`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#reference_id) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices).
|
|
109
|
+
- [`provider_references`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#provider_references) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices).
|
|
110
|
+
- [`created_at`](https://apidocs.chargebee.com/docs/api/unbilled_charges/unbilled-charge-object#created_at) has been added to [`UnbilledCharge`](https://apidocs.chargebee.com/docs/api/unbilled_charges).
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### New Parameters:
|
|
114
|
+
- [`include_usage_charges`](https://apidocs.chargebee.com/docs/api/estimates/upcoming-invoices-estimate#include_usage_charges) has been added as query parameter to [`upcoming_invoices_estimate`](https://apidocs.chargebee.com/docs/api/estimates/upcoming-invoices-estimate) in [`Estimate`](https://apidocs.chargebee.com/docs/api/estimates).
|
|
115
|
+
- [`business_entity_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/manage-payment-sources#business_entity_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).
|
|
116
|
+
- [`cpq_quote_signature`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature-status#cpq_quote_signature) has been added as request body parameter to [`update_a_quote_signature_status`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature-status) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
117
|
+
- [`gateway_account_id`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts/create-a-virtual-bank-account#gateway_account_id) has been added as request body parameter to [`create_a_virtual_bank_account`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts/create-a-virtual-bank-account) in [`VirtualBankAccount`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts).
|
|
118
|
+
- [`gateway_account_id`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts/create-a-virtual-bank-account-using-permanent-token#gateway_account_id) has been added as request body parameter to [`create_a_virtual_bank_account_using_permanent_token`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts/create-a-virtual-bank-account-using-permanent-token) in [`VirtualBankAccount`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts).
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### New Events:
|
|
122
|
+
- [`alert_status_changed`](https://apidocs.chargebee.com/docs/api/events/webhook/alert_status_changed) has been added.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### New Enums:
|
|
126
|
+
- `alert_status` has been added as a new value enum `EntityType`.
|
|
127
|
+
- `alert_status_changed` has been added as a new value enum `EventType`.
|
|
128
|
+
- `pix` has been added as a new value enum `PaymentMethod`.
|
|
129
|
+
- `pix` has been added as a new value enum `PaymentMethodType`.
|
|
130
|
+
- `pix` and `usage_exceeded` have been added as new values enum `Type`.
|
|
131
|
+
- `enabled` and `disabled` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/alerts/alert-object#status) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
132
|
+
- `global` and `subscription` have been added as new values to enum attribute [`scope`](https://apidocs.chargebee.com/docs/api/alerts/alert-object#scope) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
|
|
133
|
+
- `draft`, `active`, `signed`, `expired`, `cancelled`, and `declined` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures/cpq-quote-signature-object#status) in [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures).
|
|
134
|
+
- `esign_and_pay`, `esign`, and `pay` have been added as new values to enum attribute [`customer_acceptance_method`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures/cpq-quote-signature-object#customer_acceptance_method) in [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures).
|
|
135
|
+
- `consolidated` and `detailed` have been added as new values to enum attribute [`quote_type`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures/cpq-quote-signature-object#quote_type) in [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures).
|
|
136
|
+
- `pix` has been added as a new value 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).
|
|
137
|
+
- `pix` has been added as a new value 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).
|
|
138
|
+
- `pix` has been added as a new value 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).
|
|
139
|
+
- `pix` has been added as a new value 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).
|
|
140
|
+
- `expired`, `declined`, `draft`, `active`, `signed`, and `cancelled` have been added as new values to enum request body parameter `cpq_quote_signature.status` in [`update_a_quote_signature_status`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature-status) of [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
1
144
|
### v2.69.0 (2026-03-02)
|
|
2
145
|
* * *
|
|
3
146
|
### New Resources:
|
data/Gemfile.lock
CHANGED
data/Makefile
CHANGED
|
@@ -99,6 +99,8 @@ format:
|
|
|
99
99
|
@echo "Formatter not configured."
|
|
100
100
|
|
|
101
101
|
update-manifest:
|
|
102
|
+
@echo "Staging new model files..."
|
|
103
|
+
@git add lib/chargebee/models/ lib/chargebee.rb lib/chargebee/result.rb 2>/dev/null || true
|
|
102
104
|
@echo "Updating file manifest in $(GEMSPEC_FILE)..."
|
|
103
105
|
@$(RUBY) -e \
|
|
104
106
|
'files = `git ls-files`.split("\n").sort \
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.71.0
|
data/chargebee.gemspec
CHANGED
|
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
|
|
|
4
4
|
s.rubygems_version = '1.3.5'
|
|
5
5
|
s.required_ruby_version = '>= 1.9.3'
|
|
6
6
|
s.name = 'chargebee'
|
|
7
|
-
s.version = '2.
|
|
8
|
-
s.date = '2026-
|
|
7
|
+
s.version = '2.71.0'
|
|
8
|
+
s.date = '2026-05-04'
|
|
9
9
|
s.summary = "Ruby client for Chargebee API."
|
|
10
10
|
s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
|
|
11
11
|
s.metadata = {
|
|
@@ -45,6 +45,8 @@ Gem::Specification.new do |s|
|
|
|
45
45
|
lib/chargebee/models/addon.rb
|
|
46
46
|
lib/chargebee/models/address.rb
|
|
47
47
|
lib/chargebee/models/advance_invoice_schedule.rb
|
|
48
|
+
lib/chargebee/models/alert.rb
|
|
49
|
+
lib/chargebee/models/alert_status.rb
|
|
48
50
|
lib/chargebee/models/attached_item.rb
|
|
49
51
|
lib/chargebee/models/attribute.rb
|
|
50
52
|
lib/chargebee/models/billing_configuration.rb
|
|
@@ -59,6 +61,7 @@ Gem::Specification.new do |s|
|
|
|
59
61
|
lib/chargebee/models/coupon.rb
|
|
60
62
|
lib/chargebee/models/coupon_code.rb
|
|
61
63
|
lib/chargebee/models/coupon_set.rb
|
|
64
|
+
lib/chargebee/models/cpq_quote_signature.rb
|
|
62
65
|
lib/chargebee/models/credit_note.rb
|
|
63
66
|
lib/chargebee/models/credit_note_estimate.rb
|
|
64
67
|
lib/chargebee/models/csv_tax_rule.rb
|
|
@@ -75,6 +78,7 @@ Gem::Specification.new do |s|
|
|
|
75
78
|
lib/chargebee/models/event.rb
|
|
76
79
|
lib/chargebee/models/export.rb
|
|
77
80
|
lib/chargebee/models/feature.rb
|
|
81
|
+
lib/chargebee/models/filter_condition.rb
|
|
78
82
|
lib/chargebee/models/gateway_error_detail.rb
|
|
79
83
|
lib/chargebee/models/gift.rb
|
|
80
84
|
lib/chargebee/models/hierarchy.rb
|
|
@@ -118,6 +122,7 @@ Gem::Specification.new do |s|
|
|
|
118
122
|
lib/chargebee/models/promotional_credit.rb
|
|
119
123
|
lib/chargebee/models/purchase.rb
|
|
120
124
|
lib/chargebee/models/quote.rb
|
|
125
|
+
lib/chargebee/models/quote_entitlement.rb
|
|
121
126
|
lib/chargebee/models/quote_line_group.rb
|
|
122
127
|
lib/chargebee/models/quoted_charge.rb
|
|
123
128
|
lib/chargebee/models/quoted_delta_ramp.rb
|
|
@@ -140,8 +145,10 @@ Gem::Specification.new do |s|
|
|
|
140
145
|
lib/chargebee/models/transaction.rb
|
|
141
146
|
lib/chargebee/models/unbilled_charge.rb
|
|
142
147
|
lib/chargebee/models/usage.rb
|
|
148
|
+
lib/chargebee/models/usage_charge.rb
|
|
143
149
|
lib/chargebee/models/usage_event.rb
|
|
144
150
|
lib/chargebee/models/usage_file.rb
|
|
151
|
+
lib/chargebee/models/usage_summary.rb
|
|
145
152
|
lib/chargebee/models/virtual_bank_account.rb
|
|
146
153
|
lib/chargebee/models/webhook_endpoint.rb
|
|
147
154
|
lib/chargebee/native_request.rb
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class Alert < Model
|
|
3
|
+
|
|
4
|
+
attr_accessor :id, :type, :name, :description, :metered_feature_id, :subscription_id, :status,
|
|
5
|
+
:meta, :created_at, :updated_at
|
|
6
|
+
|
|
7
|
+
# OPERATIONS
|
|
8
|
+
#-----------
|
|
9
|
+
|
|
10
|
+
def self.create(params, env=nil, headers={})
|
|
11
|
+
jsonKeys = {
|
|
12
|
+
}
|
|
13
|
+
options = {
|
|
14
|
+
:isIdempotent => true
|
|
15
|
+
}
|
|
16
|
+
Request.send('post', uri_path("alerts"), params, env, headers,nil, false, jsonKeys, options)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def self.retrieve(id, env=nil, headers={})
|
|
20
|
+
jsonKeys = {
|
|
21
|
+
}
|
|
22
|
+
options = {}
|
|
23
|
+
Request.send('get', uri_path("alerts",id.to_s), {}, env, headers,nil, false, jsonKeys, options)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.list(params={}, env=nil, headers={})
|
|
27
|
+
jsonKeys = {
|
|
28
|
+
}
|
|
29
|
+
options = {}
|
|
30
|
+
Request.send_list_request('get', uri_path("alerts"), params, env, headers,nil, false, jsonKeys, options)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def self.update(id, params={}, env=nil, headers={})
|
|
34
|
+
jsonKeys = {
|
|
35
|
+
}
|
|
36
|
+
options = {
|
|
37
|
+
:isIdempotent => true
|
|
38
|
+
}
|
|
39
|
+
Request.send('post', uri_path("alerts",id.to_s), params, env, headers,nil, false, jsonKeys, options)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def self.delete(id, env=nil, headers={})
|
|
43
|
+
jsonKeys = {
|
|
44
|
+
}
|
|
45
|
+
options = {
|
|
46
|
+
:isIdempotent => true
|
|
47
|
+
}
|
|
48
|
+
Request.send('post', uri_path("alerts",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def self.application_alerts_for_subscription(id, params={}, env=nil, headers={})
|
|
52
|
+
jsonKeys = {
|
|
53
|
+
}
|
|
54
|
+
options = {}
|
|
55
|
+
Request.send('get', uri_path("subscriptions",id.to_s,"applicable_alerts"), params, env, headers,nil, false, jsonKeys, options)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
end # ~Alert
|
|
59
|
+
end # ~ChargeBee
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class AlertStatus < Model
|
|
3
|
+
|
|
4
|
+
attr_accessor :alert_id, :subscription_id, :alarm_status, :alarm_triggered_at
|
|
5
|
+
|
|
6
|
+
# OPERATIONS
|
|
7
|
+
#-----------
|
|
8
|
+
|
|
9
|
+
def self.alert_statuses_for_subscription(id, params={}, env=nil, headers={})
|
|
10
|
+
jsonKeys = {
|
|
11
|
+
}
|
|
12
|
+
options = {}
|
|
13
|
+
Request.send('get', uri_path("subscriptions",id.to_s,"alert_statuses"), params, env, headers,nil, false, jsonKeys, options)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.alert_statuses_for_alert(id, params={}, env=nil, headers={})
|
|
17
|
+
jsonKeys = {
|
|
18
|
+
}
|
|
19
|
+
options = {}
|
|
20
|
+
Request.send('get', uri_path("alerts",id.to_s,"alert_statuses"), params, env, headers,nil, false, jsonKeys, options)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
end # ~AlertStatus
|
|
24
|
+
end # ~ChargeBee
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class CpqQuoteSignature < Model
|
|
3
|
+
|
|
4
|
+
attr_accessor :id, :status, :name, :document_name, :customer_acceptance_method, :quote_type,
|
|
5
|
+
:expires_at, :timezone, :provider_request_id, :provider_document_id, :created_at, :modified_at
|
|
6
|
+
|
|
7
|
+
# OPERATIONS
|
|
8
|
+
#-----------
|
|
9
|
+
|
|
10
|
+
end # ~CpqQuoteSignature
|
|
11
|
+
end # ~ChargeBee
|
|
@@ -73,11 +73,11 @@ module ChargeBee
|
|
|
73
73
|
Request.send('post', uri_path("subscriptions",id.to_s,"regenerate_invoice_estimate"), params, env, headers,nil, false, jsonKeys, options)
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
def self.upcoming_invoices_estimate(id, env=nil, headers={})
|
|
76
|
+
def self.upcoming_invoices_estimate(id, params={}, env=nil, headers={})
|
|
77
77
|
jsonKeys = {
|
|
78
78
|
}
|
|
79
79
|
options = {}
|
|
80
|
-
Request.send('get', uri_path("customers",id.to_s,"upcoming_invoices_estimate"),
|
|
80
|
+
Request.send('get', uri_path("customers",id.to_s,"upcoming_invoices_estimate"), params, env, headers,nil, false, jsonKeys, options)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
def self.change_term_end(id, params, env=nil, headers={})
|
|
@@ -218,5 +218,63 @@ module ChargeBee
|
|
|
218
218
|
Request.send('post', uri_path("quotes",id.to_s,"pdf"), params, env, headers,nil, false, jsonKeys, options)
|
|
219
219
|
end
|
|
220
220
|
|
|
221
|
+
# @deprecated This method is deprecated and will be removed in a future version.
|
|
222
|
+
def self.retrieve_signature(id, env=nil, headers={})
|
|
223
|
+
jsonKeys = {
|
|
224
|
+
}
|
|
225
|
+
options = {}
|
|
226
|
+
Request.send('get', uri_path("quotes",id.to_s,"retrieve_signature"), {}, env, headers,nil, false, jsonKeys, options)
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# @deprecated This method is deprecated and will be removed in a future version.
|
|
230
|
+
def self.retrieve_signed_pdf(id, env=nil, headers={})
|
|
231
|
+
jsonKeys = {
|
|
232
|
+
}
|
|
233
|
+
options = {
|
|
234
|
+
:isIdempotent => true
|
|
235
|
+
}
|
|
236
|
+
Request.send('post', uri_path("quotes",id.to_s,"retrieve_signed_pdf"), {}, env, headers,nil, false, jsonKeys, options)
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# @deprecated This method is deprecated and will be removed in a future version.
|
|
240
|
+
def self.create_signature(id, env=nil, headers={})
|
|
241
|
+
jsonKeys = {
|
|
242
|
+
}
|
|
243
|
+
options = {
|
|
244
|
+
:isIdempotent => true
|
|
245
|
+
}
|
|
246
|
+
Request.send('post', uri_path("quotes",id.to_s,"create_signature"), {}, env, headers,nil, false, jsonKeys, options)
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# @deprecated This method is deprecated and will be removed in a future version.
|
|
250
|
+
def self.update_signature(id, env=nil, headers={})
|
|
251
|
+
jsonKeys = {
|
|
252
|
+
}
|
|
253
|
+
options = {
|
|
254
|
+
:isIdempotent => true
|
|
255
|
+
}
|
|
256
|
+
Request.send('post', uri_path("quotes",id.to_s,"update_signature"), {}, env, headers,nil, false, jsonKeys, options)
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# @deprecated This method is deprecated and will be removed in a future version.
|
|
260
|
+
def self.update_signature_status(id, params={}, env=nil, headers={})
|
|
261
|
+
jsonKeys = {
|
|
262
|
+
}
|
|
263
|
+
options = {
|
|
264
|
+
:isIdempotent => true
|
|
265
|
+
}
|
|
266
|
+
Request.send('post', uri_path("quotes",id.to_s,"update_signature_status"), params, env, headers,nil, false, jsonKeys, options)
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# @deprecated This method is deprecated and will be removed in a future version.
|
|
270
|
+
def self.refresh_signature_link(id, env=nil, headers={})
|
|
271
|
+
jsonKeys = {
|
|
272
|
+
}
|
|
273
|
+
options = {
|
|
274
|
+
:isIdempotent => true
|
|
275
|
+
}
|
|
276
|
+
Request.send('post', uri_path("quotes",id.to_s,"refresh_signature_link"), {}, env, headers,nil, false, jsonKeys, options)
|
|
277
|
+
end
|
|
278
|
+
|
|
221
279
|
end # ~Quote
|
|
222
280
|
end # ~ChargeBee
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class QuoteEntitlement < Model
|
|
3
|
+
|
|
4
|
+
attr_accessor :entity_id, :entity_type, :feature_id, :value, :is_enabled, :start_date, :end_date,
|
|
5
|
+
:created_at, :modified_at
|
|
6
|
+
|
|
7
|
+
# OPERATIONS
|
|
8
|
+
#-----------
|
|
9
|
+
|
|
10
|
+
end # ~QuoteEntitlement
|
|
11
|
+
end # ~ChargeBee
|
|
@@ -7,8 +7,8 @@ module ChargeBee
|
|
|
7
7
|
|
|
8
8
|
attr_accessor :id, :customer_id, :subscription_id, :date_from, :date_to, :unit_amount, :pricing_model,
|
|
9
9
|
:quantity, :amount, :currency_code, :discount_amount, :description, :entity_type, :entity_id,
|
|
10
|
-
:is_voided, :voided_at, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :
|
|
11
|
-
:tiers, :is_advance_charge, :business_entity_id, :deleted
|
|
10
|
+
:is_voided, :voided_at, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :created_at,
|
|
11
|
+
:updated_at, :tiers, :is_advance_charge, :business_entity_id, :deleted
|
|
12
12
|
|
|
13
13
|
# OPERATIONS
|
|
14
14
|
#-----------
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class UsageCharge < Model
|
|
3
|
+
|
|
4
|
+
attr_accessor :subscription_id, :feature_id, :included_usage, :total_usage, :on_demand_usage,
|
|
5
|
+
:metered_item_price_id, :amount, :currency_code, :usage_from, :usage_to
|
|
6
|
+
|
|
7
|
+
# OPERATIONS
|
|
8
|
+
#-----------
|
|
9
|
+
|
|
10
|
+
def self.retrieve_usage_charges_for_subscription(id, params={}, env=nil, headers={})
|
|
11
|
+
jsonKeys = {
|
|
12
|
+
}
|
|
13
|
+
options = {}
|
|
14
|
+
Request.send('get', uri_path("subscriptions",id.to_s,"usage_charges"), params, env, headers,nil, false, jsonKeys, options)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
end # ~UsageCharge
|
|
18
|
+
end # ~ChargeBee
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class UsageSummary < Model
|
|
3
|
+
|
|
4
|
+
attr_accessor :subscription_id, :feature_id, :aggregated_value, :aggregated_from, :aggregated_to
|
|
5
|
+
|
|
6
|
+
# OPERATIONS
|
|
7
|
+
#-----------
|
|
8
|
+
|
|
9
|
+
def self.retrieve_usage_summary_for_subscription(id, params, env=nil, headers={})
|
|
10
|
+
jsonKeys = {
|
|
11
|
+
}
|
|
12
|
+
options = {}
|
|
13
|
+
Request.send('get', uri_path("subscriptions",id.to_s,"usage_summary"), params, env, headers,nil, false, jsonKeys, options)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
end # ~UsageSummary
|
|
17
|
+
end # ~ChargeBee
|
data/lib/chargebee/result.rb
CHANGED
|
@@ -230,6 +230,16 @@ module ChargeBee
|
|
|
230
230
|
return quote_line_group;
|
|
231
231
|
end
|
|
232
232
|
|
|
233
|
+
def quote_entitlement()
|
|
234
|
+
quote_entitlement = get(:quote_entitlement, QuoteEntitlement);
|
|
235
|
+
return quote_entitlement;
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
def cpq_quote_signature()
|
|
239
|
+
cpq_quote_signature = get(:cpq_quote_signature, CpqQuoteSignature);
|
|
240
|
+
return cpq_quote_signature;
|
|
241
|
+
end
|
|
242
|
+
|
|
233
243
|
def plan()
|
|
234
244
|
plan = get(:plan, Plan,
|
|
235
245
|
{:tiers => Plan::Tier, :tax_providers_fields => Plan::TaxProvidersField, :applicable_addons => Plan::ApplicableAddon, :attached_addons => Plan::AttachedAddon, :event_based_addons => Plan::EventBasedAddon});
|
|
@@ -573,6 +583,21 @@ module ChargeBee
|
|
|
573
583
|
return usage_charge;
|
|
574
584
|
end
|
|
575
585
|
|
|
586
|
+
def alert()
|
|
587
|
+
alert = get(:alert, Alert);
|
|
588
|
+
return alert;
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
def filter_condition()
|
|
592
|
+
filter_condition = get(:filter_condition, FilterCondition);
|
|
593
|
+
return filter_condition;
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
def alert_status()
|
|
597
|
+
alert_status = get(:alert_status, AlertStatus);
|
|
598
|
+
return alert_status;
|
|
599
|
+
end
|
|
600
|
+
|
|
576
601
|
def impacted_customer()
|
|
577
602
|
impacted_customer = get(:impacted_customer, ImpactedCustomer,
|
|
578
603
|
{:download => ImpactedCustomer::Download});
|
data/lib/chargebee.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chargebee
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.71.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rajaraman S
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-
|
|
12
|
+
date: 2026-05-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: cgi
|
|
@@ -86,6 +86,8 @@ files:
|
|
|
86
86
|
- lib/chargebee/models/addon.rb
|
|
87
87
|
- lib/chargebee/models/address.rb
|
|
88
88
|
- lib/chargebee/models/advance_invoice_schedule.rb
|
|
89
|
+
- lib/chargebee/models/alert.rb
|
|
90
|
+
- lib/chargebee/models/alert_status.rb
|
|
89
91
|
- lib/chargebee/models/attached_item.rb
|
|
90
92
|
- lib/chargebee/models/attribute.rb
|
|
91
93
|
- lib/chargebee/models/billing_configuration.rb
|
|
@@ -100,6 +102,7 @@ files:
|
|
|
100
102
|
- lib/chargebee/models/coupon.rb
|
|
101
103
|
- lib/chargebee/models/coupon_code.rb
|
|
102
104
|
- lib/chargebee/models/coupon_set.rb
|
|
105
|
+
- lib/chargebee/models/cpq_quote_signature.rb
|
|
103
106
|
- lib/chargebee/models/credit_note.rb
|
|
104
107
|
- lib/chargebee/models/credit_note_estimate.rb
|
|
105
108
|
- lib/chargebee/models/csv_tax_rule.rb
|
|
@@ -116,6 +119,7 @@ files:
|
|
|
116
119
|
- lib/chargebee/models/event.rb
|
|
117
120
|
- lib/chargebee/models/export.rb
|
|
118
121
|
- lib/chargebee/models/feature.rb
|
|
122
|
+
- lib/chargebee/models/filter_condition.rb
|
|
119
123
|
- lib/chargebee/models/gateway_error_detail.rb
|
|
120
124
|
- lib/chargebee/models/gift.rb
|
|
121
125
|
- lib/chargebee/models/hierarchy.rb
|
|
@@ -159,6 +163,7 @@ files:
|
|
|
159
163
|
- lib/chargebee/models/promotional_credit.rb
|
|
160
164
|
- lib/chargebee/models/purchase.rb
|
|
161
165
|
- lib/chargebee/models/quote.rb
|
|
166
|
+
- lib/chargebee/models/quote_entitlement.rb
|
|
162
167
|
- lib/chargebee/models/quote_line_group.rb
|
|
163
168
|
- lib/chargebee/models/quoted_charge.rb
|
|
164
169
|
- lib/chargebee/models/quoted_delta_ramp.rb
|
|
@@ -181,8 +186,10 @@ files:
|
|
|
181
186
|
- lib/chargebee/models/transaction.rb
|
|
182
187
|
- lib/chargebee/models/unbilled_charge.rb
|
|
183
188
|
- lib/chargebee/models/usage.rb
|
|
189
|
+
- lib/chargebee/models/usage_charge.rb
|
|
184
190
|
- lib/chargebee/models/usage_event.rb
|
|
185
191
|
- lib/chargebee/models/usage_file.rb
|
|
192
|
+
- lib/chargebee/models/usage_summary.rb
|
|
186
193
|
- lib/chargebee/models/virtual_bank_account.rb
|
|
187
194
|
- lib/chargebee/models/webhook_endpoint.rb
|
|
188
195
|
- lib/chargebee/native_request.rb
|