chargebee 2.19.0 → 2.20.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18ef136d2026d74d5b20a00970b4b75fe659ee29
4
- data.tar.gz: 0d763f180f2856ec9c9a28500c85e6e89074f056
3
+ metadata.gz: 597fc1a63786c913dce021f6543a34b18fdfdf37
4
+ data.tar.gz: dea300a96633c90cfebbae706332980f4776dc4e
5
5
  SHA512:
6
- metadata.gz: 97c07fb3668490dec82f73640ae16cd12ccc77aaf23b3ca1dbad31cf3e410834e644aeae63c824a787e8c8ac1a57bcc183046a20e1a0b144fa5fdf857adb81dd
7
- data.tar.gz: b3b2615fac6707599daf6cf4659b68cc05faf51391050ea8797b53effc28793a980084afa641a1ae1f897f5cf431c5b801fb8f06886edeaab7c5d9008c75ae35
6
+ metadata.gz: 5f16dbd970124daae33798ad87861980f38c42f41abca2245df0cdc5d7a7eb1219d607c558bc8ec38d34bc9db17ccb43517338a81541a38a23d0b8f53638d931
7
+ data.tar.gz: cbed4282a3c1047eb7d276f02425f64832d700efd4be156b51631f6d2f27548633c55cff630d3af0b6b19d3414e45112fe964366ec209a18e54f868bd9ed0c07
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### v2.20.0 (2022-09-20)
2
+
3
+ #### New Resource:
4
+ * discount has been added.
5
+
6
+ #### New Enum values:
7
+ * apply_on, duration_type and operation_type enums have been added.
8
+
1
9
  ### v2.19.0 (2022-09-20)
2
10
  * * *
3
11
 
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.19.0'
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,
@@ -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
@@ -53,7 +53,7 @@ require File.dirname(__FILE__) + '/chargebee/models/usage.rb'
53
53
 
54
54
  module ChargeBee
55
55
 
56
- VERSION = '2.19.0'
56
+ VERSION = '2.20.0'
57
57
 
58
58
  @@default_env = nil
59
59
  @@verify_ca_certs = true
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.19.0
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