killbill-client 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -36,7 +36,7 @@ module KillBillClient
|
|
36
36
|
# @ call_completion : whether the call should wait for invoice/payment to be completed before calls return
|
37
37
|
#
|
38
38
|
def change_plan(input, user = nil, reason = nil, comment = nil,
|
39
|
-
requested_date = nil, billing_policy = nil,
|
39
|
+
requested_date = nil, billing_policy = nil, call_completion = false,options = {})
|
40
40
|
|
41
41
|
params = {}
|
42
42
|
params[:callCompletion] = call_completion
|
@@ -59,12 +59,13 @@ module KillBillClient
|
|
59
59
|
# @requested_date : the date when that change should occur
|
60
60
|
# @billing_policy : the override for the billing policy {END_OF_TERM, IMMEDIATE}
|
61
61
|
#
|
62
|
-
def cancel(user = nil, reason = nil, comment = nil, requested_date = nil, entitlementPolicy = nil, billing_policy = nil, options = {})
|
62
|
+
def cancel(user = nil, reason = nil, comment = nil, requested_date = nil, entitlementPolicy = nil, billing_policy = nil, use_requested_date_for_billing = nil, options = {})
|
63
63
|
|
64
64
|
params = {}
|
65
65
|
params[:requestedDate] = requested_date unless requested_date.nil?
|
66
66
|
params[:billingPolicy] = billing_policy unless billing_policy.nil?
|
67
67
|
params[:entitlementPolicy] = entitlementPolicy unless entitlementPolicy.nil?
|
68
|
+
params[:useRequestedDateForBilling] = use_requested_date_for_billing unless use_requested_date_for_billing.nil?
|
68
69
|
|
69
70
|
return self.class.delete "#{KILLBILL_API_ENTITLEMENT_PREFIX}/#{@subscription_id}",
|
70
71
|
params,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
segments:
|
166
166
|
- 0
|
167
|
-
hash:
|
167
|
+
hash: 2159346895173876944
|
168
168
|
requirements: []
|
169
169
|
rubyforge_project:
|
170
170
|
rubygems_version: 1.8.25
|