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
@@ -14,26 +14,26 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsPointOfSaleInformationEmv
17
- # EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram
17
+ # EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. See \"Europay, MasterCard, Visa (EMV),\" page 10. For information about the individual tags, see the “Application Specification” section in the EMV 4.3 Specifications: http://emvco.com **Important** The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, and six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. **Important** For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram
18
18
  attr_accessor :tags
19
19
 
20
- # Method that was used to verify the cardholder's identity. Possible values: - **0**: No verification - **1**: Signature This field is supported only on **American Express Direct**.
21
- attr_accessor :cardholder_verification_method
20
+ # Method that was used to verify the cardholder's identity. Possible values: - **0**: No verification - **1**: Signature This field is supported only on **American Express Direct**.
21
+ attr_accessor :cardholder_verification_method_used
22
22
 
23
- # Number assigned to a specific card when two or more cards are associated with the same primary account number. This value enables issuers to distinguish among multiple cards that are linked to the same account. This value can also act as a tracking tool when reissuing cards. When this value is available, it is provided by the chip reader. When the chip reader does not provide this value, do not include this field in your request.
23
+ # Number assigned to a specific card when two or more cards are associated with the same primary account number. This value enables issuers to distinguish among multiple cards that are linked to the same account. This value can also act as a tracking tool when reissuing cards. When this value is available, it is provided by the chip reader. When the chip reader does not provide this value, do not include this field in your request. See \"Europay, MasterCard, Visa (EMV),\" page 10.
24
24
  attr_accessor :card_sequence_number
25
25
 
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 pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**.
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** - **false** (default) This field is supported only on **Chase Paymentech Solutions** and **GPN**.
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**.
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**. **NOTE**: Merchants must include this field in a request whenever a transaction must fall back to swiped mode.
30
30
  attr_accessor :fallback_condition
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
35
  :'tags' => :'tags',
36
- :'cardholder_verification_method' => :'cardholderVerificationMethod',
36
+ :'cardholder_verification_method_used' => :'cardholderVerificationMethodUsed',
37
37
  :'card_sequence_number' => :'cardSequenceNumber',
38
38
  :'fallback' => :'fallback',
39
39
  :'fallback_condition' => :'fallbackCondition'
@@ -44,7 +44,7 @@ module CyberSource
44
44
  def self.swagger_types
45
45
  {
46
46
  :'tags' => :'String',
47
- :'cardholder_verification_method' => :'Float',
47
+ :'cardholder_verification_method_used' => :'Float',
48
48
  :'card_sequence_number' => :'String',
49
49
  :'fallback' => :'BOOLEAN',
50
50
  :'fallback_condition' => :'Float'
@@ -63,8 +63,8 @@ module CyberSource
63
63
  self.tags = attributes[:'tags']
64
64
  end
65
65
 
66
- if attributes.has_key?(:'cardholderVerificationMethod')
67
- self.cardholder_verification_method = attributes[:'cardholderVerificationMethod']
66
+ if attributes.has_key?(:'cardholderVerificationMethodUsed')
67
+ self.cardholder_verification_method_used = attributes[:'cardholderVerificationMethodUsed']
68
68
  end
69
69
 
70
70
  if attributes.has_key?(:'cardSequenceNumber')
@@ -131,7 +131,7 @@ module CyberSource
131
131
  return true if self.equal?(o)
132
132
  self.class == o.class &&
133
133
  tags == o.tags &&
134
- cardholder_verification_method == o.cardholder_verification_method &&
134
+ cardholder_verification_method_used == o.cardholder_verification_method_used &&
135
135
  card_sequence_number == o.card_sequence_number &&
136
136
  fallback == o.fallback &&
137
137
  fallback_condition == o.fallback_condition
@@ -146,7 +146,7 @@ module CyberSource
146
146
  # Calculates hash code according to all attributes.
147
147
  # @return [Fixnum] Hash code
148
148
  def hash
149
- [tags, cardholder_verification_method, card_sequence_number, fallback, fallback_condition].hash
149
+ [tags, cardholder_verification_method_used, card_sequence_number, fallback, fallback_condition].hash
150
150
  end
151
151
 
152
152
  # Builds the object from hash
@@ -14,44 +14,44 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsProcessingInformation
17
- # Flag that specifies whether to also include capture service in the submitted request or not.
17
+ # Flag that specifies whether to also include capture service in the submitted request or not. Possible values: - **true** - **false** (default).
18
18
  attr_accessor :capture
19
19
 
20
- # Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**.
20
+ # Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. Contact CyberSource Customer Support to get the value for this field.
21
21
  attr_accessor :processor_id
22
22
 
23
- # Description of this field is not available.
23
+ # The description for this field is not available.
24
24
  attr_accessor :business_application_id
25
25
 
26
26
  # Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here.
27
27
  attr_accessor :commerce_indicator
28
28
 
29
- # Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay.
29
+ # Type of digital payment solution for the transaction. Possible Values: - **visacheckout**: Visa Checkout. This value is required for Visa Checkout transactions. See Visa Checkout Using the SCMP API. - **005**: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. See \"Masterpass,\" page 153.
30
30
  attr_accessor :payment_solution
31
31
 
32
32
  # Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22).
33
33
  attr_accessor :reconciliation_id
34
34
 
35
- # Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments.
35
+ # Value that links the current authorization request to the original authorization request. Set this value to the ID that was returned in the reply message from the original authorization request. This value is used for: - Partial authorizations: See \"Partial Authorizations,\" page 88. - Split shipments: See \"Split Shipments,\" page 210.
36
36
  attr_accessor :link_id
37
37
 
38
38
  # Set this field to 3 to indicate that the request includes Level III data.
39
39
  attr_accessor :purchase_level
40
40
 
41
- # Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**.
41
+ # Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Worldpay VAP**. See \"Report Groups,\" page 234.
42
42
  attr_accessor :report_group
43
43
 
44
- # Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field.
44
+ # Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. For more details, see Visa Checkout Using the SCMP API.
45
45
  attr_accessor :visa_checkout_id
46
46
 
47
- attr_accessor :issuer
48
-
49
47
  attr_accessor :authorization_options
50
48
 
51
49
  attr_accessor :capture_options
52
50
 
53
51
  attr_accessor :recurring_options
54
52
 
53
+ attr_accessor :bank_transfer_options
54
+
55
55
  # Attribute mapping from ruby-style variable name to JSON key.
56
56
  def self.attribute_map
57
57
  {
@@ -65,10 +65,10 @@ module CyberSource
65
65
  :'purchase_level' => :'purchaseLevel',
66
66
  :'report_group' => :'reportGroup',
67
67
  :'visa_checkout_id' => :'visaCheckoutId',
68
- :'issuer' => :'issuer',
69
68
  :'authorization_options' => :'authorizationOptions',
70
69
  :'capture_options' => :'captureOptions',
71
- :'recurring_options' => :'recurringOptions'
70
+ :'recurring_options' => :'recurringOptions',
71
+ :'bank_transfer_options' => :'bankTransferOptions'
72
72
  }
73
73
  end
74
74
 
@@ -85,10 +85,10 @@ module CyberSource
85
85
  :'purchase_level' => :'String',
86
86
  :'report_group' => :'String',
87
87
  :'visa_checkout_id' => :'String',
88
- :'issuer' => :'Ptsv2paymentsProcessingInformationIssuer',
89
88
  :'authorization_options' => :'Ptsv2paymentsProcessingInformationAuthorizationOptions',
90
89
  :'capture_options' => :'Ptsv2paymentsProcessingInformationCaptureOptions',
91
- :'recurring_options' => :'Ptsv2paymentsProcessingInformationRecurringOptions'
90
+ :'recurring_options' => :'Ptsv2paymentsProcessingInformationRecurringOptions',
91
+ :'bank_transfer_options' => :'Ptsv2paymentsProcessingInformationBankTransferOptions'
92
92
  }
93
93
  end
94
94
 
@@ -142,10 +142,6 @@ module CyberSource
142
142
  self.visa_checkout_id = attributes[:'visaCheckoutId']
143
143
  end
144
144
 
145
- if attributes.has_key?(:'issuer')
146
- self.issuer = attributes[:'issuer']
147
- end
148
-
149
145
  if attributes.has_key?(:'authorizationOptions')
150
146
  self.authorization_options = attributes[:'authorizationOptions']
151
147
  end
@@ -157,6 +153,10 @@ module CyberSource
157
153
  if attributes.has_key?(:'recurringOptions')
158
154
  self.recurring_options = attributes[:'recurringOptions']
159
155
  end
156
+
157
+ if attributes.has_key?(:'bankTransferOptions')
158
+ self.bank_transfer_options = attributes[:'bankTransferOptions']
159
+ end
160
160
  end
161
161
 
162
162
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -307,10 +307,10 @@ module CyberSource
307
307
  purchase_level == o.purchase_level &&
308
308
  report_group == o.report_group &&
309
309
  visa_checkout_id == o.visa_checkout_id &&
310
- issuer == o.issuer &&
311
310
  authorization_options == o.authorization_options &&
312
311
  capture_options == o.capture_options &&
313
- recurring_options == o.recurring_options
312
+ recurring_options == o.recurring_options &&
313
+ bank_transfer_options == o.bank_transfer_options
314
314
  end
315
315
 
316
316
  # @see the `==` method
@@ -322,7 +322,7 @@ module CyberSource
322
322
  # Calculates hash code according to all attributes.
323
323
  # @return [Fixnum] Hash code
324
324
  def hash
325
- [capture, processor_id, business_application_id, commerce_indicator, payment_solution, reconciliation_id, link_id, purchase_level, report_group, visa_checkout_id, issuer, authorization_options, capture_options, recurring_options].hash
325
+ [capture, processor_id, business_application_id, commerce_indicator, payment_solution, reconciliation_id, link_id, purchase_level, report_group, visa_checkout_id, authorization_options, capture_options, recurring_options, bank_transfer_options].hash
326
326
  end
327
327
 
328
328
  # Builds the object from hash
@@ -14,35 +14,41 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsProcessingInformationAuthorizationOptions
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. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
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 \"Automatic Captures,\" page 33. **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. For more information, see \"Forced Captures,\" page 123. **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,\" page 84. For processor-specific information, see the auth_type 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 :auth_type
19
19
 
20
- # Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
20
+ # Authorization code. **Forced Capture**\\ Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization**\\ Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the _auth_code_ 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 :verbal_auth_code
22
22
 
23
23
  # Transaction ID (TID).
24
24
  attr_accessor :verbal_auth_transaction_id
25
25
 
26
- # Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization For processor-specific information, see the auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
26
+ # Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization To set the default for this field, contact CyberSource Customer Support. See \"Final Authorization Indicator,\" page 119. Barclays and Elavon The default for Barclays and Elavon is 1 (final authorization). To change the default for this field, contact CyberSource Customer Support. CyberSource through VisaNet When the value for this field is 0, it corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators When the value for this field is 1, it does not correspond to any data in the TC 33 capture file. For processor-specific information, see the auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
27
27
  attr_accessor :auth_indicator
28
28
 
29
- # Flag that indicates whether the transaction is enabled for partial authorization or not. When your request includes this field, this value overrides the information in your CyberSource account. For processor-specific information, see the auth_partial_auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
29
+ # Flag that indicates whether the transaction is enabled for partial authorization or not. When your request includes this field, this value overrides the information in your CyberSource account. For processor-specific information, see the _auth_partial_auth_indicator_ field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) **CyberSource through VisaNet**\\ To set the default for this field, contact CyberSource Customer Support. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators Possible values: - **true** Enable the transaction for partial authorization. - **false** Do not enable the transaction for partial authorization.
30
30
  attr_accessor :partial_auth_indicator
31
31
 
32
- # Flag that indicates whether to return balance information.
32
+ # Flag that indicates whether to return balance information. Possible values: - **true** - **false**
33
33
  attr_accessor :balance_inquiry
34
34
 
35
- # Flag that indicates whether to allow the capture service to run even when the payment receives an AVS decline.
35
+ # Flag that indicates whether to allow the capture service to run, even when the payment receives an AVS decline. Possible values: - **true** Ignore the results of AVS checking and run the capture service. - **false** (default): If the authorization receives an AVS decline, do not run the capture service.
36
36
  attr_accessor :ignore_avs_result
37
37
 
38
- # An array of AVS flags that cause the reply flag to be returned. `Important` To receive declines for the AVS code N, include the value N in the array.
38
+ # An array of AVS flags that cause the reply flag to be returned. `Important` To receive declines for the AVS code N, include the value N in the array. Possible values: - D - A - V - S - N - O
39
39
  attr_accessor :decline_avs_flags
40
40
 
41
- # Flag that indicates whether to allow the capture service to run even when the payment receives a CVN decline.
41
+ # Flag that indicates whether to allow the capture service to run even when the payment receives a CVN decline. Possible values: - **true** Ignore the results of CVN checking and run the capture service. - **false** (default) If the authorization receives a CVN decline, do not run the capture service.
42
42
  attr_accessor :ignore_cv_result
43
43
 
44
44
  attr_accessor :initiator
45
45
 
46
+ # Flag that indicates that this is a payment for a bill or for an existing contractual loan. See \"Visa Bill Payments,\" page 220, and \"Visa Debt Repayments,\" page 221, for lists of processors that support these features. Possible values: - true: Bill payment or loan payment. - false (default): Not a bill payment or loan payment.
47
+ attr_accessor :bill_payment
48
+
49
+ # Reason for the payment. Possible values: - 001: Utility payment - 002: Government services - 003: Mobile phone top-up - 004: Coupon payment The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR0 - Position: 48-50 - Field: Bill Payment Transaction Type Identifier This field is supported only for bill payments in Brazil with Mastercard on CyberSource through VisaNet. See Mastercard Bill Payments. Note For information about bill payments with Visa, see Visa Bill Payments.
50
+ attr_accessor :bill_payment_type
51
+
46
52
  class EnumAttributeValidator
47
53
  attr_reader :datatype
48
54
  attr_reader :allowable_values
@@ -77,7 +83,9 @@ module CyberSource
77
83
  :'ignore_avs_result' => :'ignoreAvsResult',
78
84
  :'decline_avs_flags' => :'declineAvsFlags',
79
85
  :'ignore_cv_result' => :'ignoreCvResult',
80
- :'initiator' => :'initiator'
86
+ :'initiator' => :'initiator',
87
+ :'bill_payment' => :'billPayment',
88
+ :'bill_payment_type' => :'billPaymentType'
81
89
  }
82
90
  end
83
91
 
@@ -93,7 +101,9 @@ module CyberSource
93
101
  :'ignore_avs_result' => :'BOOLEAN',
94
102
  :'decline_avs_flags' => :'Array<String>',
95
103
  :'ignore_cv_result' => :'BOOLEAN',
96
- :'initiator' => :'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator'
104
+ :'initiator' => :'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator',
105
+ :'bill_payment' => :'BOOLEAN',
106
+ :'bill_payment_type' => :'String'
97
107
  }
98
108
  end
99
109
 
@@ -150,6 +160,14 @@ module CyberSource
150
160
  if attributes.has_key?(:'initiator')
151
161
  self.initiator = attributes[:'initiator']
152
162
  end
163
+
164
+ if attributes.has_key?(:'billPayment')
165
+ self.bill_payment = attributes[:'billPayment']
166
+ end
167
+
168
+ if attributes.has_key?(:'billPaymentType')
169
+ self.bill_payment_type = attributes[:'billPaymentType']
170
+ end
153
171
  end
154
172
 
155
173
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -239,7 +257,9 @@ module CyberSource
239
257
  ignore_avs_result == o.ignore_avs_result &&
240
258
  decline_avs_flags == o.decline_avs_flags &&
241
259
  ignore_cv_result == o.ignore_cv_result &&
242
- initiator == o.initiator
260
+ initiator == o.initiator &&
261
+ bill_payment == o.bill_payment &&
262
+ bill_payment_type == o.bill_payment_type
243
263
  end
244
264
 
245
265
  # @see the `==` method
@@ -251,7 +271,7 @@ module CyberSource
251
271
  # Calculates hash code according to all attributes.
252
272
  # @return [Fixnum] Hash code
253
273
  def hash
254
- [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].hash
274
+ [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].hash
255
275
  end
256
276
 
257
277
  # Builds the object from hash
@@ -14,13 +14,13 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator
17
- # This field indicates whether the transaction is a merchant-initiated transaction or customer-initiated transaction.
17
+ # This field indicates whether the transaction is a merchant-initiated transaction or customer-initiated transaction. Valid values: - **customer** - **merchant**
18
18
  attr_accessor :type
19
19
 
20
- # Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not.
20
+ # Flag that indicates whether merchant intends to use this transaction to store payment credentials for follow-up merchant-initiated 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. See \"Merchant-Initiated Transactions,\" page 177. **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
- # Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not.
23
+ # Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. Possible values: - **true** - **false**
24
24
  attr_accessor :stored_credential_used
25
25
 
26
26
  attr_accessor :merchant_initiated_transaction
@@ -63,7 +63,7 @@ module CyberSource
63
63
  :'type' => :'String',
64
64
  :'credential_stored_on_file' => :'BOOLEAN',
65
65
  :'stored_credential_used' => :'BOOLEAN',
66
- :'merchant_initiated_transaction' => :'Ptsv2paymentsProcessingInformationAuthorizationOptionsMerchantInitiatedTransaction'
66
+ :'merchant_initiated_transaction' => :'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction'
67
67
  }
68
68
  end
69
69
 
@@ -0,0 +1,424 @@
1
+ =begin
2
+ #CyberSource Flex API
3
+
4
+ #Simple PAN tokenization service
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class Ptsv2paymentsProcessingInformationBankTransferOptions
17
+ # List of AVS flags that cause the request to be declined for AVS reasons. Use a space to separate the flags in the list. Important Make sure that you include the value N in the list if you want to receive declines for the AVS code N.
18
+ attr_accessor :decline_avs_flags
19
+
20
+ # Authorization method used for the transaction. See \"SEC Codes,\" page 89. TeleCheck Accepts only the following values: - **PPD** - **TEL** - **WEB**
21
+ attr_accessor :sec_code
22
+
23
+ # City in which the terminal is located. If more than four alphanumeric characters are submitted, the transaction will be declined. You cannot include any special characters.
24
+ attr_accessor :terminal_city
25
+
26
+ # State in which the terminal is located. If more than two alphanumeric characters are submitted, the transaction will be declined. You cannot include any special characters.
27
+ attr_accessor :terminal_state
28
+
29
+ # Effective date for the transaction. The effective date must be within 45 days of the current day. If you do not include this value, CyberSource sets the effective date to the next business day. Format: `MMDDYYYY` Supported only for the CyberSource ACH Service.
30
+ attr_accessor :effective_date
31
+
32
+ # Identifier for a partial payment or partial credit. The value for each debit request or credit request must be unique within the scope of the order. See \"Multiple Partial Credits,\" page 41.
33
+ attr_accessor :partial_payment_id
34
+
35
+ # Payment related information. This information is included on the customer’s statement.
36
+ attr_accessor :customer_memo
37
+
38
+ # Flag that indicates whether to process the payment. Use with deferred payments. See \"Deferred and Partial Payments,\" page 37. Possible values: - **0**: Standard debit with immediate payment (default). - **1**: For deferred payments, indicates that this is a deferred payment and that you will send a debit request with `paymentCategoryCode = 2` in the future. - **2**: For deferred payments, indicates notification to initiate payment. Chase Paymentech Solutions and TeleCheck Use for deferred and partial payments. CyberSource ACH Service Not used. RBS WorldPay Atlanta Not used.
39
+ attr_accessor :payment_category_code
40
+
41
+ # Method used for settlement. Possible values: - **A**: Automated Clearing House (default for credits and for transactions using Canadian dollars) - **F**: Facsimile draft (U.S. dollars only) - **B**: Best possible (U.S. dollars only) (default if the field has not already been configured for your merchant ID) See \"Settlement Delivery Methods,\" page 44.
42
+ attr_accessor :settlement_method
43
+
44
+ # Level of fraud screening. Possible values: - **1**: Validation — default if the field has not already been configured for your merchant ID - **2**: Verification For a description of this feature and a list of supported processors, see \"Verification and Validation,\" page 24.
45
+ attr_accessor :fraud_screening_level
46
+
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'decline_avs_flags' => :'declineAvsFlags',
51
+ :'sec_code' => :'secCode',
52
+ :'terminal_city' => :'terminalCity',
53
+ :'terminal_state' => :'terminalState',
54
+ :'effective_date' => :'effectiveDate',
55
+ :'partial_payment_id' => :'partialPaymentId',
56
+ :'customer_memo' => :'customerMemo',
57
+ :'payment_category_code' => :'paymentCategoryCode',
58
+ :'settlement_method' => :'settlementMethod',
59
+ :'fraud_screening_level' => :'fraudScreeningLevel'
60
+ }
61
+ end
62
+
63
+ # Attribute type mapping.
64
+ def self.swagger_types
65
+ {
66
+ :'decline_avs_flags' => :'String',
67
+ :'sec_code' => :'String',
68
+ :'terminal_city' => :'String',
69
+ :'terminal_state' => :'String',
70
+ :'effective_date' => :'String',
71
+ :'partial_payment_id' => :'String',
72
+ :'customer_memo' => :'String',
73
+ :'payment_category_code' => :'String',
74
+ :'settlement_method' => :'String',
75
+ :'fraud_screening_level' => :'String'
76
+ }
77
+ end
78
+
79
+ # Initializes the object
80
+ # @param [Hash] attributes Model attributes in the form of hash
81
+ def initialize(attributes = {})
82
+ return unless attributes.is_a?(Hash)
83
+
84
+ # convert string to symbol for hash key
85
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
86
+
87
+ if attributes.has_key?(:'declineAvsFlags')
88
+ self.decline_avs_flags = attributes[:'declineAvsFlags']
89
+ end
90
+
91
+ if attributes.has_key?(:'secCode')
92
+ self.sec_code = attributes[:'secCode']
93
+ end
94
+
95
+ if attributes.has_key?(:'terminalCity')
96
+ self.terminal_city = attributes[:'terminalCity']
97
+ end
98
+
99
+ if attributes.has_key?(:'terminalState')
100
+ self.terminal_state = attributes[:'terminalState']
101
+ end
102
+
103
+ if attributes.has_key?(:'effectiveDate')
104
+ self.effective_date = attributes[:'effectiveDate']
105
+ end
106
+
107
+ if attributes.has_key?(:'partialPaymentId')
108
+ self.partial_payment_id = attributes[:'partialPaymentId']
109
+ end
110
+
111
+ if attributes.has_key?(:'customerMemo')
112
+ self.customer_memo = attributes[:'customerMemo']
113
+ end
114
+
115
+ if attributes.has_key?(:'paymentCategoryCode')
116
+ self.payment_category_code = attributes[:'paymentCategoryCode']
117
+ end
118
+
119
+ if attributes.has_key?(:'settlementMethod')
120
+ self.settlement_method = attributes[:'settlementMethod']
121
+ end
122
+
123
+ if attributes.has_key?(:'fraudScreeningLevel')
124
+ self.fraud_screening_level = attributes[:'fraudScreeningLevel']
125
+ end
126
+ end
127
+
128
+ # Show invalid properties with the reasons. Usually used together with valid?
129
+ # @return Array for valid properties with the reasons
130
+ def list_invalid_properties
131
+ invalid_properties = Array.new
132
+ if !@decline_avs_flags.nil? && @decline_avs_flags.to_s.length > 15
133
+ invalid_properties.push('invalid value for "decline_avs_flags", the character length must be smaller than or equal to 15.')
134
+ end
135
+
136
+ if !@sec_code.nil? && @sec_code.to_s.length > 3
137
+ invalid_properties.push('invalid value for "sec_code", the character length must be smaller than or equal to 3.')
138
+ end
139
+
140
+ if !@terminal_city.nil? && @terminal_city.to_s.length > 4
141
+ invalid_properties.push('invalid value for "terminal_city", the character length must be smaller than or equal to 4.')
142
+ end
143
+
144
+ if !@terminal_state.nil? && @terminal_state.to_s.length > 2
145
+ invalid_properties.push('invalid value for "terminal_state", the character length must be smaller than or equal to 2.')
146
+ end
147
+
148
+ if !@effective_date.nil? && @effective_date.to_s.length > 8
149
+ invalid_properties.push('invalid value for "effective_date", the character length must be smaller than or equal to 8.')
150
+ end
151
+
152
+ if !@partial_payment_id.nil? && @partial_payment_id.to_s.length > 25
153
+ invalid_properties.push('invalid value for "partial_payment_id", the character length must be smaller than or equal to 25.')
154
+ end
155
+
156
+ if !@customer_memo.nil? && @customer_memo.to_s.length > 80
157
+ invalid_properties.push('invalid value for "customer_memo", the character length must be smaller than or equal to 80.')
158
+ end
159
+
160
+ if !@payment_category_code.nil? && @payment_category_code.to_s.length > 1
161
+ invalid_properties.push('invalid value for "payment_category_code", the character length must be smaller than or equal to 1.')
162
+ end
163
+
164
+ if !@settlement_method.nil? && @settlement_method.to_s.length > 1
165
+ invalid_properties.push('invalid value for "settlement_method", the character length must be smaller than or equal to 1.')
166
+ end
167
+
168
+ if !@fraud_screening_level.nil? && @fraud_screening_level.to_s.length > 1
169
+ invalid_properties.push('invalid value for "fraud_screening_level", the character length must be smaller than or equal to 1.')
170
+ end
171
+
172
+ invalid_properties
173
+ end
174
+
175
+ # Check to see if the all the properties in the model are valid
176
+ # @return true if the model is valid
177
+ def valid?
178
+ return false if !@decline_avs_flags.nil? && @decline_avs_flags.to_s.length > 15
179
+ return false if !@sec_code.nil? && @sec_code.to_s.length > 3
180
+ return false if !@terminal_city.nil? && @terminal_city.to_s.length > 4
181
+ return false if !@terminal_state.nil? && @terminal_state.to_s.length > 2
182
+ return false if !@effective_date.nil? && @effective_date.to_s.length > 8
183
+ return false if !@partial_payment_id.nil? && @partial_payment_id.to_s.length > 25
184
+ return false if !@customer_memo.nil? && @customer_memo.to_s.length > 80
185
+ return false if !@payment_category_code.nil? && @payment_category_code.to_s.length > 1
186
+ return false if !@settlement_method.nil? && @settlement_method.to_s.length > 1
187
+ return false if !@fraud_screening_level.nil? && @fraud_screening_level.to_s.length > 1
188
+ true
189
+ end
190
+
191
+ # Custom attribute writer method with validation
192
+ # @param [Object] decline_avs_flags Value to be assigned
193
+ def decline_avs_flags=(decline_avs_flags)
194
+ if !decline_avs_flags.nil? && decline_avs_flags.to_s.length > 15
195
+ fail ArgumentError, 'invalid value for "decline_avs_flags", the character length must be smaller than or equal to 15.'
196
+ end
197
+
198
+ @decline_avs_flags = decline_avs_flags
199
+ end
200
+
201
+ # Custom attribute writer method with validation
202
+ # @param [Object] sec_code Value to be assigned
203
+ def sec_code=(sec_code)
204
+ if !sec_code.nil? && sec_code.to_s.length > 3
205
+ fail ArgumentError, 'invalid value for "sec_code", the character length must be smaller than or equal to 3.'
206
+ end
207
+
208
+ @sec_code = sec_code
209
+ end
210
+
211
+ # Custom attribute writer method with validation
212
+ # @param [Object] terminal_city Value to be assigned
213
+ def terminal_city=(terminal_city)
214
+ if !terminal_city.nil? && terminal_city.to_s.length > 4
215
+ fail ArgumentError, 'invalid value for "terminal_city", the character length must be smaller than or equal to 4.'
216
+ end
217
+
218
+ @terminal_city = terminal_city
219
+ end
220
+
221
+ # Custom attribute writer method with validation
222
+ # @param [Object] terminal_state Value to be assigned
223
+ def terminal_state=(terminal_state)
224
+ if !terminal_state.nil? && terminal_state.to_s.length > 2
225
+ fail ArgumentError, 'invalid value for "terminal_state", the character length must be smaller than or equal to 2.'
226
+ end
227
+
228
+ @terminal_state = terminal_state
229
+ end
230
+
231
+ # Custom attribute writer method with validation
232
+ # @param [Object] effective_date Value to be assigned
233
+ def effective_date=(effective_date)
234
+ if !effective_date.nil? && effective_date.to_s.length > 8
235
+ fail ArgumentError, 'invalid value for "effective_date", the character length must be smaller than or equal to 8.'
236
+ end
237
+
238
+ @effective_date = effective_date
239
+ end
240
+
241
+ # Custom attribute writer method with validation
242
+ # @param [Object] partial_payment_id Value to be assigned
243
+ def partial_payment_id=(partial_payment_id)
244
+ if !partial_payment_id.nil? && partial_payment_id.to_s.length > 25
245
+ fail ArgumentError, 'invalid value for "partial_payment_id", the character length must be smaller than or equal to 25.'
246
+ end
247
+
248
+ @partial_payment_id = partial_payment_id
249
+ end
250
+
251
+ # Custom attribute writer method with validation
252
+ # @param [Object] customer_memo Value to be assigned
253
+ def customer_memo=(customer_memo)
254
+ if !customer_memo.nil? && customer_memo.to_s.length > 80
255
+ fail ArgumentError, 'invalid value for "customer_memo", the character length must be smaller than or equal to 80.'
256
+ end
257
+
258
+ @customer_memo = customer_memo
259
+ end
260
+
261
+ # Custom attribute writer method with validation
262
+ # @param [Object] payment_category_code Value to be assigned
263
+ def payment_category_code=(payment_category_code)
264
+ if !payment_category_code.nil? && payment_category_code.to_s.length > 1
265
+ fail ArgumentError, 'invalid value for "payment_category_code", the character length must be smaller than or equal to 1.'
266
+ end
267
+
268
+ @payment_category_code = payment_category_code
269
+ end
270
+
271
+ # Custom attribute writer method with validation
272
+ # @param [Object] settlement_method Value to be assigned
273
+ def settlement_method=(settlement_method)
274
+ if !settlement_method.nil? && settlement_method.to_s.length > 1
275
+ fail ArgumentError, 'invalid value for "settlement_method", the character length must be smaller than or equal to 1.'
276
+ end
277
+
278
+ @settlement_method = settlement_method
279
+ end
280
+
281
+ # Custom attribute writer method with validation
282
+ # @param [Object] fraud_screening_level Value to be assigned
283
+ def fraud_screening_level=(fraud_screening_level)
284
+ if !fraud_screening_level.nil? && fraud_screening_level.to_s.length > 1
285
+ fail ArgumentError, 'invalid value for "fraud_screening_level", the character length must be smaller than or equal to 1.'
286
+ end
287
+
288
+ @fraud_screening_level = fraud_screening_level
289
+ end
290
+
291
+ # Checks equality by comparing each attribute.
292
+ # @param [Object] Object to be compared
293
+ def ==(o)
294
+ return true if self.equal?(o)
295
+ self.class == o.class &&
296
+ decline_avs_flags == o.decline_avs_flags &&
297
+ sec_code == o.sec_code &&
298
+ terminal_city == o.terminal_city &&
299
+ terminal_state == o.terminal_state &&
300
+ effective_date == o.effective_date &&
301
+ partial_payment_id == o.partial_payment_id &&
302
+ customer_memo == o.customer_memo &&
303
+ payment_category_code == o.payment_category_code &&
304
+ settlement_method == o.settlement_method &&
305
+ fraud_screening_level == o.fraud_screening_level
306
+ end
307
+
308
+ # @see the `==` method
309
+ # @param [Object] Object to be compared
310
+ def eql?(o)
311
+ self == o
312
+ end
313
+
314
+ # Calculates hash code according to all attributes.
315
+ # @return [Fixnum] Hash code
316
+ def hash
317
+ [decline_avs_flags, sec_code, terminal_city, terminal_state, effective_date, partial_payment_id, customer_memo, payment_category_code, settlement_method, fraud_screening_level].hash
318
+ end
319
+
320
+ # Builds the object from hash
321
+ # @param [Hash] attributes Model attributes in the form of hash
322
+ # @return [Object] Returns the model itself
323
+ def build_from_hash(attributes)
324
+ return nil unless attributes.is_a?(Hash)
325
+ self.class.swagger_types.each_pair do |key, type|
326
+ if type =~ /\AArray<(.*)>/i
327
+ # check to ensure the input is an array given that the the attribute
328
+ # is documented as an array but the input is not
329
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
330
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
331
+ end
332
+ elsif !attributes[self.class.attribute_map[key]].nil?
333
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
334
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
335
+ end
336
+
337
+ self
338
+ end
339
+
340
+ # Deserializes the data based on type
341
+ # @param string type Data type
342
+ # @param string value Value to be deserialized
343
+ # @return [Object] Deserialized data
344
+ def _deserialize(type, value)
345
+ case type.to_sym
346
+ when :DateTime
347
+ DateTime.parse(value)
348
+ when :Date
349
+ Date.parse(value)
350
+ when :String
351
+ value.to_s
352
+ when :Integer
353
+ value.to_i
354
+ when :Float
355
+ value.to_f
356
+ when :BOOLEAN
357
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
358
+ true
359
+ else
360
+ false
361
+ end
362
+ when :Object
363
+ # generic object (usually a Hash), return directly
364
+ value
365
+ when /\AArray<(?<inner_type>.+)>\z/
366
+ inner_type = Regexp.last_match[:inner_type]
367
+ value.map { |v| _deserialize(inner_type, v) }
368
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
369
+ k_type = Regexp.last_match[:k_type]
370
+ v_type = Regexp.last_match[:v_type]
371
+ {}.tap do |hash|
372
+ value.each do |k, v|
373
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
374
+ end
375
+ end
376
+ else # model
377
+ temp_model = CyberSource.const_get(type).new
378
+ temp_model.build_from_hash(value)
379
+ end
380
+ end
381
+
382
+ # Returns the string representation of the object
383
+ # @return [String] String presentation of the object
384
+ def to_s
385
+ to_hash.to_s
386
+ end
387
+
388
+ # to_body is an alias to to_hash (backward compatibility)
389
+ # @return [Hash] Returns the object in the form of hash
390
+ def to_body
391
+ to_hash
392
+ end
393
+
394
+ # Returns the object in the form of hash
395
+ # @return [Hash] Returns the object in the form of hash
396
+ def to_hash
397
+ hash = {}
398
+ self.class.attribute_map.each_pair do |attr, param|
399
+ value = self.send(attr)
400
+ next if value.nil?
401
+ hash[param] = _to_hash(value)
402
+ end
403
+ hash
404
+ end
405
+
406
+ # Outputs non-array value in the form of hash
407
+ # For object, use to_hash. Otherwise, just return the value
408
+ # @param [Object] value Any valid value
409
+ # @return [Hash] Returns the value in the form of hash
410
+ def _to_hash(value)
411
+ if value.is_a?(Array)
412
+ value.compact.map { |v| _to_hash(v) }
413
+ elsif value.is_a?(Hash)
414
+ {}.tap do |hash|
415
+ value.each { |k, v| hash[k] = _to_hash(v) }
416
+ end
417
+ elsif value.respond_to? :to_hash
418
+ value.to_hash
419
+ else
420
+ value
421
+ end
422
+ end
423
+ end
424
+ end