recurly 2.17.10 → 2.17.11

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: 7d0e0ace96d322bc281a9222b3f8a5ad5a74934c9a932b3acf42dc9758125123
4
- data.tar.gz: 2078d66436b7e833573186d07286c8aa1e2978b6fcc9b0b5be95483ea1a27b69
3
+ metadata.gz: 3519638097719d8a4391fa22280046e0e8b64190bfa32f9f777532f61a52e844
4
+ data.tar.gz: 390d47a6397f9fc7042268fd2d0d3ba8fcd7408fee7a641a8f7dd3a2f06c5268
5
5
  SHA512:
6
- metadata.gz: 32dab96f508dd4d353bf9bc5f55e3a6fe3986c8080eaae3f0700923bc17448dfeab99c56dfb542f2b5e4472ea1c20aa70341d2b75b1f8bf62b5864698d67237f
7
- data.tar.gz: b57ea7406d7188e572ac93e7c6e2e99f004a27108f1a8e79348447fd4b56a8203119a342cee0a23981276abfd3fb41dd4425c1edc49bb30cbdfffbd22f1e9cc3
6
+ metadata.gz: a7d8dec227598befb843b61b7906d5d1ee84d41b783c647ea506d99947c7770ba2623f61a13e295609e146dedb79e1f0bc050c5f559a34b1ac4750c68af71724
7
+ data.tar.gz: 2f9077913faad819422e5a7b17fc5cb9f231b6d2db956926100e951e4700eac69bf67b54818c4ebb6baea59c75b7f96153e0704bbaa510699b4ae6d2ce2fa07c
data/lib/recurly/api.rb CHANGED
@@ -17,7 +17,7 @@ module Recurly
17
17
  @@base_uri = "https://api.recurly.com/v2/"
18
18
  @@valid_domains = [".recurly.com"]
19
19
 
20
- RECURLY_API_VERSION = '2.20'
20
+ RECURLY_API_VERSION = '2.21'
21
21
 
22
22
  FORMATS = Helper.hash_with_indifferent_read_access(
23
23
  'pdf' => 'application/pdf',
@@ -34,6 +34,7 @@ module Recurly
34
34
  gateway_token
35
35
  gateway_code
36
36
  fraud_session_id
37
+ three_d_secure_action_result_token_id
37
38
  ) | CREDIT_CARD_ATTRIBUTES | BANK_ACCOUNT_ATTRIBUTES | AMAZON_ATTRIBUTES | PAYPAL_ATTRIBUTES | ROKU_ATTRIBUTES
38
39
 
39
40
  # @return ["credit_card", "paypal", "amazon", "bank_account", "roku", nil] The type of billing info.
@@ -85,12 +85,20 @@ module Recurly
85
85
  class DuplicateError < DeclinedError
86
86
  end
87
87
 
88
+ # Raised when a 3DS result token is needed to complete a transaction
89
+ class ThreeDSecureError < DeclinedError
90
+ def three_d_secure_action_token_id
91
+ xml.text '/errors/transaction_error/three_d_secure_action_token_id'
92
+ end
93
+ end
94
+
88
95
  class << Error
89
96
  CATEGORY_MAP = Hash.new DeclinedError
90
97
  CATEGORY_MAP.update(
91
- 'communication' => RetryableError,
92
- 'configuration' => ConfigurationError,
93
- 'duplicate' => DuplicateError
98
+ 'communication' => RetryableError,
99
+ 'configuration' => ConfigurationError,
100
+ 'duplicate' => DuplicateError,
101
+ '3d_secure_action_required' => ThreeDSecureError
94
102
  )
95
103
 
96
104
  def validate! exception, transaction
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 17
5
- PATCH = 10
5
+ PATCH = 11
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
@@ -1,6 +1,6 @@
1
1
  module Recurly
2
2
  module Webhook
3
- # The TransactionNotification class provides a generic interface
3
+ # The Notification class provides a generic interface
4
4
  # for account-related webhook notifications.
5
5
  class Notification < Resource
6
6
  # Provides a convenience method to reload assocated members because Webhook
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.17.10
4
+ version: 2.17.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-21 00:00:00.000000000 Z
11
+ date: 2019-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri