recurly 2.18.25 → 2.18.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e839992756de200d39aeea7db58e3dd1827be4461867ee88f0de37780be0319c
4
- data.tar.gz: 7eb0158dcb3f59d3c43c1ed2e716b38d1e1675ac740779ab950c34a7eff252d5
3
+ metadata.gz: 80f20612581de184e9289de7932e7801799978847a9ee3c464dfd8283c99a6f2
4
+ data.tar.gz: 7f8a60c7be6db9467b434d9c78d7b1aae344313d9af88b3868c9436815ed011f
5
5
  SHA512:
6
- metadata.gz: 4da7d36ac2cb946b79e38fd6b68802f25d3e183612bd09671ecf3949158dfcea411d77809ed5b09030a60867d330535da097bede92324c24b622fc0bb89071ec
7
- data.tar.gz: 91ea3f84276470d86bebe852ae7fbc254f50b02ff72ec11dad5847aeb000e4b379320c49e75bd7c18fc4df0e11f711fee55c2aaed406ebe3c3e5d11c7e0d8186
6
+ metadata.gz: ed179b0bb225b7ed545d70788a488d0f1b1518ddaef440a1aed8048490c67cdfd63bd87594a65a9d596dedef54355c5c909468e9bd3b5e11f33277bf55c3d0cf
7
+ data.tar.gz: 15e08b97f21699ce9c005495e81be7bffd842dafbabbd58e0b68be80d8176d168d84c853e092f5956c7662d5513da2ea1007d269f46f84ee89ac36ea566b48e1
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.18.25'
17
+ gem 'recurly', '~> 2.18.26'
18
18
  ```
19
19
 
20
20
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -59,6 +59,19 @@ module Recurly
59
59
  Transaction.from_response API.post("#{path}/verify", attrs.empty? ? nil : Verify.to_xml(attrs))
60
60
  end
61
61
 
62
+ def self.to_xml(attrs)
63
+ billing_info = new attrs
64
+ billing_info.to_xml
65
+ end
66
+
67
+ # Verify a credit card CVV
68
+ #
69
+ # @param [Hash] verification_value is the credit card CVV
70
+ # @return [BillingInfo]
71
+ def verify_cvv(attrs = {})
72
+ BillingInfo.from_response API.post("#{path}/verify_cvv", attrs.empty? ? nil : self.class.to_xml(attrs))
73
+ end
74
+
62
75
  # @return [String]
63
76
  def inspect
64
77
  attributes = self.class.attribute_names
@@ -1,6 +1,6 @@
1
1
  module Recurly
2
2
  module Version
3
- VERSION = "2.18.25"
3
+ VERSION = "2.18.26"
4
4
 
5
5
  class << self
6
6
  def inspect
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.18.25
4
+ version: 2.18.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-24 00:00:00.000000000 Z
11
+ date: 2022-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri