lago-ruby-client 0.55.0.pre.beta → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lago/api/resources/invoice.rb +7 -0
- data/lib/lago/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 075d186215e0e9df0fcd6c420629940ac67622211df1ff3ea30701795662c616
|
4
|
+
data.tar.gz: b1137220e33a6d7267c4c71335017f0cbcf3ec5d0e017494cd374338a1c64009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc0a38307298cd623cf7adb5fdbd0d3001dc22d93c898bd6493ed4d4c0d6e4b8ba3b68d9e2ffa91091fe157cf94d7302a6aad8fa3d2485100c428e8a935d779b
|
7
|
+
data.tar.gz: b02e1dc76556138bbc05dc1d0e3730a433894aa6c59ed44b4a01c18e85a6e86bcfbe99136675314265373cf2320402f8176fdfa2eb8a840e30721b8fe67e6085
|
@@ -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
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.
|
4
|
+
version: 1.0.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-
|
11
|
+
date: 2024-03-11 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:
|
180
|
+
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubygems_version: 3.3.3
|
183
183
|
signing_key:
|