cybersource_rest_client 0.0.40 → 0.0.44

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 (92) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/logging/sensitive_logging.rb +7 -4
  3. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +223 -219
  4. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +116 -112
  5. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +116 -112
  6. data/lib/cybersource_rest_client/api/conversion_details_api.rb +5 -1
  7. data/lib/cybersource_rest_client/api/customer_api.rb +368 -360
  8. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +530 -518
  9. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +530 -518
  10. data/lib/cybersource_rest_client/api/download_dtd_api.rb +92 -88
  11. data/lib/cybersource_rest_client/api/download_xsd_api.rb +92 -88
  12. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +15 -3
  13. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +116 -112
  14. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +152 -148
  15. data/lib/cybersource_rest_client/api/invoices_api.rb +447 -431
  16. data/lib/cybersource_rest_client/api/net_fundings_api.rb +5 -1
  17. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +5 -1
  18. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +219 -219
  19. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +133 -129
  20. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +10 -2
  21. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +5 -1
  22. data/lib/cybersource_rest_client/api/report_definitions_api.rb +10 -2
  23. data/lib/cybersource_rest_client/api/report_downloads_api.rb +5 -1
  24. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +15 -3
  25. data/lib/cybersource_rest_client/api/reports_api.rb +10 -2
  26. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +116 -112
  27. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +116 -112
  28. data/lib/cybersource_rest_client/api/search_transactions_api.rb +5 -1
  29. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +206 -198
  30. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +5 -1
  31. data/lib/cybersource_rest_client/api/taxes_api.rb +160 -160
  32. data/lib/cybersource_rest_client/api/tokenization_api.rb +89 -89
  33. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +15 -3
  34. data/lib/cybersource_rest_client/api/transaction_details_api.rb +5 -1
  35. data/lib/cybersource_rest_client/api/user_management_api.rb +5 -1
  36. data/lib/cybersource_rest_client/api/user_management_search_api.rb +89 -89
  37. data/lib/cybersource_rest_client/api/verification_api.rb +154 -154
  38. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +10 -1
  39. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +1 -1
  40. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +20 -4
  41. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +20 -4
  42. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information.rb +183 -0
  43. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_response_insights.rb +206 -0
  44. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +20 -4
  45. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +2 -2
  46. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
  47. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +11 -1
  48. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
  49. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +20 -4
  50. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +22 -6
  51. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +20 -4
  52. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +15 -7
  53. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +14 -4
  54. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +17 -1
  55. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +2 -2
  56. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +13 -4
  57. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information_authorization_options.rb +190 -0
  58. data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options_initiator.rb +2 -2
  59. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +0 -2
  60. data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_order_information.rb +183 -0
  61. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information.rb +14 -4
  62. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +13 -4
  63. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options.rb +183 -0
  64. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options_initiator.rb +190 -0
  65. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +52 -4
  66. data/lib/cybersource_rest_client/models/reporting_v3_chargeback_details_get200_response_chargeback_details.rb +14 -4
  67. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +49 -1
  68. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +44 -2
  69. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +35 -3
  70. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_device_information.rb → riskv1authenticationresults_device_information.rb} +1 -1
  71. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  72. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +61 -2
  73. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  74. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +13 -3
  75. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  76. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -1
  77. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +1 -1
  78. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +1 -7
  79. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +1 -1
  80. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator.rb +213 -0
  81. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +14 -5
  82. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank.rb +183 -0
  83. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank_account.rb +194 -0
  84. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_customer.rb +184 -0
  85. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +1 -1
  86. data/lib/cybersource_rest_client/models/validate_request.rb +13 -4
  87. data/lib/cybersource_rest_client/models/void_capture_request.rb +13 -4
  88. data/lib/cybersource_rest_client/models/void_credit_request.rb +13 -4
  89. data/lib/cybersource_rest_client/models/void_payment_request.rb +13 -4
  90. data/lib/cybersource_rest_client/models/void_refund_request.rb +13 -4
  91. data/lib/cybersource_rest_client.rb +11 -1
  92. metadata +14 -4
@@ -61,6 +61,9 @@ module CyberSource
61
61
  # Cost centre of the merchant
62
62
  attr_accessor :cost_center
63
63
 
64
+ # Text message from the issuer. If you give the customer a receipt, display this value on the receipt.
65
+ attr_accessor :issuer_message
66
+
64
67
  # Attribute mapping from ruby-style variable name to JSON key.
65
68
  def self.attribute_map
66
69
  {
@@ -79,7 +82,8 @@ module CyberSource
79
82
  :'reference_data_number' => :'referenceDataNumber',
80
83
  :'sales_slip_number' => :'salesSlipNumber',
81
84
  :'invoice_date' => :'invoiceDate',
82
- :'cost_center' => :'costCenter'
85
+ :'cost_center' => :'costCenter',
86
+ :'issuer_message' => :'issuerMessage'
83
87
  }
84
88
  end
85
89
 
@@ -101,7 +105,8 @@ module CyberSource
101
105
  :'reference_data_number' => :'String',
102
106
  :'sales_slip_number' => :'Integer',
103
107
  :'invoice_date' => :'String',
104
- :'cost_center' => :'String'
108
+ :'cost_center' => :'String',
109
+ :'issuer_message' => :'String'
105
110
  }
106
111
  end
107
112
 
@@ -178,6 +183,10 @@ module CyberSource
178
183
  if attributes.has_key?(:'costCenter')
179
184
  self.cost_center = attributes[:'costCenter']
180
185
  end
186
+
187
+ if attributes.has_key?(:'issuerMessage')
188
+ self.issuer_message = attributes[:'issuerMessage']
189
+ end
181
190
  end
182
191
 
183
192
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -262,6 +271,12 @@ module CyberSource
262
271
  @cost_center = cost_center
263
272
  end
264
273
 
274
+ # Custom attribute writer method with validation
275
+ # @param [Object] issuer_message Value to be assigned
276
+ def issuer_message=(issuer_message)
277
+ @issuer_message = issuer_message
278
+ end
279
+
265
280
  # Checks equality by comparing each attribute.
266
281
  # @param [Object] Object to be compared
267
282
  def ==(o)
@@ -282,7 +297,8 @@ module CyberSource
282
297
  reference_data_number == o.reference_data_number &&
283
298
  sales_slip_number == o.sales_slip_number &&
284
299
  invoice_date == o.invoice_date &&
285
- cost_center == o.cost_center
300
+ cost_center == o.cost_center &&
301
+ issuer_message == o.issuer_message
286
302
  end
287
303
 
288
304
  # @see the `==` method
@@ -294,7 +310,7 @@ module CyberSource
294
310
  # Calculates hash code according to all attributes.
295
311
  # @return [Fixnum] Hash code
296
312
  def hash
297
- [invoice_number, barcode_number, expiration_date, purchase_order_number, purchase_order_date, purchase_contact_name, taxable, vat_invoice_reference_number, commodity_code, merchandise_code, transaction_advice_addendum, reference_data_code, reference_data_number, sales_slip_number, invoice_date, cost_center].hash
313
+ [invoice_number, barcode_number, expiration_date, purchase_order_number, purchase_order_date, purchase_contact_name, taxable, vat_invoice_reference_number, commodity_code, merchandise_code, transaction_advice_addendum, reference_data_code, reference_data_number, sales_slip_number, invoice_date, cost_center, issuer_message].hash
298
314
  end
299
315
 
300
316
  # Builds the object from hash
@@ -56,6 +56,9 @@ module CyberSource
56
56
  # Name of the card product. Possible value: - BNDES This field is supported only for BNDES transactions on CyberSource through VisaNet. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR4 - Position: 115-120 - Field: Brazil Country Data
57
57
  attr_accessor :product_name
58
58
 
59
+ # Flag that identifies how the card type was selected. Possible values: - 0: Card type was selected based on default acquirer settings. - 1: Customer selected the card type.
60
+ attr_accessor :type_selection_indicator
61
+
59
62
  # Attribute mapping from ruby-style variable name to JSON key.
60
63
  def self.attribute_map
61
64
  {
@@ -72,7 +75,8 @@ module CyberSource
72
75
  :'issue_number' => :'issueNumber',
73
76
  :'start_month' => :'startMonth',
74
77
  :'start_year' => :'startYear',
75
- :'product_name' => :'productName'
78
+ :'product_name' => :'productName',
79
+ :'type_selection_indicator' => :'typeSelectionIndicator'
76
80
  }
77
81
  end
78
82
 
@@ -92,7 +96,8 @@ module CyberSource
92
96
  :'issue_number' => :'String',
93
97
  :'start_month' => :'String',
94
98
  :'start_year' => :'String',
95
- :'product_name' => :'String'
99
+ :'product_name' => :'String',
100
+ :'type_selection_indicator' => :'String'
96
101
  }
97
102
  end
98
103
 
@@ -159,6 +164,10 @@ module CyberSource
159
164
  if attributes.has_key?(:'productName')
160
165
  self.product_name = attributes[:'productName']
161
166
  end
167
+
168
+ if attributes.has_key?(:'typeSelectionIndicator')
169
+ self.type_selection_indicator = attributes[:'typeSelectionIndicator']
170
+ end
162
171
  end
163
172
 
164
173
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -252,6 +261,12 @@ module CyberSource
252
261
  @product_name = product_name
253
262
  end
254
263
 
264
+ # Custom attribute writer method with validation
265
+ # @param [Object] type_selection_indicator Value to be assigned
266
+ def type_selection_indicator=(type_selection_indicator)
267
+ @type_selection_indicator = type_selection_indicator
268
+ end
269
+
255
270
  # Checks equality by comparing each attribute.
256
271
  # @param [Object] Object to be compared
257
272
  def ==(o)
@@ -270,7 +285,8 @@ module CyberSource
270
285
  issue_number == o.issue_number &&
271
286
  start_month == o.start_month &&
272
287
  start_year == o.start_year &&
273
- product_name == o.product_name
288
+ product_name == o.product_name &&
289
+ type_selection_indicator == o.type_selection_indicator
274
290
  end
275
291
 
276
292
  # @see the `==` method
@@ -282,7 +298,7 @@ module CyberSource
282
298
  # Calculates hash code according to all attributes.
283
299
  # @return [Fixnum] Hash code
284
300
  def hash
285
- [number, expiration_month, expiration_year, type, use_as, source_account_type, source_account_type_details, security_code, security_code_indicator, account_encoder_id, issue_number, start_month, start_year, product_name].hash
301
+ [number, expiration_month, expiration_year, type, use_as, source_account_type, source_account_type_details, security_code, security_code_indicator, account_encoder_id, issue_number, start_month, start_year, product_name, type_selection_indicator].hash
286
302
  end
287
303
 
288
304
  # Builds the object from hash
@@ -26,13 +26,13 @@ module CyberSource
26
26
  # Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
27
27
  attr_accessor :type
28
28
 
29
- # This field is used internally.
29
+ # This field contains token information.
30
30
  attr_accessor :cryptogram
31
31
 
32
32
  # Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. **Note** This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. #### PIN debit Optional field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
33
33
  attr_accessor :requestor_id
34
34
 
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. **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.
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
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.
@@ -44,6 +44,9 @@ module CyberSource
44
44
  # Card Verification Number (CVN). #### Ingenico ePayments Do not include this field when **commerceIndicator=recurring**. **Note** Ingenico ePayments was previously called _Global Collect_. For details, see `customer_cc_cv_number` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
45
45
  attr_accessor :security_code
46
46
 
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
+ attr_accessor :security_code_indicator
49
+
47
50
  # Attribute mapping from ruby-style variable name to JSON key.
48
51
  def self.attribute_map
49
52
  {
@@ -56,7 +59,8 @@ module CyberSource
56
59
  :'transaction_type' => :'transactionType',
57
60
  :'assurance_level' => :'assuranceLevel',
58
61
  :'storage_method' => :'storageMethod',
59
- :'security_code' => :'securityCode'
62
+ :'security_code' => :'securityCode',
63
+ :'security_code_indicator' => :'securityCodeIndicator'
60
64
  }
61
65
  end
62
66
 
@@ -72,7 +76,8 @@ module CyberSource
72
76
  :'transaction_type' => :'String',
73
77
  :'assurance_level' => :'String',
74
78
  :'storage_method' => :'String',
75
- :'security_code' => :'String'
79
+ :'security_code' => :'String',
80
+ :'security_code_indicator' => :'String'
76
81
  }
77
82
  end
78
83
 
@@ -123,6 +128,10 @@ module CyberSource
123
128
  if attributes.has_key?(:'securityCode')
124
129
  self.security_code = attributes[:'securityCode']
125
130
  end
131
+
132
+ if attributes.has_key?(:'securityCodeIndicator')
133
+ self.security_code_indicator = attributes[:'securityCodeIndicator']
134
+ end
126
135
  end
127
136
 
128
137
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -192,6 +201,12 @@ module CyberSource
192
201
  @security_code = security_code
193
202
  end
194
203
 
204
+ # Custom attribute writer method with validation
205
+ # @param [Object] security_code_indicator Value to be assigned
206
+ def security_code_indicator=(security_code_indicator)
207
+ @security_code_indicator = security_code_indicator
208
+ end
209
+
195
210
  # Checks equality by comparing each attribute.
196
211
  # @param [Object] Object to be compared
197
212
  def ==(o)
@@ -206,7 +221,8 @@ module CyberSource
206
221
  transaction_type == o.transaction_type &&
207
222
  assurance_level == o.assurance_level &&
208
223
  storage_method == o.storage_method &&
209
- security_code == o.security_code
224
+ security_code == o.security_code &&
225
+ security_code_indicator == o.security_code_indicator
210
226
  end
211
227
 
212
228
  # @see the `==` method
@@ -218,7 +234,7 @@ module CyberSource
218
234
  # Calculates hash code according to all attributes.
219
235
  # @return [Fixnum] Hash code
220
236
  def hash
221
- [number, expiration_month, expiration_year, type, cryptogram, requestor_id, transaction_type, assurance_level, storage_method, security_code].hash
237
+ [number, expiration_month, expiration_year, type, cryptogram, requestor_id, transaction_type, assurance_level, storage_method, security_code, security_code_indicator].hash
222
238
  end
223
239
 
224
240
  # Builds the object from hash
@@ -91,6 +91,9 @@ module CyberSource
91
91
  # This is the manufacturer name of the reader which is used to accept the payment. Possible values: - PAX - Verifone - Ingenico
92
92
  attr_accessor :terminal_make
93
93
 
94
+ # #### Visa Platform Connect Mastercard service code that is included in the track data. You can extract the service code from the track data and provide it in this API field. This field is supported only for Mastercard on Visa Platform Connect.
95
+ attr_accessor :service_code
96
+
94
97
  # Attribute mapping from ruby-style variable name to JSON key.
95
98
  def self.attribute_map
96
99
  {
@@ -119,7 +122,8 @@ module CyberSource
119
122
  :'terminal_compliance' => :'terminalCompliance',
120
123
  :'is_dedicated_hardware_terminal' => :'isDedicatedHardwareTerminal',
121
124
  :'terminal_model' => :'terminalModel',
122
- :'terminal_make' => :'terminalMake'
125
+ :'terminal_make' => :'terminalMake',
126
+ :'service_code' => :'serviceCode'
123
127
  }
124
128
  end
125
129
 
@@ -151,7 +155,8 @@ module CyberSource
151
155
  :'terminal_compliance' => :'String',
152
156
  :'is_dedicated_hardware_terminal' => :'String',
153
157
  :'terminal_model' => :'String',
154
- :'terminal_make' => :'String'
158
+ :'terminal_make' => :'String',
159
+ :'service_code' => :'String'
155
160
  }
156
161
  end
157
162
 
@@ -270,6 +275,10 @@ module CyberSource
270
275
  if attributes.has_key?(:'terminalMake')
271
276
  self.terminal_make = attributes[:'terminalMake']
272
277
  end
278
+
279
+ if attributes.has_key?(:'serviceCode')
280
+ self.service_code = attributes[:'serviceCode']
281
+ end
273
282
  end
274
283
 
275
284
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -456,6 +465,12 @@ module CyberSource
456
465
  @terminal_make = terminal_make
457
466
  end
458
467
 
468
+ # Custom attribute writer method with validation
469
+ # @param [Object] service_code Value to be assigned
470
+ def service_code=(service_code)
471
+ @service_code = service_code
472
+ end
473
+
459
474
  # Checks equality by comparing each attribute.
460
475
  # @param [Object] Object to be compared
461
476
  def ==(o)
@@ -486,7 +501,8 @@ module CyberSource
486
501
  terminal_compliance == o.terminal_compliance &&
487
502
  is_dedicated_hardware_terminal == o.is_dedicated_hardware_terminal &&
488
503
  terminal_model == o.terminal_model &&
489
- terminal_make == o.terminal_make
504
+ terminal_make == o.terminal_make &&
505
+ service_code == o.service_code
490
506
  end
491
507
 
492
508
  # @see the `==` method
@@ -498,7 +514,7 @@ module CyberSource
498
514
  # Calculates hash code according to all attributes.
499
515
  # @return [Fixnum] Hash code
500
516
  def hash
501
- [terminal_id, terminal_serial_number, lane_number, cat_level, entry_mode, terminal_capability, operating_environment, emv, amex_capn_data, track_data, store_and_forward_indicator, cardholder_verification_method, terminal_input_capability, terminal_card_capture_capability, terminal_output_capability, terminal_pin_capability, device_id, pin_block_encoding_format, encrypted_pin, encrypted_key_serial_number, partner_sdk_version, emv_application_identifier_and_dedicated_file_name, terminal_compliance, is_dedicated_hardware_terminal, terminal_model, terminal_make].hash
517
+ [terminal_id, terminal_serial_number, lane_number, cat_level, entry_mode, terminal_capability, operating_environment, emv, amex_capn_data, track_data, store_and_forward_indicator, cardholder_verification_method, terminal_input_capability, terminal_card_capture_capability, terminal_output_capability, terminal_pin_capability, device_id, pin_block_encoding_format, encrypted_pin, encrypted_key_serial_number, partner_sdk_version, emv_application_identifier_and_dedicated_file_name, terminal_compliance, is_dedicated_hardware_terminal, terminal_model, terminal_make, service_code].hash
502
518
  end
503
519
 
504
520
  # Builds the object from hash
@@ -26,9 +26,12 @@ module CyberSource
26
26
  # Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pointOfSaleInformation.entryMode field to indicate whether the information was swiped or keyed. Possible values: - `true`: Fallback method was used. - `false` (default): Fallback method was not used. This field is supported only on American Express Direct, Chase Paymentech Solutions, CyberSource through VisaNet, FDC Nashville Global, GPN, JCN Gateway, OmniPay Direct, and SIX.
27
27
  attr_accessor :fallback
28
28
 
29
- # Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - `1`: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - `2`: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN** and **JCN Gateway**. **NOTE**: This field is required when an EMV transaction fails for a technical reason. Do not include this field when the EMV terminal does not have any applications in common with the EMV card.
29
+ # Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - `1`: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - `2`: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN** and **JCN Gateway**. **NOTE**: This field is required when an EMV transaction fails for a technical reason. Do not include this field when the EMV terminal does not have any applications in common with the EMV card.
30
30
  attr_accessor :fallback_condition
31
31
 
32
+ # #### Visa Platform Connect Value “true” indicates this transaction is intentionally duplicated . The field contains value “true” which indicates that merchant has intentionally duplicated single tap transaction. Merchant is intentionally sending a duplicate auth request for a single tap txn because the issuer requested a PIN.
33
+ attr_accessor :is_repeat
34
+
32
35
  # Attribute mapping from ruby-style variable name to JSON key.
33
36
  def self.attribute_map
34
37
  {
@@ -36,7 +39,8 @@ module CyberSource
36
39
  :'cardholder_verification_method_used' => :'cardholderVerificationMethodUsed',
37
40
  :'card_sequence_number' => :'cardSequenceNumber',
38
41
  :'fallback' => :'fallback',
39
- :'fallback_condition' => :'fallbackCondition'
42
+ :'fallback_condition' => :'fallbackCondition',
43
+ :'is_repeat' => :'isRepeat'
40
44
  }
41
45
  end
42
46
 
@@ -47,7 +51,8 @@ module CyberSource
47
51
  :'cardholder_verification_method_used' => :'Integer',
48
52
  :'card_sequence_number' => :'String',
49
53
  :'fallback' => :'BOOLEAN',
50
- :'fallback_condition' => :'Integer'
54
+ :'fallback_condition' => :'Integer',
55
+ :'is_repeat' => :'BOOLEAN'
51
56
  }
52
57
  end
53
58
 
@@ -73,13 +78,15 @@ module CyberSource
73
78
 
74
79
  if attributes.has_key?(:'fallback')
75
80
  self.fallback = attributes[:'fallback']
76
- else
77
- self.fallback = false
78
81
  end
79
82
 
80
83
  if attributes.has_key?(:'fallbackCondition')
81
84
  self.fallback_condition = attributes[:'fallbackCondition']
82
85
  end
86
+
87
+ if attributes.has_key?(:'isRepeat')
88
+ self.is_repeat = attributes[:'isRepeat']
89
+ end
83
90
  end
84
91
 
85
92
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -116,7 +123,8 @@ module CyberSource
116
123
  cardholder_verification_method_used == o.cardholder_verification_method_used &&
117
124
  card_sequence_number == o.card_sequence_number &&
118
125
  fallback == o.fallback &&
119
- fallback_condition == o.fallback_condition
126
+ fallback_condition == o.fallback_condition &&
127
+ is_repeat == o.is_repeat
120
128
  end
121
129
 
122
130
  # @see the `==` method
@@ -128,7 +136,7 @@ module CyberSource
128
136
  # Calculates hash code according to all attributes.
129
137
  # @return [Fixnum] Hash code
130
138
  def hash
131
- [tags, cardholder_verification_method_used, card_sequence_number, fallback, fallback_condition].hash
139
+ [tags, cardholder_verification_method_used, card_sequence_number, fallback, fallback_condition, is_repeat].hash
132
140
  end
133
141
 
134
142
  # Builds the object from hash
@@ -87,6 +87,9 @@ module CyberSource
87
87
  # Flag that indicates if the transaction is pay by points transaction true: Transaction uses loyalty points false: Transaction does not use loyalty points Default: false
88
88
  attr_accessor :pay_by_points_indicator
89
89
 
90
+ # Flag that indicates the functionality we are having for merchants for which auth is done through Cybersource but settlement is done by themselves. true: functionality is supported. Processor should send raw processor auth response to Merchant. false: functionality is not supported. Default: false
91
+ attr_accessor :is_return_auth_record_enabled
92
+
90
93
  # Attribute mapping from ruby-style variable name to JSON key.
91
94
  def self.attribute_map
92
95
  {
@@ -116,7 +119,8 @@ module CyberSource
116
119
  :'mobile_remote_payment_type' => :'mobileRemotePaymentType',
117
120
  :'extended_credit_total_count' => :'extendedCreditTotalCount',
118
121
  :'network_routing_order' => :'networkRoutingOrder',
119
- :'pay_by_points_indicator' => :'payByPointsIndicator'
122
+ :'pay_by_points_indicator' => :'payByPointsIndicator',
123
+ :'is_return_auth_record_enabled' => :'isReturnAuthRecordEnabled'
120
124
  }
121
125
  end
122
126
 
@@ -149,7 +153,8 @@ module CyberSource
149
153
  :'mobile_remote_payment_type' => :'String',
150
154
  :'extended_credit_total_count' => :'String',
151
155
  :'network_routing_order' => :'String',
152
- :'pay_by_points_indicator' => :'BOOLEAN'
156
+ :'pay_by_points_indicator' => :'BOOLEAN',
157
+ :'is_return_auth_record_enabled' => :'BOOLEAN'
153
158
  }
154
159
  end
155
160
 
@@ -274,6 +279,10 @@ module CyberSource
274
279
  if attributes.has_key?(:'payByPointsIndicator')
275
280
  self.pay_by_points_indicator = attributes[:'payByPointsIndicator']
276
281
  end
282
+
283
+ if attributes.has_key?(:'isReturnAuthRecordEnabled')
284
+ self.is_return_auth_record_enabled = attributes[:'isReturnAuthRecordEnabled']
285
+ end
277
286
  end
278
287
 
279
288
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -404,7 +413,8 @@ module CyberSource
404
413
  mobile_remote_payment_type == o.mobile_remote_payment_type &&
405
414
  extended_credit_total_count == o.extended_credit_total_count &&
406
415
  network_routing_order == o.network_routing_order &&
407
- pay_by_points_indicator == o.pay_by_points_indicator
416
+ pay_by_points_indicator == o.pay_by_points_indicator &&
417
+ is_return_auth_record_enabled == o.is_return_auth_record_enabled
408
418
  end
409
419
 
410
420
  # @see the `==` method
@@ -416,7 +426,7 @@ module CyberSource
416
426
  # Calculates hash code according to all attributes.
417
427
  # @return [Fixnum] Hash code
418
428
  def hash
419
- [action_list, action_token_types, capture, processor_id, business_application_id, commerce_indicator, payment_solution, reconciliation_id, link_id, purchase_level, report_group, visa_checkout_id, industry_data_type, authorization_options, capture_options, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, wallet_type, national_net_domestic_data, japan_payment_options, mobile_remote_payment_type, extended_credit_total_count, network_routing_order, pay_by_points_indicator].hash
429
+ [action_list, action_token_types, capture, processor_id, business_application_id, commerce_indicator, payment_solution, reconciliation_id, link_id, purchase_level, report_group, visa_checkout_id, industry_data_type, authorization_options, capture_options, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, wallet_type, national_net_domestic_data, japan_payment_options, mobile_remote_payment_type, extended_credit_total_count, network_routing_order, pay_by_points_indicator, is_return_auth_record_enabled].hash
420
430
  end
421
431
 
422
432
  # Builds the object from hash
@@ -17,6 +17,9 @@ module CyberSource
17
17
  # Authorization type. Possible values: - `AUTOCAPTURE`: automatic capture. - `STANDARDCAPTURE`: standard capture. - `VERBAL`: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. #### Asia, Middle East, and Africa Gateway; Cielo; Comercio Latino; and CyberSource Latin American Processing Set this field to `AUTOCAPTURE` and include it in a bundled request to indicate that you are requesting an automatic capture. If your account is configured to enable automatic captures, set this field to `STANDARDCAPTURE` and include it in a standard authorization or bundled request to indicate that you are overriding an automatic capture. For more information, see the `auth_type` field description in [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) #### Forced Capture Set this field to `VERBAL` and include it in the authorization request to indicate that you are performing a forced capture; therefore, you receive the authorization code outside the CyberSource system. #### Verbal Authorization Set this field to `VERBAL` and include it in the capture request to indicate that the request is for a verbal authorization. For more information, see \"Verbal Authorizations\" in [Credit Card Services Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html).
18
18
  attr_accessor :auth_type
19
19
 
20
+ # #### Visa Platform Connect The field contains the PAN translation indicator for American Express Contactless Transaction. Valid value is  1- Expresspay Translation, PAN request 2- Expresspay Translation, PAN and Expiry date request
21
+ attr_accessor :pan_return_indicator
22
+
20
23
  # Authorization code. #### Forced Capture Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit purchase. #### Verbal Authorization Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the `auth_code` field description in [Credit Card Services Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html).
21
24
  attr_accessor :verbal_auth_code
22
25
 
@@ -68,6 +71,7 @@ module CyberSource
68
71
  def self.attribute_map
69
72
  {
70
73
  :'auth_type' => :'authType',
74
+ :'pan_return_indicator' => :'panReturnIndicator',
71
75
  :'verbal_auth_code' => :'verbalAuthCode',
72
76
  :'verbal_auth_transaction_id' => :'verbalAuthTransactionId',
73
77
  :'auth_indicator' => :'authIndicator',
@@ -91,6 +95,7 @@ module CyberSource
91
95
  def self.swagger_types
92
96
  {
93
97
  :'auth_type' => :'String',
98
+ :'pan_return_indicator' => :'String',
94
99
  :'verbal_auth_code' => :'String',
95
100
  :'verbal_auth_transaction_id' => :'String',
96
101
  :'auth_indicator' => :'String',
@@ -122,6 +127,10 @@ module CyberSource
122
127
  self.auth_type = attributes[:'authType']
123
128
  end
124
129
 
130
+ if attributes.has_key?(:'panReturnIndicator')
131
+ self.pan_return_indicator = attributes[:'panReturnIndicator']
132
+ end
133
+
125
134
  if attributes.has_key?(:'verbalAuthCode')
126
135
  self.verbal_auth_code = attributes[:'verbalAuthCode']
127
136
  end
@@ -212,6 +221,12 @@ module CyberSource
212
221
  @auth_type = auth_type
213
222
  end
214
223
 
224
+ # Custom attribute writer method with validation
225
+ # @param [Object] pan_return_indicator Value to be assigned
226
+ def pan_return_indicator=(pan_return_indicator)
227
+ @pan_return_indicator = pan_return_indicator
228
+ end
229
+
215
230
  # Custom attribute writer method with validation
216
231
  # @param [Object] verbal_auth_code Value to be assigned
217
232
  def verbal_auth_code=(verbal_auth_code)
@@ -236,6 +251,7 @@ module CyberSource
236
251
  return true if self.equal?(o)
237
252
  self.class == o.class &&
238
253
  auth_type == o.auth_type &&
254
+ pan_return_indicator == o.pan_return_indicator &&
239
255
  verbal_auth_code == o.verbal_auth_code &&
240
256
  verbal_auth_transaction_id == o.verbal_auth_transaction_id &&
241
257
  auth_indicator == o.auth_indicator &&
@@ -263,7 +279,7 @@ module CyberSource
263
279
  # Calculates hash code according to all attributes.
264
280
  # @return [Fixnum] Hash code
265
281
  def hash
266
- [auth_type, 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].hash
282
+ [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].hash
267
283
  end
268
284
 
269
285
  # Builds the object from hash
@@ -20,7 +20,7 @@ module CyberSource
20
20
  # Indicates to the issuing bank two things: - The merchant has received consent from the cardholder to store their card details on file - The merchant wants the issuing bank to check out the card details before the merchant initiates their first transaction for this cardholder. The purpose of the merchant-initiated transaction is to ensure that the cardholder’s credentials are valid (that the card is not stolen or has restrictions) and that the card details are good to be stored on the merchant’s file for future transactions. Valid values: - `true` means merchant will use this transaction to store payment credentials for follow-up merchant-initiated transactions. - `false` means merchant will not use this transaction to store payment credentials for follow-up merchant-initiated transactions. For details, see `subsequent_auth_first` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) **NOTE:** The value for this field does not correspond to any data in the TC 33 capture file5. This field is supported only for Visa transactions on CyberSource through VisaNet.
21
21
  attr_accessor :credential_stored_on_file
22
22
 
23
- # Indicates to an issuing bank whether a merchant-initiated transaction came from a card that was already stored on file. Possible values: - **Y** means the merchant-initiated transaction came from a card that was already stored on file. - **N** means the merchant-initiated transaction came from a card that was not stored on file.
23
+ # Indicates to an issuing bank whether a merchant-initiated transaction came from a card that was already stored on file. Possible values: - **true** means the merchant-initiated transaction came from a card that was already stored on file. - **false** means the merchant-initiated transaction came from a card that was not stored on file.
24
24
  attr_accessor :stored_credential_used
25
25
 
26
26
  attr_accessor :merchant_initiated_transaction
@@ -40,7 +40,7 @@ module CyberSource
40
40
  {
41
41
  :'type' => :'String',
42
42
  :'credential_stored_on_file' => :'BOOLEAN',
43
- :'stored_credential_used' => :'String',
43
+ :'stored_credential_used' => :'BOOLEAN',
44
44
  :'merchant_initiated_transaction' => :'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction'
45
45
  }
46
46
  end
@@ -18,17 +18,21 @@ module CyberSource
18
18
  # Token received in original session service.
19
19
  attr_accessor :pre_approval_token
20
20
 
21
+ attr_accessor :authorization_options
22
+
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
24
- :'pre_approval_token' => :'preApprovalToken'
26
+ :'pre_approval_token' => :'preApprovalToken',
27
+ :'authorization_options' => :'authorizationOptions'
25
28
  }
26
29
  end
27
30
 
28
31
  # Attribute type mapping.
29
32
  def self.swagger_types
30
33
  {
31
- :'pre_approval_token' => :'String'
34
+ :'pre_approval_token' => :'String',
35
+ :'authorization_options' => :'Ptsv2paymentsProcessorInformationAuthorizationOptions'
32
36
  }
33
37
  end
34
38
 
@@ -43,6 +47,10 @@ module CyberSource
43
47
  if attributes.has_key?(:'preApprovalToken')
44
48
  self.pre_approval_token = attributes[:'preApprovalToken']
45
49
  end
50
+
51
+ if attributes.has_key?(:'authorizationOptions')
52
+ self.authorization_options = attributes[:'authorizationOptions']
53
+ end
46
54
  end
47
55
 
48
56
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -69,7 +77,8 @@ module CyberSource
69
77
  def ==(o)
70
78
  return true if self.equal?(o)
71
79
  self.class == o.class &&
72
- pre_approval_token == o.pre_approval_token
80
+ pre_approval_token == o.pre_approval_token &&
81
+ authorization_options == o.authorization_options
73
82
  end
74
83
 
75
84
  # @see the `==` method
@@ -81,7 +90,7 @@ module CyberSource
81
90
  # Calculates hash code according to all attributes.
82
91
  # @return [Fixnum] Hash code
83
92
  def hash
84
- [pre_approval_token].hash
93
+ [pre_approval_token, authorization_options].hash
85
94
  end
86
95
 
87
96
  # Builds the object from hash