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 +4 -4
- data/CHANGELOG.md +18 -0
- data/LICENSE +1 -1
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/customer.rb +4 -0
- data/lib/chargebee/models/subscription.rb +6 -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: 1f05f0fe0a99b2d72598b8b587959cb22347daa0
|
4
|
+
data.tar.gz: b9dcca22ac8b5e699dd87cd9d596c5354c59e130
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
-
s.date = '2016-02-
|
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
@@ -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,
|
20
|
-
:
|
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.
|
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-
|
12
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|