recurly 2.17.3 → 2.17.4
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 +1 -0
- data/lib/recurly/api.rb +2 -2
- data/lib/recurly/invoice.rb +1 -0
- data/lib/recurly/resource.rb +5 -3
- data/lib/recurly/subscription.rb +1 -0
- data/lib/recurly/version.rb +1 -1
- data/lib/recurly/webhook.rb +2 -0
- data/lib/recurly/webhook/transaction_status_updated_notification.rb +6 -0
- data/lib/recurly/webhook/updated_invoice_notification.rb +6 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c2519fa63df09c6e8be1fbb2b8e3b1e5303581df3c2ba46052d1e6b084503ce
|
4
|
+
data.tar.gz: ebbeaba42a6976405a68afa5741bc031ecf02d5db545d7e7beb47dfb04846baa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b796d1e913080e0da389ae4204ba5ef3cca6aff4f847cb4e4bfb28f4b774e3cc1981c6348553b829f17ea00aed08b5384251214f6ec5cc8db5279d5a7909e73
|
7
|
+
data.tar.gz: 06145b01639da1f736ce9275dcdad4bba660d44d2efc84539290955b3bb0507bae9d8a44f54f43a575a566ff3f354c89e323dc120a3a6ae58018799380b021b7
|
data/README.md
CHANGED
@@ -90,7 +90,7 @@ will be used.
|
|
90
90
|
|
91
91
|
## Supported Ruby Versions
|
92
92
|
|
93
|
-
We are currently supporting ruby language versions `2.3` and above. `1.9`, `2.0`, `2.1`, and `2.
|
93
|
+
We are currently supporting ruby language versions `2.3` and above. `1.9`, `2.0`, `2.1`, and `2.2` may still work but are not officially supported.
|
94
94
|
|
95
95
|
If you are still using one of these rubies, you should know that support for them ended in
|
96
96
|
2015 (1.9), 2016 (2.0), 2017 (2.1), 2018 (2.2) and continuing to use them is a security risk.
|
data/lib/recurly/account.rb
CHANGED
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
|
+
RECURLY_API_VERSION = '2.17'
|
21
21
|
|
22
22
|
FORMATS = Helper.hash_with_indifferent_read_access(
|
23
23
|
'pdf' => 'application/pdf',
|
@@ -85,7 +85,7 @@ module Recurly
|
|
85
85
|
|
86
86
|
# @return [String]
|
87
87
|
def user_agent
|
88
|
-
"Recurly/#{Version}; #{RUBY_DESCRIPTION}"
|
88
|
+
"Recurly/#{Version}; #{RUBY_DESCRIPTION}; #{OpenSSL::OPENSSL_LIBRARY_VERSION}"
|
89
89
|
end
|
90
90
|
|
91
91
|
private
|
data/lib/recurly/invoice.rb
CHANGED
data/lib/recurly/resource.rb
CHANGED
@@ -1004,7 +1004,8 @@ module Recurly
|
|
1004
1004
|
previous_changes,
|
1005
1005
|
response,
|
1006
1006
|
etag,
|
1007
|
-
links
|
1007
|
+
links,
|
1008
|
+
@type
|
1008
1009
|
]
|
1009
1010
|
end
|
1010
1011
|
|
@@ -1018,13 +1019,14 @@ module Recurly
|
|
1018
1019
|
@previous_changes,
|
1019
1020
|
@response,
|
1020
1021
|
@etag,
|
1021
|
-
@links
|
1022
|
+
@links,
|
1023
|
+
@type = serialization
|
1022
1024
|
end
|
1023
1025
|
|
1024
1026
|
# @return [String]
|
1025
1027
|
def inspect(attributes = self.class.attribute_names.to_a)
|
1026
1028
|
string = "#<#{self.class}"
|
1027
|
-
string << "##@type" if
|
1029
|
+
string << "##@type" if respond_to?(:type)
|
1028
1030
|
attributes += %w(errors) if errors.any?
|
1029
1031
|
string << " %s" % attributes.map { |k|
|
1030
1032
|
"#{k}: #{self.send(k).inspect}"
|
data/lib/recurly/subscription.rb
CHANGED
data/lib/recurly/version.rb
CHANGED
data/lib/recurly/webhook.rb
CHANGED
@@ -68,6 +68,8 @@ module Recurly
|
|
68
68
|
autoload :NewUsageNotification, 'recurly/webhook/new_usage_notification'
|
69
69
|
autoload :TransactionAuthorizedNotification, 'recurly/webhook/transaction_authorized_notification'
|
70
70
|
autoload :LowBalanceGiftCardNotification, 'recurly/webhook/low_balance_gift_card_notification'
|
71
|
+
autoload :TransactionStatusUpdatedNotification, 'recurly/webhook/transaction_status_updated_notification'
|
72
|
+
autoload :UpdatedInvoiceNotification, 'recurly/webhook/updated_invoice_notification'
|
71
73
|
# This exception is raised if the Webhook Notification initialization fails
|
72
74
|
class NotificationError < Error
|
73
75
|
end
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11
|
11
|
+
date: 2018-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -272,8 +272,10 @@ files:
|
|
272
272
|
- lib/recurly/webhook/successful_refund_notification.rb
|
273
273
|
- lib/recurly/webhook/transaction_authorized_notification.rb
|
274
274
|
- lib/recurly/webhook/transaction_notification.rb
|
275
|
+
- lib/recurly/webhook/transaction_status_updated_notification.rb
|
275
276
|
- lib/recurly/webhook/updated_account_notification.rb
|
276
277
|
- lib/recurly/webhook/updated_balance_gift_card_notification.rb
|
278
|
+
- lib/recurly/webhook/updated_invoice_notification.rb
|
277
279
|
- lib/recurly/webhook/updated_subscription_notification.rb
|
278
280
|
- lib/recurly/webhook/void_payment_notification.rb
|
279
281
|
- lib/recurly/webhook/voided_credit_invoice_notification.rb
|