payhyper 0.4.2 → 0.4.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
  SHA1:
3
- metadata.gz: 1ede27e56ce574fa5c57843db384ddbea934a3d7
4
- data.tar.gz: bc69b3038c925b4beb2abf7e7827cdc73b683954
3
+ metadata.gz: 276cfb92fc026cd8fa095b218e4cf71617c95808
4
+ data.tar.gz: fb84b3b642c1a4a5d734314c202f223187bb35cf
5
5
  SHA512:
6
- metadata.gz: b391f1793b7c1767a787fc4e8bb9e868f6b295ed53f374313739249507f780c603a549075c52c5b2d919ad89d83cf3971883ee63d5e213437ebd08542e2634f9
7
- data.tar.gz: 343e893aa2b3368a3979bfe0e4345c9512dc600e77009316ff6943d2bc30da50761122d8476702763b6944c8d35d2e1c39f91bdc04c4234fd5b2665bb12e34b9
6
+ metadata.gz: 86e1f603b089283a66d6e88093e530b24ebc0c9d5e6c4a7d5c574e84fb6cb244ddec436b04074d482950257c4a481a272cb0648dee788b648c4386a9a14f7603
7
+ data.tar.gz: 99baeb86e4ebc7670913ea5881e152c08d4d66070fca6e4536a0dd22b18dc85b191cbaef5580eeb0509da31d589791ac73e40c5d073c93582ee3a9b6734ad0a5
data/lib/payhyper.rb CHANGED
@@ -38,7 +38,7 @@ module PayHyper
38
38
  @base_url = BASE_URLS[mode]
39
39
  end
40
40
 
41
- def self.at_door!(name, phone, email, country, city, amount, currency, address = nil, invoice = nil, tag = nil, stickiness_id = nil, details = nil) # TODO: There is a lot of overlap with "in_store!", refactor.
41
+ def self.at_door!(name, phone, email, country, city, amount, currency, address = nil, invoice = nil, tag = nil, stickiness_id = nil, details = nil, location = nil) # TODO: There is a lot of overlap with "in_store!", refactor.
42
42
  raise_if_not_setup!
43
43
  # == Clean-up fields ==
44
44
  currency = currency.upcase if currency && currency.is_a?(String)
@@ -59,7 +59,7 @@ module PayHyper
59
59
  raise ValidationError, "Invalid email." if email.nil? || !email.match(/\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/)
60
60
  raise ValidationError, "Name is mandatory." if name.nil? || name.strip.length == 0
61
61
  # == Do the request ==
62
- make_call("/v1/at-door", { :name => name, :phone => phone, :email => email, :country => country, :city => city, :amount => amount, :currency => currency, :address => address, :invoice => invoice, :tag => tag, :stickiness_id => stickiness_id, :details => details })
62
+ make_call("/v1/at-door", { :name => name, :phone => phone, :email => email, :country => country, :city => city, :amount => amount, :currency => currency, :address => address, :invoice => invoice, :tag => tag, :stickiness_id => stickiness_id, :details => details, :location => location })
63
63
  end
64
64
 
65
65
  def self.in_store!(name, phone, email, country, amount, currency, tag = nil) # TODO: There is a lot of overlap with "at_door!", refactor.
@@ -1,3 +1,3 @@
1
1
  module PayHyper
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payhyper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sinan Taifour
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.4.5.1
78
+ rubygems_version: 2.6.8
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: The Ruby bindings of the Hyper API