cybersource_rest_client 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client.rb +68 -8
  3. data/lib/cybersource_rest_client/api/capture_api.rb +19 -8
  4. data/lib/cybersource_rest_client/api/conversion_details_api.rb +112 -0
  5. data/lib/cybersource_rest_client/api/credit_api.rb +19 -8
  6. data/lib/cybersource_rest_client/api/flex_token_api.rb +18 -7
  7. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +88 -55
  8. data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +24 -13
  9. data/lib/cybersource_rest_client/api/key_generation_api.rb +18 -7
  10. data/lib/cybersource_rest_client/api/net_fundings_api.rb +115 -0
  11. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +20 -9
  12. data/lib/cybersource_rest_client/api/payment_instruments_api.rb +144 -89
  13. data/lib/cybersource_rest_client/api/payments_api.rb +19 -8
  14. data/lib/cybersource_rest_client/api/process_a_payout_api.rb +21 -9
  15. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +27 -10
  16. data/lib/cybersource_rest_client/api/refund_api.rb +37 -15
  17. data/lib/cybersource_rest_client/api/report_definitions_api.rb +50 -19
  18. data/lib/cybersource_rest_client/api/report_downloads_api.rb +25 -10
  19. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +104 -43
  20. data/lib/cybersource_rest_client/api/reports_api.rb +83 -27
  21. data/lib/cybersource_rest_client/api/reversal_api.rb +19 -8
  22. data/lib/cybersource_rest_client/api/search_transactions_api.rb +39 -17
  23. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +45 -15
  24. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +89 -13
  25. data/lib/cybersource_rest_client/api/transaction_details_api.rb +19 -8
  26. data/lib/cybersource_rest_client/api/user_management_api.rb +19 -8
  27. data/lib/cybersource_rest_client/api/void_api.rb +73 -29
  28. data/lib/cybersource_rest_client/api_client.rb +24 -12
  29. data/lib/cybersource_rest_client/configuration.rb +1 -1
  30. data/lib/cybersource_rest_client/models/capture_payment_request.rb +14 -5
  31. data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
  32. data/lib/cybersource_rest_client/models/create_payment_request.rb +23 -5
  33. data/lib/cybersource_rest_client/models/inline_response_400.rb +59 -14
  34. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +202 -0
  35. data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response_fields.rb → inline_response_400_fields.rb} +1 -1
  36. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches.rb +7 -7
  37. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response.rb +286 -0
  38. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb → pts_v1_transaction_batches_id_get200_response__links.rb} +10 -9
  39. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions.rb +193 -0
  40. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +20 -2
  41. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +1 -1
  42. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +183 -0
  43. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +183 -0
  44. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +199 -0
  45. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +1 -1
  46. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +1 -1
  47. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +2 -2
  48. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +34 -7
  49. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +40 -5
  50. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
  51. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +1 -1
  52. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +519 -0
  53. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_processor_information_issuer.rb → pts_v2_payments_post201_response_issuer_information.rb} +31 -6
  54. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +1 -1
  55. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +1 -1
  56. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +13 -4
  57. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +1 -1
  58. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +208 -0
  59. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +199 -0
  60. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -17
  61. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +1 -1
  62. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +183 -0
  63. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +224 -0
  64. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +75 -16
  65. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +224 -0
  66. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +0 -15
  67. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +2 -2
  68. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +249 -0
  69. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +2 -2
  70. data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +2 -2
  71. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
  72. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +63 -4
  73. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +1 -1
  74. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +2 -2
  75. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +11 -2
  76. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information.rb +29 -4
  77. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +199 -0
  78. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +1 -1
  79. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +2 -2
  80. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +1 -1
  81. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +1 -1
  82. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +2 -2
  83. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +350 -0
  84. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +239 -0
  85. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information_details.rb +228 -0
  86. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +183 -0
  87. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +234 -0
  88. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information.rb +183 -0
  89. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +274 -0
  90. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +299 -0
  91. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information.rb +183 -0
  92. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +224 -0
  93. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_status_information.rb +228 -0
  94. data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +1 -1
  95. data/lib/cybersource_rest_client/models/pts_v2_payouts_post502_response.rb +260 -0
  96. data/lib/cybersource_rest_client/models/pts_v2_payouts_post_response.rb +1 -1
  97. data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +186 -4
  98. data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +3 -3
  99. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +18 -9
  100. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +349 -0
  101. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
  102. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +9 -9
  103. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +29 -4
  104. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +3 -2
  105. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +15 -6
  106. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +249 -0
  107. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +7 -7
  108. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +364 -0
  109. data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_issuer.rb → ptsv2payments_issuer_information.rb} +2 -2
  110. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
  111. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +66 -7
  112. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +0 -6
  113. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor.rb +249 -0
  114. data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_authorization_options_merchant_initiated_transaction.rb → ptsv2payments_merchant_initiated_transaction.rb} +3 -3
  115. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +84 -9
  116. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +2 -2
  117. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +32 -7
  118. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +12 -28
  119. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +349 -0
  120. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +55 -5
  121. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +139 -14
  122. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +2 -2
  123. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +2 -2
  124. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
  125. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +208 -0
  126. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +299 -0
  127. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +47 -37
  128. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +1 -7
  129. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +4 -4
  130. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -18
  131. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +253 -16
  132. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +12 -12
  133. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +20 -20
  134. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +32 -12
  135. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +4 -4
  136. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +424 -0
  137. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
  138. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
  139. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +3 -3
  140. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
  141. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +8 -8
  142. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +1 -1
  143. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +579 -0
  144. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +39 -5
  145. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +59 -9
  146. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +11 -27
  147. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +1 -1
  148. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
  149. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +2 -2
  150. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +5 -5
  151. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
  152. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +30 -5
  153. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +9 -9
  154. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +22 -4
  155. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +5 -20
  156. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +4 -4
  157. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
  158. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +14 -5
  159. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +224 -0
  160. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb +10 -1
  161. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details.rb +199 -0
  162. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +2 -2
  163. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +5 -5
  164. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +0 -15
  165. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
  166. data/lib/cybersource_rest_client/models/ptsv2payouts_client_reference_information.rb +199 -0
  167. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +0 -15
  168. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +0 -15
  169. data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
  170. data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
  171. data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response.rb +213 -0
  172. data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details.rb +275 -0
  173. data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes.rb +204 -0
  174. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +266 -0
  175. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +281 -0
  176. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases.rb +203 -0
  177. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response.rb +273 -0
  178. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_authorizations.rb +255 -0
  179. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details.rb +290 -0
  180. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others.rb +260 -0
  181. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_request_details.rb +235 -0
  182. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses.rb +240 -0
  183. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb +304 -0
  184. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +1 -0
  185. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_attributes.rb +2 -0
  186. data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +13 -13
  187. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_reports.rb +18 -8
  188. data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +15 -15
  189. data/lib/cybersource_rest_client/models/{reporting_v3_report_subscriptions_get200_response_report_preferences.rb → reporting_v3_reports_id_get200_response_report_preferences.rb} +1 -1
  190. data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response.rb → reportingv3_report_downloads_get400_response.rb} +42 -52
  191. data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details.rb +195 -0
  192. data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +229 -0
  193. data/lib/cybersource_rest_client/models/request_body.rb +74 -104
  194. data/lib/cybersource_rest_client/models/request_body_1.rb +159 -55
  195. data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_get200_response.rb +331 -0
  196. data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response.rb +1 -1
  197. data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response_card.rb +302 -0
  198. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_bank_account.rb +48 -0
  199. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +24 -0
  200. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_merchant_initiated_transaction.rb +199 -0
  201. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb +1 -1
  202. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_bill_to.rb +183 -0
  203. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information.rb +39 -0
  204. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb +24 -0
  205. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +1 -1
  206. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +0 -15
  207. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +1 -1
  208. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +0 -30
  209. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +184 -0
  210. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information.rb +1 -1
  211. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_amount_details.rb +224 -0
  212. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
  213. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +0 -15
  214. data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +1 -1
  215. data/lib/cybersource_rest_client/models/ums_v1_users_get400_response.rb +271 -0
  216. metadata +70 -10
  217. data/lib/cybersource_rest_client/api/transaction_batch_api.rb +0 -77
@@ -17,10 +17,10 @@ module CyberSource
17
17
  # Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field 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 :number
19
19
 
20
- # Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
20
+ # Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Barclays and Streamline**\\ For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (01 through 12) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. **Encoded Account Numbers**\\ For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
21
21
  attr_accessor :expiration_month
22
22
 
23
- # Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
23
+ # Four-digit year in which the credit card expires. `Format: YYYY`. **Barclays and Streamline**\\ For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (1900 through 3000) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. **FDC Nashville Global and FDMS South**\\ You can send in 2 digits or 4 digits. If you send in 2 digits, they must be the last 2 digits of the year. **Encoded Account Numbers**\\ For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
24
24
  attr_accessor :expiration_year
25
25
 
26
26
  # Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover
@@ -29,27 +29,30 @@ module CyberSource
29
29
  # Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. **Cielo** and **Comercio Latino** Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet.
30
30
  attr_accessor :use_as
31
31
 
32
- # Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CTV. **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - CHECKING: Checking account - CREDIT: Credit card account - SAVING: Saving account - LINE_OF_CREDIT: Line of credit - PREPAID: Prepaid card account - UNIVERSAL: Universal account
32
+ # Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for Visa Platform Connect (VPC). **Note**\\ Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - **CHECKING**: Checking account - **CREDIT**: Credit card account - **SAVING**: Saving account - **LINE_OF_CREDIT**: Line of credit or credit portion of combo card - **PREPAID**: Prepaid card account or prepaid portion of combo card - **UNIVERSAL**: Universal account
33
33
  attr_accessor :source_account_type
34
34
 
35
- # Card Verification Number.
35
+ # Card Verification Number. **Ingenico ePayments** Do not include this field when _commerceIndicator=recurring_. **Note** Ingenico ePayments was previously called Global Collect.
36
36
  attr_accessor :security_code
37
37
 
38
- # Flag that indicates whether a CVN code was sent. Possible values: - 0 (default): CVN service not requested. CyberSource uses this default value when you do not include _securityCode_ in the request. - 1 (default): CVN service requested and supported. CyberSource uses this default value when you include _securityCode_ in the request. - 2: CVN on credit card is illegible. - 9: CVN was not imprinted on credit card.
38
+ # Flag that indicates whether a CVN code was sent. Possible values: - 0 (default): CVN service not requested. CyberSource uses this default value when you do not include _securityCode_ field in the request. - 1 (default): CVN service requested and supported. CyberSource uses this default value when you include _securityCode_ field in the request. - 2: CVN on credit card is illegible. - 9: CVN was not imprinted on credit card.
39
39
  attr_accessor :security_code_indicator
40
40
 
41
41
  # Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID.
42
42
  attr_accessor :account_encoder_id
43
43
 
44
- # Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions.
44
+ # Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. **Note** The issue number is not required for Maestro (UK Domestic) transactions.
45
45
  attr_accessor :issue_number
46
46
 
47
- # Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions.
47
+ # Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. **Note** The start date is not required for Maestro (UK Domestic) transactions.
48
48
  attr_accessor :start_month
49
49
 
50
- # Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions.
50
+ # Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. **Note** The start date is not required for Maestro (UK Domestic) transactions.
51
51
  attr_accessor :start_year
52
52
 
53
+ # Name of the card product. Possible value: - BNDES This field is supported only for BNDES transactions on CyberSource through VisaNet. See BNDES. 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
54
+ attr_accessor :product_name
55
+
53
56
  # Attribute mapping from ruby-style variable name to JSON key.
54
57
  def self.attribute_map
55
58
  {
@@ -64,7 +67,8 @@ module CyberSource
64
67
  :'account_encoder_id' => :'accountEncoderId',
65
68
  :'issue_number' => :'issueNumber',
66
69
  :'start_month' => :'startMonth',
67
- :'start_year' => :'startYear'
70
+ :'start_year' => :'startYear',
71
+ :'product_name' => :'productName'
68
72
  }
69
73
  end
70
74
 
@@ -82,7 +86,8 @@ module CyberSource
82
86
  :'account_encoder_id' => :'String',
83
87
  :'issue_number' => :'String',
84
88
  :'start_month' => :'String',
85
- :'start_year' => :'String'
89
+ :'start_year' => :'String',
90
+ :'product_name' => :'String'
86
91
  }
87
92
  end
88
93
 
@@ -141,6 +146,10 @@ module CyberSource
141
146
  if attributes.has_key?(:'startYear')
142
147
  self.start_year = attributes[:'startYear']
143
148
  end
149
+
150
+ if attributes.has_key?(:'productName')
151
+ self.product_name = attributes[:'productName']
152
+ end
144
153
  end
145
154
 
146
155
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -159,16 +168,12 @@ module CyberSource
159
168
  invalid_properties.push('invalid value for "expiration_year", the character length must be smaller than or equal to 4.')
160
169
  end
161
170
 
162
- if !@type.nil? && @type.to_s.length > 3
163
- invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 3.')
164
- end
165
-
166
- if !@use_as.nil? && @use_as.to_s.length > 2
167
- invalid_properties.push('invalid value for "use_as", the character length must be smaller than or equal to 2.')
171
+ if !@use_as.nil? && @use_as.to_s.length > 20
172
+ invalid_properties.push('invalid value for "use_as", the character length must be smaller than or equal to 20.')
168
173
  end
169
174
 
170
- if !@source_account_type.nil? && @source_account_type.to_s.length > 2
171
- invalid_properties.push('invalid value for "source_account_type", the character length must be smaller than or equal to 2.')
175
+ if !@source_account_type.nil? && @source_account_type.to_s.length > 20
176
+ invalid_properties.push('invalid value for "source_account_type", the character length must be smaller than or equal to 20.')
172
177
  end
173
178
 
174
179
  if !@security_code.nil? && @security_code.to_s.length > 4
@@ -195,6 +200,10 @@ module CyberSource
195
200
  invalid_properties.push('invalid value for "start_year", the character length must be smaller than or equal to 4.')
196
201
  end
197
202
 
203
+ if !@product_name.nil? && @product_name.to_s.length > 15
204
+ invalid_properties.push('invalid value for "product_name", the character length must be smaller than or equal to 15.')
205
+ end
206
+
198
207
  invalid_properties
199
208
  end
200
209
 
@@ -204,15 +213,15 @@ module CyberSource
204
213
  return false if !@number.nil? && @number.to_s.length > 20
205
214
  return false if !@expiration_month.nil? && @expiration_month.to_s.length > 2
206
215
  return false if !@expiration_year.nil? && @expiration_year.to_s.length > 4
207
- return false if !@type.nil? && @type.to_s.length > 3
208
- return false if !@use_as.nil? && @use_as.to_s.length > 2
209
- return false if !@source_account_type.nil? && @source_account_type.to_s.length > 2
216
+ return false if !@use_as.nil? && @use_as.to_s.length > 20
217
+ return false if !@source_account_type.nil? && @source_account_type.to_s.length > 20
210
218
  return false if !@security_code.nil? && @security_code.to_s.length > 4
211
219
  return false if !@security_code_indicator.nil? && @security_code_indicator.to_s.length > 1
212
220
  return false if !@account_encoder_id.nil? && @account_encoder_id.to_s.length > 3
213
221
  return false if !@issue_number.nil? && @issue_number.to_s.length > 5
214
222
  return false if !@start_month.nil? && @start_month.to_s.length > 2
215
223
  return false if !@start_year.nil? && @start_year.to_s.length > 4
224
+ return false if !@product_name.nil? && @product_name.to_s.length > 15
216
225
  true
217
226
  end
218
227
 
@@ -246,21 +255,11 @@ module CyberSource
246
255
  @expiration_year = expiration_year
247
256
  end
248
257
 
249
- # Custom attribute writer method with validation
250
- # @param [Object] type Value to be assigned
251
- def type=(type)
252
- if !type.nil? && type.to_s.length > 3
253
- fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 3.'
254
- end
255
-
256
- @type = type
257
- end
258
-
259
258
  # Custom attribute writer method with validation
260
259
  # @param [Object] use_as Value to be assigned
261
260
  def use_as=(use_as)
262
- if !use_as.nil? && use_as.to_s.length > 2
263
- fail ArgumentError, 'invalid value for "use_as", the character length must be smaller than or equal to 2.'
261
+ if !use_as.nil? && use_as.to_s.length > 20
262
+ fail ArgumentError, 'invalid value for "use_as", the character length must be smaller than or equal to 20.'
264
263
  end
265
264
 
266
265
  @use_as = use_as
@@ -269,8 +268,8 @@ module CyberSource
269
268
  # Custom attribute writer method with validation
270
269
  # @param [Object] source_account_type Value to be assigned
271
270
  def source_account_type=(source_account_type)
272
- if !source_account_type.nil? && source_account_type.to_s.length > 2
273
- fail ArgumentError, 'invalid value for "source_account_type", the character length must be smaller than or equal to 2.'
271
+ if !source_account_type.nil? && source_account_type.to_s.length > 20
272
+ fail ArgumentError, 'invalid value for "source_account_type", the character length must be smaller than or equal to 20.'
274
273
  end
275
274
 
276
275
  @source_account_type = source_account_type
@@ -336,6 +335,16 @@ module CyberSource
336
335
  @start_year = start_year
337
336
  end
338
337
 
338
+ # Custom attribute writer method with validation
339
+ # @param [Object] product_name Value to be assigned
340
+ def product_name=(product_name)
341
+ if !product_name.nil? && product_name.to_s.length > 15
342
+ fail ArgumentError, 'invalid value for "product_name", the character length must be smaller than or equal to 15.'
343
+ end
344
+
345
+ @product_name = product_name
346
+ end
347
+
339
348
  # Checks equality by comparing each attribute.
340
349
  # @param [Object] Object to be compared
341
350
  def ==(o)
@@ -352,7 +361,8 @@ module CyberSource
352
361
  account_encoder_id == o.account_encoder_id &&
353
362
  issue_number == o.issue_number &&
354
363
  start_month == o.start_month &&
355
- start_year == o.start_year
364
+ start_year == o.start_year &&
365
+ product_name == o.product_name
356
366
  end
357
367
 
358
368
  # @see the `==` method
@@ -364,7 +374,7 @@ module CyberSource
364
374
  # Calculates hash code according to all attributes.
365
375
  # @return [Fixnum] Hash code
366
376
  def hash
367
- [number, expiration_month, expiration_year, type, use_as, source_account_type, security_code, security_code_indicator, account_encoder_id, issue_number, start_month, start_year].hash
377
+ [number, expiration_month, expiration_year, type, use_as, source_account_type, security_code, security_code_indicator, account_encoder_id, issue_number, start_month, start_year, product_name].hash
368
378
  end
369
379
 
370
380
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsPaymentInformationCustomer
17
- # Unique identifier for the customer's card and billing information.
17
+ # Unique identifier for the customer's card and billing information. When you use Payment Tokenization or Recurring Billing and you include this value in your request, many of the fields that are normally required for an authorization or credit become optional. **NOTE** When you use Payment Tokenization or Recurring Billing, the value for the Customer ID is actually the Cybersource payment token for a customer. This token stores information such as the consumer’s card number so it can be applied towards bill payments, recurring payments, or one-time payments. By using this token in a payment API request, the merchant doesn't need to pass in data such as the card number or expiration date in the request itself. See \"Payment Tokenization,\" page 222, and \"Recurring Billing,\" page 225.
18
18
  attr_accessor :customer_id
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -57,12 +57,6 @@ module CyberSource
57
57
  true
58
58
  end
59
59
 
60
- # Custom attribute writer method with validation
61
- # @param [Object] customer_id Value to be assigned
62
- def customer_id=(customer_id)
63
- @customer_id = customer_id
64
- end
65
-
66
60
  # Checks equality by comparing each attribute.
67
61
  # @param [Object] Object to be compared
68
62
  def ==(o)
@@ -14,16 +14,16 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsPaymentInformationFluidData
17
- # Description of this field is not available.
17
+ # The name of the merchant-defined data field. The range of this field starts at 1 and terminiates at 100.
18
18
  attr_accessor :key
19
19
 
20
- # Format of the encrypted payment data.
20
+ # The specific string for identifying the payment solution that is sending the encrypted payment data to CyberSource. Valid values: - `Apple Pay` - `Samsung Pay` **NOTE**: For other payment solutions, the value may be specific to the customer's mobile device. For example, the descriptor for a Bluefin payment encryption would be a device-generated descriptor. Merchant needs to pass in this value.
21
21
  attr_accessor :descriptor
22
22
 
23
- # The encrypted payment data value. If using Apple Pay or Samsung Pay, the values are: - Apple Pay: RklEPUNPTU1PTi5BUFBMRS5JTkFQUC5QQVlNRU5U - Samsung Pay: RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ=
23
+ # Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution a merchant uses. Valid values: - Apple Pay: `RklEPUNPTU1PTi5BUFBMRS5JTkFQUC5QQVlNRU5U` - Samsung Pay: `RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ=` **NOTE**: For other payment solutions, the value of the descriptor may be specific to the customer's mobile device. For example, the descriptor for a Bluefin payment encryption would be a device-generated descriptor. Merchant needs to pass in this value.
24
24
  attr_accessor :value
25
25
 
26
- # Encoding method used to encrypt the payment data. Possible value: Base64
26
+ # Encoding method used to encrypt the payment data. Valid value: Base64
27
27
  attr_accessor :encoding
28
28
 
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -17,10 +17,10 @@ module CyberSource
17
17
  # Customer’s payment network token value.
18
18
  attr_accessor :number
19
19
 
20
- # Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12.
20
+ # Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. **Barclays and Streamline**\\ For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (01 through 12) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. **Encoded Account Numbers**\\ For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
21
21
  attr_accessor :expiration_month
22
22
 
23
- # Four-digit year in which the payment network token expires. `Format: YYYY`.
23
+ # Four-digit year in which the payment network token expires. `Format: YYYY`. **Barclays and Streamline**\\ For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (1900 through 3000) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. **FDC Nashville Global and FDMS South**\\ You can send in 2 digits or 4 digits. If you send in 2 digits, they must be the last 2 digits of the year. **Encoded Account Numbers**\\ For encoded account numbers (card_type=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
24
24
  attr_accessor :expiration_year
25
25
 
26
26
  # Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover
@@ -41,7 +41,7 @@ module CyberSource
41
41
  # Type of technology used in the device to store token data. Possible values: - 001: Secure Element (SE) Smart card or memory with restricted access and encryption to prevent data tampering. For storing payment credentials, a SE is tested against a set of requirements defined by the payment networks. `Note` This field is supported only for **FDC Compass**. - 002: Host Card Emulation (HCE) Emulation of a smart card by using software to create a virtual and exact representation of the card. Sensitive data is stored in a database that is hosted in the cloud. For storing payment credentials, a database must meet very stringent security requirements that exceed PCI DSS. `Note` This field is supported only for **FDC Compass**.
42
42
  attr_accessor :storage_method
43
43
 
44
- # CVN.
44
+ # Card Verification Number. **Ingenico ePayments** Do not include this field when _commerceIndicator=recurring_. **Note** Ingenico ePayments was previously called Global Collect. CVN.
45
45
  attr_accessor :security_code
46
46
 
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -141,10 +141,6 @@ module CyberSource
141
141
  invalid_properties.push('invalid value for "expiration_year", the character length must be smaller than or equal to 4.')
142
142
  end
143
143
 
144
- if !@type.nil? && @type.to_s.length > 3
145
- invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 3.')
146
- end
147
-
148
144
  if !@cryptogram.nil? && @cryptogram.to_s.length > 40
149
145
  invalid_properties.push('invalid value for "cryptogram", the character length must be smaller than or equal to 40.')
150
146
  end
@@ -178,7 +174,6 @@ module CyberSource
178
174
  return false if !@number.nil? && @number.to_s.length > 20
179
175
  return false if !@expiration_month.nil? && @expiration_month.to_s.length > 2
180
176
  return false if !@expiration_year.nil? && @expiration_year.to_s.length > 4
181
- return false if !@type.nil? && @type.to_s.length > 3
182
177
  return false if !@cryptogram.nil? && @cryptogram.to_s.length > 40
183
178
  return false if !@requestor_id.nil? && @requestor_id.to_s.length > 11
184
179
  return false if !@transaction_type.nil? && @transaction_type.to_s.length > 1
@@ -218,16 +213,6 @@ module CyberSource
218
213
  @expiration_year = expiration_year
219
214
  end
220
215
 
221
- # Custom attribute writer method with validation
222
- # @param [Object] type Value to be assigned
223
- def type=(type)
224
- if !type.nil? && type.to_s.length > 3
225
- fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 3.'
226
- end
227
-
228
- @type = type
229
- end
230
-
231
216
  # Custom attribute writer method with validation
232
217
  # @param [Object] cryptogram Value to be assigned
233
218
  def cryptogram=(cryptogram)
@@ -17,15 +17,12 @@ module CyberSource
17
17
  # Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. For Payouts: This field is applicable for CtV.
18
18
  attr_accessor :terminal_id
19
19
 
20
- # Description of this field is not available.
20
+ # Terminal serial number assigned by the hardware manufacturer. This value is provided by the client software that is installed on the POS terminal. CyberSource does not forward this value to the processor. Instead, the value is forwarded to the CyberSource reporting functionality. This field is supported only on American Express Direct, FDC Nashville Global, and SIX.
21
21
  attr_accessor :terminal_serial_number
22
22
 
23
23
  # Identifier for an alternate terminal at your retail location. You define the value for this field. This field is supported only for MasterCard transactions on FDC Nashville Global. Use the _terminalID_ field to identify the main terminal at your retail location. If your retail location has multiple terminals, use this _alternateTerminalID_ field to identify the terminal used for the transaction. This field is a pass-through, which means that CyberSource does not check the value or modify the value in any way before sending it to the processor.
24
24
  attr_accessor :lane_number
25
25
 
26
- # Indicates whether the card is present at the time of the transaction. Possible values: - **true**: Card is present. - **false**: Card is not present.
27
- attr_accessor :card_present
28
-
29
26
  # Type of cardholder-activated terminal. Possible values: - 1: Automated dispensing machine - 2: Self-service terminal - 3: Limited amount terminal - 4: In-flight commerce (IFC) terminal - 5: Radio frequency device - 6: Mobile acceptance terminal - 7: Electronic cash register - 8: E-commerce device at your location - 9: Terminal or cash register that uses a dialup connection to connect to the transaction processing network * Applicable only for CTV for Payouts.
30
27
  attr_accessor :cat_level
31
28
 
@@ -38,7 +35,7 @@ module CyberSource
38
35
  # A one-digit code that identifies the capability of terminal to capture PINs. This code does not necessarily mean that a PIN was entered or is included in this message. For Payouts: This field is applicable for CtV.
39
36
  attr_accessor :pin_entry_capability
40
37
 
41
- # Operating environment. Possible values: - 0: No terminal used or unknown environment. - 1: On merchant premises, attended. - 2: On merchant premises, unattended, or cardholder terminal. Examples: oil, kiosks, self-checkout, home computer, mobile telephone, personal digital assistant (PDA). Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 3: Off merchant premises, attended. Examples: portable POS devices at trade shows, at service calls, or in taxis. - 4: Off merchant premises, unattended, or cardholder terminal. Examples: vending machines, home computer, mobile telephone, PDA. Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 5: On premises of cardholder, unattended. - 9: Unknown delivery mode. - S: Electronic delivery of product. Examples: music, software, or eTickets that are downloaded over the internet. - T: Physical delivery of product. Examples: music or software that is delivered by mail or by a courier. This field is supported only for **American Express Direct** and **CyberSource through VisaNet**. **CyberSource through VisaNet** For MasterCard transactions, the only valid values are 2 and 4.
38
+ # Operating environment. Possible values: - 0: No terminal used or unknown environment. - 1: On merchant premises, attended. - 2: On merchant premises, unattended, or cardholder terminal. Examples: oil, kiosks, self-checkout, home computer, mobile telephone, personal digital assistant (PDA). Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 3: Off merchant premises, attended. Examples: portable POS devices at trade shows, at service calls, or in taxis. - 4: Off merchant premises, unattended, or cardholder terminal. Examples: vending machines, home computer, mobile telephone, PDA. Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 5: On premises of cardholder, unattended. - 9: Unknown delivery mode. - S: Electronic delivery of product. Examples: music, software, or eTickets that are downloaded over the internet. - T: Physical delivery of product. Examples: music or software that is delivered by mail or by a courier. This field is supported only for **American Express Direct** and **CyberSource through VisaNet**. **CyberSource through VisaNet**\\ For MasterCard transactions, the only valid values are 2 and 4.
42
39
  attr_accessor :operating_environment
43
40
 
44
41
  attr_accessor :emv
@@ -49,13 +46,43 @@ module CyberSource
49
46
  # Card’s track 1 and 2 data. For all processors except FDMS Nashville, this value consists of one of the following: - Track 1 data - Track 2 data - Data for both tracks 1 and 2 For FDMS Nashville, this value consists of one of the following: - Track 1 data - Data for both tracks 1 and 2 Example: %B4111111111111111^SMITH/JOHN ^1612101976110000868000000?;4111111111111111=16121019761186800000?
50
47
  attr_accessor :track_data
51
48
 
49
+ # When connectivity is unavailable, the client software that is installed on the POS terminal can store a transaction in its memory and send it for authorization when connectivity is restored. This value is provided by the client software that is installed on the POS terminal. CyberSource does not forward this value to the processor. Instead, the value is forwarded to the CyberSource reporting functionality. Possible values: - Y: Transaction was stored and then forwarded. - N (default): Transaction was not stored and then forwarded. This field is supported only on American Express Direct, FDC Nashville Global, and SIX.
50
+ attr_accessor :store_and_forward_indicator
51
+
52
+ attr_accessor :cardholder_verification_method
53
+
54
+ attr_accessor :terminal_input_capability
55
+
56
+ # Indicates whether the terminal can capture the card. Possible values: - 1: Terminal can capture card. - 0: Terminal cannot capture card. This field is supported only on American Express Direct.
57
+ attr_accessor :terminal_card_capture_capability
58
+
59
+ # Indicates whether the terminal can print or display messages. Possible values: - 1: Neither - 2: Print only - 3: Display only - 4: Print and display This field is supported only on American Express Direct.
60
+ attr_accessor :terminal_output_capability
61
+
62
+ # Maximum PIN length that the terminal can capture. Possible values: - 0: No PIN capture capability - 1: PIN capture capability unknown - 4: Four characters - 5: Five characters - 6: Six characters - 7: Seven characters - 8: Eight characters - 9: Nine characters - 10: Ten characters - 11: Eleven characters - 12: Twelve characters This field is supported only on American Express Direct and SIX.
63
+ attr_accessor :terminal_pin_capability
64
+
65
+ # Value created by the client software that uniquely identifies the POS device. This value is provided by the client software that is installed on the POS terminal. CyberSource does not forward this value to the processor. Instead, the value is forwarded to the CyberSource reporting functionality. This field is supported only on American Express Direct, FDC Nashville Global, and SIX.
66
+ attr_accessor :device_id
67
+
68
+ # Format that is used to encode the PIN block. This value is provided by the client software that is installed on the POS terminal. Possible values: - 0: ISO 9564 format 0 - 1: ISO 9564 format 1 - 2: ISO 9564 format 2 - 3: ISO 9564 format 3 In the Credit Card Guide for the auth service: This field is supported only on American Express Direct, FDC Nashville Global, and SIX.
69
+ attr_accessor :pin_block_encoding_format
70
+
71
+ # Encrypted PIN. This value is provided by the client software that is installed on the POS terminal. In the Credit Card Guide for the auth service: This field is supported only on American Express Direct, FDC Nashville Global, and SIX.
72
+ attr_accessor :encrypted_pin
73
+
74
+ # This is a combination of the device's unique identifier and a transaction counter that is used in the process of decrypting the encrypted PIN. For all terminals that are using derived unique key per transaction (DUKPT) encryption, this is generated as a single number within the terminal.
75
+ attr_accessor :encrypted_key_serial_number
76
+
77
+ # Version of the software installed on the POS terminal. This value is provided by the client software that is installed on the POS terminal. CyberSource does not forward this value to the processor. Instead, the value is forwarded to the CyberSource reporting functionality. This field is supported only on American Express Direct, FDC Nashville Global, and SIX.
78
+ attr_accessor :partner_sdk_version
79
+
52
80
  # Attribute mapping from ruby-style variable name to JSON key.
53
81
  def self.attribute_map
54
82
  {
55
83
  :'terminal_id' => :'terminalId',
56
84
  :'terminal_serial_number' => :'terminalSerialNumber',
57
85
  :'lane_number' => :'laneNumber',
58
- :'card_present' => :'cardPresent',
59
86
  :'cat_level' => :'catLevel',
60
87
  :'entry_mode' => :'entryMode',
61
88
  :'terminal_capability' => :'terminalCapability',
@@ -63,7 +90,18 @@ module CyberSource
63
90
  :'operating_environment' => :'operatingEnvironment',
64
91
  :'emv' => :'emv',
65
92
  :'amex_capn_data' => :'amexCapnData',
66
- :'track_data' => :'trackData'
93
+ :'track_data' => :'trackData',
94
+ :'store_and_forward_indicator' => :'storeAndForwardIndicator',
95
+ :'cardholder_verification_method' => :'cardholderVerificationMethod',
96
+ :'terminal_input_capability' => :'terminalInputCapability',
97
+ :'terminal_card_capture_capability' => :'terminalCardCaptureCapability',
98
+ :'terminal_output_capability' => :'terminalOutputCapability',
99
+ :'terminal_pin_capability' => :'terminalPinCapability',
100
+ :'device_id' => :'deviceId',
101
+ :'pin_block_encoding_format' => :'pinBlockEncodingFormat',
102
+ :'encrypted_pin' => :'encryptedPin',
103
+ :'encrypted_key_serial_number' => :'encryptedKeySerialNumber',
104
+ :'partner_sdk_version' => :'partnerSdkVersion'
67
105
  }
68
106
  end
69
107
 
@@ -73,7 +111,6 @@ module CyberSource
73
111
  :'terminal_id' => :'String',
74
112
  :'terminal_serial_number' => :'String',
75
113
  :'lane_number' => :'String',
76
- :'card_present' => :'BOOLEAN',
77
114
  :'cat_level' => :'Integer',
78
115
  :'entry_mode' => :'String',
79
116
  :'terminal_capability' => :'Integer',
@@ -81,7 +118,18 @@ module CyberSource
81
118
  :'operating_environment' => :'String',
82
119
  :'emv' => :'Ptsv2paymentsPointOfSaleInformationEmv',
83
120
  :'amex_capn_data' => :'String',
84
- :'track_data' => :'String'
121
+ :'track_data' => :'String',
122
+ :'store_and_forward_indicator' => :'String',
123
+ :'cardholder_verification_method' => :'Array<String>',
124
+ :'terminal_input_capability' => :'Array<String>',
125
+ :'terminal_card_capture_capability' => :'String',
126
+ :'terminal_output_capability' => :'String',
127
+ :'terminal_pin_capability' => :'Integer',
128
+ :'device_id' => :'String',
129
+ :'pin_block_encoding_format' => :'Integer',
130
+ :'encrypted_pin' => :'String',
131
+ :'encrypted_key_serial_number' => :'String',
132
+ :'partner_sdk_version' => :'String'
85
133
  }
86
134
  end
87
135
 
@@ -105,10 +153,6 @@ module CyberSource
105
153
  self.lane_number = attributes[:'laneNumber']
106
154
  end
107
155
 
108
- if attributes.has_key?(:'cardPresent')
109
- self.card_present = attributes[:'cardPresent']
110
- end
111
-
112
156
  if attributes.has_key?(:'catLevel')
113
157
  self.cat_level = attributes[:'catLevel']
114
158
  end
@@ -140,6 +184,54 @@ module CyberSource
140
184
  if attributes.has_key?(:'trackData')
141
185
  self.track_data = attributes[:'trackData']
142
186
  end
187
+
188
+ if attributes.has_key?(:'storeAndForwardIndicator')
189
+ self.store_and_forward_indicator = attributes[:'storeAndForwardIndicator']
190
+ end
191
+
192
+ if attributes.has_key?(:'cardholderVerificationMethod')
193
+ if (value = attributes[:'cardholderVerificationMethod']).is_a?(Array)
194
+ self.cardholder_verification_method = value
195
+ end
196
+ end
197
+
198
+ if attributes.has_key?(:'terminalInputCapability')
199
+ if (value = attributes[:'terminalInputCapability']).is_a?(Array)
200
+ self.terminal_input_capability = value
201
+ end
202
+ end
203
+
204
+ if attributes.has_key?(:'terminalCardCaptureCapability')
205
+ self.terminal_card_capture_capability = attributes[:'terminalCardCaptureCapability']
206
+ end
207
+
208
+ if attributes.has_key?(:'terminalOutputCapability')
209
+ self.terminal_output_capability = attributes[:'terminalOutputCapability']
210
+ end
211
+
212
+ if attributes.has_key?(:'terminalPinCapability')
213
+ self.terminal_pin_capability = attributes[:'terminalPinCapability']
214
+ end
215
+
216
+ if attributes.has_key?(:'deviceId')
217
+ self.device_id = attributes[:'deviceId']
218
+ end
219
+
220
+ if attributes.has_key?(:'pinBlockEncodingFormat')
221
+ self.pin_block_encoding_format = attributes[:'pinBlockEncodingFormat']
222
+ end
223
+
224
+ if attributes.has_key?(:'encryptedPin')
225
+ self.encrypted_pin = attributes[:'encryptedPin']
226
+ end
227
+
228
+ if attributes.has_key?(:'encryptedKeySerialNumber')
229
+ self.encrypted_key_serial_number = attributes[:'encryptedKeySerialNumber']
230
+ end
231
+
232
+ if attributes.has_key?(:'partnerSdkVersion')
233
+ self.partner_sdk_version = attributes[:'partnerSdkVersion']
234
+ end
143
235
  end
144
236
 
145
237
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -150,6 +242,10 @@ module CyberSource
150
242
  invalid_properties.push('invalid value for "terminal_id", the character length must be smaller than or equal to 8.')
151
243
  end
152
244
 
245
+ if !@terminal_serial_number.nil? && @terminal_serial_number.to_s.length > 32
246
+ invalid_properties.push('invalid value for "terminal_serial_number", the character length must be smaller than or equal to 32.')
247
+ end
248
+
153
249
  if !@lane_number.nil? && @lane_number.to_s.length > 8
154
250
  invalid_properties.push('invalid value for "lane_number", the character length must be smaller than or equal to 8.')
155
251
  end
@@ -190,6 +286,38 @@ module CyberSource
190
286
  invalid_properties.push('invalid value for "amex_capn_data", the character length must be smaller than or equal to 12.')
191
287
  end
192
288
 
289
+ if !@store_and_forward_indicator.nil? && @store_and_forward_indicator.to_s.length > 1
290
+ invalid_properties.push('invalid value for "store_and_forward_indicator", the character length must be smaller than or equal to 1.')
291
+ end
292
+
293
+ if !@terminal_card_capture_capability.nil? && @terminal_card_capture_capability.to_s.length > 1
294
+ invalid_properties.push('invalid value for "terminal_card_capture_capability", the character length must be smaller than or equal to 1.')
295
+ end
296
+
297
+ if !@terminal_output_capability.nil? && @terminal_output_capability.to_s.length > 1
298
+ invalid_properties.push('invalid value for "terminal_output_capability", the character length must be smaller than or equal to 1.')
299
+ end
300
+
301
+ if !@device_id.nil? && @device_id.to_s.length > 32
302
+ invalid_properties.push('invalid value for "device_id", the character length must be smaller than or equal to 32.')
303
+ end
304
+
305
+ if !@pin_block_encoding_format.nil? && @pin_block_encoding_format > 9
306
+ invalid_properties.push('invalid value for "pin_block_encoding_format", must be smaller than or equal to 9.')
307
+ end
308
+
309
+ if !@encrypted_pin.nil? && @encrypted_pin.to_s.length > 16
310
+ invalid_properties.push('invalid value for "encrypted_pin", the character length must be smaller than or equal to 16.')
311
+ end
312
+
313
+ if !@encrypted_key_serial_number.nil? && @encrypted_key_serial_number.to_s.length > 20
314
+ invalid_properties.push('invalid value for "encrypted_key_serial_number", the character length must be smaller than or equal to 20.')
315
+ end
316
+
317
+ if !@partner_sdk_version.nil? && @partner_sdk_version.to_s.length > 32
318
+ invalid_properties.push('invalid value for "partner_sdk_version", the character length must be smaller than or equal to 32.')
319
+ end
320
+
193
321
  invalid_properties
194
322
  end
195
323
 
@@ -197,6 +325,7 @@ module CyberSource
197
325
  # @return true if the model is valid
198
326
  def valid?
199
327
  return false if !@terminal_id.nil? && @terminal_id.to_s.length > 8
328
+ return false if !@terminal_serial_number.nil? && @terminal_serial_number.to_s.length > 32
200
329
  return false if !@lane_number.nil? && @lane_number.to_s.length > 8
201
330
  return false if !@cat_level.nil? && @cat_level > 9
202
331
  return false if !@cat_level.nil? && @cat_level < 1
@@ -207,6 +336,14 @@ module CyberSource
207
336
  return false if !@pin_entry_capability.nil? && @pin_entry_capability < 1
208
337
  return false if !@operating_environment.nil? && @operating_environment.to_s.length > 1
209
338
  return false if !@amex_capn_data.nil? && @amex_capn_data.to_s.length > 12
339
+ return false if !@store_and_forward_indicator.nil? && @store_and_forward_indicator.to_s.length > 1
340
+ return false if !@terminal_card_capture_capability.nil? && @terminal_card_capture_capability.to_s.length > 1
341
+ return false if !@terminal_output_capability.nil? && @terminal_output_capability.to_s.length > 1
342
+ return false if !@device_id.nil? && @device_id.to_s.length > 32
343
+ return false if !@pin_block_encoding_format.nil? && @pin_block_encoding_format > 9
344
+ return false if !@encrypted_pin.nil? && @encrypted_pin.to_s.length > 16
345
+ return false if !@encrypted_key_serial_number.nil? && @encrypted_key_serial_number.to_s.length > 20
346
+ return false if !@partner_sdk_version.nil? && @partner_sdk_version.to_s.length > 32
210
347
  true
211
348
  end
212
349
 
@@ -220,6 +357,16 @@ module CyberSource
220
357
  @terminal_id = terminal_id
221
358
  end
222
359
 
360
+ # Custom attribute writer method with validation
361
+ # @param [Object] terminal_serial_number Value to be assigned
362
+ def terminal_serial_number=(terminal_serial_number)
363
+ if !terminal_serial_number.nil? && terminal_serial_number.to_s.length > 32
364
+ fail ArgumentError, 'invalid value for "terminal_serial_number", the character length must be smaller than or equal to 32.'
365
+ end
366
+
367
+ @terminal_serial_number = terminal_serial_number
368
+ end
369
+
223
370
  # Custom attribute writer method with validation
224
371
  # @param [Object] lane_number Value to be assigned
225
372
  def lane_number=(lane_number)
@@ -302,6 +449,86 @@ module CyberSource
302
449
  @amex_capn_data = amex_capn_data
303
450
  end
304
451
 
452
+ # Custom attribute writer method with validation
453
+ # @param [Object] store_and_forward_indicator Value to be assigned
454
+ def store_and_forward_indicator=(store_and_forward_indicator)
455
+ if !store_and_forward_indicator.nil? && store_and_forward_indicator.to_s.length > 1
456
+ fail ArgumentError, 'invalid value for "store_and_forward_indicator", the character length must be smaller than or equal to 1.'
457
+ end
458
+
459
+ @store_and_forward_indicator = store_and_forward_indicator
460
+ end
461
+
462
+ # Custom attribute writer method with validation
463
+ # @param [Object] terminal_card_capture_capability Value to be assigned
464
+ def terminal_card_capture_capability=(terminal_card_capture_capability)
465
+ if !terminal_card_capture_capability.nil? && terminal_card_capture_capability.to_s.length > 1
466
+ fail ArgumentError, 'invalid value for "terminal_card_capture_capability", the character length must be smaller than or equal to 1.'
467
+ end
468
+
469
+ @terminal_card_capture_capability = terminal_card_capture_capability
470
+ end
471
+
472
+ # Custom attribute writer method with validation
473
+ # @param [Object] terminal_output_capability Value to be assigned
474
+ def terminal_output_capability=(terminal_output_capability)
475
+ if !terminal_output_capability.nil? && terminal_output_capability.to_s.length > 1
476
+ fail ArgumentError, 'invalid value for "terminal_output_capability", the character length must be smaller than or equal to 1.'
477
+ end
478
+
479
+ @terminal_output_capability = terminal_output_capability
480
+ end
481
+
482
+ # Custom attribute writer method with validation
483
+ # @param [Object] device_id Value to be assigned
484
+ def device_id=(device_id)
485
+ if !device_id.nil? && device_id.to_s.length > 32
486
+ fail ArgumentError, 'invalid value for "device_id", the character length must be smaller than or equal to 32.'
487
+ end
488
+
489
+ @device_id = device_id
490
+ end
491
+
492
+ # Custom attribute writer method with validation
493
+ # @param [Object] pin_block_encoding_format Value to be assigned
494
+ def pin_block_encoding_format=(pin_block_encoding_format)
495
+ if !pin_block_encoding_format.nil? && pin_block_encoding_format > 9
496
+ fail ArgumentError, 'invalid value for "pin_block_encoding_format", must be smaller than or equal to 9.'
497
+ end
498
+
499
+ @pin_block_encoding_format = pin_block_encoding_format
500
+ end
501
+
502
+ # Custom attribute writer method with validation
503
+ # @param [Object] encrypted_pin Value to be assigned
504
+ def encrypted_pin=(encrypted_pin)
505
+ if !encrypted_pin.nil? && encrypted_pin.to_s.length > 16
506
+ fail ArgumentError, 'invalid value for "encrypted_pin", the character length must be smaller than or equal to 16.'
507
+ end
508
+
509
+ @encrypted_pin = encrypted_pin
510
+ end
511
+
512
+ # Custom attribute writer method with validation
513
+ # @param [Object] encrypted_key_serial_number Value to be assigned
514
+ def encrypted_key_serial_number=(encrypted_key_serial_number)
515
+ if !encrypted_key_serial_number.nil? && encrypted_key_serial_number.to_s.length > 20
516
+ fail ArgumentError, 'invalid value for "encrypted_key_serial_number", the character length must be smaller than or equal to 20.'
517
+ end
518
+
519
+ @encrypted_key_serial_number = encrypted_key_serial_number
520
+ end
521
+
522
+ # Custom attribute writer method with validation
523
+ # @param [Object] partner_sdk_version Value to be assigned
524
+ def partner_sdk_version=(partner_sdk_version)
525
+ if !partner_sdk_version.nil? && partner_sdk_version.to_s.length > 32
526
+ fail ArgumentError, 'invalid value for "partner_sdk_version", the character length must be smaller than or equal to 32.'
527
+ end
528
+
529
+ @partner_sdk_version = partner_sdk_version
530
+ end
531
+
305
532
  # Checks equality by comparing each attribute.
306
533
  # @param [Object] Object to be compared
307
534
  def ==(o)
@@ -310,7 +537,6 @@ module CyberSource
310
537
  terminal_id == o.terminal_id &&
311
538
  terminal_serial_number == o.terminal_serial_number &&
312
539
  lane_number == o.lane_number &&
313
- card_present == o.card_present &&
314
540
  cat_level == o.cat_level &&
315
541
  entry_mode == o.entry_mode &&
316
542
  terminal_capability == o.terminal_capability &&
@@ -318,7 +544,18 @@ module CyberSource
318
544
  operating_environment == o.operating_environment &&
319
545
  emv == o.emv &&
320
546
  amex_capn_data == o.amex_capn_data &&
321
- track_data == o.track_data
547
+ track_data == o.track_data &&
548
+ store_and_forward_indicator == o.store_and_forward_indicator &&
549
+ cardholder_verification_method == o.cardholder_verification_method &&
550
+ terminal_input_capability == o.terminal_input_capability &&
551
+ terminal_card_capture_capability == o.terminal_card_capture_capability &&
552
+ terminal_output_capability == o.terminal_output_capability &&
553
+ terminal_pin_capability == o.terminal_pin_capability &&
554
+ device_id == o.device_id &&
555
+ pin_block_encoding_format == o.pin_block_encoding_format &&
556
+ encrypted_pin == o.encrypted_pin &&
557
+ encrypted_key_serial_number == o.encrypted_key_serial_number &&
558
+ partner_sdk_version == o.partner_sdk_version
322
559
  end
323
560
 
324
561
  # @see the `==` method
@@ -330,7 +567,7 @@ module CyberSource
330
567
  # Calculates hash code according to all attributes.
331
568
  # @return [Fixnum] Hash code
332
569
  def hash
333
- [terminal_id, terminal_serial_number, lane_number, card_present, cat_level, entry_mode, terminal_capability, pin_entry_capability, operating_environment, emv, amex_capn_data, track_data].hash
570
+ [terminal_id, terminal_serial_number, lane_number, cat_level, entry_mode, terminal_capability, pin_entry_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].hash
334
571
  end
335
572
 
336
573
  # Builds the object from hash