cybersource_rest_client 0.0.50 → 0.0.51
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
- data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +13 -4
- data/lib/cybersource_rest_client/models/create_payment_request.rb +13 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +13 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information.rb +13 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_bill_to.rb +206 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +21 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +102 -6
- data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb → pts_v2_payments_post201_response_watchlist_screening_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_export_compliance_information_watch_list.rb → pts_v2_payments_post201_response_watchlist_screening_information_watch_list.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_watch_list_matches.rb → pts_v2_payments_post201_response_watchlist_screening_information_watch_list_matches.rb} +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +26 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_location.rb +238 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +36 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +26 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +21 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_watchlist_screening_information.rb +215 -0
- data/lib/cybersource_rest_client/models/{riskv1exportcomplianceinquiries_export_compliance_information_weights.rb → ptsv2payments_watchlist_screening_information_weights.rb} +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +20 -4
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +10 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +26 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +2 -2
- data/lib/cybersource_rest_client.rb +7 -4
- metadata +9 -6
@@ -44,12 +44,30 @@ module CyberSource
|
|
44
44
|
# Raw Electronic Verification response code from the processor for the customer’s street address.
|
45
45
|
attr_accessor :street_raw
|
46
46
|
|
47
|
-
# Mapped Electronic Verification response code for the customer’s name.
|
47
|
+
# #### Visa Platform Connect Mapped Electronic Verification response code for the customer’s name. Valid values : 'Y' Yes, the data Matches 'N' No Match 'O' Partial Match
|
48
48
|
attr_accessor :name
|
49
49
|
|
50
|
-
# Raw Electronic Verification response code from the processor for the customer’s name.
|
50
|
+
# #### Visa Platform Connect Raw Electronic Verification response code from the processor for the customer’s name. Valid values : '01' Match '50' Partial Match '99' No Match
|
51
51
|
attr_accessor :name_raw
|
52
52
|
|
53
|
+
# #### Visa Platform Connect Raw electronic verification response code from the processor for the customer’s first name. Valid values : '01' Match '50' Partial Match '99' No Match
|
54
|
+
attr_accessor :first_name_raw
|
55
|
+
|
56
|
+
# #### Visa Platform Connect Mapped electronic verification response code from the processor for the customer’s first name. Valid values : 'Y' Yes, the data Matches 'N' No Match 'O' Partial Match
|
57
|
+
attr_accessor :first_name
|
58
|
+
|
59
|
+
# #### Visa Platform Connect Raw electronic verification response code from the processor for the customer’s middle name. Valid values : '01' Match '50' Partial Match '99' No Match
|
60
|
+
attr_accessor :middle_name_raw
|
61
|
+
|
62
|
+
# #### Visa Platform Connect Mapped electronic verification response code from the processor for the customer’s middle name. Valid values : 'Y' Yes, the data Matches 'N' No Match 'O' Partial Match
|
63
|
+
attr_accessor :middle_name
|
64
|
+
|
65
|
+
# #### Visa Platform Connect Raw electronic verification response code from the processor for the customer’s last name. Valid values : '01' Match '50' Partial Match '99' No Match
|
66
|
+
attr_accessor :last_name_raw
|
67
|
+
|
68
|
+
# #### Visa Platform Connect Mapped electronic verification response code from the processor for the customer’s last name. Valid values : 'Y' Yes, the data Matches 'N' No Match 'O' Partial Match
|
69
|
+
attr_accessor :last_name
|
70
|
+
|
53
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
72
|
def self.attribute_map
|
55
73
|
{
|
@@ -64,7 +82,13 @@ module CyberSource
|
|
64
82
|
:'street' => :'street',
|
65
83
|
:'street_raw' => :'streetRaw',
|
66
84
|
:'name' => :'name',
|
67
|
-
:'name_raw' => :'nameRaw'
|
85
|
+
:'name_raw' => :'nameRaw',
|
86
|
+
:'first_name_raw' => :'firstNameRaw',
|
87
|
+
:'first_name' => :'firstName',
|
88
|
+
:'middle_name_raw' => :'middleNameRaw',
|
89
|
+
:'middle_name' => :'middleName',
|
90
|
+
:'last_name_raw' => :'lastNameRaw',
|
91
|
+
:'last_name' => :'lastName'
|
68
92
|
}
|
69
93
|
end
|
70
94
|
|
@@ -82,7 +106,13 @@ module CyberSource
|
|
82
106
|
:'street' => :'String',
|
83
107
|
:'street_raw' => :'String',
|
84
108
|
:'name' => :'String',
|
85
|
-
:'name_raw' => :'String'
|
109
|
+
:'name_raw' => :'String',
|
110
|
+
:'first_name_raw' => :'String',
|
111
|
+
:'first_name' => :'String',
|
112
|
+
:'middle_name_raw' => :'String',
|
113
|
+
:'middle_name' => :'String',
|
114
|
+
:'last_name_raw' => :'String',
|
115
|
+
:'last_name' => :'String'
|
86
116
|
}
|
87
117
|
end
|
88
118
|
|
@@ -141,6 +171,30 @@ module CyberSource
|
|
141
171
|
if attributes.has_key?(:'nameRaw')
|
142
172
|
self.name_raw = attributes[:'nameRaw']
|
143
173
|
end
|
174
|
+
|
175
|
+
if attributes.has_key?(:'firstNameRaw')
|
176
|
+
self.first_name_raw = attributes[:'firstNameRaw']
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.has_key?(:'firstName')
|
180
|
+
self.first_name = attributes[:'firstName']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.has_key?(:'middleNameRaw')
|
184
|
+
self.middle_name_raw = attributes[:'middleNameRaw']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.has_key?(:'middleName')
|
188
|
+
self.middle_name = attributes[:'middleName']
|
189
|
+
end
|
190
|
+
|
191
|
+
if attributes.has_key?(:'lastNameRaw')
|
192
|
+
self.last_name_raw = attributes[:'lastNameRaw']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.has_key?(:'lastName')
|
196
|
+
self.last_name = attributes[:'lastName']
|
197
|
+
end
|
144
198
|
end
|
145
199
|
|
146
200
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -228,6 +282,42 @@ module CyberSource
|
|
228
282
|
@name_raw = name_raw
|
229
283
|
end
|
230
284
|
|
285
|
+
# Custom attribute writer method with validation
|
286
|
+
# @param [Object] first_name_raw Value to be assigned
|
287
|
+
def first_name_raw=(first_name_raw)
|
288
|
+
@first_name_raw = first_name_raw
|
289
|
+
end
|
290
|
+
|
291
|
+
# Custom attribute writer method with validation
|
292
|
+
# @param [Object] first_name Value to be assigned
|
293
|
+
def first_name=(first_name)
|
294
|
+
@first_name = first_name
|
295
|
+
end
|
296
|
+
|
297
|
+
# Custom attribute writer method with validation
|
298
|
+
# @param [Object] middle_name_raw Value to be assigned
|
299
|
+
def middle_name_raw=(middle_name_raw)
|
300
|
+
@middle_name_raw = middle_name_raw
|
301
|
+
end
|
302
|
+
|
303
|
+
# Custom attribute writer method with validation
|
304
|
+
# @param [Object] middle_name Value to be assigned
|
305
|
+
def middle_name=(middle_name)
|
306
|
+
@middle_name = middle_name
|
307
|
+
end
|
308
|
+
|
309
|
+
# Custom attribute writer method with validation
|
310
|
+
# @param [Object] last_name_raw Value to be assigned
|
311
|
+
def last_name_raw=(last_name_raw)
|
312
|
+
@last_name_raw = last_name_raw
|
313
|
+
end
|
314
|
+
|
315
|
+
# Custom attribute writer method with validation
|
316
|
+
# @param [Object] last_name Value to be assigned
|
317
|
+
def last_name=(last_name)
|
318
|
+
@last_name = last_name
|
319
|
+
end
|
320
|
+
|
231
321
|
# Checks equality by comparing each attribute.
|
232
322
|
# @param [Object] Object to be compared
|
233
323
|
def ==(o)
|
@@ -244,7 +334,13 @@ module CyberSource
|
|
244
334
|
street == o.street &&
|
245
335
|
street_raw == o.street_raw &&
|
246
336
|
name == o.name &&
|
247
|
-
name_raw == o.name_raw
|
337
|
+
name_raw == o.name_raw &&
|
338
|
+
first_name_raw == o.first_name_raw &&
|
339
|
+
first_name == o.first_name &&
|
340
|
+
middle_name_raw == o.middle_name_raw &&
|
341
|
+
middle_name == o.middle_name &&
|
342
|
+
last_name_raw == o.last_name_raw &&
|
343
|
+
last_name == o.last_name
|
248
344
|
end
|
249
345
|
|
250
346
|
# @see the `==` method
|
@@ -256,7 +352,7 @@ module CyberSource
|
|
256
352
|
# Calculates hash code according to all attributes.
|
257
353
|
# @return [Fixnum] Hash code
|
258
354
|
def hash
|
259
|
-
[code, code_raw, email, email_raw, phone_number, phone_number_raw, postal_code, postal_code_raw, street, street_raw, name, name_raw].hash
|
355
|
+
[code, code_raw, email, email_raw, phone_number, phone_number_raw, postal_code, postal_code_raw, street, street_raw, name, name_raw, first_name_raw, first_name, middle_name_raw, middle_name, last_name_raw, last_name].hash
|
260
356
|
end
|
261
357
|
|
262
358
|
# Builds the object from hash
|
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
16
|
+
class PtsV2PaymentsPost201ResponseWatchlistScreeningInformation
|
17
17
|
# Likelihood that the country associated with the customer’s IP address was identified correctly. Returns a value from 1–100, where 100 indicates the highest likelihood. If the country cannot be determined, the value is –1.
|
18
18
|
attr_accessor :ip_country_confidence
|
19
19
|
|
@@ -36,7 +36,7 @@ module CyberSource
|
|
36
36
|
{
|
37
37
|
:'ip_country_confidence' => :'Integer',
|
38
38
|
:'info_codes' => :'Array<String>',
|
39
|
-
:'watch_list' => :'
|
39
|
+
:'watch_list' => :'PtsV2PaymentsPost201ResponseWatchlistScreeningInformationWatchList'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
16
|
+
class PtsV2PaymentsPost201ResponseWatchlistScreeningInformationWatchList
|
17
17
|
attr_accessor :matches
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -26,7 +26,7 @@ module CyberSource
|
|
26
26
|
# Attribute type mapping.
|
27
27
|
def self.swagger_types
|
28
28
|
{
|
29
|
-
:'matches' => :'Array<
|
29
|
+
:'matches' => :'Array<PtsV2PaymentsPost201ResponseWatchlistScreeningInformationWatchListMatches>'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
16
|
+
class PtsV2PaymentsPost201ResponseWatchlistScreeningInformationWatchListMatches
|
17
17
|
# Address found on the list specified in export_matchN_list for the entity (name and address) in the request.
|
18
18
|
attr_accessor :addresses
|
19
19
|
|
@@ -54,6 +54,11 @@ module CyberSource
|
|
54
54
|
# URL for displaying payment results to the consumer (notifications) after the transaction is processed. Usually this URL belongs to merchant and its behavior is defined by merchant
|
55
55
|
attr_accessor :return_url
|
56
56
|
|
57
|
+
# #### Visa Platform Connect This field may be used for transactions on accounts issued under co-branding agreements when one of the co-branding partners.
|
58
|
+
attr_accessor :partner_id_code
|
59
|
+
|
60
|
+
attr_accessor :service_location
|
61
|
+
|
57
62
|
# Use this field only if you are requesting payment with Payer Authentication service together. Your company’s name as you want it to appear to the customer in the issuing bank’s authentication form. This value overrides the value specified by your merchant bank.
|
58
63
|
attr_accessor :merchant_name
|
59
64
|
|
@@ -74,6 +79,8 @@ module CyberSource
|
|
74
79
|
:'success_url' => :'successUrl',
|
75
80
|
:'failure_url' => :'failureUrl',
|
76
81
|
:'return_url' => :'returnUrl',
|
82
|
+
:'partner_id_code' => :'partnerIdCode',
|
83
|
+
:'service_location' => :'serviceLocation',
|
77
84
|
:'merchant_name' => :'merchantName'
|
78
85
|
}
|
79
86
|
end
|
@@ -95,6 +102,8 @@ module CyberSource
|
|
95
102
|
:'success_url' => :'String',
|
96
103
|
:'failure_url' => :'String',
|
97
104
|
:'return_url' => :'String',
|
105
|
+
:'partner_id_code' => :'String',
|
106
|
+
:'service_location' => :'Ptsv2paymentsMerchantInformationServiceLocation',
|
98
107
|
:'merchant_name' => :'String'
|
99
108
|
}
|
100
109
|
end
|
@@ -163,6 +172,14 @@ module CyberSource
|
|
163
172
|
self.return_url = attributes[:'returnUrl']
|
164
173
|
end
|
165
174
|
|
175
|
+
if attributes.has_key?(:'partnerIdCode')
|
176
|
+
self.partner_id_code = attributes[:'partnerIdCode']
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.has_key?(:'serviceLocation')
|
180
|
+
self.service_location = attributes[:'serviceLocation']
|
181
|
+
end
|
182
|
+
|
166
183
|
if attributes.has_key?(:'merchantName')
|
167
184
|
self.merchant_name = attributes[:'merchantName']
|
168
185
|
end
|
@@ -253,6 +270,12 @@ module CyberSource
|
|
253
270
|
@return_url = return_url
|
254
271
|
end
|
255
272
|
|
273
|
+
# Custom attribute writer method with validation
|
274
|
+
# @param [Object] partner_id_code Value to be assigned
|
275
|
+
def partner_id_code=(partner_id_code)
|
276
|
+
@partner_id_code = partner_id_code
|
277
|
+
end
|
278
|
+
|
256
279
|
# Custom attribute writer method with validation
|
257
280
|
# @param [Object] merchant_name Value to be assigned
|
258
281
|
def merchant_name=(merchant_name)
|
@@ -278,6 +301,8 @@ module CyberSource
|
|
278
301
|
success_url == o.success_url &&
|
279
302
|
failure_url == o.failure_url &&
|
280
303
|
return_url == o.return_url &&
|
304
|
+
partner_id_code == o.partner_id_code &&
|
305
|
+
service_location == o.service_location &&
|
281
306
|
merchant_name == o.merchant_name
|
282
307
|
end
|
283
308
|
|
@@ -290,7 +315,7 @@ module CyberSource
|
|
290
315
|
# Calculates hash code according to all attributes.
|
291
316
|
# @return [Fixnum] Hash code
|
292
317
|
def hash
|
293
|
-
[merchant_descriptor, domain_name, sales_organization_id, category_code, category_code_domestic, tax_id, vat_registration_number, card_acceptor_reference_number, transaction_local_date_time, service_fee_descriptor, cancel_url, success_url, failure_url, return_url, merchant_name].hash
|
318
|
+
[merchant_descriptor, domain_name, sales_organization_id, category_code, category_code_domestic, tax_id, vat_registration_number, card_acceptor_reference_number, transaction_local_date_time, service_fee_descriptor, cancel_url, success_url, failure_url, return_url, partner_id_code, service_location, merchant_name].hash
|
294
319
|
end
|
295
320
|
|
296
321
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb
CHANGED
@@ -47,6 +47,9 @@ module CyberSource
|
|
47
47
|
# #### Visa Platform Connect This field will indicate merchant country of origin
|
48
48
|
attr_accessor :country_of_origin
|
49
49
|
|
50
|
+
# #### Visa Platform Connect Indicates customer service phone number of Merchant.
|
51
|
+
attr_accessor :customer_service_phone_number
|
52
|
+
|
50
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
54
|
def self.attribute_map
|
52
55
|
{
|
@@ -60,7 +63,8 @@ module CyberSource
|
|
60
63
|
:'administrative_area' => :'administrativeArea',
|
61
64
|
:'phone' => :'phone',
|
62
65
|
:'url' => :'url',
|
63
|
-
:'country_of_origin' => :'countryOfOrigin'
|
66
|
+
:'country_of_origin' => :'countryOfOrigin',
|
67
|
+
:'customer_service_phone_number' => :'customerServicePhoneNumber'
|
64
68
|
}
|
65
69
|
end
|
66
70
|
|
@@ -77,7 +81,8 @@ module CyberSource
|
|
77
81
|
:'administrative_area' => :'String',
|
78
82
|
:'phone' => :'String',
|
79
83
|
:'url' => :'String',
|
80
|
-
:'country_of_origin' => :'String'
|
84
|
+
:'country_of_origin' => :'String',
|
85
|
+
:'customer_service_phone_number' => :'String'
|
81
86
|
}
|
82
87
|
end
|
83
88
|
|
@@ -132,6 +137,10 @@ module CyberSource
|
|
132
137
|
if attributes.has_key?(:'countryOfOrigin')
|
133
138
|
self.country_of_origin = attributes[:'countryOfOrigin']
|
134
139
|
end
|
140
|
+
|
141
|
+
if attributes.has_key?(:'customerServicePhoneNumber')
|
142
|
+
self.customer_service_phone_number = attributes[:'customerServicePhoneNumber']
|
143
|
+
end
|
135
144
|
end
|
136
145
|
|
137
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -201,6 +210,12 @@ module CyberSource
|
|
201
210
|
@country_of_origin = country_of_origin
|
202
211
|
end
|
203
212
|
|
213
|
+
# Custom attribute writer method with validation
|
214
|
+
# @param [Object] customer_service_phone_number Value to be assigned
|
215
|
+
def customer_service_phone_number=(customer_service_phone_number)
|
216
|
+
@customer_service_phone_number = customer_service_phone_number
|
217
|
+
end
|
218
|
+
|
204
219
|
# Checks equality by comparing each attribute.
|
205
220
|
# @param [Object] Object to be compared
|
206
221
|
def ==(o)
|
@@ -216,7 +231,8 @@ module CyberSource
|
|
216
231
|
administrative_area == o.administrative_area &&
|
217
232
|
phone == o.phone &&
|
218
233
|
url == o.url &&
|
219
|
-
country_of_origin == o.country_of_origin
|
234
|
+
country_of_origin == o.country_of_origin &&
|
235
|
+
customer_service_phone_number == o.customer_service_phone_number
|
220
236
|
end
|
221
237
|
|
222
238
|
# @see the `==` method
|
@@ -228,7 +244,7 @@ module CyberSource
|
|
228
244
|
# Calculates hash code according to all attributes.
|
229
245
|
# @return [Fixnum] Hash code
|
230
246
|
def hash
|
231
|
-
[name, alternate_name, contact, address1, locality, country, postal_code, administrative_area, phone, url, country_of_origin].hash
|
247
|
+
[name, alternate_name, contact, address1, locality, country, postal_code, administrative_area, phone, url, country_of_origin, customer_service_phone_number].hash
|
232
248
|
end
|
233
249
|
|
234
250
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_location.rb
ADDED
@@ -0,0 +1,238 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Merged Spec
|
3
|
+
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class Ptsv2paymentsMerchantInformationServiceLocation
|
17
|
+
# #### Visa Platform Connect Merchant’s service location city name. When merchant provides services from a location other than the location identified as merchant location.
|
18
|
+
attr_accessor :locality
|
19
|
+
|
20
|
+
# #### Visa Platform Connect Merchant’s service location country subdivision code. When merchant provides services from a location other than the location identified as merchant location.
|
21
|
+
attr_accessor :country_subdivision_code
|
22
|
+
|
23
|
+
# #### Visa Platform Connect Merchant’s service location country code. When merchant provides services from a location other than the location identified as merchant location.
|
24
|
+
attr_accessor :country_code
|
25
|
+
|
26
|
+
# #### Visa Platform Connect Merchant’s service location postal code. When merchant provides services from a location other than the location identified as merchant location.
|
27
|
+
attr_accessor :postal_code
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'locality' => :'locality',
|
33
|
+
:'country_subdivision_code' => :'countrySubdivisionCode',
|
34
|
+
:'country_code' => :'countryCode',
|
35
|
+
:'postal_code' => :'postalCode'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.swagger_types
|
41
|
+
{
|
42
|
+
:'locality' => :'String',
|
43
|
+
:'country_subdivision_code' => :'String',
|
44
|
+
:'country_code' => :'String',
|
45
|
+
:'postal_code' => :'String'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
return unless attributes.is_a?(Hash)
|
53
|
+
|
54
|
+
# convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
56
|
+
|
57
|
+
if attributes.has_key?(:'locality')
|
58
|
+
self.locality = attributes[:'locality']
|
59
|
+
end
|
60
|
+
|
61
|
+
if attributes.has_key?(:'countrySubdivisionCode')
|
62
|
+
self.country_subdivision_code = attributes[:'countrySubdivisionCode']
|
63
|
+
end
|
64
|
+
|
65
|
+
if attributes.has_key?(:'countryCode')
|
66
|
+
self.country_code = attributes[:'countryCode']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'postalCode')
|
70
|
+
self.postal_code = attributes[:'postalCode']
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
75
|
+
# @return Array for valid properties with the reasons
|
76
|
+
def list_invalid_properties
|
77
|
+
invalid_properties = Array.new
|
78
|
+
invalid_properties
|
79
|
+
end
|
80
|
+
|
81
|
+
# Check to see if the all the properties in the model are valid
|
82
|
+
# @return true if the model is valid
|
83
|
+
def valid?
|
84
|
+
true
|
85
|
+
end
|
86
|
+
|
87
|
+
# Custom attribute writer method with validation
|
88
|
+
# @param [Object] locality Value to be assigned
|
89
|
+
def locality=(locality)
|
90
|
+
@locality = locality
|
91
|
+
end
|
92
|
+
|
93
|
+
# Custom attribute writer method with validation
|
94
|
+
# @param [Object] country_subdivision_code Value to be assigned
|
95
|
+
def country_subdivision_code=(country_subdivision_code)
|
96
|
+
@country_subdivision_code = country_subdivision_code
|
97
|
+
end
|
98
|
+
|
99
|
+
# Custom attribute writer method with validation
|
100
|
+
# @param [Object] country_code Value to be assigned
|
101
|
+
def country_code=(country_code)
|
102
|
+
@country_code = country_code
|
103
|
+
end
|
104
|
+
|
105
|
+
# Custom attribute writer method with validation
|
106
|
+
# @param [Object] postal_code Value to be assigned
|
107
|
+
def postal_code=(postal_code)
|
108
|
+
@postal_code = postal_code
|
109
|
+
end
|
110
|
+
|
111
|
+
# Checks equality by comparing each attribute.
|
112
|
+
# @param [Object] Object to be compared
|
113
|
+
def ==(o)
|
114
|
+
return true if self.equal?(o)
|
115
|
+
self.class == o.class &&
|
116
|
+
locality == o.locality &&
|
117
|
+
country_subdivision_code == o.country_subdivision_code &&
|
118
|
+
country_code == o.country_code &&
|
119
|
+
postal_code == o.postal_code
|
120
|
+
end
|
121
|
+
|
122
|
+
# @see the `==` method
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def eql?(o)
|
125
|
+
self == o
|
126
|
+
end
|
127
|
+
|
128
|
+
# Calculates hash code according to all attributes.
|
129
|
+
# @return [Fixnum] Hash code
|
130
|
+
def hash
|
131
|
+
[locality, country_subdivision_code, country_code, postal_code].hash
|
132
|
+
end
|
133
|
+
|
134
|
+
# Builds the object from hash
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
136
|
+
# @return [Object] Returns the model itself
|
137
|
+
def build_from_hash(attributes)
|
138
|
+
return nil unless attributes.is_a?(Hash)
|
139
|
+
self.class.swagger_types.each_pair do |key, type|
|
140
|
+
if type =~ /\AArray<(.*)>/i
|
141
|
+
# check to ensure the input is an array given that the the attribute
|
142
|
+
# is documented as an array but the input is not
|
143
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
144
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
145
|
+
end
|
146
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
147
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
148
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
149
|
+
end
|
150
|
+
|
151
|
+
self
|
152
|
+
end
|
153
|
+
|
154
|
+
# Deserializes the data based on type
|
155
|
+
# @param string type Data type
|
156
|
+
# @param string value Value to be deserialized
|
157
|
+
# @return [Object] Deserialized data
|
158
|
+
def _deserialize(type, value)
|
159
|
+
case type.to_sym
|
160
|
+
when :DateTime
|
161
|
+
DateTime.parse(value)
|
162
|
+
when :Date
|
163
|
+
Date.parse(value)
|
164
|
+
when :String
|
165
|
+
value.to_s
|
166
|
+
when :Integer
|
167
|
+
value.to_i
|
168
|
+
when :Float
|
169
|
+
value.to_f
|
170
|
+
when :BOOLEAN
|
171
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
172
|
+
true
|
173
|
+
else
|
174
|
+
false
|
175
|
+
end
|
176
|
+
when :Object
|
177
|
+
# generic object (usually a Hash), return directly
|
178
|
+
value
|
179
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
180
|
+
inner_type = Regexp.last_match[:inner_type]
|
181
|
+
value.map { |v| _deserialize(inner_type, v) }
|
182
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
183
|
+
k_type = Regexp.last_match[:k_type]
|
184
|
+
v_type = Regexp.last_match[:v_type]
|
185
|
+
{}.tap do |hash|
|
186
|
+
value.each do |k, v|
|
187
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
else # model
|
191
|
+
temp_model = CyberSource.const_get(type).new
|
192
|
+
temp_model.build_from_hash(value)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# Returns the string representation of the object
|
197
|
+
# @return [String] String presentation of the object
|
198
|
+
def to_s
|
199
|
+
to_hash.to_s
|
200
|
+
end
|
201
|
+
|
202
|
+
# to_body is an alias to to_hash (backward compatibility)
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
204
|
+
def to_body
|
205
|
+
to_hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Returns the object in the form of hash
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
210
|
+
def to_hash
|
211
|
+
hash = {}
|
212
|
+
self.class.attribute_map.each_pair do |attr, param|
|
213
|
+
value = self.send(attr)
|
214
|
+
next if value.nil?
|
215
|
+
hash[param] = _to_hash(value)
|
216
|
+
end
|
217
|
+
hash
|
218
|
+
end
|
219
|
+
|
220
|
+
# Outputs non-array value in the form of hash
|
221
|
+
# For object, use to_hash. Otherwise, just return the value
|
222
|
+
# @param [Object] value Any valid value
|
223
|
+
# @return [Hash] Returns the value in the form of hash
|
224
|
+
def _to_hash(value)
|
225
|
+
if value.is_a?(Array)
|
226
|
+
value.compact.map { |v| _to_hash(v) }
|
227
|
+
elsif value.is_a?(Hash)
|
228
|
+
{}.tap do |hash|
|
229
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
230
|
+
end
|
231
|
+
elsif value.respond_to? :to_hash
|
232
|
+
value.to_hash
|
233
|
+
else
|
234
|
+
value
|
235
|
+
end
|
236
|
+
end
|
237
|
+
end
|
238
|
+
end
|
@@ -79,6 +79,12 @@ module CyberSource
|
|
79
79
|
# Whether buyer has verified their identity. Used in case of PayPal transactions. Possible Values: * VERIFIED * UNVERIFIED
|
80
80
|
attr_accessor :verification_status
|
81
81
|
|
82
|
+
# #### Visa Platform Connect contains customer’s alternate phone number.
|
83
|
+
attr_accessor :alternate_phone_number
|
84
|
+
|
85
|
+
# #### Visa Platform Connect contains customer’s alternate email address.
|
86
|
+
attr_accessor :alternate_email
|
87
|
+
|
82
88
|
# Attribute mapping from ruby-style variable name to JSON key.
|
83
89
|
def self.attribute_map
|
84
90
|
{
|
@@ -103,7 +109,9 @@ module CyberSource
|
|
103
109
|
:'email_domain' => :'emailDomain',
|
104
110
|
:'phone_number' => :'phoneNumber',
|
105
111
|
:'phone_type' => :'phoneType',
|
106
|
-
:'verification_status' => :'verificationStatus'
|
112
|
+
:'verification_status' => :'verificationStatus',
|
113
|
+
:'alternate_phone_number' => :'alternatePhoneNumber',
|
114
|
+
:'alternate_email' => :'alternateEmail'
|
107
115
|
}
|
108
116
|
end
|
109
117
|
|
@@ -131,7 +139,9 @@ module CyberSource
|
|
131
139
|
:'email_domain' => :'String',
|
132
140
|
:'phone_number' => :'String',
|
133
141
|
:'phone_type' => :'String',
|
134
|
-
:'verification_status' => :'String'
|
142
|
+
:'verification_status' => :'String',
|
143
|
+
:'alternate_phone_number' => :'String',
|
144
|
+
:'alternate_email' => :'String'
|
135
145
|
}
|
136
146
|
end
|
137
147
|
|
@@ -230,6 +240,14 @@ module CyberSource
|
|
230
240
|
if attributes.has_key?(:'verificationStatus')
|
231
241
|
self.verification_status = attributes[:'verificationStatus']
|
232
242
|
end
|
243
|
+
|
244
|
+
if attributes.has_key?(:'alternatePhoneNumber')
|
245
|
+
self.alternate_phone_number = attributes[:'alternatePhoneNumber']
|
246
|
+
end
|
247
|
+
|
248
|
+
if attributes.has_key?(:'alternateEmail')
|
249
|
+
self.alternate_email = attributes[:'alternateEmail']
|
250
|
+
end
|
233
251
|
end
|
234
252
|
|
235
253
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -359,6 +377,18 @@ module CyberSource
|
|
359
377
|
@phone_number = phone_number
|
360
378
|
end
|
361
379
|
|
380
|
+
# Custom attribute writer method with validation
|
381
|
+
# @param [Object] alternate_phone_number Value to be assigned
|
382
|
+
def alternate_phone_number=(alternate_phone_number)
|
383
|
+
@alternate_phone_number = alternate_phone_number
|
384
|
+
end
|
385
|
+
|
386
|
+
# Custom attribute writer method with validation
|
387
|
+
# @param [Object] alternate_email Value to be assigned
|
388
|
+
def alternate_email=(alternate_email)
|
389
|
+
@alternate_email = alternate_email
|
390
|
+
end
|
391
|
+
|
362
392
|
# Checks equality by comparing each attribute.
|
363
393
|
# @param [Object] Object to be compared
|
364
394
|
def ==(o)
|
@@ -385,7 +415,9 @@ module CyberSource
|
|
385
415
|
email_domain == o.email_domain &&
|
386
416
|
phone_number == o.phone_number &&
|
387
417
|
phone_type == o.phone_type &&
|
388
|
-
verification_status == o.verification_status
|
418
|
+
verification_status == o.verification_status &&
|
419
|
+
alternate_phone_number == o.alternate_phone_number &&
|
420
|
+
alternate_email == o.alternate_email
|
389
421
|
end
|
390
422
|
|
391
423
|
# @see the `==` method
|
@@ -397,7 +429,7 @@ module CyberSource
|
|
397
429
|
# Calculates hash code according to all attributes.
|
398
430
|
# @return [Fixnum] Hash code
|
399
431
|
def hash
|
400
|
-
[first_name, last_name, middle_name, name_suffix, title, company, address1, address2, address3, address4, locality, administrative_area, postal_code, county, country, district, building_number, email, email_domain, phone_number, phone_type, verification_status].hash
|
432
|
+
[first_name, last_name, middle_name, name_suffix, title, company, address1, address2, address3, address4, locality, administrative_area, postal_code, county, country, district, building_number, email, email_domain, phone_number, phone_type, verification_status, alternate_phone_number, alternate_email].hash
|
401
433
|
end
|
402
434
|
|
403
435
|
# Builds the object from hash
|