connect-sdk-ruby 2.47.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1209) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -8
  3. data/connect-sdk-ruby.gemspec +6 -6
  4. data/examples/example_configuration.yml +7 -0
  5. data/examples/v1/merchant/captures/create_refund_capture_example.rb +53 -0
  6. data/examples/v1/merchant/captures/get_capture_example.rb +22 -0
  7. data/examples/v1/merchant/disputes/cancel_dispute_example.rb +22 -0
  8. data/examples/v1/merchant/disputes/get_dispute_example.rb +22 -0
  9. data/examples/v1/merchant/disputes/submit_dispute_example.rb +22 -0
  10. data/examples/v1/merchant/disputes/upload_dispute_file_example.rb +31 -0
  11. data/examples/v1/merchant/files/get_file_example.rb +28 -0
  12. data/examples/v1/merchant/hostedcheckouts/create_hosted_checkout_example.rb +52 -0
  13. data/examples/v1/merchant/hostedcheckouts/delete_hosted_checkout_example.rb +22 -0
  14. data/examples/v1/merchant/hostedcheckouts/get_hosted_checkout_example.rb +22 -0
  15. data/examples/v1/merchant/hostedmandatemanagements/create_hosted_mandate_management_example.rb +40 -0
  16. data/examples/v1/merchant/hostedmandatemanagements/get_hosted_mandate_management_example.rb +22 -0
  17. data/examples/v1/merchant/installments/get_installments_info_example.rb +35 -0
  18. data/examples/v1/merchant/mandates/block_mandate_example.rb +22 -0
  19. data/examples/v1/merchant/mandates/create_mandate_example.rb +64 -0
  20. data/examples/v1/merchant/mandates/create_mandate_with_reference_example.rb +64 -0
  21. data/examples/v1/merchant/mandates/get_mandate_example.rb +22 -0
  22. data/examples/v1/merchant/mandates/revoke_mandate_example.rb +22 -0
  23. data/examples/v1/merchant/mandates/unblock_mandate_example.rb +22 -0
  24. data/examples/v1/merchant/payments/approve_payment_example.rb +42 -0
  25. data/examples/v1/merchant/payments/cancel_approval_payment_example.rb +22 -0
  26. data/examples/v1/merchant/payments/cancel_payment_example.rb +22 -0
  27. data/examples/v1/merchant/payments/capture_payment_example.rb +27 -0
  28. data/examples/v1/merchant/payments/complete_payment_example.rb +37 -0
  29. data/examples/v1/merchant/payments/create_payment_dispute_example.rb +36 -0
  30. data/examples/v1/merchant/payments/create_payment_example.rb +222 -0
  31. data/examples/v1/merchant/payments/find_payments_example.rb +31 -0
  32. data/examples/v1/merchant/payments/get_payment_captures_example.rb +22 -0
  33. data/examples/v1/merchant/payments/get_payment_device_fingerprint_details_example.rb +22 -0
  34. data/examples/v1/merchant/payments/get_payment_disputes_example.rb +22 -0
  35. data/examples/v1/merchant/payments/get_payment_example.rb +22 -0
  36. data/examples/v1/merchant/payments/get_refunds_example.rb +22 -0
  37. data/examples/v1/merchant/payments/get_third_party_status_example.rb +22 -0
  38. data/examples/v1/merchant/payments/process_challenged_payment_example.rb +22 -0
  39. data/examples/v1/merchant/payments/refund_payment_example.rb +83 -0
  40. data/examples/v1/merchant/payments/tokenize_payment_example.rb +27 -0
  41. data/examples/v1/merchant/payouts/approve_payout_example.rb +27 -0
  42. data/examples/v1/merchant/payouts/cancel_approval_payout_example.rb +22 -0
  43. data/examples/v1/merchant/payouts/cancel_payout_example.rb +22 -0
  44. data/examples/v1/merchant/payouts/create_payout_example.rb +102 -0
  45. data/examples/v1/merchant/payouts/find_payouts_example.rb +30 -0
  46. data/examples/v1/merchant/payouts/get_payout_example.rb +22 -0
  47. data/examples/v1/merchant/productgroups/get_device_fingerprint_for_groups_example.rb +26 -0
  48. data/examples/v1/merchant/productgroups/get_payment_product_group_example.rb +33 -0
  49. data/examples/v1/merchant/productgroups/get_payment_product_groups_example.rb +33 -0
  50. data/examples/v1/merchant/products/create_payment_product_session_example.rb +33 -0
  51. data/examples/v1/merchant/products/get_customer_details_example.rb +37 -0
  52. data/examples/v1/merchant/products/get_device_fingerprint_example.rb +26 -0
  53. data/examples/v1/merchant/products/get_directory_example.rb +28 -0
  54. data/examples/v1/merchant/products/get_networks_example.rb +30 -0
  55. data/examples/v1/merchant/products/get_payment_product_example.rb +34 -0
  56. data/examples/v1/merchant/products/get_payment_products_example.rb +33 -0
  57. data/examples/v1/merchant/refunds/approve_refund_example.rb +27 -0
  58. data/examples/v1/merchant/refunds/cancel_approval_refund_example.rb +22 -0
  59. data/examples/v1/merchant/refunds/cancel_refund_example.rb +22 -0
  60. data/examples/v1/merchant/refunds/find_refunds_example.rb +31 -0
  61. data/examples/v1/merchant/refunds/get_refund_example.rb +22 -0
  62. data/examples/v1/merchant/riskassessments/risk_assessment_bank_account_example.rb +53 -0
  63. data/examples/v1/merchant/riskassessments/risk_assessment_cards_example.rb +113 -0
  64. data/examples/v1/merchant/services/convert_amount_example.rb +29 -0
  65. data/examples/v1/merchant/services/convert_bank_account_example.rb +33 -0
  66. data/examples/v1/merchant/services/get_privacy_policy_example.rb +28 -0
  67. data/examples/v1/merchant/services/iin_details_example.rb +27 -0
  68. data/examples/v1/merchant/services/test_connection_example.rb +22 -0
  69. data/examples/v1/merchant/sessions/create_session_example.rb +34 -0
  70. data/examples/v1/merchant/tokens/approve_sepa_direct_debit_token_example.rb +29 -0
  71. data/examples/v1/merchant/tokens/create_token_example.rb +81 -0
  72. data/examples/v1/merchant/tokens/delete_token_example.rb +27 -0
  73. data/examples/v1/merchant/tokens/get_token_example.rb +22 -0
  74. data/examples/v1/merchant/tokens/update_token_example.rb +75 -0
  75. data/lib/worldline/connect/sdk/api_resource.rb +69 -0
  76. data/lib/worldline/connect/sdk/authentication/authenticator.rb +21 -0
  77. data/lib/worldline/connect/sdk/authentication/authorization_type.rb +17 -0
  78. data/lib/worldline/connect/sdk/authentication/v1hmac_authenticator.rb +102 -0
  79. data/lib/worldline/connect/sdk/authentication.rb +1 -0
  80. data/lib/worldline/connect/sdk/call_context.rb +29 -0
  81. data/lib/worldline/connect/sdk/client.rb +97 -0
  82. data/lib/worldline/connect/sdk/communication/communication_exception.rb +21 -0
  83. data/lib/worldline/connect/sdk/communication/connection.rb +50 -0
  84. data/lib/worldline/connect/sdk/communication/default_connection.rb +429 -0
  85. data/lib/worldline/connect/sdk/communication/metadata_provider.rb +162 -0
  86. data/lib/worldline/connect/sdk/communication/multipart_form_data_object.rb +54 -0
  87. data/lib/worldline/connect/sdk/communication/multipart_form_data_request.rb +15 -0
  88. data/lib/worldline/connect/sdk/communication/not_found_exception.rb +21 -0
  89. data/lib/worldline/connect/sdk/communication/param_request.rb +16 -0
  90. data/lib/worldline/connect/sdk/communication/pooled_connection.rb +28 -0
  91. data/lib/worldline/connect/sdk/communication/request_header.rb +66 -0
  92. data/lib/worldline/connect/sdk/communication/request_param.rb +30 -0
  93. data/lib/worldline/connect/sdk/communication/response_exception.rb +58 -0
  94. data/lib/worldline/connect/sdk/communication/response_header.rb +80 -0
  95. data/lib/worldline/connect/sdk/communication.rb +1 -0
  96. data/lib/worldline/connect/sdk/communicator.rb +510 -0
  97. data/lib/worldline/connect/sdk/communicator_configuration.rb +190 -0
  98. data/lib/worldline/connect/sdk/domain/data_object.rb +34 -0
  99. data/lib/worldline/connect/sdk/domain/shopping_cart_extension.rb +62 -0
  100. data/lib/worldline/connect/sdk/domain/uploadable_file.rb +35 -0
  101. data/lib/worldline/connect/sdk/factory.rb +183 -0
  102. data/lib/worldline/connect/sdk/json/default_marshaller.rb +36 -0
  103. data/lib/worldline/connect/sdk/json/marshaller.rb +29 -0
  104. data/lib/worldline/connect/sdk/json/marshaller_syntax_exception.rb +11 -0
  105. data/lib/worldline/connect/sdk/json.rb +1 -0
  106. data/lib/worldline/connect/sdk/logging/communicator_logger.rb +26 -0
  107. data/lib/worldline/connect/sdk/logging/log_message_builder.rb +91 -0
  108. data/lib/worldline/connect/sdk/logging/logging_capable.rb +19 -0
  109. data/lib/worldline/connect/sdk/logging/obfuscation/body_obfuscator.rb +102 -0
  110. data/lib/worldline/connect/sdk/logging/obfuscation/header_obfuscator.rb +56 -0
  111. data/lib/worldline/connect/sdk/logging/obfuscation/obfuscation_capable.rb +23 -0
  112. data/lib/worldline/connect/sdk/logging/obfuscation/obfuscation_rule.rb +49 -0
  113. data/lib/worldline/connect/sdk/logging/request_log_message_builder.rb +52 -0
  114. data/lib/worldline/connect/sdk/logging/response_log_message_builder.rb +43 -0
  115. data/lib/worldline/connect/sdk/logging/ruby_communicator_logger.rb +63 -0
  116. data/lib/worldline/connect/sdk/logging/stdout_communicator_logger.rb +33 -0
  117. data/lib/worldline/connect/sdk/proxy_configuration.rb +76 -0
  118. data/lib/worldline/connect/sdk/v1/api_exception.rb +61 -0
  119. data/lib/worldline/connect/sdk/v1/authorization_exception.rb +24 -0
  120. data/lib/worldline/connect/sdk/v1/declined_payment_exception.rb +53 -0
  121. data/lib/worldline/connect/sdk/v1/declined_payout_exception.rb +53 -0
  122. data/lib/worldline/connect/sdk/v1/declined_refund_exception.rb +53 -0
  123. data/lib/worldline/connect/sdk/v1/declined_transaction_exception.rb +27 -0
  124. data/lib/worldline/connect/sdk/v1/domain/abstract_bank_transfer_payment_method_specific_input.rb +35 -0
  125. data/lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb +141 -0
  126. data/lib/worldline/connect/sdk/v1/domain/abstract_cash_payment_method_specific_input.rb +18 -0
  127. data/lib/worldline/connect/sdk/v1/domain/abstract_e_invoice_payment_method_specific_input.rb +35 -0
  128. data/lib/worldline/connect/sdk/v1/domain/abstract_indicator.rb +42 -0
  129. data/lib/worldline/connect/sdk/v1/domain/abstract_order_status.rb +35 -0
  130. data/lib/worldline/connect/sdk/v1/domain/abstract_payment_method_specific_input.rb +35 -0
  131. data/lib/worldline/connect/sdk/v1/domain/abstract_payment_method_specific_output.rb +35 -0
  132. data/lib/worldline/connect/sdk/v1/domain/abstract_payout_method_specific_input.rb +18 -0
  133. data/lib/worldline/connect/sdk/v1/domain/abstract_redirect_payment_method_specific_input.rb +63 -0
  134. data/lib/worldline/connect/sdk/v1/domain/abstract_redirect_payment_product4101_specific_input.rb +18 -0
  135. data/lib/worldline/connect/sdk/v1/domain/abstract_redirect_payment_product840_specific_input.rb +35 -0
  136. data/lib/worldline/connect/sdk/v1/domain/abstract_sepa_direct_debit_payment_method_specific_input.rb +18 -0
  137. data/lib/worldline/connect/sdk/v1/domain/abstract_sepa_direct_debit_payment_product771_specific_input.rb +37 -0
  138. data/lib/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb +97 -0
  139. data/lib/worldline/connect/sdk/v1/domain/abstract_token.rb +35 -0
  140. data/lib/worldline/connect/sdk/v1/domain/account_funding_recipient.rb +74 -0
  141. data/lib/worldline/connect/sdk/v1/domain/account_on_file.rb +63 -0
  142. data/lib/worldline/connect/sdk/v1/domain/account_on_file_attribute.rb +42 -0
  143. data/lib/worldline/connect/sdk/v1/domain/account_on_file_display_hints.rb +47 -0
  144. data/lib/worldline/connect/sdk/v1/domain/additional_order_input.rb +111 -0
  145. data/lib/worldline/connect/sdk/v1/domain/additional_order_input_airline_data.rb +46 -0
  146. data/lib/worldline/connect/sdk/v1/domain/address.rb +84 -0
  147. data/lib/worldline/connect/sdk/v1/domain/address_personal.rb +37 -0
  148. data/lib/worldline/connect/sdk/v1/domain/afr_name.rb +42 -0
  149. data/lib/worldline/connect/sdk/v1/domain/airline_data.rb +215 -0
  150. data/lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb +170 -0
  151. data/lib/worldline/connect/sdk/v1/domain/airline_passenger.rb +56 -0
  152. data/lib/worldline/connect/sdk/v1/domain/amount_breakdown.rb +42 -0
  153. data/lib/worldline/connect/sdk/v1/domain/amount_of_money.rb +42 -0
  154. data/lib/worldline/connect/sdk/v1/domain/api_error.rb +77 -0
  155. data/lib/worldline/connect/sdk/v1/domain/approve_payment_card_payment_method_specific_output.rb +35 -0
  156. data/lib/worldline/connect/sdk/v1/domain/approve_payment_direct_debit_payment_method_specific_input.rb +18 -0
  157. data/lib/worldline/connect/sdk/v1/domain/approve_payment_mobile_payment_method_specific_output.rb +35 -0
  158. data/lib/worldline/connect/sdk/v1/domain/approve_payment_non_sepa_direct_debit_payment_method_specific_input.rb +18 -0
  159. data/lib/worldline/connect/sdk/v1/domain/approve_payment_payment_method_specific_input.rb +42 -0
  160. data/lib/worldline/connect/sdk/v1/domain/approve_payment_request.rb +62 -0
  161. data/lib/worldline/connect/sdk/v1/domain/approve_payment_sepa_direct_debit_payment_method_specific_input.rb +18 -0
  162. data/lib/worldline/connect/sdk/v1/domain/approve_payout_request.rb +35 -0
  163. data/lib/worldline/connect/sdk/v1/domain/approve_refund_request.rb +35 -0
  164. data/lib/worldline/connect/sdk/v1/domain/approve_token_request.rb +18 -0
  165. data/lib/worldline/connect/sdk/v1/domain/authentication_indicator.rb +18 -0
  166. data/lib/worldline/connect/sdk/v1/domain/bank_account.rb +35 -0
  167. data/lib/worldline/connect/sdk/v1/domain/bank_account_bban.rb +70 -0
  168. data/lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb +49 -0
  169. data/lib/worldline/connect/sdk/v1/domain/bank_account_iban.rb +35 -0
  170. data/lib/worldline/connect/sdk/v1/domain/bank_data.rb +56 -0
  171. data/lib/worldline/connect/sdk/v1/domain/bank_details.rb +46 -0
  172. data/lib/worldline/connect/sdk/v1/domain/bank_details_request.rb +18 -0
  173. data/lib/worldline/connect/sdk/v1/domain/bank_details_response.rb +64 -0
  174. data/lib/worldline/connect/sdk/v1/domain/bank_refund_method_specific_input.rb +53 -0
  175. data/lib/worldline/connect/sdk/v1/domain/bank_transfer_payment_method_specific_input.rb +18 -0
  176. data/lib/worldline/connect/sdk/v1/domain/bank_transfer_payment_method_specific_input_base.rb +18 -0
  177. data/lib/worldline/connect/sdk/v1/domain/bank_transfer_payment_method_specific_output.rb +37 -0
  178. data/lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb +78 -0
  179. data/lib/worldline/connect/sdk/v1/domain/boleto_bancario_requiredness_validator.rb +35 -0
  180. data/lib/worldline/connect/sdk/v1/domain/browser_data.rb +77 -0
  181. data/lib/worldline/connect/sdk/v1/domain/cancel_approval_payment_response.rb +37 -0
  182. data/lib/worldline/connect/sdk/v1/domain/cancel_payment_card_payment_method_specific_output.rb +35 -0
  183. data/lib/worldline/connect/sdk/v1/domain/cancel_payment_mobile_payment_method_specific_output.rb +35 -0
  184. data/lib/worldline/connect/sdk/v1/domain/cancel_payment_response.rb +55 -0
  185. data/lib/worldline/connect/sdk/v1/domain/capture.rb +53 -0
  186. data/lib/worldline/connect/sdk/v1/domain/capture_output.rb +137 -0
  187. data/lib/worldline/connect/sdk/v1/domain/capture_payment_request.rb +42 -0
  188. data/lib/worldline/connect/sdk/v1/domain/capture_response.rb +18 -0
  189. data/lib/worldline/connect/sdk/v1/domain/capture_status_output.rb +54 -0
  190. data/lib/worldline/connect/sdk/v1/domain/captures_response.rb +40 -0
  191. data/lib/worldline/connect/sdk/v1/domain/card.rb +42 -0
  192. data/lib/worldline/connect/sdk/v1/domain/card_essentials.rb +49 -0
  193. data/lib/worldline/connect/sdk/v1/domain/card_fraud_results.rb +60 -0
  194. data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb +89 -0
  195. data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input_base.rb +37 -0
  196. data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb +83 -0
  197. data/lib/worldline/connect/sdk/v1/domain/card_payout_method_specific_input.rb +60 -0
  198. data/lib/worldline/connect/sdk/v1/domain/card_recurrence_details.rb +49 -0
  199. data/lib/worldline/connect/sdk/v1/domain/card_without_cvv.rb +35 -0
  200. data/lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb +93 -0
  201. data/lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input_base.rb +18 -0
  202. data/lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_output.rb +37 -0
  203. data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1503_specific_input.rb +38 -0
  204. data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1504_specific_input.rb +18 -0
  205. data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1521_specific_input.rb +18 -0
  206. data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1522_specific_input.rb +18 -0
  207. data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1523_specific_input.rb +18 -0
  208. data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1524_specific_input.rb +18 -0
  209. data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1526_specific_input.rb +18 -0
  210. data/lib/worldline/connect/sdk/v1/domain/cash_payment_product_with_redirect_specific_input_base.rb +35 -0
  211. data/lib/worldline/connect/sdk/v1/domain/company_information.rb +42 -0
  212. data/lib/worldline/connect/sdk/v1/domain/complete_payment_card_payment_method_specific_input.rb +37 -0
  213. data/lib/worldline/connect/sdk/v1/domain/complete_payment_request.rb +55 -0
  214. data/lib/worldline/connect/sdk/v1/domain/complete_payment_response.rb +18 -0
  215. data/lib/worldline/connect/sdk/v1/domain/contact_details.rb +56 -0
  216. data/lib/worldline/connect/sdk/v1/domain/contact_details_base.rb +42 -0
  217. data/lib/worldline/connect/sdk/v1/domain/contact_details_risk_assessment.rb +35 -0
  218. data/lib/worldline/connect/sdk/v1/domain/contact_details_token.rb +18 -0
  219. data/lib/worldline/connect/sdk/v1/domain/convert_amount.rb +35 -0
  220. data/lib/worldline/connect/sdk/v1/domain/create_dispute_request.rb +65 -0
  221. data/lib/worldline/connect/sdk/v1/domain/create_hosted_checkout_request.rb +127 -0
  222. data/lib/worldline/connect/sdk/v1/domain/create_hosted_checkout_response.rb +67 -0
  223. data/lib/worldline/connect/sdk/v1/domain/create_hosted_mandate_management_request.rb +46 -0
  224. data/lib/worldline/connect/sdk/v1/domain/create_hosted_mandate_management_response.rb +49 -0
  225. data/lib/worldline/connect/sdk/v1/domain/create_mandate_base.rb +79 -0
  226. data/lib/worldline/connect/sdk/v1/domain/create_mandate_request.rb +18 -0
  227. data/lib/worldline/connect/sdk/v1/domain/create_mandate_response.rb +46 -0
  228. data/lib/worldline/connect/sdk/v1/domain/create_mandate_with_return_url.rb +35 -0
  229. data/lib/worldline/connect/sdk/v1/domain/create_payment_product_session_request.rb +37 -0
  230. data/lib/worldline/connect/sdk/v1/domain/create_payment_product_session_response.rb +37 -0
  231. data/lib/worldline/connect/sdk/v1/domain/create_payment_request.rb +143 -0
  232. data/lib/worldline/connect/sdk/v1/domain/create_payment_response.rb +18 -0
  233. data/lib/worldline/connect/sdk/v1/domain/create_payment_result.rb +55 -0
  234. data/lib/worldline/connect/sdk/v1/domain/create_payout_request.rb +146 -0
  235. data/lib/worldline/connect/sdk/v1/domain/create_token_request.rb +78 -0
  236. data/lib/worldline/connect/sdk/v1/domain/create_token_response.rb +49 -0
  237. data/lib/worldline/connect/sdk/v1/domain/created_payment_output.rb +85 -0
  238. data/lib/worldline/connect/sdk/v1/domain/creditor.rb +105 -0
  239. data/lib/worldline/connect/sdk/v1/domain/customer.rb +119 -0
  240. data/lib/worldline/connect/sdk/v1/domain/customer_account.rb +118 -0
  241. data/lib/worldline/connect/sdk/v1/domain/customer_account_authentication.rb +49 -0
  242. data/lib/worldline/connect/sdk/v1/domain/customer_account_risk_assessment.rb +42 -0
  243. data/lib/worldline/connect/sdk/v1/domain/customer_approve_payment.rb +35 -0
  244. data/lib/worldline/connect/sdk/v1/domain/customer_base.rb +53 -0
  245. data/lib/worldline/connect/sdk/v1/domain/customer_device.rb +86 -0
  246. data/lib/worldline/connect/sdk/v1/domain/customer_device_risk_assessment.rb +42 -0
  247. data/lib/worldline/connect/sdk/v1/domain/customer_payment_activity.rb +49 -0
  248. data/lib/worldline/connect/sdk/v1/domain/customer_risk_assessment.rb +105 -0
  249. data/lib/worldline/connect/sdk/v1/domain/customer_token.rb +46 -0
  250. data/lib/worldline/connect/sdk/v1/domain/customer_token_with_contact_details.rb +37 -0
  251. data/lib/worldline/connect/sdk/v1/domain/debtor.rb +105 -0
  252. data/lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb +86 -0
  253. data/lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb +42 -0
  254. data/lib/worldline/connect/sdk/v1/domain/device_fingerprint_request.rb +35 -0
  255. data/lib/worldline/connect/sdk/v1/domain/device_fingerprint_response.rb +42 -0
  256. data/lib/worldline/connect/sdk/v1/domain/device_render_options.rb +55 -0
  257. data/lib/worldline/connect/sdk/v1/domain/directory.rb +40 -0
  258. data/lib/worldline/connect/sdk/v1/domain/directory_entry.rb +60 -0
  259. data/lib/worldline/connect/sdk/v1/domain/displayed_data.rb +54 -0
  260. data/lib/worldline/connect/sdk/v1/domain/dispute.rb +67 -0
  261. data/lib/worldline/connect/sdk/v1/domain/dispute_creation_detail.rb +49 -0
  262. data/lib/worldline/connect/sdk/v1/domain/dispute_output.rb +102 -0
  263. data/lib/worldline/connect/sdk/v1/domain/dispute_reference.rb +63 -0
  264. data/lib/worldline/connect/sdk/v1/domain/dispute_response.rb +18 -0
  265. data/lib/worldline/connect/sdk/v1/domain/dispute_status_output.rb +56 -0
  266. data/lib/worldline/connect/sdk/v1/domain/disputes_response.rb +40 -0
  267. data/lib/worldline/connect/sdk/v1/domain/e_invoice_payment_method_specific_input.rb +44 -0
  268. data/lib/worldline/connect/sdk/v1/domain/e_invoice_payment_method_specific_input_base.rb +18 -0
  269. data/lib/worldline/connect/sdk/v1/domain/e_invoice_payment_method_specific_output.rb +46 -0
  270. data/lib/worldline/connect/sdk/v1/domain/e_invoice_payment_product9000_specific_input.rb +44 -0
  271. data/lib/worldline/connect/sdk/v1/domain/e_invoice_payment_product9000_specific_output.rb +35 -0
  272. data/lib/worldline/connect/sdk/v1/domain/empty_validator.rb +18 -0
  273. data/lib/worldline/connect/sdk/v1/domain/error_response.rb +47 -0
  274. data/lib/worldline/connect/sdk/v1/domain/exemption_output.rb +49 -0
  275. data/lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb +107 -0
  276. data/lib/worldline/connect/sdk/v1/domain/find_payments_response.rb +61 -0
  277. data/lib/worldline/connect/sdk/v1/domain/find_payouts_response.rb +61 -0
  278. data/lib/worldline/connect/sdk/v1/domain/find_refunds_response.rb +61 -0
  279. data/lib/worldline/connect/sdk/v1/domain/fixed_list_validator.rb +39 -0
  280. data/lib/worldline/connect/sdk/v1/domain/fraud_fields.rb +186 -0
  281. data/lib/worldline/connect/sdk/v1/domain/fraud_fields_shipping_details.rb +56 -0
  282. data/lib/worldline/connect/sdk/v1/domain/fraud_results.rb +53 -0
  283. data/lib/worldline/connect/sdk/v1/domain/fraud_results_retail_decisions.rb +49 -0
  284. data/lib/worldline/connect/sdk/v1/domain/fraugster_results.rb +42 -0
  285. data/lib/worldline/connect/sdk/v1/domain/frequency.rb +42 -0
  286. data/lib/worldline/connect/sdk/v1/domain/g_pay_three_d_secure.rb +65 -0
  287. data/lib/worldline/connect/sdk/v1/domain/get_customer_details_request.rb +47 -0
  288. data/lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb +98 -0
  289. data/lib/worldline/connect/sdk/v1/domain/get_hosted_checkout_response.rb +44 -0
  290. data/lib/worldline/connect/sdk/v1/domain/get_hosted_mandate_management_response.rb +44 -0
  291. data/lib/worldline/connect/sdk/v1/domain/get_iin_details_request.rb +44 -0
  292. data/lib/worldline/connect/sdk/v1/domain/get_iin_details_response.rb +61 -0
  293. data/lib/worldline/connect/sdk/v1/domain/get_installment_request.rb +58 -0
  294. data/lib/worldline/connect/sdk/v1/domain/get_mandate_response.rb +37 -0
  295. data/lib/worldline/connect/sdk/v1/domain/get_privacy_policy_response.rb +35 -0
  296. data/lib/worldline/connect/sdk/v1/domain/gift_card_purchase.rb +44 -0
  297. data/lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb +102 -0
  298. data/lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_output.rb +42 -0
  299. data/lib/worldline/connect/sdk/v1/domain/hosted_file.rb +56 -0
  300. data/lib/worldline/connect/sdk/v1/domain/hosted_mandate_info.rb +72 -0
  301. data/lib/worldline/connect/sdk/v1/domain/hosted_mandate_management_specific_input.rb +56 -0
  302. data/lib/worldline/connect/sdk/v1/domain/iin_detail.rb +42 -0
  303. data/lib/worldline/connect/sdk/v1/domain/in_auth.rb +63 -0
  304. data/lib/worldline/connect/sdk/v1/domain/installment_display_hints.rb +49 -0
  305. data/lib/worldline/connect/sdk/v1/domain/installment_options.rb +56 -0
  306. data/lib/worldline/connect/sdk/v1/domain/installment_options_response.rb +40 -0
  307. data/lib/worldline/connect/sdk/v1/domain/installments.rb +73 -0
  308. data/lib/worldline/connect/sdk/v1/domain/invoice_payment_method_specific_input.rb +35 -0
  309. data/lib/worldline/connect/sdk/v1/domain/invoice_payment_method_specific_output.rb +37 -0
  310. data/lib/worldline/connect/sdk/v1/domain/key_value_pair.rb +42 -0
  311. data/lib/worldline/connect/sdk/v1/domain/label_template_element.rb +42 -0
  312. data/lib/worldline/connect/sdk/v1/domain/length_validator.rb +42 -0
  313. data/lib/worldline/connect/sdk/v1/domain/level3_summary_data.rb +56 -0
  314. data/lib/worldline/connect/sdk/v1/domain/line_item.rb +66 -0
  315. data/lib/worldline/connect/sdk/v1/domain/line_item_invoice_data.rb +63 -0
  316. data/lib/worldline/connect/sdk/v1/domain/line_item_level3_interchange_information.rb +84 -0
  317. data/lib/worldline/connect/sdk/v1/domain/loan_recipient.rb +74 -0
  318. data/lib/worldline/connect/sdk/v1/domain/lodging_charge.rb +49 -0
  319. data/lib/worldline/connect/sdk/v1/domain/lodging_data.rb +150 -0
  320. data/lib/worldline/connect/sdk/v1/domain/lodging_room.rb +91 -0
  321. data/lib/worldline/connect/sdk/v1/domain/mandate_address.rb +63 -0
  322. data/lib/worldline/connect/sdk/v1/domain/mandate_approval.rb +49 -0
  323. data/lib/worldline/connect/sdk/v1/domain/mandate_contact_details.rb +35 -0
  324. data/lib/worldline/connect/sdk/v1/domain/mandate_customer.rb +71 -0
  325. data/lib/worldline/connect/sdk/v1/domain/mandate_merchant_action.rb +44 -0
  326. data/lib/worldline/connect/sdk/v1/domain/mandate_non_sepa_direct_debit.rb +46 -0
  327. data/lib/worldline/connect/sdk/v1/domain/mandate_personal_information.rb +44 -0
  328. data/lib/worldline/connect/sdk/v1/domain/mandate_personal_name.rb +42 -0
  329. data/lib/worldline/connect/sdk/v1/domain/mandate_redirect_data.rb +18 -0
  330. data/lib/worldline/connect/sdk/v1/domain/mandate_response.rb +72 -0
  331. data/lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit.rb +37 -0
  332. data/lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_with_mandate_id.rb +35 -0
  333. data/lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_without_creditor.rb +76 -0
  334. data/lib/worldline/connect/sdk/v1/domain/merchant.rb +58 -0
  335. data/lib/worldline/connect/sdk/v1/domain/merchant_action.rb +93 -0
  336. data/lib/worldline/connect/sdk/v1/domain/merchant_risk_assessment.rb +35 -0
  337. data/lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb +77 -0
  338. data/lib/worldline/connect/sdk/v1/domain/mobile_payment_data.rb +42 -0
  339. data/lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_input.rb +81 -0
  340. data/lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_input_hosted_checkout.rb +74 -0
  341. data/lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb +69 -0
  342. data/lib/worldline/connect/sdk/v1/domain/mobile_payment_product302_specific_input_hosted_checkout.rb +35 -0
  343. data/lib/worldline/connect/sdk/v1/domain/mobile_payment_product320_specific_input.rb +44 -0
  344. data/lib/worldline/connect/sdk/v1/domain/mobile_payment_product320_specific_input_hosted_checkout.rb +51 -0
  345. data/lib/worldline/connect/sdk/v1/domain/mobile_payment_product_session302_specific_input.rb +49 -0
  346. data/lib/worldline/connect/sdk/v1/domain/mobile_payment_product_session302_specific_output.rb +35 -0
  347. data/lib/worldline/connect/sdk/v1/domain/mobile_three_d_secure_challenge_parameters.rb +56 -0
  348. data/lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_method_specific_input.rb +95 -0
  349. data/lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_method_specific_output.rb +37 -0
  350. data/lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_product705_specific_input.rb +51 -0
  351. data/lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_product730_specific_input.rb +37 -0
  352. data/lib/worldline/connect/sdk/v1/domain/order.rb +107 -0
  353. data/lib/worldline/connect/sdk/v1/domain/order_approve_payment.rb +55 -0
  354. data/lib/worldline/connect/sdk/v1/domain/order_invoice_data.rb +60 -0
  355. data/lib/worldline/connect/sdk/v1/domain/order_line_details.rb +112 -0
  356. data/lib/worldline/connect/sdk/v1/domain/order_output.rb +46 -0
  357. data/lib/worldline/connect/sdk/v1/domain/order_references.rb +72 -0
  358. data/lib/worldline/connect/sdk/v1/domain/order_references_approve_payment.rb +35 -0
  359. data/lib/worldline/connect/sdk/v1/domain/order_risk_assessment.rb +64 -0
  360. data/lib/worldline/connect/sdk/v1/domain/order_status_output.rb +87 -0
  361. data/lib/worldline/connect/sdk/v1/domain/order_type_information.rb +56 -0
  362. data/lib/worldline/connect/sdk/v1/domain/payment.rb +62 -0
  363. data/lib/worldline/connect/sdk/v1/domain/payment_account_on_file.rb +42 -0
  364. data/lib/worldline/connect/sdk/v1/domain/payment_approval_response.rb +65 -0
  365. data/lib/worldline/connect/sdk/v1/domain/payment_context.rb +58 -0
  366. data/lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb +56 -0
  367. data/lib/worldline/connect/sdk/v1/domain/payment_creation_references.rb +42 -0
  368. data/lib/worldline/connect/sdk/v1/domain/payment_error_response.rb +56 -0
  369. data/lib/worldline/connect/sdk/v1/domain/payment_output.rb +137 -0
  370. data/lib/worldline/connect/sdk/v1/domain/payment_product.rb +223 -0
  371. data/lib/worldline/connect/sdk/v1/domain/payment_product302_specific_data.rb +39 -0
  372. data/lib/worldline/connect/sdk/v1/domain/payment_product3201_specific_output.rb +37 -0
  373. data/lib/worldline/connect/sdk/v1/domain/payment_product320_specific_data.rb +46 -0
  374. data/lib/worldline/connect/sdk/v1/domain/payment_product771_specific_output.rb +35 -0
  375. data/lib/worldline/connect/sdk/v1/domain/payment_product806_specific_output.rb +46 -0
  376. data/lib/worldline/connect/sdk/v1/domain/payment_product836_specific_output.rb +35 -0
  377. data/lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb +98 -0
  378. data/lib/worldline/connect/sdk/v1/domain/payment_product840_specific_output.rb +63 -0
  379. data/lib/worldline/connect/sdk/v1/domain/payment_product863_specific_data.rb +39 -0
  380. data/lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb +77 -0
  381. data/lib/worldline/connect/sdk/v1/domain/payment_product_display_hints.rb +49 -0
  382. data/lib/worldline/connect/sdk/v1/domain/payment_product_field.rb +67 -0
  383. data/lib/worldline/connect/sdk/v1/domain/payment_product_field_data_restrictions.rb +44 -0
  384. data/lib/worldline/connect/sdk/v1/domain/payment_product_field_display_element.rb +56 -0
  385. data/lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb +102 -0
  386. data/lib/worldline/connect/sdk/v1/domain/payment_product_field_form_element.rb +47 -0
  387. data/lib/worldline/connect/sdk/v1/domain/payment_product_field_tooltip.rb +42 -0
  388. data/lib/worldline/connect/sdk/v1/domain/payment_product_field_validators.rb +122 -0
  389. data/lib/worldline/connect/sdk/v1/domain/payment_product_filter.rb +50 -0
  390. data/lib/worldline/connect/sdk/v1/domain/payment_product_filters_client_session.rb +45 -0
  391. data/lib/worldline/connect/sdk/v1/domain/payment_product_filters_hosted_checkout.rb +52 -0
  392. data/lib/worldline/connect/sdk/v1/domain/payment_product_group.rb +82 -0
  393. data/lib/worldline/connect/sdk/v1/domain/payment_product_group_response.rb +18 -0
  394. data/lib/worldline/connect/sdk/v1/domain/payment_product_groups.rb +40 -0
  395. data/lib/worldline/connect/sdk/v1/domain/payment_product_networks_response.rb +39 -0
  396. data/lib/worldline/connect/sdk/v1/domain/payment_product_response.rb +18 -0
  397. data/lib/worldline/connect/sdk/v1/domain/payment_products.rb +40 -0
  398. data/lib/worldline/connect/sdk/v1/domain/payment_references.rb +77 -0
  399. data/lib/worldline/connect/sdk/v1/domain/payment_response.rb +18 -0
  400. data/lib/worldline/connect/sdk/v1/domain/payment_status_output.rb +49 -0
  401. data/lib/worldline/connect/sdk/v1/domain/payout_customer.rb +71 -0
  402. data/lib/worldline/connect/sdk/v1/domain/payout_details.rb +55 -0
  403. data/lib/worldline/connect/sdk/v1/domain/payout_error_response.rb +56 -0
  404. data/lib/worldline/connect/sdk/v1/domain/payout_merchant.rb +35 -0
  405. data/lib/worldline/connect/sdk/v1/domain/payout_recipient.rb +49 -0
  406. data/lib/worldline/connect/sdk/v1/domain/payout_references.rb +49 -0
  407. data/lib/worldline/connect/sdk/v1/domain/payout_response.rb +18 -0
  408. data/lib/worldline/connect/sdk/v1/domain/payout_result.rb +53 -0
  409. data/lib/worldline/connect/sdk/v1/domain/personal_identification.rb +49 -0
  410. data/lib/worldline/connect/sdk/v1/domain/personal_information.rb +60 -0
  411. data/lib/worldline/connect/sdk/v1/domain/personal_information_risk_assessment.rb +37 -0
  412. data/lib/worldline/connect/sdk/v1/domain/personal_information_token.rb +37 -0
  413. data/lib/worldline/connect/sdk/v1/domain/personal_name.rb +35 -0
  414. data/lib/worldline/connect/sdk/v1/domain/personal_name_base.rb +49 -0
  415. data/lib/worldline/connect/sdk/v1/domain/personal_name_risk_assessment.rb +18 -0
  416. data/lib/worldline/connect/sdk/v1/domain/personal_name_token.rb +18 -0
  417. data/lib/worldline/connect/sdk/v1/domain/protection_eligibility.rb +42 -0
  418. data/lib/worldline/connect/sdk/v1/domain/range_validator.rb +42 -0
  419. data/lib/worldline/connect/sdk/v1/domain/recurring_payments_data.rb +46 -0
  420. data/lib/worldline/connect/sdk/v1/domain/redirect_data.rb +18 -0
  421. data/lib/worldline/connect/sdk/v1/domain/redirect_data_base.rb +42 -0
  422. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_input.rb +125 -0
  423. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_input_base.rb +46 -0
  424. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb +105 -0
  425. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input.rb +49 -0
  426. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input_base.rb +35 -0
  427. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product809_specific_input.rb +44 -0
  428. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product816_specific_input.rb +37 -0
  429. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input.rb +44 -0
  430. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input_base.rb +18 -0
  431. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product861_specific_input.rb +35 -0
  432. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product863_specific_input.rb +42 -0
  433. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product869_specific_input.rb +49 -0
  434. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product882_specific_input.rb +35 -0
  435. data/lib/worldline/connect/sdk/v1/domain/redirection_data.rb +42 -0
  436. data/lib/worldline/connect/sdk/v1/domain/refund_bank_method_specific_output.rb +18 -0
  437. data/lib/worldline/connect/sdk/v1/domain/refund_card_method_specific_output.rb +44 -0
  438. data/lib/worldline/connect/sdk/v1/domain/refund_cash_method_specific_output.rb +18 -0
  439. data/lib/worldline/connect/sdk/v1/domain/refund_customer.rb +62 -0
  440. data/lib/worldline/connect/sdk/v1/domain/refund_e_invoice_method_specific_output.rb +18 -0
  441. data/lib/worldline/connect/sdk/v1/domain/refund_e_wallet_method_specific_output.rb +37 -0
  442. data/lib/worldline/connect/sdk/v1/domain/refund_error_response.rb +56 -0
  443. data/lib/worldline/connect/sdk/v1/domain/refund_method_specific_output.rb +49 -0
  444. data/lib/worldline/connect/sdk/v1/domain/refund_mobile_method_specific_output.rb +35 -0
  445. data/lib/worldline/connect/sdk/v1/domain/refund_output.rb +96 -0
  446. data/lib/worldline/connect/sdk/v1/domain/refund_payment_product840_customer_account.rb +49 -0
  447. data/lib/worldline/connect/sdk/v1/domain/refund_payment_product840_specific_output.rb +37 -0
  448. data/lib/worldline/connect/sdk/v1/domain/refund_references.rb +35 -0
  449. data/lib/worldline/connect/sdk/v1/domain/refund_request.rb +71 -0
  450. data/lib/worldline/connect/sdk/v1/domain/refund_response.rb +18 -0
  451. data/lib/worldline/connect/sdk/v1/domain/refund_result.rb +53 -0
  452. data/lib/worldline/connect/sdk/v1/domain/refunds_response.rb +40 -0
  453. data/lib/worldline/connect/sdk/v1/domain/regular_expression_validator.rb +35 -0
  454. data/lib/worldline/connect/sdk/v1/domain/result_do_risk_assessment.rb +60 -0
  455. data/lib/worldline/connect/sdk/v1/domain/retail_decisions_cc_fraud_check_output.rb +49 -0
  456. data/lib/worldline/connect/sdk/v1/domain/risk_assessment.rb +62 -0
  457. data/lib/worldline/connect/sdk/v1/domain/risk_assessment_bank_account.rb +46 -0
  458. data/lib/worldline/connect/sdk/v1/domain/risk_assessment_card.rb +37 -0
  459. data/lib/worldline/connect/sdk/v1/domain/risk_assessment_response.rb +40 -0
  460. data/lib/worldline/connect/sdk/v1/domain/scheme_token_data.rb +63 -0
  461. data/lib/worldline/connect/sdk/v1/domain/sdk_data_input.rb +79 -0
  462. data/lib/worldline/connect/sdk/v1/domain/sdk_data_output.rb +35 -0
  463. data/lib/worldline/connect/sdk/v1/domain/seller.rb +114 -0
  464. data/lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb +86 -0
  465. data/lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input_base.rb +37 -0
  466. data/lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_output.rb +53 -0
  467. data/lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_product771_specific_input.rb +44 -0
  468. data/lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_product771_specific_input_base.rb +44 -0
  469. data/lib/worldline/connect/sdk/v1/domain/session_request.rb +48 -0
  470. data/lib/worldline/connect/sdk/v1/domain/session_response.rb +74 -0
  471. data/lib/worldline/connect/sdk/v1/domain/shipping.rb +86 -0
  472. data/lib/worldline/connect/sdk/v1/domain/shipping_risk_assessment.rb +51 -0
  473. data/lib/worldline/connect/sdk/v1/domain/shopping_cart.rb +82 -0
  474. data/lib/worldline/connect/sdk/v1/domain/swift.rb +98 -0
  475. data/lib/worldline/connect/sdk/v1/domain/test_connection.rb +35 -0
  476. data/lib/worldline/connect/sdk/v1/domain/third_party_data.rb +37 -0
  477. data/lib/worldline/connect/sdk/v1/domain/third_party_status_response.rb +35 -0
  478. data/lib/worldline/connect/sdk/v1/domain/three_d_secure.rb +46 -0
  479. data/lib/worldline/connect/sdk/v1/domain/three_d_secure_base.rb +18 -0
  480. data/lib/worldline/connect/sdk/v1/domain/three_d_secure_data.rb +49 -0
  481. data/lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb +127 -0
  482. data/lib/worldline/connect/sdk/v1/domain/token_card.rb +46 -0
  483. data/lib/worldline/connect/sdk/v1/domain/token_card_data.rb +51 -0
  484. data/lib/worldline/connect/sdk/v1/domain/token_e_wallet.rb +46 -0
  485. data/lib/worldline/connect/sdk/v1/domain/token_e_wallet_data.rb +35 -0
  486. data/lib/worldline/connect/sdk/v1/domain/token_non_sepa_direct_debit.rb +46 -0
  487. data/lib/worldline/connect/sdk/v1/domain/token_non_sepa_direct_debit_payment_product705_specific_data.rb +44 -0
  488. data/lib/worldline/connect/sdk/v1/domain/token_non_sepa_direct_debit_payment_product730_specific_data.rb +37 -0
  489. data/lib/worldline/connect/sdk/v1/domain/token_response.rb +85 -0
  490. data/lib/worldline/connect/sdk/v1/domain/token_sepa_direct_debit.rb +46 -0
  491. data/lib/worldline/connect/sdk/v1/domain/token_sepa_direct_debit_without_creditor.rb +46 -0
  492. data/lib/worldline/connect/sdk/v1/domain/tokenize_payment_request.rb +35 -0
  493. data/lib/worldline/connect/sdk/v1/domain/trial_information.rb +69 -0
  494. data/lib/worldline/connect/sdk/v1/domain/trial_period.rb +42 -0
  495. data/lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb +56 -0
  496. data/lib/worldline/connect/sdk/v1/domain/update_token_request.rb +71 -0
  497. data/lib/worldline/connect/sdk/v1/domain/upload_dispute_file_response.rb +42 -0
  498. data/lib/worldline/connect/sdk/v1/domain/validation_bank_account_check.rb +49 -0
  499. data/lib/worldline/connect/sdk/v1/domain/validation_bank_account_output.rb +68 -0
  500. data/lib/worldline/connect/sdk/v1/domain/value_mapping_element.rb +56 -0
  501. data/lib/worldline/connect/sdk/v1/domain/webhooks_event.rb +108 -0
  502. data/lib/worldline/connect/sdk/v1/domain.rb +5 -0
  503. data/lib/worldline/connect/sdk/v1/exception_factory.rb +76 -0
  504. data/lib/worldline/connect/sdk/v1/idempotence_exception.rb +34 -0
  505. data/lib/worldline/connect/sdk/v1/merchant/captures/captures_client.rb +96 -0
  506. data/lib/worldline/connect/sdk/v1/merchant/captures.rb +5 -0
  507. data/lib/worldline/connect/sdk/v1/merchant/disputes/disputes_client.rb +156 -0
  508. data/lib/worldline/connect/sdk/v1/merchant/disputes/upload_file_request.rb +32 -0
  509. data/lib/worldline/connect/sdk/v1/merchant/disputes.rb +5 -0
  510. data/lib/worldline/connect/sdk/v1/merchant/files/files_client.rb +61 -0
  511. data/lib/worldline/connect/sdk/v1/merchant/files.rb +5 -0
  512. data/lib/worldline/connect/sdk/v1/merchant/hostedcheckouts/hostedcheckouts_client.rb +119 -0
  513. data/lib/worldline/connect/sdk/v1/merchant/hostedcheckouts.rb +5 -0
  514. data/lib/worldline/connect/sdk/v1/merchant/hostedmandatemanagements/hostedmandatemanagements_client.rb +90 -0
  515. data/lib/worldline/connect/sdk/v1/merchant/hostedmandatemanagements.rb +5 -0
  516. data/lib/worldline/connect/sdk/v1/merchant/installments/installments_client.rb +59 -0
  517. data/lib/worldline/connect/sdk/v1/merchant/installments.rb +5 -0
  518. data/lib/worldline/connect/sdk/v1/merchant/mandates/mandates_client.rb +215 -0
  519. data/lib/worldline/connect/sdk/v1/merchant/mandates.rb +5 -0
  520. data/lib/worldline/connect/sdk/v1/merchant/merchant_client.rb +137 -0
  521. data/lib/worldline/connect/sdk/v1/merchant/payments/find_payments_params.rb +48 -0
  522. data/lib/worldline/connect/sdk/v1/merchant/payments/payments_client.rb +570 -0
  523. data/lib/worldline/connect/sdk/v1/merchant/payments.rb +5 -0
  524. data/lib/worldline/connect/sdk/v1/merchant/payouts/find_payouts_params.rb +44 -0
  525. data/lib/worldline/connect/sdk/v1/merchant/payouts/payouts_client.rb +211 -0
  526. data/lib/worldline/connect/sdk/v1/merchant/payouts.rb +5 -0
  527. data/lib/worldline/connect/sdk/v1/merchant/productgroups/find_productgroups_params.rb +67 -0
  528. data/lib/worldline/connect/sdk/v1/merchant/productgroups/get_productgroup_params.rb +67 -0
  529. data/lib/worldline/connect/sdk/v1/merchant/productgroups/productgroups_client.rb +123 -0
  530. data/lib/worldline/connect/sdk/v1/merchant/productgroups.rb +5 -0
  531. data/lib/worldline/connect/sdk/v1/merchant/products/directory_params.rb +36 -0
  532. data/lib/worldline/connect/sdk/v1/merchant/products/find_products_params.rb +67 -0
  533. data/lib/worldline/connect/sdk/v1/merchant/products/get_product_params.rb +71 -0
  534. data/lib/worldline/connect/sdk/v1/merchant/products/networks_params.rb +44 -0
  535. data/lib/worldline/connect/sdk/v1/merchant/products/products_client.rb +253 -0
  536. data/lib/worldline/connect/sdk/v1/merchant/products.rb +5 -0
  537. data/lib/worldline/connect/sdk/v1/merchant/refunds/find_refunds_params.rb +48 -0
  538. data/lib/worldline/connect/sdk/v1/merchant/refunds/refunds_client.rb +180 -0
  539. data/lib/worldline/connect/sdk/v1/merchant/refunds.rb +5 -0
  540. data/lib/worldline/connect/sdk/v1/merchant/riskassessments/riskassessments_client.rb +87 -0
  541. data/lib/worldline/connect/sdk/v1/merchant/riskassessments.rb +5 -0
  542. data/lib/worldline/connect/sdk/v1/merchant/services/convert_amount_params.rb +40 -0
  543. data/lib/worldline/connect/sdk/v1/merchant/services/privacypolicy_params.rb +36 -0
  544. data/lib/worldline/connect/sdk/v1/merchant/services/services_client.rb +171 -0
  545. data/lib/worldline/connect/sdk/v1/merchant/services.rb +5 -0
  546. data/lib/worldline/connect/sdk/v1/merchant/sessions/sessions_client.rb +59 -0
  547. data/lib/worldline/connect/sdk/v1/merchant/sessions.rb +5 -0
  548. data/lib/worldline/connect/sdk/v1/merchant/tokens/delete_token_params.rb +32 -0
  549. data/lib/worldline/connect/sdk/v1/merchant/tokens/tokens_client.rb +182 -0
  550. data/lib/worldline/connect/sdk/v1/merchant/tokens.rb +5 -0
  551. data/lib/worldline/connect/sdk/v1/merchant.rb +5 -0
  552. data/lib/worldline/connect/sdk/v1/platform_exception.rb +26 -0
  553. data/lib/worldline/connect/sdk/v1/reference_exception.rb +25 -0
  554. data/lib/worldline/connect/sdk/v1/v1_client.rb +35 -0
  555. data/lib/worldline/connect/sdk/v1/validation_exception.rb +25 -0
  556. data/lib/worldline/connect/sdk/v1/webhooks/v1_webhooks_factory.rb +27 -0
  557. data/lib/worldline/connect/sdk/v1/webhooks/webhooks_helper.rb +45 -0
  558. data/lib/worldline/connect/sdk/v1/webhooks.rb +5 -0
  559. data/lib/worldline/connect/sdk/v1.rb +5 -0
  560. data/lib/worldline/connect/sdk/webhooks/api_version_mismatch_exception.rb +24 -0
  561. data/lib/worldline/connect/sdk/webhooks/in_memory_secret_key_store.rb +61 -0
  562. data/lib/worldline/connect/sdk/webhooks/secret_key_not_available_exception.rb +23 -0
  563. data/lib/worldline/connect/sdk/webhooks/secret_key_store.rb +20 -0
  564. data/lib/worldline/connect/sdk/webhooks/signature_validation_exception.rb +22 -0
  565. data/lib/worldline/connect/sdk/webhooks/signature_validator.rb +83 -0
  566. data/lib/worldline/connect/sdk/webhooks/webhooks.rb +28 -0
  567. data/spec/comparable_extension.rb +2 -2
  568. data/spec/fixtures/resources/properties.proxy.yml +2 -2
  569. data/spec/fixtures/resources/properties.yml +2 -2
  570. data/spec/integration/connection_pooling_spec.rb +6 -6
  571. data/spec/integration/convert_amount_spec.rb +4 -4
  572. data/spec/integration/idempotence_spec.rb +19 -19
  573. data/spec/integration/multiline_header_spec.rb +15 -14
  574. data/spec/integration/multipart_form_data_spec.rb +31 -31
  575. data/spec/integration/payment_product_groups_spec.rb +3 -3
  576. data/spec/integration/payment_products_spec.rb +6 -6
  577. data/spec/integration/risk_assessments_spec.rb +12 -12
  578. data/spec/integration/sdk_proxy_spec.rb +22 -21
  579. data/spec/integration/token_spec.rb +16 -15
  580. data/spec/integration_setup.rb +7 -7
  581. data/spec/lib/authentication/v1hmac_authenticator_spec.rb +72 -0
  582. data/spec/lib/client_spec.rb +16 -16
  583. data/spec/lib/communication/default_connection_idempotence_spec.rb +140 -0
  584. data/spec/lib/communication/default_connection_logger_spec.rb +569 -0
  585. data/spec/lib/communication/default_connection_spec.rb +351 -0
  586. data/spec/lib/communicator_configuration_spec.rb +33 -33
  587. data/spec/lib/communicator_spec.rb +11 -8
  588. data/spec/lib/factory_spec.rb +10 -13
  589. data/spec/lib/json/default_marshaller_spec.rb +36 -0
  590. data/spec/lib/logging/obfuscation/body_obfuscator_spec.rb +1 -1
  591. data/spec/lib/logging/obfuscation/header_obfuscator_spec.rb +2 -2
  592. data/spec/lib/logging/ruby_communicator_logger_spec.rb +2 -2
  593. data/spec/lib/logging/stdout_communicator_logger_spec.rb +2 -2
  594. data/spec/lib/metadata_provider_spec.rb +93 -0
  595. data/spec/lib/payments_client_spec.rb +47 -48
  596. data/spec/lib/requestparams/delete_params_spec.rb +3 -3
  597. data/spec/lib/requestparams/directory_params_spec.rb +4 -3
  598. data/spec/lib/requestparams/find_params_spec.rb +5 -5
  599. data/spec/lib/requestparams/get_params_spec.rb +5 -5
  600. data/spec/lib/webhooks/webhooks_helper_spec.rb +8 -5
  601. data/spec/lib/webhooks/webhooks_spec.rb +3 -3
  602. data/spec/spec_helper.rb +3 -3
  603. metadata +610 -636
  604. data/examples/merchant/captures/create_refund_capture_example.rb +0 -54
  605. data/examples/merchant/captures/get_capture_example.rb +0 -22
  606. data/examples/merchant/disputes/cancel_dispute_example.rb +0 -22
  607. data/examples/merchant/disputes/get_dispute_example.rb +0 -22
  608. data/examples/merchant/disputes/submit_dispute_example.rb +0 -22
  609. data/examples/merchant/disputes/upload_dispute_file_example.rb +0 -30
  610. data/examples/merchant/example_configuration.yml +0 -6
  611. data/examples/merchant/files/get_file_example.rb +0 -28
  612. data/examples/merchant/hostedcheckouts/create_hosted_checkout_example.rb +0 -54
  613. data/examples/merchant/hostedcheckouts/delete_hosted_checkout_example.rb +0 -22
  614. data/examples/merchant/hostedcheckouts/get_hosted_checkout_example.rb +0 -22
  615. data/examples/merchant/hostedmandatemanagements/create_hosted_mandate_management_example.rb +0 -40
  616. data/examples/merchant/hostedmandatemanagements/get_hosted_mandate_management_example.rb +0 -22
  617. data/examples/merchant/installments/get_installments_info_example.rb +0 -36
  618. data/examples/merchant/mandates/block_mandate_example.rb +0 -22
  619. data/examples/merchant/mandates/create_mandate_example.rb +0 -65
  620. data/examples/merchant/mandates/create_mandate_with_reference_example.rb +0 -65
  621. data/examples/merchant/mandates/get_mandate_example.rb +0 -22
  622. data/examples/merchant/mandates/revoke_mandate_example.rb +0 -22
  623. data/examples/merchant/mandates/unblock_mandate_example.rb +0 -22
  624. data/examples/merchant/payments/approve_payment_example.rb +0 -42
  625. data/examples/merchant/payments/cancel_approval_payment_example.rb +0 -22
  626. data/examples/merchant/payments/cancel_payment_example.rb +0 -22
  627. data/examples/merchant/payments/capture_payment_example.rb +0 -27
  628. data/examples/merchant/payments/complete_payment_example.rb +0 -38
  629. data/examples/merchant/payments/create_payment_dispute_example.rb +0 -37
  630. data/examples/merchant/payments/create_payment_example.rb +0 -223
  631. data/examples/merchant/payments/find_payments_example.rb +0 -31
  632. data/examples/merchant/payments/get_payment_captures_example.rb +0 -22
  633. data/examples/merchant/payments/get_payment_device_fingerprint_details_example.rb +0 -22
  634. data/examples/merchant/payments/get_payment_disputes_example.rb +0 -22
  635. data/examples/merchant/payments/get_payment_example.rb +0 -22
  636. data/examples/merchant/payments/get_refunds_example.rb +0 -22
  637. data/examples/merchant/payments/get_third_party_status_example.rb +0 -22
  638. data/examples/merchant/payments/process_challenged_payment_example.rb +0 -22
  639. data/examples/merchant/payments/refund_payment_example.rb +0 -85
  640. data/examples/merchant/payments/tokenize_payment_example.rb +0 -27
  641. data/examples/merchant/payouts/approve_payout_example.rb +0 -27
  642. data/examples/merchant/payouts/cancel_approval_payout_example.rb +0 -22
  643. data/examples/merchant/payouts/cancel_payout_example.rb +0 -22
  644. data/examples/merchant/payouts/create_payout_example.rb +0 -104
  645. data/examples/merchant/payouts/find_payouts_example.rb +0 -30
  646. data/examples/merchant/payouts/get_payout_example.rb +0 -22
  647. data/examples/merchant/productgroups/get_device_fingerprint_for_groups_example.rb +0 -26
  648. data/examples/merchant/productgroups/get_payment_product_group_example.rb +0 -33
  649. data/examples/merchant/productgroups/get_payment_product_groups_example.rb +0 -33
  650. data/examples/merchant/products/create_payment_product_session_example.rb +0 -33
  651. data/examples/merchant/products/get_customer_details_example.rb +0 -38
  652. data/examples/merchant/products/get_device_fingerprint_example.rb +0 -26
  653. data/examples/merchant/products/get_directory_example.rb +0 -28
  654. data/examples/merchant/products/get_networks_example.rb +0 -30
  655. data/examples/merchant/products/get_payment_product_example.rb +0 -34
  656. data/examples/merchant/products/get_payment_products_example.rb +0 -33
  657. data/examples/merchant/refunds/approve_refund_example.rb +0 -27
  658. data/examples/merchant/refunds/cancel_approval_refund_example.rb +0 -22
  659. data/examples/merchant/refunds/cancel_refund_example.rb +0 -22
  660. data/examples/merchant/refunds/find_refunds_example.rb +0 -31
  661. data/examples/merchant/refunds/get_refund_example.rb +0 -22
  662. data/examples/merchant/riskassessments/risk_assessment_bank_account_example.rb +0 -54
  663. data/examples/merchant/riskassessments/risk_assessment_cards_example.rb +0 -114
  664. data/examples/merchant/services/convert_amount_example.rb +0 -29
  665. data/examples/merchant/services/convert_bank_account_example.rb +0 -34
  666. data/examples/merchant/services/get_privacy_policy_example.rb +0 -28
  667. data/examples/merchant/services/iin_details_example.rb +0 -27
  668. data/examples/merchant/services/test_connection_example.rb +0 -22
  669. data/examples/merchant/sessions/create_session_example.rb +0 -34
  670. data/examples/merchant/tokens/approve_sepa_direct_debit_token_example.rb +0 -29
  671. data/examples/merchant/tokens/create_token_example.rb +0 -82
  672. data/examples/merchant/tokens/delete_token_example.rb +0 -27
  673. data/examples/merchant/tokens/get_token_example.rb +0 -22
  674. data/examples/merchant/tokens/update_token_example.rb +0 -76
  675. data/lib/ingenico/connect/sdk/api_exception.rb +0 -53
  676. data/lib/ingenico/connect/sdk/api_resource.rb +0 -144
  677. data/lib/ingenico/connect/sdk/authenticator.rb +0 -19
  678. data/lib/ingenico/connect/sdk/authorization_exception.rb +0 -18
  679. data/lib/ingenico/connect/sdk/call_context.rb +0 -29
  680. data/lib/ingenico/connect/sdk/client.rb +0 -106
  681. data/lib/ingenico/connect/sdk/communication_exception.rb +0 -19
  682. data/lib/ingenico/connect/sdk/communicator.rb +0 -515
  683. data/lib/ingenico/connect/sdk/communicator_configuration.rb +0 -86
  684. data/lib/ingenico/connect/sdk/connection.rb +0 -46
  685. data/lib/ingenico/connect/sdk/data_object.rb +0 -34
  686. data/lib/ingenico/connect/sdk/declined_payment_exception.rb +0 -47
  687. data/lib/ingenico/connect/sdk/declined_payout_exception.rb +0 -47
  688. data/lib/ingenico/connect/sdk/declined_refund_exception.rb +0 -47
  689. data/lib/ingenico/connect/sdk/declined_transaction_exception.rb +0 -21
  690. data/lib/ingenico/connect/sdk/defaultimpl/authorization_type.rb +0 -22
  691. data/lib/ingenico/connect/sdk/defaultimpl/default_authenticator.rb +0 -111
  692. data/lib/ingenico/connect/sdk/defaultimpl/default_connection.rb +0 -427
  693. data/lib/ingenico/connect/sdk/defaultimpl/default_marshaller.rb +0 -41
  694. data/lib/ingenico/connect/sdk/defaultimpl.rb +0 -1
  695. data/lib/ingenico/connect/sdk/domain/capture/capture.rb +0 -53
  696. data/lib/ingenico/connect/sdk/domain/capture/capture_output.rb +0 -137
  697. data/lib/ingenico/connect/sdk/domain/capture/capture_response.rb +0 -18
  698. data/lib/ingenico/connect/sdk/domain/capture/capture_status_output.rb +0 -54
  699. data/lib/ingenico/connect/sdk/domain/capture/captures_response.rb +0 -40
  700. data/lib/ingenico/connect/sdk/domain/capture.rb +0 -5
  701. data/lib/ingenico/connect/sdk/domain/definitions/abstract_order_status.rb +0 -35
  702. data/lib/ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input.rb +0 -35
  703. data/lib/ingenico/connect/sdk/domain/definitions/additional_order_input_airline_data.rb +0 -46
  704. data/lib/ingenico/connect/sdk/domain/definitions/address.rb +0 -84
  705. data/lib/ingenico/connect/sdk/domain/definitions/airline_data.rb +0 -215
  706. data/lib/ingenico/connect/sdk/domain/definitions/airline_flight_leg.rb +0 -170
  707. data/lib/ingenico/connect/sdk/domain/definitions/airline_passenger.rb +0 -56
  708. data/lib/ingenico/connect/sdk/domain/definitions/amount_of_money.rb +0 -42
  709. data/lib/ingenico/connect/sdk/domain/definitions/bank_account.rb +0 -35
  710. data/lib/ingenico/connect/sdk/domain/definitions/bank_account_bban.rb +0 -70
  711. data/lib/ingenico/connect/sdk/domain/definitions/bank_account_iban.rb +0 -35
  712. data/lib/ingenico/connect/sdk/domain/definitions/card.rb +0 -42
  713. data/lib/ingenico/connect/sdk/domain/definitions/card_essentials.rb +0 -49
  714. data/lib/ingenico/connect/sdk/domain/definitions/card_fraud_results.rb +0 -60
  715. data/lib/ingenico/connect/sdk/domain/definitions/card_without_cvv.rb +0 -35
  716. data/lib/ingenico/connect/sdk/domain/definitions/company_information.rb +0 -42
  717. data/lib/ingenico/connect/sdk/domain/definitions/contact_details_base.rb +0 -42
  718. data/lib/ingenico/connect/sdk/domain/definitions/customer_base.rb +0 -53
  719. data/lib/ingenico/connect/sdk/domain/definitions/fraud_fields.rb +0 -186
  720. data/lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb +0 -56
  721. data/lib/ingenico/connect/sdk/domain/definitions/fraud_results.rb +0 -53
  722. data/lib/ingenico/connect/sdk/domain/definitions/fraud_results_retail_decisions.rb +0 -49
  723. data/lib/ingenico/connect/sdk/domain/definitions/fraugster_results.rb +0 -42
  724. data/lib/ingenico/connect/sdk/domain/definitions/in_auth.rb +0 -63
  725. data/lib/ingenico/connect/sdk/domain/definitions/key_value_pair.rb +0 -42
  726. data/lib/ingenico/connect/sdk/domain/definitions/lodging_charge.rb +0 -49
  727. data/lib/ingenico/connect/sdk/domain/definitions/lodging_data.rb +0 -150
  728. data/lib/ingenico/connect/sdk/domain/definitions/lodging_room.rb +0 -91
  729. data/lib/ingenico/connect/sdk/domain/definitions/microsoft_fraud_results.rb +0 -77
  730. data/lib/ingenico/connect/sdk/domain/definitions/order_status_output.rb +0 -87
  731. data/lib/ingenico/connect/sdk/domain/definitions/payment_product_filter.rb +0 -50
  732. data/lib/ingenico/connect/sdk/domain/definitions/personal_name_base.rb +0 -49
  733. data/lib/ingenico/connect/sdk/domain/definitions/redirect_data_base.rb +0 -42
  734. data/lib/ingenico/connect/sdk/domain/definitions/result_do_risk_assessment.rb +0 -60
  735. data/lib/ingenico/connect/sdk/domain/definitions/retail_decisions_cc_fraud_check_output.rb +0 -49
  736. data/lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_check.rb +0 -49
  737. data/lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb +0 -68
  738. data/lib/ingenico/connect/sdk/domain/definitions.rb +0 -5
  739. data/lib/ingenico/connect/sdk/domain/dispute/create_dispute_request.rb +0 -65
  740. data/lib/ingenico/connect/sdk/domain/dispute/dispute.rb +0 -67
  741. data/lib/ingenico/connect/sdk/domain/dispute/dispute_creation_detail.rb +0 -49
  742. data/lib/ingenico/connect/sdk/domain/dispute/dispute_output.rb +0 -102
  743. data/lib/ingenico/connect/sdk/domain/dispute/dispute_reference.rb +0 -63
  744. data/lib/ingenico/connect/sdk/domain/dispute/dispute_response.rb +0 -18
  745. data/lib/ingenico/connect/sdk/domain/dispute/dispute_status_output.rb +0 -56
  746. data/lib/ingenico/connect/sdk/domain/dispute/disputes_response.rb +0 -40
  747. data/lib/ingenico/connect/sdk/domain/dispute/upload_dispute_file_response.rb +0 -42
  748. data/lib/ingenico/connect/sdk/domain/dispute.rb +0 -5
  749. data/lib/ingenico/connect/sdk/domain/errors/api_error.rb +0 -77
  750. data/lib/ingenico/connect/sdk/domain/errors/error_response.rb +0 -47
  751. data/lib/ingenico/connect/sdk/domain/errors.rb +0 -5
  752. data/lib/ingenico/connect/sdk/domain/file/hosted_file.rb +0 -56
  753. data/lib/ingenico/connect/sdk/domain/file.rb +0 -5
  754. data/lib/ingenico/connect/sdk/domain/hostedcheckout/create_hosted_checkout_request.rb +0 -127
  755. data/lib/ingenico/connect/sdk/domain/hostedcheckout/create_hosted_checkout_response.rb +0 -67
  756. data/lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb +0 -85
  757. data/lib/ingenico/connect/sdk/domain/hostedcheckout/displayed_data.rb +0 -54
  758. data/lib/ingenico/connect/sdk/domain/hostedcheckout/frequency.rb +0 -42
  759. data/lib/ingenico/connect/sdk/domain/hostedcheckout/get_hosted_checkout_response.rb +0 -44
  760. data/lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb +0 -102
  761. data/lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb +0 -74
  762. data/lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_product302_specific_input_hosted_checkout.rb +0 -35
  763. data/lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_product320_specific_input_hosted_checkout.rb +0 -51
  764. data/lib/ingenico/connect/sdk/domain/hostedcheckout/payment_product_filters_hosted_checkout.rb +0 -52
  765. data/lib/ingenico/connect/sdk/domain/hostedcheckout/recurring_payments_data.rb +0 -46
  766. data/lib/ingenico/connect/sdk/domain/hostedcheckout/trial_information.rb +0 -69
  767. data/lib/ingenico/connect/sdk/domain/hostedcheckout/trial_period.rb +0 -42
  768. data/lib/ingenico/connect/sdk/domain/hostedcheckout.rb +0 -5
  769. data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_request.rb +0 -46
  770. data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_response.rb +0 -49
  771. data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/get_hosted_mandate_management_response.rb +0 -44
  772. data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/hosted_mandate_info.rb +0 -72
  773. data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/hosted_mandate_management_specific_input.rb +0 -56
  774. data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement.rb +0 -5
  775. data/lib/ingenico/connect/sdk/domain/installments/get_installment_request.rb +0 -58
  776. data/lib/ingenico/connect/sdk/domain/installments/installment_display_hints.rb +0 -49
  777. data/lib/ingenico/connect/sdk/domain/installments/installment_options.rb +0 -56
  778. data/lib/ingenico/connect/sdk/domain/installments/installment_options_response.rb +0 -40
  779. data/lib/ingenico/connect/sdk/domain/installments.rb +0 -5
  780. data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_base.rb +0 -79
  781. data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_request.rb +0 -18
  782. data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_response.rb +0 -46
  783. data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_with_return_url.rb +0 -35
  784. data/lib/ingenico/connect/sdk/domain/mandates/get_mandate_response.rb +0 -37
  785. data/lib/ingenico/connect/sdk/domain/mandates/mandate_address.rb +0 -63
  786. data/lib/ingenico/connect/sdk/domain/mandates/mandate_contact_details.rb +0 -35
  787. data/lib/ingenico/connect/sdk/domain/mandates/mandate_customer.rb +0 -71
  788. data/lib/ingenico/connect/sdk/domain/mandates/mandate_merchant_action.rb +0 -44
  789. data/lib/ingenico/connect/sdk/domain/mandates/mandate_personal_information.rb +0 -44
  790. data/lib/ingenico/connect/sdk/domain/mandates/mandate_personal_name.rb +0 -42
  791. data/lib/ingenico/connect/sdk/domain/mandates/mandate_redirect_data.rb +0 -18
  792. data/lib/ingenico/connect/sdk/domain/mandates/mandate_response.rb +0 -72
  793. data/lib/ingenico/connect/sdk/domain/mandates.rb +0 -5
  794. data/lib/ingenico/connect/sdk/domain/metadata/shopping_cart_extension.rb +0 -59
  795. data/lib/ingenico/connect/sdk/domain/metadata.rb +0 -1
  796. data/lib/ingenico/connect/sdk/domain/payment/abstract_bank_transfer_payment_method_specific_input.rb +0 -35
  797. data/lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb +0 -141
  798. data/lib/ingenico/connect/sdk/domain/payment/abstract_cash_payment_method_specific_input.rb +0 -18
  799. data/lib/ingenico/connect/sdk/domain/payment/abstract_e_invoice_payment_method_specific_input.rb +0 -35
  800. data/lib/ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output.rb +0 -35
  801. data/lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_method_specific_input.rb +0 -63
  802. data/lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_product4101_specific_input.rb +0 -18
  803. data/lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_product840_specific_input.rb +0 -35
  804. data/lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_method_specific_input.rb +0 -18
  805. data/lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_product771_specific_input.rb +0 -37
  806. data/lib/ingenico/connect/sdk/domain/payment/abstract_three_d_secure.rb +0 -97
  807. data/lib/ingenico/connect/sdk/domain/payment/account_funding_recipient.rb +0 -74
  808. data/lib/ingenico/connect/sdk/domain/payment/additional_order_input.rb +0 -111
  809. data/lib/ingenico/connect/sdk/domain/payment/address_personal.rb +0 -37
  810. data/lib/ingenico/connect/sdk/domain/payment/afr_name.rb +0 -42
  811. data/lib/ingenico/connect/sdk/domain/payment/amount_breakdown.rb +0 -42
  812. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_card_payment_method_specific_output.rb +0 -35
  813. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_direct_debit_payment_method_specific_input.rb +0 -18
  814. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_mobile_payment_method_specific_output.rb +0 -35
  815. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_non_sepa_direct_debit_payment_method_specific_input.rb +0 -18
  816. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_payment_method_specific_input.rb +0 -42
  817. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_request.rb +0 -62
  818. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_sepa_direct_debit_payment_method_specific_input.rb +0 -18
  819. data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_input.rb +0 -18
  820. data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_input_base.rb +0 -18
  821. data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_output.rb +0 -37
  822. data/lib/ingenico/connect/sdk/domain/payment/browser_data.rb +0 -77
  823. data/lib/ingenico/connect/sdk/domain/payment/cancel_approval_payment_response.rb +0 -37
  824. data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_card_payment_method_specific_output.rb +0 -35
  825. data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_mobile_payment_method_specific_output.rb +0 -35
  826. data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_response.rb +0 -55
  827. data/lib/ingenico/connect/sdk/domain/payment/capture_payment_request.rb +0 -42
  828. data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input.rb +0 -89
  829. data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb +0 -37
  830. data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_output.rb +0 -83
  831. data/lib/ingenico/connect/sdk/domain/payment/card_recurrence_details.rb +0 -49
  832. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input.rb +0 -93
  833. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input_base.rb +0 -18
  834. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_output.rb +0 -37
  835. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1503_specific_input.rb +0 -38
  836. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1504_specific_input.rb +0 -18
  837. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1521_specific_input.rb +0 -18
  838. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1522_specific_input.rb +0 -18
  839. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1523_specific_input.rb +0 -18
  840. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1524_specific_input.rb +0 -18
  841. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1526_specific_input.rb +0 -18
  842. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product_with_redirect_specific_input_base.rb +0 -35
  843. data/lib/ingenico/connect/sdk/domain/payment/complete_payment_card_payment_method_specific_input.rb +0 -37
  844. data/lib/ingenico/connect/sdk/domain/payment/complete_payment_request.rb +0 -55
  845. data/lib/ingenico/connect/sdk/domain/payment/complete_payment_response.rb +0 -18
  846. data/lib/ingenico/connect/sdk/domain/payment/contact_details.rb +0 -56
  847. data/lib/ingenico/connect/sdk/domain/payment/create_payment_request.rb +0 -143
  848. data/lib/ingenico/connect/sdk/domain/payment/create_payment_response.rb +0 -18
  849. data/lib/ingenico/connect/sdk/domain/payment/create_payment_result.rb +0 -55
  850. data/lib/ingenico/connect/sdk/domain/payment/customer.rb +0 -119
  851. data/lib/ingenico/connect/sdk/domain/payment/customer_account.rb +0 -118
  852. data/lib/ingenico/connect/sdk/domain/payment/customer_account_authentication.rb +0 -49
  853. data/lib/ingenico/connect/sdk/domain/payment/customer_approve_payment.rb +0 -35
  854. data/lib/ingenico/connect/sdk/domain/payment/customer_device.rb +0 -86
  855. data/lib/ingenico/connect/sdk/domain/payment/customer_payment_activity.rb +0 -49
  856. data/lib/ingenico/connect/sdk/domain/payment/decrypted_payment_data.rb +0 -86
  857. data/lib/ingenico/connect/sdk/domain/payment/device_fingerprint_details.rb +0 -42
  858. data/lib/ingenico/connect/sdk/domain/payment/device_render_options.rb +0 -55
  859. data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb +0 -44
  860. data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input_base.rb +0 -18
  861. data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_output.rb +0 -46
  862. data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_product9000_specific_input.rb +0 -44
  863. data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_product9000_specific_output.rb +0 -35
  864. data/lib/ingenico/connect/sdk/domain/payment/exemption_output.rb +0 -49
  865. data/lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb +0 -107
  866. data/lib/ingenico/connect/sdk/domain/payment/find_payments_response.rb +0 -61
  867. data/lib/ingenico/connect/sdk/domain/payment/g_pay_three_d_secure.rb +0 -65
  868. data/lib/ingenico/connect/sdk/domain/payment/gift_card_purchase.rb +0 -44
  869. data/lib/ingenico/connect/sdk/domain/payment/hosted_checkout_specific_output.rb +0 -42
  870. data/lib/ingenico/connect/sdk/domain/payment/installments.rb +0 -73
  871. data/lib/ingenico/connect/sdk/domain/payment/invoice_payment_method_specific_input.rb +0 -35
  872. data/lib/ingenico/connect/sdk/domain/payment/invoice_payment_method_specific_output.rb +0 -37
  873. data/lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb +0 -56
  874. data/lib/ingenico/connect/sdk/domain/payment/line_item.rb +0 -66
  875. data/lib/ingenico/connect/sdk/domain/payment/line_item_invoice_data.rb +0 -63
  876. data/lib/ingenico/connect/sdk/domain/payment/line_item_level3_interchange_information.rb +0 -84
  877. data/lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb +0 -74
  878. data/lib/ingenico/connect/sdk/domain/payment/merchant.rb +0 -58
  879. data/lib/ingenico/connect/sdk/domain/payment/merchant_action.rb +0 -93
  880. data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_data.rb +0 -42
  881. data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_input.rb +0 -81
  882. data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_output.rb +0 -69
  883. data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.rb +0 -44
  884. data/lib/ingenico/connect/sdk/domain/payment/mobile_three_d_secure_challenge_parameters.rb +0 -56
  885. data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_input.rb +0 -95
  886. data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_output.rb +0 -37
  887. data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_product705_specific_input.rb +0 -51
  888. data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_product730_specific_input.rb +0 -37
  889. data/lib/ingenico/connect/sdk/domain/payment/order.rb +0 -107
  890. data/lib/ingenico/connect/sdk/domain/payment/order_approve_payment.rb +0 -55
  891. data/lib/ingenico/connect/sdk/domain/payment/order_invoice_data.rb +0 -60
  892. data/lib/ingenico/connect/sdk/domain/payment/order_line_details.rb +0 -112
  893. data/lib/ingenico/connect/sdk/domain/payment/order_output.rb +0 -46
  894. data/lib/ingenico/connect/sdk/domain/payment/order_references.rb +0 -72
  895. data/lib/ingenico/connect/sdk/domain/payment/order_references_approve_payment.rb +0 -35
  896. data/lib/ingenico/connect/sdk/domain/payment/order_type_information.rb +0 -56
  897. data/lib/ingenico/connect/sdk/domain/payment/payment.rb +0 -62
  898. data/lib/ingenico/connect/sdk/domain/payment/payment_account_on_file.rb +0 -42
  899. data/lib/ingenico/connect/sdk/domain/payment/payment_approval_response.rb +0 -65
  900. data/lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb +0 -56
  901. data/lib/ingenico/connect/sdk/domain/payment/payment_creation_references.rb +0 -42
  902. data/lib/ingenico/connect/sdk/domain/payment/payment_error_response.rb +0 -56
  903. data/lib/ingenico/connect/sdk/domain/payment/payment_output.rb +0 -137
  904. data/lib/ingenico/connect/sdk/domain/payment/payment_product3201_specific_output.rb +0 -37
  905. data/lib/ingenico/connect/sdk/domain/payment/payment_product771_specific_output.rb +0 -35
  906. data/lib/ingenico/connect/sdk/domain/payment/payment_product806_specific_output.rb +0 -46
  907. data/lib/ingenico/connect/sdk/domain/payment/payment_product836_specific_output.rb +0 -35
  908. data/lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb +0 -98
  909. data/lib/ingenico/connect/sdk/domain/payment/payment_product840_specific_output.rb +0 -63
  910. data/lib/ingenico/connect/sdk/domain/payment/payment_product863_third_party_data.rb +0 -77
  911. data/lib/ingenico/connect/sdk/domain/payment/payment_references.rb +0 -77
  912. data/lib/ingenico/connect/sdk/domain/payment/payment_response.rb +0 -18
  913. data/lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb +0 -49
  914. data/lib/ingenico/connect/sdk/domain/payment/personal_identification.rb +0 -49
  915. data/lib/ingenico/connect/sdk/domain/payment/personal_information.rb +0 -60
  916. data/lib/ingenico/connect/sdk/domain/payment/personal_name.rb +0 -35
  917. data/lib/ingenico/connect/sdk/domain/payment/protection_eligibility.rb +0 -42
  918. data/lib/ingenico/connect/sdk/domain/payment/redirect_data.rb +0 -18
  919. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input.rb +0 -125
  920. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb +0 -46
  921. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb +0 -105
  922. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product4101_specific_input.rb +0 -49
  923. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product4101_specific_input_base.rb +0 -35
  924. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product809_specific_input.rb +0 -44
  925. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product816_specific_input.rb +0 -37
  926. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input.rb +0 -44
  927. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input_base.rb +0 -18
  928. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product861_specific_input.rb +0 -35
  929. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product863_specific_input.rb +0 -42
  930. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product869_specific_input.rb +0 -49
  931. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product882_specific_input.rb +0 -35
  932. data/lib/ingenico/connect/sdk/domain/payment/redirection_data.rb +0 -42
  933. data/lib/ingenico/connect/sdk/domain/payment/refund_bank_method_specific_output.rb +0 -18
  934. data/lib/ingenico/connect/sdk/domain/payment/refund_card_method_specific_output.rb +0 -44
  935. data/lib/ingenico/connect/sdk/domain/payment/refund_cash_method_specific_output.rb +0 -18
  936. data/lib/ingenico/connect/sdk/domain/payment/refund_e_invoice_method_specific_output.rb +0 -18
  937. data/lib/ingenico/connect/sdk/domain/payment/refund_e_wallet_method_specific_output.rb +0 -37
  938. data/lib/ingenico/connect/sdk/domain/payment/refund_method_specific_output.rb +0 -49
  939. data/lib/ingenico/connect/sdk/domain/payment/refund_mobile_method_specific_output.rb +0 -35
  940. data/lib/ingenico/connect/sdk/domain/payment/refund_output.rb +0 -96
  941. data/lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb +0 -49
  942. data/lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_specific_output.rb +0 -37
  943. data/lib/ingenico/connect/sdk/domain/payment/scheme_token_data.rb +0 -63
  944. data/lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb +0 -79
  945. data/lib/ingenico/connect/sdk/domain/payment/sdk_data_output.rb +0 -35
  946. data/lib/ingenico/connect/sdk/domain/payment/seller.rb +0 -114
  947. data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb +0 -86
  948. data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input_base.rb +0 -37
  949. data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_output.rb +0 -53
  950. data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb +0 -44
  951. data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input_base.rb +0 -44
  952. data/lib/ingenico/connect/sdk/domain/payment/shipping.rb +0 -86
  953. data/lib/ingenico/connect/sdk/domain/payment/shopping_cart.rb +0 -82
  954. data/lib/ingenico/connect/sdk/domain/payment/third_party_data.rb +0 -37
  955. data/lib/ingenico/connect/sdk/domain/payment/third_party_status_response.rb +0 -35
  956. data/lib/ingenico/connect/sdk/domain/payment/three_d_secure.rb +0 -46
  957. data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_base.rb +0 -18
  958. data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_data.rb +0 -49
  959. data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb +0 -127
  960. data/lib/ingenico/connect/sdk/domain/payment/tokenize_payment_request.rb +0 -35
  961. data/lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb +0 -56
  962. data/lib/ingenico/connect/sdk/domain/payment.rb +0 -5
  963. data/lib/ingenico/connect/sdk/domain/payout/abstract_payout_method_specific_input.rb +0 -18
  964. data/lib/ingenico/connect/sdk/domain/payout/approve_payout_request.rb +0 -35
  965. data/lib/ingenico/connect/sdk/domain/payout/bank_transfer_payout_method_specific_input.rb +0 -78
  966. data/lib/ingenico/connect/sdk/domain/payout/card_payout_method_specific_input.rb +0 -60
  967. data/lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb +0 -146
  968. data/lib/ingenico/connect/sdk/domain/payout/find_payouts_response.rb +0 -61
  969. data/lib/ingenico/connect/sdk/domain/payout/payout_customer.rb +0 -71
  970. data/lib/ingenico/connect/sdk/domain/payout/payout_details.rb +0 -55
  971. data/lib/ingenico/connect/sdk/domain/payout/payout_error_response.rb +0 -56
  972. data/lib/ingenico/connect/sdk/domain/payout/payout_merchant.rb +0 -35
  973. data/lib/ingenico/connect/sdk/domain/payout/payout_recipient.rb +0 -49
  974. data/lib/ingenico/connect/sdk/domain/payout/payout_references.rb +0 -49
  975. data/lib/ingenico/connect/sdk/domain/payout/payout_response.rb +0 -18
  976. data/lib/ingenico/connect/sdk/domain/payout/payout_result.rb +0 -53
  977. data/lib/ingenico/connect/sdk/domain/payout.rb +0 -5
  978. data/lib/ingenico/connect/sdk/domain/product/abstract_indicator.rb +0 -42
  979. data/lib/ingenico/connect/sdk/domain/product/account_on_file.rb +0 -63
  980. data/lib/ingenico/connect/sdk/domain/product/account_on_file_attribute.rb +0 -42
  981. data/lib/ingenico/connect/sdk/domain/product/account_on_file_display_hints.rb +0 -47
  982. data/lib/ingenico/connect/sdk/domain/product/authentication_indicator.rb +0 -18
  983. data/lib/ingenico/connect/sdk/domain/product/boleto_bancario_requiredness_validator.rb +0 -35
  984. data/lib/ingenico/connect/sdk/domain/product/create_payment_product_session_request.rb +0 -37
  985. data/lib/ingenico/connect/sdk/domain/product/create_payment_product_session_response.rb +0 -37
  986. data/lib/ingenico/connect/sdk/domain/product/device_fingerprint_request.rb +0 -35
  987. data/lib/ingenico/connect/sdk/domain/product/device_fingerprint_response.rb +0 -42
  988. data/lib/ingenico/connect/sdk/domain/product/directory.rb +0 -40
  989. data/lib/ingenico/connect/sdk/domain/product/directory_entry.rb +0 -60
  990. data/lib/ingenico/connect/sdk/domain/product/empty_validator.rb +0 -18
  991. data/lib/ingenico/connect/sdk/domain/product/fixed_list_validator.rb +0 -39
  992. data/lib/ingenico/connect/sdk/domain/product/get_customer_details_request.rb +0 -47
  993. data/lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb +0 -98
  994. data/lib/ingenico/connect/sdk/domain/product/label_template_element.rb +0 -42
  995. data/lib/ingenico/connect/sdk/domain/product/length_validator.rb +0 -42
  996. data/lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb +0 -49
  997. data/lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_output.rb +0 -35
  998. data/lib/ingenico/connect/sdk/domain/product/payment_product.rb +0 -223
  999. data/lib/ingenico/connect/sdk/domain/product/payment_product302_specific_data.rb +0 -39
  1000. data/lib/ingenico/connect/sdk/domain/product/payment_product320_specific_data.rb +0 -46
  1001. data/lib/ingenico/connect/sdk/domain/product/payment_product863_specific_data.rb +0 -39
  1002. data/lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb +0 -49
  1003. data/lib/ingenico/connect/sdk/domain/product/payment_product_field.rb +0 -67
  1004. data/lib/ingenico/connect/sdk/domain/product/payment_product_field_data_restrictions.rb +0 -44
  1005. data/lib/ingenico/connect/sdk/domain/product/payment_product_field_display_element.rb +0 -56
  1006. data/lib/ingenico/connect/sdk/domain/product/payment_product_field_display_hints.rb +0 -102
  1007. data/lib/ingenico/connect/sdk/domain/product/payment_product_field_form_element.rb +0 -47
  1008. data/lib/ingenico/connect/sdk/domain/product/payment_product_field_tooltip.rb +0 -42
  1009. data/lib/ingenico/connect/sdk/domain/product/payment_product_field_validators.rb +0 -122
  1010. data/lib/ingenico/connect/sdk/domain/product/payment_product_group.rb +0 -82
  1011. data/lib/ingenico/connect/sdk/domain/product/payment_product_group_response.rb +0 -18
  1012. data/lib/ingenico/connect/sdk/domain/product/payment_product_groups.rb +0 -40
  1013. data/lib/ingenico/connect/sdk/domain/product/payment_product_networks_response.rb +0 -39
  1014. data/lib/ingenico/connect/sdk/domain/product/payment_product_response.rb +0 -18
  1015. data/lib/ingenico/connect/sdk/domain/product/payment_products.rb +0 -40
  1016. data/lib/ingenico/connect/sdk/domain/product/range_validator.rb +0 -42
  1017. data/lib/ingenico/connect/sdk/domain/product/regular_expression_validator.rb +0 -35
  1018. data/lib/ingenico/connect/sdk/domain/product/value_mapping_element.rb +0 -56
  1019. data/lib/ingenico/connect/sdk/domain/product.rb +0 -5
  1020. data/lib/ingenico/connect/sdk/domain/refund/approve_refund_request.rb +0 -35
  1021. data/lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb +0 -49
  1022. data/lib/ingenico/connect/sdk/domain/refund/bank_refund_method_specific_input.rb +0 -53
  1023. data/lib/ingenico/connect/sdk/domain/refund/find_refunds_response.rb +0 -61
  1024. data/lib/ingenico/connect/sdk/domain/refund/refund_customer.rb +0 -62
  1025. data/lib/ingenico/connect/sdk/domain/refund/refund_error_response.rb +0 -56
  1026. data/lib/ingenico/connect/sdk/domain/refund/refund_references.rb +0 -35
  1027. data/lib/ingenico/connect/sdk/domain/refund/refund_request.rb +0 -71
  1028. data/lib/ingenico/connect/sdk/domain/refund/refund_response.rb +0 -18
  1029. data/lib/ingenico/connect/sdk/domain/refund/refund_result.rb +0 -53
  1030. data/lib/ingenico/connect/sdk/domain/refund/refunds_response.rb +0 -40
  1031. data/lib/ingenico/connect/sdk/domain/refund.rb +0 -5
  1032. data/lib/ingenico/connect/sdk/domain/riskassessments/contact_details_risk_assessment.rb +0 -35
  1033. data/lib/ingenico/connect/sdk/domain/riskassessments/customer_account_risk_assessment.rb +0 -42
  1034. data/lib/ingenico/connect/sdk/domain/riskassessments/customer_device_risk_assessment.rb +0 -42
  1035. data/lib/ingenico/connect/sdk/domain/riskassessments/customer_risk_assessment.rb +0 -105
  1036. data/lib/ingenico/connect/sdk/domain/riskassessments/merchant_risk_assessment.rb +0 -35
  1037. data/lib/ingenico/connect/sdk/domain/riskassessments/order_risk_assessment.rb +0 -64
  1038. data/lib/ingenico/connect/sdk/domain/riskassessments/personal_information_risk_assessment.rb +0 -37
  1039. data/lib/ingenico/connect/sdk/domain/riskassessments/personal_name_risk_assessment.rb +0 -18
  1040. data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment.rb +0 -62
  1041. data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_bank_account.rb +0 -46
  1042. data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_card.rb +0 -37
  1043. data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_response.rb +0 -40
  1044. data/lib/ingenico/connect/sdk/domain/riskassessments/shipping_risk_assessment.rb +0 -51
  1045. data/lib/ingenico/connect/sdk/domain/riskassessments.rb +0 -5
  1046. data/lib/ingenico/connect/sdk/domain/services/bank_data.rb +0 -56
  1047. data/lib/ingenico/connect/sdk/domain/services/bank_details.rb +0 -46
  1048. data/lib/ingenico/connect/sdk/domain/services/bank_details_request.rb +0 -18
  1049. data/lib/ingenico/connect/sdk/domain/services/bank_details_response.rb +0 -64
  1050. data/lib/ingenico/connect/sdk/domain/services/convert_amount.rb +0 -35
  1051. data/lib/ingenico/connect/sdk/domain/services/get_iin_details_request.rb +0 -44
  1052. data/lib/ingenico/connect/sdk/domain/services/get_iin_details_response.rb +0 -61
  1053. data/lib/ingenico/connect/sdk/domain/services/get_privacy_policy_response.rb +0 -35
  1054. data/lib/ingenico/connect/sdk/domain/services/iin_detail.rb +0 -42
  1055. data/lib/ingenico/connect/sdk/domain/services/payment_context.rb +0 -58
  1056. data/lib/ingenico/connect/sdk/domain/services/swift.rb +0 -98
  1057. data/lib/ingenico/connect/sdk/domain/services/test_connection.rb +0 -35
  1058. data/lib/ingenico/connect/sdk/domain/services.rb +0 -5
  1059. data/lib/ingenico/connect/sdk/domain/sessions/payment_product_filters_client_session.rb +0 -45
  1060. data/lib/ingenico/connect/sdk/domain/sessions/session_request.rb +0 -48
  1061. data/lib/ingenico/connect/sdk/domain/sessions/session_response.rb +0 -74
  1062. data/lib/ingenico/connect/sdk/domain/sessions.rb +0 -5
  1063. data/lib/ingenico/connect/sdk/domain/token/abstract_token.rb +0 -35
  1064. data/lib/ingenico/connect/sdk/domain/token/approve_token_request.rb +0 -18
  1065. data/lib/ingenico/connect/sdk/domain/token/contact_details_token.rb +0 -18
  1066. data/lib/ingenico/connect/sdk/domain/token/create_token_request.rb +0 -78
  1067. data/lib/ingenico/connect/sdk/domain/token/create_token_response.rb +0 -49
  1068. data/lib/ingenico/connect/sdk/domain/token/creditor.rb +0 -105
  1069. data/lib/ingenico/connect/sdk/domain/token/customer_token.rb +0 -46
  1070. data/lib/ingenico/connect/sdk/domain/token/customer_token_with_contact_details.rb +0 -37
  1071. data/lib/ingenico/connect/sdk/domain/token/debtor.rb +0 -105
  1072. data/lib/ingenico/connect/sdk/domain/token/mandate_approval.rb +0 -49
  1073. data/lib/ingenico/connect/sdk/domain/token/mandate_non_sepa_direct_debit.rb +0 -46
  1074. data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit.rb +0 -37
  1075. data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit_with_mandate_id.rb +0 -35
  1076. data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit_without_creditor.rb +0 -76
  1077. data/lib/ingenico/connect/sdk/domain/token/personal_information_token.rb +0 -37
  1078. data/lib/ingenico/connect/sdk/domain/token/personal_name_token.rb +0 -18
  1079. data/lib/ingenico/connect/sdk/domain/token/token_card.rb +0 -46
  1080. data/lib/ingenico/connect/sdk/domain/token/token_card_data.rb +0 -51
  1081. data/lib/ingenico/connect/sdk/domain/token/token_e_wallet.rb +0 -46
  1082. data/lib/ingenico/connect/sdk/domain/token/token_e_wallet_data.rb +0 -35
  1083. data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit.rb +0 -46
  1084. data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit_payment_product705_specific_data.rb +0 -44
  1085. data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit_payment_product730_specific_data.rb +0 -37
  1086. data/lib/ingenico/connect/sdk/domain/token/token_response.rb +0 -85
  1087. data/lib/ingenico/connect/sdk/domain/token/token_sepa_direct_debit.rb +0 -46
  1088. data/lib/ingenico/connect/sdk/domain/token/token_sepa_direct_debit_without_creditor.rb +0 -46
  1089. data/lib/ingenico/connect/sdk/domain/token/update_token_request.rb +0 -71
  1090. data/lib/ingenico/connect/sdk/domain/token.rb +0 -5
  1091. data/lib/ingenico/connect/sdk/endpoint_configuration.rb +0 -136
  1092. data/lib/ingenico/connect/sdk/exceptions.rb +0 -1
  1093. data/lib/ingenico/connect/sdk/factory.rb +0 -213
  1094. data/lib/ingenico/connect/sdk/global_collect_exception.rb +0 -20
  1095. data/lib/ingenico/connect/sdk/idempotence_exception.rb +0 -28
  1096. data/lib/ingenico/connect/sdk/logging/communicator_logger.rb +0 -26
  1097. data/lib/ingenico/connect/sdk/logging/log_message_builder.rb +0 -88
  1098. data/lib/ingenico/connect/sdk/logging/logging_capable.rb +0 -19
  1099. data/lib/ingenico/connect/sdk/logging/logging_util.rb +0 -320
  1100. data/lib/ingenico/connect/sdk/logging/obfuscation/body_obfuscator.rb +0 -102
  1101. data/lib/ingenico/connect/sdk/logging/obfuscation/header_obfuscator.rb +0 -56
  1102. data/lib/ingenico/connect/sdk/logging/obfuscation/obfuscation_capable.rb +0 -23
  1103. data/lib/ingenico/connect/sdk/logging/obfuscation/obfuscation_rule.rb +0 -49
  1104. data/lib/ingenico/connect/sdk/logging/request_log_message_builder.rb +0 -52
  1105. data/lib/ingenico/connect/sdk/logging/response_log_message_builder.rb +0 -43
  1106. data/lib/ingenico/connect/sdk/logging/ruby_communicator_logger.rb +0 -63
  1107. data/lib/ingenico/connect/sdk/logging/stdout_communicator_logger.rb +0 -38
  1108. data/lib/ingenico/connect/sdk/marshaller.rb +0 -27
  1109. data/lib/ingenico/connect/sdk/marshaller_syntax_exception.rb +0 -9
  1110. data/lib/ingenico/connect/sdk/merchant/captures/captures_client.rb +0 -93
  1111. data/lib/ingenico/connect/sdk/merchant/captures.rb +0 -5
  1112. data/lib/ingenico/connect/sdk/merchant/disputes/disputes_client.rb +0 -153
  1113. data/lib/ingenico/connect/sdk/merchant/disputes/upload_file_request.rb +0 -30
  1114. data/lib/ingenico/connect/sdk/merchant/disputes.rb +0 -5
  1115. data/lib/ingenico/connect/sdk/merchant/files/files_client.rb +0 -58
  1116. data/lib/ingenico/connect/sdk/merchant/files.rb +0 -5
  1117. data/lib/ingenico/connect/sdk/merchant/hostedcheckouts/hostedcheckouts_client.rb +0 -116
  1118. data/lib/ingenico/connect/sdk/merchant/hostedcheckouts.rb +0 -5
  1119. data/lib/ingenico/connect/sdk/merchant/hostedmandatemanagements/hostedmandatemanagements_client.rb +0 -87
  1120. data/lib/ingenico/connect/sdk/merchant/hostedmandatemanagements.rb +0 -5
  1121. data/lib/ingenico/connect/sdk/merchant/installments/installments_client.rb +0 -56
  1122. data/lib/ingenico/connect/sdk/merchant/installments.rb +0 -5
  1123. data/lib/ingenico/connect/sdk/merchant/mandates/mandates_client.rb +0 -212
  1124. data/lib/ingenico/connect/sdk/merchant/mandates.rb +0 -5
  1125. data/lib/ingenico/connect/sdk/merchant/merchant_client.rb +0 -135
  1126. data/lib/ingenico/connect/sdk/merchant/payments/find_payments_params.rb +0 -46
  1127. data/lib/ingenico/connect/sdk/merchant/payments/payments_client.rb +0 -567
  1128. data/lib/ingenico/connect/sdk/merchant/payments.rb +0 -5
  1129. data/lib/ingenico/connect/sdk/merchant/payouts/find_payouts_params.rb +0 -42
  1130. data/lib/ingenico/connect/sdk/merchant/payouts/payouts_client.rb +0 -208
  1131. data/lib/ingenico/connect/sdk/merchant/payouts.rb +0 -5
  1132. data/lib/ingenico/connect/sdk/merchant/productgroups/find_productgroups_params.rb +0 -65
  1133. data/lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb +0 -65
  1134. data/lib/ingenico/connect/sdk/merchant/productgroups/productgroups_client.rb +0 -120
  1135. data/lib/ingenico/connect/sdk/merchant/productgroups.rb +0 -5
  1136. data/lib/ingenico/connect/sdk/merchant/products/directory_params.rb +0 -34
  1137. data/lib/ingenico/connect/sdk/merchant/products/find_products_params.rb +0 -65
  1138. data/lib/ingenico/connect/sdk/merchant/products/get_product_params.rb +0 -69
  1139. data/lib/ingenico/connect/sdk/merchant/products/networks_params.rb +0 -42
  1140. data/lib/ingenico/connect/sdk/merchant/products/products_client.rb +0 -250
  1141. data/lib/ingenico/connect/sdk/merchant/products.rb +0 -5
  1142. data/lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb +0 -46
  1143. data/lib/ingenico/connect/sdk/merchant/refunds/refunds_client.rb +0 -177
  1144. data/lib/ingenico/connect/sdk/merchant/refunds.rb +0 -5
  1145. data/lib/ingenico/connect/sdk/merchant/riskassessments/riskassessments_client.rb +0 -84
  1146. data/lib/ingenico/connect/sdk/merchant/riskassessments.rb +0 -5
  1147. data/lib/ingenico/connect/sdk/merchant/services/convert_amount_params.rb +0 -38
  1148. data/lib/ingenico/connect/sdk/merchant/services/privacypolicy_params.rb +0 -34
  1149. data/lib/ingenico/connect/sdk/merchant/services/services_client.rb +0 -168
  1150. data/lib/ingenico/connect/sdk/merchant/services.rb +0 -5
  1151. data/lib/ingenico/connect/sdk/merchant/sessions/sessions_client.rb +0 -56
  1152. data/lib/ingenico/connect/sdk/merchant/sessions.rb +0 -5
  1153. data/lib/ingenico/connect/sdk/merchant/tokens/delete_token_params.rb +0 -30
  1154. data/lib/ingenico/connect/sdk/merchant/tokens/tokens_client.rb +0 -179
  1155. data/lib/ingenico/connect/sdk/merchant/tokens.rb +0 -5
  1156. data/lib/ingenico/connect/sdk/merchant.rb +0 -5
  1157. data/lib/ingenico/connect/sdk/meta_data_provider.rb +0 -156
  1158. data/lib/ingenico/connect/sdk/modules.rb +0 -187
  1159. data/lib/ingenico/connect/sdk/multipart_form_data_object.rb +0 -47
  1160. data/lib/ingenico/connect/sdk/multipart_form_data_request.rb +0 -13
  1161. data/lib/ingenico/connect/sdk/not_found_exception.rb +0 -19
  1162. data/lib/ingenico/connect/sdk/param_request.rb +0 -14
  1163. data/lib/ingenico/connect/sdk/pooled_connection.rb +0 -26
  1164. data/lib/ingenico/connect/sdk/proxy_configuration.rb +0 -76
  1165. data/lib/ingenico/connect/sdk/reference_exception.rb +0 -19
  1166. data/lib/ingenico/connect/sdk/request_header.rb +0 -64
  1167. data/lib/ingenico/connect/sdk/request_param.rb +0 -28
  1168. data/lib/ingenico/connect/sdk/response_exception.rb +0 -56
  1169. data/lib/ingenico/connect/sdk/response_header.rb +0 -78
  1170. data/lib/ingenico/connect/sdk/session.rb +0 -43
  1171. data/lib/ingenico/connect/sdk/uploadable_file.rb +0 -33
  1172. data/lib/ingenico/connect/sdk/validation_exception.rb +0 -19
  1173. data/lib/ingenico/connect/sdk/webhooks/api_version_mismatch_exception.rb +0 -24
  1174. data/lib/ingenico/connect/sdk/webhooks/in_memory_secret_key_store.rb +0 -61
  1175. data/lib/ingenico/connect/sdk/webhooks/secret_key_not_available_exception.rb +0 -23
  1176. data/lib/ingenico/connect/sdk/webhooks/secret_key_store.rb +0 -20
  1177. data/lib/ingenico/connect/sdk/webhooks/signature_validation_exception.rb +0 -22
  1178. data/lib/ingenico/connect/sdk/webhooks/signature_validator.rb +0 -83
  1179. data/lib/ingenico/connect/sdk/webhooks/webhooks.rb +0 -26
  1180. data/lib/ingenico/connect/sdk/webhooks/webhooks_event.rb +0 -69
  1181. data/lib/ingenico/connect/sdk/webhooks/webhooks_helper.rb +0 -48
  1182. data/lib/ingenico/connect/sdk/webhooks/webhooks_helper_builder.rb +0 -30
  1183. data/spec/lib/defaultimpl/default_authenticator_spec.rb +0 -74
  1184. data/spec/lib/defaultimpl/default_connection_idempotence_spec.rb +0 -141
  1185. data/spec/lib/defaultimpl/default_connection_logger_spec.rb +0 -569
  1186. data/spec/lib/defaultimpl/default_connection_spec.rb +0 -351
  1187. data/spec/lib/defaultimpl/default_marshaller_spec.rb +0 -36
  1188. data/spec/lib/logging/header_obfuscator_spec.rb +0 -51
  1189. data/spec/lib/logging/legacy_logging_spec.rb +0 -178
  1190. data/spec/lib/logging/logging_util_spec.rb +0 -150
  1191. data/spec/lib/logging/obfuscator_spec.rb +0 -52
  1192. data/spec/lib/logging/value_obfuscator_spec.rb +0 -107
  1193. data/spec/lib/meta_data_provider_spec.rb +0 -93
  1194. /data/lib/{ingenico → worldline}/connect/sdk/domain.rb +0 -0
  1195. /data/lib/{ingenico → worldline}/connect/sdk/logging/obfuscation.rb +0 -0
  1196. /data/lib/{ingenico → worldline}/connect/sdk/logging.rb +0 -0
  1197. /data/lib/{ingenico → worldline}/connect/sdk/webhooks.rb +0 -0
  1198. /data/lib/{ingenico → worldline}/connect/sdk.rb +0 -0
  1199. /data/spec/fixtures/resources/{defaultimpl → communication}/convertAmount.json +0 -0
  1200. /data/spec/fixtures/resources/{defaultimpl → communication}/createPayment.failure.invalidCardNumber.json +0 -0
  1201. /data/spec/fixtures/resources/{defaultimpl → communication}/createPayment.failure.rejected.json +0 -0
  1202. /data/spec/fixtures/resources/{defaultimpl → communication}/createPayment.json +0 -0
  1203. /data/spec/fixtures/resources/{defaultimpl → communication}/createPayment.unicode.json +0 -0
  1204. /data/spec/fixtures/resources/{defaultimpl → communication}/idempotence_duplicate_failure.json +0 -0
  1205. /data/spec/fixtures/resources/{defaultimpl → communication}/idempotence_rejected.json +0 -0
  1206. /data/spec/fixtures/resources/{defaultimpl → communication}/idempotence_success.json +0 -0
  1207. /data/spec/fixtures/resources/{defaultimpl → communication}/notFound.html +0 -0
  1208. /data/spec/fixtures/resources/{defaultimpl → communication}/testConnection.json +0 -0
  1209. /data/spec/fixtures/resources/{defaultimpl → communication}/unknownServerError.json +0 -0
@@ -1,427 +0,0 @@
1
- require 'httpclient'
2
- require 'securerandom'
3
- require 'uri'
4
- require 'ingenico/connect/sdk/communication_exception'
5
- require 'ingenico/connect/sdk/logging/obfuscation/body_obfuscator'
6
- require 'ingenico/connect/sdk/logging/obfuscation/header_obfuscator'
7
- require 'ingenico/connect/sdk/logging/obfuscation/obfuscation_capable'
8
- require 'ingenico/connect/sdk/logging/request_log_message_builder'
9
- require 'ingenico/connect/sdk/logging/response_log_message_builder'
10
- require 'ingenico/connect/sdk/pooled_connection'
11
- require 'ingenico/connect/sdk/multipart_form_data_object'
12
- require 'ingenico/connect/sdk/response_header'
13
-
14
- # @private :nodoc: this is not our class
15
- module RefineHTTPClient
16
- refine HTTPClient do
17
- # (monkey) patch to gain access to the session pool size in HTTPClient
18
- def session_count
19
- sess_pool = @session_manager.instance_variable_get(:@sess_pool)
20
- sess_pool.size
21
- end
22
- end
23
- end
24
-
25
- module Ingenico
26
- module Connect
27
- module SDK
28
- module DefaultImpl
29
- class DefaultConnection < PooledConnection
30
- include Ingenico::Connect::SDK::Logging::Obfuscation::ObfuscationCapable
31
- using RefineHTTPClient
32
-
33
- CONTENT_TYPE = 'Content-Type'.freeze
34
- JSON_CONTENT_TYPE = 'application/json'.freeze
35
-
36
- # @param args [Hash] the parameters to initialize the connection with
37
- # @option args [Integer] :connect_timeout connection timeout in seconds.
38
- # @option args [Integer] :socket_timeout socket timeout in seconds.
39
- # @option args [Integer] :max_connections number of connections kept alive in the thread pool.
40
- # Uses {Ingenico::Connect::SDK::CommunicatorConfiguration.DEFAULT_MAX_CONNECTIONS} if not given.
41
- # @option args [Ingenico::Connect::SDK::ProxyConfiguration] :proxy_configuration object that stores the proxy to use.
42
- # If not given the system default proxy is used;
43
- # if there is no system default proxy set either, no proxy is used.
44
- def initialize(args)
45
- raise ArgumentError unless args.is_a? Hash
46
-
47
- # Set timeouts to nil if they are negative
48
- @connect_timeout = args[:connect_timeout]
49
- @connect_timeout = nil unless @connect_timeout.nil? || @connect_timeout > 0
50
- @socket_timeout = args[:socket_timeout]
51
- @socket_timeout = nil unless @socket_timeout.nil? || @socket_timeout > 0
52
- @max_connections = args[:max_connections] || CommunicatorConfiguration.DEFAULT_MAX_CONNECTIONS
53
- @proxy_configuration = args[:proxy_configuration]
54
-
55
- # HTTPClient provides the following features:
56
- # 1) thread safe, an instance can be used by multiple threads without
57
- # explicit synchronization
58
- # 2) use persistent connection if HTTP 1.1 is supported. The connection
59
- # will be left open until explicitly closed or keep_alive_timeout
60
- # 3) a built-in connection pool with no limit for max connections
61
- @http_client = create_http_client
62
- @http_client.connect_timeout = @connect_timeout
63
- @http_client.send_timeout = @socket_timeout
64
- @http_client.receive_timeout = @socket_timeout
65
-
66
- @body_obfuscator = Ingenico::Connect::SDK::Logging::Obfuscation::BodyObfuscator.default_obfuscator
67
- @header_obfuscator = Ingenico::Connect::SDK::Logging::Obfuscation::HeaderObfuscator.default_obfuscator
68
- end
69
-
70
- private
71
-
72
- # Create a HTTPClient instance that uses @proxy_configuration or the system proxy if @proxy_configuration is not set
73
- def create_http_client
74
- if @proxy_configuration
75
- httpclient = HTTPClient.new(@proxy_configuration.proxy_uri)
76
- httpclient.set_proxy_auth(@proxy_configuration.username, @proxy_configuration.password)
77
- httpclient.force_basic_auth = true unless @proxy_configuration.username.nil? || @proxy_configuration.password.nil?
78
- httpclient
79
- else
80
- # use system settings
81
- proxy_string = ENV['https_proxy'] || ENV['http_proxy']
82
- # proxy string format = 'http://username:password@hostname:port'
83
- proxy_string =~ %r{https?//(?<username>[^:]):(?<password>[^@])@.*}
84
- username = Regexp.last_match(1)
85
- password = Regexp.last_match(2)
86
- httpclient = HTTPClient.new(proxy_string)
87
- httpclient.set_proxy_auth(username, password) unless username.nil? || password.nil?
88
- httpclient.force_basic_auth = true unless username.nil? || password.nil?
89
- httpclient
90
- end
91
- end
92
-
93
- public
94
-
95
- # Closes all connections idle for longer than _idle_time_ seconds.
96
- # In addition, the keep_alive_timeout is set to _idle_time_
97
- # so any future connections idle for longer than _idle_time_ seconds will also be closed.
98
- def close_idle_connections(idle_time)
99
- # in sec
100
- @http_client.keep_alive_timeout = idle_time # set timeout value
101
- close_expired_connections
102
- end
103
-
104
- # HTTPClient automatically closes expired connections so _close_expired_connections_ is a no-operation.
105
- def close_expired_connections
106
- # By default the keep alive timeout is 15 sec, which is the HTTP 1.1
107
- # standard. To change the value, use keep_alive_timeout= method
108
- # do nothing, handled by HTTPClient
109
- end
110
-
111
- # Frees all networking resources used.
112
- def close
113
- @http_client.reset_all
114
- end
115
-
116
- # Returns the number of open connections
117
- def session_count
118
- @http_client.session_count
119
- end
120
-
121
- # Performs a GET request to the Ingenico ePayments platform
122
- # @see request
123
- def get(uri, request_headers)
124
- request('get', uri, request_headers) do |response_status_code, response_headers, response_body|
125
- yield response_status_code, response_headers, response_body
126
- end
127
- end
128
-
129
- # Performs a DELETE request to the Ingenico ePayments platform
130
- # @see request
131
- def delete(uri, request_headers)
132
- request('delete', uri, request_headers) do |response_status_code, response_headers, response_body|
133
- yield response_status_code, response_headers, response_body
134
- end
135
- end
136
-
137
- # Performs a POST request to the Ingenico ePayments platform
138
- # @see request
139
- def post(uri, request_headers, body)
140
- request('post', uri, request_headers, body) do |response_status_code, response_headers, response_body|
141
- yield response_status_code, response_headers, response_body
142
- end
143
- end
144
-
145
- # Performs a PUT request to the Ingenico ePayments platform
146
- # @see request
147
- def put(uri, request_headers, body)
148
- request('put', uri, request_headers, body) do |response_status_code, response_headers, response_body|
149
- yield response_status_code, response_headers, response_body
150
- end
151
- end
152
-
153
- # Performs a HTTP request and yields the response as the status code, headers and body.
154
- # Also ensures the request is logged when sent and its response is logged when received.
155
- #
156
- # @param method [String] 'GET', 'DELETE', 'POST' or 'PUT' depending on the HTTP method being used.
157
- # @param uri [URI::HTTP] full URI of the location the request is targeted at, including query parameters.
158
- # @param request_headers [Array<Ingenico::Connect::SDK::RequestHeader>] list of headers that should be used as HTTP headers in the request.
159
- # @param body [String, Ingenico::Connect::SDK::MultipartFormDataObject] request body.
160
- # @yield (Integer, Array<Ingenico::Connect::SDK::ResponseHeader>, IO) The status code, headers and body of the response.
161
- # @raise [Ingenico::Connect::SDK::CommunicationException] when communication with the Ingenico ePayments platform was not successful.
162
- def request(method, uri, request_headers, body = nil)
163
- request_headers = convert_from_sdk_headers(request_headers)
164
- request_id = SecureRandom.uuid
165
- content_type = request_headers[CONTENT_TYPE]
166
-
167
- info = { headers: request_headers, content_type: content_type }
168
- info[:body] = body unless body.nil?
169
-
170
- log_request(request_id, method.upcase, uri, info)
171
-
172
- start_time = Time.now
173
- begin
174
- response_headers = nil
175
- response_status_code = nil
176
- response_content_type = nil
177
- response_body = ''
178
-
179
- if body.is_a? Ingenico::Connect::SDK::MultipartFormDataObject
180
- multipart_request(method, uri, request_headers, body) do |status_code, headers, r_content_type, r_body|
181
- response_headers = headers
182
- response_status_code = status_code
183
- response_content_type = r_content_type
184
- unless binary_content_type? response_content_type
185
- response_body = r_body.read.force_encoding('UTF-8')
186
- r_body = StringIO.new(response_body)
187
- end
188
-
189
- yield status_code, headers, r_body
190
- end
191
- else
192
- raw_request(method, uri, request_headers, body) do |status_code, headers, r_content_type, r_body|
193
- response_headers = headers
194
- response_status_code = status_code
195
- response_content_type = r_content_type
196
- unless binary_content_type? response_content_type
197
- response_body = r_body.read.force_encoding('UTF-8')
198
- r_body = StringIO.new(response_body)
199
- end
200
-
201
- yield status_code, headers, r_body
202
- end
203
- end
204
-
205
- log_response(request_id, response_status_code, start_time,
206
- headers: response_headers, body: response_body,
207
- content_type: response_content_type)
208
- rescue HTTPClient::TimeoutError => e
209
- log_error(request_id, start_time, e)
210
- raise Ingenico::Connect::SDK::CommunicationException, e
211
- rescue HTTPClient::KeepAliveDisconnected, HTTPClient::RetryableResponse => e # retry these?
212
- log_error(request_id, start_time, e)
213
- raise Ingenico::Connect::SDK::CommunicationException, e
214
- rescue StandardError => e
215
- log_error(request_id, start_time, e)
216
- raise Ingenico::Connect::SDK::CommunicationException, e
217
- end
218
- end
219
-
220
- # logging code
221
-
222
- # Sets the current body obfuscator to use.
223
- # @param body_obfuscator [Ingenico::Connect::SDK::Logging::Obfuscation::BodyObfuscator]
224
- def set_body_obfuscator(body_obfuscator)
225
- raise ArgumentError, 'body_obfuscator is required' unless body_obfuscator
226
-
227
- @body_obfuscator = body_obfuscator
228
- end
229
-
230
- # Sets the current header obfuscator to use.
231
- # @param header_obfuscator [Ingenico::Connect::SDK::Logging::Obfuscation::HeaderObfuscator]
232
- def set_header_obfuscator(header_obfuscator)
233
- raise ArgumentError, 'header_obfuscator is required' unless header_obfuscator
234
-
235
- @header_obfuscator = header_obfuscator
236
- end
237
-
238
- # Enables logging outgoing requests and incoming responses by registering the _communicator_logger_.
239
- # Note that only one logger can be registered at a time and calling _enable_logging_
240
- # a second time will override the old logger instance with the new one.
241
- #
242
- # @param communicator_logger [Ingenico::Connect::SDK::Logging::CommunicatorLogger] the communicator logger the requests and responses are logged to
243
- def enable_logging(communicator_logger)
244
- raise ArgumentError, 'communicator_logger is required' unless communicator_logger
245
-
246
- @communicator_logger = communicator_logger
247
- end
248
-
249
- # Disables logging by unregistering any previous logger that might be registered.
250
- def disable_logging
251
- @communicator_logger = nil
252
- end
253
-
254
- private
255
-
256
- # Converts a {Ingenico::Connect::SDK::RequestHeader} list headers to a hash
257
- def convert_from_sdk_headers(headers)
258
- headers.each_with_object({}) { |h, hash| hash[h.name] = h.value }
259
- end
260
-
261
- # Converts a hash to a {Ingenico::Connect::SDK::ResponseHeader} list
262
- def convert_to_sdk_response_headers(headers)
263
- arr ||= []
264
- headers.each { |k, v| arr << Ingenico::Connect::SDK::ResponseHeader.new(k, v) }
265
- arr
266
- end
267
-
268
- def log_request(request_id, method, uri, args = {})
269
- logger = @communicator_logger
270
- return unless logger
271
-
272
- headers = args[:headers]
273
- body = args[:body]
274
- content_type = args[:content_type]
275
- log_msg_builder = Ingenico::Connect::SDK::Logging::RequestLogMessageBuilder.new(request_id, method, uri,
276
- @body_obfuscator,
277
- @header_obfuscator)
278
- headers.each { |k, v| log_msg_builder.add_headers(k, v) } if headers
279
-
280
- if binary?(headers)
281
- log_msg_builder.set_body('<binary content>', content_type)
282
- else
283
- log_msg_builder.set_body(body, content_type)
284
- end
285
-
286
- begin
287
- logger.log(log_msg_builder.get_message)
288
- rescue StandardError => e
289
- logger.log("An error occurred trying to log request #{request_id}", e)
290
- end
291
- end
292
-
293
- # Creates the log_response stream
294
- # both based on whether or not it is binary and on the rest of the response
295
- def log_response(request_id, status_code, start_time, args = {})
296
- logger = @communicator_logger
297
- return unless logger
298
-
299
- duration = (Time.now - start_time) * 1000 # in milliseconds
300
- headers = args[:headers]
301
- body = args[:body] unless args[:body].nil?
302
- content_type = args[:content_type]
303
-
304
- log_msg_builder = Ingenico::Connect::SDK::Logging::ResponseLogMessageBuilder.new(request_id, status_code, duration,
305
- @body_obfuscator,
306
- @header_obfuscator)
307
- unless headers.nil?
308
- headers = convert_from_sdk_headers(headers)
309
- headers.each do |key, value|
310
- log_msg_builder.add_headers(key, value)
311
- end
312
- end
313
-
314
- if binary_content_type?(content_type)
315
- log_msg_builder.set_body('<binary content>', content_type)
316
- else
317
- log_msg_builder.set_body(body, content_type)
318
- end
319
-
320
- begin
321
- logger.log(log_msg_builder.get_message)
322
- rescue StandardError => e
323
- logger.log("An error occurred trying to log response #{request_id}", e)
324
- end
325
- end
326
-
327
- def log_error(request_id, start_time, thrown)
328
- logger = @communicator_logger
329
- return unless logger
330
-
331
- duration = (Time.now - start_time) * 1000 # in millisecs
332
- logger.log("Error occurred for outgoing request (requestId='#{request_id}', #{duration} ms)", thrown)
333
- end
334
-
335
- # @param headers [Hash]
336
- def binary?(headers)
337
- unless headers.nil?
338
- content_type = nil
339
- headers.each { |k, v| content_type = v if k.casecmp(CONTENT_TYPE).zero? }
340
-
341
- binary_content_type?(content_type)
342
- end
343
- end
344
-
345
- # @param content_type [String]
346
- def binary_content_type?(content_type)
347
- unless content_type.nil?
348
- content_type = content_type.downcase
349
- return !content_type.start_with?('text/') &&
350
- !content_type.include?('json') &&
351
- !content_type.include?('xml')
352
- end
353
- false
354
- end
355
-
356
- # Makes a request using the specified method
357
- #
358
- # Yields a status code, an array of {Ingenico::Connect::SDK::ResponseHeader},
359
- # the content_type and body
360
- def raw_request(method, uri, headers, body = nil)
361
- connection = if body
362
- @http_client.send(method + '_async', uri, body: body, header: headers)
363
- else
364
- @http_client.send(method + '_async', uri, header: headers)
365
- end
366
-
367
- response = connection.pop
368
- pipe = response.content
369
- response_headers = convert_to_sdk_response_headers(response.headers)
370
-
371
- begin
372
- yield response.status_code, response_headers, response.content_type, pipe
373
- ensure
374
- pipe.close
375
- end
376
- end
377
-
378
- # Makes a request using the specified method
379
- #
380
- # Yields a status code, an array of {Ingenico::Connect::SDK::ResponseHeader},
381
- # the content_type and body
382
- def multipart_request(method, uri, headers, body = nil)
383
- unless body.is_a? Ingenico::Connect::SDK::MultipartFormDataObject
384
- raise ArgumentError, 'body should be a MultipartFormDataObject'
385
- end
386
-
387
- if method != 'post' && method != 'put'
388
- raise ArgumentError, "method #{method} is not supported"
389
- end
390
-
391
- connection = @http_client.send method + '_async',
392
- uri,
393
- body: multipart_request_body(body),
394
- header: headers
395
-
396
- response = connection.pop
397
- pipe = response.content
398
- response_headers = convert_to_sdk_response_headers(response.headers)
399
-
400
- begin
401
- yield response.status_code, response_headers, response.content_type, pipe
402
- ensure
403
- pipe.close
404
- end
405
- end
406
-
407
- # Creates a request body for the multipart request
408
- def multipart_request_body(body)
409
- request_body = []
410
- body.files.each do |k, v|
411
- request_body.push :content => v.content,
412
- 'Content-Type' => v.content_type,
413
- 'Content-Disposition' => "form-data; name=\"#{k}\"; filename=\"#{v.file_name}\"",
414
- 'Content-Transfer-Encoding' => 'binary'
415
- end
416
-
417
- body.values.each do |k, v|
418
- request_body << { :content => v,
419
- 'Content-Disposition' => "form-data; name=\"#{k}\"" }
420
- end
421
- request_body
422
- end
423
- end
424
- end
425
- end
426
- end
427
- end
@@ -1,41 +0,0 @@
1
- require 'json'
2
- require 'singleton'
3
- require 'ingenico/connect/sdk/marshaller'
4
-
5
- module Ingenico
6
- module Connect
7
- module SDK
8
- module DefaultImpl
9
- # Marshals objects to and from JSON format.
10
- # Currently supports marshalling and unmarshalling of classes that support class.new_from_hash and class#to_h
11
- class DefaultMarshaller < Ingenico::Connect::SDK::Marshaller
12
- include Singleton
13
-
14
- # NOTE: this alias is needed to not break existing method calls depending on old interface
15
- class << self
16
- alias_method :INSTANCE, :instance
17
- end
18
-
19
- # Marshals the _request_object_ to a JSON string using request_object#to_h
20
- def marshal(request_object)
21
- JSON.pretty_generate(request_object.to_h)
22
- end
23
-
24
- # Unmarshals a JSON string into an object of type _klass_ using klass.new_from_hash
25
- def unmarshal(json_string, klass)
26
- if json_string.nil?
27
- return nil
28
- elsif json_string.length == 0
29
- return ''
30
- end
31
- if klass.respond_to?(:new_from_hash)
32
- klass.new_from_hash(JSON.load(json_string))
33
- else
34
- raise NotImplementedError
35
- end
36
- end
37
- end
38
- end
39
- end
40
- end
41
- end
@@ -1 +0,0 @@
1
- Dir[File.join(__dir__, 'defaultimpl', '*.rb')].each { |f| require f }
@@ -1,53 +0,0 @@
1
- #
2
- # This class was auto-generated from the API references found at
3
- # https://epayments-api.developer-ingenico.com/
4
- #
5
- require 'ingenico/connect/sdk/domain/capture/capture_output'
6
- require 'ingenico/connect/sdk/domain/capture/capture_status_output'
7
- require 'ingenico/connect/sdk/domain/definitions/abstract_order_status'
8
-
9
- module Ingenico
10
- module Connect
11
- module SDK
12
- module Domain
13
- module Capture
14
- # @attr [Ingenico::Connect::SDK::Domain::Capture::CaptureOutput] capture_output
15
- # @attr [String] status
16
- # @attr [Ingenico::Connect::SDK::Domain::Capture::CaptureStatusOutput] status_output
17
- class Capture < Ingenico::Connect::SDK::Domain::Definitions::AbstractOrderStatus
18
-
19
- attr_accessor :capture_output
20
-
21
- attr_accessor :status
22
-
23
- attr_accessor :status_output
24
-
25
- # @return (Hash)
26
- def to_h
27
- hash = super
28
- hash['captureOutput'] = @capture_output.to_h unless @capture_output.nil?
29
- hash['status'] = @status unless @status.nil?
30
- hash['statusOutput'] = @status_output.to_h unless @status_output.nil?
31
- hash
32
- end
33
-
34
- def from_hash(hash)
35
- super
36
- if hash.has_key? 'captureOutput'
37
- raise TypeError, "value '%s' is not a Hash" % [hash['captureOutput']] unless hash['captureOutput'].is_a? Hash
38
- @capture_output = Ingenico::Connect::SDK::Domain::Capture::CaptureOutput.new_from_hash(hash['captureOutput'])
39
- end
40
- if hash.has_key? 'status'
41
- @status = hash['status']
42
- end
43
- if hash.has_key? 'statusOutput'
44
- raise TypeError, "value '%s' is not a Hash" % [hash['statusOutput']] unless hash['statusOutput'].is_a? Hash
45
- @status_output = Ingenico::Connect::SDK::Domain::Capture::CaptureStatusOutput.new_from_hash(hash['statusOutput'])
46
- end
47
- end
48
- end
49
- end
50
- end
51
- end
52
- end
53
- end
@@ -1,137 +0,0 @@
1
- #
2
- # This class was auto-generated from the API references found at
3
- # https://epayments-api.developer-ingenico.com/
4
- #
5
- require 'ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_output'
6
- require 'ingenico/connect/sdk/domain/payment/card_payment_method_specific_output'
7
- require 'ingenico/connect/sdk/domain/payment/cash_payment_method_specific_output'
8
- require 'ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_output'
9
- require 'ingenico/connect/sdk/domain/payment/invoice_payment_method_specific_output'
10
- require 'ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_output'
11
- require 'ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_output'
12
- require 'ingenico/connect/sdk/domain/payment/order_output'
13
- require 'ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output'
14
- require 'ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_output'
15
-
16
- module Ingenico
17
- module Connect
18
- module SDK
19
- module Domain
20
- module Capture
21
- # @attr [Integer] amount_paid
22
- # @attr [Integer] amount_reversed
23
- # @attr [Ingenico::Connect::SDK::Domain::Payment::BankTransferPaymentMethodSpecificOutput] bank_transfer_payment_method_specific_output
24
- # @attr [Ingenico::Connect::SDK::Domain::Payment::CardPaymentMethodSpecificOutput] card_payment_method_specific_output
25
- # @attr [Ingenico::Connect::SDK::Domain::Payment::CashPaymentMethodSpecificOutput] cash_payment_method_specific_output
26
- # @attr [Ingenico::Connect::SDK::Domain::Payment::NonSepaDirectDebitPaymentMethodSpecificOutput] direct_debit_payment_method_specific_output
27
- # @attr [Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentMethodSpecificOutput] e_invoice_payment_method_specific_output
28
- # @attr [Ingenico::Connect::SDK::Domain::Payment::InvoicePaymentMethodSpecificOutput] invoice_payment_method_specific_output
29
- # @attr [Ingenico::Connect::SDK::Domain::Payment::MobilePaymentMethodSpecificOutput] mobile_payment_method_specific_output
30
- # @attr [String] payment_method
31
- # @attr [Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentMethodSpecificOutput] redirect_payment_method_specific_output
32
- # @attr [String] reversal_reason
33
- # @attr [Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentMethodSpecificOutput] sepa_direct_debit_payment_method_specific_output
34
- class CaptureOutput < Ingenico::Connect::SDK::Domain::Payment::OrderOutput
35
-
36
- attr_accessor :amount_paid
37
-
38
- attr_accessor :amount_reversed
39
-
40
- attr_accessor :bank_transfer_payment_method_specific_output
41
-
42
- attr_accessor :card_payment_method_specific_output
43
-
44
- attr_accessor :cash_payment_method_specific_output
45
-
46
- attr_accessor :direct_debit_payment_method_specific_output
47
-
48
- attr_accessor :e_invoice_payment_method_specific_output
49
-
50
- attr_accessor :invoice_payment_method_specific_output
51
-
52
- attr_accessor :mobile_payment_method_specific_output
53
-
54
- attr_accessor :payment_method
55
-
56
- attr_accessor :redirect_payment_method_specific_output
57
-
58
- attr_accessor :reversal_reason
59
-
60
- attr_accessor :sepa_direct_debit_payment_method_specific_output
61
-
62
- # @return (Hash)
63
- def to_h
64
- hash = super
65
- hash['amountPaid'] = @amount_paid unless @amount_paid.nil?
66
- hash['amountReversed'] = @amount_reversed unless @amount_reversed.nil?
67
- hash['bankTransferPaymentMethodSpecificOutput'] = @bank_transfer_payment_method_specific_output.to_h unless @bank_transfer_payment_method_specific_output.nil?
68
- hash['cardPaymentMethodSpecificOutput'] = @card_payment_method_specific_output.to_h unless @card_payment_method_specific_output.nil?
69
- hash['cashPaymentMethodSpecificOutput'] = @cash_payment_method_specific_output.to_h unless @cash_payment_method_specific_output.nil?
70
- hash['directDebitPaymentMethodSpecificOutput'] = @direct_debit_payment_method_specific_output.to_h unless @direct_debit_payment_method_specific_output.nil?
71
- hash['eInvoicePaymentMethodSpecificOutput'] = @e_invoice_payment_method_specific_output.to_h unless @e_invoice_payment_method_specific_output.nil?
72
- hash['invoicePaymentMethodSpecificOutput'] = @invoice_payment_method_specific_output.to_h unless @invoice_payment_method_specific_output.nil?
73
- hash['mobilePaymentMethodSpecificOutput'] = @mobile_payment_method_specific_output.to_h unless @mobile_payment_method_specific_output.nil?
74
- hash['paymentMethod'] = @payment_method unless @payment_method.nil?
75
- hash['redirectPaymentMethodSpecificOutput'] = @redirect_payment_method_specific_output.to_h unless @redirect_payment_method_specific_output.nil?
76
- hash['reversalReason'] = @reversal_reason unless @reversal_reason.nil?
77
- hash['sepaDirectDebitPaymentMethodSpecificOutput'] = @sepa_direct_debit_payment_method_specific_output.to_h unless @sepa_direct_debit_payment_method_specific_output.nil?
78
- hash
79
- end
80
-
81
- def from_hash(hash)
82
- super
83
- if hash.has_key? 'amountPaid'
84
- @amount_paid = hash['amountPaid']
85
- end
86
- if hash.has_key? 'amountReversed'
87
- @amount_reversed = hash['amountReversed']
88
- end
89
- if hash.has_key? 'bankTransferPaymentMethodSpecificOutput'
90
- raise TypeError, "value '%s' is not a Hash" % [hash['bankTransferPaymentMethodSpecificOutput']] unless hash['bankTransferPaymentMethodSpecificOutput'].is_a? Hash
91
- @bank_transfer_payment_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::BankTransferPaymentMethodSpecificOutput.new_from_hash(hash['bankTransferPaymentMethodSpecificOutput'])
92
- end
93
- if hash.has_key? 'cardPaymentMethodSpecificOutput'
94
- raise TypeError, "value '%s' is not a Hash" % [hash['cardPaymentMethodSpecificOutput']] unless hash['cardPaymentMethodSpecificOutput'].is_a? Hash
95
- @card_payment_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::CardPaymentMethodSpecificOutput.new_from_hash(hash['cardPaymentMethodSpecificOutput'])
96
- end
97
- if hash.has_key? 'cashPaymentMethodSpecificOutput'
98
- raise TypeError, "value '%s' is not a Hash" % [hash['cashPaymentMethodSpecificOutput']] unless hash['cashPaymentMethodSpecificOutput'].is_a? Hash
99
- @cash_payment_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::CashPaymentMethodSpecificOutput.new_from_hash(hash['cashPaymentMethodSpecificOutput'])
100
- end
101
- if hash.has_key? 'directDebitPaymentMethodSpecificOutput'
102
- raise TypeError, "value '%s' is not a Hash" % [hash['directDebitPaymentMethodSpecificOutput']] unless hash['directDebitPaymentMethodSpecificOutput'].is_a? Hash
103
- @direct_debit_payment_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::NonSepaDirectDebitPaymentMethodSpecificOutput.new_from_hash(hash['directDebitPaymentMethodSpecificOutput'])
104
- end
105
- if hash.has_key? 'eInvoicePaymentMethodSpecificOutput'
106
- raise TypeError, "value '%s' is not a Hash" % [hash['eInvoicePaymentMethodSpecificOutput']] unless hash['eInvoicePaymentMethodSpecificOutput'].is_a? Hash
107
- @e_invoice_payment_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentMethodSpecificOutput.new_from_hash(hash['eInvoicePaymentMethodSpecificOutput'])
108
- end
109
- if hash.has_key? 'invoicePaymentMethodSpecificOutput'
110
- raise TypeError, "value '%s' is not a Hash" % [hash['invoicePaymentMethodSpecificOutput']] unless hash['invoicePaymentMethodSpecificOutput'].is_a? Hash
111
- @invoice_payment_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::InvoicePaymentMethodSpecificOutput.new_from_hash(hash['invoicePaymentMethodSpecificOutput'])
112
- end
113
- if hash.has_key? 'mobilePaymentMethodSpecificOutput'
114
- raise TypeError, "value '%s' is not a Hash" % [hash['mobilePaymentMethodSpecificOutput']] unless hash['mobilePaymentMethodSpecificOutput'].is_a? Hash
115
- @mobile_payment_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::MobilePaymentMethodSpecificOutput.new_from_hash(hash['mobilePaymentMethodSpecificOutput'])
116
- end
117
- if hash.has_key? 'paymentMethod'
118
- @payment_method = hash['paymentMethod']
119
- end
120
- if hash.has_key? 'redirectPaymentMethodSpecificOutput'
121
- raise TypeError, "value '%s' is not a Hash" % [hash['redirectPaymentMethodSpecificOutput']] unless hash['redirectPaymentMethodSpecificOutput'].is_a? Hash
122
- @redirect_payment_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentMethodSpecificOutput.new_from_hash(hash['redirectPaymentMethodSpecificOutput'])
123
- end
124
- if hash.has_key? 'reversalReason'
125
- @reversal_reason = hash['reversalReason']
126
- end
127
- if hash.has_key? 'sepaDirectDebitPaymentMethodSpecificOutput'
128
- raise TypeError, "value '%s' is not a Hash" % [hash['sepaDirectDebitPaymentMethodSpecificOutput']] unless hash['sepaDirectDebitPaymentMethodSpecificOutput'].is_a? Hash
129
- @sepa_direct_debit_payment_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentMethodSpecificOutput.new_from_hash(hash['sepaDirectDebitPaymentMethodSpecificOutput'])
130
- end
131
- end
132
- end
133
- end
134
- end
135
- end
136
- end
137
- end