cybersource_rest_client 0.0.50 → 0.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +4 -2
  3. data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
  4. data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +13 -4
  5. data/lib/cybersource_rest_client/models/create_payment_request.rb +13 -4
  6. data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +32 -8
  7. data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +32 -4
  8. data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information.rb +13 -4
  9. data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information_company.rb +190 -0
  10. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight.rb +20 -4
  11. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +84 -4
  12. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +13 -4
  13. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
  14. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information.rb +13 -4
  15. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_bill_to.rb +206 -0
  16. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +21 -5
  17. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +17 -1
  18. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +102 -6
  19. 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
  20. 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
  21. 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
  22. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +20 -4
  23. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +1 -1
  24. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +26 -1
  25. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
  26. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_location.rb +238 -0
  27. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +1 -1
  28. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +36 -4
  29. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +26 -4
  30. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type.rb +11 -1
  31. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +21 -5
  32. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +1 -1
  33. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +12 -2
  34. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +14 -4
  35. data/lib/cybersource_rest_client/models/ptsv2payments_watchlist_screening_information.rb +215 -0
  36. data/lib/cybersource_rest_client/models/{riskv1exportcomplianceinquiries_export_compliance_information_weights.rb → ptsv2payments_watchlist_screening_information_weights.rb} +1 -1
  37. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +1 -1
  38. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +20 -4
  39. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +10 -1
  40. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb +1 -1
  41. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +1 -1
  42. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +26 -4
  43. data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +2 -2
  44. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information.rb +1 -1
  45. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -1
  46. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +40 -1
  47. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +194 -0
  48. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +27 -1
  49. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_features.rb +286 -0
  50. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_issuer_information.rb +238 -0
  51. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_network.rb +190 -0
  52. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payout_options.rb +190 -0
  53. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +11 -1
  54. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +2 -2
  55. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_token_information.rb +24 -4
  56. data/lib/cybersource_rest_client.rb +13 -4
  57. metadata +31 -8
@@ -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
 
@@ -69,7 +69,7 @@ module CyberSource
69
69
  # Your local pricing currency code. For the possible values, see the [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)
70
70
  attr_accessor :original_currency
71
71
 
72
- # Cashback amount in the acquirer’s currency. If a cashback amount is included in the request, it must be included in the `orderInformation.amountDetails.totalAmount` value. This field is supported only on CyberSource through VisaNet. #### Used by **Authorization** Optional. **Authorization Reversal** Optional. #### PIN debit Required field for PIN debit purchase, PIN debit credit or PIN debit reversal.
72
+ # Cashback amount in the acquirer’s currency. If a cashback amount is included in the request, it must be included in the `orderInformation.amountDetails.totalAmount` value. This field is supported only on CyberSource through VisaNet. #### Used by **Authorization** Optional. **Authorization Reversal** Optional. #### PIN debit Optional field for PIN debit purchase, PIN debit credit or PIN debit reversal.
73
73
  attr_accessor :cashback_amount
74
74
 
75
75
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -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
@@ -55,6 +55,10 @@ module CyberSource
55
55
  # Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. Optional field. #### Airlines processing Tax portion of the order amount. This value cannot exceed 99999999999999 (fourteen 9s). Format: English characters only. Optional request field for a line item. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. Note if you send this field in your tax request, the value in the field will override the tax engine
56
56
  attr_accessor :tax_amount
57
57
 
58
+ attr_accessor :allowed_export_countries
59
+
60
+ attr_accessor :restricted_export_countries
61
+
58
62
  # Attribute mapping from ruby-style variable name to JSON key.
59
63
  def self.attribute_map
60
64
  {
@@ -71,7 +75,9 @@ module CyberSource
71
75
  :'distributor_product_sku' => :'distributorProductSku',
72
76
  :'passenger' => :'passenger',
73
77
  :'shipping_destination_types' => :'shippingDestinationTypes',
74
- :'tax_amount' => :'taxAmount'
78
+ :'tax_amount' => :'taxAmount',
79
+ :'allowed_export_countries' => :'allowedExportCountries',
80
+ :'restricted_export_countries' => :'restrictedExportCountries'
75
81
  }
76
82
  end
77
83
 
@@ -91,7 +97,9 @@ module CyberSource
91
97
  :'distributor_product_sku' => :'String',
92
98
  :'passenger' => :'Ptsv2paymentsOrderInformationPassenger',
93
99
  :'shipping_destination_types' => :'String',
94
- :'tax_amount' => :'String'
100
+ :'tax_amount' => :'String',
101
+ :'allowed_export_countries' => :'Array<String>',
102
+ :'restricted_export_countries' => :'Array<String>'
95
103
  }
96
104
  end
97
105
 
@@ -158,6 +166,18 @@ module CyberSource
158
166
  if attributes.has_key?(:'taxAmount')
159
167
  self.tax_amount = attributes[:'taxAmount']
160
168
  end
169
+
170
+ if attributes.has_key?(:'allowedExportCountries')
171
+ if (value = attributes[:'allowedExportCountries']).is_a?(Array)
172
+ self.allowed_export_countries = value
173
+ end
174
+ end
175
+
176
+ if attributes.has_key?(:'restrictedExportCountries')
177
+ if (value = attributes[:'restrictedExportCountries']).is_a?(Array)
178
+ self.restricted_export_countries = value
179
+ end
180
+ end
161
181
  end
162
182
 
163
183
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -251,7 +271,9 @@ module CyberSource
251
271
  distributor_product_sku == o.distributor_product_sku &&
252
272
  passenger == o.passenger &&
253
273
  shipping_destination_types == o.shipping_destination_types &&
254
- tax_amount == o.tax_amount
274
+ tax_amount == o.tax_amount &&
275
+ allowed_export_countries == o.allowed_export_countries &&
276
+ restricted_export_countries == o.restricted_export_countries
255
277
  end
256
278
 
257
279
  # @see the `==` method
@@ -263,7 +285,7 @@ module CyberSource
263
285
  # Calculates hash code according to all attributes.
264
286
  # @return [Fixnum] Hash code
265
287
  def hash
266
- [total_amount, unit_price, quantity, gift_card_currency, product_sku, product_risk, product_description, product_name, product_code, gift, distributor_product_sku, passenger, shipping_destination_types, tax_amount].hash
288
+ [total_amount, unit_price, quantity, gift_card_currency, product_sku, product_risk, product_description, product_name, product_code, gift, distributor_product_sku, passenger, shipping_destination_types, tax_amount, allowed_export_countries, restricted_export_countries].hash
267
289
  end
268
290
 
269
291
  # Builds the object from hash
@@ -13,9 +13,9 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- # Decides whether to call Payer Authentication along with DM or not
16
+ # Decides whether to call Payer Authentication or Watchlist Screening service along with DM or not
17
17
  class Riskv1decisionsProcessingInformation
18
- # Use CONSUMER_AUTHENTICATION to use Payer Authentication along with Decision Manager. For any other value, only Decision Manager will run.
18
+ # - Use `CONSUMER_AUTHENTICATION` to use Payer Authentication along with Decision Manager. For any other value, only Decision Manager will run. - Use `WATCHLIST_SCREENING` when you want to call Watchlist Screening service.
19
19
  attr_accessor :action_list
20
20
 
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -35,7 +35,7 @@ module CyberSource
35
35
  def self.swagger_types
36
36
  {
37
37
  :'address_operator' => :'String',
38
- :'weights' => :'Riskv1exportcomplianceinquiriesExportComplianceInformationWeights',
38
+ :'weights' => :'Ptsv2paymentsWatchlistScreeningInformationWeights',
39
39
  :'sanction_lists' => :'Array<String>'
40
40
  }
41
41
  end
@@ -58,6 +58,8 @@ module CyberSource
58
58
 
59
59
  attr_accessor :payment_insights_information
60
60
 
61
+ attr_accessor :payout_options
62
+
61
63
  attr_accessor :processing_information
62
64
 
63
65
  attr_accessor :processor_information
@@ -94,6 +96,7 @@ module CyberSource
94
96
  :'order_information' => :'orderInformation',
95
97
  :'payment_information' => :'paymentInformation',
96
98
  :'payment_insights_information' => :'paymentInsightsInformation',
99
+ :'payout_options' => :'payoutOptions',
97
100
  :'processing_information' => :'processingInformation',
98
101
  :'processor_information' => :'processorInformation',
99
102
  :'point_of_sale_information' => :'pointOfSaleInformation',
@@ -126,6 +129,7 @@ module CyberSource
126
129
  :'order_information' => :'TssV2TransactionsGet200ResponseOrderInformation',
127
130
  :'payment_information' => :'TssV2TransactionsGet200ResponsePaymentInformation',
128
131
  :'payment_insights_information' => :'PtsV2PaymentsPost201ResponsePaymentInsightsInformation',
132
+ :'payout_options' => :'TssV2TransactionsGet200ResponsePayoutOptions',
129
133
  :'processing_information' => :'TssV2TransactionsGet200ResponseProcessingInformation',
130
134
  :'processor_information' => :'TssV2TransactionsGet200ResponseProcessorInformation',
131
135
  :'point_of_sale_information' => :'TssV2TransactionsGet200ResponsePointOfSaleInformation',
@@ -222,6 +226,10 @@ module CyberSource
222
226
  self.payment_insights_information = attributes[:'paymentInsightsInformation']
223
227
  end
224
228
 
229
+ if attributes.has_key?(:'payoutOptions')
230
+ self.payout_options = attributes[:'payoutOptions']
231
+ end
232
+
225
233
  if attributes.has_key?(:'processingInformation')
226
234
  self.processing_information = attributes[:'processingInformation']
227
235
  end
@@ -306,6 +314,7 @@ module CyberSource
306
314
  order_information == o.order_information &&
307
315
  payment_information == o.payment_information &&
308
316
  payment_insights_information == o.payment_insights_information &&
317
+ payout_options == o.payout_options &&
309
318
  processing_information == o.processing_information &&
310
319
  processor_information == o.processor_information &&
311
320
  point_of_sale_information == o.point_of_sale_information &&
@@ -324,7 +333,7 @@ module CyberSource
324
333
  # Calculates hash code according to all attributes.
325
334
  # @return [Fixnum] Hash code
326
335
  def hash
327
- [id, root_id, reconciliation_id, merchant_id, submit_time_utc, application_information, buyer_information, client_reference_information, consumer_authentication_information, device_information, error_information, installment_information, fraud_marking_information, health_care_information, merchant_defined_information, merchant_information, order_information, payment_information, payment_insights_information, processing_information, processor_information, point_of_sale_information, risk_information, sender_information, token_information, _links].hash
336
+ [id, root_id, reconciliation_id, merchant_id, submit_time_utc, application_information, buyer_information, client_reference_information, consumer_authentication_information, device_information, error_information, installment_information, fraud_marking_information, health_care_information, merchant_defined_information, merchant_information, order_information, payment_information, payment_insights_information, payout_options, processing_information, processor_information, point_of_sale_information, risk_information, sender_information, token_information, _links].hash
328
337
  end
329
338
 
330
339
  # Builds the object from hash