chargebee 1.5.1 → 1.5.2

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: 1d0614f27743899615cfa14096ca5f1803a92895
4
- data.tar.gz: 680ca9bdc81cc6f00f64a418fd338fb7304056ac
3
+ metadata.gz: d563d1d35b841f75d804390a529921071fc4c632
4
+ data.tar.gz: 51130ad57f36a130611b069332730ec985e10894
5
5
  SHA512:
6
- metadata.gz: cd1d1d33618da9eaf472ed2fd2a4fd3f63c837a3d6f7b274a919615019e46fe63d8c31fc747a43e864469d386c77cf7be8ce07af75ca7adfb3d7b193ce72a6f1
7
- data.tar.gz: 21ea0a4f8208babd5075917dbe24e109276001f15b9928a3be1ceefe8fa5964c871f16c66ff3651e930aefc8ba7296f243a1d44e6b1c01c30f472bca580fb4fb
6
+ metadata.gz: 895c2fcd126d98f039afe0fb0fc24bd1fef612e54513e2c82d5c6764a162fe2528cf37cd95e5998e1de9e9ab33f4c5b34aae88e8001b078f017a55649a81659f
7
+ data.tar.gz: 01fd9efa26205002846cf02fd56dd8927ff6f7e67adb35b15c50f02e12707bd9f9cc3db21b68a89c4c9477c825d76086592b34f0fb45fe963b70671cef64a2f1
@@ -1,3 +1,15 @@
1
+ ### v1.5.2 (2015-02-18)
2
+ * * *
3
+
4
+ ** APIs added**:
5
+ A new API called Remove scheduled cancellation method(Subscription) added to remove the pending cancellation scheduled at end of the subscription term.
6
+
7
+ ** APIs deprecated**:
8
+ Reactivate a subscription(Subscription) API is deprecated for subscriptions in Non-Renewing state as an alternate API(see above) is added.
9
+
10
+ ** APIs updated**:
11
+ Create subscription/customer, update subscription/customer/payment method/billing info API now accepts the State Code for billing, shipping, subscription and card addresses.
12
+
1
13
  ### v1.5.1 (2015-01-07)
2
14
  * * *
3
15
 
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'chargebee'
7
- s.version = '1.5.1'
8
- s.date = '2015-01-06'
7
+ s.version = '1.5.2'
8
+ s.date = '2015-02-18'
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."
@@ -28,7 +28,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
28
28
 
29
29
  module ChargeBee
30
30
 
31
- VERSION = '1.5.1'
31
+ VERSION = '1.5.2'
32
32
 
33
33
  @@default_env = nil
34
34
  @@verify_ca_certs = true
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class Address < Model
3
3
 
4
4
  attr_accessor :label, :first_name, :last_name, :email, :company, :phone, :addr, :extended_addr,
5
- :extended_addr2, :city, :state, :country, :zip, :subscription_id
5
+ :extended_addr2, :city, :state_code, :state, :country, :zip, :subscription_id
6
6
 
7
7
  # OPERATIONS
8
8
  #-----------
@@ -2,8 +2,8 @@ module ChargeBee
2
2
  class Card < Model
3
3
 
4
4
  attr_accessor :customer_id, :status, :gateway, :first_name, :last_name, :iin, :last4, :card_type,
5
- :expiry_month, :expiry_year, :billing_addr1, :billing_addr2, :billing_city, :billing_state,
6
- :billing_country, :billing_zip, :masked_number
5
+ :expiry_month, :expiry_year, :billing_addr1, :billing_addr2, :billing_city, :billing_state_code,
6
+ :billing_state, :billing_country, :billing_zip, :masked_number
7
7
 
8
8
  # OPERATIONS
9
9
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class Customer < Model
3
3
 
4
4
  class BillingAddress < Model
5
- attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state, :country, :zip
5
+ attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip
6
6
  end
7
7
 
8
8
  class PaymentMethod < Model
@@ -18,7 +18,7 @@ module ChargeBee
18
18
  end
19
19
 
20
20
  class LinkedOrder < Model
21
- attr_accessor :id, :invoice_id, :status, :reference_id, :fulfillment_status, :note, :tracking_id, :batch_id, :created_by, :created_at, :status_update_at
21
+ attr_accessor :id, :status, :reference_id, :fulfillment_status, :batch_id, :created_at
22
22
  end
23
23
 
24
24
  attr_accessor :id, :customer_id, :subscription_id, :recurring, :status, :vat_number, :start_date,
@@ -10,7 +10,7 @@ module ChargeBee
10
10
  end
11
11
 
12
12
  class ShippingAddress < Model
13
- attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state, :country, :zip
13
+ attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip
14
14
  end
15
15
 
16
16
  attr_accessor :id, :plan_id, :plan_quantity, :status, :start_date, :trial_start, :trial_end,
@@ -49,6 +49,10 @@ module ChargeBee
49
49
  Request.send('post', uri_path("subscriptions",id.to_s,"remove_scheduled_changes"), {}, env)
50
50
  end
51
51
 
52
+ def self.remove_scheduled_cancellation(id, params={}, env=nil)
53
+ Request.send('post', uri_path("subscriptions",id.to_s,"remove_scheduled_cancellation"), params, env)
54
+ end
55
+
52
56
  def self.update(id, params={}, env=nil)
53
57
  Request.send('post', uri_path("subscriptions",id.to_s), params, env)
54
58
  end
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: 1.5.1
4
+ version: 1.5.2
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: 2015-01-06 00:00:00.000000000 Z
12
+ date: 2015-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure