lago-ruby-client 0.27.0.pre.beta → 0.29.0.pre.beta

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: 6c7e6bca3327173d541f187c6fd1681de16a8ded711e91f6ce16afa62d432d95
4
- data.tar.gz: 5f8154c8a9bcdf2b5b404dee32088dee9210fc9eebac14807bb4d6ff9b837174
3
+ metadata.gz: e96f15de92a9e59b52a75037532534690d6d921c1f0a94a5acdf905cc3904fcf
4
+ data.tar.gz: be5ae5c4274f99354495795495af672b83538c3b780ce112ddad68dfd293fe4c
5
5
  SHA512:
6
- metadata.gz: ab74a11d2c06c5a0dbac928d443a7bfc477d7f6953f69eea1c628c1766b5d68eea2f4b41b7b6a59d18d58f31997d0215d9bbd7cbb8ef9fab4daada80c6f38659
7
- data.tar.gz: a403f2aa1f16153987146b43f209e00c7476229efeb915eb15f2756c4af384f6b64434c38b3d153c9b12eecc7e9d989dbbe488461c0c3d106079e7ee1c0f1567
6
+ metadata.gz: dc6f2f95676ef5c086bd2234064b4defbdc17fdf31cd9f9500d5ea0fc6bcb6cf302fc27720deab5b801b40c11fe531b2deed430b90d95c95e45c20c85f61d95e
7
+ data.tar.gz: 5959061afb92fa9508fe99816981da353ab62e889702e12370a26df4cc67061f37d9009e10a52a4dd994e571a4765fe6605faf06c46d3213c7fb46da3f9fd228
@@ -35,7 +35,7 @@ module Lago
35
35
  end
36
36
 
37
37
  def whitelist_limitations(limitation_params)
38
- (limitation_params || {}).slice(:plan_codes)
38
+ (limitation_params || {}).slice(:plan_codes, :billable_metric_codes)
39
39
  end
40
40
  end
41
41
  end
@@ -11,6 +11,14 @@ module Lago
11
11
  def root_name
12
12
  'fee'
13
13
  end
14
+
15
+ def whitelist_params(params)
16
+ {
17
+ root_name => {
18
+ payment_status: params[:payment_status],
19
+ },
20
+ }
21
+ end
14
22
  end
15
23
  end
16
24
  end
@@ -36,7 +36,7 @@ module Lago
36
36
  processed_charges = []
37
37
 
38
38
  charges.each do |c|
39
- result = (c || {}).slice(:id, :billable_metric_id, :charge_model, :properties, :group_properties)
39
+ result = (c || {}).slice(:id, :billable_metric_id, :charge_model, :instant, :properties, :group_properties)
40
40
 
41
41
  processed_charges << result unless result.empty?
42
42
  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 = '0.27.0-beta'
4
+ VERSION = '0.29.0-beta'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lago-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0.pre.beta
4
+ version: 0.29.0.pre.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lovro Colic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-28 00:00:00.000000000 Z
11
+ date: 2023-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt