lago-ruby-client 1.35.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lago/api/connection.rb +4 -4
- data/lib/lago/api/resources/billing_entity.rb +3 -1
- data/lib/lago/api/resources/customer.rb +2 -0
- data/lib/lago/version.rb +1 -1
- metadata +58 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bcd6c039cf9531fcea1e985a23874ff789f48e1dce07f29c23f61f909eb68b88
|
|
4
|
+
data.tar.gz: 2f907276114ad8ffcf86b3f417a5b252f76dd007e285810ba684be3cbda14fdb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6033a4653c3c6a06f6b5acf42f84802831efca81a54fa1b3e86fe16096f742c20e35d562a247e97653163f62d4b30484d79f355f42f52b8c25054d347805cc25
|
|
7
|
+
data.tar.gz: a3887ffc665b06300183cb4e0d3b8506ba5895b49193e62a9706394501cefd90faeb308d4ef04889c34dd7f3a350a03b80e1ddf8b53695bcb552d80c872925a9
|
data/lib/lago/api/connection.rb
CHANGED
|
@@ -22,7 +22,7 @@ module Lago
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def put(path = uri.path, identifier:, body:)
|
|
25
|
-
uri_path = identifier.nil? ? path : "#{path}/#{
|
|
25
|
+
uri_path = identifier.nil? ? path : "#{path}/#{CGI.escapeURIComponent(identifier)}"
|
|
26
26
|
response = http_client.send_request(
|
|
27
27
|
'PUT',
|
|
28
28
|
uri_path,
|
|
@@ -34,7 +34,7 @@ module Lago
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def patch(path = uri.path, identifier:, body:)
|
|
37
|
-
uri_path = identifier.nil? ? path : "#{path}/#{
|
|
37
|
+
uri_path = identifier.nil? ? path : "#{path}/#{CGI.escapeURIComponent(identifier)}"
|
|
38
38
|
response = http_client.send_request(
|
|
39
39
|
'PATCH',
|
|
40
40
|
uri_path,
|
|
@@ -46,7 +46,7 @@ module Lago
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def get(path = uri.path, identifier:)
|
|
49
|
-
uri_path = identifier.nil? ? path : "#{path}/#{
|
|
49
|
+
uri_path = identifier.nil? ? path : "#{path}/#{CGI.escapeURIComponent(identifier)}"
|
|
50
50
|
response = http_client.send_request(
|
|
51
51
|
'GET',
|
|
52
52
|
uri_path,
|
|
@@ -59,7 +59,7 @@ module Lago
|
|
|
59
59
|
|
|
60
60
|
def destroy(path = uri.path, identifier:, options: nil)
|
|
61
61
|
uri_path = path
|
|
62
|
-
uri_path += "/#{
|
|
62
|
+
uri_path += "/#{CGI.escapeURIComponent(identifier)}" if identifier
|
|
63
63
|
uri_path += "?#{URI.encode_www_form(options)}" unless options.nil?
|
|
64
64
|
response = http_client.send_request(
|
|
65
65
|
'DELETE',
|
|
@@ -69,12 +69,14 @@ module Lago
|
|
|
69
69
|
(billing_params || {}).slice(
|
|
70
70
|
:invoice_footer,
|
|
71
71
|
:invoice_grace_period,
|
|
72
|
+
:subscription_invoice_issuing_date_anchor,
|
|
73
|
+
:subscription_invoice_issuing_date_adjustment,
|
|
72
74
|
:document_locale,
|
|
73
75
|
)
|
|
74
76
|
end
|
|
75
77
|
|
|
76
78
|
def whitelist_update_params(params)
|
|
77
|
-
result_params = whitelist_create_params(params).dup
|
|
79
|
+
result_params = whitelist_create_params(params).dup[root_name]
|
|
78
80
|
|
|
79
81
|
result_params.delete(:code)
|
|
80
82
|
result_params[:tax_codes] = params[:tax_codes] if params.key?(:tax_codes)
|
|
@@ -113,6 +113,8 @@ module Lago
|
|
|
113
113
|
def whitelist_billing_configuration(billing_params)
|
|
114
114
|
(billing_params || {}).slice(
|
|
115
115
|
:invoice_grace_period,
|
|
116
|
+
:subscription_invoice_issuing_date_anchor,
|
|
117
|
+
:subscription_invoice_issuing_date_adjustment,
|
|
116
118
|
:payment_provider,
|
|
117
119
|
:payment_provider_code,
|
|
118
120
|
:provider_customer_id,
|
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: 1.
|
|
4
|
+
version: 1.36.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: 2025-11-
|
|
11
|
+
date: 2025-11-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwt
|
|
@@ -94,6 +94,48 @@ dependencies:
|
|
|
94
94
|
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: guard
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: guard-rspec
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ">="
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - ">="
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '0'
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: httplog
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '0'
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - ">="
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '0'
|
|
97
139
|
- !ruby/object:Gem::Dependency
|
|
98
140
|
name: mutex_m
|
|
99
141
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -122,6 +164,20 @@ dependencies:
|
|
|
122
164
|
- - ">="
|
|
123
165
|
- !ruby/object:Gem::Version
|
|
124
166
|
version: '0'
|
|
167
|
+
- !ruby/object:Gem::Dependency
|
|
168
|
+
name: pry-byebug
|
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
|
170
|
+
requirements:
|
|
171
|
+
- - ">="
|
|
172
|
+
- !ruby/object:Gem::Version
|
|
173
|
+
version: '0'
|
|
174
|
+
type: :development
|
|
175
|
+
prerelease: false
|
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
177
|
+
requirements:
|
|
178
|
+
- - ">="
|
|
179
|
+
- !ruby/object:Gem::Version
|
|
180
|
+
version: '0'
|
|
125
181
|
- !ruby/object:Gem::Dependency
|
|
126
182
|
name: rake
|
|
127
183
|
requirement: !ruby/object:Gem::Requirement
|