kaui 4.0.8 → 4.0.9
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/app/controllers/kaui/account_timelines_controller.rb +2 -2
- data/app/controllers/kaui/admin_tenants_controller.rb +1 -1
- data/app/controllers/kaui/bundles_controller.rb +2 -3
- data/app/models/kaui/catalog.rb +2 -2
- data/app/models/kaui/killbill_authenticatable.rb +2 -0
- data/app/models/kaui/killbill_registerable.rb +2 -0
- data/app/views/kaui/admin_tenants/show.html.erb +1 -1
- data/app/views/kaui/components/search_input/_search_input.html.erb +1 -1
- data/app/views/kaui/refunds/_form.html.erb +1 -1
- data/lib/kaui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68f193d330400858d2b943a2b2e4e356366ebd03fa1099d1279612c40c1f7666
|
|
4
|
+
data.tar.gz: 61d17f6e690ca34e6ef8972ba185cf589a0deca6c22159409c040147146d8955
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 040f78a63f17a79983d6382eb1547636cdc1274309f72f96ff8fa737a950427940121c7a711c05e2d3a96a752f1cf6bca720c6371625452d371e190aebeecc69
|
|
7
|
+
data.tar.gz: 0d54dce07e8dbed25c0e997018d3b9fef5184387003775d6f1b88f6891eec414837e6e0ac6848c2d66b4b3620a5d44b6c03dcf65fbdafa9eed36774a209978c3
|
|
@@ -157,8 +157,8 @@ module Kaui
|
|
|
157
157
|
return {} if all_invoices.nil? || all_invoices.empty?
|
|
158
158
|
|
|
159
159
|
# Convert into Kaui::Invoice to benefit from additional methods xxx_to_money
|
|
160
|
-
@invoices_by_id = all_invoices.
|
|
161
|
-
|
|
160
|
+
@invoices_by_id = all_invoices.to_h do |invoice|
|
|
161
|
+
[invoice.invoice_id, Kaui::Invoice.build_from_raw_invoice(invoice)]
|
|
162
162
|
end
|
|
163
163
|
end
|
|
164
164
|
end
|
|
@@ -477,7 +477,7 @@ module Kaui
|
|
|
477
477
|
# convert result to a full hash since dynamic attributes of a class are ignored when converting to json
|
|
478
478
|
result.each do |data|
|
|
479
479
|
plans = data[:plans].map do |plan|
|
|
480
|
-
plan.instance_variables.
|
|
480
|
+
plan.instance_variables.to_h { |var| [var.to_s.delete('@'), plan.instance_variable_get(var)] }
|
|
481
481
|
end
|
|
482
482
|
|
|
483
483
|
catalog << { version_date: data[:version_date],
|
|
@@ -46,9 +46,8 @@ module Kaui
|
|
|
46
46
|
@available_tags = wait(fetch_available_tags)
|
|
47
47
|
@available_subscription_tags = wait(fetch_available_subscription_tags)
|
|
48
48
|
|
|
49
|
-
#
|
|
50
|
-
|
|
51
|
-
@catalog = catalogs[-1]
|
|
49
|
+
# Don't load the full catalog to avoid memory issues
|
|
50
|
+
@catalog = nil
|
|
52
51
|
|
|
53
52
|
@subscription = {}
|
|
54
53
|
@bundles.each do |bundle|
|
data/app/models/kaui/catalog.rb
CHANGED
|
@@ -106,8 +106,8 @@ module Kaui
|
|
|
106
106
|
class << simple_plan
|
|
107
107
|
attr_accessor :prices, :final_phase_duration
|
|
108
108
|
end
|
|
109
|
-
simple_plan.prices = plan.phases[-1].prices.
|
|
110
|
-
|
|
109
|
+
simple_plan.prices = plan.phases[-1].prices.to_h do |e|
|
|
110
|
+
[e.currency, e.value]
|
|
111
111
|
end
|
|
112
112
|
|
|
113
113
|
simple_plan.plan_id = plan.name
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
<div class="fw-semibold text-muted mb-2">Other search queries</div>
|
|
50
50
|
<div class="d-flex flex-wrap gap-2">
|
|
51
|
-
<% %w[custom\ field: subscription: tag:].each do |term| %>
|
|
51
|
+
<% %w[bundle: custom\ field: subscription: tag:].each do |term| %>
|
|
52
52
|
<span class="badge text-dark border border-secondary rounded-3 px-3 py-2 custom-hover"><%= term %></span>
|
|
53
53
|
<% end %>
|
|
54
54
|
</div>
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<div class="form-group d-flex pb-3">
|
|
60
60
|
<%= label_tag :amount, 'Amount', :class => 'col-sm-3 control-label' %>
|
|
61
61
|
<div class="col-sm-9 d-flex currency-group">
|
|
62
|
-
<%= number_field_tag :amount, @payment.purchased_amount, :id => 'refund_amount', :class => 'form-control' %>
|
|
62
|
+
<%= number_field_tag :amount, @payment.purchased_amount, :id => 'refund_amount', :class => 'form-control', :step => 'any' %>
|
|
63
63
|
<div class="currency"><%= @invoice.currency %></div>
|
|
64
64
|
</div>
|
|
65
65
|
</div>
|
data/lib/kaui/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kaui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kill Bill core team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-03-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionpack
|