recurly 2.18.30 → 2.18.32

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: 380b5b8231cc9062f6275a2a5828cf51eae88aaa65aca50b6ea989c62dbf630d
4
+ data.tar.gz: 10994ca6ae6a77b269a9fe68f0c50858781adf161bbc4e38fb464d46169aaeb6
5
5
  SHA512:
6
- metadata.gz: a044fba0b706a2287fcc22a6d033c805667e596b487319eacc2f841fa7518fa5e86239be5449722f31c58f729694d9a8a29609dacd6a221711d0277b272459fd
7
- data.tar.gz: 69934d6d213780d2aa8de76ba95622895990cae1bb24e783abf5f2be6afffbe7713c612d76c8790188f7bec948e71f2fc992f89c035705bd28f0563581f8c875
6
+ metadata.gz: 49b6f26d5151d156c47046fb6a7ee41174e8b42f69e1c932a19f35fea7ab8ddffb2056bd127e20ea21d3101858abc4c5f940284791043e07d4c1c9316ee352e5
7
+ data.tar.gz: 3aac2a23498e485be20c61bd3f53bbd392c75a02df3f5619b66519054ed1f0fe4cd5274bf52b4698c786206d4a077a2c8fc2c7eb6c98e481acc3d04cb5e8aff6
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.32'
18
18
  ```
19
19
 
20
20
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -103,6 +103,7 @@ module Recurly
103
103
  has_past_due_invoice
104
104
  has_paused_subscription
105
105
  preferred_locale
106
+ preferred_time_zone
106
107
  transaction_type
107
108
  dunning_campaign_id
108
109
  invoice_template_uuid
@@ -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.32"
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.32
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: 2023-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri