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 +4 -4
- data/README.md +1 -1
- data/lib/recurly/account_balance.rb +1 -0
- data/lib/recurly/invoice.rb +10 -0
- data/lib/recurly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 912d1b45d04c83c3506c375f50e8849ab302dfc305fed4da9a12955fc1bfb1b7
|
4
|
+
data.tar.gz: 7114fa3829dbef3ddcc4c34ffad3f94e58f638878b0eb1e2947a8feb2ae9a1a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
17
|
+
gem 'recurly', '~> 2.18.31'
|
18
18
|
```
|
19
19
|
|
20
20
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly/invoice.rb
CHANGED
@@ -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]
|
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.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-
|
11
|
+
date: 2022-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|