lago-ruby-client 0.53.0.pre.beta → 0.54.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: 43b2c0391e420fdd64ab2e1094e32ecfc20c7357b59c90fcfe59a8175ff36f08
4
- data.tar.gz: '0195bb3759d72872ae09e8977abd4d1b7031450ce56ce85ea3db1bd788797a22'
3
+ metadata.gz: 82f57b891309f0553d8be68655bd29b7634a5464acd25211499b2a013ba3c3b5
4
+ data.tar.gz: 00b758c1f541e5bb89c291fb8b295c4b4d87c5ddc68a540315670e44e378d433
5
5
  SHA512:
6
- metadata.gz: 446ee955c112c79ab501a3200cf242d9155e4608b87ed5371798ad62ebe0f078f88cf092c384dd989ec29766cb538cea920e798464df190724c44ed6347a4c2f
7
- data.tar.gz: 9d7ae935d4603a3229b62594a313b8803e5ab06ba19c90699ffb44165de440b0ee57820b6bbbdcdb50c643c1f0a48f9b5753f987cc8cc72520a5cf89b683f2d3
6
+ metadata.gz: e72ca1088c425f61450e5d9f4112a3fbb4195747f4d680c8b4030d0c123d141ef7c8b620438f43c84e1d9235478540eaba637181fb3d0b9f225c4451e314eb9e
7
+ data.tar.gz: 5f05badff7ee5333a988c2e45ec1e61911b017e8a2635327d7c8bdc3fb72cab0d046365c92e1f71369b9b9d8d409e6b8ac48362f556a230c98710dfe75f46a83
@@ -46,9 +46,9 @@ module Lago
46
46
  "#{client.base_api_url}#{api_resource}/#{external_customer_id}/checkout_url",
47
47
  )
48
48
 
49
- response = connection.post(uri, identifier: nil)[root_name]
49
+ response = connection.post(uri)[root_name]
50
50
 
51
- JSON.parse(response.to_json, object_class: OpenStruct).checkout_url
51
+ JSON.parse(response.to_json, object_class: OpenStruct)
52
52
  end
53
53
 
54
54
  def whitelist_params(params)
@@ -88,6 +88,7 @@ module Lago
88
88
  (billing_params || {}).slice(
89
89
  :invoice_grace_period,
90
90
  :payment_provider,
91
+ :payment_provider_code,
91
92
  :provider_customer_id,
92
93
  :sync,
93
94
  :sync_with_provider,
@@ -41,14 +41,7 @@ module Lago
41
41
 
42
42
  def whitelist_batch_params(params)
43
43
  {
44
- root_name => {
45
- transaction_id: params[:transaction_id],
46
- external_customer_id: params[:external_customer_id],
47
- code: params[:code],
48
- timestamp: params[:timestamp],
49
- external_subscription_ids: params[:external_subscription_ids],
50
- properties: params[:properties],
51
- }.compact,
44
+ events: params[:events],
52
45
  }
53
46
  end
54
47
 
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.53.0-beta'
4
+ VERSION = '0.54.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.53.0.pre.beta
4
+ version: 0.54.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-12-11 00:00:00.000000000 Z
11
+ date: 2024-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: 1.3.1
181
181
  requirements: []
182
- rubygems_version: 3.0.9
182
+ rubygems_version: 3.4.6
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: Lago Rest API client