lago-ruby-client 1.49.0 → 1.50.0

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: 3f6b3744426d3dc1557cccca38a1ea551dcf980216849e48f03445ef030d95c4
4
- data.tar.gz: f2209448cbc72ea88adcae5d24e0db816711c04b56d1de6c4283c23c4d53c73e
3
+ metadata.gz: 0f8190f69942ee6d4db6ba8eee70cc30f288ef4722a2380bc4fbccdd6da8c0ab
4
+ data.tar.gz: e1b21254b6af67400a312feedf60078cd03eeb1e623a860d767aaedaf3753980
5
5
  SHA512:
6
- metadata.gz: 7d46f88c7b9d129f4d0a2782753170269d6b079a1c236023cc9e2214fd997b8f62239819cdb46dd11066e323424280e2ba238f61673826520db1e8f0e8d651dc
7
- data.tar.gz: ba5454c0fa9cbb8606d6e8d7513cb23d6bd0d7a64c881daa01078d5808fad46439b32104aa50fdbb608f64ea54b9805c037e6eb4032d79d8e14154e7d82cd091
6
+ metadata.gz: 94f3bf16b98f79a7ef7232c75e3449acf60ac3aff7a4775611ca3a20f2de86c9125b3e01cdd51e4c9cb506bcdf2a0e9991c6912065b3790f303fca0c0978a2bf
7
+ data.tar.gz: 2c52879f4a93f841a68d3b6c038c671db69f642f7082bd72bc5d9b2e3b69883dc9d4478c85313bd0561ee8d69127f21ca8f265af1754fb4de585b4430dc49f4a
@@ -222,6 +222,9 @@ module Lago
222
222
  invoice_custom_section = whitelist_invoice_custom_section_params(params[:invoice_custom_section])
223
223
  result[:invoice_custom_section] = invoice_custom_section if invoice_custom_section
224
224
 
225
+ activation_rules = whitelist_activation_rules_params(params[:activation_rules])
226
+ result[:activation_rules] = activation_rules if activation_rules
227
+
225
228
  { root_name => result }
226
229
  end
227
230
 
@@ -288,6 +291,12 @@ module Lago
288
291
  payment_method_param&.slice(:payment_method_type, :payment_method_id)
289
292
  end
290
293
 
294
+ def whitelist_activation_rules_params(activation_rules_param)
295
+ activation_rules_param&.map do |rule|
296
+ (rule || {}).slice(:type, :timeout_hours)
297
+ end
298
+ end
299
+
291
300
  def whitelist_invoice_custom_section_params(invoice_custom_section_param)
292
301
  invoice_custom_section_param&.slice(:skip_invoice_custom_sections, :invoice_custom_section_codes)
293
302
  end
data/lib/lago/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lago
4
- VERSION = '1.49.0'
4
+ VERSION = '1.50.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lago-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.49.0
4
+ version: 1.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lovro Colic