chargebee 2.1.8 → 2.1.9

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: a2be260982365f9b6d73ac0ee6012e64ce6d6528
4
- data.tar.gz: d96ffaa2c58a24760c6782ce07ebd2699f022a06
3
+ metadata.gz: b2e609567420636f228dec89fdd57e73c5884621
4
+ data.tar.gz: a1b2f4338df0e678316f24e3d3ba229b57e28909
5
5
  SHA512:
6
- metadata.gz: efda15f63dd1c252495bf66219d1b9e35781dbc4ba1c654c81633a641f4bde2b22c5b501a762a92dbcee44b7370080b8216bebde936fb5127d1a4be7621768b2
7
- data.tar.gz: 73cd32d984c8ea1ea7553f8bfb91007f650e4cfc3a97433a6aad67a355398a8996f13e3f9b1c605fc974a0209f6df3862c78889bb381318054a85a8d51d2ef0b
6
+ metadata.gz: a4be9946b1dd9efcaa7c8e282fb8865058957f026aed4c515f9eb647e87f70b681457a6bd296f203d8ebcd92df8d2daa07eef27febce109ddff362838cbc56dc
7
+ data.tar.gz: 9e7d133e452f765b0d5b94ff25defc130e512df7077940deeb81a086ee7d5d3af48e09b0d86f61348c389d00b77a9350c6839677bf63b9933328a19406aa4064
@@ -1,3 +1,33 @@
1
+ ###v2.1.9 (2016-11-24)
2
+ * * *
3
+
4
+ ** APIs updated**:
5
+ A new attribute, 'funding_type' has been added to Card resource.
6
+ See : https://apidocs.chargebee.com/docs/api/cards#card_attributes
7
+
8
+ ** APIs added**:
9
+ A new endpoint, List coupon codes API has been added to Coupon Code resource.
10
+ See : https://apidocs.chargebee.com/docs/api/coupon_codes#list_coupon_codes
11
+
12
+ A new endpoint, Copy a plan API has been added to Plan resource.
13
+ See : https://apidocs.chargebee.com/docs/api/plans#copy_a_plan
14
+
15
+ A new endpoint, Copy an addon API has been added to Addon resource.
16
+ See : https://apidocs.chargebee.com/docs/api/addons#copy_an_addon
17
+
18
+ A new endpoint, Copy a coupon API has been added to Coupon resource.
19
+ See : https://apidocs.chargebee.com/docs/api/coupons#copy_a_coupon
20
+
21
+ A new endpoint, Import a subscription API has been added to Subscription resource.
22
+ See : https://apidocs.chargebee.com/docs/api/subscriptions#import_a_subscription
23
+
24
+ A new endpoint, Import Subscription for customer API has been added to Subscription resource.
25
+ See : https://apidocs.chargebee.com/docs/api/subscriptions#import_subscription_for_customer
26
+
27
+ A new endpoint, Import invoice API has been added to Invoice resource.
28
+ See : https://apidocs.chargebee.com/docs/api/invoices#import_invoice
29
+
30
+
1
31
  ###v2.1.8 (2016-11-18)
2
32
  * * *
3
33
 
@@ -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 = '2.1.8'
8
- s.date = '2016-11-18'
7
+ s.version = '2.1.9'
8
+ s.date = '2016-11-24'
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."
@@ -33,7 +33,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
33
33
 
34
34
  module ChargeBee
35
35
 
36
- VERSION = '2.1.8'
36
+ VERSION = '2.1.9'
37
37
 
38
38
  @@default_env = nil
39
39
  @@verify_ca_certs = true
@@ -28,5 +28,9 @@ module ChargeBee
28
28
  Request.send('post', uri_path("addons",id.to_s,"delete"), {}, env, headers)
29
29
  end
30
30
 
31
+ def self.copy(params, env=nil, headers={})
32
+ Request.send('post', uri_path("addons","copy"), params, env, headers)
33
+ end
34
+
31
35
  end # ~Addon
32
36
  end # ~ChargeBee
@@ -2,7 +2,7 @@ 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_code,
5
+ :funding_type, :expiry_month, :expiry_year, :billing_addr1, :billing_addr2, :billing_city, :billing_state_code,
6
6
  :billing_state, :billing_country, :billing_zip, :ip_address, :masked_number
7
7
 
8
8
  # OPERATIONS
@@ -25,5 +25,9 @@ module ChargeBee
25
25
  Request.send('post', uri_path("coupons",id.to_s,"delete"), {}, env, headers)
26
26
  end
27
27
 
28
+ def self.copy(params, env=nil, headers={})
29
+ Request.send('post', uri_path("coupons","copy"), params, env, headers)
30
+ end
31
+
28
32
  end # ~Coupon
29
33
  end # ~ChargeBee
@@ -14,6 +14,10 @@ module ChargeBee
14
14
  Request.send('get', uri_path("coupon_codes",id.to_s), {}, env, headers)
15
15
  end
16
16
 
17
+ def self.list(params={}, env=nil, headers={})
18
+ Request.send_list_request('get', uri_path("coupon_codes"), params, env, headers)
19
+ end
20
+
17
21
  def self.archive(id, env=nil, headers={})
18
22
  Request.send('post', uri_path("coupon_codes",id.to_s,"archive"), {}, env, headers)
19
23
  end
@@ -75,6 +75,10 @@ module ChargeBee
75
75
  Request.send('post', uri_path("invoices",id.to_s,"stop_dunning"), {}, env, headers)
76
76
  end
77
77
 
78
+ def self.import_invoice(params, env=nil, headers={})
79
+ Request.send('post', uri_path("invoices","import_invoice"), params, env, headers)
80
+ end
81
+
78
82
  def self.list(params={}, env=nil, headers={})
79
83
  Request.send_list_request('get', uri_path("invoices"), params, env, headers)
80
84
  end
@@ -29,5 +29,9 @@ module ChargeBee
29
29
  Request.send('post', uri_path("plans",id.to_s,"delete"), {}, env, headers)
30
30
  end
31
31
 
32
+ def self.copy(params, env=nil, headers={})
33
+ Request.send('post', uri_path("plans","copy"), params, env, headers)
34
+ end
35
+
32
36
  end # ~Plan
33
37
  end # ~ChargeBee
@@ -83,6 +83,14 @@ module ChargeBee
83
83
  Request.send('post', uri_path("subscriptions",id.to_s,"charge_addon_at_term_end"), params, env, headers)
84
84
  end
85
85
 
86
+ def self.import_subscription(params, env=nil, headers={})
87
+ Request.send('post', uri_path("subscriptions","import_subscription"), params, env, headers)
88
+ end
89
+
90
+ def self.import_for_customer(id, params, env=nil, headers={})
91
+ Request.send('post', uri_path("customers",id.to_s,"import_subscription"), params, env, headers)
92
+ end
93
+
86
94
  def self.delete(id, env=nil, headers={})
87
95
  Request.send('post', uri_path("subscriptions",id.to_s,"delete"), {}, env, headers)
88
96
  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: 2.1.8
4
+ version: 2.1.9
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: 2016-11-18 00:00:00.000000000 Z
12
+ date: 2016-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure