chargebee 2.19.0 → 2.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/chargebee.gemspec +2 -1
- data/lib/chargebee/models/discount.rb +12 -0
- data/lib/chargebee/models/subscription.rb +1 -1
- data/lib/chargebee/result.rb +5 -0
- data/lib/chargebee.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 597fc1a63786c913dce021f6543a34b18fdfdf37
|
4
|
+
data.tar.gz: dea300a96633c90cfebbae706332980f4776dc4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f16dbd970124daae33798ad87861980f38c42f41abca2245df0cdc5d7a7eb1219d607c558bc8ec38d34bc9db17ccb43517338a81541a38a23d0b8f53638d931
|
7
|
+
data.tar.gz: cbed4282a3c1047eb7d276f02425f64832d700efd4be156b51631f6d2f27548633c55cff630d3af0b6b19d3414e45112fe964366ec209a18e54f868bd9ed0c07
|
data/CHANGELOG.md
CHANGED
data/chargebee.gemspec
CHANGED
@@ -4,7 +4,7 @@ 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.
|
7
|
+
s.version = '2.20.0'
|
8
8
|
s.date = '2022-09-20'
|
9
9
|
s.summary = "Ruby client for Chargebee API."
|
10
10
|
s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
|
@@ -53,6 +53,7 @@ Gem::Specification.new do |s|
|
|
53
53
|
lib/chargebee/models/credit_note_estimate.rb
|
54
54
|
lib/chargebee/models/customer.rb
|
55
55
|
lib/chargebee/models/differential_price.rb
|
56
|
+
lib/chargebee/models/discount.rb
|
56
57
|
lib/chargebee/models/download.rb
|
57
58
|
lib/chargebee/models/entitlement_override.rb
|
58
59
|
lib/chargebee/models/estimate.rb
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class Discount < Model
|
3
|
+
|
4
|
+
attr_accessor :id, :invoice_name, :percentage, :amount, :currency_code, :duration_type, :period,
|
5
|
+
:period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :apply_till, :applied_count,
|
6
|
+
:coupon_id, :index
|
7
|
+
|
8
|
+
# OPERATIONS
|
9
|
+
#-----------
|
10
|
+
|
11
|
+
end # ~Discount
|
12
|
+
end # ~ChargeBee
|
@@ -42,7 +42,7 @@ module ChargeBee
|
|
42
42
|
end
|
43
43
|
|
44
44
|
class Discount < Model
|
45
|
-
attr_accessor :id, :invoice_name, :percentage, :amount, :currency_code, :period, :period_unit, :included_in_mrr, :item_price_id, :created_at, :apply_till, :applied_count, :coupon_id, :index
|
45
|
+
attr_accessor :id, :invoice_name, :percentage, :amount, :currency_code, :duration_type, :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :apply_till, :applied_count, :coupon_id, :index
|
46
46
|
end
|
47
47
|
|
48
48
|
attr_accessor :id, :currency_code, :plan_id, :plan_quantity, :plan_unit_price, :setup_fee, :billing_period,
|
data/lib/chargebee/result.rb
CHANGED
@@ -16,6 +16,11 @@ module ChargeBee
|
|
16
16
|
return contract_term;
|
17
17
|
end
|
18
18
|
|
19
|
+
def discount()
|
20
|
+
discount = get(:discount, Discount);
|
21
|
+
return discount;
|
22
|
+
end
|
23
|
+
|
19
24
|
def advance_invoice_schedule()
|
20
25
|
advance_invoice_schedule = get(:advance_invoice_schedule, AdvanceInvoiceSchedule,
|
21
26
|
{:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
|
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.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajaraman S
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- lib/chargebee/models/credit_note_estimate.rb
|
130
130
|
- lib/chargebee/models/customer.rb
|
131
131
|
- lib/chargebee/models/differential_price.rb
|
132
|
+
- lib/chargebee/models/discount.rb
|
132
133
|
- lib/chargebee/models/download.rb
|
133
134
|
- lib/chargebee/models/entitlement_override.rb
|
134
135
|
- lib/chargebee/models/estimate.rb
|