chargebee 2.5.5 → 2.5.6
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 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/plan.rb +15 -2
- data/lib/chargebee/models/subscription.rb +10 -2
- data/lib/chargebee/result.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd62892ef58bd607d89b04c91037ed0c7a43cc31
|
4
|
+
data.tar.gz: 324de608163d14fe73b4c7cbe011b29f39676724
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bfcd9c5e0db34b4c53b757108d94d3ca067031dbe7c515436e45d24ff167e6810f1a222eaf87d523ea30915fa50a47436bd1d6bf0488d0e78a118c029fb7b3b
|
7
|
+
data.tar.gz: c6051a2320fbff817692a8a8d8356f48686424a6158fab6d8b2017714621e4840132fada13ddc1dd629fdf46ef0db0d6698bf75bbec46bf763b1da224d919da1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
### v2.5.6 (2018-09-12)
|
2
|
+
* * *
|
3
|
+
* The attributes addon_applicability, applicable_addons, attached_addons and event_based_addons has been added to Plan resource.
|
4
|
+
* The input parameters addon_applicability, applicable_addons, attached_addons and event_based_addons has been added in Create and Update plan APIs.
|
5
|
+
* The attributes event_based_addons and charged_event_based_addons has been added to Subscription resource.
|
6
|
+
* The input parameters mandatory_addons_to_remove, event_based_addons and charged_event_based_addons has been added in Create subscription, Create subscription for customer, Update subscription, Create subscription estimate, create subscription for customer estimate, update subscription estimate, checkout new subscription and checkout existing subscription APIs.
|
7
|
+
|
8
|
+
|
1
9
|
### v2.5.5 (2018-08-17)
|
2
10
|
* * *
|
3
11
|
|
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.5.
|
8
|
-
s.date = '2018-
|
7
|
+
s.version = '2.5.6'
|
8
|
+
s.date = '2018-09-12'
|
9
9
|
|
10
10
|
s.summary = "Ruby client for Chargebee API."
|
11
11
|
s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
|
data/lib/chargebee.rb
CHANGED
@@ -1,11 +1,24 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class Plan < Model
|
3
3
|
|
4
|
+
class ApplicableAddon < Model
|
5
|
+
attr_accessor :id
|
6
|
+
end
|
7
|
+
|
8
|
+
class AttachedAddon < Model
|
9
|
+
attr_accessor :id, :quantity, :billing_cycles, :type
|
10
|
+
end
|
11
|
+
|
12
|
+
class EventBasedAddon < Model
|
13
|
+
attr_accessor :id, :quantity, :on_event, :charge_once
|
14
|
+
end
|
15
|
+
|
4
16
|
attr_accessor :id, :name, :invoice_name, :description, :price, :currency_code, :period, :period_unit,
|
5
17
|
:trial_period, :trial_period_unit, :charge_model, :free_quantity, :setup_cost, :downgrade_penalty,
|
6
18
|
:status, :archived_at, :billing_cycles, :redirect_url, :enabled_in_hosted_pages, :enabled_in_portal,
|
7
|
-
:tax_code, :sku, :accounting_code, :accounting_category1, :accounting_category2,
|
8
|
-
:updated_at, :invoice_notes, :taxable, :tax_profile_id, :meta_data
|
19
|
+
:addon_applicability, :tax_code, :sku, :accounting_code, :accounting_category1, :accounting_category2,
|
20
|
+
:resource_version, :updated_at, :invoice_notes, :taxable, :tax_profile_id, :meta_data, :applicable_addons,
|
21
|
+
:attached_addons, :event_based_addons
|
9
22
|
|
10
23
|
# OPERATIONS
|
11
24
|
#-----------
|
@@ -5,6 +5,14 @@ module ChargeBee
|
|
5
5
|
attr_accessor :id, :quantity, :unit_price, :trial_end, :remaining_billing_cycles
|
6
6
|
end
|
7
7
|
|
8
|
+
class EventBasedAddon < Model
|
9
|
+
attr_accessor :id, :quantity, :unit_price, :on_event, :charge_once
|
10
|
+
end
|
11
|
+
|
12
|
+
class ChargedEventBasedAddon < Model
|
13
|
+
attr_accessor :id, :last_charged_at
|
14
|
+
end
|
15
|
+
|
8
16
|
class Coupon < Model
|
9
17
|
attr_accessor :coupon_id, :apply_till, :applied_count, :coupon_code
|
10
18
|
end
|
@@ -23,8 +31,8 @@ module ChargeBee
|
|
23
31
|
:po_number, :created_at, :started_at, :activated_at, :pause_date, :resume_date, :cancelled_at,
|
24
32
|
:cancel_reason, :affiliate_token, :created_from_ip, :resource_version, :updated_at, :has_scheduled_changes,
|
25
33
|
:payment_source_id, :auto_collection, :due_invoices_count, :due_since, :total_dues, :mrr, :exchange_rate,
|
26
|
-
:base_currency_code, :addons, :
|
27
|
-
:meta_data, :deleted
|
34
|
+
:base_currency_code, :addons, :event_based_addons, :charged_event_based_addons, :coupon, :coupons,
|
35
|
+
:shipping_address, :referral_info, :invoice_notes, :meta_data, :deleted
|
28
36
|
|
29
37
|
# OPERATIONS
|
30
38
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
@@ -7,7 +7,7 @@ module ChargeBee
|
|
7
7
|
|
8
8
|
def subscription()
|
9
9
|
subscription = get(:subscription, Subscription,
|
10
|
-
{:addons => Subscription::Addon, :coupons => Subscription::Coupon, :shipping_address => Subscription::ShippingAddress, :referral_info => Subscription::ReferralInfo});
|
10
|
+
{:addons => Subscription::Addon, :event_based_addons => Subscription::EventBasedAddon, :charged_event_based_addons => Subscription::ChargedEventBasedAddon, :coupons => Subscription::Coupon, :shipping_address => Subscription::ShippingAddress, :referral_info => Subscription::ReferralInfo});
|
11
11
|
return subscription;
|
12
12
|
end
|
13
13
|
|
@@ -100,7 +100,8 @@ module ChargeBee
|
|
100
100
|
end
|
101
101
|
|
102
102
|
def plan()
|
103
|
-
plan = get(:plan, Plan
|
103
|
+
plan = get(:plan, Plan,
|
104
|
+
{:applicable_addons => Plan::ApplicableAddon, :attached_addons => Plan::AttachedAddon, :event_based_addons => Plan::EventBasedAddon});
|
104
105
|
return plan;
|
105
106
|
end
|
106
107
|
|
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.5.
|
4
|
+
version: 2.5.6
|
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: 2018-
|
12
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|