swiss-activemerchant 1.0.8 → 1.0.10

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: 6a0a202a2ab6a0f8090f08dfbfab88bf513b95f630bc82788a4f21f7067651b4
4
- data.tar.gz: 8c89ee65ebafe3c6f68216f2a73ecfb6134b82bc3e10c104276b08ac296f0f79
3
+ metadata.gz: 22305f40e1e0fac6339b8d18d8a88ed4a6928fb397b5f65b78aeb00d15364559
4
+ data.tar.gz: cfa3a660688fa4c978bf673717686f215813ad4f408de8e882170ac29e920f04
5
5
  SHA512:
6
- metadata.gz: 9d5dc22556a450764cf3b13643553ecca13028a051c699b317c558f27dcfd900c3963c5dec75b6df22afe8a60dc0637cc87a2df93d00bd67ab4f13528d829bc6
7
- data.tar.gz: 2d3db1f8444644aa86134b8cda0ea8b1ee2ba067b49086a5bdcc06b339ef1beb8720a21ba8498de8e714b99a7d3833013422a3a0f173e83abdd86fe73a220054
6
+ metadata.gz: '08a5c110b13b0a11f13af6c25cba2da7f2089e0473856e42f2e04b02b4e3078794cefc848ceacee72d90f24a80f535d219ba807d5ffe5874866bc27d9dac1c70'
7
+ data.tar.gz: c5e621d6b1f468eb411a1cb23dffa4be13263782311fb241ae3517c59afbdd54c40430d13104ccc3cb467d70324233740cbf159c2c3dfc6e998820a4527e192c
@@ -199,7 +199,7 @@ module ActiveMerchant #:nodoc:
199
199
  doc.first_name(credit_card.first_name)
200
200
  doc.last_name(credit_card.last_name)
201
201
  doc.month(credit_card.month)
202
- doc.year(credit_card.year)
202
+ doc.year(format(credit_card.year, :four_digits_year))
203
203
  doc.email(options[:email])
204
204
  doc.address1(options[:billing_address].try(:[], :address1))
205
205
  doc.address2(options[:billing_address].try(:[], :address2))
@@ -207,6 +207,14 @@ module ActiveMerchant #:nodoc:
207
207
  doc.state(options[:billing_address].try(:[], :state))
208
208
  doc.zip(options[:billing_address].try(:[], :zip))
209
209
  doc.country(options[:billing_address].try(:[], :country))
210
+ doc.phone_number(options[:billing_address].try(:[], :phone))
211
+ doc.shipping_address1(options[:shiping_address].try(:[], :address1))
212
+ doc.shipping_address2(options[:shiping_address].try(:[], :address2))
213
+ doc.shipping_city(options[:shiping_address].try(:[], :city))
214
+ doc.shipping_state(options[:shiping_address].try(:[], :state))
215
+ doc.shipping_zip(options[:shiping_address].try(:[], :zip))
216
+ doc.shipping_country(options[:shiping_address].try(:[], :country))
217
+ doc.shipping_phone_number(options[:shiping_address].try(:[], :phone))
210
218
  end
211
219
  end
212
220
 
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = '1.0.8'
2
+ VERSION = '1.0.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swiss-activemerchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-12 00:00:00.000000000 Z
11
+ date: 2024-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport