cybersource_rest_client 0.0.17 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/core/MerchantConfig.rb +2 -0
  3. data/lib/cybersource_rest_client.rb +81 -5
  4. data/lib/cybersource_rest_client/api/authentication_exemptions_api.rb +89 -0
  5. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +154 -0
  6. data/lib/cybersource_rest_client/api/report_definitions_api.rb +9 -0
  7. data/lib/cybersource_rest_client/api/report_downloads_api.rb +3 -0
  8. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +79 -0
  9. data/lib/cybersource_rest_client/api/reports_api.rb +2 -2
  10. data/lib/cybersource_rest_client/api_client.rb +12 -0
  11. data/lib/cybersource_rest_client/models/authentication_exemptions_request.rb +228 -0
  12. data/lib/cybersource_rest_client/models/buyer_information.rb +20 -20
  13. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +284 -0
  14. data/lib/cybersource_rest_client/models/create_payment_instrument_request.rb +2 -41
  15. data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +27 -2
  16. data/lib/cybersource_rest_client/models/embedded_instrument_identifier_request.rb +226 -0
  17. data/lib/cybersource_rest_client/models/{embedded_instrument_identifier.rb → embedded_instrument_identifier_response.rb} +11 -2
  18. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_delete409_response__links_payment_instruments.rb → instrument_identifier_payment_instruments_link.rb} +1 -1
  19. data/lib/cybersource_rest_client/models/{instrument_identifier.rb → instrument_identifier_response.rb} +11 -2
  20. data/lib/cybersource_rest_client/models/issuer.rb +208 -0
  21. data/lib/cybersource_rest_client/models/links.rb +10 -1
  22. data/lib/cybersource_rest_client/models/model_409_links.rb +1 -1
  23. data/lib/cybersource_rest_client/models/payment_instrument.rb +9 -9
  24. data/lib/cybersource_rest_client/models/payment_instrument_card.rb +2 -2
  25. data/lib/cybersource_rest_client/models/payment_instrument_instrument_identifier_request.rb +246 -0
  26. data/lib/cybersource_rest_client/models/payment_instrument_self_link.rb +183 -0
  27. data/lib/cybersource_rest_client/models/payment_instruments_links.rb +183 -0
  28. data/lib/cybersource_rest_client/models/personal_identification.rb +1 -1
  29. data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +392 -0
  30. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +225 -0
  31. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
  32. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +2 -2
  33. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +0 -15
  34. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +2 -2
  35. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +1 -1
  36. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +60 -0
  37. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +22 -27
  38. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +2 -2
  39. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +26 -1
  40. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +4 -4
  41. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +2 -2
  42. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  43. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +2 -2
  44. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +1 -1
  45. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +270 -0
  46. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +2 -2
  47. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +1 -1
  48. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +2 -2
  49. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +0 -30
  50. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +2 -2
  51. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +2 -2
  52. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +1 -1
  53. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +23 -4
  54. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response.rb +23 -4
  55. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_default_settings.rb +255 -0
  56. data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +27 -2
  57. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response__link.rb +183 -0
  58. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response__link_report_download.rb +192 -0
  59. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_report_search_results.rb +13 -4
  60. data/lib/cybersource_rest_client/models/request.rb +210 -0
  61. data/lib/cybersource_rest_client/models/risk_v1_authentication_excemptions_post400_response.rb +225 -0
  62. data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_consumer_authentication_information_strong_authentication.rb +269 -0
  63. data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_post201_response.rb +255 -0
  64. data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_post201_response_consumer_authentication_information.rb +183 -0
  65. data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_post201_response_risk_information.rb +199 -0
  66. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +285 -0
  67. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +324 -0
  68. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +294 -0
  69. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_consumer_authentication_information.rb +444 -0
  70. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information.rb +183 -0
  71. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information_amount_details.rb +199 -0
  72. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_acquirer_information.rb +199 -0
  73. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_device_information.rb +183 -0
  74. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_merchant_information.rb +258 -0
  75. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_merchant_information_merchant_descriptor.rb +229 -0
  76. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information.rb +212 -0
  77. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information_bill_to.rb +496 -0
  78. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information_line_items.rb +283 -0
  79. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information_ship_to.rb +399 -0
  80. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information.rb +192 -0
  81. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information_card.rb +325 -0
  82. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information_tokenized_card.rb +291 -0
  83. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +524 -0
  84. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information.rb +194 -0
  85. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +267 -0
  86. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +192 -0
  87. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +298 -0
  88. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +264 -0
  89. data/lib/cybersource_rest_client/models/riskv1authentications_acquirer_information.rb +274 -0
  90. data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +196 -0
  91. data/lib/cybersource_rest_client/models/riskv1authentications_client_reference_information.rb +208 -0
  92. data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information.rb +1359 -0
  93. data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information_ivr.rb +319 -0
  94. data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information_strong_authentication.rb +199 -0
  95. data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +430 -0
  96. data/lib/cybersource_rest_client/models/riskv1authentications_device_information_raw_data.rb +209 -0
  97. data/lib/cybersource_rest_client/models/riskv1authentications_merchant_information.rb +208 -0
  98. data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_payment_information_payment_type_funding_source.rb → riskv1authentications_merchant_information_merchant_descriptor.rb} +25 -40
  99. data/lib/cybersource_rest_client/models/riskv1authentications_order_information.rb +283 -0
  100. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +396 -0
  101. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_ship_to.rb +459 -0
  102. data/lib/cybersource_rest_client/models/riskv1authentications_recurring_payment_information.rb +235 -0
  103. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information.rb +183 -0
  104. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history.rb +262 -0
  105. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_account_history.rb +209 -0
  106. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_customer_account.rb +279 -0
  107. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information.rb +206 -0
  108. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +259 -0
  109. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_passengers.rb +224 -0
  110. data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +26 -1
  111. data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +13 -4
  112. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_address.rb +325 -0
  113. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +26 -1
  114. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information.rb +13 -4
  115. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_bank.rb +275 -0
  116. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +2 -2
  117. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  118. data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +13 -4
  119. data/lib/cybersource_rest_client/models/riskv1decisions_risk_information_marking_details.rb +275 -0
  120. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_delete409_response__links.rb +1 -1
  121. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_instrument_identifier.rb → tms_v1_instrument_identifiers_payment_instruments_embedded_instrument_identifier.rb} +11 -2
  122. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__embedded.rb +183 -0
  123. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__links.rb +183 -0
  124. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__links_self.rb +183 -0
  125. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_buyer_information.rb +20 -20
  126. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_card.rb +2 -2
  127. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_payment_instruments.rb +9 -9
  128. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_personal_identification.rb +1 -1
  129. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response.rb +10 -1
  130. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response__links.rb +10 -1
  131. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response__links_payment_instruments.rb +183 -0
  132. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_issuer.rb +208 -0
  133. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +1 -1
  134. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb +226 -0
  135. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information_applications.rb +1 -1
  136. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +3 -3
  137. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
  138. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +12 -31
  139. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
  140. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +2 -2
  141. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
  142. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb +9 -9
  143. data/lib/cybersource_rest_client/models/update_payment_instrument_request.rb +2 -41
  144. data/lib/cybersource_rest_client/utilities/flex/token_verification.rb +42 -0
  145. metadata +79 -7
@@ -174,15 +174,240 @@ module CyberSource
174
174
  # @return Array for valid properties with the reasons
175
175
  def list_invalid_properties
176
176
  invalid_properties = Array.new
177
+ if !@additional_costs.nil? && @additional_costs.to_s.length > 12
178
+ invalid_properties.push('invalid value for "additional_costs", the character length must be smaller than or equal to 12.')
179
+ end
180
+
181
+ if !@additional_costs_percentage.nil? && @additional_costs_percentage.to_s.length > 4
182
+ invalid_properties.push('invalid value for "additional_costs_percentage", the character length must be smaller than or equal to 4.')
183
+ end
184
+
185
+ if !@amount_funded.nil? && @amount_funded.to_s.length > 12
186
+ invalid_properties.push('invalid value for "amount_funded", the character length must be smaller than or equal to 12.')
187
+ end
188
+
189
+ if !@amount_requested_percentage.nil? && @amount_requested_percentage.to_s.length > 4
190
+ invalid_properties.push('invalid value for "amount_requested_percentage", the character length must be smaller than or equal to 4.')
191
+ end
192
+
193
+ if !@annual_financing_cost.nil? && @annual_financing_cost.to_s.length > 7
194
+ invalid_properties.push('invalid value for "annual_financing_cost", the character length must be smaller than or equal to 7.')
195
+ end
196
+
197
+ if !@annual_interest_rate.nil? && @annual_interest_rate.to_s.length > 7
198
+ invalid_properties.push('invalid value for "annual_interest_rate", the character length must be smaller than or equal to 7.')
199
+ end
200
+
201
+ if !@expenses.nil? && @expenses.to_s.length > 12
202
+ invalid_properties.push('invalid value for "expenses", the character length must be smaller than or equal to 12.')
203
+ end
204
+
205
+ if !@expenses_percentage.nil? && @expenses_percentage.to_s.length > 4
206
+ invalid_properties.push('invalid value for "expenses_percentage", the character length must be smaller than or equal to 4.')
207
+ end
208
+
209
+ if !@fees.nil? && @fees.to_s.length > 12
210
+ invalid_properties.push('invalid value for "fees", the character length must be smaller than or equal to 12.')
211
+ end
212
+
213
+ if !@fees_percentage.nil? && @fees_percentage.to_s.length > 4
214
+ invalid_properties.push('invalid value for "fees_percentage", the character length must be smaller than or equal to 4.')
215
+ end
216
+
217
+ if !@insurance.nil? && @insurance.to_s.length > 12
218
+ invalid_properties.push('invalid value for "insurance", the character length must be smaller than or equal to 12.')
219
+ end
220
+
221
+ if !@insurance_percentage.nil? && @insurance_percentage.to_s.length > 4
222
+ invalid_properties.push('invalid value for "insurance_percentage", the character length must be smaller than or equal to 4.')
223
+ end
224
+
225
+ if !@monthly_interest_rate.nil? && @monthly_interest_rate.to_s.length > 7
226
+ invalid_properties.push('invalid value for "monthly_interest_rate", the character length must be smaller than or equal to 7.')
227
+ end
228
+
229
+ if !@taxes.nil? && @taxes.to_s.length > 12
230
+ invalid_properties.push('invalid value for "taxes", the character length must be smaller than or equal to 12.')
231
+ end
232
+
233
+ if !@taxes_percentage.nil? && @taxes_percentage.to_s.length > 4
234
+ invalid_properties.push('invalid value for "taxes_percentage", the character length must be smaller than or equal to 4.')
235
+ end
236
+
177
237
  invalid_properties
178
238
  end
179
239
 
180
240
  # Check to see if the all the properties in the model are valid
181
241
  # @return true if the model is valid
182
242
  def valid?
243
+ return false if !@additional_costs.nil? && @additional_costs.to_s.length > 12
244
+ return false if !@additional_costs_percentage.nil? && @additional_costs_percentage.to_s.length > 4
245
+ return false if !@amount_funded.nil? && @amount_funded.to_s.length > 12
246
+ return false if !@amount_requested_percentage.nil? && @amount_requested_percentage.to_s.length > 4
247
+ return false if !@annual_financing_cost.nil? && @annual_financing_cost.to_s.length > 7
248
+ return false if !@annual_interest_rate.nil? && @annual_interest_rate.to_s.length > 7
249
+ return false if !@expenses.nil? && @expenses.to_s.length > 12
250
+ return false if !@expenses_percentage.nil? && @expenses_percentage.to_s.length > 4
251
+ return false if !@fees.nil? && @fees.to_s.length > 12
252
+ return false if !@fees_percentage.nil? && @fees_percentage.to_s.length > 4
253
+ return false if !@insurance.nil? && @insurance.to_s.length > 12
254
+ return false if !@insurance_percentage.nil? && @insurance_percentage.to_s.length > 4
255
+ return false if !@monthly_interest_rate.nil? && @monthly_interest_rate.to_s.length > 7
256
+ return false if !@taxes.nil? && @taxes.to_s.length > 12
257
+ return false if !@taxes_percentage.nil? && @taxes_percentage.to_s.length > 4
183
258
  true
184
259
  end
185
260
 
261
+ # Custom attribute writer method with validation
262
+ # @param [Object] additional_costs Value to be assigned
263
+ def additional_costs=(additional_costs)
264
+ if !additional_costs.nil? && additional_costs.to_s.length > 12
265
+ fail ArgumentError, 'invalid value for "additional_costs", the character length must be smaller than or equal to 12.'
266
+ end
267
+
268
+ @additional_costs = additional_costs
269
+ end
270
+
271
+ # Custom attribute writer method with validation
272
+ # @param [Object] additional_costs_percentage Value to be assigned
273
+ def additional_costs_percentage=(additional_costs_percentage)
274
+ if !additional_costs_percentage.nil? && additional_costs_percentage.to_s.length > 4
275
+ fail ArgumentError, 'invalid value for "additional_costs_percentage", the character length must be smaller than or equal to 4.'
276
+ end
277
+
278
+ @additional_costs_percentage = additional_costs_percentage
279
+ end
280
+
281
+ # Custom attribute writer method with validation
282
+ # @param [Object] amount_funded Value to be assigned
283
+ def amount_funded=(amount_funded)
284
+ if !amount_funded.nil? && amount_funded.to_s.length > 12
285
+ fail ArgumentError, 'invalid value for "amount_funded", the character length must be smaller than or equal to 12.'
286
+ end
287
+
288
+ @amount_funded = amount_funded
289
+ end
290
+
291
+ # Custom attribute writer method with validation
292
+ # @param [Object] amount_requested_percentage Value to be assigned
293
+ def amount_requested_percentage=(amount_requested_percentage)
294
+ if !amount_requested_percentage.nil? && amount_requested_percentage.to_s.length > 4
295
+ fail ArgumentError, 'invalid value for "amount_requested_percentage", the character length must be smaller than or equal to 4.'
296
+ end
297
+
298
+ @amount_requested_percentage = amount_requested_percentage
299
+ end
300
+
301
+ # Custom attribute writer method with validation
302
+ # @param [Object] annual_financing_cost Value to be assigned
303
+ def annual_financing_cost=(annual_financing_cost)
304
+ if !annual_financing_cost.nil? && annual_financing_cost.to_s.length > 7
305
+ fail ArgumentError, 'invalid value for "annual_financing_cost", the character length must be smaller than or equal to 7.'
306
+ end
307
+
308
+ @annual_financing_cost = annual_financing_cost
309
+ end
310
+
311
+ # Custom attribute writer method with validation
312
+ # @param [Object] annual_interest_rate Value to be assigned
313
+ def annual_interest_rate=(annual_interest_rate)
314
+ if !annual_interest_rate.nil? && annual_interest_rate.to_s.length > 7
315
+ fail ArgumentError, 'invalid value for "annual_interest_rate", the character length must be smaller than or equal to 7.'
316
+ end
317
+
318
+ @annual_interest_rate = annual_interest_rate
319
+ end
320
+
321
+ # Custom attribute writer method with validation
322
+ # @param [Object] expenses Value to be assigned
323
+ def expenses=(expenses)
324
+ if !expenses.nil? && expenses.to_s.length > 12
325
+ fail ArgumentError, 'invalid value for "expenses", the character length must be smaller than or equal to 12.'
326
+ end
327
+
328
+ @expenses = expenses
329
+ end
330
+
331
+ # Custom attribute writer method with validation
332
+ # @param [Object] expenses_percentage Value to be assigned
333
+ def expenses_percentage=(expenses_percentage)
334
+ if !expenses_percentage.nil? && expenses_percentage.to_s.length > 4
335
+ fail ArgumentError, 'invalid value for "expenses_percentage", the character length must be smaller than or equal to 4.'
336
+ end
337
+
338
+ @expenses_percentage = expenses_percentage
339
+ end
340
+
341
+ # Custom attribute writer method with validation
342
+ # @param [Object] fees Value to be assigned
343
+ def fees=(fees)
344
+ if !fees.nil? && fees.to_s.length > 12
345
+ fail ArgumentError, 'invalid value for "fees", the character length must be smaller than or equal to 12.'
346
+ end
347
+
348
+ @fees = fees
349
+ end
350
+
351
+ # Custom attribute writer method with validation
352
+ # @param [Object] fees_percentage Value to be assigned
353
+ def fees_percentage=(fees_percentage)
354
+ if !fees_percentage.nil? && fees_percentage.to_s.length > 4
355
+ fail ArgumentError, 'invalid value for "fees_percentage", the character length must be smaller than or equal to 4.'
356
+ end
357
+
358
+ @fees_percentage = fees_percentage
359
+ end
360
+
361
+ # Custom attribute writer method with validation
362
+ # @param [Object] insurance Value to be assigned
363
+ def insurance=(insurance)
364
+ if !insurance.nil? && insurance.to_s.length > 12
365
+ fail ArgumentError, 'invalid value for "insurance", the character length must be smaller than or equal to 12.'
366
+ end
367
+
368
+ @insurance = insurance
369
+ end
370
+
371
+ # Custom attribute writer method with validation
372
+ # @param [Object] insurance_percentage Value to be assigned
373
+ def insurance_percentage=(insurance_percentage)
374
+ if !insurance_percentage.nil? && insurance_percentage.to_s.length > 4
375
+ fail ArgumentError, 'invalid value for "insurance_percentage", the character length must be smaller than or equal to 4.'
376
+ end
377
+
378
+ @insurance_percentage = insurance_percentage
379
+ end
380
+
381
+ # Custom attribute writer method with validation
382
+ # @param [Object] monthly_interest_rate Value to be assigned
383
+ def monthly_interest_rate=(monthly_interest_rate)
384
+ if !monthly_interest_rate.nil? && monthly_interest_rate.to_s.length > 7
385
+ fail ArgumentError, 'invalid value for "monthly_interest_rate", the character length must be smaller than or equal to 7.'
386
+ end
387
+
388
+ @monthly_interest_rate = monthly_interest_rate
389
+ end
390
+
391
+ # Custom attribute writer method with validation
392
+ # @param [Object] taxes Value to be assigned
393
+ def taxes=(taxes)
394
+ if !taxes.nil? && taxes.to_s.length > 12
395
+ fail ArgumentError, 'invalid value for "taxes", the character length must be smaller than or equal to 12.'
396
+ end
397
+
398
+ @taxes = taxes
399
+ end
400
+
401
+ # Custom attribute writer method with validation
402
+ # @param [Object] taxes_percentage Value to be assigned
403
+ def taxes_percentage=(taxes_percentage)
404
+ if !taxes_percentage.nil? && taxes_percentage.to_s.length > 4
405
+ fail ArgumentError, 'invalid value for "taxes_percentage", the character length must be smaller than or equal to 4.'
406
+ end
407
+
408
+ @taxes_percentage = taxes_percentage
409
+ end
410
+
186
411
  # Checks equality by comparing each attribute.
187
412
  # @param [Object] Object to be compared
188
413
  def ==(o)
@@ -20,7 +20,7 @@ module CyberSource
20
20
  # Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. For details, see `token_suffix` field description in [Google Pay Using the SCMP API.] (https://apps.cybersource.com/library/documentation/dev_guides/Google_Pay_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
21
21
  attr_accessor :suffix
22
22
 
23
- # Three-digit value that indicates the card type. Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - 005: Diners Club - 007: JCB - 024: Maestro (UK Domestic) - 039 Encoded account number - 042: Maestro (International) For the complete list of possible values, see `card_type` field description in the [Credit Card Services Using the SCMP API Guide.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
23
+ # Three-digit value that indicates the card type. Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - 005: Diners Club - 007: JCB - 024: Maestro (UK Domestic) - 036: Cartes Bancaires - 039 Encoded account number - 042: Maestro (International) For the complete list of possible values, see `card_type` field description in the [Credit Card Services Using the SCMP API Guide.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
24
24
  attr_accessor :type
25
25
 
26
26
  # Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**.
@@ -17,10 +17,10 @@ module CyberSource
17
17
  # EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. For details, see the `emv_request_combined_tags` field description in [Card-Present Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Retail_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) **Note** The information about EMV applies to credit card processing and PIN debit processing. All other information in this guide applies only to credit card processing. PIN debit processing is available only on FDC Nashville Global. **Note** For information about the individual tags, see the “Application Specification” section in the EMV 4.3 Specifications: http://emvco.com **Important** The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, and six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. **Important** For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram
18
18
  attr_accessor :tags
19
19
 
20
- # Entity or service that provided the validation results returned in **chipValidationResult**. Possible values: - **02**: MasterCard on-behalf pre-validation service (The MasterCard authorization platform validated the M/Chip cryptogram before the authorization request reached the issuer.) - **03**: MasterCard on-behalf stand-in service (The MasterCard authorization platform validated the M/Chip cryptogram because the issuer was not available.) - **50**: Issuer - **90**: Chip fall-back transaction downgrade process (The chip could not be read.) This field is returned only for NFC payment network tokenization transactions with MasterCard. **Note** No CyberSource through VisaNet acquirers support EMV at this time.
20
+ # Entity or service that provided the validation results returned in `chipValidationResult`. Possible values: - `02`: MasterCard on-behalf pre-validation service (The MasterCard authorization platform validated the M/Chip cryptogram before the authorization request reached the issuer.) - `03`: MasterCard on-behalf stand-in service (The MasterCard authorization platform validated the M/Chip cryptogram because the issuer was not available.) - `50`: Issuer - `90`: Chip fall-back transaction downgrade process (The chip could not be read.) This field is returned only for NFC payment network tokenization transactions with MasterCard. **Note** No CyberSource through VisaNet acquirers support EMV at this time.
21
21
  attr_accessor :chip_validation_type
22
22
 
23
- # Cryptogram validation results returned by the entity or service specified in **chipValidationType**. Possible values: - **A**: Application cryptogram is valid, but the application transaction counter (ATC) is outside allowed range. (A large jump in ATC values may indicate data copying or other fraud.) - **C**: Chip validation was completed successfully. - **E**: Application cryptogram is valid but the ATC indicates possible replay fraud. - **F**: Format error in the chip data. - **G**: Application cryptogram is valid but is not a valid authorization request cryptogram (ARQC). - **I**: Application cryptogram is invalid. - **T**: Application cryptogram is valid but terminal verification results (TVR) or card verification results (CVR) are invalid. - **U**: Application cryptogram could not be validated because of a technical error. This field is returned only for NFC payment network tokenization transactions with MasterCard. **Note** No CyberSource through VisaNet acquirers support EMV at this time.
23
+ # Cryptogram validation results returned by the entity or service specified in `chipValidationType`. Possible values: - `A`: Application cryptogram is valid, but the application transaction counter (ATC) is outside allowed range. (A large jump in ATC values may indicate data copying or other fraud.) - `C`: Chip validation was completed successfully. - `E`: Application cryptogram is valid but the ATC indicates possible replay fraud. - `F`: Format error in the chip data. - `G`: Application cryptogram is valid but is not a valid authorization request cryptogram (ARQC). - `I`: Application cryptogram is invalid. - `T`: Application cryptogram is valid but terminal verification results (TVR) or card verification results (CVR) are invalid. - `U`: Application cryptogram could not be validated because of a technical error. This field is returned only for NFC payment network tokenization transactions with MasterCard. **Note** No CyberSource through VisaNet acquirers support EMV at this time.
24
24
  attr_accessor :chip_validation_result
25
25
 
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -70,10 +70,6 @@ module CyberSource
70
70
  invalid_properties.push('invalid value for "locality", the character length must be smaller than or equal to 13.')
71
71
  end
72
72
 
73
- if !@country.nil? && @country.to_s.length > 2
74
- invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 2.')
75
- end
76
-
77
73
  invalid_properties
78
74
  end
79
75
 
@@ -81,7 +77,6 @@ module CyberSource
81
77
  # @return true if the model is valid
82
78
  def valid?
83
79
  return false if !@locality.nil? && @locality.to_s.length > 13
84
- return false if !@country.nil? && @country.to_s.length > 2
85
80
  true
86
81
  end
87
82
 
@@ -95,16 +90,6 @@ module CyberSource
95
90
  @locality = locality
96
91
  end
97
92
 
98
- # Custom attribute writer method with validation
99
- # @param [Object] country Value to be assigned
100
- def country=(country)
101
- if !country.nil? && country.to_s.length > 2
102
- fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 2.'
103
- end
104
-
105
- @country = country
106
- end
107
-
108
93
  # Checks equality by comparing each attribute.
109
94
  # @param [Object] Object to be compared
110
95
  def ==(o)
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2creditsProcessingInformation
17
- # Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here.
17
+ # Type of transaction. Some payment card companies use this information when determining discount rates. #### Ingenico ePayments Ingenico ePayments was previously called _Global Collect_. When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value listed in \"Commerce Indicators\" section of [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### Payer Authentication Transactions For the possible values and requirements, see \"Payer Authentication\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### Payouts OCT (Original Credit Transaction) Value for an OCT transaction: - `internet` For details, see the `e_commerce_indicator` field description in [Payouts Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/payouts_SCMP/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### Other Types of Transactions For details, see \"Commerce Indicators\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
18
18
  attr_accessor :commerce_indicator
19
19
 
20
20
  # Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. Contact CyberSource Customer Support to get the value for this field.
@@ -38,7 +38,7 @@ module CyberSource
38
38
  # Set this field to 3 to indicate that the request includes Level III data.
39
39
  attr_accessor :purchase_level
40
40
 
41
- # Flag that indicates that the transaction includes airline data or restaurant data. This field must be set to `airline` in order for airline data to be sent to the processor. For example, if this field is not set to airline or is not included in the request, CyberSource does not send airline data to the processor. You must set this field to `restaurant` in order for restaurant data to be sent to the processor. When this field is not set to restaurant or is not included in the request, CyberSource does not send restaurant data to the processor. Possible Values: - **airline** - **restaurant**
41
+ # Flag that indicates whether the transaction includes airline or restaurant data. To send the data in a transaction request to the processor, you must set this field to `airline` or `restaurant`. **Note** If you do not set this field to one of the possible values, CyberSource does not send any data to the processor. Possible Values: - `airline` - `restaurant`
42
42
  attr_accessor :industry_data_type
43
43
 
44
44
  attr_accessor :recurring_options
@@ -35,7 +35,7 @@ module CyberSource
35
35
  # Partial postal code for the sub-merchant’s address. For processor-specific details, see `submerchant_postal_code` request field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### CyberSource through VisaNet The value for this field does not map to the TC 33 capture file5. #### FDC Compass This value must consist of uppercase characters.
36
36
  attr_accessor :postal_code
37
37
 
38
- # Sub-merchant’s country. Use the two-character ISO Standard Country Codes. #### CyberSource through VisaNet The value for this field does not map to the TC 33 capture file. #### FDC Compass This value must consist of uppercase characters. See \"Aggregator Support,\" page 101.
38
+ # Sub-merchant’s country. Use the two-character ISO Standard Country Codes. #### CyberSource through VisaNet The value for this field does not map to the TC 33 capture file. #### FDC Compass This value must consist of uppercase characters. For details, see the `submerchant_country` request-level field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
39
39
  attr_accessor :country
40
40
 
41
41
  # Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 #### CyberSource through VisaNet With American Express, the value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCRB - Position: 25-64 - Field: American Express Seller E-mail Address **Note** The TC 33 Capture file contains information about the purchases and refunds that a merchant submits to CyberSource. CyberSource through VisaNet creates the TC 33 Capture file at the end of the day and sends it to the merchant’s acquirer, who uses this information to facilitate end-of-day clearing processing with payment card companies.
@@ -153,6 +153,22 @@ module CyberSource
153
153
  invalid_properties.push('invalid value for "total_count", must be smaller than or equal to 99.')
154
154
  end
155
155
 
156
+ if !@first_installment_date.nil? && @first_installment_date.to_s.length > 6
157
+ invalid_properties.push('invalid value for "first_installment_date", the character length must be smaller than or equal to 6.')
158
+ end
159
+
160
+ if !@invoice_data.nil? && @invoice_data.to_s.length > 20
161
+ invalid_properties.push('invalid value for "invoice_data", the character length must be smaller than or equal to 20.')
162
+ end
163
+
164
+ if !@payment_type.nil? && @payment_type.to_s.length > 1
165
+ invalid_properties.push('invalid value for "payment_type", the character length must be smaller than or equal to 1.')
166
+ end
167
+
168
+ if !@eligibility_inquiry.nil? && @eligibility_inquiry.to_s.length > 9
169
+ invalid_properties.push('invalid value for "eligibility_inquiry", the character length must be smaller than or equal to 9.')
170
+ end
171
+
156
172
  invalid_properties
157
173
  end
158
174
 
@@ -165,6 +181,10 @@ module CyberSource
165
181
  return false if !@sequence.nil? && @sequence > 99
166
182
  return false if !@total_amount.nil? && @total_amount.to_s.length > 12
167
183
  return false if !@total_count.nil? && @total_count > 99
184
+ return false if !@first_installment_date.nil? && @first_installment_date.to_s.length > 6
185
+ return false if !@invoice_data.nil? && @invoice_data.to_s.length > 20
186
+ return false if !@payment_type.nil? && @payment_type.to_s.length > 1
187
+ return false if !@eligibility_inquiry.nil? && @eligibility_inquiry.to_s.length > 9
168
188
  true
169
189
  end
170
190
 
@@ -228,6 +248,46 @@ module CyberSource
228
248
  @total_count = total_count
229
249
  end
230
250
 
251
+ # Custom attribute writer method with validation
252
+ # @param [Object] first_installment_date Value to be assigned
253
+ def first_installment_date=(first_installment_date)
254
+ if !first_installment_date.nil? && first_installment_date.to_s.length > 6
255
+ fail ArgumentError, 'invalid value for "first_installment_date", the character length must be smaller than or equal to 6.'
256
+ end
257
+
258
+ @first_installment_date = first_installment_date
259
+ end
260
+
261
+ # Custom attribute writer method with validation
262
+ # @param [Object] invoice_data Value to be assigned
263
+ def invoice_data=(invoice_data)
264
+ if !invoice_data.nil? && invoice_data.to_s.length > 20
265
+ fail ArgumentError, 'invalid value for "invoice_data", the character length must be smaller than or equal to 20.'
266
+ end
267
+
268
+ @invoice_data = invoice_data
269
+ end
270
+
271
+ # Custom attribute writer method with validation
272
+ # @param [Object] payment_type Value to be assigned
273
+ def payment_type=(payment_type)
274
+ if !payment_type.nil? && payment_type.to_s.length > 1
275
+ fail ArgumentError, 'invalid value for "payment_type", the character length must be smaller than or equal to 1.'
276
+ end
277
+
278
+ @payment_type = payment_type
279
+ end
280
+
281
+ # Custom attribute writer method with validation
282
+ # @param [Object] eligibility_inquiry Value to be assigned
283
+ def eligibility_inquiry=(eligibility_inquiry)
284
+ if !eligibility_inquiry.nil? && eligibility_inquiry.to_s.length > 9
285
+ fail ArgumentError, 'invalid value for "eligibility_inquiry", the character length must be smaller than or equal to 9.'
286
+ end
287
+
288
+ @eligibility_inquiry = eligibility_inquiry
289
+ end
290
+
231
291
  # Checks equality by comparing each attribute.
232
292
  # @param [Object] Object to be compared
233
293
  def ==(o)
@@ -38,6 +38,9 @@ module CyberSource
38
38
  # The state where the merchant is located. For the descriptions, used-by information, data types, and lengths for these fields, see the `merchant_descriptor_state` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
39
39
  attr_accessor :administrative_area
40
40
 
41
+ # Address of company's website provided by merchant
42
+ attr_accessor :url
43
+
41
44
  # Attribute mapping from ruby-style variable name to JSON key.
42
45
  def self.attribute_map
43
46
  {
@@ -48,7 +51,8 @@ module CyberSource
48
51
  :'locality' => :'locality',
49
52
  :'country' => :'country',
50
53
  :'postal_code' => :'postalCode',
51
- :'administrative_area' => :'administrativeArea'
54
+ :'administrative_area' => :'administrativeArea',
55
+ :'url' => :'url'
52
56
  }
53
57
  end
54
58
 
@@ -62,7 +66,8 @@ module CyberSource
62
66
  :'locality' => :'String',
63
67
  :'country' => :'String',
64
68
  :'postal_code' => :'String',
65
- :'administrative_area' => :'String'
69
+ :'administrative_area' => :'String',
70
+ :'url' => :'String'
66
71
  }
67
72
  end
68
73
 
@@ -105,6 +110,10 @@ module CyberSource
105
110
  if attributes.has_key?(:'administrativeArea')
106
111
  self.administrative_area = attributes[:'administrativeArea']
107
112
  end
113
+
114
+ if attributes.has_key?(:'url')
115
+ self.url = attributes[:'url']
116
+ end
108
117
  end
109
118
 
110
119
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -127,16 +136,12 @@ module CyberSource
127
136
  invalid_properties.push('invalid value for "locality", the character length must be smaller than or equal to 13.')
128
137
  end
129
138
 
130
- if !@country.nil? && @country.to_s.length > 2
131
- invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 2.')
132
- end
133
-
134
139
  if !@postal_code.nil? && @postal_code.to_s.length > 14
135
140
  invalid_properties.push('invalid value for "postal_code", the character length must be smaller than or equal to 14.')
136
141
  end
137
142
 
138
- if !@administrative_area.nil? && @administrative_area.to_s.length > 3
139
- invalid_properties.push('invalid value for "administrative_area", the character length must be smaller than or equal to 3.')
143
+ if !@url.nil? && @url.to_s.length > 255
144
+ invalid_properties.push('invalid value for "url", the character length must be smaller than or equal to 255.')
140
145
  end
141
146
 
142
147
  invalid_properties
@@ -149,9 +154,8 @@ module CyberSource
149
154
  return false if !@contact.nil? && @contact.to_s.length > 14
150
155
  return false if !@address1.nil? && @address1.to_s.length > 60
151
156
  return false if !@locality.nil? && @locality.to_s.length > 13
152
- return false if !@country.nil? && @country.to_s.length > 2
153
157
  return false if !@postal_code.nil? && @postal_code.to_s.length > 14
154
- return false if !@administrative_area.nil? && @administrative_area.to_s.length > 3
158
+ return false if !@url.nil? && @url.to_s.length > 255
155
159
  true
156
160
  end
157
161
 
@@ -195,16 +199,6 @@ module CyberSource
195
199
  @locality = locality
196
200
  end
197
201
 
198
- # Custom attribute writer method with validation
199
- # @param [Object] country Value to be assigned
200
- def country=(country)
201
- if !country.nil? && country.to_s.length > 2
202
- fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 2.'
203
- end
204
-
205
- @country = country
206
- end
207
-
208
202
  # Custom attribute writer method with validation
209
203
  # @param [Object] postal_code Value to be assigned
210
204
  def postal_code=(postal_code)
@@ -216,13 +210,13 @@ module CyberSource
216
210
  end
217
211
 
218
212
  # Custom attribute writer method with validation
219
- # @param [Object] administrative_area Value to be assigned
220
- def administrative_area=(administrative_area)
221
- if !administrative_area.nil? && administrative_area.to_s.length > 3
222
- fail ArgumentError, 'invalid value for "administrative_area", the character length must be smaller than or equal to 3.'
213
+ # @param [Object] url Value to be assigned
214
+ def url=(url)
215
+ if !url.nil? && url.to_s.length > 255
216
+ fail ArgumentError, 'invalid value for "url", the character length must be smaller than or equal to 255.'
223
217
  end
224
218
 
225
- @administrative_area = administrative_area
219
+ @url = url
226
220
  end
227
221
 
228
222
  # Checks equality by comparing each attribute.
@@ -237,7 +231,8 @@ module CyberSource
237
231
  locality == o.locality &&
238
232
  country == o.country &&
239
233
  postal_code == o.postal_code &&
240
- administrative_area == o.administrative_area
234
+ administrative_area == o.administrative_area &&
235
+ url == o.url
241
236
  end
242
237
 
243
238
  # @see the `==` method
@@ -249,7 +244,7 @@ module CyberSource
249
244
  # Calculates hash code according to all attributes.
250
245
  # @return [Fixnum] Hash code
251
246
  def hash
252
- [name, alternate_name, contact, address1, locality, country, postal_code, administrative_area].hash
247
+ [name, alternate_name, contact, address1, locality, country, postal_code, administrative_area, url].hash
253
248
  end
254
249
 
255
250
  # Builds the object from hash