recurly 2.17.0 → 2.17.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bfeb53a4a29911b77e3d863c5ed3354c60205d43c03723f28aa166d161956e0
4
- data.tar.gz: 48e368772a86ce80fba49d3621495f344a3b7cc6cd39a6e99e0fff4e8016fda6
3
+ metadata.gz: af034077b30e3eb275c880063b1fb538b3eaa47d8505cc890c2cbd9962beed56
4
+ data.tar.gz: 4b9352c55f04379e26f11e9f465b0c66de0c60a61307c2f801e1c500e23cc8c5
5
5
  SHA512:
6
- metadata.gz: 2bfb17cbe277468533f96a4576d6153b01e164e5f6ef321c204cd252eb0b94522dc7ad393bd39a9b61e3a61be5699f4a0b15bf142d0f791417d7f05321df2137
7
- data.tar.gz: 993f84fbf4f298a883f0a25daff915d00a8f0dedcd49a93c303fbdfeafdf96cf77c3869dabe122e1ed593d8baebc1f97c87f791ba60f70d36fe79ebba3cf30fb
6
+ metadata.gz: d415dc2552689e41bd0c79b1dc87aac8461aa86c21bd84fd3d026ef8828cad8189972b3d0a5e72ec63fa09ac01af7000fcf460a0dc73db0786ee7b4972c596d1
7
+ data.tar.gz: 41e2a66fcded4b0715d50616f54b727233ac8368c955b47ab0ebf1252dd03864806bcae2e8b7477aed85e82d0c07fceb2583c54a434d83c632a98307eed21305
@@ -26,6 +26,9 @@ module Recurly
26
26
  # @return [Pager<Transaction>, []] A pager that yields Transaction for persisted
27
27
  has_many :transactions
28
28
 
29
+ # @return [Pager<Note>, []] A pager that yields Note for persisted
30
+ has_many :notes
31
+
29
32
  # @return [Pager<Redemption>, []] A pager that yields Redemptions for persisted
30
33
  has_many :redemptions
31
34
 
@@ -106,7 +109,7 @@ module Recurly
106
109
  # Reopen an account.
107
110
  #
108
111
  # @return [true, false] +true+ when successful, +false+ when unable to
109
- # (e.g., the account is already opwn), and may raise an exception if the
112
+ # (e.g., the account is already open), and may raise an exception if the
110
113
  # attempt fails.
111
114
  def reopen
112
115
  return false unless link? :reopen
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.14'
20
+ RECURLY_API_VERSION = '2.15'
21
21
 
22
22
  FORMATS = Helper.hash_with_indifferent_read_access(
23
23
  'pdf' => 'application/pdf',
@@ -0,0 +1,14 @@
1
+ module Recurly
2
+ # Recurly Documentation: https://dev.recurly.com/docs/list-account-notes
3
+ class Note < Resource
4
+ # @return [Account]
5
+ belongs_to :account
6
+
7
+ define_attribute_methods %w(
8
+ account
9
+ message
10
+ created_at
11
+ )
12
+
13
+ end
14
+ end
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 17
5
- PATCH = 0
5
+ PATCH = 1
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
@@ -0,0 +1,6 @@
1
+ module Recurly
2
+ module Webhook
3
+ class LowBalanceGiftCardNotification < SubscriptionNotification
4
+ end
5
+ end
6
+ end
@@ -67,6 +67,7 @@ module Recurly
67
67
  autoload :UpdatedBalanceGiftCardNotification, 'recurly/webhook/updated_balance_gift_card_notification'
68
68
  autoload :NewUsageNotification, 'recurly/webhook/new_usage_notification'
69
69
  autoload :TransactionAuthorizedNotification, 'recurly/webhook/transaction_authorized_notification'
70
+ autoload :LowBalanceGiftCardNotification, 'recurly/webhook/low_balance_gift_card_notification'
70
71
  # This exception is raised if the Webhook Notification initialization fails
71
72
  class NotificationError < Error
72
73
  end
data/lib/recurly.rb CHANGED
@@ -23,6 +23,7 @@ module Recurly
23
23
  require 'recurly/js'
24
24
  require 'recurly/money'
25
25
  require 'recurly/measured_unit'
26
+ require 'recurly/note'
26
27
  require 'recurly/plan'
27
28
  require 'recurly/redemption'
28
29
  require 'recurly/subscription'
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.0
4
+ version: 2.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-20 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -181,6 +181,7 @@ files:
181
181
  - lib/recurly/juris_detail.rb
182
182
  - lib/recurly/measured_unit.rb
183
183
  - lib/recurly/money.rb
184
+ - lib/recurly/note.rb
184
185
  - lib/recurly/plan.rb
185
186
  - lib/recurly/purchase.rb
186
187
  - lib/recurly/redemption.rb
@@ -212,6 +213,7 @@ files:
212
213
  - lib/recurly/webhook/failed_payment_notification.rb
213
214
  - lib/recurly/webhook/gift_card_notification.rb
214
215
  - lib/recurly/webhook/invoice_notification.rb
216
+ - lib/recurly/webhook/low_balance_gift_card_notification.rb
215
217
  - lib/recurly/webhook/new_account_notification.rb
216
218
  - lib/recurly/webhook/new_charge_invoice_notification.rb
217
219
  - lib/recurly/webhook/new_credit_invoice_notification.rb
@@ -271,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
271
273
  version: '0'
272
274
  requirements: []
273
275
  rubyforge_project:
274
- rubygems_version: 2.7.6
276
+ rubygems_version: 2.7.7
275
277
  signing_key:
276
278
  specification_version: 4
277
279
  summary: Recurly API Client