lago-ruby-client 1.22.0 → 1.26.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 926c6e6810dbf0a0a228155d5659e324c20a788d695a30cac3cd04086ae85e6c
4
- data.tar.gz: 1aa48f60aad90c36088b5dd56c9e861e7388208591bde9f95b98ff86f0c5e283
3
+ metadata.gz: ad76134a4d52855afb50479c535cd4f4ae0d8e1462397052df1a00952eaf9fb3
4
+ data.tar.gz: 2daa90f25066fa091ac2e8d8618c64a75e78fbc0b9b850d15c59be976c8b44dc
5
5
  SHA512:
6
- metadata.gz: bda387b14f8aced5db9413ed5dcf91f6b7d496d654dfc297186ec48a07daae78c10b1f98543cf9d4a77f9741ee7bd2d7861cca3d9c3729c52ef7f3308046bdec
7
- data.tar.gz: cff9badde84b95b181714a796f4ac33d12e4d70920142f1c7dfa65a60622d89da44630610a4d34255d5d433e1e5059fdc6f222587c3148b7c6791848399278d8
6
+ metadata.gz: 6e547b5480438e7c7f21654b4c2d03bbcb510f6d40746d01f409001feeee308681bf1fea84cfaac61677c4a8de64d1257932bd2f64fdc8e835b83093f5566654
7
+ data.tar.gz: d1fbd93b4813ea848c089a4aa792969d82573bd8bfaa51c0c0aa548c147df22426e9ac84449022e04dd4b91683b14f769755de26976f5ebb592e7834bd0a6544
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lago
4
+ module Api
5
+ module Resources
6
+ class BillingEntity < Base
7
+ def api_resource
8
+ 'billing_entities'
9
+ end
10
+
11
+ def root_name
12
+ 'billing_entity'
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -79,6 +79,7 @@ module Lago
79
79
  timezone: params[:timezone],
80
80
  finalize_zero_amount_invoice: params[:finalize_zero_amount_invoice],
81
81
  skip_invoice_custom_sections: params[:skip_invoice_custom_sections],
82
+ billing_entity_code: params[:billing_entity_code],
82
83
  }
83
84
 
84
85
  whitelist_billing_configuration(params[:billing_configuration]).tap do |config|
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lago
4
+ module Api
5
+ module Resources
6
+ class PaymentReceipt < Base
7
+ def api_resource
8
+ 'payment_receipts'
9
+ end
10
+
11
+ def root_name
12
+ 'payment_receipt'
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -45,6 +45,7 @@ module Lago
45
45
  :interval,
46
46
  :method,
47
47
  :started_at,
48
+ :expiration_at,
48
49
  :target_ongoing_balance,
49
50
  :transaction_metadata
50
51
  )
@@ -19,6 +19,13 @@ module Lago
19
19
  JSON.parse(response.to_json, object_class: OpenStruct)
20
20
  end
21
21
 
22
+ def payment_url(wallet_transaction_id)
23
+ path = "/api/v1/wallet_transactions/#{wallet_transaction_id}/payment_url"
24
+ response = connection.post({}, path)['wallet_transaction_payment_details']
25
+
26
+ JSON.parse(response.to_json, object_class: OpenStruct)
27
+ end
28
+
22
29
  def whitelist_params(params)
23
30
  {
24
31
  'wallet_transaction' => {
data/lib/lago/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lago
4
- VERSION = '1.22.0'
4
+ VERSION = '1.26.0'
5
5
  end
@@ -16,6 +16,7 @@ require 'lago/api/resources/base'
16
16
  require 'lago/api/resources/add_on'
17
17
  require 'lago/api/resources/applied_coupon'
18
18
  require 'lago/api/resources/billable_metric'
19
+ require 'lago/api/resources/billing_entity'
19
20
  require 'lago/api/resources/coupon'
20
21
  require 'lago/api/resources/credit_note'
21
22
  require 'lago/api/resources/customer'
@@ -29,6 +30,7 @@ require 'lago/api/resources/mrr'
29
30
  require 'lago/api/resources/organization'
30
31
  require 'lago/api/resources/overdue_balance'
31
32
  require 'lago/api/resources/payment'
33
+ require 'lago/api/resources/payment_receipt'
32
34
  require 'lago/api/resources/payment_request'
33
35
  require 'lago/api/resources/plan'
34
36
  require 'lago/api/resources/subscription'
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.22.0
4
+ version: 1.26.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-02-25 00:00:00.000000000 Z
11
+ date: 2025-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -179,6 +179,7 @@ files:
179
179
  - lib/lago/api/resources/applied_coupon.rb
180
180
  - lib/lago/api/resources/base.rb
181
181
  - lib/lago/api/resources/billable_metric.rb
182
+ - lib/lago/api/resources/billing_entity.rb
182
183
  - lib/lago/api/resources/coupon.rb
183
184
  - lib/lago/api/resources/credit_note.rb
184
185
  - lib/lago/api/resources/customer.rb
@@ -192,6 +193,7 @@ files:
192
193
  - lib/lago/api/resources/organization.rb
193
194
  - lib/lago/api/resources/overdue_balance.rb
194
195
  - lib/lago/api/resources/payment.rb
196
+ - lib/lago/api/resources/payment_receipt.rb
195
197
  - lib/lago/api/resources/payment_request.rb
196
198
  - lib/lago/api/resources/plan.rb
197
199
  - lib/lago/api/resources/subscription.rb