recurly 2.18.30 → 2.18.31

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: 63b45df3d697d743004d55e95af8e1cb4b66fee91ede7dc6bde8b4a46bca4d92
4
- data.tar.gz: 52277814f16660e4a03010ad417455cd7d25be74afef6af3a201f638198185e7
3
+ metadata.gz: 912d1b45d04c83c3506c375f50e8849ab302dfc305fed4da9a12955fc1bfb1b7
4
+ data.tar.gz: 7114fa3829dbef3ddcc4c34ffad3f94e58f638878b0eb1e2947a8feb2ae9a1a0
5
5
  SHA512:
6
- metadata.gz: a044fba0b706a2287fcc22a6d033c805667e596b487319eacc2f841fa7518fa5e86239be5449722f31c58f729694d9a8a29609dacd6a221711d0277b272459fd
7
- data.tar.gz: 69934d6d213780d2aa8de76ba95622895990cae1bb24e783abf5f2be6afffbe7713c612d76c8790188f7bec948e71f2fc992f89c035705bd28f0563581f8c875
6
+ metadata.gz: 8df421cb571be12bf410ebabd4ebd7d10180d44838c2aa4e57341a6fb4f3c25b0c4cae7ccd1b99d0bf3efdd4553075d653860cdef31f84e81ae3580f0daf1598
7
+ data.tar.gz: 2b86033aac54329ed83c8085f2ff41edae9020bda46a194d4fb4fd63dbedffd081fe33c2265305cd781f2ab73e132f24bcd57dd685b8d2810f24c1f3dbb2e557
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.30'
17
+ gem 'recurly', '~> 2.18.31'
18
18
  ```
19
19
 
20
20
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -12,6 +12,7 @@ module Recurly
12
12
  past_due
13
13
  balance_in_cents
14
14
  processing_prepayment_balance_in_cents
15
+ available_credit_balance_in_cents
15
16
  )
16
17
 
17
18
  # This object does not represent a model on the server side
@@ -177,6 +177,16 @@ module Recurly
177
177
  true
178
178
  end
179
179
 
180
+ # Applies the open credit balance on the account to the invoice balance.
181
+ #
182
+ # @return [true, false] +true+ when successful, +false+ when unable to
183
+ # (e.g., the invoice is no longer collectible).
184
+ def apply_credit_balance
185
+ return false unless link? :apply_credit_balance
186
+ reload follow_link :apply_credit_balance
187
+ true
188
+ end
189
+
180
190
  # Posts an offline payment on this invoice
181
191
  #
182
192
  # @return [Transaction]
@@ -1,6 +1,6 @@
1
1
  module Recurly
2
2
  module Version
3
- VERSION = "2.18.30"
3
+ VERSION = "2.18.31"
4
4
 
5
5
  class << self
6
6
  def inspect
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.30
4
+ version: 2.18.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-15 00:00:00.000000000 Z
11
+ date: 2022-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri