lago-ruby-client 0.56.0.pre.beta → 1.1.0

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: dcd1666489513909215e6e227fc05a3b65d1f15231b965fb0631379d671a3f04
4
- data.tar.gz: f9f643a4e7b1450b424768e5aea69802d1a4c8c6a10323ba732755d68f43a1af
3
+ metadata.gz: aefada84a38ded63a08d480261d1b333face285e39b67bc79bbc1e3ef512c4b5
4
+ data.tar.gz: 2a12a66c34d705ab1075bb71b0ac41f6c4ef2c03a9892285a7962bc461e3cc3c
5
5
  SHA512:
6
- metadata.gz: cd6899778c5c8b93034a3934bc9d7c936c6b24a328813a37bc4d1f0c567012947827804869d3477ed7477e2f0e50bd552b518f15e05468f93d86215585a1a7c1
7
- data.tar.gz: 67293e833f6a2d89de0d185a283f197bb6704afcbaa0693646cbb07975f4991fdaec6784180f0645814d428e3d80582146c279699568c40e841fdc708531f9de
6
+ metadata.gz: e11b90e9b22c2bef30f67b3351ddcc5214747454a7d877e3ac8d47a74f5cabbbf9bb5a4dbb8e9f7649770e99516c207553c462d0163f917e8f83a89d2d3ea88d
7
+ data.tar.gz: ef54f59327f878e5fcf3a4ddea14a864aa20da674489d4145861a90551b8b77d9c3fb729078ea1a709be0fc0061ad2efa68df9e9fe4fe9c261e8efbdb32163f8
@@ -31,9 +31,21 @@ module Lago
31
31
  result_hash[:charges] = charges unless charges.empty?
32
32
  end
33
33
 
34
+ whitelist_minimum_commitment(params[:minimum_commitment]).tap do |minimum_commitment|
35
+ result_hash[:minimum_commitment] = minimum_commitment
36
+ end
37
+
34
38
  { root_name => result_hash }
35
39
  end
36
40
 
41
+ def whitelist_minimum_commitment(minimum_commitment)
42
+ minimum_commitment.slice(
43
+ :amount_cents,
44
+ :invoice_display_name,
45
+ :tax_codes,
46
+ )
47
+ end
48
+
37
49
  def whitelist_charges(charges)
38
50
  processed_charges = []
39
51
 
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.56.0-beta'
4
+ VERSION = '1.1.0'
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.56.0.pre.beta
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lovro Colic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-13 00:00:00.000000000 Z
11
+ date: 2024-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -175,9 +175,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ">"
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: 1.3.1
180
+ version: '0'
181
181
  requirements: []
182
182
  rubygems_version: 3.3.3
183
183
  signing_key: