avangate 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 9a07c3a752841c6eb5f67de4ea819e4f4294f28a
4
- data.tar.gz: b203602299dcce0a9c447ef0fbf171624719818f
3
+ metadata.gz: d002376589083c286d766dee792fcf63d3082d9b
4
+ data.tar.gz: 1521606de3a75661f4d7a93631325fba17ab376c
5
5
  SHA512:
6
- metadata.gz: fb5139acd42fb691ca8b7af039a2e9e2d8dc02a80fc14b7dbb8451407b48ef6526b99c8e8a21198f1e8e1480f7af8e18a062823ff7b14bd255e823afb567a3fa
7
- data.tar.gz: 4979e26370a153bdf752ebd12244139e9f4bd11052cadd1715afb7602cf83448ac357e2bc323e046da51e18d28c38d7ce63cfc7015b08eef9e6233ccc2c2d3d1
6
+ metadata.gz: 46cb2e49bc84d00cba364b112743f77b846636656976bd62a607b3c2af2e5c86937568b40cf0868fcfb0e12d0ef746335fdce851e8d5edf8230af4bb680de196
7
+ data.tar.gz: ee6af5a52033a999ab4a259a08c1bb0178e846cd158698496a27f74a14a9366320895c663017355ed775f2ac33822f0075cd6bfc907b2cb514a2f9f4de57c470
@@ -42,16 +42,15 @@ module Avangate
42
42
  raise MissingLastName, "missing param last_name" unless options[:last_name].presence
43
43
  raise MissingPostalCode, "missing param postal_code" unless options[:postal_code].presence
44
44
  raise MissingState, "missing param state" unless options[:state].presence or !STATE_REQUIRED_COUNTRIES.include? options[:country]
45
- billing_details = {
46
- Address: options[:address],
47
- City: options[:city],
48
- Country: options[:country],
49
- Email: options[:email],
50
- FirstName: options[:first_name],
51
- LastName: options[:last_name],
52
- PostalCode: options[:postal_code],
53
- State: options[:state]
54
- }
45
+ billing_details = {}
46
+ billing_details['Address'] = options[:address]
47
+ billing_details['City'] = options[:city]
48
+ billing_details['Country'] = options[:country]
49
+ billing_details['Email'] = options[:email]
50
+ billing_details['FirstName'] = options[:first_name]
51
+ billing_details['LastName'] = options[:last_name]
52
+ billing_details['PostalCode'] = options[:postal_code]
53
+ billing_details['State'] = options[:state]
55
54
  params = {
56
55
  sessionID: options[:session_id],
57
56
  BillingDetails: billing_details
@@ -1,3 +1,3 @@
1
1
  module Avangate
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avangate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo