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
@@ -105,6 +105,10 @@ module CyberSource
105
105
 
106
106
  attr_accessor :passenger
107
107
 
108
+ attr_accessor :allowed_export_countries
109
+
110
+ attr_accessor :restricted_export_countries
111
+
108
112
  # Attribute mapping from ruby-style variable name to JSON key.
109
113
  def self.attribute_map
110
114
  {
@@ -138,7 +142,9 @@ module CyberSource
138
142
  :'gift_card_currency' => :'giftCardCurrency',
139
143
  :'shipping_destination_types' => :'shippingDestinationTypes',
140
144
  :'gift' => :'gift',
141
- :'passenger' => :'passenger'
145
+ :'passenger' => :'passenger',
146
+ :'allowed_export_countries' => :'allowedExportCountries',
147
+ :'restricted_export_countries' => :'restrictedExportCountries'
142
148
  }
143
149
  end
144
150
 
@@ -175,7 +181,9 @@ module CyberSource
175
181
  :'gift_card_currency' => :'Integer',
176
182
  :'shipping_destination_types' => :'String',
177
183
  :'gift' => :'BOOLEAN',
178
- :'passenger' => :'Ptsv2paymentsOrderInformationPassenger'
184
+ :'passenger' => :'Ptsv2paymentsOrderInformationPassenger',
185
+ :'allowed_export_countries' => :'Array<String>',
186
+ :'restricted_export_countries' => :'Array<String>'
179
187
  }
180
188
  end
181
189
 
@@ -312,6 +320,18 @@ module CyberSource
312
320
  if attributes.has_key?(:'passenger')
313
321
  self.passenger = attributes[:'passenger']
314
322
  end
323
+
324
+ if attributes.has_key?(:'allowedExportCountries')
325
+ if (value = attributes[:'allowedExportCountries']).is_a?(Array)
326
+ self.allowed_export_countries = value
327
+ end
328
+ end
329
+
330
+ if attributes.has_key?(:'restrictedExportCountries')
331
+ if (value = attributes[:'restrictedExportCountries']).is_a?(Array)
332
+ self.restricted_export_countries = value
333
+ end
334
+ end
315
335
  end
316
336
 
317
337
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -500,7 +520,9 @@ module CyberSource
500
520
  gift_card_currency == o.gift_card_currency &&
501
521
  shipping_destination_types == o.shipping_destination_types &&
502
522
  gift == o.gift &&
503
- passenger == o.passenger
523
+ passenger == o.passenger &&
524
+ allowed_export_countries == o.allowed_export_countries &&
525
+ restricted_export_countries == o.restricted_export_countries
504
526
  end
505
527
 
506
528
  # @see the `==` method
@@ -512,7 +534,7 @@ module CyberSource
512
534
  # Calculates hash code according to all attributes.
513
535
  # @return [Fixnum] Hash code
514
536
  def hash
515
- [product_code, product_name, product_sku, quantity, unit_price, unit_of_measure, total_amount, tax_amount, tax_rate, tax_applied_after_discount, tax_status_indicator, tax_type_code, amount_includes_tax, type_of_supply, commodity_code, discount_amount, discount_applied, discount_rate, invoice_number, tax_details, fulfillment_type, weight, weight_identifier, weight_unit, reference_data_code, reference_data_number, product_description, gift_card_currency, shipping_destination_types, gift, passenger].hash
537
+ [product_code, product_name, product_sku, quantity, unit_price, unit_of_measure, total_amount, tax_amount, tax_rate, tax_applied_after_discount, tax_status_indicator, tax_type_code, amount_includes_tax, type_of_supply, commodity_code, discount_amount, discount_applied, discount_rate, invoice_number, tax_details, fulfillment_type, weight, weight_identifier, weight_unit, reference_data_code, reference_data_number, product_description, gift_card_currency, shipping_destination_types, gift, passenger, allowed_export_countries, restricted_export_countries].hash
516
538
  end
517
539
 
518
540
  # Builds the object from hash
@@ -35,7 +35,7 @@ module CyberSource
35
35
  # Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: For Rupay and In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
36
36
  attr_accessor :transaction_type
37
37
 
38
- # 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.
38
+ # 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.
39
39
  attr_accessor :assurance_level
40
40
 
41
41
  # Type of technology used in the device to store token data. Possible values: - `001`: Secure Element (SE). Smart card or memory with restricted access and encryption to prevent data tampering. For storing payment credentials, a SE is tested against a set of requirements defined by the payment networks. **Note** This field is supported only for _FDC Compass_. - 002: Host Card Emulation (HCE). Emulation of a smart card by using software to create a virtual and exact representation of the card. Sensitive data is stored in a database that is hosted in the cloud. For storing payment credentials, a database must meet very stringent security requirements that exceed PCI DSS. **Note** This field is supported only for _FDC Compass_.
@@ -47,6 +47,9 @@ module CyberSource
47
47
  # Indicates whether a CVN code was sent. Possible values: - `0` (default): CVN service not requested. This default value is used when you do not include `securityCode` field in the request. - `1` (default): CVN service requested and supported. This default value is used when you include `securityCode` field in the request. - `2`: CVN on credit card is illegible. - `9`: CVN was not imprinted on credit card. #### FDMS Nashville Required for American Express cards; otherwise, optional. #### TSYS Acquiring Solutions Optional if `pointOfSaleInformation.entryMode=keyed`; otherwise, not used. #### All other processors Optional.
48
48
  attr_accessor :security_code_indicator
49
49
 
50
+ # Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **Visa Platform Connect**
51
+ attr_accessor :assurance_method
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
  :'assurance_level' => :'assuranceLevel',
61
64
  :'storage_method' => :'storageMethod',
62
65
  :'security_code' => :'securityCode',
63
- :'security_code_indicator' => :'securityCodeIndicator'
66
+ :'security_code_indicator' => :'securityCodeIndicator',
67
+ :'assurance_method' => :'assuranceMethod'
64
68
  }
65
69
  end
66
70
 
@@ -77,7 +81,8 @@ module CyberSource
77
81
  :'assurance_level' => :'String',
78
82
  :'storage_method' => :'String',
79
83
  :'security_code' => :'String',
80
- :'security_code_indicator' => :'String'
84
+ :'security_code_indicator' => :'String',
85
+ :'assurance_method' => :'String'
81
86
  }
82
87
  end
83
88
 
@@ -132,6 +137,10 @@ module CyberSource
132
137
  if attributes.has_key?(:'securityCodeIndicator')
133
138
  self.security_code_indicator = attributes[:'securityCodeIndicator']
134
139
  end
140
+
141
+ if attributes.has_key?(:'assuranceMethod')
142
+ self.assurance_method = attributes[:'assuranceMethod']
143
+ end
135
144
  end
136
145
 
137
146
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -207,6 +216,12 @@ module CyberSource
207
216
  @security_code_indicator = security_code_indicator
208
217
  end
209
218
 
219
+ # Custom attribute writer method with validation
220
+ # @param [Object] assurance_method Value to be assigned
221
+ def assurance_method=(assurance_method)
222
+ @assurance_method = assurance_method
223
+ end
224
+
210
225
  # Checks equality by comparing each attribute.
211
226
  # @param [Object] Object to be compared
212
227
  def ==(o)
@@ -222,7 +237,8 @@ module CyberSource
222
237
  assurance_level == o.assurance_level &&
223
238
  storage_method == o.storage_method &&
224
239
  security_code == o.security_code &&
225
- security_code_indicator == o.security_code_indicator
240
+ security_code_indicator == o.security_code_indicator &&
241
+ assurance_method == o.assurance_method
226
242
  end
227
243
 
228
244
  # @see the `==` method
@@ -234,7 +250,7 @@ module CyberSource
234
250
  # Calculates hash code according to all attributes.
235
251
  # @return [Fixnum] Hash code
236
252
  def hash
237
- [number, expiration_month, expiration_year, type, cryptogram, requestor_id, transaction_type, assurance_level, storage_method, security_code, security_code_indicator].hash
253
+ [number, expiration_month, expiration_year, type, cryptogram, requestor_id, transaction_type, assurance_level, storage_method, security_code, security_code_indicator, assurance_method].hash
238
254
  end
239
255
 
240
256
  # Builds the object from hash
@@ -61,7 +61,7 @@ module CyberSource
61
61
  # Indicates whether the terminal can print or display messages. Possible values: - 1: Neither - 2: Print only - 3: Display only - 4: Print and display - 5: Merchant terminal supports purchase only approvals This field is supported for authorizations and credits only on the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX - VisaNet Optional field.
62
62
  attr_accessor :terminal_output_capability
63
63
 
64
- # Maximum PIN length that the terminal can capture. Possible values: - 0: No PIN capture capability - 1: PIN capture capability unknown - 2: PIN Pad down - 4: Four characters - 5: Five characters - 6: Six characters - 7: Seven characters - 8: Eight characters - 9: Nine characters - 10: Ten characters - 11: Eleven characters - 12: Twelve characters This field is supported for authorizations and credits only on the following processors: - American Express Direct - Credit Mutuel-CIC - OmniPay Direct - SIX Required field for authorization or credit of PIN transactions.
64
+ # Maximum PIN length that the terminal can capture. Possible values: - 0: No PIN capture capability - 1: PIN capture capability unknown - 2: PIN Pad down - 4: Four characters - 5: Five characters - 6: Six characters - 7: Seven characters - 8: Eight characters - 9: Nine characters - 10: Ten characters - 11: Eleven characters - 12: Twelve characters This field is supported for authorizations and credits only on the following processors: - American Express Direct - Credit Mutuel-CIC - OmniPay Direct - SIX - Visa Platform Connect Required field for authorization or credit of PIN transactions.
65
65
  attr_accessor :terminal_pin_capability
66
66
 
67
67
  # This field will contain the type of Pin Pad the terminal has. Possible values: - PCI-SPoC: Where the pin is being put on screen - PCI-PTS: Where the pin is being put on actual hardware pin pad
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsProcessingInformation
17
- # Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested.
17
+ # Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service.
18
18
  attr_accessor :action_list
19
19
 
20
20
  # Indicates whether to use the customer’s escrow agreement. Possible values: - `true`: yes, use the customer’s escrow agreement. - `false`: no, do not use the customer’s escrow agreement.
@@ -70,6 +70,9 @@ module CyberSource
70
70
  # This API field enables the merchant to indicate that a given transaction is Cash Advance. Cash advance or Cash disbursement functionality allows a merchant to dispense cash at a point of sale. It provides the ability of a POS system to act like an ATM. These terminals are typically seen in bank branches where customers can use their card and withdraw cash or at merchant locations where ATMs are sparse. Possible values: - `true` (Cash advance is supported) - `false` (default: cash advance is not supported)
71
71
  attr_accessor :cash_advance_indicator
72
72
 
73
+ # #### Visa Platform Connect Indicates split payment transaction. A split payment allows the use of two payment methods for a single transaction. Possible values: - `true` (split payment transaction is supported) - `false` (default: split payment transaction is not supported)
74
+ attr_accessor :split_payment_transaction
75
+
73
76
  # Attribute mapping from ruby-style variable name to JSON key.
74
77
  def self.attribute_map
75
78
  {
@@ -91,7 +94,8 @@ module CyberSource
91
94
  :'aggregated_auth_indicator' => :'aggregatedAuthIndicator',
92
95
  :'debt_recovery_indicator' => :'debtRecoveryIndicator',
93
96
  :'deferred_auth_indicator' => :'deferredAuthIndicator',
94
- :'cash_advance_indicator' => :'cashAdvanceIndicator'
97
+ :'cash_advance_indicator' => :'cashAdvanceIndicator',
98
+ :'split_payment_transaction' => :'splitPaymentTransaction'
95
99
  }
96
100
  end
97
101
 
@@ -116,7 +120,8 @@ module CyberSource
116
120
  :'aggregated_auth_indicator' => :'String',
117
121
  :'debt_recovery_indicator' => :'String',
118
122
  :'deferred_auth_indicator' => :'BOOLEAN',
119
- :'cash_advance_indicator' => :'BOOLEAN'
123
+ :'cash_advance_indicator' => :'BOOLEAN',
124
+ :'split_payment_transaction' => :'BOOLEAN'
120
125
  }
121
126
  end
122
127
 
@@ -209,6 +214,10 @@ module CyberSource
209
214
  if attributes.has_key?(:'cashAdvanceIndicator')
210
215
  self.cash_advance_indicator = attributes[:'cashAdvanceIndicator']
211
216
  end
217
+
218
+ if attributes.has_key?(:'splitPaymentTransaction')
219
+ self.split_payment_transaction = attributes[:'splitPaymentTransaction']
220
+ end
212
221
  end
213
222
 
214
223
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -277,7 +286,8 @@ module CyberSource
277
286
  aggregated_auth_indicator == o.aggregated_auth_indicator &&
278
287
  debt_recovery_indicator == o.debt_recovery_indicator &&
279
288
  deferred_auth_indicator == o.deferred_auth_indicator &&
280
- cash_advance_indicator == o.cash_advance_indicator
289
+ cash_advance_indicator == o.cash_advance_indicator &&
290
+ split_payment_transaction == o.split_payment_transaction
281
291
  end
282
292
 
283
293
  # @see the `==` method
@@ -289,7 +299,7 @@ module CyberSource
289
299
  # Calculates hash code according to all attributes.
290
300
  # @return [Fixnum] Hash code
291
301
  def hash
292
- [auth_type, pan_return_indicator, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type, redemption_inquiry, transportation_mode, aggregated_auth_indicator, debt_recovery_indicator, deferred_auth_indicator, cash_advance_indicator].hash
302
+ [auth_type, pan_return_indicator, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type, redemption_inquiry, transportation_mode, aggregated_auth_indicator, debt_recovery_indicator, deferred_auth_indicator, cash_advance_indicator, split_payment_transaction].hash
293
303
  end
294
304
 
295
305
  # Builds the object from hash
@@ -0,0 +1,215 @@
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 Ptsv2paymentsWatchlistScreeningInformation
17
+ # Parts of the customer’s information that must match with an entry in the DPL (denied parties list) before a match occurs. This field can contain one of the following values: - AND: (default) The customer’s name or company and the customer’s address must appear in the database. - OR: The customer’s name must appear in the database. - IGNORE: You want the service to detect a match only of the customer’s name or company but not of the address.
18
+ attr_accessor :address_operator
19
+
20
+ attr_accessor :weights
21
+
22
+ # Use this field to specify which list(s) you want checked with the request. The reply will include the list name as well as the response data. To check against multiple lists, enter multiple list codes separated by a caret (^). For more information, see \"Restricted and Denied Parties List,\" page 68.
23
+ attr_accessor :sanction_lists
24
+
25
+ # Indicates whether the transaction should proceed if there is a match. Possible values: - `true`: Transaction proceeds even when match is found in the Denied Parties List. The match is noted in the response. - `false`: Normal watchlist screening behavior occurs. (Transaction stops if a match to DPL occurs. Transaction proceeds if no match.)
26
+ attr_accessor :proceed_on_match
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'address_operator' => :'addressOperator',
32
+ :'weights' => :'weights',
33
+ :'sanction_lists' => :'sanctionLists',
34
+ :'proceed_on_match' => :'proceedOnMatch'
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'address_operator' => :'String',
42
+ :'weights' => :'Ptsv2paymentsWatchlistScreeningInformationWeights',
43
+ :'sanction_lists' => :'Array<String>',
44
+ :'proceed_on_match' => :'BOOLEAN'
45
+ }
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ return unless attributes.is_a?(Hash)
52
+
53
+ # convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
55
+
56
+ if attributes.has_key?(:'addressOperator')
57
+ self.address_operator = attributes[:'addressOperator']
58
+ end
59
+
60
+ if attributes.has_key?(:'weights')
61
+ self.weights = attributes[:'weights']
62
+ end
63
+
64
+ if attributes.has_key?(:'sanctionLists')
65
+ if (value = attributes[:'sanctionLists']).is_a?(Array)
66
+ self.sanction_lists = value
67
+ end
68
+ end
69
+
70
+ if attributes.has_key?(:'proceedOnMatch')
71
+ self.proceed_on_match = attributes[:'proceedOnMatch']
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ address_operator == o.address_operator &&
94
+ weights == o.weights &&
95
+ sanction_lists == o.sanction_lists &&
96
+ proceed_on_match == o.proceed_on_match
97
+ end
98
+
99
+ # @see the `==` method
100
+ # @param [Object] Object to be compared
101
+ def eql?(o)
102
+ self == o
103
+ end
104
+
105
+ # Calculates hash code according to all attributes.
106
+ # @return [Fixnum] Hash code
107
+ def hash
108
+ [address_operator, weights, sanction_lists, proceed_on_match].hash
109
+ end
110
+
111
+ # Builds the object from hash
112
+ # @param [Hash] attributes Model attributes in the form of hash
113
+ # @return [Object] Returns the model itself
114
+ def build_from_hash(attributes)
115
+ return nil unless attributes.is_a?(Hash)
116
+ self.class.swagger_types.each_pair do |key, type|
117
+ if type =~ /\AArray<(.*)>/i
118
+ # check to ensure the input is an array given that the the attribute
119
+ # is documented as an array but the input is not
120
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
121
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
122
+ end
123
+ elsif !attributes[self.class.attribute_map[key]].nil?
124
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
125
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
126
+ end
127
+
128
+ self
129
+ end
130
+
131
+ # Deserializes the data based on type
132
+ # @param string type Data type
133
+ # @param string value Value to be deserialized
134
+ # @return [Object] Deserialized data
135
+ def _deserialize(type, value)
136
+ case type.to_sym
137
+ when :DateTime
138
+ DateTime.parse(value)
139
+ when :Date
140
+ Date.parse(value)
141
+ when :String
142
+ value.to_s
143
+ when :Integer
144
+ value.to_i
145
+ when :Float
146
+ value.to_f
147
+ when :BOOLEAN
148
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
149
+ true
150
+ else
151
+ false
152
+ end
153
+ when :Object
154
+ # generic object (usually a Hash), return directly
155
+ value
156
+ when /\AArray<(?<inner_type>.+)>\z/
157
+ inner_type = Regexp.last_match[:inner_type]
158
+ value.map { |v| _deserialize(inner_type, v) }
159
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
160
+ k_type = Regexp.last_match[:k_type]
161
+ v_type = Regexp.last_match[:v_type]
162
+ {}.tap do |hash|
163
+ value.each do |k, v|
164
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
165
+ end
166
+ end
167
+ else # model
168
+ temp_model = CyberSource.const_get(type).new
169
+ temp_model.build_from_hash(value)
170
+ end
171
+ end
172
+
173
+ # Returns the string representation of the object
174
+ # @return [String] String presentation of the object
175
+ def to_s
176
+ to_hash.to_s
177
+ end
178
+
179
+ # to_body is an alias to to_hash (backward compatibility)
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_body
182
+ to_hash
183
+ end
184
+
185
+ # Returns the object in the form of hash
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_hash
188
+ hash = {}
189
+ self.class.attribute_map.each_pair do |attr, param|
190
+ value = self.send(attr)
191
+ next if value.nil?
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end
214
+ end
215
+ end
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class Riskv1exportcomplianceinquiriesExportComplianceInformationWeights
16
+ class Ptsv2paymentsWatchlistScreeningInformationWeights
17
17
  # Degree of correlation between a customer’s address and an entry in the DPL before a match occurs. This field can contain one of the following values: - exact: The address must be identical to the entry in the DPL. - high: (default) The address cannot differ significantly from the entry in the DPL. - medium: The address can differ slightly more from the entry in the DPL. - low: The address can differ significantly from the entry in the DPL.
18
18
  attr_accessor :address
19
19
 
@@ -26,13 +26,17 @@ module CyberSource
26
26
  # Visa-generated transaction identifier (TID) that is unique for each original authorization and financial request. * Applicable only for CTV for Payouts.
27
27
  attr_accessor :account_funding_reference_id
28
28
 
29
+ # #### Visa Platform Connect Contains date and time value indicating scheduled deferred OCT. Format is : 'yyyyMMddHHmm', where 'YYYY' = year 'MM' = month 'DD' = day 'hh' = hour 'mm' = minutes
30
+ attr_accessor :deferred_date_time
31
+
29
32
  # Attribute mapping from ruby-style variable name to JSON key.
30
33
  def self.attribute_map
31
34
  {
32
35
  :'acquirer_merchant_id' => :'acquirerMerchantId',
33
36
  :'acquirer_bin' => :'acquirerBin',
34
37
  :'retrieval_reference_number' => :'retrievalReferenceNumber',
35
- :'account_funding_reference_id' => :'accountFundingReferenceId'
38
+ :'account_funding_reference_id' => :'accountFundingReferenceId',
39
+ :'deferred_date_time' => :'deferredDateTime'
36
40
  }
37
41
  end
38
42
 
@@ -42,7 +46,8 @@ module CyberSource
42
46
  :'acquirer_merchant_id' => :'String',
43
47
  :'acquirer_bin' => :'String',
44
48
  :'retrieval_reference_number' => :'String',
45
- :'account_funding_reference_id' => :'String'
49
+ :'account_funding_reference_id' => :'String',
50
+ :'deferred_date_time' => :'String'
46
51
  }
47
52
  end
48
53
 
@@ -69,6 +74,10 @@ module CyberSource
69
74
  if attributes.has_key?(:'accountFundingReferenceId')
70
75
  self.account_funding_reference_id = attributes[:'accountFundingReferenceId']
71
76
  end
77
+
78
+ if attributes.has_key?(:'deferredDateTime')
79
+ self.deferred_date_time = attributes[:'deferredDateTime']
80
+ end
72
81
  end
73
82
 
74
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -108,6 +117,12 @@ module CyberSource
108
117
  @account_funding_reference_id = account_funding_reference_id
109
118
  end
110
119
 
120
+ # Custom attribute writer method with validation
121
+ # @param [Object] deferred_date_time Value to be assigned
122
+ def deferred_date_time=(deferred_date_time)
123
+ @deferred_date_time = deferred_date_time
124
+ end
125
+
111
126
  # Checks equality by comparing each attribute.
112
127
  # @param [Object] Object to be compared
113
128
  def ==(o)
@@ -116,7 +131,8 @@ module CyberSource
116
131
  acquirer_merchant_id == o.acquirer_merchant_id &&
117
132
  acquirer_bin == o.acquirer_bin &&
118
133
  retrieval_reference_number == o.retrieval_reference_number &&
119
- account_funding_reference_id == o.account_funding_reference_id
134
+ account_funding_reference_id == o.account_funding_reference_id &&
135
+ deferred_date_time == o.deferred_date_time
120
136
  end
121
137
 
122
138
  # @see the `==` method
@@ -128,7 +144,7 @@ module CyberSource
128
144
  # Calculates hash code according to all attributes.
129
145
  # @return [Fixnum] Hash code
130
146
  def hash
131
- [acquirer_merchant_id, acquirer_bin, retrieval_reference_number, account_funding_reference_id].hash
147
+ [acquirer_merchant_id, acquirer_bin, retrieval_reference_number, account_funding_reference_id, deferred_date_time].hash
132
148
  end
133
149
 
134
150
  # Builds the object from hash
@@ -38,6 +38,8 @@ module CyberSource
38
38
 
39
39
  attr_accessor :consumer_authentication_information
40
40
 
41
+ attr_accessor :watchlist_screening_information
42
+
41
43
  attr_accessor :error_information
42
44
 
43
45
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -53,6 +55,7 @@ module CyberSource
53
55
  :'client_reference_information' => :'clientReferenceInformation',
54
56
  :'order_information' => :'orderInformation',
55
57
  :'consumer_authentication_information' => :'consumerAuthenticationInformation',
58
+ :'watchlist_screening_information' => :'watchlistScreeningInformation',
56
59
  :'error_information' => :'errorInformation'
57
60
  }
58
61
  end
@@ -70,6 +73,7 @@ module CyberSource
70
73
  :'client_reference_information' => :'RiskV1DecisionsPost201ResponseClientReferenceInformation',
71
74
  :'order_information' => :'RiskV1DecisionsPost201ResponseOrderInformation',
72
75
  :'consumer_authentication_information' => :'RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation',
76
+ :'watchlist_screening_information' => :'PtsV2PaymentsPost201ResponseWatchlistScreeningInformation',
73
77
  :'error_information' => :'RiskV1DecisionsPost201ResponseErrorInformation'
74
78
  }
75
79
  end
@@ -122,6 +126,10 @@ module CyberSource
122
126
  self.consumer_authentication_information = attributes[:'consumerAuthenticationInformation']
123
127
  end
124
128
 
129
+ if attributes.has_key?(:'watchlistScreeningInformation')
130
+ self.watchlist_screening_information = attributes[:'watchlistScreeningInformation']
131
+ end
132
+
125
133
  if attributes.has_key?(:'errorInformation')
126
134
  self.error_information = attributes[:'errorInformation']
127
135
  end
@@ -161,6 +169,7 @@ module CyberSource
161
169
  client_reference_information == o.client_reference_information &&
162
170
  order_information == o.order_information &&
163
171
  consumer_authentication_information == o.consumer_authentication_information &&
172
+ watchlist_screening_information == o.watchlist_screening_information &&
164
173
  error_information == o.error_information
165
174
  end
166
175
 
@@ -173,7 +182,7 @@ module CyberSource
173
182
  # Calculates hash code according to all attributes.
174
183
  # @return [Fixnum] Hash code
175
184
  def hash
176
- [_links, id, submit_time_utc, submit_time_local, status, risk_information, payment_information, client_reference_information, order_information, consumer_authentication_information, error_information].hash
185
+ [_links, id, submit_time_utc, submit_time_local, status, risk_information, payment_information, client_reference_information, order_information, consumer_authentication_information, watchlist_screening_information, error_information].hash
177
186
  end
178
187
 
179
188
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class RiskV1DecisionsPost201ResponseErrorInformation
17
- # The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE`
17
+ # The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE` - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH`
18
18
  attr_accessor :reason
19
19
 
20
20
  # The detail message related to the status and reason listed above.
@@ -62,7 +62,7 @@ module CyberSource
62
62
  :'status' => :'String',
63
63
  :'message' => :'String',
64
64
  :'client_reference_information' => :'RiskV1DecisionsPost201ResponseClientReferenceInformation',
65
- :'export_compliance_information' => :'RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformation',
65
+ :'export_compliance_information' => :'PtsV2PaymentsPost201ResponseWatchlistScreeningInformation',
66
66
  :'error_information' => :'RiskV1ExportComplianceInquiriesPost201ResponseErrorInformation'
67
67
  }
68
68
  end