recurly 2.12.1.rc1 → 2.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/recurly/account.rb +0 -33
- data/lib/recurly/adjustment.rb +1 -0
- data/lib/recurly/api.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06ed1fa47719b4353f1837574fefbbecf996108b
|
4
|
+
data.tar.gz: 8b3d8a509878a8a2196e5f714361e5ca698b1dac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd284f548b2d62a4056572d921c577ba9aefbf09e35202f03e6c658fd8752d0577a18d9b0b37bd4ba2ce6d356db15cc389d9885329368c0997fc10fb413e5467
|
7
|
+
data.tar.gz: 631ed8af4aa654ebc41f7727324a64e849132a616d2cae03a10ea9e73c19d53e6c403756c20ec6305636190cca450ab7924471948185e98bf8b5e3cb2f6f8678
|
data/README.md
CHANGED
@@ -14,7 +14,7 @@ Recurly is packaged as a Ruby gem. We recommend you install it with
|
|
14
14
|
[Bundler](http://gembundler.com/) by adding the following line to your Gemfile:
|
15
15
|
|
16
16
|
``` ruby
|
17
|
-
gem 'recurly', '~> 2.12.
|
17
|
+
gem 'recurly', '~> 2.12.1'
|
18
18
|
```
|
19
19
|
|
20
20
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly/account.rb
CHANGED
@@ -106,39 +106,6 @@ module Recurly
|
|
106
106
|
true
|
107
107
|
end
|
108
108
|
|
109
|
-
# Verify a cvv code for the account's billing info.
|
110
|
-
#
|
111
|
-
# @example
|
112
|
-
# acct = Recurly::Account.find('benjamin-du-monde')
|
113
|
-
# begin
|
114
|
-
# # If successful, returned billing_info will contain
|
115
|
-
# # updated billing info details.
|
116
|
-
# billing_info = acct.verify_cvv!("504")
|
117
|
-
# rescue Recurly::API::BadRequest => e
|
118
|
-
# e.message # => "This credit card has too many cvv check attempts."
|
119
|
-
# rescue Recurly::Transaction::Error => e
|
120
|
-
# # this will be the errors coming back from gateway
|
121
|
-
# e.transaction_error_code # => "fraud_security_code"
|
122
|
-
# e.gateway_error_code # => "fraud"
|
123
|
-
# rescue Recurly::Resource::Invalid => e
|
124
|
-
# e.message # => "verification_value must be three digits"
|
125
|
-
# end
|
126
|
-
#
|
127
|
-
# @param [String] verification_value The CVV code to check
|
128
|
-
# @return [BillingInfo] The updated billing info
|
129
|
-
# @raise [Recurly::Transaction::Error] A Transaction Error will be raised if the gateway declines
|
130
|
-
# the cvv code.
|
131
|
-
# @raise [API::BadRequest] A BadRequest error will be raised if you attempt to check too many times
|
132
|
-
# and are locked out.
|
133
|
-
# @raise [Resource::Invalid] An Invalid Error will be raised if you send an invalid request (such as
|
134
|
-
# a value that is not a propert verification number).
|
135
|
-
def verify_cvv!(verification_value)
|
136
|
-
bi = BillingInfo.new(verification_value: verification_value)
|
137
|
-
bi.uri = "#{path}/billing_info/verify_cvv"
|
138
|
-
bi.save!
|
139
|
-
bi
|
140
|
-
end
|
141
|
-
|
142
109
|
def changed_attributes
|
143
110
|
attrs = super
|
144
111
|
if address.respond_to?(:changed?) && address.changed?
|
data/lib/recurly/adjustment.rb
CHANGED
data/lib/recurly/api.rb
CHANGED
data/lib/recurly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.12.1
|
4
|
+
version: 2.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -233,12 +233,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
233
233
|
version: 1.9.3
|
234
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
235
|
requirements:
|
236
|
-
- - "
|
236
|
+
- - ">="
|
237
237
|
- !ruby/object:Gem::Version
|
238
|
-
version:
|
238
|
+
version: '0'
|
239
239
|
requirements: []
|
240
240
|
rubyforge_project:
|
241
|
-
rubygems_version: 2.6.
|
241
|
+
rubygems_version: 2.6.13
|
242
242
|
signing_key:
|
243
243
|
specification_version: 4
|
244
244
|
summary: Recurly API Client
|