lago-ruby-client 0.54.0.pre.beta → 0.56.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: 82f57b891309f0553d8be68655bd29b7634a5464acd25211499b2a013ba3c3b5
4
- data.tar.gz: 00b758c1f541e5bb89c291fb8b295c4b4d87c5ddc68a540315670e44e378d433
3
+ metadata.gz: dcd1666489513909215e6e227fc05a3b65d1f15231b965fb0631379d671a3f04
4
+ data.tar.gz: f9f643a4e7b1450b424768e5aea69802d1a4c8c6a10323ba732755d68f43a1af
5
5
  SHA512:
6
- metadata.gz: e72ca1088c425f61450e5d9f4112a3fbb4195747f4d680c8b4030d0c123d141ef7c8b620438f43c84e1d9235478540eaba637181fb3d0b9f225c4451e314eb9e
7
- data.tar.gz: 5f05badff7ee5333a988c2e45ec1e61911b017e8a2635327d7c8bdc3fb72cab0d046365c92e1f71369b9b9d8d409e6b8ac48362f556a230c98710dfe75f46a83
6
+ metadata.gz: cd6899778c5c8b93034a3934bc9d7c936c6b24a328813a37bc4d1f0c567012947827804869d3477ed7477e2f0e50bd552b518f15e05468f93d86215585a1a7c1
7
+ data.tar.gz: 67293e833f6a2d89de0d185a283f197bb6704afcbaa0693646cbb07975f4991fdaec6784180f0645814d428e3d80582146c279699568c40e841fdc708531f9de
@@ -49,6 +49,13 @@ module Lago
49
49
  JSON.parse(response.to_json, object_class: OpenStruct)
50
50
  end
51
51
 
52
+ def payment_url(invoice_id)
53
+ path = "/api/v1/invoices/#{invoice_id}/payment_url"
54
+ response = connection.post({}, path)['invoice_payment_details']
55
+
56
+ JSON.parse(response.to_json, object_class: OpenStruct)
57
+ end
58
+
52
59
  def whitelist_params(params)
53
60
  result = {
54
61
  payment_status: params[:payment_status],
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.54.0-beta'
4
+ VERSION = '0.56.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.54.0.pre.beta
4
+ version: 0.56.0.pre.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lovro Colic
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-18 00:00:00.000000000 Z
11
+ date: 2024-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description:
125
+ description:
126
126
  email:
127
127
  - lovro@getlago.com
128
128
  executables: []
@@ -164,7 +164,7 @@ metadata:
164
164
  homepage_uri: https://www.getlago.com/
165
165
  source_code_uri: https://github.com/getlago/lago-ruby-client
166
166
  documentation_uri: https://doc.getlago.com
167
- post_install_message:
167
+ post_install_message:
168
168
  rdoc_options: []
169
169
  require_paths:
170
170
  - lib
@@ -179,8 +179,8 @@ 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.4.6
183
- signing_key:
182
+ rubygems_version: 3.3.3
183
+ signing_key:
184
184
  specification_version: 4
185
185
  summary: Lago Rest API client
186
186
  test_files: []