chargebee 2.68.0 → 2.69.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 +29 -0
- data/Gemfile.lock +1 -1
- data/Makefile +112 -0
- data/VERSION +1 -0
- data/chargebee.gemspec +4 -2
- data/lib/chargebee/models/quoted_subscription.rb +2 -2
- data/lib/chargebee/result.rb +10 -0
- data/lib/chargebee.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3294097131db3c1a50de793973541773f48750617de6d527b45ad4ce4ffa0a36
|
|
4
|
+
data.tar.gz: b277f2211a7c788bf91772b72242ca10697d28c407a3f456fd0771e6440809a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c56325ba3306da1b8ea933116ca444fbbc6ec2334f0dea6093d33625b416a1724b38fb885bbe07c2c7ab77ca1d6d0178884952a0c6e8dc2832ecac7bf29e11a
|
|
7
|
+
data.tar.gz: 4361feee0c20cce1b9f74e04538d5c2856e74fbad5c5fcd875e4f5c20d719b9c8b4320a17b297bd2216e305638afee80907bc3079a8768a12e9fd6a39002527f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
### v2.69.0 (2026-03-02)
|
|
2
|
+
* * *
|
|
3
|
+
### New Resources:
|
|
4
|
+
- [`UsageCharge`](https://apidocs.chargebee.com/docs/api/usage_charges) has been added.
|
|
5
|
+
- [`UsageSummary`](https://apidocs.chargebee.com/docs/api/usage_summaries) has been added.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### New Attributes:
|
|
9
|
+
- [`free_period`](https://apidocs.chargebee.com/docs/api/quoted_subscriptions/quoted-subscription-object#free_period) has been added to [`QuotedSubscription`](https://apidocs.chargebee.com/docs/api/quoted_subscriptions).
|
|
10
|
+
- [`free_period_unit`](https://apidocs.chargebee.com/docs/api/quoted_subscriptions/quoted-subscription-object#free_period_unit) has been added to [`QuotedSubscription`](https://apidocs.chargebee.com/docs/api/quoted_subscriptions).
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### New Parameters:
|
|
14
|
+
- [`net_term_days`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges#net_term_days) has been added as request body parameter to [`create_invoice_for_items_and_one-time_charges`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
|
|
15
|
+
- [`contract_term`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-existing-subscription#contract_term) has been added as request body parameter to [`create_pricing_page_for_existing_subscription`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-existing-subscription) in [`PricingPageSession`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions).
|
|
16
|
+
- [`contract_term`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-new-subscription#contract_term) 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).
|
|
17
|
+
- [`subscription.free_period`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items#subscription_free_period) has been added as request body parameter to [`create_a_quote_for_a_new_subscription_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
18
|
+
- [`subscription.free_period_unit`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items#subscription_free_period_unit) has been added as request body parameter to [`create_a_quote_for_a_new_subscription_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
19
|
+
- [`subscription.free_period`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items#subscription_free_period) has been added as request body parameter to [`edit_create_subscription_quote_for_items`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
20
|
+
- [`subscription.free_period_unit`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items#subscription_free_period_unit) has been added as request body parameter to [`edit_create_subscription_quote_for_items`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### New Enums:
|
|
24
|
+
- `month`, `week`, `day`, `hour`, and `minute` have been added as new values enum `WindowSize`.
|
|
25
|
+
- `cancel`, `renew_once`, `renew`, and `evergreen` have been added as new values to enum request body parameter `contract_term.action_at_term_end` in [`create_pricing_page_for_existing_subscription`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-existing-subscription) of [`PricingPageSession`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions).
|
|
26
|
+
- `cancel`, `renew_once`, `renew`, and `evergreen` have been added as new values to enum request body parameter `contract_term.action_at_term_end` in [`create_pricing_page_for_new_subscription`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions/create-pricing-page-for-new-subscription) of [`PricingPageSession`](https://apidocs.chargebee.com/docs/api/pricing_page_sessions).
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
1
30
|
### v2.68.0 (2026-02-06)
|
|
2
31
|
* * *
|
|
3
32
|
### New Attributes:
|
data/Gemfile.lock
CHANGED
data/Makefile
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
.PHONY: update-version increment-major increment-minor increment-patch test build clean install check format
|
|
2
|
+
|
|
3
|
+
# Version file location
|
|
4
|
+
VERSION_FILE := VERSION
|
|
5
|
+
GEMSPEC_FILE := chargebee.gemspec
|
|
6
|
+
LIB_FILE := lib/chargebee.rb
|
|
7
|
+
|
|
8
|
+
# Ruby commands
|
|
9
|
+
RUBY := ruby
|
|
10
|
+
GEM := gem
|
|
11
|
+
BUNDLE := bundle
|
|
12
|
+
RSPEC := bundle exec rspec
|
|
13
|
+
|
|
14
|
+
update-version:
|
|
15
|
+
@echo "$(VERSION)" > $(VERSION_FILE)
|
|
16
|
+
@perl -pi -e 's|s\.version\s*=\s*'\''[.\-\d\w]+'\''|s.version = '\''$(VERSION)'\''|' $(GEMSPEC_FILE)
|
|
17
|
+
@perl -pi -e 's|VERSION = '\''[.\-\d\w]+'\''|VERSION = '\''$(VERSION)'\''|' $(LIB_FILE)
|
|
18
|
+
@perl -pi -e "s|s\\.date\\s*=\\s*'[^']*'|s.date = '$(shell date +%Y-%m-%d)'|" $(GEMSPEC_FILE)
|
|
19
|
+
@echo "Updated version to $(VERSION) and date to $(shell date +%Y-%m-%d)"
|
|
20
|
+
@if [ -f "Gemfile.lock" ]; then \
|
|
21
|
+
echo "Updating Gemfile.lock..."; \
|
|
22
|
+
$(BUNDLE) install --quiet; \
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
increment-major:
|
|
26
|
+
$(eval CURRENT := $(shell cat $(VERSION_FILE)))
|
|
27
|
+
$(eval MAJOR := $(shell echo $(CURRENT) | cut -d. -f1))
|
|
28
|
+
$(eval NEW_VERSION := $(shell echo $$(($(MAJOR) + 1)).0.0))
|
|
29
|
+
@$(MAKE) update-version VERSION=$(NEW_VERSION)
|
|
30
|
+
@echo "Version bumped from $(CURRENT) to $(NEW_VERSION)"
|
|
31
|
+
|
|
32
|
+
increment-minor:
|
|
33
|
+
$(eval CURRENT := $(shell cat $(VERSION_FILE)))
|
|
34
|
+
$(eval MAJOR := $(shell echo $(CURRENT) | cut -d. -f1))
|
|
35
|
+
$(eval MINOR := $(shell echo $(CURRENT) | cut -d. -f2))
|
|
36
|
+
$(eval NEW_VERSION := $(MAJOR).$(shell echo $$(($(MINOR) + 1))).0)
|
|
37
|
+
@$(MAKE) update-version VERSION=$(NEW_VERSION)
|
|
38
|
+
@echo "Version bumped from $(CURRENT) to $(NEW_VERSION)"
|
|
39
|
+
|
|
40
|
+
increment-patch:
|
|
41
|
+
$(eval CURRENT := $(shell cat $(VERSION_FILE)))
|
|
42
|
+
$(eval MAJOR := $(shell echo $(CURRENT) | cut -d. -f1))
|
|
43
|
+
$(eval MINOR := $(shell echo $(CURRENT) | cut -d. -f2))
|
|
44
|
+
$(eval PATCH := $(shell echo $(CURRENT) | cut -d. -f3))
|
|
45
|
+
$(eval NEW_VERSION := $(MAJOR).$(MINOR).$(shell echo $$(($(PATCH) + 1))))
|
|
46
|
+
@$(MAKE) update-version VERSION=$(NEW_VERSION)
|
|
47
|
+
@echo "Version bumped from $(CURRENT) to $(NEW_VERSION)"
|
|
48
|
+
|
|
49
|
+
install:
|
|
50
|
+
@echo "Installing dependencies..."
|
|
51
|
+
@$(BUNDLE) install --without development
|
|
52
|
+
|
|
53
|
+
install-dev:
|
|
54
|
+
@echo "Installing development dependencies..."
|
|
55
|
+
@$(BUNDLE) install
|
|
56
|
+
|
|
57
|
+
test:
|
|
58
|
+
@echo "Running tests..."
|
|
59
|
+
@$(RSPEC)
|
|
60
|
+
|
|
61
|
+
validate:
|
|
62
|
+
@echo "Validating gemspec..."
|
|
63
|
+
@$(GEM) build $(GEMSPEC_FILE) --strict --verbose > /dev/null
|
|
64
|
+
@rm -f *.gem
|
|
65
|
+
@echo "Gemspec is valid"
|
|
66
|
+
|
|
67
|
+
check: test
|
|
68
|
+
@echo "All checks passed!"
|
|
69
|
+
|
|
70
|
+
build: clean update-manifest
|
|
71
|
+
@echo "Building gem..."
|
|
72
|
+
@$(GEM) build $(GEMSPEC_FILE)
|
|
73
|
+
|
|
74
|
+
clean:
|
|
75
|
+
@echo "Cleaning build artifacts..."
|
|
76
|
+
@rm -f *.gem
|
|
77
|
+
@rm -rf pkg/
|
|
78
|
+
@rm -rf coverage/
|
|
79
|
+
@find . -type f -name '.DS_Store' -delete
|
|
80
|
+
|
|
81
|
+
clean-bundle:
|
|
82
|
+
@echo "Cleaning bundle..."
|
|
83
|
+
@rm -rf vendor/bundle
|
|
84
|
+
@rm -f Gemfile.lock
|
|
85
|
+
|
|
86
|
+
update:
|
|
87
|
+
@echo "Updating dependencies..."
|
|
88
|
+
@$(BUNDLE) update
|
|
89
|
+
|
|
90
|
+
security-check:
|
|
91
|
+
@echo "Checking for security vulnerabilities..."
|
|
92
|
+
@$(BUNDLE) audit check --update
|
|
93
|
+
|
|
94
|
+
outdated:
|
|
95
|
+
@echo "Checking for outdated dependencies..."
|
|
96
|
+
@$(BUNDLE) outdated
|
|
97
|
+
|
|
98
|
+
format:
|
|
99
|
+
@echo "Formatter not configured."
|
|
100
|
+
|
|
101
|
+
update-manifest:
|
|
102
|
+
@echo "Updating file manifest in $(GEMSPEC_FILE)..."
|
|
103
|
+
@$(RUBY) -e \
|
|
104
|
+
'files = `git ls-files`.split("\n").sort \
|
|
105
|
+
.reject { |f| f =~ /^\./ } \
|
|
106
|
+
.reject { |f| f =~ /^(rdoc|pkg)/ } \
|
|
107
|
+
.map { |f| " #{f}" } \
|
|
108
|
+
.join("\n"); \
|
|
109
|
+
spec = File.read("$(GEMSPEC_FILE)"); \
|
|
110
|
+
spec.sub!(/s\.files = %w\[.*?\]/m, "s.files = %w[\n#{files}\n ]"); \
|
|
111
|
+
File.write("$(GEMSPEC_FILE)", spec)'
|
|
112
|
+
@echo "Manifest updated."
|
data/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.69.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.69.0'
|
|
8
|
+
s.date = '2026-03-02'
|
|
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 = {
|
|
@@ -32,9 +32,11 @@ Gem::Specification.new do |s|
|
|
|
32
32
|
Gemfile
|
|
33
33
|
Gemfile.lock
|
|
34
34
|
LICENSE
|
|
35
|
+
Makefile
|
|
35
36
|
README.md
|
|
36
37
|
README.rdoc
|
|
37
38
|
Rakefile
|
|
39
|
+
VERSION
|
|
38
40
|
chargebee.gemspec
|
|
39
41
|
lib/chargebee.rb
|
|
40
42
|
lib/chargebee/environment.rb
|
|
@@ -28,8 +28,8 @@ module ChargeBee
|
|
|
28
28
|
attr_accessor :id, :plan_id, :plan_quantity, :plan_unit_price, :setup_fee, :billing_period,
|
|
29
29
|
:billing_period_unit, :start_date, :trial_end, :remaining_billing_cycles, :po_number, :auto_collection,
|
|
30
30
|
:plan_quantity_in_decimal, :plan_unit_price_in_decimal, :changes_scheduled_at, :change_option,
|
|
31
|
-
:
|
|
32
|
-
:item_tiers, :quoted_contract_term
|
|
31
|
+
:free_period, :free_period_unit, :contract_term_billing_cycle_on_renewal, :addons, :event_based_addons,
|
|
32
|
+
:coupons, :subscription_items, :item_tiers, :quoted_contract_term
|
|
33
33
|
|
|
34
34
|
# OPERATIONS
|
|
35
35
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
|
@@ -563,6 +563,16 @@ module ChargeBee
|
|
|
563
563
|
return webhook_endpoint;
|
|
564
564
|
end
|
|
565
565
|
|
|
566
|
+
def usage_summary()
|
|
567
|
+
usage_summary = get(:usage_summary, UsageSummary);
|
|
568
|
+
return usage_summary;
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
def usage_charge()
|
|
572
|
+
usage_charge = get(:usage_charge, UsageCharge);
|
|
573
|
+
return usage_charge;
|
|
574
|
+
end
|
|
575
|
+
|
|
566
576
|
def impacted_customer()
|
|
567
577
|
impacted_customer = get(:impacted_customer, ImpactedCustomer,
|
|
568
578
|
{: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.69.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-03-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: cgi
|
|
@@ -73,9 +73,11 @@ files:
|
|
|
73
73
|
- Gemfile
|
|
74
74
|
- Gemfile.lock
|
|
75
75
|
- LICENSE
|
|
76
|
+
- Makefile
|
|
76
77
|
- README.md
|
|
77
78
|
- README.rdoc
|
|
78
79
|
- Rakefile
|
|
80
|
+
- VERSION
|
|
79
81
|
- chargebee.gemspec
|
|
80
82
|
- lib/chargebee.rb
|
|
81
83
|
- lib/chargebee/environment.rb
|