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
@@ -44,6 +44,9 @@ module CyberSource
44
44
  # Name of the Japanese acquirer that processed the transaction. Returned only for JCN Gateway. Please contact the CyberSource Japan Support Group for more information.
45
45
  attr_accessor :forwarded_acquirer_code
46
46
 
47
+ # Field contains a settlement date. The date is in mmdd format, where: mm = month and dd = day.
48
+ attr_accessor :settlement_date
49
+
47
50
  attr_accessor :avs
48
51
 
49
52
  attr_accessor :card_verification
@@ -113,6 +116,7 @@ module CyberSource
113
116
  :'response_details' => :'responseDetails',
114
117
  :'response_category_code' => :'responseCategoryCode',
115
118
  :'forwarded_acquirer_code' => :'forwardedAcquirerCode',
119
+ :'settlement_date' => :'settlementDate',
116
120
  :'avs' => :'avs',
117
121
  :'card_verification' => :'cardVerification',
118
122
  :'merchant_advice' => :'merchantAdvice',
@@ -151,6 +155,7 @@ module CyberSource
151
155
  :'response_details' => :'String',
152
156
  :'response_category_code' => :'String',
153
157
  :'forwarded_acquirer_code' => :'String',
158
+ :'settlement_date' => :'String',
154
159
  :'avs' => :'PtsV2PaymentsPost201ResponseProcessorInformationAvs',
155
160
  :'card_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationCardVerification',
156
161
  :'merchant_advice' => :'PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice',
@@ -224,6 +229,10 @@ module CyberSource
224
229
  self.forwarded_acquirer_code = attributes[:'forwardedAcquirerCode']
225
230
  end
226
231
 
232
+ if attributes.has_key?(:'settlementDate')
233
+ self.settlement_date = attributes[:'settlementDate']
234
+ end
235
+
227
236
  if attributes.has_key?(:'avs')
228
237
  self.avs = attributes[:'avs']
229
238
  end
@@ -380,6 +389,12 @@ module CyberSource
380
389
  @forwarded_acquirer_code = forwarded_acquirer_code
381
390
  end
382
391
 
392
+ # Custom attribute writer method with validation
393
+ # @param [Object] settlement_date Value to be assigned
394
+ def settlement_date=(settlement_date)
395
+ @settlement_date = settlement_date
396
+ end
397
+
383
398
  # Custom attribute writer method with validation
384
399
  # @param [Object] system_trace_audit_number Value to be assigned
385
400
  def system_trace_audit_number=(system_trace_audit_number)
@@ -467,6 +482,7 @@ module CyberSource
467
482
  response_details == o.response_details &&
468
483
  response_category_code == o.response_category_code &&
469
484
  forwarded_acquirer_code == o.forwarded_acquirer_code &&
485
+ settlement_date == o.settlement_date &&
470
486
  avs == o.avs &&
471
487
  card_verification == o.card_verification &&
472
488
  merchant_advice == o.merchant_advice &&
@@ -500,7 +516,7 @@ module CyberSource
500
516
  # Calculates hash code according to all attributes.
501
517
  # @return [Fixnum] Hash code
502
518
  def hash
503
- [auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, forwarded_acquirer_code, avs, card_verification, merchant_advice, electronic_verification_results, ach_verification, customer, consumer_authentication_response, system_trace_audit_number, payment_account_reference_number, transaction_integrity_code, amex_verbal_auth_reference_number, master_card_service_code, master_card_service_reply_code, master_card_authentication_type, name, routing, merchant_number, retrieval_reference_number, payment_url, complete_url, signature, public_key].hash
519
+ [auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, forwarded_acquirer_code, settlement_date, avs, card_verification, merchant_advice, electronic_verification_results, ach_verification, customer, consumer_authentication_response, system_trace_audit_number, payment_account_reference_number, transaction_integrity_code, amex_verbal_auth_reference_number, master_card_service_code, master_card_service_reply_code, master_card_authentication_type, name, routing, merchant_number, retrieval_reference_number, payment_url, complete_url, signature, public_key].hash
504
520
  end
505
521
 
506
522
  # Builds the object from hash
@@ -44,12 +44,30 @@ module CyberSource
44
44
  # Raw Electronic Verification response code from the processor for the customer’s street address.
45
45
  attr_accessor :street_raw
46
46
 
47
- # Mapped Electronic Verification response code for the customer’s name.
47
+ # #### Visa Platform Connect Mapped Electronic Verification response code for the customer’s name. Valid values : 'Y' Yes, the data Matches 'N' No Match 'O' Partial Match
48
48
  attr_accessor :name
49
49
 
50
- # Raw Electronic Verification response code from the processor for the customer’s name.
50
+ # #### Visa Platform Connect Raw Electronic Verification response code from the processor for the customer’s name. Valid values : '01' Match '50' Partial Match '99' No Match
51
51
  attr_accessor :name_raw
52
52
 
53
+ # #### Visa Platform Connect Raw electronic verification response code from the processor for the customer’s first name. Valid values : '01' Match '50' Partial Match '99' No Match
54
+ attr_accessor :first_name_raw
55
+
56
+ # #### Visa Platform Connect Mapped electronic verification response code from the processor for the customer’s first name. Valid values : 'Y' Yes, the data Matches 'N' No Match 'O' Partial Match
57
+ attr_accessor :first_name
58
+
59
+ # #### Visa Platform Connect Raw electronic verification response code from the processor for the customer’s middle name. Valid values : '01' Match '50' Partial Match '99' No Match
60
+ attr_accessor :middle_name_raw
61
+
62
+ # #### Visa Platform Connect Mapped electronic verification response code from the processor for the customer’s middle name. Valid values : 'Y' Yes, the data Matches 'N' No Match 'O' Partial Match
63
+ attr_accessor :middle_name
64
+
65
+ # #### Visa Platform Connect Raw electronic verification response code from the processor for the customer’s last name. Valid values : '01' Match '50' Partial Match '99' No Match
66
+ attr_accessor :last_name_raw
67
+
68
+ # #### Visa Platform Connect Mapped electronic verification response code from the processor for the customer’s last name. Valid values : 'Y' Yes, the data Matches 'N' No Match 'O' Partial Match
69
+ attr_accessor :last_name
70
+
53
71
  # Attribute mapping from ruby-style variable name to JSON key.
54
72
  def self.attribute_map
55
73
  {
@@ -64,7 +82,13 @@ module CyberSource
64
82
  :'street' => :'street',
65
83
  :'street_raw' => :'streetRaw',
66
84
  :'name' => :'name',
67
- :'name_raw' => :'nameRaw'
85
+ :'name_raw' => :'nameRaw',
86
+ :'first_name_raw' => :'firstNameRaw',
87
+ :'first_name' => :'firstName',
88
+ :'middle_name_raw' => :'middleNameRaw',
89
+ :'middle_name' => :'middleName',
90
+ :'last_name_raw' => :'lastNameRaw',
91
+ :'last_name' => :'lastName'
68
92
  }
69
93
  end
70
94
 
@@ -82,7 +106,13 @@ module CyberSource
82
106
  :'street' => :'String',
83
107
  :'street_raw' => :'String',
84
108
  :'name' => :'String',
85
- :'name_raw' => :'String'
109
+ :'name_raw' => :'String',
110
+ :'first_name_raw' => :'String',
111
+ :'first_name' => :'String',
112
+ :'middle_name_raw' => :'String',
113
+ :'middle_name' => :'String',
114
+ :'last_name_raw' => :'String',
115
+ :'last_name' => :'String'
86
116
  }
87
117
  end
88
118
 
@@ -141,6 +171,30 @@ module CyberSource
141
171
  if attributes.has_key?(:'nameRaw')
142
172
  self.name_raw = attributes[:'nameRaw']
143
173
  end
174
+
175
+ if attributes.has_key?(:'firstNameRaw')
176
+ self.first_name_raw = attributes[:'firstNameRaw']
177
+ end
178
+
179
+ if attributes.has_key?(:'firstName')
180
+ self.first_name = attributes[:'firstName']
181
+ end
182
+
183
+ if attributes.has_key?(:'middleNameRaw')
184
+ self.middle_name_raw = attributes[:'middleNameRaw']
185
+ end
186
+
187
+ if attributes.has_key?(:'middleName')
188
+ self.middle_name = attributes[:'middleName']
189
+ end
190
+
191
+ if attributes.has_key?(:'lastNameRaw')
192
+ self.last_name_raw = attributes[:'lastNameRaw']
193
+ end
194
+
195
+ if attributes.has_key?(:'lastName')
196
+ self.last_name = attributes[:'lastName']
197
+ end
144
198
  end
145
199
 
146
200
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -228,6 +282,42 @@ module CyberSource
228
282
  @name_raw = name_raw
229
283
  end
230
284
 
285
+ # Custom attribute writer method with validation
286
+ # @param [Object] first_name_raw Value to be assigned
287
+ def first_name_raw=(first_name_raw)
288
+ @first_name_raw = first_name_raw
289
+ end
290
+
291
+ # Custom attribute writer method with validation
292
+ # @param [Object] first_name Value to be assigned
293
+ def first_name=(first_name)
294
+ @first_name = first_name
295
+ end
296
+
297
+ # Custom attribute writer method with validation
298
+ # @param [Object] middle_name_raw Value to be assigned
299
+ def middle_name_raw=(middle_name_raw)
300
+ @middle_name_raw = middle_name_raw
301
+ end
302
+
303
+ # Custom attribute writer method with validation
304
+ # @param [Object] middle_name Value to be assigned
305
+ def middle_name=(middle_name)
306
+ @middle_name = middle_name
307
+ end
308
+
309
+ # Custom attribute writer method with validation
310
+ # @param [Object] last_name_raw Value to be assigned
311
+ def last_name_raw=(last_name_raw)
312
+ @last_name_raw = last_name_raw
313
+ end
314
+
315
+ # Custom attribute writer method with validation
316
+ # @param [Object] last_name Value to be assigned
317
+ def last_name=(last_name)
318
+ @last_name = last_name
319
+ end
320
+
231
321
  # Checks equality by comparing each attribute.
232
322
  # @param [Object] Object to be compared
233
323
  def ==(o)
@@ -244,7 +334,13 @@ module CyberSource
244
334
  street == o.street &&
245
335
  street_raw == o.street_raw &&
246
336
  name == o.name &&
247
- name_raw == o.name_raw
337
+ name_raw == o.name_raw &&
338
+ first_name_raw == o.first_name_raw &&
339
+ first_name == o.first_name &&
340
+ middle_name_raw == o.middle_name_raw &&
341
+ middle_name == o.middle_name &&
342
+ last_name_raw == o.last_name_raw &&
343
+ last_name == o.last_name
248
344
  end
249
345
 
250
346
  # @see the `==` method
@@ -256,7 +352,7 @@ module CyberSource
256
352
  # Calculates hash code according to all attributes.
257
353
  # @return [Fixnum] Hash code
258
354
  def hash
259
- [code, code_raw, email, email_raw, phone_number, phone_number_raw, postal_code, postal_code_raw, street, street_raw, name, name_raw].hash
355
+ [code, code_raw, email, email_raw, phone_number, phone_number_raw, postal_code, postal_code_raw, street, street_raw, name, name_raw, first_name_raw, first_name, middle_name_raw, middle_name, last_name_raw, last_name].hash
260
356
  end
261
357
 
262
358
  # Builds the object from hash
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformation
16
+ class PtsV2PaymentsPost201ResponseWatchlistScreeningInformation
17
17
  # Likelihood that the country associated with the customer’s IP address was identified correctly. Returns a value from 1–100, where 100 indicates the highest likelihood. If the country cannot be determined, the value is –1.
18
18
  attr_accessor :ip_country_confidence
19
19
 
@@ -36,7 +36,7 @@ module CyberSource
36
36
  {
37
37
  :'ip_country_confidence' => :'Integer',
38
38
  :'info_codes' => :'Array<String>',
39
- :'watch_list' => :'RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchList'
39
+ :'watch_list' => :'PtsV2PaymentsPost201ResponseWatchlistScreeningInformationWatchList'
40
40
  }
41
41
  end
42
42
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchList
16
+ class PtsV2PaymentsPost201ResponseWatchlistScreeningInformationWatchList
17
17
  attr_accessor :matches
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -26,7 +26,7 @@ module CyberSource
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'matches' => :'Array<RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchListMatches>'
29
+ :'matches' => :'Array<PtsV2PaymentsPost201ResponseWatchlistScreeningInformationWatchListMatches>'
30
30
  }
31
31
  end
32
32
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchListMatches
16
+ class PtsV2PaymentsPost201ResponseWatchlistScreeningInformationWatchListMatches
17
17
  # Address found on the list specified in export_matchN_list for the entity (name and address) in the request.
18
18
  attr_accessor :addresses
19
19
 
@@ -34,6 +34,9 @@ module CyberSource
34
34
  # Same value as `processorInformation.transactionId`
35
35
  attr_accessor :network_transaction_id
36
36
 
37
+ # Field contains a settlement date. The date is in mmdd format, where: mm = month and dd = day.
38
+ attr_accessor :settlement_date
39
+
37
40
  # Attribute mapping from ruby-style variable name to JSON key.
38
41
  def self.attribute_map
39
42
  {
@@ -43,7 +46,8 @@ module CyberSource
43
46
  :'merchant_number' => :'merchantNumber',
44
47
  :'response_code' => :'responseCode',
45
48
  :'ach_verification' => :'achVerification',
46
- :'network_transaction_id' => :'networkTransactionId'
49
+ :'network_transaction_id' => :'networkTransactionId',
50
+ :'settlement_date' => :'settlementDate'
47
51
  }
48
52
  end
49
53
 
@@ -56,7 +60,8 @@ module CyberSource
56
60
  :'merchant_number' => :'String',
57
61
  :'response_code' => :'String',
58
62
  :'ach_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationAchVerification',
59
- :'network_transaction_id' => :'String'
63
+ :'network_transaction_id' => :'String',
64
+ :'settlement_date' => :'String'
60
65
  }
61
66
  end
62
67
 
@@ -95,6 +100,10 @@ module CyberSource
95
100
  if attributes.has_key?(:'networkTransactionId')
96
101
  self.network_transaction_id = attributes[:'networkTransactionId']
97
102
  end
103
+
104
+ if attributes.has_key?(:'settlementDate')
105
+ self.settlement_date = attributes[:'settlementDate']
106
+ end
98
107
  end
99
108
 
100
109
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -140,6 +149,12 @@ module CyberSource
140
149
  @response_code = response_code
141
150
  end
142
151
 
152
+ # Custom attribute writer method with validation
153
+ # @param [Object] settlement_date Value to be assigned
154
+ def settlement_date=(settlement_date)
155
+ @settlement_date = settlement_date
156
+ end
157
+
143
158
  # Checks equality by comparing each attribute.
144
159
  # @param [Object] Object to be compared
145
160
  def ==(o)
@@ -151,7 +166,8 @@ module CyberSource
151
166
  merchant_number == o.merchant_number &&
152
167
  response_code == o.response_code &&
153
168
  ach_verification == o.ach_verification &&
154
- network_transaction_id == o.network_transaction_id
169
+ network_transaction_id == o.network_transaction_id &&
170
+ settlement_date == o.settlement_date
155
171
  end
156
172
 
157
173
  # @see the `==` method
@@ -163,7 +179,7 @@ module CyberSource
163
179
  # Calculates hash code according to all attributes.
164
180
  # @return [Fixnum] Hash code
165
181
  def hash
166
- [approval_code, transaction_id, forwarded_acquirer_code, merchant_number, response_code, ach_verification, network_transaction_id].hash
182
+ [approval_code, transaction_id, forwarded_acquirer_code, merchant_number, response_code, ach_verification, network_transaction_id, settlement_date].hash
167
183
  end
168
184
 
169
185
  # Builds the object from hash
@@ -17,7 +17,7 @@ module CyberSource
17
17
  # This field shows the available balance in the prepaid account. Acquirers always receive the available balance in the transaction currency.
18
18
  attr_accessor :balance
19
19
 
20
- # This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer.
20
+ # This field indicates the 3-letter [ISO Standard Currency Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) for the card currency.
21
21
  attr_accessor :currency
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -54,6 +54,11 @@ module CyberSource
54
54
  # URL for displaying payment results to the consumer (notifications) after the transaction is processed. Usually this URL belongs to merchant and its behavior is defined by merchant
55
55
  attr_accessor :return_url
56
56
 
57
+ # #### Visa Platform Connect This field may be used for transactions on accounts issued under co-branding agreements when one of the co-branding partners.
58
+ attr_accessor :partner_id_code
59
+
60
+ attr_accessor :service_location
61
+
57
62
  # Use this field only if you are requesting payment with Payer Authentication service together. Your company’s name as you want it to appear to the customer in the issuing bank’s authentication form. This value overrides the value specified by your merchant bank.
58
63
  attr_accessor :merchant_name
59
64
 
@@ -74,6 +79,8 @@ module CyberSource
74
79
  :'success_url' => :'successUrl',
75
80
  :'failure_url' => :'failureUrl',
76
81
  :'return_url' => :'returnUrl',
82
+ :'partner_id_code' => :'partnerIdCode',
83
+ :'service_location' => :'serviceLocation',
77
84
  :'merchant_name' => :'merchantName'
78
85
  }
79
86
  end
@@ -95,6 +102,8 @@ module CyberSource
95
102
  :'success_url' => :'String',
96
103
  :'failure_url' => :'String',
97
104
  :'return_url' => :'String',
105
+ :'partner_id_code' => :'String',
106
+ :'service_location' => :'Ptsv2paymentsMerchantInformationServiceLocation',
98
107
  :'merchant_name' => :'String'
99
108
  }
100
109
  end
@@ -163,6 +172,14 @@ module CyberSource
163
172
  self.return_url = attributes[:'returnUrl']
164
173
  end
165
174
 
175
+ if attributes.has_key?(:'partnerIdCode')
176
+ self.partner_id_code = attributes[:'partnerIdCode']
177
+ end
178
+
179
+ if attributes.has_key?(:'serviceLocation')
180
+ self.service_location = attributes[:'serviceLocation']
181
+ end
182
+
166
183
  if attributes.has_key?(:'merchantName')
167
184
  self.merchant_name = attributes[:'merchantName']
168
185
  end
@@ -253,6 +270,12 @@ module CyberSource
253
270
  @return_url = return_url
254
271
  end
255
272
 
273
+ # Custom attribute writer method with validation
274
+ # @param [Object] partner_id_code Value to be assigned
275
+ def partner_id_code=(partner_id_code)
276
+ @partner_id_code = partner_id_code
277
+ end
278
+
256
279
  # Custom attribute writer method with validation
257
280
  # @param [Object] merchant_name Value to be assigned
258
281
  def merchant_name=(merchant_name)
@@ -278,6 +301,8 @@ module CyberSource
278
301
  success_url == o.success_url &&
279
302
  failure_url == o.failure_url &&
280
303
  return_url == o.return_url &&
304
+ partner_id_code == o.partner_id_code &&
305
+ service_location == o.service_location &&
281
306
  merchant_name == o.merchant_name
282
307
  end
283
308
 
@@ -290,7 +315,7 @@ module CyberSource
290
315
  # Calculates hash code according to all attributes.
291
316
  # @return [Fixnum] Hash code
292
317
  def hash
293
- [merchant_descriptor, domain_name, sales_organization_id, category_code, category_code_domestic, tax_id, vat_registration_number, card_acceptor_reference_number, transaction_local_date_time, service_fee_descriptor, cancel_url, success_url, failure_url, return_url, merchant_name].hash
318
+ [merchant_descriptor, domain_name, sales_organization_id, category_code, category_code_domestic, tax_id, vat_registration_number, card_acceptor_reference_number, transaction_local_date_time, service_fee_descriptor, cancel_url, success_url, failure_url, return_url, partner_id_code, service_location, merchant_name].hash
294
319
  end
295
320
 
296
321
  # Builds the object from hash
@@ -47,6 +47,9 @@ module CyberSource
47
47
  # #### Visa Platform Connect This field will indicate merchant country of origin
48
48
  attr_accessor :country_of_origin
49
49
 
50
+ # #### Visa Platform Connect Indicates customer service phone number of Merchant.
51
+ attr_accessor :customer_service_phone_number
52
+
50
53
  # Attribute mapping from ruby-style variable name to JSON key.
51
54
  def self.attribute_map
52
55
  {
@@ -60,7 +63,8 @@ module CyberSource
60
63
  :'administrative_area' => :'administrativeArea',
61
64
  :'phone' => :'phone',
62
65
  :'url' => :'url',
63
- :'country_of_origin' => :'countryOfOrigin'
66
+ :'country_of_origin' => :'countryOfOrigin',
67
+ :'customer_service_phone_number' => :'customerServicePhoneNumber'
64
68
  }
65
69
  end
66
70
 
@@ -77,7 +81,8 @@ module CyberSource
77
81
  :'administrative_area' => :'String',
78
82
  :'phone' => :'String',
79
83
  :'url' => :'String',
80
- :'country_of_origin' => :'String'
84
+ :'country_of_origin' => :'String',
85
+ :'customer_service_phone_number' => :'String'
81
86
  }
82
87
  end
83
88
 
@@ -132,6 +137,10 @@ module CyberSource
132
137
  if attributes.has_key?(:'countryOfOrigin')
133
138
  self.country_of_origin = attributes[:'countryOfOrigin']
134
139
  end
140
+
141
+ if attributes.has_key?(:'customerServicePhoneNumber')
142
+ self.customer_service_phone_number = attributes[:'customerServicePhoneNumber']
143
+ end
135
144
  end
136
145
 
137
146
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -201,6 +210,12 @@ module CyberSource
201
210
  @country_of_origin = country_of_origin
202
211
  end
203
212
 
213
+ # Custom attribute writer method with validation
214
+ # @param [Object] customer_service_phone_number Value to be assigned
215
+ def customer_service_phone_number=(customer_service_phone_number)
216
+ @customer_service_phone_number = customer_service_phone_number
217
+ end
218
+
204
219
  # Checks equality by comparing each attribute.
205
220
  # @param [Object] Object to be compared
206
221
  def ==(o)
@@ -216,7 +231,8 @@ module CyberSource
216
231
  administrative_area == o.administrative_area &&
217
232
  phone == o.phone &&
218
233
  url == o.url &&
219
- country_of_origin == o.country_of_origin
234
+ country_of_origin == o.country_of_origin &&
235
+ customer_service_phone_number == o.customer_service_phone_number
220
236
  end
221
237
 
222
238
  # @see the `==` method
@@ -228,7 +244,7 @@ module CyberSource
228
244
  # Calculates hash code according to all attributes.
229
245
  # @return [Fixnum] Hash code
230
246
  def hash
231
- [name, alternate_name, contact, address1, locality, country, postal_code, administrative_area, phone, url, country_of_origin].hash
247
+ [name, alternate_name, contact, address1, locality, country, postal_code, administrative_area, phone, url, country_of_origin, customer_service_phone_number].hash
232
248
  end
233
249
 
234
250
  # Builds the object from hash