chargebee 2.2.4 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/chargebee.gemspec +4 -2
- data/lib/chargebee.rb +3 -1
- data/lib/chargebee/models/customer.rb +4 -0
- data/lib/chargebee/models/resource_migration.rb +14 -0
- data/lib/chargebee/models/site_migration_detail.rb +15 -0
- data/lib/chargebee/result.rb +10 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: def5b82d15489d9c94ff6d7d781d3e425b7a3a8a
|
4
|
+
data.tar.gz: 2cf49c34b5b88570dba4910c47591736c3dbe828
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3feb8b596818d3442b546d3284a42b432ae63aa8f8622b404fe4821f30fd5a2b464e9337be9ea4de693a6fa9344c5d15f8bab3a7e9a75ddaa8d283573adef44a
|
7
|
+
data.tar.gz: 417646642bc97ddda47a990de603f71542d3611d40d03182a1c9f31bec9eaee9ec99dc1260bf23805e1ccc61fdb906e5d1f415ae628ff64f7a9f36948b54b770
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
###v2.2.5 (2017-02-24)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
** APIs added**:
|
5
|
+
New resources 'Site Migration Details' and 'Resource Migrations' have been added.
|
6
|
+
See : https://apidocs.chargebee.com/docs/api/site_migration_details
|
7
|
+
|
8
|
+
A new endpoint 'Move a customer' has been added.
|
9
|
+
See : https://apidocs.chargebee.com/docs/api/customers#move_a_customer
|
10
|
+
|
11
|
+
** APIs updated**:
|
12
|
+
The attributes 'id' and 'for_site_merging' have been added to Copy an addon, Copy a coupon and Copy a plan API.
|
13
|
+
See : https://apidocs.chargebee.com/docs/api/plans#copy_a_plan
|
14
|
+
|
15
|
+
The event types 'customer_moved_out' and 'customer_moved_in' have been added.
|
16
|
+
See : https://apidocs.chargebee.com/docs/api/events#event_types
|
17
|
+
|
18
|
+
The input parameters 'ignore_scheduled_cancellation' and 'ignore_scheduled_changes' have been added to the Subscription renewal estimate API.
|
19
|
+
See : https://apidocs.chargebee.com/docs/api/estimates#subscription_renewal_estimate
|
20
|
+
|
21
|
+
|
1
22
|
###v2.2.4 (2017-01-30)
|
2
23
|
* * *
|
3
24
|
|
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 = '2.2.
|
8
|
-
s.date = '2017-
|
7
|
+
s.version = '2.2.5'
|
8
|
+
s.date = '2017-02-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."
|
@@ -56,6 +56,8 @@ Gem::Specification.new do |s|
|
|
56
56
|
lib/chargebee/models/order.rb
|
57
57
|
lib/chargebee/models/plan.rb
|
58
58
|
lib/chargebee/models/portal_session.rb
|
59
|
+
lib/chargebee/models/resource_migration.rb
|
60
|
+
lib/chargebee/models/site_migration_detail.rb
|
59
61
|
lib/chargebee/models/subscription.rb
|
60
62
|
lib/chargebee/models/subscription_estimate.rb
|
61
63
|
lib/chargebee/models/third_party_payment_method.rb
|
data/lib/chargebee.rb
CHANGED
@@ -30,10 +30,12 @@ require File.dirname(__FILE__) + '/chargebee/models/coupon_code'
|
|
30
30
|
require File.dirname(__FILE__) + '/chargebee/models/comment'
|
31
31
|
require File.dirname(__FILE__) + '/chargebee/models/portal_session'
|
32
32
|
require File.dirname(__FILE__) + '/chargebee/models/download'
|
33
|
+
require File.dirname(__FILE__) + '/chargebee/models/site_migration_detail'
|
34
|
+
require File.dirname(__FILE__) + '/chargebee/models/resource_migration'
|
33
35
|
|
34
36
|
module ChargeBee
|
35
37
|
|
36
|
-
VERSION = '2.2.
|
38
|
+
VERSION = '2.2.5'
|
37
39
|
|
38
40
|
@@default_env = nil
|
39
41
|
@@verify_ca_certs = true
|
@@ -78,5 +78,9 @@ module ChargeBee
|
|
78
78
|
Request.send('post', uri_path("customers",id.to_s,"delete"), params, env, headers)
|
79
79
|
end
|
80
80
|
|
81
|
+
def self.move(params, env=nil, headers={})
|
82
|
+
Request.send('post', uri_path("customers","move"), params, env, headers)
|
83
|
+
end
|
84
|
+
|
81
85
|
end # ~Customer
|
82
86
|
end # ~ChargeBee
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class ResourceMigration < Model
|
3
|
+
|
4
|
+
attr_accessor :from_site, :entity_type, :entity_id, :status, :errors, :created_at, :updated_at
|
5
|
+
|
6
|
+
# OPERATIONS
|
7
|
+
#-----------
|
8
|
+
|
9
|
+
def self.retrieve_latest(params, env=nil, headers={})
|
10
|
+
Request.send('get', uri_path("resource_migrations","retrieve_latest"), params, env, headers)
|
11
|
+
end
|
12
|
+
|
13
|
+
end # ~ResourceMigration
|
14
|
+
end # ~ChargeBee
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class SiteMigrationDetail < Model
|
3
|
+
|
4
|
+
attr_accessor :entity_id, :other_site_name, :entity_id_at_other_site, :migrated_at, :entity_type,
|
5
|
+
:status
|
6
|
+
|
7
|
+
# OPERATIONS
|
8
|
+
#-----------
|
9
|
+
|
10
|
+
def self.list(params={}, env=nil, headers={})
|
11
|
+
Request.send_list_request('get', uri_path("site_migration_details"), params, env, headers)
|
12
|
+
end
|
13
|
+
|
14
|
+
end # ~SiteMigrationDetail
|
15
|
+
end # ~ChargeBee
|
data/lib/chargebee/result.rb
CHANGED
@@ -116,6 +116,16 @@ module ChargeBee
|
|
116
116
|
return portal_session;
|
117
117
|
end
|
118
118
|
|
119
|
+
def site_migration_detail()
|
120
|
+
site_migration_detail = get(:site_migration_detail, SiteMigrationDetail);
|
121
|
+
return site_migration_detail;
|
122
|
+
end
|
123
|
+
|
124
|
+
def resource_migration()
|
125
|
+
resource_migration = get(:resource_migration, ResourceMigration);
|
126
|
+
return resource_migration;
|
127
|
+
end
|
128
|
+
|
119
129
|
|
120
130
|
def credit_notes()
|
121
131
|
credit_notes = get_list(:credit_notes, CreditNote,
|
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.2.
|
4
|
+
version: 2.2.5
|
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: 2017-
|
12
|
+
date: 2017-02-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -105,6 +105,8 @@ files:
|
|
105
105
|
- lib/chargebee/models/order.rb
|
106
106
|
- lib/chargebee/models/plan.rb
|
107
107
|
- lib/chargebee/models/portal_session.rb
|
108
|
+
- lib/chargebee/models/resource_migration.rb
|
109
|
+
- lib/chargebee/models/site_migration_detail.rb
|
108
110
|
- lib/chargebee/models/subscription.rb
|
109
111
|
- lib/chargebee/models/subscription_estimate.rb
|
110
112
|
- lib/chargebee/models/third_party_payment_method.rb
|