avangate 0.2.0 → 0.2.1

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: 6e951889b538b35a77ca6e5c03fcf52b451e68ff
4
- data.tar.gz: b63fbfae1715e0958f49f5546ac7977d84c85e24
3
+ metadata.gz: 9a07c3a752841c6eb5f67de4ea819e4f4294f28a
4
+ data.tar.gz: b203602299dcce0a9c447ef0fbf171624719818f
5
5
  SHA512:
6
- metadata.gz: 0d9e1a012eb89fa29013d745a58b68f81237e5b155f828994c80b3f1c97cfd9833fd7e66d1d528c14ac53f1e3df9816a1a5db367488c4a6965ea262474994930
7
- data.tar.gz: 72ba7d7c28d51e8745ce9432093475f86c96407e5be1ba28044c9fe749e866f3f628b2691075d6229be8639a24a68677c25cb964a5f55dffd5d2c5e8052ddefd
6
+ metadata.gz: fb5139acd42fb691ca8b7af039a2e9e2d8dc02a80fc14b7dbb8451407b48ef6526b99c8e8a21198f1e8e1480f7af8e18a062823ff7b14bd255e823afb567a3fa
7
+ data.tar.gz: 4979e26370a153bdf752ebd12244139e9f4bd11052cadd1715afb7602cf83448ac357e2bc323e046da51e18d28c38d7ce63cfc7015b08eef9e6233ccc2c2d3d1
@@ -41,16 +41,16 @@ module Avangate
41
41
  raise MissingFirstName, "missing param first_name" unless options[:first_name].presence
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
- raise MissingState, "missing param state" unless options[:postal_code].presence or !STATE_REQUIRED_COUNTRIES.include? options[:country]
44
+ raise MissingState, "missing param state" unless options[:state].presence or !STATE_REQUIRED_COUNTRIES.include? options[:country]
45
45
  billing_details = {
46
46
  Address: options[:address],
47
47
  City: options[:city],
48
- Country: options[:email],
48
+ Country: options[:country],
49
49
  Email: options[:email],
50
50
  FirstName: options[:first_name],
51
51
  LastName: options[:last_name],
52
52
  PostalCode: options[:postal_code],
53
- State: options[:postal_code]
53
+ State: options[:state]
54
54
  }
55
55
  params = {
56
56
  sessionID: options[:session_id],
@@ -1,3 +1,3 @@
1
1
  module Avangate
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo