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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
  3. data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +13 -4
  4. data/lib/cybersource_rest_client/models/create_payment_request.rb +13 -4
  5. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +13 -4
  6. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
  7. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information.rb +13 -4
  8. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_bill_to.rb +206 -0
  9. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +21 -5
  10. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +102 -6
  11. 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
  12. 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
  13. 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
  14. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +26 -1
  15. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
  16. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_location.rb +238 -0
  17. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +36 -4
  18. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +26 -4
  19. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +21 -5
  20. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +1 -1
  21. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
  22. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +14 -4
  23. data/lib/cybersource_rest_client/models/ptsv2payments_watchlist_screening_information.rb +215 -0
  24. data/lib/cybersource_rest_client/models/{riskv1exportcomplianceinquiries_export_compliance_information_weights.rb → ptsv2payments_watchlist_screening_information_weights.rb} +1 -1
  25. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +20 -4
  26. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +10 -1
  27. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb +1 -1
  28. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +1 -1
  29. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +26 -4
  30. data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +2 -2
  31. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information.rb +1 -1
  32. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +2 -2
  33. data/lib/cybersource_rest_client.rb +7 -4
  34. metadata +9 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7e401e44fe02ff210acad48913fb8e434c024f0274e1c325b69c8f49692de96
4
- data.tar.gz: 9dda987001ed8216d14e1e139e1f31889f19dbc9ba329af48dd47172e6512434
3
+ metadata.gz: df3d4d0c9c1787c11fccc299a763b66850f9aeadef9fe50c68f1abc73b0277b6
4
+ data.tar.gz: f463fe432173cba9b0cf4bab3017a061e3dea481c0581ab56fc2fb138794c60f
5
5
  SHA512:
6
- metadata.gz: 905b94eaaa550331d3df557685a9cbf09be9cdb46bb823508b35d4797c870933dfa34cee95ddfaf1ad528c262b070704ba51affb0b62d3a96e4023cfd6438629
7
- data.tar.gz: 6eefbba3bd42fadae429d1333ed786ed231002c1a8919f4b36ee89792db9d57bcb523af9e5c3a02841da9ec44fa84a9f25d72e2e7e5b16bda341d405e4199294
6
+ metadata.gz: 60c50b4dc970b7a30792e50b21640e91a5f3de965f017de26c583f93fd38f179d60882f2cc1ebc34dd11e9a2125882b332b5f92d770cdf4df8523570515a886e
7
+ data.tar.gz: c5f0f1087444ca68917b6c0e8ceb4f41c3d4632d0510b21c3f393e37e1b0775a24efe7a72ff705ffb1cba556cf752de948d2d208bbccedb0cd1015bb4c8b97a2
@@ -21,7 +21,7 @@ module CyberSource
21
21
  @api_client.set_configuration(config)
22
22
  end
23
23
  # Process a Payment
24
- # A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/api/developer-guides/dita-payments/GettingStarted.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation.
24
+ # A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/docs/cybs/en-us/payments/developer/ctv/rest/payments/payments-intro.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation.
25
25
  # @param create_payment_request
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [PtsV2PaymentsPost201Response]
@@ -31,7 +31,7 @@ module CyberSource
31
31
  end
32
32
 
33
33
  # Process a Payment
34
- # A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/api/developer-guides/dita-payments/GettingStarted.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation.
34
+ # A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/docs/cybs/en-us/payments/developer/ctv/rest/payments/payments-intro.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation.
35
35
  # @param create_payment_request
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(PtsV2PaymentsPost201Response, Fixnum, Hash)>] PtsV2PaymentsPost201Response data, response status code and response headers
@@ -42,6 +42,8 @@ module CyberSource
42
42
 
43
43
  attr_accessor :consumer_authentication_information
44
44
 
45
+ attr_accessor :watchlist_screening_information
46
+
45
47
  # Attribute mapping from ruby-style variable name to JSON key.
46
48
  def self.attribute_map
47
49
  {
@@ -58,7 +60,8 @@ module CyberSource
58
60
  :'merchant_information' => :'merchantInformation',
59
61
  :'acquirer_information' => :'acquirerInformation',
60
62
  :'recurring_payment_information' => :'recurringPaymentInformation',
61
- :'consumer_authentication_information' => :'consumerAuthenticationInformation'
63
+ :'consumer_authentication_information' => :'consumerAuthenticationInformation',
64
+ :'watchlist_screening_information' => :'watchlistScreeningInformation'
62
65
  }
63
66
  end
64
67
 
@@ -78,7 +81,8 @@ module CyberSource
78
81
  :'merchant_information' => :'Riskv1decisionsMerchantInformation',
79
82
  :'acquirer_information' => :'Ptsv2paymentsAcquirerInformation',
80
83
  :'recurring_payment_information' => :'Ptsv2paymentsRecurringPaymentInformation',
81
- :'consumer_authentication_information' => :'Riskv1decisionsConsumerAuthenticationInformation'
84
+ :'consumer_authentication_information' => :'Riskv1decisionsConsumerAuthenticationInformation',
85
+ :'watchlist_screening_information' => :'Ptsv2paymentsWatchlistScreeningInformation'
82
86
  }
83
87
  end
84
88
 
@@ -147,6 +151,10 @@ module CyberSource
147
151
  if attributes.has_key?(:'consumerAuthenticationInformation')
148
152
  self.consumer_authentication_information = attributes[:'consumerAuthenticationInformation']
149
153
  end
154
+
155
+ if attributes.has_key?(:'watchlistScreeningInformation')
156
+ self.watchlist_screening_information = attributes[:'watchlistScreeningInformation']
157
+ end
150
158
  end
151
159
 
152
160
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -180,7 +188,8 @@ module CyberSource
180
188
  merchant_information == o.merchant_information &&
181
189
  acquirer_information == o.acquirer_information &&
182
190
  recurring_payment_information == o.recurring_payment_information &&
183
- consumer_authentication_information == o.consumer_authentication_information
191
+ consumer_authentication_information == o.consumer_authentication_information &&
192
+ watchlist_screening_information == o.watchlist_screening_information
184
193
  end
185
194
 
186
195
  # @see the `==` method
@@ -192,7 +201,7 @@ module CyberSource
192
201
  # Calculates hash code according to all attributes.
193
202
  # @return [Fixnum] Hash code
194
203
  def hash
195
- [client_reference_information, processor_information, processing_information, payment_information, order_information, buyer_information, device_information, risk_information, travel_information, merchant_defined_information, merchant_information, acquirer_information, recurring_payment_information, consumer_authentication_information].hash
204
+ [client_reference_information, processor_information, processing_information, payment_information, order_information, buyer_information, device_information, risk_information, travel_information, merchant_defined_information, merchant_information, acquirer_information, recurring_payment_information, consumer_authentication_information, watchlist_screening_information].hash
196
205
  end
197
206
 
198
207
  # Builds the object from hash
@@ -61,6 +61,8 @@ module CyberSource
61
61
 
62
62
  attr_accessor :recurring_payment_information
63
63
 
64
+ attr_accessor :watchlist_screening_information
65
+
64
66
  # Attribute mapping from ruby-style variable name to JSON key.
65
67
  def self.attribute_map
66
68
  {
@@ -86,7 +88,8 @@ module CyberSource
86
88
  :'processor_information' => :'processorInformation',
87
89
  :'risk_information' => :'riskInformation',
88
90
  :'acquirer_information' => :'acquirerInformation',
89
- :'recurring_payment_information' => :'recurringPaymentInformation'
91
+ :'recurring_payment_information' => :'recurringPaymentInformation',
92
+ :'watchlist_screening_information' => :'watchlistScreeningInformation'
90
93
  }
91
94
  end
92
95
 
@@ -115,7 +118,8 @@ module CyberSource
115
118
  :'processor_information' => :'Ptsv2paymentsProcessorInformation',
116
119
  :'risk_information' => :'Ptsv2paymentsRiskInformation',
117
120
  :'acquirer_information' => :'Ptsv2paymentsAcquirerInformation',
118
- :'recurring_payment_information' => :'Ptsv2paymentsRecurringPaymentInformation'
121
+ :'recurring_payment_information' => :'Ptsv2paymentsRecurringPaymentInformation',
122
+ :'watchlist_screening_information' => :'Ptsv2paymentsWatchlistScreeningInformation'
119
123
  }
120
124
  end
121
125
 
@@ -220,6 +224,10 @@ module CyberSource
220
224
  if attributes.has_key?(:'recurringPaymentInformation')
221
225
  self.recurring_payment_information = attributes[:'recurringPaymentInformation']
222
226
  end
227
+
228
+ if attributes.has_key?(:'watchlistScreeningInformation')
229
+ self.watchlist_screening_information = attributes[:'watchlistScreeningInformation']
230
+ end
223
231
  end
224
232
 
225
233
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -262,7 +270,8 @@ module CyberSource
262
270
  processor_information == o.processor_information &&
263
271
  risk_information == o.risk_information &&
264
272
  acquirer_information == o.acquirer_information &&
265
- recurring_payment_information == o.recurring_payment_information
273
+ recurring_payment_information == o.recurring_payment_information &&
274
+ watchlist_screening_information == o.watchlist_screening_information
266
275
  end
267
276
 
268
277
  # @see the `==` method
@@ -274,7 +283,7 @@ module CyberSource
274
283
  # Calculates hash code according to all attributes.
275
284
  # @return [Fixnum] Hash code
276
285
  def hash
277
- [client_reference_information, processing_information, issuer_information, payment_information, order_information, buyer_information, recipient_information, device_information, merchant_information, aggregator_information, consumer_authentication_information, point_of_sale_information, merchant_defined_information, installment_information, travel_information, health_care_information, promotion_information, token_information, invoice_details, processor_information, risk_information, acquirer_information, recurring_payment_information].hash
286
+ [client_reference_information, processing_information, issuer_information, payment_information, order_information, buyer_information, recipient_information, device_information, merchant_information, aggregator_information, consumer_authentication_information, point_of_sale_information, merchant_defined_information, installment_information, travel_information, health_care_information, promotion_information, token_information, invoice_details, processor_information, risk_information, acquirer_information, recurring_payment_information, watchlist_screening_information].hash
278
287
  end
279
288
 
280
289
  # Builds the object from hash
@@ -58,6 +58,8 @@ module CyberSource
58
58
 
59
59
  attr_accessor :consumer_authentication_information
60
60
 
61
+ attr_accessor :watchlist_screening_information
62
+
61
63
  # Attribute mapping from ruby-style variable name to JSON key.
62
64
  def self.attribute_map
63
65
  {
@@ -80,7 +82,8 @@ module CyberSource
80
82
  :'token_information' => :'tokenInformation',
81
83
  :'buyer_information' => :'buyerInformation',
82
84
  :'risk_information' => :'riskInformation',
83
- :'consumer_authentication_information' => :'consumerAuthenticationInformation'
85
+ :'consumer_authentication_information' => :'consumerAuthenticationInformation',
86
+ :'watchlist_screening_information' => :'watchlistScreeningInformation'
84
87
  }
85
88
  end
86
89
 
@@ -106,7 +109,8 @@ module CyberSource
106
109
  :'token_information' => :'PtsV2PaymentsPost201ResponseTokenInformation',
107
110
  :'buyer_information' => :'PtsV2PaymentsPost201ResponseBuyerInformation',
108
111
  :'risk_information' => :'PtsV2PaymentsPost201ResponseRiskInformation',
109
- :'consumer_authentication_information' => :'PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation'
112
+ :'consumer_authentication_information' => :'PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation',
113
+ :'watchlist_screening_information' => :'PtsV2PaymentsPost201ResponseWatchlistScreeningInformation'
110
114
  }
111
115
  end
112
116
 
@@ -197,6 +201,10 @@ module CyberSource
197
201
  if attributes.has_key?(:'consumerAuthenticationInformation')
198
202
  self.consumer_authentication_information = attributes[:'consumerAuthenticationInformation']
199
203
  end
204
+
205
+ if attributes.has_key?(:'watchlistScreeningInformation')
206
+ self.watchlist_screening_information = attributes[:'watchlistScreeningInformation']
207
+ end
200
208
  end
201
209
 
202
210
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -248,7 +256,8 @@ module CyberSource
248
256
  token_information == o.token_information &&
249
257
  buyer_information == o.buyer_information &&
250
258
  risk_information == o.risk_information &&
251
- consumer_authentication_information == o.consumer_authentication_information
259
+ consumer_authentication_information == o.consumer_authentication_information &&
260
+ watchlist_screening_information == o.watchlist_screening_information
252
261
  end
253
262
 
254
263
  # @see the `==` method
@@ -260,7 +269,7 @@ module CyberSource
260
269
  # Calculates hash code according to all attributes.
261
270
  # @return [Fixnum] Hash code
262
271
  def hash
263
- [_links, id, submit_time_utc, status, reconciliation_id, error_information, client_reference_information, processing_information, processor_information, issuer_information, payment_account_information, payment_information, payment_insights_information, order_information, point_of_sale_information, installment_information, token_information, buyer_information, risk_information, consumer_authentication_information].hash
272
+ [_links, id, submit_time_utc, status, reconciliation_id, error_information, client_reference_information, processing_information, processor_information, issuer_information, payment_account_information, payment_information, payment_insights_information, order_information, point_of_sale_information, installment_information, token_information, buyer_information, risk_information, consumer_authentication_information, watchlist_screening_information].hash
264
273
  end
265
274
 
266
275
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class PtsV2PaymentsPost201ResponseErrorInformation
17
- # The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD - PENDING_AUTHENTICATION - ACH_VERIFICATION_FAILED - DECISION_PROFILE_REVIEW - CONSUMER_AUTHENTICATION_REQUIRED - CONSUMER_AUTHENTICATION_FAILED - ALLOWABLE_PIN_RETRIES_EXCEEDED - PROCESSOR_ERROR
17
+ # The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD - PENDING_AUTHENTICATION - ACH_VERIFICATION_FAILED - DECISION_PROFILE_REVIEW - CONSUMER_AUTHENTICATION_REQUIRED - CONSUMER_AUTHENTICATION_FAILED - ALLOWABLE_PIN_RETRIES_EXCEEDED - PROCESSOR_ERROR - CUSTOMER_WATCHLIST_MATCH - ADDRESS_COUNTRY_WATCHLIST_MATCH - EMAIL_COUNTRY_WATCHLIST_MATCH - IP_COUNTRY_WATCHLIST_MATCH - INVALID_MERCHANT_CONFIGURATION
18
18
  attr_accessor :reason
19
19
 
20
20
  # The detail message related to the status and reason listed above.
@@ -20,12 +20,15 @@ module CyberSource
20
20
 
21
21
  attr_accessor :reward_points_details
22
22
 
23
+ attr_accessor :bill_to
24
+
23
25
  # Attribute mapping from ruby-style variable name to JSON key.
24
26
  def self.attribute_map
25
27
  {
26
28
  :'amount_details' => :'amountDetails',
27
29
  :'invoice_details' => :'invoiceDetails',
28
- :'reward_points_details' => :'rewardPointsDetails'
30
+ :'reward_points_details' => :'rewardPointsDetails',
31
+ :'bill_to' => :'billTo'
29
32
  }
30
33
  end
31
34
 
@@ -34,7 +37,8 @@ module CyberSource
34
37
  {
35
38
  :'amount_details' => :'PtsV2PaymentsPost201ResponseOrderInformationAmountDetails',
36
39
  :'invoice_details' => :'PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails',
37
- :'reward_points_details' => :'PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails'
40
+ :'reward_points_details' => :'PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails',
41
+ :'bill_to' => :'PtsV2PaymentsPost201ResponseOrderInformationBillTo'
38
42
  }
39
43
  end
40
44
 
@@ -57,6 +61,10 @@ module CyberSource
57
61
  if attributes.has_key?(:'rewardPointsDetails')
58
62
  self.reward_points_details = attributes[:'rewardPointsDetails']
59
63
  end
64
+
65
+ if attributes.has_key?(:'billTo')
66
+ self.bill_to = attributes[:'billTo']
67
+ end
60
68
  end
61
69
 
62
70
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -79,7 +87,8 @@ module CyberSource
79
87
  self.class == o.class &&
80
88
  amount_details == o.amount_details &&
81
89
  invoice_details == o.invoice_details &&
82
- reward_points_details == o.reward_points_details
90
+ reward_points_details == o.reward_points_details &&
91
+ bill_to == o.bill_to
83
92
  end
84
93
 
85
94
  # @see the `==` method
@@ -91,7 +100,7 @@ module CyberSource
91
100
  # Calculates hash code according to all attributes.
92
101
  # @return [Fixnum] Hash code
93
102
  def hash
94
- [amount_details, invoice_details, reward_points_details].hash
103
+ [amount_details, invoice_details, reward_points_details, bill_to].hash
95
104
  end
96
105
 
97
106
  # Builds the object from hash
@@ -0,0 +1,206 @@
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 PtsV2PaymentsPost201ResponseOrderInformationBillTo
17
+ # #### Visa Platform Connect Contains one of the following values that will identify the phone number result code in the account verification response message: 'VERIFIED' - Customer verified 'UNVERIFIED' - Customer not verified 'FAILED' - Customer verification failed
18
+ attr_accessor :alternate_phone_number_verification_status
19
+
20
+ # #### Visa Platform Connect Contains one of the following values that will identify the phone number result code in the account verification response message: 'VERIFIED' - Customer verified 'UNVERIFIED' - Customer not verified 'FAILED' - Customer verification failed
21
+ attr_accessor :alternate_email_verification_status
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'alternate_phone_number_verification_status' => :'alternatePhoneNumberVerificationStatus',
27
+ :'alternate_email_verification_status' => :'alternateEmailVerificationStatus'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.swagger_types
33
+ {
34
+ :'alternate_phone_number_verification_status' => :'String',
35
+ :'alternate_email_verification_status' => :'String'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
+
47
+ if attributes.has_key?(:'alternatePhoneNumberVerificationStatus')
48
+ self.alternate_phone_number_verification_status = attributes[:'alternatePhoneNumberVerificationStatus']
49
+ end
50
+
51
+ if attributes.has_key?(:'alternateEmailVerificationStatus')
52
+ self.alternate_email_verification_status = attributes[:'alternateEmailVerificationStatus']
53
+ end
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properties with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ true
67
+ end
68
+
69
+ # Custom attribute writer method with validation
70
+ # @param [Object] alternate_phone_number_verification_status Value to be assigned
71
+ def alternate_phone_number_verification_status=(alternate_phone_number_verification_status)
72
+ @alternate_phone_number_verification_status = alternate_phone_number_verification_status
73
+ end
74
+
75
+ # Custom attribute writer method with validation
76
+ # @param [Object] alternate_email_verification_status Value to be assigned
77
+ def alternate_email_verification_status=(alternate_email_verification_status)
78
+ @alternate_email_verification_status = alternate_email_verification_status
79
+ end
80
+
81
+ # Checks equality by comparing each attribute.
82
+ # @param [Object] Object to be compared
83
+ def ==(o)
84
+ return true if self.equal?(o)
85
+ self.class == o.class &&
86
+ alternate_phone_number_verification_status == o.alternate_phone_number_verification_status &&
87
+ alternate_email_verification_status == o.alternate_email_verification_status
88
+ end
89
+
90
+ # @see the `==` method
91
+ # @param [Object] Object to be compared
92
+ def eql?(o)
93
+ self == o
94
+ end
95
+
96
+ # Calculates hash code according to all attributes.
97
+ # @return [Fixnum] Hash code
98
+ def hash
99
+ [alternate_phone_number_verification_status, alternate_email_verification_status].hash
100
+ end
101
+
102
+ # Builds the object from hash
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ # @return [Object] Returns the model itself
105
+ def build_from_hash(attributes)
106
+ return nil unless attributes.is_a?(Hash)
107
+ self.class.swagger_types.each_pair do |key, type|
108
+ if type =~ /\AArray<(.*)>/i
109
+ # check to ensure the input is an array given that the the attribute
110
+ # is documented as an array but the input is not
111
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
112
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
113
+ end
114
+ elsif !attributes[self.class.attribute_map[key]].nil?
115
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
116
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
117
+ end
118
+
119
+ self
120
+ end
121
+
122
+ # Deserializes the data based on type
123
+ # @param string type Data type
124
+ # @param string value Value to be deserialized
125
+ # @return [Object] Deserialized data
126
+ def _deserialize(type, value)
127
+ case type.to_sym
128
+ when :DateTime
129
+ DateTime.parse(value)
130
+ when :Date
131
+ Date.parse(value)
132
+ when :String
133
+ value.to_s
134
+ when :Integer
135
+ value.to_i
136
+ when :Float
137
+ value.to_f
138
+ when :BOOLEAN
139
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
140
+ true
141
+ else
142
+ false
143
+ end
144
+ when :Object
145
+ # generic object (usually a Hash), return directly
146
+ value
147
+ when /\AArray<(?<inner_type>.+)>\z/
148
+ inner_type = Regexp.last_match[:inner_type]
149
+ value.map { |v| _deserialize(inner_type, v) }
150
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
151
+ k_type = Regexp.last_match[:k_type]
152
+ v_type = Regexp.last_match[:v_type]
153
+ {}.tap do |hash|
154
+ value.each do |k, v|
155
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
156
+ end
157
+ end
158
+ else # model
159
+ temp_model = CyberSource.const_get(type).new
160
+ temp_model.build_from_hash(value)
161
+ end
162
+ end
163
+
164
+ # Returns the string representation of the object
165
+ # @return [String] String presentation of the object
166
+ def to_s
167
+ to_hash.to_s
168
+ end
169
+
170
+ # to_body is an alias to to_hash (backward compatibility)
171
+ # @return [Hash] Returns the object in the form of hash
172
+ def to_body
173
+ to_hash
174
+ end
175
+
176
+ # Returns the object in the form of hash
177
+ # @return [Hash] Returns the object in the form of hash
178
+ def to_hash
179
+ hash = {}
180
+ self.class.attribute_map.each_pair do |attr, param|
181
+ value = self.send(attr)
182
+ next if value.nil?
183
+ hash[param] = _to_hash(value)
184
+ end
185
+ hash
186
+ end
187
+
188
+ # Outputs non-array value in the form of hash
189
+ # For object, use to_hash. Otherwise, just return the value
190
+ # @param [Object] value Any valid value
191
+ # @return [Hash] Returns the value in the form of hash
192
+ def _to_hash(value)
193
+ if value.is_a?(Array)
194
+ value.compact.map { |v| _to_hash(v) }
195
+ elsif value.is_a?(Hash)
196
+ {}.tap do |hash|
197
+ value.each { |k, v| hash[k] = _to_hash(v) }
198
+ end
199
+ elsif value.respond_to? :to_hash
200
+ value.to_hash
201
+ else
202
+ value
203
+ end
204
+ end
205
+ end
206
+ end
@@ -23,7 +23,7 @@ module CyberSource
23
23
  # Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay - '070': EFTPOS [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
24
24
  attr_accessor :type
25
25
 
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**. Returned by PIN debit credit or PIN debit purchase.
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**. Returned by PIN debit credit or PIN debit purchase. **Note** Merchants supported for **CyberSource through VisaNet**/**Visa Platform Connect** are advised not to use this field.
27
27
  attr_accessor :assurance_level
28
28
 
29
29
  # One of two possible meanings: - The two-digit month in which a token expires. - The two-digit month in which a card expires. Format: `MM` Possible values: `01` through `12` **NOTE** The meaning of this field is dependent on the payment processor that is returning the value in an authorization reply. Please see the processor-specific details below. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`01` through `12`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (`card_type=039`), if there is no expiration date on the card, use `12`.\\ **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Samsung Pay and Apple Pay Month in which the token expires. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. For processor-specific information, see the `customer_cc_expmo` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
@@ -35,6 +35,9 @@ module CyberSource
35
35
  # Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. **Note** This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. #### PIN debit Optional field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
36
36
  attr_accessor :requestor_id
37
37
 
38
+ # Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **Visa Platform Connect**
39
+ attr_accessor :assurance_method
40
+
38
41
  # Attribute mapping from ruby-style variable name to JSON key.
39
42
  def self.attribute_map
40
43
  {
@@ -44,7 +47,8 @@ module CyberSource
44
47
  :'assurance_level' => :'assuranceLevel',
45
48
  :'expiration_month' => :'expirationMonth',
46
49
  :'expiration_year' => :'expirationYear',
47
- :'requestor_id' => :'requestorId'
50
+ :'requestor_id' => :'requestorId',
51
+ :'assurance_method' => :'assuranceMethod'
48
52
  }
49
53
  end
50
54
 
@@ -57,7 +61,8 @@ module CyberSource
57
61
  :'assurance_level' => :'String',
58
62
  :'expiration_month' => :'String',
59
63
  :'expiration_year' => :'String',
60
- :'requestor_id' => :'String'
64
+ :'requestor_id' => :'String',
65
+ :'assurance_method' => :'String'
61
66
  }
62
67
  end
63
68
 
@@ -96,6 +101,10 @@ module CyberSource
96
101
  if attributes.has_key?(:'requestorId')
97
102
  self.requestor_id = attributes[:'requestorId']
98
103
  end
104
+
105
+ if attributes.has_key?(:'assuranceMethod')
106
+ self.assurance_method = attributes[:'assuranceMethod']
107
+ end
99
108
  end
100
109
 
101
110
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -147,6 +156,12 @@ module CyberSource
147
156
  @requestor_id = requestor_id
148
157
  end
149
158
 
159
+ # Custom attribute writer method with validation
160
+ # @param [Object] assurance_method Value to be assigned
161
+ def assurance_method=(assurance_method)
162
+ @assurance_method = assurance_method
163
+ end
164
+
150
165
  # Checks equality by comparing each attribute.
151
166
  # @param [Object] Object to be compared
152
167
  def ==(o)
@@ -158,7 +173,8 @@ module CyberSource
158
173
  assurance_level == o.assurance_level &&
159
174
  expiration_month == o.expiration_month &&
160
175
  expiration_year == o.expiration_year &&
161
- requestor_id == o.requestor_id
176
+ requestor_id == o.requestor_id &&
177
+ assurance_method == o.assurance_method
162
178
  end
163
179
 
164
180
  # @see the `==` method
@@ -170,7 +186,7 @@ module CyberSource
170
186
  # Calculates hash code according to all attributes.
171
187
  # @return [Fixnum] Hash code
172
188
  def hash
173
- [prefix, suffix, type, assurance_level, expiration_month, expiration_year, requestor_id].hash
189
+ [prefix, suffix, type, assurance_level, expiration_month, expiration_year, requestor_id, assurance_method].hash
174
190
  end
175
191
 
176
192
  # Builds the object from hash