recurly 2.18.13 → 2.18.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/recurly.rb +1 -0
- data/lib/recurly/add_on.rb +2 -0
- data/lib/recurly/api.rb +1 -1
- data/lib/recurly/billing_info.rb +12 -1
- data/lib/recurly/coupon.rb +2 -0
- data/lib/recurly/invoice.rb +3 -0
- data/lib/recurly/verify.rb +12 -0
- data/lib/recurly/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 264bf46b7496932acda139212a0e9a9614703b1fc700877680b15c2413d3a82b
|
4
|
+
data.tar.gz: 767d32e7db149b8c79781268025f4fc178c1328d8ec13aa71141dd83b1678c9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be98eb8d85bd4dbf0f12535d8d92fd826148c460066e637bf7d67ea13b8ae53301fc84a118b9c5461f3aee334ad1bbd92b1d59868259ccd1d599ac5453bbb13d
|
7
|
+
data.tar.gz: 1aa9e3db000d6aa8275b0b1d48dde1bb3b5f6c6d2272e3a88e55ac7c39a4898b8cb25f5341505eb585b5dc5b48f84ceb5464186faed6bd62ee3aec12acaa2b7f
|
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.
|
17
|
+
gem 'recurly', '~> 2.18.18'
|
18
18
|
```
|
19
19
|
|
20
20
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly.rb
CHANGED
data/lib/recurly/add_on.rb
CHANGED
@@ -9,6 +9,7 @@ module Recurly
|
|
9
9
|
add_on_code
|
10
10
|
item_code
|
11
11
|
name
|
12
|
+
item_state
|
12
13
|
accounting_code
|
13
14
|
default_quantity
|
14
15
|
unit_amount_in_cents
|
@@ -23,6 +24,7 @@ module Recurly
|
|
23
24
|
created_at
|
24
25
|
updated_at
|
25
26
|
tier_type
|
27
|
+
external_sku
|
26
28
|
avalara_service_type
|
27
29
|
avalara_transaction_type
|
28
30
|
)
|
data/lib/recurly/api.rb
CHANGED
data/lib/recurly/billing_info.rb
CHANGED
@@ -8,7 +8,7 @@ module Recurly
|
|
8
8
|
AMAZON_ATTRIBUTES = %w(amazon_billing_agreement_id amazon_region).freeze
|
9
9
|
PAYPAL_ATTRIBUTES = %w(paypal_billing_agreement_id).freeze
|
10
10
|
ROKU_ATTRIBUTES = %w(roku_billing_agreement_id last_four).freeze
|
11
|
-
SEPA_ATTRIBUTES = %w(iban).freeze
|
11
|
+
SEPA_ATTRIBUTES = %w(iban last_two).freeze
|
12
12
|
BACS_ATTRIBUTES = %w(account_number sort_code type).freeze
|
13
13
|
BECS_ATTRIBUTES = %w(account_number bsb_code type).freeze
|
14
14
|
|
@@ -40,8 +40,19 @@ module Recurly
|
|
40
40
|
three_d_secure_action_result_token_id
|
41
41
|
transaction_type
|
42
42
|
mandate_reference
|
43
|
+
tax_identifier
|
44
|
+
tax_identifier_type
|
43
45
|
) | CREDIT_CARD_ATTRIBUTES | BANK_ACCOUNT_ATTRIBUTES | AMAZON_ATTRIBUTES | PAYPAL_ATTRIBUTES | ROKU_ATTRIBUTES | SEPA_ATTRIBUTES | BACS_ATTRIBUTES | BECS_ATTRIBUTES
|
44
46
|
|
47
|
+
# Verify an account's stored billing info
|
48
|
+
#
|
49
|
+
# @param [Hash] gateway_code (optional) is the code for the gateway to use for verification. If unspecified, a gateway will be selected using the normal rules.
|
50
|
+
# @return [Transaction]
|
51
|
+
# @raise [Invalid] Raise if the account's billing info cannot be verified
|
52
|
+
def verify(attrs = {})
|
53
|
+
Transaction.from_response API.post("#{path}/verify", attrs.empty? ? nil : Verify.to_xml(attrs))
|
54
|
+
end
|
55
|
+
|
45
56
|
# @return [String]
|
46
57
|
def inspect
|
47
58
|
attributes = self.class.attribute_names
|
data/lib/recurly/coupon.rb
CHANGED
data/lib/recurly/invoice.rb
CHANGED
@@ -203,6 +203,9 @@ module Recurly
|
|
203
203
|
self.class.from_response(
|
204
204
|
follow_link :refund, :body => refund_line_items_to_xml(line_items, refund_method, options)
|
205
205
|
)
|
206
|
+
rescue Recurly::API::UnprocessableEntity => e
|
207
|
+
Transaction::Error.validate! e, (self if is_a?(Transaction))
|
208
|
+
raise
|
206
209
|
end
|
207
210
|
|
208
211
|
# Refunds the invoice for a specific amount.
|
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.18.
|
4
|
+
version: 2.18.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -253,6 +253,7 @@ files:
|
|
253
253
|
- lib/recurly/transaction.rb
|
254
254
|
- lib/recurly/transaction/errors.rb
|
255
255
|
- lib/recurly/usage.rb
|
256
|
+
- lib/recurly/verify.rb
|
256
257
|
- lib/recurly/version.rb
|
257
258
|
- lib/recurly/webhook.rb
|
258
259
|
- lib/recurly/webhook/account_notification.rb
|
@@ -331,7 +332,7 @@ homepage: https://github.com/recurly/recurly-client-ruby
|
|
331
332
|
licenses:
|
332
333
|
- MIT
|
333
334
|
metadata: {}
|
334
|
-
post_install_message:
|
335
|
+
post_install_message:
|
335
336
|
rdoc_options:
|
336
337
|
- "--main"
|
337
338
|
- README.md
|
@@ -349,7 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
349
350
|
version: '0'
|
350
351
|
requirements: []
|
351
352
|
rubygems_version: 3.0.3
|
352
|
-
signing_key:
|
353
|
+
signing_key:
|
353
354
|
specification_version: 4
|
354
355
|
summary: Recurly API Client
|
355
356
|
test_files: []
|