maxipago 0.1.12 → 0.1.13

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: 401ae648fd1f8f42df41ab67edb1cc287074144ed188864a91690d4bee4a289b
4
- data.tar.gz: f37c5fa9c28a81ee00267790af651667b024381d699dfbe2655934233ceae9f5
3
+ metadata.gz: 240c48866940e1dcfe53dff330d1ede4059ba07002591390e9218ad921d9e403
4
+ data.tar.gz: d4c081d3d7b12ecea8bcfa59282777fd01267d347cb05aa58d6ac4ddab42aa7b
5
5
  SHA512:
6
- metadata.gz: 5f34aa77a7c99a9f7a2ef1dc5e410893f38ac425e2312159b1f097ad09856ddb8c429f035cd4f1b508731e24cb318a308f4da1122f84e74d4fb0cfab2642e3c9
7
- data.tar.gz: 2bb17d877abc231ac8cc2ff26fc919eb2a2d44d0ce8e3e3bf46be703e5fbbfe100eb662ea7f3717016737bd8382f2293b921d589dad0ec60e71e9bc3e3c5bc6f
6
+ metadata.gz: ed4f2ddb69abd7c351356c991fe56f01c7bc35819d77c1c30e0fecbff7b2eb3af859fc419ec951a8d7b334baaa550c1b74a6bb1b6b0f55f02746f5f026561727
7
+ data.tar.gz: ea717d55f6555aa80eed96cae697066bfaa8da541fb54c440a25f9d6b1c6d5e756916972057bac614782a6245197ebd331285c54cc29d78981f627085e1a988f
@@ -5,8 +5,8 @@ module Maxipago
5
5
  module RequestBuilder
6
6
  class Request
7
7
 
8
- def initialize(maxid, apikey)
9
- @maxid = maxid
8
+ def initialize(maxipagoId, apikey)
9
+ @maxipagoId = maxipagoId
10
10
  @apikey = apikey
11
11
  @api_version = Maxipago::Client::APIVERSION
12
12
  @header = { "Content-Type" => 'text/xml' }
@@ -1,3 +1,3 @@
1
1
  module Maxipago
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
  end
@@ -8,24 +8,24 @@ module Maxipago
8
8
  builder = Nokogiri::XML::Builder.new(encoding: 'UTF-8') do |xml|
9
9
  xml.send("api-request") {
10
10
  xml.verification {
11
- xml.merchantId maxipagoId
12
- xml.merchantKey apiKey
11
+ xml.merchantId self.maxipagoId
12
+ xml.merchantKey self.apiKey
13
13
  }
14
14
  xml.command "add-consumer"
15
15
  xml.request {
16
- xml.customerIdExt options[:customer_id_ext]
17
- xml.firstName options[:firstname]
18
- xml.lastName options[:lastname]
19
- xml.address1 options[:address1] unless options[:address1].nil?
20
- xml.address2 options[:address2] unless options[:address2].nil?
21
- xml.city options[:city] unless options[:city].nil?
22
- xml.state options[:state] unless options[:state].nil?
23
- xml.zip options[:zip] unless options[:zip].nil?
24
- xml.phone options[:phone] unless options[:phone].nil?
25
- xml.email options[:email] unless options[:email].nil?
26
- xml.dob options[:dob] unless options[:dob].nil?
27
- xml.ssn options[:ssn] unless options[:ssn].nil?
28
- xml.sex options[:sex] unless options[:sex].nil?
16
+ xml.customerIdExt self.options[:customer_id_ext]
17
+ xml.firstName self.options[:firstname]
18
+ xml.lastName self.options[:lastname]
19
+ xml.address1 self.options[:address1] unless self.options[:address1].nil?
20
+ xml.address2 self.options[:address2] unless self.options[:address2].nil?
21
+ xml.city self.options[:city] unless self.options[:city].nil?
22
+ xml.state self.options[:state] unless self.options[:state].nil?
23
+ xml.zip self.options[:zip] unless self.options[:zip].nil?
24
+ xml.phone self.options[:phone] unless self.options[:phone].nil?
25
+ xml.email self.options[:email] unless self.options[:email].nil?
26
+ xml.dob self.options[:dob] unless self.options[:dob].nil?
27
+ xml.ssn self.options[:ssn] unless self.options[:ssn].nil?
28
+ xml.sex self.options[:sex] unless self.options[:sex].nil?
29
29
  }
30
30
  }
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxipago
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - leotads