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 +4 -4
- data/lib/maxipago/request_builder/request.rb +2 -2
- data/lib/maxipago/version.rb +1 -1
- data/lib/maxipago/xml_builder/builder_api.rb +15 -15
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 240c48866940e1dcfe53dff330d1ede4059ba07002591390e9218ad921d9e403
|
4
|
+
data.tar.gz: d4c081d3d7b12ecea8bcfa59282777fd01267d347cb05aa58d6ac4ddab42aa7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
9
|
-
@
|
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' }
|
data/lib/maxipago/version.rb
CHANGED
@@ -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
|