recurly 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/lib/recurly/subscription.rb +1 -1
- data/lib/recurly/transaction.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- metadata +2 -2
data/lib/recurly/subscription.rb
CHANGED
@@ -57,7 +57,7 @@ module Recurly
|
|
57
57
|
# Valid timeframe: :now or :renewal
|
58
58
|
# Valid options: plan_code, quantity, unit_amount
|
59
59
|
def change(timeframe, options = {})
|
60
|
-
raise "Timeframe must be :
|
60
|
+
raise "Timeframe must be :now or :renewal." unless ['now','renewal'].include?(timeframe)
|
61
61
|
options[:timeframe] = timeframe
|
62
62
|
path = "/accounts/#{CGI::escape(self.subscription_account_code.to_s)}/subscription.xml"
|
63
63
|
connection.put(path,
|
data/lib/recurly/transaction.rb
CHANGED
@@ -61,7 +61,7 @@ module Recurly
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def refund(amount_in_cents)
|
64
|
-
connection.delete(element_path(:action => "refund", :
|
64
|
+
connection.delete(element_path(:action => "refund", :amount_in_cents => amount_in_cents), self.class.headers)
|
65
65
|
end
|
66
66
|
|
67
67
|
end
|
data/lib/recurly/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Isaac Hall
|
@@ -223,7 +223,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
223
|
requirements:
|
224
224
|
- - ">="
|
225
225
|
- !ruby/object:Gem::Version
|
226
|
-
hash:
|
226
|
+
hash: -2856435589924411737
|
227
227
|
segments:
|
228
228
|
- 0
|
229
229
|
version: "0"
|