activemerchant 1.123.0 → 1.124.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.
@@ -317,7 +317,8 @@ module ActiveMerchant #:nodoc:
317
317
  gsub(%r((<[^>]+pan>)[^<]+(<))i, '\1[FILTERED]\2').
318
318
  gsub(%r((<[^>]+sec>)[^<]+(<))i, '\1[FILTERED]\2').
319
319
  gsub(%r((<[^>]+id>)[^<]+(<))i, '\1[FILTERED]\2').
320
- gsub(%r((<[^>]+regKey>)[^<]+(<))i, '\1[FILTERED]\2')
320
+ gsub(%r((<[^>]+regKey>)[^<]+(<))i, '\1[FILTERED]\2').
321
+ gsub(%r((<[^>]+acctNr>)[^<]+(<))i, '\1[FILTERED]\2')
321
322
  end
322
323
 
323
324
  private
@@ -331,7 +331,8 @@ module ActiveMerchant #:nodoc:
331
331
  gsub(%r((Authorization: Basic )\w+), '\1[FILTERED]').
332
332
  gsub(%r((&?cc=)\d*(&?)), '\1[FILTERED]\2').
333
333
  gsub(%r((&?password=)[^&]+(&?)), '\1[FILTERED]\2').
334
- gsub(%r((&?cvv=)\d*(&?)), '\1[FILTERED]\2')
334
+ gsub(%r((&?cvv=)\d*(&?)), '\1[FILTERED]\2').
335
+ gsub(%r((&?account=)\d*(&?)), '\1[FILTERED]\2')
335
336
  end
336
337
 
337
338
  private
@@ -215,6 +215,7 @@ module ActiveMerchant #:nodoc:
215
215
  add_shopper(xml, options)
216
216
  add_statement_narrative(xml, options)
217
217
  add_risk_data(xml, options[:risk_data]) if options[:risk_data]
218
+ add_sub_merchant_data(xml, options[:sub_merchant_data]) if options[:sub_merchant_data]
218
219
  add_hcg_additional_data(xml, options) if options[:hcg_additional_data]
219
220
  add_instalments_data(xml, options) if options[:instalments]
220
221
  add_moto_flag(xml, options) if options.dig(:metadata, :manual_entry)
@@ -314,6 +315,20 @@ module ActiveMerchant #:nodoc:
314
315
  end
315
316
  end
316
317
 
318
+ def add_sub_merchant_data(xml, options)
319
+ xml.subMerchantData do
320
+ xml.pfId options[:pf_id] if options[:pf_id]
321
+ xml.subName options[:sub_name] if options[:sub_name]
322
+ xml.subId options[:sub_id] if options[:sub_id]
323
+ xml.subStreet options[:sub_street] if options[:sub_street]
324
+ xml.subCity options[:sub_city] if options[:sub_city]
325
+ xml.subState options[:sub_state] if options[:sub_state]
326
+ xml.subCountryCode options[:sub_country_code] if options[:sub_country_code]
327
+ xml.subPostalCode options[:sub_postal_code] if options[:sub_postal_code]
328
+ xml.subTaxId options[:sub_tax_id] if options[:sub_tax_id]
329
+ end
330
+ end
331
+
317
332
  def add_shopper_account_risk_data(xml, shopper_account_risk_data)
318
333
  return unless shopper_account_risk_data
319
334
 
@@ -10,6 +10,10 @@ module ActiveMerchant #:nodoc:
10
10
  @success
11
11
  end
12
12
 
13
+ def failure?
14
+ !success?
15
+ end
16
+
13
17
  def test?
14
18
  @test
15
19
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = '1.123.0'
2
+ VERSION = '1.124.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemerchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.123.0
4
+ version: 1.124.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-10 00:00:00.000000000 Z
11
+ date: 2021-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -291,6 +291,7 @@ files:
291
291
  - lib/active_merchant/billing/gateways/micropayment.rb
292
292
  - lib/active_merchant/billing/gateways/migs.rb
293
293
  - lib/active_merchant/billing/gateways/migs/migs_codes.rb
294
+ - lib/active_merchant/billing/gateways/mit.rb
294
295
  - lib/active_merchant/billing/gateways/modern_payments.rb
295
296
  - lib/active_merchant/billing/gateways/modern_payments_cim.rb
296
297
  - lib/active_merchant/billing/gateways/moka.rb