chargebee 1.6.8 → 1.6.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: 438e26887451cb0c0b725d1be6ea8bcf577e35c5
4
- data.tar.gz: 30c62e69d8349ce55a9197150caa744cfe5be57d
3
+ metadata.gz: 1f05f0fe0a99b2d72598b8b587959cb22347daa0
4
+ data.tar.gz: b9dcca22ac8b5e699dd87cd9d596c5354c59e130
5
5
  SHA512:
6
- metadata.gz: edc8b02d517e5a87caa6b42e52836397d530ead2088435b0ecbf6da79d6d2cd74d455a7dfff3ede3a159f66873caaf527219d35d53763f7ff93a57a07a822604
7
- data.tar.gz: 4571118a36e3a72e3628819bd515ff26696a56ff11d4c6c35b1d6b3cd19d918b2f8ef443459ad95e6d1ba0ee5c15f0bd97b90d4d5938d022218f8e896c1f4bbe
6
+ metadata.gz: 072cfdd32a961c39361967a6a5b452f0a5f856ea8313803d683fd1fba54252b597ecdeb92bbfbe4bc7f12e6f5cbde5c03dfe476228115109b1f4be4e159595f2
7
+ data.tar.gz: c42a8631da634ddf3cca8ba20ab857d6ca32f7c2bf992e3cd83ca83aae33ae53177ff9d68bf7229d6607d17feeb6dcd65ea1c2d85d2f2d5183ac6c3e94e037e4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ### v1.6.9 (2016-02-25)
2
+ * * *
3
+
4
+ ** APIs added**:
5
+
6
+ Support to delete a subscription. See: https://www.chargebee.com/docs/subscriptions.html#deleting-a-subscription
7
+ New api endpoint to delete 'Subscription' is added to Subscription resources. See delete subscription API here:
8
+ https://apidocs.chargebee.com/docs/api/subscriptions#delete_a_subscription
9
+
10
+ Support to delete a customer. See: https://www.chargebee.com/docs/customers.html#deleting-a-customer
11
+ New api endpoint to delete 'Customer' is added to Customer resources. See delete customer API here:
12
+ https://apidocs.chargebee.com/docs/api/customers#delete_a_customer
13
+
14
+
15
+ ** APIs updated**:
16
+
17
+ Now, events "subscription_deleted" & "customer_deleted" can be fetched via API. See : https://apidocs.chargebee.com/docs/api/events#event_types.
18
+
1
19
  ### v1.6.8 (2016-02-08)
2
20
  * * *
3
21
 
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2011-2014 ChargeBee, Inc.
3
+ Copyright (c) 2011-2016 ChargeBee, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person
6
6
  obtaining a copy of this software and associated documentation
data/chargebee.gemspec CHANGED
@@ -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.6.8'
8
- s.date = '2016-02-09'
7
+ s.version = '1.6.9'
8
+ s.date = '2016-02-25'
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
@@ -28,7 +28,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
28
28
 
29
29
  module ChargeBee
30
30
 
31
- VERSION = '1.6.8'
31
+ VERSION = '1.6.9'
32
32
 
33
33
  @@default_env = nil
34
34
  @@verify_ca_certs = true
@@ -68,5 +68,9 @@ module ChargeBee
68
68
  Request.send('post', uri_path("customers",id.to_s,"set_account_credits"), params, env, headers)
69
69
  end
70
70
 
71
+ def self.delete(id, env=nil, headers={})
72
+ Request.send('post', uri_path("customers",id.to_s,"delete"), {}, env, headers)
73
+ end
74
+
71
75
  end # ~Customer
72
76
  end # ~ChargeBee
@@ -16,8 +16,8 @@ module ChargeBee
16
16
  attr_accessor :id, :plan_id, :plan_quantity, :status, :start_date, :trial_start, :trial_end,
17
17
  :current_term_start, :current_term_end, :remaining_billing_cycles, :po_number, :created_at,
18
18
  :started_at, :activated_at, :cancelled_at, :cancel_reason, :affiliate_token, :created_from_ip,
19
- :due_invoices_count, :due_since, :total_dues, :addons, :coupon, :coupons, :shipping_address,
20
- :has_scheduled_changes, :invoice_notes
19
+ :has_scheduled_changes, :due_invoices_count, :due_since, :total_dues, :addons, :coupon, :coupons,
20
+ :shipping_address, :invoice_notes
21
21
 
22
22
  # OPERATIONS
23
23
  #-----------
@@ -78,5 +78,9 @@ module ChargeBee
78
78
  Request.send('post', uri_path("subscriptions",id.to_s,"charge_addon_at_term_end"), params, env, headers)
79
79
  end
80
80
 
81
+ def self.delete(id, env=nil, headers={})
82
+ Request.send('post', uri_path("subscriptions",id.to_s,"delete"), {}, env, headers)
83
+ end
84
+
81
85
  end # ~Subscription
82
86
  end # ~ChargeBee
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.6.8
4
+ version: 1.6.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-02-09 00:00:00.000000000 Z
12
+ date: 2016-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure