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 +4 -4
- data/lib/recurly/api.rb +1 -1
- data/lib/recurly/billing_info.rb +1 -0
- data/lib/recurly/transaction/errors.rb +11 -3
- data/lib/recurly/version.rb +1 -1
- data/lib/recurly/webhook/notification.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3519638097719d8a4391fa22280046e0e8b64190bfa32f9f777532f61a52e844
|
4
|
+
data.tar.gz: 390d47a6397f9fc7042268fd2d0d3ba8fcd7408fee7a641a8f7dd3a2f06c5268
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7d8dec227598befb843b61b7906d5d1ee84d41b783c647ea506d99947c7770ba2623f61a13e295609e146dedb79e1f0bc050c5f559a34b1ac4750c68af71724
|
7
|
+
data.tar.gz: 2f9077913faad819422e5a7b17fc5cb9f231b6d2db956926100e951e4700eac69bf67b54818c4ebb6baea59c75b7f96153e0704bbaa510699b4ae6d2ce2fa07c
|
data/lib/recurly/api.rb
CHANGED
data/lib/recurly/billing_info.rb
CHANGED
@@ -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'
|
92
|
-
'configuration'
|
93
|
-
'duplicate'
|
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
|
data/lib/recurly/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Recurly
|
2
2
|
module Webhook
|
3
|
-
# The
|
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.
|
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-
|
11
|
+
date: 2019-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|