effective_orders 6.29.2 → 6.29.3
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: cef36eb0c984554b2dca3c452b1109ca9d93212550b2ce26ea6409c54bf28a3b
|
|
4
|
+
data.tar.gz: 346cf647a1049b044a5da3b68a88f1bc26249d00c33d3a73a7c4c01874a7a8b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa90e1f0246b84bc405c89c14a84eda81054ede6c959ef62f45d03f7b971429e1aa13f16f1875c0b787d2d97794e9eae7298d140d191fcc5ce4865f4cd1cf9e6
|
|
7
|
+
data.tar.gz: 1ee2c4b5f30586fc6018bd78f5b66b7f03893c8be6174c9b0926364c88d57f985b2104391035f4fd6f7c5e082fb50365fa3758710d17593e468b733c23466e18
|
|
@@ -52,25 +52,12 @@ module Effective
|
|
|
52
52
|
customStyling: {
|
|
53
53
|
brandColor: (brand_color || '815AF0')
|
|
54
54
|
},
|
|
55
|
-
invoiceRequest: {
|
|
56
|
-
invoiceNumber: '#' + order.transaction_id(short: true)
|
|
57
|
-
},
|
|
58
55
|
customerRequest: {
|
|
59
56
|
contactName: order.billing_name,
|
|
60
57
|
businessName: order.organization.to_s.presence,
|
|
61
|
-
}.compact
|
|
58
|
+
}.compact
|
|
62
59
|
}.compact
|
|
63
60
|
|
|
64
|
-
params[:invoiceRequest][:lineItems] = order.order_items.map do |item|
|
|
65
|
-
{
|
|
66
|
-
description: scrub(item.name),
|
|
67
|
-
quantity: item.quantity,
|
|
68
|
-
price: ('%.2f' % item.price_to_f),
|
|
69
|
-
total: ('%.2f' % item.subtotal_to_f),
|
|
70
|
-
taxAmount: ('%.2f' % item.tax_to_f),
|
|
71
|
-
}
|
|
72
|
-
end
|
|
73
|
-
|
|
74
61
|
address = order.billing_address
|
|
75
62
|
country = helcim_country(address&.country_code)
|
|
76
63
|
|
|
@@ -214,7 +201,7 @@ module Effective
|
|
|
214
201
|
|
|
215
202
|
def verify_payment!(order, payment)
|
|
216
203
|
# Validate order ids
|
|
217
|
-
if payment['invoiceNumber'].
|
|
204
|
+
if payment['invoiceNumber'].to_s.start_with?('#') && !payment['invoiceNumber'].start_with?('#' + order.to_param)
|
|
218
205
|
raise("expected card-transaction invoiceNumber to be the same as the order to_param")
|
|
219
206
|
end
|
|
220
207
|
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
%td.price.amount-owing-price= price_to_currency(order.amount_owing)
|
|
69
69
|
|
|
70
70
|
%tr
|
|
71
|
-
%th.surcharge{colspan: 2}
|
|
71
|
+
%th.surcharge{colspan: 2} Convenience fee
|
|
72
72
|
%td.price.surcharge-price= price_to_currency(order.surcharge)
|
|
73
73
|
|
|
74
74
|
%tr.double-line
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_orders
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.29.
|
|
4
|
+
version: 6.29.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|