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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 937169bbdfb1d0e013bed6034281d715f2a01de9344e175a12464dada6437ceb
4
- data.tar.gz: 5966c6d87f3f02e5cece6c7e3048dfb27c61514112529cd40e2e03f28a775d24
3
+ metadata.gz: 4c2519fa63df09c6e8be1fbb2b8e3b1e5303581df3c2ba46052d1e6b084503ce
4
+ data.tar.gz: ebbeaba42a6976405a68afa5741bc031ecf02d5db545d7e7beb47dfb04846baa
5
5
  SHA512:
6
- metadata.gz: 73e5ab8f9cae006b06e124ce54324f61ee6c5c72bbb4c57a1351d6936d0871643206b570eac0a741ae8fe3e1abe8e66d243ad8ebf3f828161f5674134c3176f3
7
- data.tar.gz: 46f5c4b8c23a3be9c69262e8533b47378da45fa2d06f79a548386af99fc2e4f3a05047f7e8ed4491d6acc0c559c9130f5d4545e9834d20c66b0a62d8350a6802
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.3` may still work but are not officially supported.
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.
@@ -71,6 +71,7 @@ module Recurly
71
71
  vat_number
72
72
  address
73
73
  tax_exempt
74
+ exemption_certificate
74
75
  entity_use_code
75
76
  created_at
76
77
  updated_at
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.16'
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
@@ -108,6 +108,7 @@ module Recurly
108
108
  subscription_ids
109
109
  dunning_events_count
110
110
  final_dunning_event
111
+ gateway_code
111
112
  )
112
113
  alias to_param invoice_number_with_prefix
113
114
 
@@ -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 = serialization
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 instance_variable_defined? :@type
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}"
@@ -94,6 +94,7 @@ module Recurly
94
94
  current_term_ends_at
95
95
  total_amount_in_cents
96
96
  resume_at
97
+ gateway_code
97
98
  )
98
99
  alias to_param uuid
99
100
 
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 17
5
- PATCH = 3
5
+ PATCH = 4
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
@@ -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
@@ -0,0 +1,6 @@
1
+ module Recurly
2
+ module Webhook
3
+ class TransactionStatusUpdatedNotification < TransactionNotification
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module Recurly
2
+ module Webhook
3
+ class UpdatedInvoiceNotification < InvoiceNotification
4
+ end
5
+ end
6
+ 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.3
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-06 00:00:00.000000000 Z
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