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 +4 -4
- data/lib/lago/api/resources/subscription.rb +9 -0
- data/lib/lago/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f8190f69942ee6d4db6ba8eee70cc30f288ef4722a2380bc4fbccdd6da8c0ab
|
|
4
|
+
data.tar.gz: e1b21254b6af67400a312feedf60078cd03eeb1e623a860d767aaedaf3753980
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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