cybersource_rest_client 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (354) hide show
  1. checksums.yaml +4 -4
  2. data/AuthenticationSDK/Cybersource.gemspec +22 -21
  3. data/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +3 -1
  4. data/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +3 -1
  5. data/AuthenticationSDK/authentication/jwt/JwtToken.rb +2 -2
  6. data/AuthenticationSDK/util/Constants.rb +4 -0
  7. data/lib/{cyberSource_client → cybersource_rest_client}/api/capture_api.rb +4 -53
  8. data/lib/{cyberSource_client → cybersource_rest_client}/api/credit_api.rb +4 -53
  9. data/lib/{cyberSource_client/api/tokenization_api.rb → cybersource_rest_client/api/flex_token_api.rb} +9 -6
  10. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +254 -0
  11. data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +91 -0
  12. data/lib/{cyberSource_client → cybersource_rest_client}/api/key_generation_api.rb +11 -12
  13. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +86 -0
  14. data/lib/{cyberSource_client/api/instrument_identifier_api.rb → cybersource_rest_client/api/payment_instruments_api.rb} +171 -150
  15. data/lib/cybersource_rest_client/api/payments_api.rb +78 -0
  16. data/lib/{cyberSource_client/api/default_api.rb → cybersource_rest_client/api/process_a_payout_api.rb} +8 -6
  17. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +129 -0
  18. data/lib/{cyberSource_client → cybersource_rest_client}/api/refund_api.rb +6 -53
  19. data/lib/cybersource_rest_client/api/report_definitions_api.rb +156 -0
  20. data/lib/cybersource_rest_client/api/report_downloads_api.rb +100 -0
  21. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +262 -0
  22. data/lib/cybersource_rest_client/api/reports_api.rb +257 -0
  23. data/lib/{cyberSource_client → cybersource_rest_client}/api/reversal_api.rb +4 -53
  24. data/lib/cybersource_rest_client/api/search_transactions_api.rb +132 -0
  25. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +169 -0
  26. data/lib/cybersource_rest_client/api/transaction_batch_api.rb +77 -0
  27. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +86 -0
  28. data/lib/cybersource_rest_client/api/transaction_details_api.rb +78 -0
  29. data/lib/cybersource_rest_client/api/user_management_api.rb +84 -0
  30. data/lib/{cyberSource_client → cybersource_rest_client}/api/void_api.rb +10 -53
  31. data/lib/{cyberSource_client → cybersource_rest_client}/api_client.rb +33 -23
  32. data/lib/{cyberSource_client → cybersource_rest_client}/api_error.rb +0 -0
  33. data/lib/{cyberSource_client → cybersource_rest_client}/configuration.rb +1 -1
  34. data/lib/{cyberSource_client → cybersource_rest_client}/models/auth_reversal_request.rb +5 -5
  35. data/lib/{cyberSource_client → cybersource_rest_client}/models/body.rb +5 -5
  36. data/lib/{cyberSource_client → cybersource_rest_client}/models/body_1.rb +1 -1
  37. data/lib/{cyberSource_client → cybersource_rest_client}/models/body_2.rb +9 -9
  38. data/lib/{cyberSource_client → cybersource_rest_client}/models/body_3.rb +9 -9
  39. data/lib/{cyberSource_client → cybersource_rest_client}/models/capture_payment_request.rb +11 -11
  40. data/lib/{cyberSource_client → cybersource_rest_client}/models/card_info.rb +0 -0
  41. data/lib/{cyberSource_client → cybersource_rest_client}/models/create_credit_request.rb +11 -11
  42. data/lib/{cyberSource_client → cybersource_rest_client}/models/create_payment_request.rb +13 -13
  43. data/lib/cybersource_rest_client/models/create_search_request.rb +244 -0
  44. data/lib/{cyberSource_client → cybersource_rest_client}/models/der_public_key.rb +0 -0
  45. data/lib/{cyberSource_client → cybersource_rest_client}/models/error.rb +0 -0
  46. data/lib/{cyberSource_client → cybersource_rest_client}/models/error_links.rb +0 -0
  47. data/lib/{cyberSource_client → cybersource_rest_client}/models/error_response.rb +0 -0
  48. data/lib/{cyberSource_client/models/paymentsflexv1tokens_card_info.rb → cybersource_rest_client/models/flexv1tokens_card_info.rb} +1 -1
  49. data/lib/{cyberSource_client → cybersource_rest_client}/models/generate_public_key_request.rb +69 -4
  50. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_200.rb +0 -0
  51. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_200_1.rb +0 -0
  52. data/lib/{cyberSource_client/models/inline_response_200_7.rb → cybersource_rest_client/models/inline_response_200_10.rb} +6 -6
  53. data/lib/{cyberSource_client/models/inline_response_200_8.rb → cybersource_rest_client/models/inline_response_200_11.rb} +2 -2
  54. data/lib/{cyberSource_client/models/inline_response_200_8__links.rb → cybersource_rest_client/models/inline_response_200_11__links.rb} +6 -6
  55. data/lib/{cyberSource_client/models/inline_response_200_8__links_first.rb → cybersource_rest_client/models/inline_response_200_11__links_first.rb} +1 -1
  56. data/lib/{cyberSource_client/models/inline_response_200_8__links_last.rb → cybersource_rest_client/models/inline_response_200_11__links_last.rb} +1 -1
  57. data/lib/{cyberSource_client/models/inline_response_200_8__links_next.rb → cybersource_rest_client/models/inline_response_200_11__links_next.rb} +1 -1
  58. data/lib/{cyberSource_client/models/inline_response_200_8__links_prev.rb → cybersource_rest_client/models/inline_response_200_11__links_prev.rb} +1 -1
  59. data/lib/{cyberSource_client/models/inline_response_200_8__links_self.rb → cybersource_rest_client/models/inline_response_200_11__links_self.rb} +1 -1
  60. data/lib/{cyberSource_client/models/inline_response_200_4.rb → cybersource_rest_client/models/inline_response_200_12.rb} +176 -82
  61. data/lib/cybersource_rest_client/models/inline_response_200_12_application_information.rb +225 -0
  62. data/lib/cybersource_rest_client/models/inline_response_200_12_application_information_applications.rb +254 -0
  63. data/lib/cybersource_rest_client/models/inline_response_200_12_buyer_information.rb +224 -0
  64. data/lib/cybersource_rest_client/models/inline_response_200_12_client_reference_information.rb +239 -0
  65. data/lib/{cyberSource_client/models/inline_response_200_2_processor_information.rb → cybersource_rest_client/models/inline_response_200_12_consumer_authentication_information.rb} +62 -30
  66. data/lib/{cyberSource_client/models/inline_response_200_2_device_information.rb → cybersource_rest_client/models/inline_response_200_12_device_information.rb} +38 -23
  67. data/lib/cybersource_rest_client/models/inline_response_200_12_error_information.rb +205 -0
  68. data/lib/cybersource_rest_client/models/inline_response_200_12_fraud_marking_information.rb +184 -0
  69. data/lib/cybersource_rest_client/models/inline_response_200_12_installment_information.rb +184 -0
  70. data/lib/cybersource_rest_client/models/inline_response_200_12_merchant_defined_information.rb +224 -0
  71. data/lib/{cyberSource_client/models/paymentinstruments_merchant_information.rb → cybersource_rest_client/models/inline_response_200_12_merchant_information.rb} +2 -2
  72. data/lib/cybersource_rest_client/models/inline_response_200_12_merchant_information_merchant_descriptor.rb +199 -0
  73. data/lib/{cyberSource_client/models/v2paymentsidrefunds_order_information.rb → cybersource_rest_client/models/inline_response_200_12_order_information.rb} +13 -21
  74. data/lib/cybersource_rest_client/models/inline_response_200_12_order_information_amount_details.rb +274 -0
  75. data/lib/{cyberSource_client/models/inline_response_200_2_order_information_bill_to.rb → cybersource_rest_client/models/inline_response_200_12_order_information_bill_to.rb} +108 -43
  76. data/lib/{cyberSource_client/models/inline_response_200_2_order_information_line_items.rb → cybersource_rest_client/models/inline_response_200_12_order_information_line_items.rb} +34 -255
  77. data/lib/{cyberSource_client/models/inline_response_200_2_order_information_ship_to.rb → cybersource_rest_client/models/inline_response_200_12_order_information_ship_to.rb} +24 -29
  78. data/lib/cybersource_rest_client/models/inline_response_200_12_order_information_shipping_details.rb +209 -0
  79. data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information.rb +228 -0
  80. data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_account_features.rb +249 -0
  81. data/lib/{cyberSource_client/models/inline_response_200_4_order_information.rb → cybersource_rest_client/models/inline_response_200_12_payment_information_bank.rb} +52 -40
  82. data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_bank_account.rb +244 -0
  83. data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_bank_mandate.rb +204 -0
  84. data/lib/{cyberSource_client/models/inline_response_200_2_payment_information_card.rb → cybersource_rest_client/models/inline_response_200_12_payment_information_card.rb} +166 -12
  85. data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_invoice.rb +204 -0
  86. data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_payment_type.rb +244 -0
  87. data/lib/cybersource_rest_client/models/inline_response_200_12_point_of_sale_information.rb +233 -0
  88. data/lib/cybersource_rest_client/models/inline_response_200_12_processing_information.rb +252 -0
  89. data/lib/{cyberSource_client/models/inline_response_200_2_processing_information.rb → cybersource_rest_client/models/inline_response_200_12_processing_information_authorization_options.rb} +17 -17
  90. data/lib/cybersource_rest_client/models/inline_response_200_12_processing_information_bank_transfer_options.rb +184 -0
  91. data/lib/cybersource_rest_client/models/inline_response_200_12_processor_information.rb +309 -0
  92. data/lib/cybersource_rest_client/models/inline_response_200_12_processor_information_ach_verification.rb +224 -0
  93. data/lib/{cyberSource_client/models/inline_response_200_2_processor_information_card_verification.rb → cybersource_rest_client/models/inline_response_200_12_processor_information_card_verification.rb} +1 -1
  94. data/lib/cybersource_rest_client/models/inline_response_200_12_processor_information_electronic_verification_results.rb +424 -0
  95. data/lib/{cyberSource_client/models/inline_response_200_2_processor_information_avs.rb → cybersource_rest_client/models/inline_response_200_12_processor_information_processor.rb} +17 -17
  96. data/lib/cybersource_rest_client/models/inline_response_200_12_risk_information.rb +233 -0
  97. data/lib/cybersource_rest_client/models/inline_response_200_12_risk_information_profile.rb +194 -0
  98. data/lib/{cyberSource_client/models/inline_response_200_2_payment_information.rb → cybersource_rest_client/models/inline_response_200_12_risk_information_score.rb} +18 -14
  99. data/lib/cybersource_rest_client/models/inline_response_200_12_sender_information.rb +199 -0
  100. data/lib/{cyberSource_client/models/inline_response_201__embedded.rb → cybersource_rest_client/models/inline_response_200_13.rb} +10 -8
  101. data/lib/cybersource_rest_client/models/inline_response_200_13_account_information.rb +282 -0
  102. data/lib/cybersource_rest_client/models/inline_response_200_13_contact_information.rb +210 -0
  103. data/lib/cybersource_rest_client/models/inline_response_200_13_organization_information.rb +183 -0
  104. data/lib/cybersource_rest_client/models/inline_response_200_13_users.rb +201 -0
  105. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +204 -0
  106. data/lib/cybersource_rest_client/models/inline_response_200_2__links.rb +183 -0
  107. data/lib/cybersource_rest_client/models/inline_response_200_2__links_self.rb +192 -0
  108. data/lib/cybersource_rest_client/models/inline_response_200_2_transaction_batches.rb +277 -0
  109. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +186 -0
  110. data/lib/cybersource_rest_client/models/inline_response_200_3_notification_of_changes.rb +255 -0
  111. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +185 -0
  112. data/lib/cybersource_rest_client/models/inline_response_200_4_report_definitions.rb +243 -0
  113. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +254 -0
  114. data/lib/cybersource_rest_client/models/inline_response_200_5_attributes.rb +237 -0
  115. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +185 -0
  116. data/lib/cybersource_rest_client/models/inline_response_200_6_report_preferences.rb +229 -0
  117. data/lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb +354 -0
  118. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +185 -0
  119. data/lib/cybersource_rest_client/models/inline_response_200_7_reports.rb +373 -0
  120. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +376 -0
  121. data/lib/{cyberSource_client/models/inline_response_201__embedded_capture.rb → cybersource_rest_client/models/inline_response_200_9.rb} +11 -10
  122. data/lib/cybersource_rest_client/models/inline_response_200_9__links.rb +194 -0
  123. data/lib/cybersource_rest_client/models/inline_response_200_9__links_files.rb +202 -0
  124. data/lib/cybersource_rest_client/models/inline_response_200_9__links_self.rb +192 -0
  125. data/lib/cybersource_rest_client/models/inline_response_200_9_file_details.rb +278 -0
  126. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_200_der.rb +0 -0
  127. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_200_jwk.rb +0 -0
  128. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201.rb +1 -10
  129. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_1.rb +2 -2
  130. data/lib/{cyberSource_client/models/inline_response_201__embedded_capture__links.rb → cybersource_rest_client/models/inline_response_201_1__links.rb} +1 -1
  131. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_1_authorization_information.rb +0 -0
  132. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_1_processor_information.rb +1 -1
  133. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_1_reversal_amount_details.rb +0 -0
  134. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2.rb +0 -0
  135. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2__links.rb +0 -0
  136. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2_order_information.rb +0 -0
  137. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2_order_information_amount_details.rb +0 -0
  138. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2_processor_information.rb +0 -0
  139. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3.rb +0 -0
  140. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3__links.rb +0 -0
  141. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3_order_information.rb +0 -0
  142. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3_processor_information.rb +0 -0
  143. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3_refund_amount_details.rb +0 -0
  144. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_4.rb +0 -0
  145. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_4_credit_amount_details.rb +0 -0
  146. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_5.rb +1 -1
  147. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_5_void_amount_details.rb +0 -0
  148. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_6.rb +9 -9
  149. data/lib/{cyberSource_client/models/inline_response_200_5.rb → cybersource_rest_client/models/inline_response_201_7.rb} +99 -87
  150. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded.rb +186 -0
  151. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded__links.rb +183 -0
  152. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_buyer_information.rb +199 -0
  153. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_client_reference_information.rb +219 -0
  154. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_consumer_authentication_information.rb +209 -0
  155. data/lib/{cyberSource_client/models/inline_response_200_4_device_information.rb → cybersource_rest_client/models/inline_response_201_7__embedded_device_information.rb} +1 -1
  156. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_merchant_information.rb +199 -0
  157. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_order_information.rb +201 -0
  158. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_order_information_bill_to.rb +299 -0
  159. data/lib/{cyberSource_client/models/inline_response_200_4_order_information_ship_to.rb → cybersource_rest_client/models/inline_response_201_7__embedded_order_information_ship_to.rb} +85 -35
  160. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_payment_information.rb +201 -0
  161. data/lib/{cyberSource_client/models/inline_response_200_2_payment_information_tokenized_card.rb → cybersource_rest_client/models/inline_response_201_7__embedded_payment_information_card.rb} +31 -81
  162. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_payment_information_payment_method.rb +184 -0
  163. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_point_of_sale_information.rb +228 -0
  164. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_point_of_sale_information_partner.rb +199 -0
  165. data/lib/{cyberSource_client/models/inline_response_200_4_processing_information.rb → cybersource_rest_client/models/inline_response_201_7__embedded_processing_information.rb} +9 -8
  166. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_processor_information.rb +183 -0
  167. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_risk_information.rb +183 -0
  168. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_risk_information_providers.rb +183 -0
  169. data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_risk_information_providers_fingerprint.rb +249 -0
  170. data/lib/{cyberSource_client/models/inline_response_200_2.rb → cybersource_rest_client/models/inline_response_201_7__embedded_transaction_summaries.rb} +103 -123
  171. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201__links.rb +0 -0
  172. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201__links_self.rb +0 -0
  173. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_client_reference_information.rb +0 -0
  174. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_error_information.rb +0 -0
  175. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_error_information_details.rb +0 -0
  176. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_order_information.rb +0 -0
  177. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_order_information_amount_details.rb +0 -0
  178. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_order_information_invoice_details.rb +0 -0
  179. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_payment_information.rb +0 -0
  180. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_payment_information_account_features.rb +0 -0
  181. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_payment_information_card.rb +1 -1
  182. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_payment_information_tokenized_card.rb +1 -1
  183. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_point_of_sale_information.rb +0 -0
  184. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_point_of_sale_information_emv.rb +0 -0
  185. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information.rb +5 -5
  186. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_avs.rb +10 -7
  187. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_card_verification.rb +0 -0
  188. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_consumer_authentication_response.rb +0 -0
  189. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_customer.rb +0 -0
  190. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_electronic_verification_results.rb +10 -10
  191. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_issuer.rb +0 -0
  192. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_merchant_advice.rb +0 -0
  193. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400.rb +0 -0
  194. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400_1.rb +0 -0
  195. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400_2.rb +0 -0
  196. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400_3.rb +0 -0
  197. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400_4.rb +0 -0
  198. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +193 -0
  199. data/lib/cybersource_rest_client/models/inline_response_400_5_error_information.rb +203 -0
  200. data/lib/cybersource_rest_client/models/inline_response_400_5_error_information_details.rb +194 -0
  201. data/lib/{cyberSource_client/models/inline_response_400_5.rb → cybersource_rest_client/models/inline_response_400_6.rb} +1 -1
  202. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +247 -0
  203. data/lib/cybersource_rest_client/models/inline_response_400_7_fields.rb +205 -0
  204. data/lib/{cyberSource_client/models/inline_response_400_6.rb → cybersource_rest_client/models/inline_response_400_8.rb} +2 -2
  205. data/lib/cybersource_rest_client/models/inline_response_400_9.rb +249 -0
  206. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_409.rb +0 -0
  207. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_409__links.rb +0 -0
  208. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_409__links_payment_instruments.rb +0 -0
  209. data/lib/cybersource_rest_client/models/inline_response_500.rb +193 -0
  210. data/lib/cybersource_rest_client/models/inline_response_500_error_information.rb +194 -0
  211. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_502.rb +0 -0
  212. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default.rb +0 -0
  213. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default__links.rb +0 -0
  214. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default__links_next.rb +0 -0
  215. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default_response_status.rb +0 -0
  216. data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default_response_status_details.rb +0 -0
  217. data/lib/{cyberSource_client → cybersource_rest_client}/models/json_web_key.rb +0 -0
  218. data/lib/{cyberSource_client → cybersource_rest_client}/models/key_parameters.rb +0 -0
  219. data/lib/{cyberSource_client → cybersource_rest_client}/models/key_result.rb +0 -0
  220. data/lib/{cyberSource_client → cybersource_rest_client}/models/link.rb +0 -0
  221. data/lib/{cyberSource_client → cybersource_rest_client}/models/links.rb +0 -0
  222. data/lib/{cyberSource_client → cybersource_rest_client}/models/oct_create_payment_request.rb +6 -6
  223. data/lib/{cyberSource_client/models/v2credits_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb} +2 -2
  224. data/lib/{cyberSource_client/models/v2credits_point_of_sale_information_emv.rb → cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb} +1 -1
  225. data/lib/{cyberSource_client/models/v2credits_processing_information.rb → cybersource_rest_client/models/ptsv2credits_processing_information.rb} +2 -2
  226. data/lib/{cyberSource_client/models/v2payments_aggregator_information.rb → cybersource_rest_client/models/ptsv2payments_aggregator_information.rb} +2 -2
  227. data/lib/{cyberSource_client/models/v2payments_aggregator_information_sub_merchant.rb → cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb} +10 -10
  228. data/lib/{cyberSource_client/models/v2payments_buyer_information.rb → cybersource_rest_client/models/ptsv2payments_buyer_information.rb} +4 -4
  229. data/lib/{cyberSource_client/models/v2payments_buyer_information_personal_identification.rb → cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb} +2 -2
  230. data/lib/{cyberSource_client/models/v2payments_client_reference_information.rb → cybersource_rest_client/models/ptsv2payments_client_reference_information.rb} +1 -1
  231. data/lib/{cyberSource_client/models/v2payments_consumer_authentication_information.rb → cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb} +1 -1
  232. data/lib/{cyberSource_client/models/v2payments_device_information.rb → cybersource_rest_client/models/ptsv2payments_device_information.rb} +2 -2
  233. data/lib/{cyberSource_client/models/v2payments_merchant_defined_information.rb → cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb} +3 -3
  234. data/lib/{cyberSource_client/models/v2payments_merchant_information.rb → cybersource_rest_client/models/ptsv2payments_merchant_information.rb} +2 -2
  235. data/lib/{cyberSource_client/models/v2payments_merchant_information_merchant_descriptor.rb → cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb} +1 -1
  236. data/lib/{cyberSource_client/models/v2payments_order_information.rb → cybersource_rest_client/models/ptsv2payments_order_information.rb} +7 -7
  237. data/lib/{cyberSource_client/models/v2payments_order_information_amount_details.rb → cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb} +5 -5
  238. data/lib/{cyberSource_client/models/v2payments_order_information_amount_details_amex_additional_amounts.rb → cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb} +1 -1
  239. data/lib/{cyberSource_client/models/v2payments_order_information_amount_details_surcharge.rb → cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb} +2 -2
  240. data/lib/{cyberSource_client/models/v2payments_order_information_amount_details_tax_details.rb → cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb} +1 -1
  241. data/lib/{cyberSource_client/models/v2payments_order_information_bill_to.rb → cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb} +9 -9
  242. data/lib/{cyberSource_client/models/v2payments_order_information_invoice_details.rb → cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb} +34 -4
  243. data/lib/{cyberSource_client/models/v2payments_order_information_invoice_details_transaction_advice_addendum.rb → cybersource_rest_client/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum.rb} +2 -2
  244. data/lib/{cyberSource_client/models/v2payments_order_information_line_items.rb → cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb} +2 -2
  245. data/lib/{cyberSource_client/models/v2payments_order_information_ship_to.rb → cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb} +2 -2
  246. data/lib/{cyberSource_client/models/v2payments_order_information_shipping_details.rb → cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb} +2 -2
  247. data/lib/{cyberSource_client/models/v2payments_payment_information.rb → cybersource_rest_client/models/ptsv2payments_payment_information.rb} +5 -5
  248. data/lib/{cyberSource_client/models/v2payments_payment_information_card.rb → cybersource_rest_client/models/ptsv2payments_payment_information_card.rb} +3 -3
  249. data/lib/{cyberSource_client/models/v2payments_payment_information_customer.rb → cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb} +8 -11
  250. data/lib/{cyberSource_client/models/v2payments_payment_information_fluid_data.rb → cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb} +2 -2
  251. data/lib/{cyberSource_client/models/v2payments_payment_information_tokenized_card.rb → cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb} +4 -4
  252. data/lib/{cyberSource_client/models/v2payments_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb} +5 -5
  253. data/lib/{cyberSource_client/models/v2payments_point_of_sale_information_emv.rb → cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb} +1 -1
  254. data/lib/{cyberSource_client/models/v2payments_processing_information.rb → cybersource_rest_client/models/ptsv2payments_processing_information.rb} +6 -6
  255. data/lib/{cyberSource_client/models/v2payments_processing_information_authorization_options.rb → cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb} +2 -2
  256. data/lib/{cyberSource_client/models/v2payments_processing_information_authorization_options_initiator.rb → cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb} +2 -2
  257. data/lib/{cyberSource_client/models/v2payments_processing_information_authorization_options_merchant_initiated_transaction.rb → cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_merchant_initiated_transaction.rb} +1 -1
  258. data/lib/{cyberSource_client/models/v2payments_processing_information_capture_options.rb → cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb} +1 -1
  259. data/lib/{cyberSource_client/models/v2payments_processing_information_issuer.rb → cybersource_rest_client/models/ptsv2payments_processing_information_issuer.rb} +1 -1
  260. data/lib/{cyberSource_client/models/v2payments_processing_information_recurring_options.rb → cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb} +1 -1
  261. data/lib/{cyberSource_client/models/v2payments_recipient_information.rb → cybersource_rest_client/models/ptsv2payments_recipient_information.rb} +4 -4
  262. data/lib/{cyberSource_client/models/v2paymentsidcaptures_aggregator_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb} +2 -2
  263. data/lib/{cyberSource_client/models/v2paymentsidcaptures_aggregator_information_sub_merchant.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb} +9 -9
  264. data/lib/{cyberSource_client/models/v2paymentsidcaptures_buyer_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb} +2 -2
  265. data/lib/{cyberSource_client/models/v2paymentsidcaptures_merchant_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb} +2 -2
  266. data/lib/{cyberSource_client/models/inline_response_200_2_order_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information.rb} +7 -7
  267. data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_amount_details.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb} +3 -3
  268. data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_bill_to.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb} +6 -6
  269. data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_invoice_details.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb} +3 -3
  270. data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_ship_to.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb} +1 -1
  271. data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_shipping_details.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb} +1 -1
  272. data/lib/{cyberSource_client/models/v2paymentsidcaptures_payment_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information.rb} +2 -2
  273. data/lib/{cyberSource_client/models/v2paymentsidcaptures_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb} +2 -2
  274. data/lib/{cyberSource_client/models/v2paymentsidcaptures_point_of_sale_information_emv.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb} +1 -1
  275. data/lib/{cyberSource_client/models/v2paymentsidcaptures_processing_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb} +4 -4
  276. data/lib/{cyberSource_client/models/v2paymentsidcaptures_processing_information_authorization_options.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb} +1 -1
  277. data/lib/{cyberSource_client/models/v2paymentsidcaptures_processing_information_capture_options.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb} +1 -1
  278. data/lib/{cyberSource_client/models/v2paymentsidrefunds_merchant_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb} +2 -2
  279. data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb} +7 -7
  280. data/lib/{cyberSource_client/models/v2paymentsidrefunds_order_information_line_items.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb} +2 -2
  281. data/lib/{cyberSource_client/models/v2paymentsidrefunds_payment_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb} +2 -2
  282. data/lib/{cyberSource_client/models/v2paymentsidrefunds_payment_information_card.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb} +3 -3
  283. data/lib/{cyberSource_client/models/v2paymentsidrefunds_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb} +2 -2
  284. data/lib/{cyberSource_client/models/v2paymentsidrefunds_processing_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb} +2 -2
  285. data/lib/{cyberSource_client/models/v2paymentsidrefunds_processing_information_recurring_options.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb} +1 -1
  286. data/lib/{cyberSource_client/models/v2paymentsidreversals_client_reference_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb} +1 -1
  287. data/lib/{cyberSource_client/models/v2paymentsidreversals_order_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb} +2 -2
  288. data/lib/{cyberSource_client/models/v2paymentsidreversals_order_information_line_items.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb} +1 -1
  289. data/lib/{cyberSource_client/models/v2paymentsidreversals_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information.rb} +1 -1
  290. data/lib/{cyberSource_client/models/v2paymentsidreversals_processing_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb} +2 -2
  291. data/lib/{cyberSource_client/models/v2paymentsidreversals_reversal_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb} +8 -5
  292. data/lib/{cyberSource_client/models/v2paymentsidreversals_reversal_information_amount_details.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb} +1 -1
  293. data/lib/{cyberSource_client/models/v2payouts_merchant_information.rb → cybersource_rest_client/models/ptsv2payouts_merchant_information.rb} +2 -2
  294. data/lib/{cyberSource_client/models/v2payouts_merchant_information_merchant_descriptor.rb → cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb} +1 -1
  295. data/lib/{cyberSource_client/models/v2payouts_order_information.rb → cybersource_rest_client/models/ptsv2payouts_order_information.rb} +3 -3
  296. data/lib/{cyberSource_client/models/v2payouts_order_information_amount_details.rb → cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb} +8 -24
  297. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +199 -0
  298. data/lib/{cyberSource_client/models/v2payouts_order_information_bill_to.rb → cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb} +5 -5
  299. data/lib/{cyberSource_client/models/v2payouts_payment_information.rb → cybersource_rest_client/models/ptsv2payouts_payment_information.rb} +2 -2
  300. data/lib/{cyberSource_client/models/v2payouts_payment_information_card.rb → cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb} +4 -4
  301. data/lib/{cyberSource_client/models/v2payouts_processing_information.rb → cybersource_rest_client/models/ptsv2payouts_processing_information.rb} +3 -3
  302. data/lib/{cyberSource_client/models/v2payouts_processing_information_payouts_options.rb → cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb} +1 -1
  303. data/lib/{cyberSource_client/models/v2payouts_recipient_information.rb → cybersource_rest_client/models/ptsv2payouts_recipient_information.rb} +1 -1
  304. data/lib/{cyberSource_client/models/v2payouts_sender_information.rb → cybersource_rest_client/models/ptsv2payouts_sender_information.rb} +6 -6
  305. data/lib/{cyberSource_client/models/v2payouts_sender_information_account.rb → cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb} +2 -2
  306. data/lib/{cyberSource_client → cybersource_rest_client}/models/refund_capture_request.rb +11 -11
  307. data/lib/{cyberSource_client → cybersource_rest_client}/models/refund_payment_request.rb +11 -11
  308. data/lib/cybersource_rest_client/models/request_body.rb +463 -0
  309. data/lib/cybersource_rest_client/models/request_body_1.rb +415 -0
  310. data/lib/{cyberSource_client → cybersource_rest_client}/models/response_status.rb +0 -0
  311. data/lib/{cyberSource_client → cybersource_rest_client}/models/response_status_details.rb +0 -0
  312. data/lib/{cyberSource_client/models/instrumentidentifiers__links.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers__links.rb} +4 -4
  313. data/lib/{cyberSource_client/models/instrumentidentifiers__links_self.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers__links_self.rb} +1 -1
  314. data/lib/{cyberSource_client/models/instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb} +1 -1
  315. data/lib/{cyberSource_client/models/instrumentidentifiers_bank_account.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_bank_account.rb} +1 -1
  316. data/lib/{cyberSource_client/models/instrumentidentifiers_card.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb} +1 -1
  317. data/lib/{cyberSource_client/models/instrumentidentifiers_details.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_details.rb} +1 -1
  318. data/lib/{cyberSource_client/models/instrumentidentifiers_metadata.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_metadata.rb} +1 -1
  319. data/lib/{cyberSource_client/models/instrumentidentifiers_processing_information.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information.rb} +2 -2
  320. data/lib/{cyberSource_client/models/instrumentidentifiers_processing_information_authorization_options.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options.rb} +2 -2
  321. data/lib/{cyberSource_client/models/instrumentidentifiers_processing_information_authorization_options_initiator.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb} +2 -2
  322. data/lib/{cyberSource_client/models/paymentinstruments_bank_account.rb → cybersource_rest_client/models/tmsv1paymentinstruments_bank_account.rb} +1 -1
  323. data/lib/{cyberSource_client/models/paymentinstruments_bill_to.rb → cybersource_rest_client/models/tmsv1paymentinstruments_bill_to.rb} +1 -1
  324. data/lib/{cyberSource_client/models/paymentinstruments_buyer_information.rb → cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information.rb} +2 -2
  325. data/lib/{cyberSource_client/models/paymentinstruments_buyer_information_issued_by.rb → cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information_issued_by.rb} +1 -1
  326. data/lib/{cyberSource_client/models/paymentinstruments_buyer_information_personal_identification.rb → cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information_personal_identification.rb} +2 -2
  327. data/lib/{cyberSource_client/models/paymentinstruments_card.rb → cybersource_rest_client/models/tmsv1paymentinstruments_card.rb} +1 -1
  328. data/lib/{cyberSource_client/models/paymentinstruments_instrument_identifier.rb → cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb} +6 -6
  329. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_merchant_information.rb +183 -0
  330. data/lib/{cyberSource_client/models/paymentinstruments_merchant_information_merchant_descriptor.rb → cybersource_rest_client/models/tmsv1paymentinstruments_merchant_information_merchant_descriptor.rb} +1 -1
  331. data/lib/{cyberSource_client/models/paymentinstruments_processing_information.rb → cybersource_rest_client/models/tmsv1paymentinstruments_processing_information.rb} +2 -2
  332. data/lib/{cyberSource_client/models/paymentinstruments_processing_information_bank_transfer_options.rb → cybersource_rest_client/models/tmsv1paymentinstruments_processing_information_bank_transfer_options.rb} +1 -1
  333. data/lib/{cyberSource_client → cybersource_rest_client}/models/tokenize_parameters.rb +1 -1
  334. data/lib/{cyberSource_client → cybersource_rest_client}/models/tokenize_request.rb +1 -1
  335. data/lib/{cyberSource_client → cybersource_rest_client}/models/tokenize_result.rb +0 -0
  336. data/lib/{cyberSource_client → cybersource_rest_client}/models/void_capture_request.rb +1 -1
  337. data/lib/{cyberSource_client → cybersource_rest_client}/models/void_credit_request.rb +1 -1
  338. data/lib/{cyberSource_client → cybersource_rest_client}/models/void_payment_request.rb +1 -1
  339. data/lib/{cyberSource_client → cybersource_rest_client}/models/void_refund_request.rb +1 -1
  340. data/lib/{cyberSource_client → cybersource_rest_client}/version.rb +0 -0
  341. data/lib/cybersource_rest_client.rb +369 -0
  342. metadata +338 -255
  343. data/lib/cyberSource_client/api/payment_api.rb +0 -127
  344. data/lib/cyberSource_client/api/payment_instrument_api.rb +0 -312
  345. data/lib/cyberSource_client/models/inline_response_200_2_buyer_information.rb +0 -270
  346. data/lib/cyberSource_client/models/inline_response_200_2_merchant_information.rb +0 -233
  347. data/lib/cyberSource_client/models/inline_response_200_2_order_information_amount_details.rb +0 -385
  348. data/lib/cyberSource_client/models/inline_response_200_2_order_information_invoice_details.rb +0 -315
  349. data/lib/cyberSource_client/models/inline_response_200_3.rb +0 -314
  350. data/lib/cyberSource_client/models/inline_response_200_4_order_information_amount_details.rb +0 -360
  351. data/lib/cyberSource_client/models/inline_response_200_4_order_information_invoice_details.rb +0 -305
  352. data/lib/cyberSource_client/models/inline_response_200_4_processing_information_authorization_options.rb +0 -199
  353. data/lib/cyberSource_client/models/inline_response_200_6.rb +0 -305
  354. data/lib/cyberSource_client.rb +0 -286
@@ -16,60 +16,9 @@ module CyberSource
16
16
  class VoidApi
17
17
  attr_accessor :api_client
18
18
 
19
- def initialize(api_client = ApiClient.default)
19
+ def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- end
22
- # Retrieve A Void
23
- # Include the void ID in the GET request to retrieve the void details.
24
- # @param id The void ID returned from a previous void request.
25
- # @param [Hash] opts the optional parameters
26
- # @return [InlineResponse2015]
27
- def get_void(id, opts = {})
28
- data, _status_code, _headers = get_void_with_http_info(id, opts)
29
- return data, _status_code, _headers
30
- end
31
-
32
- # Retrieve A Void
33
- # Include the void ID in the GET request to retrieve the void details.
34
- # @param id The void ID returned from a previous void request.
35
- # @param [Hash] opts the optional parameters
36
- # @return [Array<(InlineResponse2015, Fixnum, Hash)>] InlineResponse2015 data, response status code and response headers
37
- def get_void_with_http_info(id, opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: VoidApi.get_void ...'
40
- end
41
- # verify the required parameter 'id' is set
42
- if @api_client.config.client_side_validation && id.nil?
43
- fail ArgumentError, "Missing the required parameter 'id' when calling VoidApi.get_void"
44
- end
45
- # resource path
46
- local_var_path = 'pts/v2/voids/{id}'.sub('{' + 'id' + '}', id.to_s)
47
-
48
- # query parameters
49
- query_params = {}
50
-
51
- # header parameters
52
- header_params = {}
53
- # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
55
-
56
- # form parameters
57
- form_params = {}
58
-
59
- # http body (model)
60
- post_body = nil
61
- auth_names = []
62
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
63
- :header_params => header_params,
64
- :query_params => query_params,
65
- :form_params => form_params,
66
- :body => post_body,
67
- :auth_names => auth_names,
68
- :return_type => 'InlineResponse2015')
69
- if @api_client.config.debugging
70
- @api_client.config.logger.debug "API called: VoidApi#get_void\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
71
- end
72
- return data, status_code, headers
21
+ @api_client.set_configuration(config)
73
22
  end
74
23
  # Void a Capture
75
24
  # Include the capture ID in the POST request to cancel the capture.
@@ -110,6 +59,8 @@ module CyberSource
110
59
  header_params = {}
111
60
  # HTTP header 'Accept' (if needed)
112
61
  header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
62
+ # HTTP header 'Content-Type'
63
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
113
64
 
114
65
  # form parameters
115
66
  form_params = {}
@@ -168,6 +119,8 @@ module CyberSource
168
119
  header_params = {}
169
120
  # HTTP header 'Accept' (if needed)
170
121
  header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
122
+ # HTTP header 'Content-Type'
123
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
171
124
 
172
125
  # form parameters
173
126
  form_params = {}
@@ -226,6 +179,8 @@ module CyberSource
226
179
  header_params = {}
227
180
  # HTTP header 'Accept' (if needed)
228
181
  header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
182
+ # HTTP header 'Content-Type'
183
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
229
184
 
230
185
  # form parameters
231
186
  form_params = {}
@@ -284,6 +239,8 @@ module CyberSource
284
239
  header_params = {}
285
240
  # HTTP header 'Accept' (if needed)
286
241
  header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
242
+ # HTTP header 'Content-Type'
243
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
287
244
 
288
245
  # form parameters
289
246
  form_params = {}
@@ -74,7 +74,7 @@ module CyberSource
74
74
  else
75
75
  data = nil
76
76
  end
77
- return data, response.code, response.headers
77
+ return response.body, response.code, response.headers
78
78
  end
79
79
 
80
80
  # Builds the HTTP request
@@ -89,10 +89,10 @@ module CyberSource
89
89
  def build_request(http_method, path, opts = {})
90
90
  url = build_request_url(path)
91
91
  body_params = opts[:body] || {}
92
- headers = CallAuthenticationHeader(http_method, path, body_params, opts[:header_params])
92
+ query_params = opts[:query_params] || {}
93
+ headers = CallAuthenticationHeader(http_method, path, body_params, opts[:header_params], query_params)
93
94
  http_method = http_method.to_sym.downcase
94
95
  header_params = @default_headers.merge(headers || {})
95
- query_params = opts[:query_params] || {}
96
96
  form_params = opts[:form_params] || {}
97
97
 
98
98
 
@@ -127,46 +127,49 @@ module CyberSource
127
127
  download_file(request) if opts[:return_type] == 'File'
128
128
  request
129
129
  end
130
+ # set merchantConfig
131
+ def set_configuration(config)
132
+ require_relative '../../AuthenticationSDK/core/Merchantconfig.rb'
133
+ $merchantconfig_obj = Merchantconfig.new(config)
134
+ end
130
135
  # Calling Authentication
131
- def CallAuthenticationHeader(http_method, path, body_params, header_params)
132
- require Dir.getwd + '/data/Configuration.rb'
133
- require_relative '../../AuthenticationSDK/core/Merchantconfig.rb'
136
+ def CallAuthenticationHeader(http_method, path, body_params, header_params, query_params)
137
+ # require Dir.getwd + '/data/Configuration.rb'
134
138
  require_relative '../../AuthenticationSDK/core/Authorization.rb'
135
139
  require_relative '../../AuthenticationSDK/authentication/payloadDigest/Digest.rb'
136
- # header_params = {}
137
- request_target = @config.base_path + path
140
+ request_target = get_query_param(path, query_params)
138
141
  # Request Type. [Non-Editable]
139
142
  request_type = http_method.to_s
140
- cybsproperty_obj = MerchantConfiguration.new.merchantConfigProp
141
- merchantconfig_obj = Merchantconfig.new(cybsproperty_obj)
142
- log_obj = Log.new merchantconfig_obj.logDirectory, merchantconfig_obj.logFilename, merchantconfig_obj.logSize, merchantconfig_obj.enableLog
143
+ # cybsproperty_obj = MerchantConfiguration.new.merchantConfigProp
144
+ # $merchantconfig_obj = Merchantconfig.new(cybsproperty_obj)
145
+ log_obj = Log.new $merchantconfig_obj.logDirectory, $merchantconfig_obj.logFilename, $merchantconfig_obj.logSize, $merchantconfig_obj.enableLog
143
146
  # Set Request Type into the merchant config object.
144
- merchantconfig_obj.requestType = request_type
147
+ $merchantconfig_obj.requestType = request_type
145
148
  # Set Request Target into the merchant config object.
146
- merchantconfig_obj.requestTarget = request_target
149
+ $merchantconfig_obj.requestTarget = request_target
147
150
  # Construct the URL.
148
- url = Constants::HTTPS_URI_PREFIX + merchantconfig_obj.requestHost + merchantconfig_obj.requestTarget
151
+ url = Constants::HTTPS_URI_PREFIX + $merchantconfig_obj.requestHost + $merchantconfig_obj.requestTarget
149
152
  # set Request Json to Merchant config object
150
- merchantconfig_obj.requestJsonData = body_params
153
+ $merchantconfig_obj.requestJsonData = body_params
151
154
  # Set URL into the merchant config object.
152
- merchantconfig_obj.requestUrl = url
155
+ $merchantconfig_obj.requestUrl = url
153
156
  # Calling APISDK, Apisdk.controller.
154
157
  gmtDateTime = DateTime.now.httpdate
155
- token = Authorization.new.getToken(merchantconfig_obj, gmtDateTime, log_obj)
158
+ token = Authorization.new.getToken($merchantconfig_obj, gmtDateTime, log_obj)
156
159
  # HTTP header 'Accept' (if needed)
157
- if merchantconfig_obj.authenticationType.upcase == Constants::AUTH_TYPE_HTTP
160
+ if $merchantconfig_obj.authenticationType.upcase == Constants::AUTH_TYPE_HTTP
158
161
  # Appending headers for Get Connection
159
- header_params['v-c-merchant-id'] = merchantconfig_obj.merchantId
162
+ header_params['v-c-merchant-id'] = $merchantconfig_obj.merchantId
160
163
  header_params['Date'] = gmtDateTime
161
- header_params['Host'] = merchantconfig_obj.requestHost
164
+ header_params['Host'] = $merchantconfig_obj.requestHost
162
165
  header_params['Signature'] = token
163
- if request_type == Constants::POST_REQUEST_TYPE
166
+ if request_type == Constants::POST_REQUEST_TYPE || request_type == Constants::PUT_REQUEST_TYPE || request_type == Constants::PATCH_REQUEST_TYPE
164
167
  digest = DigestGeneration.new.generateDigest(body_params, log_obj)
165
168
  digest_payload = Constants::SHA256 + digest
166
169
  header_params['Digest'] = digest_payload
167
170
  end
168
171
  end
169
- if merchantconfig_obj.authenticationType.upcase == Constants::AUTH_TYPE_JWT
172
+ if $merchantconfig_obj.authenticationType.upcase == Constants::AUTH_TYPE_JWT
170
173
  token = "Bearer " + token
171
174
  header_params['Authorization'] = token
172
175
  end
@@ -175,7 +178,14 @@ module CyberSource
175
178
  end
176
179
  return header_params
177
180
  end
178
-
181
+ def get_query_param(path, query_params)
182
+ if !query_params.empty?
183
+ request_target = @config.base_path + path + '?' + URI.encode_www_form(query_params)
184
+ else
185
+ request_target = @config.base_path + path
186
+ end
187
+ request_target
188
+ end
179
189
  # Check if the given MIME is a JSON MIME.
180
190
  # JSON MIME examples:
181
191
  # application/json
@@ -140,7 +140,7 @@ module CyberSource
140
140
  @params_encoding = nil
141
141
  @cert_file = nil
142
142
  @key_file = nil
143
- @debugging = false
143
+ @debugging = true
144
144
  @inject_format = false
145
145
  @force_ending_format = false
146
146
  @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
@@ -38,11 +38,11 @@ module CyberSource
38
38
  # Attribute type mapping.
39
39
  def self.swagger_types
40
40
  {
41
- :'client_reference_information' => :'V2paymentsidreversalsClientReferenceInformation',
42
- :'reversal_information' => :'V2paymentsidreversalsReversalInformation',
43
- :'processing_information' => :'V2paymentsidreversalsProcessingInformation',
44
- :'order_information' => :'V2paymentsidreversalsOrderInformation',
45
- :'point_of_sale_information' => :'V2paymentsidreversalsPointOfSaleInformation'
41
+ :'client_reference_information' => :'Ptsv2paymentsidreversalsClientReferenceInformation',
42
+ :'reversal_information' => :'Ptsv2paymentsidreversalsReversalInformation',
43
+ :'processing_information' => :'Ptsv2paymentsidreversalsProcessingInformation',
44
+ :'order_information' => :'Ptsv2paymentsidreversalsOrderInformation',
45
+ :'point_of_sale_information' => :'Ptsv2paymentsidreversalsPointOfSaleInformation'
46
46
  }
47
47
  end
48
48
 
@@ -72,14 +72,14 @@ module CyberSource
72
72
  # Attribute type mapping.
73
73
  def self.swagger_types
74
74
  {
75
- :'_links' => :'InstrumentidentifiersLinks',
75
+ :'_links' => :'Tmsv1instrumentidentifiersLinks',
76
76
  :'id' => :'String',
77
77
  :'object' => :'String',
78
78
  :'state' => :'String',
79
- :'card' => :'InstrumentidentifiersCard',
80
- :'bank_account' => :'InstrumentidentifiersBankAccount',
81
- :'processing_information' => :'InstrumentidentifiersProcessingInformation',
82
- :'metadata' => :'InstrumentidentifiersMetadata'
79
+ :'card' => :'Tmsv1instrumentidentifiersCard',
80
+ :'bank_account' => :'Tmsv1instrumentidentifiersBankAccount',
81
+ :'processing_information' => :'Tmsv1instrumentidentifiersProcessingInformation',
82
+ :'metadata' => :'Tmsv1instrumentidentifiersMetadata'
83
83
  }
84
84
  end
85
85
 
@@ -26,7 +26,7 @@ module CyberSource
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'processing_information' => :'InstrumentidentifiersProcessingInformation'
29
+ :'processing_information' => :'Tmsv1instrumentidentifiersProcessingInformation'
30
30
  }
31
31
  end
32
32
 
@@ -84,18 +84,18 @@ module CyberSource
84
84
  # Attribute type mapping.
85
85
  def self.swagger_types
86
86
  {
87
- :'_links' => :'InstrumentidentifiersLinks',
87
+ :'_links' => :'Tmsv1instrumentidentifiersLinks',
88
88
  :'id' => :'String',
89
89
  :'object' => :'String',
90
90
  :'state' => :'String',
91
- :'bank_account' => :'PaymentinstrumentsBankAccount',
92
- :'card' => :'PaymentinstrumentsCard',
93
- :'buyer_information' => :'PaymentinstrumentsBuyerInformation',
94
- :'bill_to' => :'PaymentinstrumentsBillTo',
95
- :'processing_information' => :'PaymentinstrumentsProcessingInformation',
96
- :'merchant_information' => :'PaymentinstrumentsMerchantInformation',
97
- :'meta_data' => :'InstrumentidentifiersMetadata',
98
- :'instrument_identifier' => :'PaymentinstrumentsInstrumentIdentifier'
91
+ :'bank_account' => :'Tmsv1paymentinstrumentsBankAccount',
92
+ :'card' => :'Tmsv1paymentinstrumentsCard',
93
+ :'buyer_information' => :'Tmsv1paymentinstrumentsBuyerInformation',
94
+ :'bill_to' => :'Tmsv1paymentinstrumentsBillTo',
95
+ :'processing_information' => :'Tmsv1paymentinstrumentsProcessingInformation',
96
+ :'merchant_information' => :'Tmsv1paymentinstrumentsMerchantInformation',
97
+ :'meta_data' => :'Tmsv1instrumentidentifiersMetadata',
98
+ :'instrument_identifier' => :'Tmsv1paymentinstrumentsInstrumentIdentifier'
99
99
  }
100
100
  end
101
101
 
@@ -84,18 +84,18 @@ module CyberSource
84
84
  # Attribute type mapping.
85
85
  def self.swagger_types
86
86
  {
87
- :'_links' => :'InstrumentidentifiersLinks',
87
+ :'_links' => :'Tmsv1instrumentidentifiersLinks',
88
88
  :'id' => :'String',
89
89
  :'object' => :'String',
90
90
  :'state' => :'String',
91
- :'bank_account' => :'PaymentinstrumentsBankAccount',
92
- :'card' => :'PaymentinstrumentsCard',
93
- :'buyer_information' => :'PaymentinstrumentsBuyerInformation',
94
- :'bill_to' => :'PaymentinstrumentsBillTo',
95
- :'processing_information' => :'PaymentinstrumentsProcessingInformation',
96
- :'merchant_information' => :'PaymentinstrumentsMerchantInformation',
97
- :'meta_data' => :'InstrumentidentifiersMetadata',
98
- :'instrument_identifier' => :'PaymentinstrumentsInstrumentIdentifier'
91
+ :'bank_account' => :'Tmsv1paymentinstrumentsBankAccount',
92
+ :'card' => :'Tmsv1paymentinstrumentsCard',
93
+ :'buyer_information' => :'Tmsv1paymentinstrumentsBuyerInformation',
94
+ :'bill_to' => :'Tmsv1paymentinstrumentsBillTo',
95
+ :'processing_information' => :'Tmsv1paymentinstrumentsProcessingInformation',
96
+ :'merchant_information' => :'Tmsv1paymentinstrumentsMerchantInformation',
97
+ :'meta_data' => :'Tmsv1instrumentidentifiersMetadata',
98
+ :'instrument_identifier' => :'Tmsv1paymentinstrumentsInstrumentIdentifier'
99
99
  }
100
100
  end
101
101
 
@@ -32,7 +32,7 @@ module CyberSource
32
32
 
33
33
  attr_accessor :point_of_sale_information
34
34
 
35
- # TBD
35
+ # Description of this field is not available.
36
36
  attr_accessor :merchant_defined_information
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -54,16 +54,16 @@ module CyberSource
54
54
  # Attribute type mapping.
55
55
  def self.swagger_types
56
56
  {
57
- :'client_reference_information' => :'V2paymentsClientReferenceInformation',
58
- :'processing_information' => :'V2paymentsidcapturesProcessingInformation',
59
- :'payment_information' => :'V2paymentsidcapturesPaymentInformation',
60
- :'order_information' => :'V2paymentsidcapturesOrderInformation',
61
- :'buyer_information' => :'V2paymentsidcapturesBuyerInformation',
62
- :'device_information' => :'V2paymentsDeviceInformation',
63
- :'merchant_information' => :'V2paymentsidcapturesMerchantInformation',
64
- :'aggregator_information' => :'V2paymentsidcapturesAggregatorInformation',
65
- :'point_of_sale_information' => :'V2paymentsidcapturesPointOfSaleInformation',
66
- :'merchant_defined_information' => :'Array<V2paymentsMerchantDefinedInformation>'
57
+ :'client_reference_information' => :'Ptsv2paymentsClientReferenceInformation',
58
+ :'processing_information' => :'Ptsv2paymentsidcapturesProcessingInformation',
59
+ :'payment_information' => :'Ptsv2paymentsidcapturesPaymentInformation',
60
+ :'order_information' => :'Ptsv2paymentsidcapturesOrderInformation',
61
+ :'buyer_information' => :'Ptsv2paymentsidcapturesBuyerInformation',
62
+ :'device_information' => :'Ptsv2paymentsDeviceInformation',
63
+ :'merchant_information' => :'Ptsv2paymentsidcapturesMerchantInformation',
64
+ :'aggregator_information' => :'Ptsv2paymentsidcapturesAggregatorInformation',
65
+ :'point_of_sale_information' => :'Ptsv2paymentsidcapturesPointOfSaleInformation',
66
+ :'merchant_defined_information' => :'Array<Ptsv2paymentsMerchantDefinedInformation>'
67
67
  }
68
68
  end
69
69
 
@@ -32,7 +32,7 @@ module CyberSource
32
32
 
33
33
  attr_accessor :point_of_sale_information
34
34
 
35
- # TBD
35
+ # Description of this field is not available.
36
36
  attr_accessor :merchant_defined_information
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -54,16 +54,16 @@ module CyberSource
54
54
  # Attribute type mapping.
55
55
  def self.swagger_types
56
56
  {
57
- :'client_reference_information' => :'V2paymentsClientReferenceInformation',
58
- :'processing_information' => :'V2creditsProcessingInformation',
59
- :'payment_information' => :'V2paymentsidrefundsPaymentInformation',
60
- :'order_information' => :'V2paymentsidrefundsOrderInformation',
61
- :'buyer_information' => :'V2paymentsidcapturesBuyerInformation',
62
- :'device_information' => :'V2paymentsDeviceInformation',
63
- :'merchant_information' => :'V2paymentsidrefundsMerchantInformation',
64
- :'aggregator_information' => :'V2paymentsidcapturesAggregatorInformation',
65
- :'point_of_sale_information' => :'V2creditsPointOfSaleInformation',
66
- :'merchant_defined_information' => :'Array<V2paymentsMerchantDefinedInformation>'
57
+ :'client_reference_information' => :'Ptsv2paymentsClientReferenceInformation',
58
+ :'processing_information' => :'Ptsv2creditsProcessingInformation',
59
+ :'payment_information' => :'Ptsv2paymentsidrefundsPaymentInformation',
60
+ :'order_information' => :'Ptsv2paymentsidrefundsOrderInformation',
61
+ :'buyer_information' => :'Ptsv2paymentsidcapturesBuyerInformation',
62
+ :'device_information' => :'Ptsv2paymentsDeviceInformation',
63
+ :'merchant_information' => :'Ptsv2paymentsidrefundsMerchantInformation',
64
+ :'aggregator_information' => :'Ptsv2paymentsidcapturesAggregatorInformation',
65
+ :'point_of_sale_information' => :'Ptsv2creditsPointOfSaleInformation',
66
+ :'merchant_defined_information' => :'Array<Ptsv2paymentsMerchantDefinedInformation>'
67
67
  }
68
68
  end
69
69
 
@@ -36,7 +36,7 @@ module CyberSource
36
36
 
37
37
  attr_accessor :point_of_sale_information
38
38
 
39
- # TBD
39
+ # Description of this field is not available.
40
40
  attr_accessor :merchant_defined_information
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -60,18 +60,18 @@ module CyberSource
60
60
  # Attribute type mapping.
61
61
  def self.swagger_types
62
62
  {
63
- :'client_reference_information' => :'V2paymentsClientReferenceInformation',
64
- :'processing_information' => :'V2paymentsProcessingInformation',
65
- :'payment_information' => :'V2paymentsPaymentInformation',
66
- :'order_information' => :'V2paymentsOrderInformation',
67
- :'buyer_information' => :'V2paymentsBuyerInformation',
68
- :'recipient_information' => :'V2paymentsRecipientInformation',
69
- :'device_information' => :'V2paymentsDeviceInformation',
70
- :'merchant_information' => :'V2paymentsMerchantInformation',
71
- :'aggregator_information' => :'V2paymentsAggregatorInformation',
72
- :'consumer_authentication_information' => :'V2paymentsConsumerAuthenticationInformation',
73
- :'point_of_sale_information' => :'V2paymentsPointOfSaleInformation',
74
- :'merchant_defined_information' => :'Array<V2paymentsMerchantDefinedInformation>'
63
+ :'client_reference_information' => :'Ptsv2paymentsClientReferenceInformation',
64
+ :'processing_information' => :'Ptsv2paymentsProcessingInformation',
65
+ :'payment_information' => :'Ptsv2paymentsPaymentInformation',
66
+ :'order_information' => :'Ptsv2paymentsOrderInformation',
67
+ :'buyer_information' => :'Ptsv2paymentsBuyerInformation',
68
+ :'recipient_information' => :'Ptsv2paymentsRecipientInformation',
69
+ :'device_information' => :'Ptsv2paymentsDeviceInformation',
70
+ :'merchant_information' => :'Ptsv2paymentsMerchantInformation',
71
+ :'aggregator_information' => :'Ptsv2paymentsAggregatorInformation',
72
+ :'consumer_authentication_information' => :'Ptsv2paymentsConsumerAuthenticationInformation',
73
+ :'point_of_sale_information' => :'Ptsv2paymentsPointOfSaleInformation',
74
+ :'merchant_defined_information' => :'Array<Ptsv2paymentsMerchantDefinedInformation>'
75
75
  }
76
76
  end
77
77