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: 9fb34142055f6f66be3e4d68a186462eba74eca051d52f405adfc113c56397a5
4
- data.tar.gz: 4e1e8c917c78c8d9e6208bf039814f2109d3e3fa90f92d75d88f33a421db718e
3
+ metadata.gz: cef36eb0c984554b2dca3c452b1109ca9d93212550b2ce26ea6409c54bf28a3b
4
+ data.tar.gz: 346cf647a1049b044a5da3b68a88f1bc26249d00c33d3a73a7c4c01874a7a8b4
5
5
  SHA512:
6
- metadata.gz: ccb64008aba6f67af0b973401182f21ced072cf96317c1c31c73b5520f9c4d931c65a188b03b15c5126e2193a0452a24826eaa22fd0ee0ada2b8d3acd22e29da
7
- data.tar.gz: 38426eacea9ed7a630f9264536147c6132c6862ed8beb94c918ce9e3e3f94f91fa304ad053dac9c9027c393e7c35b7592e710b890a30ae21d4b851a374fee437
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'].present? && !payment['invoiceNumber'].start_with?('#' + order.to_param)
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} Credit card surcharge
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '6.29.2'.freeze
2
+ VERSION = '6.29.3'.freeze
3
3
  end
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.2
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-10-14 00:00:00.000000000 Z
11
+ date: 2025-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails