cybersource_rest_client 0.0.11 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (428) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client.rb +104 -84
  3. data/lib/cybersource_rest_client/api/capture_api.rb +2 -2
  4. data/lib/cybersource_rest_client/api/conversion_details_api.rb +6 -6
  5. data/lib/cybersource_rest_client/api/credit_api.rb +2 -2
  6. data/lib/cybersource_rest_client/api/decision_manager_api.rb +89 -0
  7. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +229 -47
  8. data/lib/cybersource_rest_client/api/key_generation_api.rb +13 -9
  9. data/lib/cybersource_rest_client/api/net_fundings_api.rb +16 -16
  10. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +6 -6
  11. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +135 -0
  12. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +365 -0
  13. data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
  14. data/lib/cybersource_rest_client/api/{process_a_payout_api.rb → payouts_api.rb} +7 -7
  15. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +6 -6
  16. data/lib/cybersource_rest_client/api/refund_api.rb +2 -2
  17. data/lib/cybersource_rest_client/api/report_definitions_api.rb +2 -2
  18. data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
  19. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +2 -2
  20. data/lib/cybersource_rest_client/api/reports_api.rb +6 -6
  21. data/lib/cybersource_rest_client/api/reversal_api.rb +67 -2
  22. data/lib/cybersource_rest_client/api/search_transactions_api.rb +13 -13
  23. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +12 -12
  24. data/lib/cybersource_rest_client/api/{flex_token_api.rb → tokenization_api.rb} +18 -14
  25. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +76 -2
  26. data/lib/cybersource_rest_client/api/transaction_details_api.rb +2 -2
  27. data/lib/cybersource_rest_client/api/user_management_api.rb +2 -2
  28. data/lib/cybersource_rest_client/api/void_api.rb +67 -2
  29. data/lib/cybersource_rest_client/api_client.rb +12 -13
  30. data/lib/cybersource_rest_client/api_error.rb +2 -2
  31. data/lib/cybersource_rest_client/configuration.rb +2 -2
  32. data/lib/cybersource_rest_client/models/auth_reversal_request.rb +2 -2
  33. data/lib/cybersource_rest_client/models/capture_payment_request.rb +2 -2
  34. data/lib/cybersource_rest_client/models/create_credit_request.rb +2 -2
  35. data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_post200_response.rb → create_decision_manager_case_request.rb} +70 -99
  36. data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_buyer_information_personal_identification.rb → create_instrument_identifier_request.rb} +20 -21
  37. data/lib/cybersource_rest_client/models/{tms_v1_paymentinstruments_get200_response.rb → create_payment_instrument_request.rb} +13 -13
  38. data/lib/cybersource_rest_client/models/create_payment_request.rb +2 -2
  39. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post_response.rb → create_search_request.rb} +3 -3
  40. data/lib/cybersource_rest_client/models/flex_v1_keys_post200_response.rb +2 -2
  41. data/lib/cybersource_rest_client/models/flex_v1_keys_post200_response_der.rb +2 -2
  42. data/lib/cybersource_rest_client/models/flex_v1_keys_post200_response_jwk.rb +2 -2
  43. data/lib/cybersource_rest_client/models/flex_v1_tokens_post200_response.rb +2 -2
  44. data/lib/cybersource_rest_client/models/flexv1tokens_card_info.rb +12 -2
  45. data/lib/cybersource_rest_client/models/generate_public_key_request.rb +6 -66
  46. data/lib/cybersource_rest_client/models/{der_public_key.rb → inline_response_200.rb} +24 -26
  47. data/lib/cybersource_rest_client/models/inline_response_200_payment_batch_summaries.rb +282 -0
  48. data/lib/cybersource_rest_client/models/inline_response_400.rb +2 -2
  49. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +2 -2
  50. data/lib/cybersource_rest_client/models/inline_response_400_fields.rb +2 -2
  51. data/lib/cybersource_rest_client/models/inline_response_default.rb +2 -2
  52. data/lib/cybersource_rest_client/models/inline_response_default__links.rb +2 -2
  53. data/lib/cybersource_rest_client/models/inline_response_default__links_next.rb +2 -2
  54. data/lib/cybersource_rest_client/models/inline_response_default_response_status.rb +2 -2
  55. data/lib/cybersource_rest_client/models/inline_response_default_response_status_details.rb +2 -2
  56. data/lib/cybersource_rest_client/models/{tokenize_parameters.rb → mit_reversal_request.rb} +43 -17
  57. data/lib/cybersource_rest_client/models/{error.rb → mit_void_request.rb} +10 -19
  58. data/lib/cybersource_rest_client/models/{pts_v2_payouts_post_response.rb → oct_create_payment_request.rb} +3 -3
  59. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response.rb +3 -3
  60. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response__links.rb +2 -2
  61. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response__links_self.rb +2 -2
  62. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches.rb +2 -2
  63. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get400_response.rb +3 -3
  64. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get400_response_error_information.rb +2 -2
  65. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get400_response_error_information_details.rb +2 -2
  66. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get500_response.rb +3 -3
  67. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get500_response_error_information.rb +2 -2
  68. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response.rb +2 -2
  69. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links.rb +2 -2
  70. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions.rb +2 -2
  71. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +4 -4
  72. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +2 -2
  73. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +2 -2
  74. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +2 -2
  75. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +2 -2
  76. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +4 -4
  77. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response__links.rb +2 -2
  78. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information.rb +2 -2
  79. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +2 -2
  80. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +2 -2
  81. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +3 -3
  82. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +4 -4
  83. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response__links.rb +2 -2
  84. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response__links_self.rb +4 -4
  85. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +3 -3
  86. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +5 -5
  87. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +2 -2
  88. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +2 -197
  89. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +2 -2
  90. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information.rb +2 -2
  91. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +2 -2
  92. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +2 -2
  93. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +2 -2
  94. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +2 -2
  95. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +2 -2
  96. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +2 -2
  97. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_card.rb +2 -17
  98. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +3 -3
  99. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +2 -2
  100. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +2 -2
  101. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +2 -2
  102. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +2 -2
  103. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +2 -2
  104. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +2 -2
  105. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +2 -2
  106. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification.rb +3 -3
  107. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_consumer_authentication_response.rb +2 -2
  108. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_customer.rb +2 -2
  109. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +2 -2
  110. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +2 -2
  111. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +2 -2
  112. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +3 -3
  113. data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +5 -5
  114. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +4 -4
  115. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response__links.rb +2 -2
  116. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information.rb +2 -2
  117. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +2 -2
  118. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +2 -2
  119. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +3 -3
  120. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +4 -4
  121. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response__links.rb +2 -2
  122. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information.rb +2 -2
  123. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +2 -2
  124. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +2 -2
  125. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +2 -2
  126. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +3 -3
  127. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +4 -4
  128. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +2 -2
  129. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +3 -3
  130. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +14 -17
  131. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +4 -4
  132. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +2 -2
  133. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +2 -2
  134. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information.rb +2 -2
  135. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +4 -4
  136. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +2 -2
  137. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information.rb +2 -2
  138. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +2 -2
  139. data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +31 -7
  140. data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +2 -2
  141. data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +2 -2
  142. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +2 -2
  143. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +2 -2
  144. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
  145. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +2 -2
  146. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +2 -2
  147. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +7 -7
  148. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +4 -4
  149. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +2 -2
  150. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +2 -2
  151. data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +4 -4
  152. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +2 -2
  153. data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +2 -2
  154. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
  155. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +2 -2
  156. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +2 -2
  157. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor.rb +2 -2
  158. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +2 -2
  159. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +2 -2
  160. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +2 -2
  161. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb +2 -2
  162. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +2 -2
  163. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +2 -2
  164. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +2 -2
  165. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +2 -2
  166. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +2 -2
  167. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum.rb +2 -2
  168. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +7 -7
  169. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +4 -4
  170. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +20 -4
  171. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +2 -2
  172. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +2 -2
  173. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +2 -2
  174. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +6 -6
  175. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +2 -2
  176. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +2 -2
  177. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -3
  178. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +2 -2
  179. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +2 -2
  180. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +2 -2
  181. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +2 -2
  182. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +2 -2
  183. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +2 -2
  184. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +2 -2
  185. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
  186. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +2 -2
  187. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
  188. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +2 -2
  189. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +2 -2
  190. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +2 -227
  191. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +2 -2
  192. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information.rb +2 -2
  193. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +2 -2
  194. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +2 -2
  195. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +2 -2
  196. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +3 -3
  197. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb +2 -2
  198. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information.rb +2 -2
  199. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +2 -2
  200. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +2 -2
  201. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +2 -2
  202. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
  203. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +2 -2
  204. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +2 -2
  205. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb +2 -2
  206. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +7 -7
  207. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +2 -2
  208. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +6 -6
  209. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +2 -2
  210. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +2 -2
  211. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +2 -2
  212. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +3 -3
  213. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +2 -2
  214. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb +2 -2
  215. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details.rb +2 -2
  216. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +3 -3
  217. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information.rb +2 -2
  218. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +2 -2
  219. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +2 -2
  220. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
  221. data/lib/cybersource_rest_client/models/ptsv2payouts_client_reference_information.rb +3 -3
  222. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +12 -3
  223. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +2 -2
  224. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information.rb +2 -2
  225. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +4 -4
  226. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +3 -3
  227. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb +11 -11
  228. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information.rb +15 -6
  229. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +12 -12
  230. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +3 -3
  231. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +2 -2
  232. data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +2 -2
  233. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +2 -2
  234. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb +2 -2
  235. data/lib/cybersource_rest_client/models/refund_capture_request.rb +2 -2
  236. data/lib/cybersource_rest_client/models/refund_payment_request.rb +2 -2
  237. data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response.rb +2 -2
  238. data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details.rb +2 -2
  239. data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes.rb +2 -2
  240. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +2 -2
  241. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +2 -2
  242. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases.rb +2 -2
  243. data/lib/cybersource_rest_client/models/reporting_v3_notificationof_changes_get200_response.rb +2 -2
  244. data/lib/cybersource_rest_client/models/reporting_v3_notificationof_changes_get200_response_notification_of_changes.rb +2 -2
  245. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response.rb +2 -2
  246. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_authorizations.rb +2 -2
  247. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details.rb +2 -2
  248. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others.rb +2 -2
  249. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_request_details.rb +2 -2
  250. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses.rb +2 -2
  251. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb +2 -2
  252. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response.rb +2 -2
  253. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +2 -2
  254. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response.rb +2 -2
  255. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_attributes.rb +2 -2
  256. data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response.rb +2 -2
  257. data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +5 -5
  258. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response.rb +2 -2
  259. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_reports.rb +2 -2
  260. data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +3 -3
  261. data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response.rb +4 -4
  262. data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details.rb +2 -2
  263. data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +2 -2
  264. data/lib/cybersource_rest_client/models/request_body.rb +2 -2
  265. data/lib/cybersource_rest_client/models/request_body_1.rb +5 -5
  266. data/lib/cybersource_rest_client/models/{pts_v2_payouts_post502_response.rb → risk_v1_decisions_post201_response.rb} +58 -62
  267. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information.rb +284 -0
  268. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_info_codes.rb +270 -0
  269. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_ip_address.rb +300 -0
  270. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_payment_information.rb +300 -0
  271. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_profile.rb +249 -0
  272. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_providers.rb +185 -0
  273. data/lib/cybersource_rest_client/models/{link.rb → risk_v1_decisions_post201_response_risk_information_providers_provider_name.rb} +21 -28
  274. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_rules.rb +224 -0
  275. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_score.rb +235 -0
  276. data/lib/cybersource_rest_client/models/{key_result.rb → risk_v1_decisions_post201_response_risk_information_velocity.rb} +20 -26
  277. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_velocity_morphing.rb +234 -0
  278. data/lib/cybersource_rest_client/models/{ums_v1_users_get400_response.rb → risk_v1_decisions_post400_response.rb} +7 -19
  279. data/lib/cybersource_rest_client/models/riskv1decisions_buyer_information.rb +236 -0
  280. data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_processor_information_ach_verification.rb → riskv1decisions_card_verification.rb} +8 -33
  281. data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +224 -0
  282. data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +279 -0
  283. data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_merchant_defined_information.rb → riskv1decisions_merchant_defined_information.rb} +11 -10
  284. data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +248 -0
  285. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_order_information_amount_details.rb → riskv1decisions_order_information_amount_details.rb} +42 -32
  286. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +424 -0
  287. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +394 -0
  288. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_passenger.rb +350 -0
  289. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +400 -0
  290. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb +225 -0
  291. data/lib/cybersource_rest_client/models/{error_response.rb → riskv1decisions_payment_information.rb} +17 -16
  292. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +285 -0
  293. data/lib/cybersource_rest_client/models/{tms_v1_paymentinstruments_post201_response_card.rb → riskv1decisions_payment_information_tokenized_card.rb} +57 -99
  294. data/lib/cybersource_rest_client/models/riskv1decisions_processor_information.rb +184 -0
  295. data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_processor_information_card_verification.rb → riskv1decisions_processor_information_avs.rb} +20 -19
  296. data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +183 -0
  297. data/lib/cybersource_rest_client/models/{error_links.rb → riskv1decisions_risk_information_profile.rb} +27 -32
  298. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information.rb +260 -0
  299. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +224 -0
  300. data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_delete409_response.rb → tms_v1_instrument_identifiers_delete409_response.rb} +4 -4
  301. data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_delete409_response__links.rb → tms_v1_instrument_identifiers_delete409_response__links.rb} +4 -4
  302. data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments.rb → tms_v1_instrument_identifiers_delete409_response__links_payment_instruments.rb} +3 -3
  303. data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response.rb} +5 -6
  304. data/lib/cybersource_rest_client/models/{response_status_details.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded.rb} +13 -21
  305. data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_error_information_details.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bank_account.rb} +19 -29
  306. data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_bill_to.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bill_to.rb} +14 -14
  307. data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_buyer_information.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_buyer_information.rb} +31 -7
  308. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_card.rb +403 -0
  309. data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links.rb} +8 -8
  310. data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links_first.rb} +3 -3
  311. data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links_last.rb} +3 -3
  312. data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links_next.rb} +3 -3
  313. data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links_prev.rb} +3 -3
  314. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_self.rb +184 -0
  315. data/lib/cybersource_rest_client/models/{reporting_v3_reports_id_get200_response_report_preferences.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_bank_transfer_options.rb} +19 -30
  316. data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_buyer_information_issued_by.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_buyer_information_issued_by.rb} +4 -4
  317. data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_instrument_identifier.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_instrument_identifier.rb} +10 -10
  318. data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_merchant_information_merchant_descriptor.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_merchant_descriptor.rb} +3 -3
  319. data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_merchant_information.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_merchant_information.rb} +4 -4
  320. data/lib/cybersource_rest_client/models/{body_2.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_payment_instruments.rb} +13 -13
  321. data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_status_information.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_personal_identification.rb} +35 -26
  322. data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_processing_information.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_processing_information.rb} +7 -5
  323. data/lib/cybersource_rest_client/models/{body.rb → tms_v1_instrument_identifiers_post200_response.rb} +9 -9
  324. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers__links.rb → tms_v1_instrument_identifiers_post200_response__links.rb} +6 -6
  325. data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self.rb → tms_v1_instrument_identifiers_post200_response__links_self.rb} +3 -4
  326. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb → tms_v1_instrument_identifiers_post200_response_authorization_options_initiator.rb} +4 -4
  327. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_bank_account.rb → tms_v1_instrument_identifiers_post200_response_bank_account.rb} +4 -4
  328. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.rb → tms_v1_instrument_identifiers_post200_response_card.rb} +28 -19
  329. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_merchant_initiated_transaction.rb → tms_v1_instrument_identifiers_post200_response_merchant_initiated_transaction.rb} +3 -3
  330. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_metadata.rb → tms_v1_instrument_identifiers_post200_response_metadata.rb} +3 -3
  331. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_processing_information.rb → tms_v1_instrument_identifiers_post200_response_processing_information.rb} +4 -4
  332. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_processing_information_authorization_options.rb → tms_v1_instrument_identifiers_post200_response_processing_information_authorization_options.rb} +4 -4
  333. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_bill_to.rb +234 -0
  334. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +108 -6
  335. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_details.rb +2 -2
  336. data/lib/cybersource_rest_client/models/tokenize_request.rb +7 -2
  337. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +9 -9
  338. data/lib/cybersource_rest_client/models/{links.rb → tss_v2_transactions_get200_response__links.rb} +12 -23
  339. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information.rb +2 -2
  340. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information_applications.rb +2 -2
  341. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_buyer_information.rb +3 -3
  342. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +19 -4
  343. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information.rb +4 -4
  344. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb +5 -5
  345. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +3 -3
  346. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information.rb +2 -2
  347. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_installment_information.rb +2 -2
  348. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information.rb +2 -2
  349. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +2 -2
  350. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information.rb +2 -2
  351. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +58 -8
  352. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to.rb +18 -34
  353. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +2 -2
  354. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +12 -12
  355. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details.rb +20 -5
  356. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +3 -3
  357. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_account_features.rb +2 -2
  358. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank.rb +2 -2
  359. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +50 -5
  360. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_mandate.rb +2 -2
  361. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +13 -13
  362. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_invoice.rb +2 -2
  363. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +6 -16
  364. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +2 -2
  365. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +3 -3
  366. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +3 -3
  367. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options.rb +2 -2
  368. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +59 -9
  369. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +2 -2
  370. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_processor.rb +2 -2
  371. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information.rb +5 -5
  372. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_profile.rb +2 -2
  373. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_rules.rb +225 -0
  374. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_score.rb +2 -2
  375. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information.rb +2 -2
  376. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +19 -19
  377. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded.rb +2 -2
  378. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded__links.rb +2 -2
  379. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_buyer_information.rb +3 -3
  380. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +3 -3
  381. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb +3 -3
  382. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information.rb +3 -3
  383. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_merchant_information.rb +3 -3
  384. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information.rb +3 -3
  385. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +7 -7
  386. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_ship_to.rb +5 -5
  387. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +10 -10
  388. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +3 -18
  389. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_payment_method.rb → tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb} +18 -8
  390. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +19 -4
  391. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +3 -3
  392. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +2 -2
  393. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information.rb +2 -2
  394. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers.rb +2 -2
  395. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +2 -2
  396. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +5 -5
  397. data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +5 -5
  398. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response.rb +2 -2
  399. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_account_information.rb +2 -2
  400. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_contact_information.rb +2 -2
  401. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_organization_information.rb +2 -2
  402. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_users.rb +2 -2
  403. data/lib/cybersource_rest_client/models/{body_1.rb → update_instrument_identifier_request.rb} +4 -4
  404. data/lib/cybersource_rest_client/models/{tms_v1_paymentinstruments_post201_response.rb → update_payment_instrument_request.rb} +13 -13
  405. data/lib/cybersource_rest_client/models/v1_file_details_get200_response.rb +2 -2
  406. data/lib/cybersource_rest_client/models/v1_file_details_get200_response__links.rb +2 -2
  407. data/lib/cybersource_rest_client/models/v1_file_details_get200_response__links_files.rb +2 -2
  408. data/lib/cybersource_rest_client/models/v1_file_details_get200_response__links_self.rb +2 -2
  409. data/lib/cybersource_rest_client/models/v1_file_details_get200_response_file_details.rb +2 -2
  410. data/lib/cybersource_rest_client/models/void_capture_request.rb +2 -2
  411. data/lib/cybersource_rest_client/models/void_credit_request.rb +2 -2
  412. data/lib/cybersource_rest_client/models/void_payment_request.rb +2 -2
  413. data/lib/cybersource_rest_client/models/void_refund_request.rb +2 -2
  414. data/lib/cybersource_rest_client/version.rb +2 -2
  415. metadata +89 -71
  416. data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +0 -102
  417. data/lib/cybersource_rest_client/api/payment_instruments_api.rb +0 -469
  418. data/lib/cybersource_rest_client/models/body_3.rb +0 -331
  419. data/lib/cybersource_rest_client/models/card_info.rb +0 -214
  420. data/lib/cybersource_rest_client/models/json_web_key.rb +0 -225
  421. data/lib/cybersource_rest_client/models/key_parameters.rb +0 -184
  422. data/lib/cybersource_rest_client/models/response_status.rb +0 -225
  423. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers__links_self.rb +0 -183
  424. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_bank_account.rb +0 -184
  425. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_card.rb +0 -278
  426. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_processing_information_bank_transfer_options.rb +0 -184
  427. data/lib/cybersource_rest_client/models/tokenize_result.rb +0 -255
  428. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +0 -184
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CyberSource Flex API
2
+ #CyberSource Merged Spec
3
3
 
4
- #Simple PAN tokenization service
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
5
 
6
6
  OpenAPI spec version: 0.0.1
7
7
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class TmsV1InstrumentidentifiersDelete409Response
16
+ class TmsV1InstrumentIdentifiersDelete409Response
17
17
  attr_accessor :_links
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -26,7 +26,7 @@ module CyberSource
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'_links' => :'TmsV1InstrumentidentifiersDelete409ResponseLinks'
29
+ :'_links' => :'TmsV1InstrumentIdentifiersDelete409ResponseLinks'
30
30
  }
31
31
  end
32
32
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CyberSource Flex API
2
+ #CyberSource Merged Spec
3
3
 
4
- #Simple PAN tokenization service
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
5
 
6
6
  OpenAPI spec version: 0.0.1
7
7
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class TmsV1InstrumentidentifiersDelete409ResponseLinks
16
+ class TmsV1InstrumentIdentifiersDelete409ResponseLinks
17
17
  attr_accessor :payment_instruments
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -26,7 +26,7 @@ module CyberSource
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'payment_instruments' => :'TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments'
29
+ :'payment_instruments' => :'TmsV1InstrumentIdentifiersDelete409ResponseLinksPaymentInstruments'
30
30
  }
31
31
  end
32
32
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CyberSource Flex API
2
+ #CyberSource Merged Spec
3
3
 
4
- #Simple PAN tokenization service
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
5
 
6
6
  OpenAPI spec version: 0.0.1
7
7
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments
16
+ class TmsV1InstrumentIdentifiersDelete409ResponseLinksPaymentInstruments
17
17
  attr_accessor :href
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CyberSource Flex API
2
+ #CyberSource Merged Spec
3
3
 
4
- #Simple PAN tokenization service
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
5
 
6
6
  OpenAPI spec version: 0.0.1
7
7
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response
16
+ class TmsV1InstrumentIdentifiersPaymentInstrumentsGet200Response
17
17
  attr_accessor :_links
18
18
 
19
19
  # Shows the response is a collection of objects.
@@ -31,7 +31,6 @@ module CyberSource
31
31
  # The total number of Payment Instruments associated with the Instrument Identifier in the zero-based dataset.
32
32
  attr_accessor :total
33
33
 
34
- # Array of Payment Instruments returned for the supplied Instrument Identifier.
35
34
  attr_accessor :_embedded
36
35
 
37
36
  class EnumAttributeValidator
@@ -72,13 +71,13 @@ module CyberSource
72
71
  # Attribute type mapping.
73
72
  def self.swagger_types
74
73
  {
75
- :'_links' => :'TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks',
74
+ :'_links' => :'TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseLinks',
76
75
  :'object' => :'String',
77
76
  :'offset' => :'String',
78
77
  :'limit' => :'String',
79
78
  :'count' => :'String',
80
79
  :'total' => :'String',
81
- :'_embedded' => :'Object'
80
+ :'_embedded' => :'TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbedded'
82
81
  }
83
82
  end
84
83
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CyberSource Flex API
2
+ #CyberSource Merged Spec
3
3
 
4
- #Simple PAN tokenization service
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
5
 
6
6
  OpenAPI spec version: 0.0.1
7
7
 
@@ -13,26 +13,21 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class ResponseStatusDetails
17
- # Field name referred to for validation issues.
18
- attr_accessor :location
19
-
20
- # Description or code of any error response.
21
- attr_accessor :message
16
+ class TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbedded
17
+ # Array of Payment Instruments returned for the supplied Instrument Identifier.
18
+ attr_accessor :payment_instruments
22
19
 
23
20
  # Attribute mapping from ruby-style variable name to JSON key.
24
21
  def self.attribute_map
25
22
  {
26
- :'location' => :'location',
27
- :'message' => :'message'
23
+ :'payment_instruments' => :'paymentInstruments'
28
24
  }
29
25
  end
30
26
 
31
27
  # Attribute type mapping.
32
28
  def self.swagger_types
33
29
  {
34
- :'location' => :'String',
35
- :'message' => :'String'
30
+ :'payment_instruments' => :'Array<TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedPaymentInstruments>'
36
31
  }
37
32
  end
38
33
 
@@ -44,12 +39,10 @@ module CyberSource
44
39
  # convert string to symbol for hash key
45
40
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
41
 
47
- if attributes.has_key?(:'location')
48
- self.location = attributes[:'location']
49
- end
50
-
51
- if attributes.has_key?(:'message')
52
- self.message = attributes[:'message']
42
+ if attributes.has_key?(:'paymentInstruments')
43
+ if (value = attributes[:'paymentInstruments']).is_a?(Array)
44
+ self.payment_instruments = value
45
+ end
53
46
  end
54
47
  end
55
48
 
@@ -71,8 +64,7 @@ module CyberSource
71
64
  def ==(o)
72
65
  return true if self.equal?(o)
73
66
  self.class == o.class &&
74
- location == o.location &&
75
- message == o.message
67
+ payment_instruments == o.payment_instruments
76
68
  end
77
69
 
78
70
  # @see the `==` method
@@ -84,7 +76,7 @@ module CyberSource
84
76
  # Calculates hash code according to all attributes.
85
77
  # @return [Fixnum] Hash code
86
78
  def hash
87
- [location, message].hash
79
+ [payment_instruments].hash
88
80
  end
89
81
 
90
82
  # Builds the object from hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CyberSource Flex API
2
+ #CyberSource Merged Spec
3
3
 
4
- #Simple PAN tokenization service
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
5
 
6
6
  OpenAPI spec version: 0.0.1
7
7
 
@@ -13,12 +13,9 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class PtsV2PayoutsPost201ResponseErrorInformationDetails
17
- # This is the flattened JSON object field name/path that is either missing or invalid.
18
- attr_accessor :field
19
-
20
- # Possible reasons for the error.
21
- attr_accessor :reason
16
+ class TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedBankAccount
17
+ # Checking account type. Possible values: * C: checking * S: savings (USD only) * X: corporate checking (USD only) * G: general ledger
18
+ attr_accessor :type
22
19
 
23
20
  class EnumAttributeValidator
24
21
  attr_reader :datatype
@@ -45,16 +42,14 @@ module CyberSource
45
42
  # Attribute mapping from ruby-style variable name to JSON key.
46
43
  def self.attribute_map
47
44
  {
48
- :'field' => :'field',
49
- :'reason' => :'reason'
45
+ :'type' => :'type'
50
46
  }
51
47
  end
52
48
 
53
49
  # Attribute type mapping.
54
50
  def self.swagger_types
55
51
  {
56
- :'field' => :'String',
57
- :'reason' => :'String'
52
+ :'type' => :'String'
58
53
  }
59
54
  end
60
55
 
@@ -66,12 +61,8 @@ module CyberSource
66
61
  # convert string to symbol for hash key
67
62
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
68
63
 
69
- if attributes.has_key?(:'field')
70
- self.field = attributes[:'field']
71
- end
72
-
73
- if attributes.has_key?(:'reason')
74
- self.reason = attributes[:'reason']
64
+ if attributes.has_key?(:'type')
65
+ self.type = attributes[:'type']
75
66
  end
76
67
  end
77
68
 
@@ -85,19 +76,19 @@ module CyberSource
85
76
  # Check to see if the all the properties in the model are valid
86
77
  # @return true if the model is valid
87
78
  def valid?
88
- reason_validator = EnumAttributeValidator.new('String', ['MISSING_FIELD', 'INVALID_DATA'])
89
- return false unless reason_validator.valid?(@reason)
79
+ type_validator = EnumAttributeValidator.new('String', ['checking', 'savings', 'corporate checking', 'general ledger'])
80
+ return false unless type_validator.valid?(@type)
90
81
  true
91
82
  end
92
83
 
93
84
  # Custom attribute writer method checking allowed values (enum).
94
- # @param [Object] reason Object to be assigned
95
- def reason=(reason)
96
- validator = EnumAttributeValidator.new('String', ['MISSING_FIELD', 'INVALID_DATA'])
97
- unless validator.valid?(reason)
98
- fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.'
85
+ # @param [Object] type Object to be assigned
86
+ def type=(type)
87
+ validator = EnumAttributeValidator.new('String', ['checking', 'savings', 'corporate checking', 'general ledger'])
88
+ unless validator.valid?(type)
89
+ fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
99
90
  end
100
- @reason = reason
91
+ @type = type
101
92
  end
102
93
 
103
94
  # Checks equality by comparing each attribute.
@@ -105,8 +96,7 @@ module CyberSource
105
96
  def ==(o)
106
97
  return true if self.equal?(o)
107
98
  self.class == o.class &&
108
- field == o.field &&
109
- reason == o.reason
99
+ type == o.type
110
100
  end
111
101
 
112
102
  # @see the `==` method
@@ -118,7 +108,7 @@ module CyberSource
118
108
  # Calculates hash code according to all attributes.
119
109
  # @return [Fixnum] Hash code
120
110
  def hash
121
- [field, reason].hash
111
+ [type].hash
122
112
  end
123
113
 
124
114
  # Builds the object from hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CyberSource Flex API
2
+ #CyberSource Merged Spec
3
3
 
4
- #Simple PAN tokenization service
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
5
 
6
6
  OpenAPI spec version: 0.0.1
7
7
 
@@ -13,38 +13,38 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class Tmsv1paymentinstrumentsBillTo
17
- # Bill to First Name.
16
+ class TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedBillTo
17
+ # Customer’s first name. For a credit card transaction, this name must match the name on the card. This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See the TMS REST Developer Guide for more information about relaxed address requirements. **Important**: It is your responsibility to determine whether a field is required for the transaction you are requesting.
18
18
  attr_accessor :first_name
19
19
 
20
- # Bill to Last Name.
20
+ # Customer’s last name. For a credit card transaction, this name must match the name on the card. This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See the TMS REST Developer Guide for more information about relaxed address requirements. **Important**: It is your responsibility to determine whether a field is required for the transaction you are requesting.
21
21
  attr_accessor :last_name
22
22
 
23
- # Bill to Company.
23
+ # Name of the customer’s company. This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See the TMS REST Developer Guide for more information about relaxed address requirements. **Important**: It is your responsibility to determine whether a field is required for the transaction you are requesting.
24
24
  attr_accessor :company
25
25
 
26
- # Bill to Address Line 1.
26
+ # First line of the billing street address. This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See the TMS REST Developer Guide for more information about relaxed address requirements. **Important**: It is your responsibility to determine whether a field is required for the transaction you are requesting.
27
27
  attr_accessor :address1
28
28
 
29
- # Bill to Address Line 2.
29
+ # Additional address information.
30
30
  attr_accessor :address2
31
31
 
32
- # Bill to City.
32
+ # City of the billing address. This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See the TMS REST Developer Guide for more information about relaxed address requirements. **Important**: It is your responsibility to determine whether a field is required for the transaction you are requesting.
33
33
  attr_accessor :locality
34
34
 
35
- # Bill to State.
35
+ # State or province of the billing address. For an address in the U.S. or Canada, use the State, Province, and Territory Codes for the United States and Canada. This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See the TMS REST Developer Guide for more information about relaxed address requirements. **Important**: It is your responsibility to determine whether a field is required for the transaction you are requesting.
36
36
  attr_accessor :administrative_area
37
37
 
38
- # Bill to Postal Code.
38
+ # Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] **Example** 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space] [numeric][alpha][numeric] Example A1B 2C3 This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See the TMS REST Developer Guide for more information about relaxed address requirements. **Important**: It is your responsibility to determine whether a field is required for the transaction you are requesting.
39
39
  attr_accessor :postal_code
40
40
 
41
- # Bill to Country. Accepts input in the ISO 3166-1 standard, stores as ISO 3166-1-Alpha-2
41
+ # Country of the billing address. Accepts input in the ISO 3166-1 standard, stores as ISO 3166-1-Alpha-2. This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See the TMS REST Developer Guide for more information about relaxed address requirements. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting.
42
42
  attr_accessor :country
43
43
 
44
- # Valid Bill to Email.
44
+ # Customer’s email address. This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See the TMS REST Developer Guide for more information about relaxed address requirements. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting.
45
45
  attr_accessor :email
46
46
 
47
- # Bill to Phone Number.
47
+ # Customer phone number. When you create a customer profile, the requirements depend on the payment method: * Credit cards — optional. * Electronic checks — contact your payment processor representative to find out if this field is required or optional. * PINless debits — optional.
48
48
  attr_accessor :phone_number
49
49
 
50
50
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CyberSource Flex API
2
+ #CyberSource Merged Spec
3
3
 
4
- #Simple PAN tokenization service
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
5
 
6
6
  OpenAPI spec version: 0.0.1
7
7
 
@@ -13,14 +13,14 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class Tmsv1paymentinstrumentsBuyerInformation
17
- # Company Tax ID.
16
+ class TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedBuyerInformation
17
+ # Tax identifier for the customer’s company. **Important**: Contact your TeleCheck representative to find out whether this field is required or optional.
18
18
  attr_accessor :company_tax_id
19
19
 
20
- # Currency. Accepts input in the ISO 4217 standard, stores as ISO 4217 Alpha
20
+ # Currency used by the customer. Accepts input in the ISO 4217 standard, stores as ISO 4217 Alpha.
21
21
  attr_accessor :currency
22
22
 
23
- # Date of birth YYYY-MM-DD.
23
+ # Date of birth of the customer. Format: `YYYY-MM-DD` or `YYYYMMDD`
24
24
  attr_accessor :date_o_birth
25
25
 
26
26
  attr_accessor :personal_identification
@@ -41,7 +41,7 @@ module CyberSource
41
41
  :'company_tax_id' => :'String',
42
42
  :'currency' => :'String',
43
43
  :'date_o_birth' => :'String',
44
- :'personal_identification' => :'Array<Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification>'
44
+ :'personal_identification' => :'Array<TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedBuyerInformationPersonalIdentification>'
45
45
  }
46
46
  end
47
47
 
@@ -88,6 +88,14 @@ module CyberSource
88
88
  invalid_properties.push('invalid value for "currency", the character length must be great than or equal to 3.')
89
89
  end
90
90
 
91
+ if !@date_o_birth.nil? && @date_o_birth.to_s.length > 10
92
+ invalid_properties.push('invalid value for "date_o_birth", the character length must be smaller than or equal to 10.')
93
+ end
94
+
95
+ if !@date_o_birth.nil? && @date_o_birth.to_s.length < 8
96
+ invalid_properties.push('invalid value for "date_o_birth", the character length must be great than or equal to 8.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
@@ -97,6 +105,8 @@ module CyberSource
97
105
  return false if !@company_tax_id.nil? && @company_tax_id.to_s.length > 9
98
106
  return false if !@currency.nil? && @currency.to_s.length > 3
99
107
  return false if !@currency.nil? && @currency.to_s.length < 3
108
+ return false if !@date_o_birth.nil? && @date_o_birth.to_s.length > 10
109
+ return false if !@date_o_birth.nil? && @date_o_birth.to_s.length < 8
100
110
  true
101
111
  end
102
112
 
@@ -124,6 +134,20 @@ module CyberSource
124
134
  @currency = currency
125
135
  end
126
136
 
137
+ # Custom attribute writer method with validation
138
+ # @param [Object] date_o_birth Value to be assigned
139
+ def date_o_birth=(date_o_birth)
140
+ if !date_o_birth.nil? && date_o_birth.to_s.length > 10
141
+ fail ArgumentError, 'invalid value for "date_o_birth", the character length must be smaller than or equal to 10.'
142
+ end
143
+
144
+ if !date_o_birth.nil? && date_o_birth.to_s.length < 8
145
+ fail ArgumentError, 'invalid value for "date_o_birth", the character length must be great than or equal to 8.'
146
+ end
147
+
148
+ @date_o_birth = date_o_birth
149
+ end
150
+
127
151
  # Checks equality by comparing each attribute.
128
152
  # @param [Object] Object to be compared
129
153
  def ==(o)
@@ -0,0 +1,403 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedCard
17
+ # Two-digit month in which the credit card expires. Format: `MM` Possible values: `01` through `12` This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. For more information about relaxed requirements, see the TMS REST API Developer Guide. Important: It is your responsibility to determine whether a field is required for the transaction you are requesting.
18
+ attr_accessor :expiration_month
19
+
20
+ # Four-digit year in which the credit card expires. Format: `YYYY`. Possible values: `1900` through `2099`. **FDC Nashville Global and FDMS South** You can send in 2 digits or 4 digits. When you send in 2 digits, they must be the last 2 digits of the year. This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See Relaxed Requirements for Address Data and Expiration Date page. Important: It is your responsibility to determine whether a field is required for the transaction you are requesting.'
21
+ attr_accessor :expiration_year
22
+
23
+ # Type of credit card. Possible values: * Visa (001) * Mastercard (002) - Eurocard—European regional brand of Mastercard * American Express (003) * Discover (004) * Diners Club (005) * Carte Blanche (006) * JCB (007) * Optima (008) * Twinpay Credit (011) * Twinpay Debit (012) * Walmart (013) * EnRoute (014) * Lowes consumer (015) * Home Depot consumer (016) * MBNA (017) * Dicks Sportswear (018) * Casual Corner (019) * Sears (020) * JAL (021) * Disney (023) * Maestro (024) - UK Domestic * Sams Club consumer (025) * Sams Club business (026) * Nicos (027) * Bill me later (028) * Bebe (029) * Restoration Hardware (030) * Delta (031) — use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types. * Solo (032) * Visa Electron (033) * Dankort (034) * Laser (035) * Carte Bleue (036) — formerly Cartes Bancaires * Cartes Bancaires (036) * Carta Si (037) * pinless debit (038) * encoded account (039) * UATP (040) * Household (041) * Maestro (042) - International * GE Money UK (043) * Korean cards (044) * Style (045) * JCrew (046) * PayEase China processing eWallet (047) * PayEase China processing bank transfer (048) * Meijer Private Label (049) * Hipercard (050) — supported only by the Comercio Latino processor. * Aura (051) — supported only by the Comercio Latino processor. * Redecard (052) * ORICO (053) * Elo (054) — supported only by the Comercio Latino processor. * Capital One Private Label (055) * Synchrony Private Label (056) * Costco Private Label (057) * mada (060) * China Union Pay (062) * Falabella private label (063)
24
+ attr_accessor :type
25
+
26
+ # Number of times a Maestro (UK Domestic) card has been issued to the account holder.
27
+ attr_accessor :issue_number
28
+
29
+ # Month of the start of the Maestro (UK Domestic) card validity period. Format: `MM`. Possible values: `01` through `12`.
30
+ attr_accessor :start_month
31
+
32
+ # Year of the start of the Maestro (UK Domestic) card validity period. Format: `YYYY`. Possible values: `1900` through `2099`.
33
+ attr_accessor :start_year
34
+
35
+ # Card Use As Field. Supported value of `pinless debit` only. Only for use with Pinless Debit tokens.
36
+ attr_accessor :use_as
37
+
38
+ class EnumAttributeValidator
39
+ attr_reader :datatype
40
+ attr_reader :allowable_values
41
+
42
+ def initialize(datatype, allowable_values)
43
+ @allowable_values = allowable_values.map do |value|
44
+ case datatype.to_s
45
+ when /Integer/i
46
+ value.to_i
47
+ when /Float/i
48
+ value.to_f
49
+ else
50
+ value
51
+ end
52
+ end
53
+ end
54
+
55
+ def valid?(value)
56
+ !value || allowable_values.include?(value)
57
+ end
58
+ end
59
+
60
+ # Attribute mapping from ruby-style variable name to JSON key.
61
+ def self.attribute_map
62
+ {
63
+ :'expiration_month' => :'expirationMonth',
64
+ :'expiration_year' => :'expirationYear',
65
+ :'type' => :'type',
66
+ :'issue_number' => :'issueNumber',
67
+ :'start_month' => :'startMonth',
68
+ :'start_year' => :'startYear',
69
+ :'use_as' => :'useAs'
70
+ }
71
+ end
72
+
73
+ # Attribute type mapping.
74
+ def self.swagger_types
75
+ {
76
+ :'expiration_month' => :'String',
77
+ :'expiration_year' => :'String',
78
+ :'type' => :'String',
79
+ :'issue_number' => :'String',
80
+ :'start_month' => :'String',
81
+ :'start_year' => :'String',
82
+ :'use_as' => :'String'
83
+ }
84
+ end
85
+
86
+ # Initializes the object
87
+ # @param [Hash] attributes Model attributes in the form of hash
88
+ def initialize(attributes = {})
89
+ return unless attributes.is_a?(Hash)
90
+
91
+ # convert string to symbol for hash key
92
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
93
+
94
+ if attributes.has_key?(:'expirationMonth')
95
+ self.expiration_month = attributes[:'expirationMonth']
96
+ end
97
+
98
+ if attributes.has_key?(:'expirationYear')
99
+ self.expiration_year = attributes[:'expirationYear']
100
+ end
101
+
102
+ if attributes.has_key?(:'type')
103
+ self.type = attributes[:'type']
104
+ end
105
+
106
+ if attributes.has_key?(:'issueNumber')
107
+ self.issue_number = attributes[:'issueNumber']
108
+ end
109
+
110
+ if attributes.has_key?(:'startMonth')
111
+ self.start_month = attributes[:'startMonth']
112
+ end
113
+
114
+ if attributes.has_key?(:'startYear')
115
+ self.start_year = attributes[:'startYear']
116
+ end
117
+
118
+ if attributes.has_key?(:'useAs')
119
+ self.use_as = attributes[:'useAs']
120
+ end
121
+ end
122
+
123
+ # Show invalid properties with the reasons. Usually used together with valid?
124
+ # @return Array for valid properties with the reasons
125
+ def list_invalid_properties
126
+ invalid_properties = Array.new
127
+ if !@expiration_month.nil? && @expiration_month.to_s.length > 2
128
+ invalid_properties.push('invalid value for "expiration_month", the character length must be smaller than or equal to 2.')
129
+ end
130
+
131
+ if !@expiration_month.nil? && @expiration_month.to_s.length < 2
132
+ invalid_properties.push('invalid value for "expiration_month", the character length must be great than or equal to 2.')
133
+ end
134
+
135
+ if !@expiration_year.nil? && @expiration_year.to_s.length > 4
136
+ invalid_properties.push('invalid value for "expiration_year", the character length must be smaller than or equal to 4.')
137
+ end
138
+
139
+ if !@expiration_year.nil? && @expiration_year.to_s.length < 4
140
+ invalid_properties.push('invalid value for "expiration_year", the character length must be great than or equal to 4.')
141
+ end
142
+
143
+ if @type.nil?
144
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
145
+ end
146
+
147
+ if !@issue_number.nil? && @issue_number.to_s.length > 2
148
+ invalid_properties.push('invalid value for "issue_number", the character length must be smaller than or equal to 2.')
149
+ end
150
+
151
+ if !@issue_number.nil? && @issue_number.to_s.length < 1
152
+ invalid_properties.push('invalid value for "issue_number", the character length must be great than or equal to 1.')
153
+ end
154
+
155
+ if !@start_month.nil? && @start_month.to_s.length > 2
156
+ invalid_properties.push('invalid value for "start_month", the character length must be smaller than or equal to 2.')
157
+ end
158
+
159
+ if !@start_month.nil? && @start_month.to_s.length < 2
160
+ invalid_properties.push('invalid value for "start_month", the character length must be great than or equal to 2.')
161
+ end
162
+
163
+ if !@start_year.nil? && @start_year.to_s.length > 4
164
+ invalid_properties.push('invalid value for "start_year", the character length must be smaller than or equal to 4.')
165
+ end
166
+
167
+ if !@start_year.nil? && @start_year.to_s.length < 4
168
+ invalid_properties.push('invalid value for "start_year", the character length must be great than or equal to 4.')
169
+ end
170
+
171
+ invalid_properties
172
+ end
173
+
174
+ # Check to see if the all the properties in the model are valid
175
+ # @return true if the model is valid
176
+ def valid?
177
+ return false if !@expiration_month.nil? && @expiration_month.to_s.length > 2
178
+ return false if !@expiration_month.nil? && @expiration_month.to_s.length < 2
179
+ return false if !@expiration_year.nil? && @expiration_year.to_s.length > 4
180
+ return false if !@expiration_year.nil? && @expiration_year.to_s.length < 4
181
+ return false if @type.nil?
182
+ type_validator = EnumAttributeValidator.new('String', ['visa', 'mastercard', 'american express', 'discover', 'diners club', 'carte blanche', 'jcb', 'optima', 'twinpay credit', 'twinpay debit', 'walmart', 'enroute', 'lowes consumer', 'home depot consumer', 'mbna', 'dicks sportswear', 'casual corner', 'sears', 'jal', 'disney', 'maestro uk domestic', 'sams club consumer', 'sams club business', 'nicos', 'bill me later', 'bebe', 'restoration hardware', 'delta online', 'solo', 'visa electron', 'dankort', 'laser', 'carte bleue', 'carta si', 'pinless debit', 'encoded account', 'uatp', 'household', 'maestro international', 'ge money uk', 'korean cards', 'style', 'jcrew', 'payease china processing ewallet', 'payease china processing bank transfer', 'meijer private label', 'hipercard', 'aura', 'redecard', 'orico', 'elo', 'capital one private label', 'synchrony private label', 'china union pay', 'costco private label', 'mada', 'falabella private label'])
183
+ return false unless type_validator.valid?(@type)
184
+ return false if !@issue_number.nil? && @issue_number.to_s.length > 2
185
+ return false if !@issue_number.nil? && @issue_number.to_s.length < 1
186
+ return false if !@start_month.nil? && @start_month.to_s.length > 2
187
+ return false if !@start_month.nil? && @start_month.to_s.length < 2
188
+ return false if !@start_year.nil? && @start_year.to_s.length > 4
189
+ return false if !@start_year.nil? && @start_year.to_s.length < 4
190
+ true
191
+ end
192
+
193
+ # Custom attribute writer method with validation
194
+ # @param [Object] expiration_month Value to be assigned
195
+ def expiration_month=(expiration_month)
196
+ if !expiration_month.nil? && expiration_month.to_s.length > 2
197
+ fail ArgumentError, 'invalid value for "expiration_month", the character length must be smaller than or equal to 2.'
198
+ end
199
+
200
+ if !expiration_month.nil? && expiration_month.to_s.length < 2
201
+ fail ArgumentError, 'invalid value for "expiration_month", the character length must be great than or equal to 2.'
202
+ end
203
+
204
+ @expiration_month = expiration_month
205
+ end
206
+
207
+ # Custom attribute writer method with validation
208
+ # @param [Object] expiration_year Value to be assigned
209
+ def expiration_year=(expiration_year)
210
+ if !expiration_year.nil? && expiration_year.to_s.length > 4
211
+ fail ArgumentError, 'invalid value for "expiration_year", the character length must be smaller than or equal to 4.'
212
+ end
213
+
214
+ if !expiration_year.nil? && expiration_year.to_s.length < 4
215
+ fail ArgumentError, 'invalid value for "expiration_year", the character length must be great than or equal to 4.'
216
+ end
217
+
218
+ @expiration_year = expiration_year
219
+ end
220
+
221
+ # Custom attribute writer method checking allowed values (enum).
222
+ # @param [Object] type Object to be assigned
223
+ def type=(type)
224
+ validator = EnumAttributeValidator.new('String', ['visa', 'mastercard', 'american express', 'discover', 'diners club', 'carte blanche', 'jcb', 'optima', 'twinpay credit', 'twinpay debit', 'walmart', 'enroute', 'lowes consumer', 'home depot consumer', 'mbna', 'dicks sportswear', 'casual corner', 'sears', 'jal', 'disney', 'maestro uk domestic', 'sams club consumer', 'sams club business', 'nicos', 'bill me later', 'bebe', 'restoration hardware', 'delta online', 'solo', 'visa electron', 'dankort', 'laser', 'carte bleue', 'carta si', 'pinless debit', 'encoded account', 'uatp', 'household', 'maestro international', 'ge money uk', 'korean cards', 'style', 'jcrew', 'payease china processing ewallet', 'payease china processing bank transfer', 'meijer private label', 'hipercard', 'aura', 'redecard', 'orico', 'elo', 'capital one private label', 'synchrony private label', 'china union pay', 'costco private label', 'mada', 'falabella private label'])
225
+ unless validator.valid?(type)
226
+ fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
227
+ end
228
+ @type = type
229
+ end
230
+
231
+ # Custom attribute writer method with validation
232
+ # @param [Object] issue_number Value to be assigned
233
+ def issue_number=(issue_number)
234
+ if !issue_number.nil? && issue_number.to_s.length > 2
235
+ fail ArgumentError, 'invalid value for "issue_number", the character length must be smaller than or equal to 2.'
236
+ end
237
+
238
+ if !issue_number.nil? && issue_number.to_s.length < 1
239
+ fail ArgumentError, 'invalid value for "issue_number", the character length must be great than or equal to 1.'
240
+ end
241
+
242
+ @issue_number = issue_number
243
+ end
244
+
245
+ # Custom attribute writer method with validation
246
+ # @param [Object] start_month Value to be assigned
247
+ def start_month=(start_month)
248
+ if !start_month.nil? && start_month.to_s.length > 2
249
+ fail ArgumentError, 'invalid value for "start_month", the character length must be smaller than or equal to 2.'
250
+ end
251
+
252
+ if !start_month.nil? && start_month.to_s.length < 2
253
+ fail ArgumentError, 'invalid value for "start_month", the character length must be great than or equal to 2.'
254
+ end
255
+
256
+ @start_month = start_month
257
+ end
258
+
259
+ # Custom attribute writer method with validation
260
+ # @param [Object] start_year Value to be assigned
261
+ def start_year=(start_year)
262
+ if !start_year.nil? && start_year.to_s.length > 4
263
+ fail ArgumentError, 'invalid value for "start_year", the character length must be smaller than or equal to 4.'
264
+ end
265
+
266
+ if !start_year.nil? && start_year.to_s.length < 4
267
+ fail ArgumentError, 'invalid value for "start_year", the character length must be great than or equal to 4.'
268
+ end
269
+
270
+ @start_year = start_year
271
+ end
272
+
273
+ # Checks equality by comparing each attribute.
274
+ # @param [Object] Object to be compared
275
+ def ==(o)
276
+ return true if self.equal?(o)
277
+ self.class == o.class &&
278
+ expiration_month == o.expiration_month &&
279
+ expiration_year == o.expiration_year &&
280
+ type == o.type &&
281
+ issue_number == o.issue_number &&
282
+ start_month == o.start_month &&
283
+ start_year == o.start_year &&
284
+ use_as == o.use_as
285
+ end
286
+
287
+ # @see the `==` method
288
+ # @param [Object] Object to be compared
289
+ def eql?(o)
290
+ self == o
291
+ end
292
+
293
+ # Calculates hash code according to all attributes.
294
+ # @return [Fixnum] Hash code
295
+ def hash
296
+ [expiration_month, expiration_year, type, issue_number, start_month, start_year, use_as].hash
297
+ end
298
+
299
+ # Builds the object from hash
300
+ # @param [Hash] attributes Model attributes in the form of hash
301
+ # @return [Object] Returns the model itself
302
+ def build_from_hash(attributes)
303
+ return nil unless attributes.is_a?(Hash)
304
+ self.class.swagger_types.each_pair do |key, type|
305
+ if type =~ /\AArray<(.*)>/i
306
+ # check to ensure the input is an array given that the the attribute
307
+ # is documented as an array but the input is not
308
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
309
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
310
+ end
311
+ elsif !attributes[self.class.attribute_map[key]].nil?
312
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
313
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
314
+ end
315
+
316
+ self
317
+ end
318
+
319
+ # Deserializes the data based on type
320
+ # @param string type Data type
321
+ # @param string value Value to be deserialized
322
+ # @return [Object] Deserialized data
323
+ def _deserialize(type, value)
324
+ case type.to_sym
325
+ when :DateTime
326
+ DateTime.parse(value)
327
+ when :Date
328
+ Date.parse(value)
329
+ when :String
330
+ value.to_s
331
+ when :Integer
332
+ value.to_i
333
+ when :Float
334
+ value.to_f
335
+ when :BOOLEAN
336
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
337
+ true
338
+ else
339
+ false
340
+ end
341
+ when :Object
342
+ # generic object (usually a Hash), return directly
343
+ value
344
+ when /\AArray<(?<inner_type>.+)>\z/
345
+ inner_type = Regexp.last_match[:inner_type]
346
+ value.map { |v| _deserialize(inner_type, v) }
347
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
348
+ k_type = Regexp.last_match[:k_type]
349
+ v_type = Regexp.last_match[:v_type]
350
+ {}.tap do |hash|
351
+ value.each do |k, v|
352
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
353
+ end
354
+ end
355
+ else # model
356
+ temp_model = CyberSource.const_get(type).new
357
+ temp_model.build_from_hash(value)
358
+ end
359
+ end
360
+
361
+ # Returns the string representation of the object
362
+ # @return [String] String presentation of the object
363
+ def to_s
364
+ to_hash.to_s
365
+ end
366
+
367
+ # to_body is an alias to to_hash (backward compatibility)
368
+ # @return [Hash] Returns the object in the form of hash
369
+ def to_body
370
+ to_hash
371
+ end
372
+
373
+ # Returns the object in the form of hash
374
+ # @return [Hash] Returns the object in the form of hash
375
+ def to_hash
376
+ hash = {}
377
+ self.class.attribute_map.each_pair do |attr, param|
378
+ value = self.send(attr)
379
+ next if value.nil?
380
+ hash[param] = _to_hash(value)
381
+ end
382
+ hash
383
+ end
384
+
385
+ # Outputs non-array value in the form of hash
386
+ # For object, use to_hash. Otherwise, just return the value
387
+ # @param [Object] value Any valid value
388
+ # @return [Hash] Returns the value in the form of hash
389
+ def _to_hash(value)
390
+ if value.is_a?(Array)
391
+ value.compact.map { |v| _to_hash(v) }
392
+ elsif value.is_a?(Hash)
393
+ {}.tap do |hash|
394
+ value.each { |k, v| hash[k] = _to_hash(v) }
395
+ end
396
+ elsif value.respond_to? :to_hash
397
+ value.to_hash
398
+ else
399
+ value
400
+ end
401
+ end
402
+ end
403
+ end