lago-ruby-client 1.48.0 → 1.49.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f6b3744426d3dc1557cccca38a1ea551dcf980216849e48f03445ef030d95c4
|
|
4
|
+
data.tar.gz: f2209448cbc72ea88adcae5d24e0db816711c04b56d1de6c4283c23c4d53c73e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d46f88c7b9d129f4d0a2782753170269d6b079a1c236023cc9e2214fd997b8f62239819cdb46dd11066e323424280e2ba238f61673826520db1e8f0e8d651dc
|
|
7
|
+
data.tar.gz: ba5454c0fa9cbb8606d6e8d7513cb23d6bd0d7a64c881daa01078d5808fad46439b32104aa50fdbb608f64ea54b9805c037e6eb4032d79d8e14154e7d82cd091
|
|
@@ -23,6 +23,7 @@ module Lago
|
|
|
23
23
|
:transaction_name,
|
|
24
24
|
:paid_top_up_min_amount_cents,
|
|
25
25
|
:paid_top_up_max_amount_cents,
|
|
26
|
+
:billing_entity_code,
|
|
26
27
|
)
|
|
27
28
|
|
|
28
29
|
recurring_rules = recurring_rules_params(params[:recurring_transaction_rules])
|
|
@@ -70,6 +71,7 @@ module Lago
|
|
|
70
71
|
:transaction_metadata,
|
|
71
72
|
:transaction_name,
|
|
72
73
|
:ignore_paid_top_up_limits,
|
|
74
|
+
:grants_target_top_up,
|
|
73
75
|
)
|
|
74
76
|
|
|
75
77
|
payment_method = payment_method_params(r[:payment_method])
|
|
@@ -86,7 +86,7 @@ module Lago
|
|
|
86
86
|
def preview(params)
|
|
87
87
|
path = "/api/v1/invoices/preview"
|
|
88
88
|
payload = params.slice(
|
|
89
|
-
:customer, :plan_code, :subscription_at, :billing_time, :coupons, :subscriptions
|
|
89
|
+
:customer, :plan_code, :subscription_at, :billing_time, :coupons, :subscriptions, :billing_entity_code
|
|
90
90
|
)
|
|
91
91
|
response = connection.post(payload, path)[root_name]
|
|
92
92
|
|
|
@@ -125,8 +125,9 @@ module Lago
|
|
|
125
125
|
external_customer_id: params[:external_customer_id],
|
|
126
126
|
currency: params[:currency],
|
|
127
127
|
net_payment_term: params[:net_payment_term],
|
|
128
|
-
skip_psp: params[:skip_psp]
|
|
129
|
-
|
|
128
|
+
skip_psp: params[:skip_psp],
|
|
129
|
+
billing_entity_code: params[:billing_entity_code]
|
|
130
|
+
}.compact
|
|
130
131
|
|
|
131
132
|
fees = whitelist_fees(params[:fees])
|
|
132
133
|
result[:fees] = fees unless fees.empty?
|
|
@@ -213,6 +213,7 @@ module Lago
|
|
|
213
213
|
ending_at: params[:ending_at],
|
|
214
214
|
plan_overrides: params[:plan_overrides],
|
|
215
215
|
consolidate_invoice: params[:consolidate_invoice],
|
|
216
|
+
billing_entity_code: params[:billing_entity_code],
|
|
216
217
|
}.compact
|
|
217
218
|
|
|
218
219
|
payment_method_params = whitelist_payment_method_params(params[:payment_method])
|
data/lib/lago/version.rb
CHANGED