chargebee 2.4.7 → 2.4.8

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: e95fa219fda0a02bb33b76e115224b8786a41ea8
4
- data.tar.gz: ad3c437470e8fc25800ea126128d0944aa5fbfff
3
+ metadata.gz: 45f53caffadbf0d3d557f0f36f784f9df341d92f
4
+ data.tar.gz: 6043e404cf65fb35b2434fad3da50b2445ad0e20
5
5
  SHA512:
6
- metadata.gz: 1d430f5e75ee744c4e7757517d4de85b4bd8e4123d07a456a354ce6ea59d14605773fef101f5aa5d344e29a45606147d41f207384ea752c5f2d1d4fc078209d1
7
- data.tar.gz: faab4a12bed35a59b8b02c28196aa8bf78483b534814275586c180609fe080f4a706a57b9f12c6131a43c4708f462aa80d996fecfdf73c269f91ce2e11856aca
6
+ metadata.gz: fa3b183d878e440d9d6ae0af82cc18d19af80090699f25f1204720c6eda891fa1ba6fc0f82174456f70609054dbd034777e8e0da407320b6c88c39394775cf45
7
+ data.tar.gz: 6d40faae8a7e72611e1e892daf76e94aac7442a2cce4e66872953adfea1270a1baf2261b1e4cbbf15c919aa37ea898383f5a65197f50937f16b13b55436f8cd6
@@ -1,3 +1,30 @@
1
+ ### v2.4.8 (2018-03-29)
2
+ * * *
3
+
4
+ New status 'Pause' has been added to subscription.
5
+ See : https://apidocs.chargebee.com/docs/api/subscriptions#subscription_status
6
+
7
+ The attribues 'pause_date' and 'resume_date' have been added to subscription and estimate resources.
8
+ See : https://apidocs.chargebee.com/docs/api/subscriptions#subscription_attributes
9
+
10
+ The input params 'create_current_term_invoice', transaction amount, payment method, reference number and date have been added to Import a subscription and Import subscription for customer APIs.
11
+ See : https://apidocs.chargebee.com/docs/api/subscriptions#import_a_subscription
12
+
13
+ The attribute 'expected_payment_date' has been added to Invoice attributes.
14
+ See : https://apidocs.chargebee.com/docs/api/invoices#invoice_attributes
15
+
16
+ The reason code 'subscription_pause' has been added to Credit note attributes.
17
+ See : https://apidocs.chargebee.com/docs/api/credit_notes#credit_note_reason_code
18
+
19
+ New event types subscription_paused, subscription_pause_scheduled, subscription_scheduled_pause_removed, subscription_resumed, subscription_resumption_scheduled and subscription_scheduled_resumption_removed have been added.
20
+ See : https://apidocs.chargebee.com/docs/api/events#event_types
21
+
22
+ New endpoints 'Pause a subscription', 'Resume a subscription', 'Remove scheduled pause' and 'Remove scheduled resumption' have been added to Subscription resource.
23
+ See : https://apidocs.chargebee.com/docs/api/subscriptions
24
+
25
+ New endpoints 'Pause subscription estimate' and 'Resume subscription estimate' have been added to Estimate resource.
26
+ See : https://apidocs.chargebee.com/docs/api/estimates
27
+
1
28
  ### v2.4.7 (2018-03-20)
2
29
  * * *
3
30
 
@@ -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.4.7'
8
- s.date = '2018-03-20'
7
+ s.version = '2.4.8'
8
+ s.date = '2018-03-29'
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."
@@ -40,7 +40,7 @@ require File.dirname(__FILE__) + '/chargebee/models/promotional_credit.rb'
40
40
 
41
41
  module ChargeBee
42
42
 
43
- VERSION = '2.4.7'
43
+ VERSION = '2.4.8'
44
44
 
45
45
  @@default_env = nil
46
46
  @@verify_ca_certs = true
@@ -35,5 +35,13 @@ module ChargeBee
35
35
  Request.send('post', uri_path("subscriptions",id.to_s,"cancel_subscription_estimate"), params, env, headers)
36
36
  end
37
37
 
38
+ def self.pause_subscription(id, params={}, env=nil, headers={})
39
+ Request.send('post', uri_path("subscriptions",id.to_s,"pause_subscription_estimate"), params, env, headers)
40
+ end
41
+
42
+ def self.resume_subscription(id, params={}, env=nil, headers={})
43
+ Request.send('post', uri_path("subscriptions",id.to_s,"resume_subscription_estimate"), params, env, headers)
44
+ end
45
+
38
46
  end # ~Estimate
39
47
  end # ~ChargeBee
@@ -57,8 +57,8 @@ module ChargeBee
57
57
  :price_type, :date, :due_date, :net_term_days, :currency_code, :total, :amount_paid, :amount_adjusted,
58
58
  :write_off_amount, :credits_applied, :amount_due, :paid_at, :dunning_status, :next_retry_at,
59
59
  :voided_at, :resource_version, :updated_at, :sub_total, :tax, :first_invoice, :has_advance_charges,
60
- :amount_to_collect, :round_off_amount, :line_items, :discounts, :line_item_discounts, :taxes,
61
- :line_item_taxes, :linked_payments, :applied_credits, :adjustment_credit_notes, :issued_credit_notes,
60
+ :expected_payment_date, :amount_to_collect, :round_off_amount, :line_items, :discounts, :line_item_discounts,
61
+ :taxes, :line_item_taxes, :linked_payments, :applied_credits, :adjustment_credit_notes, :issued_credit_notes,
62
62
  :linked_orders, :notes, :shipping_address, :billing_address, :deleted
63
63
 
64
64
  # OPERATIONS
@@ -20,10 +20,11 @@ module ChargeBee
20
20
  attr_accessor :id, :customer_id, :currency_code, :plan_id, :plan_quantity, :plan_unit_price,
21
21
  :setup_fee, :billing_period, :billing_period_unit, :plan_free_quantity, :status, :start_date,
22
22
  :trial_start, :trial_end, :current_term_start, :current_term_end, :next_billing_at, :remaining_billing_cycles,
23
- :po_number, :created_at, :started_at, :activated_at, :cancelled_at, :cancel_reason, :affiliate_token,
24
- :created_from_ip, :resource_version, :updated_at, :has_scheduled_changes, :payment_source_id,
25
- :auto_collection, :due_invoices_count, :due_since, :total_dues, :mrr, :exchange_rate, :base_currency_code,
26
- :addons, :coupon, :coupons, :shipping_address, :referral_info, :invoice_notes, :meta_data, :deleted
23
+ :po_number, :created_at, :started_at, :activated_at, :pause_date, :resume_date, :cancelled_at,
24
+ :cancel_reason, :affiliate_token, :created_from_ip, :resource_version, :updated_at, :has_scheduled_changes,
25
+ :payment_source_id, :auto_collection, :due_invoices_count, :due_since, :total_dues, :mrr, :exchange_rate,
26
+ :base_currency_code, :addons, :coupon, :coupons, :shipping_address, :referral_info, :invoice_notes,
27
+ :meta_data, :deleted
27
28
 
28
29
  # OPERATIONS
29
30
  #-----------
@@ -108,5 +109,21 @@ module ChargeBee
108
109
  Request.send('post', uri_path("subscriptions",id.to_s,"delete"), {}, env, headers)
109
110
  end
110
111
 
112
+ def self.pause(id, params={}, env=nil, headers={})
113
+ Request.send('post', uri_path("subscriptions",id.to_s,"pause"), params, env, headers)
114
+ end
115
+
116
+ def self.resume(id, params={}, env=nil, headers={})
117
+ Request.send('post', uri_path("subscriptions",id.to_s,"resume"), params, env, headers)
118
+ end
119
+
120
+ def self.remove_scheduled_pause(id, env=nil, headers={})
121
+ Request.send('post', uri_path("subscriptions",id.to_s,"remove_scheduled_pause"), {}, env, headers)
122
+ end
123
+
124
+ def self.remove_scheduled_resumption(id, env=nil, headers={})
125
+ Request.send('post', uri_path("subscriptions",id.to_s,"remove_scheduled_resumption"), {}, env, headers)
126
+ end
127
+
111
128
  end # ~Subscription
112
129
  end # ~ChargeBee
@@ -5,7 +5,7 @@ module ChargeBee
5
5
  attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
6
6
  end
7
7
 
8
- attr_accessor :id, :currency_code, :status, :next_billing_at, :shipping_address
8
+ attr_accessor :id, :currency_code, :status, :next_billing_at, :pause_date, :resume_date, :shipping_address
9
9
 
10
10
  # OPERATIONS
11
11
  #-----------
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.7
4
+ version: 2.4.8
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-03-20 00:00:00.000000000 Z
12
+ date: 2018-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure