mastercard_merchant_checkout 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mastercard_merchant_checkout/api/encrypted_payment_data_api.rb +1 -1
- data/lib/mastercard_merchant_checkout/api/express_checkout_api.rb +2 -2
- data/lib/mastercard_merchant_checkout/api/payment_data_api.rb +1 -1
- data/lib/mastercard_merchant_checkout/api/postback_api.rb +2 -1
- data/lib/mastercard_merchant_checkout/api/pre_checkout_data_api.rb +2 -1
- data/lib/mastercard_merchant_checkout/models/address.rb +4 -2
- data/lib/mastercard_merchant_checkout/models/authentication_options.rb +40 -5
- data/lib/mastercard_merchant_checkout/models/card.rb +18 -5
- data/lib/mastercard_merchant_checkout/models/contact_info.rb +3 -1
- data/lib/mastercard_merchant_checkout/models/cryptogram.rb +5 -3
- data/lib/mastercard_merchant_checkout/models/encrypted_payment_data_response.rb +3 -1
- data/lib/mastercard_merchant_checkout/models/express_checkout_request.rb +18 -5
- data/lib/mastercard_merchant_checkout/models/pairing.rb +3 -1
- data/lib/mastercard_merchant_checkout/models/payment_data.rb +3 -1
- data/lib/mastercard_merchant_checkout/models/personal_info.rb +3 -1
- data/lib/mastercard_merchant_checkout/models/postback.rb +3 -1
- data/lib/mastercard_merchant_checkout/models/pre_checkout_card.rb +3 -1
- data/lib/mastercard_merchant_checkout/models/pre_checkout_data.rb +4 -2
- data/lib/mastercard_merchant_checkout/models/recipient_info.rb +3 -1
- data/lib/mastercard_merchant_checkout/models/shipping_address.rb +3 -1
- data/lib/mastercard_merchant_checkout/models/tokenization.rb +4 -2
- data/lib/mastercard_merchant_checkout/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43581cc15da5199a13c3b7f58cea0abf5b5b4a48
|
4
|
+
data.tar.gz: d9cbfd684ea788e792216c92788d106f354eddf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a5afd194dc561e38c44afcbf24bea7bb01580ad4e95856f427084d455f5739061f7b1995867249daace872ec724015129e2cf30b0ace6036896cc4bb7a2f360
|
7
|
+
data.tar.gz: e94cc587cce7ff5d2e840284b5a729456e701ac98e3b0c12ba426e8d042ef1f70785df7d4e4ba438489307b4b85e0c14e13d051a5a90d402e80917692d3b8d81
|
@@ -12,7 +12,7 @@ module MastercardMerchantCheckout
|
|
12
12
|
|
13
13
|
|
14
14
|
# EncryptedPaymentData Service
|
15
|
-
# Use this service to retrieve the encrypted consumer
|
15
|
+
# Use this service to retrieve the encrypted consumer’s payment card, and shipping details from Masterpass. API URL: /masterpass/encrypted-paymentdata/{transactionId}
|
16
16
|
# @param transaction_id Identifies the transaction for which to return the consumer’s payment data. This is the oauth_verifier value sent by Masterpass in the callback URL after the Masterpass UI is closed.
|
17
17
|
# @param query_params The query parameters.
|
18
18
|
# @param api_config Optional ApiConfig object specifying configuration : consumer key, private key, host URL.
|
@@ -13,9 +13,9 @@ module MastercardMerchantCheckout
|
|
13
13
|
|
14
14
|
|
15
15
|
# ExpressCheckout Service
|
16
|
-
# Use this service to retrieve the consumer
|
17
|
-
# If the merchant is PCI-compliant, then this API will return the complete payload. If the merchant is not PCI-compliant, then this API will only return non-PCI data. In both cases, a new pairingId will be returned to the merchant. API URL: /masterpass/expresscheckout
|
16
|
+
# Use this service to retrieve the consumer’s full payment card, shipping address, and recipient personal information from Masterpass when performing an Express Checkout. If the merchant is PCI-compliant, then this API will return the complete payload. If the merchant is not PCI-compliant, then this API will only return non-PCI data. In both cases, a new pairingId will be returned to the merchant. API URL: /masterpass/expresscheckout
|
18
17
|
# @param express_checkout_request Express Checkout Request.
|
18
|
+
|
19
19
|
# @param api_config Optional ApiConfig object specifying configuration : consumer key, private key, host URL.
|
20
20
|
# @return [PaymentData]
|
21
21
|
def self.create(express_checkout_request, api_config = nil)
|
@@ -12,7 +12,7 @@ module MastercardMerchantCheckout
|
|
12
12
|
|
13
13
|
|
14
14
|
# PaymentData Service
|
15
|
-
# Use this service to retrieve the consumer
|
15
|
+
# Use this service to retrieve the consumer’s payment card, and shipping details from Masterpass. New or existing Brazil merchants looking for the house number and street name as separate fields should leverage these two additional extension points in their Masterpass checkout integration. Line 4 will provide the house number and line 5 will provide the street name. Brazil merchants should first look for data in lines 4 and 5, and in the case that no data is found there, merchants should then look for data in line 1. API URL: /masterpass/paymentdata/{transactionId}
|
16
16
|
# @param transaction_id Identifies the transaction for which to return the consumer’s payment data. This is the oauth_verifier value sent by Masterpass in the callback URL after the Masterpass UI is closed.
|
17
17
|
# @param query_params The query parameters.
|
18
18
|
# @param api_config Optional ApiConfig object specifying configuration : consumer key, private key, host URL.
|
@@ -13,7 +13,8 @@ module MastercardMerchantCheckout
|
|
13
13
|
|
14
14
|
# Postback Service
|
15
15
|
# This is the final step in the transaction and reports the result of their transactions to Masterpass. Postback is required for all transactions (abandoned transactions do not need to be reported). API URL: /masterpass/postback
|
16
|
-
# @param postback This is the merchant
|
16
|
+
# @param postback This is the merchant's transaction details.
|
17
|
+
|
17
18
|
# @param api_config Optional ApiConfig object specifying configuration : consumer key, private key, host URL.
|
18
19
|
# @return [nil]
|
19
20
|
def self.create(postback, api_config = nil)
|
@@ -12,8 +12,9 @@ module MastercardMerchantCheckout
|
|
12
12
|
|
13
13
|
|
14
14
|
# PreCheckout Data Service
|
15
|
-
# Use the consumer’s pairingID to retrieve their shipping and payment information prior to complete an Express Checkout. You can use the data returned from this service to confirm the user’s payment selections before completing the checkout. API URL: /masterpass/precheckoutdata/
|
15
|
+
# Use the consumer’s pairingID to retrieve their shipping and payment information prior to complete an Express Checkout. You can use the data returned from this service to confirm the user’s payment selections before completing the checkout. API URL: /masterpass/precheckoutdata/{pairingId}
|
16
16
|
# @param pairing_id The unique pairing token identifier used to fetch pre-checkout data for a wallet that is paired with a merchant.
|
17
|
+
|
17
18
|
# @param api_config Optional ApiConfig object specifying configuration : consumer key, private key, host URL.
|
18
19
|
# @return [PreCheckoutData]
|
19
20
|
def self.show(pairing_id, api_config = nil)
|
@@ -3,7 +3,7 @@ require 'roxml'
|
|
3
3
|
|
4
4
|
|
5
5
|
module MastercardMerchantCheckout
|
6
|
-
# This class contains methods to get the consumer
|
6
|
+
# This class contains methods to get the consumer’s address details.
|
7
7
|
class Address
|
8
8
|
include ROXML
|
9
9
|
|
@@ -161,6 +161,8 @@ module MastercardMerchantCheckout
|
|
161
161
|
DateTime.parse(value)
|
162
162
|
when :Date
|
163
163
|
Date.parse(value)
|
164
|
+
when :Object
|
165
|
+
value
|
164
166
|
when :String
|
165
167
|
value.to_s
|
166
168
|
when :Integer
|
@@ -181,7 +183,7 @@ module MastercardMerchantCheckout
|
|
181
183
|
v_type = Regexp.last_match[:v_type]
|
182
184
|
{}.tap do |hash|
|
183
185
|
value.each do |k, v|
|
184
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
186
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
185
187
|
end
|
186
188
|
end
|
187
189
|
else # model
|
@@ -45,6 +45,18 @@ module MastercardMerchantCheckout
|
|
45
45
|
# @return [String] the transaction identifier resulting from authentication processing.
|
46
46
|
xml_accessor :xid, :from =>"xid"
|
47
47
|
|
48
|
+
# @!attribute aav
|
49
|
+
# @return [String] the accountholder authentication value resulting from authentication processing. Not currently in use.
|
50
|
+
xml_accessor :aav, :from =>"aav"
|
51
|
+
|
52
|
+
# @!attribute sli
|
53
|
+
# @return [String] the security level indicator resulting from authentication processing. Not currently in use.
|
54
|
+
xml_accessor :sli, :from =>"sli"
|
55
|
+
|
56
|
+
# @!attribute card_verification_status
|
57
|
+
# @return [String] the card verification status resulting from authentication processing. Not currently in use.
|
58
|
+
xml_accessor :card_verification_status, :from =>"cardVerificationStatus"
|
59
|
+
|
48
60
|
|
49
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
62
|
def self.attribute_map
|
@@ -57,7 +69,10 @@ module MastercardMerchantCheckout
|
|
57
69
|
:pa_res_status => :paResStatus ,
|
58
70
|
:sc_enrollment_status => :scEnrollmentStatus ,
|
59
71
|
:signature_verification => :signatureVerification ,
|
60
|
-
:xid => :xid
|
72
|
+
:xid => :xid ,
|
73
|
+
:aav => :aav ,
|
74
|
+
:sli => :sli ,
|
75
|
+
:card_verification_status => :cardVerificationStatus
|
61
76
|
|
62
77
|
}
|
63
78
|
end
|
@@ -105,6 +120,18 @@ module MastercardMerchantCheckout
|
|
105
120
|
self.xid = attributes[:xid]
|
106
121
|
end
|
107
122
|
|
123
|
+
if attributes.has_key?(:aav)
|
124
|
+
self.aav = attributes[:aav]
|
125
|
+
end
|
126
|
+
|
127
|
+
if attributes.has_key?(:sli)
|
128
|
+
self.sli = attributes[:sli]
|
129
|
+
end
|
130
|
+
|
131
|
+
if attributes.has_key?(:card_verification_status)
|
132
|
+
self.card_verification_status = attributes[:card_verification_status]
|
133
|
+
end
|
134
|
+
|
108
135
|
end
|
109
136
|
|
110
137
|
|
@@ -122,7 +149,10 @@ module MastercardMerchantCheckout
|
|
122
149
|
pa_res_status == o.pa_res_status &&
|
123
150
|
sc_enrollment_status == o.sc_enrollment_status &&
|
124
151
|
signature_verification == o.signature_verification &&
|
125
|
-
xid == o.xid
|
152
|
+
xid == o.xid &&
|
153
|
+
aav == o.aav &&
|
154
|
+
sli == o.sli &&
|
155
|
+
card_verification_status == o.card_verification_status
|
126
156
|
end
|
127
157
|
|
128
158
|
# @see the `==` method
|
@@ -132,7 +162,7 @@ module MastercardMerchantCheckout
|
|
132
162
|
|
133
163
|
# Calculate hash code according to all attributes.
|
134
164
|
def hash
|
135
|
-
[authenticate_method, card_enrollment_method, c_avv, eci_flag, master_card_assigned_id, pa_res_status, sc_enrollment_status, signature_verification, xid].hash
|
165
|
+
[authenticate_method, card_enrollment_method, c_avv, eci_flag, master_card_assigned_id, pa_res_status, sc_enrollment_status, signature_verification, xid, aav, sli, card_verification_status].hash
|
136
166
|
end
|
137
167
|
|
138
168
|
# build the object from hash
|
@@ -161,6 +191,8 @@ module MastercardMerchantCheckout
|
|
161
191
|
DateTime.parse(value)
|
162
192
|
when :Date
|
163
193
|
Date.parse(value)
|
194
|
+
when :Object
|
195
|
+
value
|
164
196
|
when :String
|
165
197
|
value.to_s
|
166
198
|
when :Integer
|
@@ -181,7 +213,7 @@ module MastercardMerchantCheckout
|
|
181
213
|
v_type = Regexp.last_match[:v_type]
|
182
214
|
{}.tap do |hash|
|
183
215
|
value.each do |k, v|
|
184
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
216
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
185
217
|
end
|
186
218
|
end
|
187
219
|
else # model
|
@@ -245,7 +277,10 @@ module MastercardMerchantCheckout
|
|
245
277
|
:pa_res_status => 'String',
|
246
278
|
:sc_enrollment_status => 'String',
|
247
279
|
:signature_verification => 'String',
|
248
|
-
:xid => 'String'
|
280
|
+
:xid => 'String',
|
281
|
+
:aav => 'String',
|
282
|
+
:sli => 'String',
|
283
|
+
:card_verification_status => 'String'
|
249
284
|
|
250
285
|
}
|
251
286
|
end
|
@@ -46,6 +46,10 @@ module MastercardMerchantCheckout
|
|
46
46
|
# @return [String] the card type (CREDIT/DEBIT) used in checkout. Available only for combo card transactions.
|
47
47
|
xml_accessor :card_type, :from =>"cardType"
|
48
48
|
|
49
|
+
# @!attribute cvc
|
50
|
+
# @return [String] the card verification code.
|
51
|
+
xml_accessor :cvc, :from =>"cvc"
|
52
|
+
|
49
53
|
|
50
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
55
|
def self.attribute_map
|
@@ -58,7 +62,8 @@ module MastercardMerchantCheckout
|
|
58
62
|
:expiry_year => :expiryYear ,
|
59
63
|
:billing_address => :billingAddress ,
|
60
64
|
:last_four => :lastFour ,
|
61
|
-
:card_type => :cardType
|
65
|
+
:card_type => :cardType ,
|
66
|
+
:cvc => :cvc
|
62
67
|
|
63
68
|
}
|
64
69
|
end
|
@@ -106,6 +111,10 @@ module MastercardMerchantCheckout
|
|
106
111
|
self.card_type = attributes[:card_type]
|
107
112
|
end
|
108
113
|
|
114
|
+
if attributes.has_key?(:cvc)
|
115
|
+
self.cvc = attributes[:cvc]
|
116
|
+
end
|
117
|
+
|
109
118
|
end
|
110
119
|
|
111
120
|
|
@@ -123,7 +132,8 @@ module MastercardMerchantCheckout
|
|
123
132
|
expiry_year == o.expiry_year &&
|
124
133
|
billing_address == o.billing_address &&
|
125
134
|
last_four == o.last_four &&
|
126
|
-
card_type == o.card_type
|
135
|
+
card_type == o.card_type &&
|
136
|
+
cvc == o.cvc
|
127
137
|
end
|
128
138
|
|
129
139
|
# @see the `==` method
|
@@ -133,7 +143,7 @@ module MastercardMerchantCheckout
|
|
133
143
|
|
134
144
|
# Calculate hash code according to all attributes.
|
135
145
|
def hash
|
136
|
-
[brand_id, brand_name, account_number, card_holder_name, expiry_month, expiry_year, billing_address, last_four, card_type].hash
|
146
|
+
[brand_id, brand_name, account_number, card_holder_name, expiry_month, expiry_year, billing_address, last_four, card_type, cvc].hash
|
137
147
|
end
|
138
148
|
|
139
149
|
# build the object from hash
|
@@ -162,6 +172,8 @@ module MastercardMerchantCheckout
|
|
162
172
|
DateTime.parse(value)
|
163
173
|
when :Date
|
164
174
|
Date.parse(value)
|
175
|
+
when :Object
|
176
|
+
value
|
165
177
|
when :String
|
166
178
|
value.to_s
|
167
179
|
when :Integer
|
@@ -182,7 +194,7 @@ module MastercardMerchantCheckout
|
|
182
194
|
v_type = Regexp.last_match[:v_type]
|
183
195
|
{}.tap do |hash|
|
184
196
|
value.each do |k, v|
|
185
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
197
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
186
198
|
end
|
187
199
|
end
|
188
200
|
else # model
|
@@ -246,7 +258,8 @@ module MastercardMerchantCheckout
|
|
246
258
|
:expiry_year => 'Integer',
|
247
259
|
:billing_address => 'Address',
|
248
260
|
:last_four => 'String',
|
249
|
-
:card_type => 'String'
|
261
|
+
:card_type => 'String',
|
262
|
+
:cvc => 'String'
|
250
263
|
|
251
264
|
}
|
252
265
|
end
|
@@ -121,6 +121,8 @@ module MastercardMerchantCheckout
|
|
121
121
|
DateTime.parse(value)
|
122
122
|
when :Date
|
123
123
|
Date.parse(value)
|
124
|
+
when :Object
|
125
|
+
value
|
124
126
|
when :String
|
125
127
|
value.to_s
|
126
128
|
when :Integer
|
@@ -141,7 +143,7 @@ module MastercardMerchantCheckout
|
|
141
143
|
v_type = Regexp.last_match[:v_type]
|
142
144
|
{}.tap do |hash|
|
143
145
|
value.each do |k, v|
|
144
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
146
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
145
147
|
end
|
146
148
|
end
|
147
149
|
else # model
|
@@ -3,14 +3,14 @@ require 'roxml'
|
|
3
3
|
|
4
4
|
|
5
5
|
module MastercardMerchantCheckout
|
6
|
-
# This class contains the cryptogram generated by the consumer
|
6
|
+
# This class contains the cryptogram generated by the consumer’s Masterpass wallet.
|
7
7
|
class Cryptogram
|
8
8
|
include ROXML
|
9
9
|
|
10
10
|
xml_name "Cryptogram"
|
11
11
|
|
12
12
|
# @!attribute crypto_value
|
13
|
-
# @return [String] the cryptogram generated by the consumer
|
13
|
+
# @return [String] the cryptogram generated by the consumer’s Masterpass wallet
|
14
14
|
xml_accessor :crypto_value, :from =>"cryptoValue"
|
15
15
|
|
16
16
|
# @!attribute crypto_type
|
@@ -120,6 +120,8 @@ module MastercardMerchantCheckout
|
|
120
120
|
DateTime.parse(value)
|
121
121
|
when :Date
|
122
122
|
Date.parse(value)
|
123
|
+
when :Object
|
124
|
+
value
|
123
125
|
when :String
|
124
126
|
value.to_s
|
125
127
|
when :Integer
|
@@ -140,7 +142,7 @@ module MastercardMerchantCheckout
|
|
140
142
|
v_type = Regexp.last_match[:v_type]
|
141
143
|
{}.tap do |hash|
|
142
144
|
value.each do |k, v|
|
143
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
145
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
144
146
|
end
|
145
147
|
end
|
146
148
|
else # model
|
@@ -81,6 +81,8 @@ module MastercardMerchantCheckout
|
|
81
81
|
DateTime.parse(value)
|
82
82
|
when :Date
|
83
83
|
Date.parse(value)
|
84
|
+
when :Object
|
85
|
+
value
|
84
86
|
when :String
|
85
87
|
value.to_s
|
86
88
|
when :Integer
|
@@ -101,7 +103,7 @@ module MastercardMerchantCheckout
|
|
101
103
|
v_type = Regexp.last_match[:v_type]
|
102
104
|
{}.tap do |hash|
|
103
105
|
value.each do |k, v|
|
104
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
106
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
105
107
|
end
|
106
108
|
end
|
107
109
|
else # model
|
@@ -45,6 +45,10 @@ module MastercardMerchantCheckout
|
|
45
45
|
# @return [String] the pspId passed by merchant to select PSP for pushing payment data.
|
46
46
|
xml_accessor :psp_id, :from =>"pspId"
|
47
47
|
|
48
|
+
# @!attribute external_data
|
49
|
+
# @return [String] the external data to be used by PSP during Payment Processing. This parameter only used in PSP Push flow.
|
50
|
+
xml_accessor :external_data, :from =>"externalData"
|
51
|
+
|
48
52
|
|
49
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
54
|
def self.attribute_map
|
@@ -57,7 +61,8 @@ module MastercardMerchantCheckout
|
|
57
61
|
:card_id => :cardId ,
|
58
62
|
:shipping_address_id => :shippingAddressId ,
|
59
63
|
:digital_goods => :digitalGoods ,
|
60
|
-
:psp_id => :pspId
|
64
|
+
:psp_id => :pspId ,
|
65
|
+
:external_data => :externalData
|
61
66
|
|
62
67
|
}
|
63
68
|
end
|
@@ -105,6 +110,10 @@ module MastercardMerchantCheckout
|
|
105
110
|
self.psp_id = attributes[:psp_id]
|
106
111
|
end
|
107
112
|
|
113
|
+
if attributes.has_key?(:external_data)
|
114
|
+
self.external_data = attributes[:external_data]
|
115
|
+
end
|
116
|
+
|
108
117
|
end
|
109
118
|
|
110
119
|
|
@@ -122,7 +131,8 @@ module MastercardMerchantCheckout
|
|
122
131
|
card_id == o.card_id &&
|
123
132
|
shipping_address_id == o.shipping_address_id &&
|
124
133
|
digital_goods == o.digital_goods &&
|
125
|
-
psp_id == o.psp_id
|
134
|
+
psp_id == o.psp_id &&
|
135
|
+
external_data == o.external_data
|
126
136
|
end
|
127
137
|
|
128
138
|
# @see the `==` method
|
@@ -132,7 +142,7 @@ module MastercardMerchantCheckout
|
|
132
142
|
|
133
143
|
# Calculate hash code according to all attributes.
|
134
144
|
def hash
|
135
|
-
[checkout_id, pairing_id, pre_checkout_transaction_id, amount, currency, card_id, shipping_address_id, digital_goods, psp_id].hash
|
145
|
+
[checkout_id, pairing_id, pre_checkout_transaction_id, amount, currency, card_id, shipping_address_id, digital_goods, psp_id, external_data].hash
|
136
146
|
end
|
137
147
|
|
138
148
|
# build the object from hash
|
@@ -161,6 +171,8 @@ module MastercardMerchantCheckout
|
|
161
171
|
DateTime.parse(value)
|
162
172
|
when :Date
|
163
173
|
Date.parse(value)
|
174
|
+
when :Object
|
175
|
+
value
|
164
176
|
when :String
|
165
177
|
value.to_s
|
166
178
|
when :Integer
|
@@ -181,7 +193,7 @@ module MastercardMerchantCheckout
|
|
181
193
|
v_type = Regexp.last_match[:v_type]
|
182
194
|
{}.tap do |hash|
|
183
195
|
value.each do |k, v|
|
184
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
196
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
185
197
|
end
|
186
198
|
end
|
187
199
|
else # model
|
@@ -245,7 +257,8 @@ module MastercardMerchantCheckout
|
|
245
257
|
:card_id => 'String',
|
246
258
|
:shipping_address_id => 'String',
|
247
259
|
:digital_goods => 'BOOLEAN',
|
248
|
-
:psp_id => 'String'
|
260
|
+
:psp_id => 'String',
|
261
|
+
:external_data => 'String'
|
249
262
|
|
250
263
|
}
|
251
264
|
end
|
@@ -81,6 +81,8 @@ module MastercardMerchantCheckout
|
|
81
81
|
DateTime.parse(value)
|
82
82
|
when :Date
|
83
83
|
Date.parse(value)
|
84
|
+
when :Object
|
85
|
+
value
|
84
86
|
when :String
|
85
87
|
value.to_s
|
86
88
|
when :Integer
|
@@ -101,7 +103,7 @@ module MastercardMerchantCheckout
|
|
101
103
|
v_type = Regexp.last_match[:v_type]
|
102
104
|
{}.tap do |hash|
|
103
105
|
value.each do |k, v|
|
104
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
106
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
105
107
|
end
|
106
108
|
end
|
107
109
|
else # model
|
@@ -166,6 +166,8 @@ module MastercardMerchantCheckout
|
|
166
166
|
DateTime.parse(value)
|
167
167
|
when :Date
|
168
168
|
Date.parse(value)
|
169
|
+
when :Object
|
170
|
+
value
|
169
171
|
when :String
|
170
172
|
value.to_s
|
171
173
|
when :Integer
|
@@ -186,7 +188,7 @@ module MastercardMerchantCheckout
|
|
186
188
|
v_type = Regexp.last_match[:v_type]
|
187
189
|
{}.tap do |hash|
|
188
190
|
value.each do |k, v|
|
189
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
191
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
190
192
|
end
|
191
193
|
end
|
192
194
|
else # model
|
@@ -111,6 +111,8 @@ module MastercardMerchantCheckout
|
|
111
111
|
DateTime.parse(value)
|
112
112
|
when :Date
|
113
113
|
Date.parse(value)
|
114
|
+
when :Object
|
115
|
+
value
|
114
116
|
when :String
|
115
117
|
value.to_s
|
116
118
|
when :Integer
|
@@ -131,7 +133,7 @@ module MastercardMerchantCheckout
|
|
131
133
|
v_type = Regexp.last_match[:v_type]
|
132
134
|
{}.tap do |hash|
|
133
135
|
value.each do |k, v|
|
134
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
136
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
135
137
|
end
|
136
138
|
end
|
137
139
|
else # model
|
@@ -141,6 +141,8 @@ module MastercardMerchantCheckout
|
|
141
141
|
DateTime.parse(value)
|
142
142
|
when :Date
|
143
143
|
Date.parse(value)
|
144
|
+
when :Object
|
145
|
+
value
|
144
146
|
when :String
|
145
147
|
value.to_s
|
146
148
|
when :Integer
|
@@ -161,7 +163,7 @@ module MastercardMerchantCheckout
|
|
161
163
|
v_type = Regexp.last_match[:v_type]
|
162
164
|
{}.tap do |hash|
|
163
165
|
value.each do |k, v|
|
164
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
166
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
165
167
|
end
|
166
168
|
end
|
167
169
|
else # model
|
@@ -141,6 +141,8 @@ module MastercardMerchantCheckout
|
|
141
141
|
DateTime.parse(value)
|
142
142
|
when :Date
|
143
143
|
Date.parse(value)
|
144
|
+
when :Object
|
145
|
+
value
|
144
146
|
when :String
|
145
147
|
value.to_s
|
146
148
|
when :Integer
|
@@ -161,7 +163,7 @@ module MastercardMerchantCheckout
|
|
161
163
|
v_type = Regexp.last_match[:v_type]
|
162
164
|
{}.tap do |hash|
|
163
165
|
value.each do |k, v|
|
164
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
166
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
165
167
|
end
|
166
168
|
end
|
167
169
|
else # model
|
@@ -29,7 +29,7 @@ module MastercardMerchantCheckout
|
|
29
29
|
xml_accessor :pre_checkout_transaction_id, :from =>"preCheckoutTransactionId"
|
30
30
|
|
31
31
|
# @!attribute consumer_wallet_id
|
32
|
-
# @return [String] the consumer
|
32
|
+
# @return [String] the consumer’s wallet id.
|
33
33
|
xml_accessor :consumer_wallet_id, :from =>"consumerWalletId"
|
34
34
|
|
35
35
|
# @!attribute wallet_name
|
@@ -164,6 +164,8 @@ module MastercardMerchantCheckout
|
|
164
164
|
DateTime.parse(value)
|
165
165
|
when :Date
|
166
166
|
Date.parse(value)
|
167
|
+
when :Object
|
168
|
+
value
|
167
169
|
when :String
|
168
170
|
value.to_s
|
169
171
|
when :Integer
|
@@ -184,7 +186,7 @@ module MastercardMerchantCheckout
|
|
184
186
|
v_type = Regexp.last_match[:v_type]
|
185
187
|
{}.tap do |hash|
|
186
188
|
value.each do |k, v|
|
187
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
189
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
188
190
|
end
|
189
191
|
end
|
190
192
|
else # model
|
@@ -91,6 +91,8 @@ module MastercardMerchantCheckout
|
|
91
91
|
DateTime.parse(value)
|
92
92
|
when :Date
|
93
93
|
Date.parse(value)
|
94
|
+
when :Object
|
95
|
+
value
|
94
96
|
when :String
|
95
97
|
value.to_s
|
96
98
|
when :Integer
|
@@ -111,7 +113,7 @@ module MastercardMerchantCheckout
|
|
111
113
|
v_type = Regexp.last_match[:v_type]
|
112
114
|
{}.tap do |hash|
|
113
115
|
value.each do |k, v|
|
114
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
116
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
115
117
|
end
|
116
118
|
end
|
117
119
|
else # model
|
@@ -192,6 +192,8 @@ module MastercardMerchantCheckout
|
|
192
192
|
DateTime.parse(value)
|
193
193
|
when :Date
|
194
194
|
Date.parse(value)
|
195
|
+
when :Object
|
196
|
+
value
|
195
197
|
when :String
|
196
198
|
value.to_s
|
197
199
|
when :Integer
|
@@ -212,7 +214,7 @@ module MastercardMerchantCheckout
|
|
212
214
|
v_type = Regexp.last_match[:v_type]
|
213
215
|
{}.tap do |hash|
|
214
216
|
value.each do |k, v|
|
215
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
217
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
216
218
|
end
|
217
219
|
end
|
218
220
|
else # model
|
@@ -23,7 +23,7 @@ module MastercardMerchantCheckout
|
|
23
23
|
xml_accessor :payment_account_reference, :from =>"paymentAccountReference"
|
24
24
|
|
25
25
|
# @!attribute cryptogram
|
26
|
-
# @return [Cryptogram] the cryptogram generated by the consumer
|
26
|
+
# @return [Cryptogram] the cryptogram generated by the consumer’s Masterpass wallet.
|
27
27
|
xml_accessor :cryptogram, :from =>"cryptogram",:as => Cryptogram
|
28
28
|
|
29
29
|
|
@@ -112,6 +112,8 @@ module MastercardMerchantCheckout
|
|
112
112
|
DateTime.parse(value)
|
113
113
|
when :Date
|
114
114
|
Date.parse(value)
|
115
|
+
when :Object
|
116
|
+
value
|
115
117
|
when :String
|
116
118
|
value.to_s
|
117
119
|
when :Integer
|
@@ -132,7 +134,7 @@ module MastercardMerchantCheckout
|
|
132
134
|
v_type = Regexp.last_match[:v_type]
|
133
135
|
{}.tap do |hash|
|
134
136
|
value.each do |k, v|
|
135
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
137
|
+
hash[_deserialize(k_type, k).to_sym] = _deserialize(v_type, v)
|
136
138
|
end
|
137
139
|
end
|
138
140
|
else # model
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastercard_merchant_checkout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mastercard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mastercard_core_sdk
|
@@ -124,7 +124,7 @@ dependencies:
|
|
124
124
|
- - "~>"
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '5.0'
|
127
|
-
description: Mastercard Masterpass Merchant Checkout
|
127
|
+
description: Mastercard Masterpass Merchant Checkout SDK. See https://developer.mastercard.com
|
128
128
|
email:
|
129
129
|
- merchant_support@masterpass.com
|
130
130
|
executables: []
|