connect-sdk-ruby 1.5.1 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (297) hide show
  1. checksums.yaml +4 -4
  2. data/connect-sdk-ruby.gemspec +1 -1
  3. data/examples/merchant/captures/get_capture_example.rb +22 -0
  4. data/examples/merchant/hostedcheckouts/create_hosted_checkout_example.rb +1 -1
  5. data/examples/merchant/hostedcheckouts/get_hosted_checkout_example.rb +1 -1
  6. data/examples/merchant/payments/approve_payment_example.rb +1 -1
  7. data/examples/merchant/payments/cancel_approval_payment_example.rb +1 -1
  8. data/examples/merchant/payments/cancel_payment_example.rb +1 -1
  9. data/examples/merchant/payments/capture_payment_example.rb +27 -0
  10. data/examples/merchant/payments/create_payment_example.rb +1 -1
  11. data/examples/merchant/payments/get_payment_captures_example.rb +22 -0
  12. data/examples/merchant/payments/get_payment_example.rb +1 -1
  13. data/examples/merchant/payments/process_challenged_payment_example.rb +1 -1
  14. data/examples/merchant/payments/refund_payment_example.rb +1 -1
  15. data/examples/merchant/payments/tokenize_payment_example.rb +1 -1
  16. data/examples/merchant/payouts/approve_payout_example.rb +1 -1
  17. data/examples/merchant/payouts/cancel_approval_payout_example.rb +1 -1
  18. data/examples/merchant/payouts/cancel_payout_example.rb +1 -1
  19. data/examples/merchant/payouts/create_payout_example.rb +1 -1
  20. data/examples/merchant/payouts/get_payout_example.rb +1 -1
  21. data/examples/merchant/productgroups/get_payment_product_group_example.rb +3 -3
  22. data/examples/merchant/productgroups/get_payment_product_groups_example.rb +3 -3
  23. data/examples/merchant/products/get_directory_example.rb +1 -1
  24. data/examples/merchant/products/get_networks_example.rb +3 -3
  25. data/examples/merchant/products/get_payment_product_example.rb +1 -1
  26. data/examples/merchant/products/get_payment_product_public_key_example.rb +1 -1
  27. data/examples/merchant/products/get_payment_products_example.rb +1 -1
  28. data/examples/merchant/refunds/approve_refund_example.rb +1 -1
  29. data/examples/merchant/refunds/cancel_approval_refund_example.rb +1 -1
  30. data/examples/merchant/refunds/cancel_refund_example.rb +1 -1
  31. data/examples/merchant/refunds/get_refund_example.rb +1 -1
  32. data/examples/merchant/riskassessments/risk_assessment_bank_account_example.rb +1 -1
  33. data/examples/merchant/riskassessments/risk_assessment_cards_example.rb +1 -1
  34. data/examples/merchant/services/convert_amount_example.rb +1 -1
  35. data/examples/merchant/services/convert_bank_account_example.rb +1 -1
  36. data/examples/merchant/services/iin_details_example.rb +1 -1
  37. data/examples/merchant/services/test_connection_example.rb +1 -1
  38. data/examples/merchant/sessions/create_session_example.rb +1 -1
  39. data/examples/merchant/tokens/approve_sepa_direct_debit_token_example.rb +1 -1
  40. data/examples/merchant/tokens/create_token_example.rb +1 -1
  41. data/examples/merchant/tokens/delete_token_example.rb +1 -1
  42. data/examples/merchant/tokens/get_token_example.rb +1 -1
  43. data/examples/merchant/tokens/update_token_example.rb +1 -1
  44. data/lib/ingenico/connect/sdk/client.rb +1 -1
  45. data/lib/ingenico/connect/sdk/domain/capture/capture.rb +53 -0
  46. data/lib/ingenico/connect/sdk/domain/capture/capture_output.rb +126 -0
  47. data/lib/ingenico/connect/sdk/domain/capture/capture_response.rb +15 -0
  48. data/lib/ingenico/connect/sdk/domain/capture/capture_status_output.rb +31 -0
  49. data/lib/ingenico/connect/sdk/domain/capture/captures_response.rb +38 -0
  50. data/lib/ingenico/connect/sdk/domain/definitions/abstract_order_status.rb +1 -2
  51. data/lib/ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input.rb +1 -2
  52. data/lib/ingenico/connect/sdk/domain/definitions/additional_order_input_airline_data.rb +1 -2
  53. data/lib/ingenico/connect/sdk/domain/definitions/address.rb +1 -2
  54. data/lib/ingenico/connect/sdk/domain/definitions/airline_data.rb +1 -2
  55. data/lib/ingenico/connect/sdk/domain/definitions/airline_flight_leg.rb +1 -2
  56. data/lib/ingenico/connect/sdk/domain/definitions/amount_of_money.rb +1 -2
  57. data/lib/ingenico/connect/sdk/domain/definitions/bank_account.rb +1 -2
  58. data/lib/ingenico/connect/sdk/domain/definitions/bank_account_bban.rb +1 -2
  59. data/lib/ingenico/connect/sdk/domain/definitions/bank_account_iban.rb +1 -2
  60. data/lib/ingenico/connect/sdk/domain/definitions/card.rb +1 -2
  61. data/lib/ingenico/connect/sdk/domain/definitions/card_essentials.rb +1 -2
  62. data/lib/ingenico/connect/sdk/domain/definitions/card_fraud_results.rb +1 -2
  63. data/lib/ingenico/connect/sdk/domain/definitions/card_without_cvv.rb +1 -2
  64. data/lib/ingenico/connect/sdk/domain/definitions/company_information.rb +1 -2
  65. data/lib/ingenico/connect/sdk/domain/definitions/contact_details_base.rb +1 -2
  66. data/lib/ingenico/connect/sdk/domain/definitions/customer_base.rb +1 -2
  67. data/lib/ingenico/connect/sdk/domain/definitions/fraud_fields.rb +44 -2
  68. data/lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb +45 -0
  69. data/lib/ingenico/connect/sdk/domain/definitions/fraud_results.rb +1 -2
  70. data/lib/ingenico/connect/sdk/domain/definitions/fraud_results_retail_decisions.rb +1 -2
  71. data/lib/ingenico/connect/sdk/domain/definitions/key_value_pair.rb +1 -2
  72. data/lib/ingenico/connect/sdk/domain/definitions/order_status_output.rb +1 -2
  73. data/lib/ingenico/connect/sdk/domain/definitions/payment_product_filter.rb +1 -2
  74. data/lib/ingenico/connect/sdk/domain/definitions/personal_name_base.rb +1 -2
  75. data/lib/ingenico/connect/sdk/domain/definitions/result_do_risk_assessment.rb +1 -2
  76. data/lib/ingenico/connect/sdk/domain/definitions/retail_decisions_cc_fraud_check_output.rb +1 -2
  77. data/lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_check.rb +1 -2
  78. data/lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb +1 -2
  79. data/lib/ingenico/connect/sdk/domain/errors/api_error.rb +1 -2
  80. data/lib/ingenico/connect/sdk/domain/errors/error_response.rb +1 -2
  81. data/lib/ingenico/connect/sdk/domain/hostedcheckout/create_hosted_checkout_request.rb +1 -2
  82. data/lib/ingenico/connect/sdk/domain/hostedcheckout/create_hosted_checkout_response.rb +1 -2
  83. data/lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb +1 -2
  84. data/lib/ingenico/connect/sdk/domain/hostedcheckout/displayed_data.rb +1 -2
  85. data/lib/ingenico/connect/sdk/domain/hostedcheckout/get_hosted_checkout_response.rb +1 -2
  86. data/lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb +1 -2
  87. data/lib/ingenico/connect/sdk/domain/hostedcheckout/payment_product_filters_hosted_checkout.rb +1 -2
  88. data/lib/ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output.rb +1 -2
  89. data/lib/ingenico/connect/sdk/domain/payment/additional_order_input.rb +1 -2
  90. data/lib/ingenico/connect/sdk/domain/payment/address_personal.rb +1 -2
  91. data/lib/ingenico/connect/sdk/domain/payment/amount_breakdown.rb +1 -2
  92. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_card_payment_method_specific_output.rb +1 -2
  93. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_mobile_payment_method_specific_output.rb +1 -2
  94. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_non_sepa_direct_debit_payment_method_specific_input.rb +1 -2
  95. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_payment_method_specific_input.rb +1 -2
  96. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_request.rb +1 -2
  97. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_sepa_direct_debit_payment_method_specific_input.rb +1 -2
  98. data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_input.rb +1 -2
  99. data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_input_base.rb +1 -2
  100. data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_output.rb +1 -2
  101. data/lib/ingenico/connect/sdk/domain/payment/cancel_approval_payment_response.rb +1 -2
  102. data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_card_payment_method_specific_output.rb +1 -2
  103. data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_mobile_payment_method_specific_output.rb +1 -2
  104. data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_response.rb +1 -2
  105. data/lib/ingenico/connect/sdk/domain/payment/capture_payment_request.rb +38 -0
  106. data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input.rb +1 -2
  107. data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb +8 -2
  108. data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_output.rb +1 -2
  109. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input.rb +1 -2
  110. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input_base.rb +1 -2
  111. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_output.rb +1 -2
  112. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1503_specific_input.rb +1 -2
  113. data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1504_specific_input.rb +1 -2
  114. data/lib/ingenico/connect/sdk/domain/payment/contact_details.rb +1 -2
  115. data/lib/ingenico/connect/sdk/domain/payment/create_payment_request.rb +1 -2
  116. data/lib/ingenico/connect/sdk/domain/payment/create_payment_response.rb +1 -2
  117. data/lib/ingenico/connect/sdk/domain/payment/create_payment_result.rb +1 -2
  118. data/lib/ingenico/connect/sdk/domain/payment/customer.rb +1 -2
  119. data/lib/ingenico/connect/sdk/domain/payment/decrypted_payment_data.rb +1 -2
  120. data/lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb +1 -2
  121. data/lib/ingenico/connect/sdk/domain/payment/invoice_payment_method_specific_input.rb +1 -2
  122. data/lib/ingenico/connect/sdk/domain/payment/invoice_payment_method_specific_output.rb +1 -2
  123. data/lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb +5 -7
  124. data/lib/ingenico/connect/sdk/domain/payment/line_item.rb +1 -2
  125. data/lib/ingenico/connect/sdk/domain/payment/line_item_invoice_data.rb +1 -2
  126. data/lib/ingenico/connect/sdk/domain/payment/line_item_level3_interchange_information.rb +1 -2
  127. data/lib/ingenico/connect/sdk/domain/payment/merchant_action.rb +1 -2
  128. data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_data.rb +1 -2
  129. data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_input.rb +1 -2
  130. data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_output.rb +1 -2
  131. data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.rb +1 -2
  132. data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_input.rb +1 -2
  133. data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_output.rb +1 -2
  134. data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_product705_specific_input.rb +1 -2
  135. data/lib/ingenico/connect/sdk/domain/payment/order.rb +1 -2
  136. data/lib/ingenico/connect/sdk/domain/payment/order_approve_payment.rb +1 -2
  137. data/lib/ingenico/connect/sdk/domain/payment/order_invoice_data.rb +1 -2
  138. data/lib/ingenico/connect/sdk/domain/payment/order_line_details.rb +1 -2
  139. data/lib/ingenico/connect/sdk/domain/payment/order_output.rb +1 -2
  140. data/lib/ingenico/connect/sdk/domain/payment/order_references.rb +1 -2
  141. data/lib/ingenico/connect/sdk/domain/payment/order_references_approve_payment.rb +1 -2
  142. data/lib/ingenico/connect/sdk/domain/payment/order_type_information.rb +1 -2
  143. data/lib/ingenico/connect/sdk/domain/payment/payment.rb +1 -2
  144. data/lib/ingenico/connect/sdk/domain/payment/payment_approval_response.rb +1 -2
  145. data/lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb +1 -2
  146. data/lib/ingenico/connect/sdk/domain/payment/payment_creation_references.rb +1 -2
  147. data/lib/ingenico/connect/sdk/domain/payment/payment_error_response.rb +1 -2
  148. data/lib/ingenico/connect/sdk/domain/payment/payment_output.rb +1 -2
  149. data/lib/ingenico/connect/sdk/domain/payment/payment_product836_specific_output.rb +1 -2
  150. data/lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb +1 -2
  151. data/lib/ingenico/connect/sdk/domain/payment/payment_product840_specific_output.rb +1 -2
  152. data/lib/ingenico/connect/sdk/domain/payment/payment_references.rb +1 -2
  153. data/lib/ingenico/connect/sdk/domain/payment/payment_response.rb +1 -2
  154. data/lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb +1 -2
  155. data/lib/ingenico/connect/sdk/domain/payment/personal_information.rb +1 -2
  156. data/lib/ingenico/connect/sdk/domain/payment/personal_name.rb +1 -2
  157. data/lib/ingenico/connect/sdk/domain/payment/redirect_data.rb +1 -2
  158. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input.rb +1 -2
  159. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb +1 -2
  160. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb +1 -2
  161. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product809_specific_input.rb +1 -2
  162. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product816_specific_input.rb +1 -2
  163. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product882_specific_input.rb +1 -2
  164. data/lib/ingenico/connect/sdk/domain/payment/refund_bank_method_specific_output.rb +1 -2
  165. data/lib/ingenico/connect/sdk/domain/payment/refund_card_method_specific_output.rb +1 -2
  166. data/lib/ingenico/connect/sdk/domain/payment/refund_e_wallet_method_specific_output.rb +1 -2
  167. data/lib/ingenico/connect/sdk/domain/payment/refund_method_specific_output.rb +1 -2
  168. data/lib/ingenico/connect/sdk/domain/payment/refund_mobile_method_specific_output.rb +1 -2
  169. data/lib/ingenico/connect/sdk/domain/payment/refund_output.rb +1 -2
  170. data/lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb +1 -2
  171. data/lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_specific_output.rb +1 -2
  172. data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb +1 -2
  173. data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_output.rb +1 -2
  174. data/lib/ingenico/connect/sdk/domain/payment/shopping_cart.rb +1 -2
  175. data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb +1 -2
  176. data/lib/ingenico/connect/sdk/domain/payment/tokenize_payment_request.rb +1 -2
  177. data/lib/ingenico/connect/sdk/domain/payout/abstract_payout_method_specific_input.rb +15 -0
  178. data/lib/ingenico/connect/sdk/domain/payout/approve_payout_request.rb +1 -2
  179. data/lib/ingenico/connect/sdk/domain/payout/bank_transfer_payout_method_specific_input.rb +78 -0
  180. data/lib/ingenico/connect/sdk/domain/payout/card_payout_method_specific_input.rb +42 -0
  181. data/lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb +35 -2
  182. data/lib/ingenico/connect/sdk/domain/payout/payout_customer.rb +1 -2
  183. data/lib/ingenico/connect/sdk/domain/payout/payout_error_response.rb +1 -2
  184. data/lib/ingenico/connect/sdk/domain/payout/payout_references.rb +1 -2
  185. data/lib/ingenico/connect/sdk/domain/payout/payout_response.rb +1 -2
  186. data/lib/ingenico/connect/sdk/domain/payout/payout_result.rb +1 -2
  187. data/lib/ingenico/connect/sdk/domain/product/account_on_file.rb +1 -2
  188. data/lib/ingenico/connect/sdk/domain/product/account_on_file_attribute.rb +1 -2
  189. data/lib/ingenico/connect/sdk/domain/product/account_on_file_display_hints.rb +1 -2
  190. data/lib/ingenico/connect/sdk/domain/product/boleto_bancario_requiredness_validator.rb +1 -2
  191. data/lib/ingenico/connect/sdk/domain/product/directory.rb +1 -2
  192. data/lib/ingenico/connect/sdk/domain/product/directory_entry.rb +1 -2
  193. data/lib/ingenico/connect/sdk/domain/product/empty_validator.rb +1 -2
  194. data/lib/ingenico/connect/sdk/domain/product/fixed_list_validator.rb +1 -2
  195. data/lib/ingenico/connect/sdk/domain/product/label_template_element.rb +1 -2
  196. data/lib/ingenico/connect/sdk/domain/product/length_validator.rb +1 -2
  197. data/lib/ingenico/connect/sdk/domain/product/payment_product.rb +1 -2
  198. data/lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb +1 -2
  199. data/lib/ingenico/connect/sdk/domain/product/payment_product_field.rb +1 -2
  200. data/lib/ingenico/connect/sdk/domain/product/payment_product_field_data_restrictions.rb +1 -2
  201. data/lib/ingenico/connect/sdk/domain/product/payment_product_field_display_hints.rb +1 -2
  202. data/lib/ingenico/connect/sdk/domain/product/payment_product_field_form_element.rb +1 -2
  203. data/lib/ingenico/connect/sdk/domain/product/payment_product_field_tooltip.rb +1 -2
  204. data/lib/ingenico/connect/sdk/domain/product/payment_product_field_validators.rb +1 -2
  205. data/lib/ingenico/connect/sdk/domain/product/payment_product_group.rb +1 -2
  206. data/lib/ingenico/connect/sdk/domain/product/payment_product_group_response.rb +1 -2
  207. data/lib/ingenico/connect/sdk/domain/product/payment_product_groups.rb +1 -2
  208. data/lib/ingenico/connect/sdk/domain/product/payment_product_networks_response.rb +1 -2
  209. data/lib/ingenico/connect/sdk/domain/product/payment_product_response.rb +1 -2
  210. data/lib/ingenico/connect/sdk/domain/product/payment_products.rb +1 -2
  211. data/lib/ingenico/connect/sdk/domain/product/range_validator.rb +1 -2
  212. data/lib/ingenico/connect/sdk/domain/product/regular_expression_validator.rb +1 -2
  213. data/lib/ingenico/connect/sdk/domain/product/value_mapping_element.rb +1 -2
  214. data/lib/ingenico/connect/sdk/domain/publickey/public_key.rb +1 -2
  215. data/lib/ingenico/connect/sdk/domain/refund/approve_refund_request.rb +1 -2
  216. data/lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb +1 -2
  217. data/lib/ingenico/connect/sdk/domain/refund/bank_refund_method_specific_input.rb +1 -2
  218. data/lib/ingenico/connect/sdk/domain/refund/refund_customer.rb +1 -2
  219. data/lib/ingenico/connect/sdk/domain/refund/refund_error_response.rb +1 -2
  220. data/lib/ingenico/connect/sdk/domain/refund/refund_references.rb +1 -2
  221. data/lib/ingenico/connect/sdk/domain/refund/refund_request.rb +1 -2
  222. data/lib/ingenico/connect/sdk/domain/refund/refund_response.rb +1 -2
  223. data/lib/ingenico/connect/sdk/domain/refund/refund_result.rb +1 -2
  224. data/lib/ingenico/connect/sdk/domain/riskassessments/customer_risk_assessment.rb +1 -2
  225. data/lib/ingenico/connect/sdk/domain/riskassessments/order_risk_assessment.rb +1 -2
  226. data/lib/ingenico/connect/sdk/domain/riskassessments/personal_information_risk_assessment.rb +1 -2
  227. data/lib/ingenico/connect/sdk/domain/riskassessments/personal_name_risk_assessment.rb +1 -2
  228. data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment.rb +1 -2
  229. data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_bank_account.rb +1 -2
  230. data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_card.rb +1 -2
  231. data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_response.rb +1 -2
  232. data/lib/ingenico/connect/sdk/domain/services/bank_data.rb +1 -2
  233. data/lib/ingenico/connect/sdk/domain/services/bank_details.rb +1 -2
  234. data/lib/ingenico/connect/sdk/domain/services/bank_details_request.rb +1 -2
  235. data/lib/ingenico/connect/sdk/domain/services/bank_details_response.rb +1 -2
  236. data/lib/ingenico/connect/sdk/domain/services/convert_amount.rb +1 -2
  237. data/lib/ingenico/connect/sdk/domain/services/get_iin_details_request.rb +1 -2
  238. data/lib/ingenico/connect/sdk/domain/services/get_iin_details_response.rb +1 -2
  239. data/lib/ingenico/connect/sdk/domain/services/iin_detail.rb +1 -2
  240. data/lib/ingenico/connect/sdk/domain/services/payment_context.rb +1 -2
  241. data/lib/ingenico/connect/sdk/domain/services/swift.rb +1 -2
  242. data/lib/ingenico/connect/sdk/domain/services/test_connection.rb +1 -2
  243. data/lib/ingenico/connect/sdk/domain/sessions/payment_product_filters_client_session.rb +1 -2
  244. data/lib/ingenico/connect/sdk/domain/sessions/session_request.rb +1 -2
  245. data/lib/ingenico/connect/sdk/domain/sessions/session_response.rb +1 -2
  246. data/lib/ingenico/connect/sdk/domain/token/abstract_token.rb +1 -2
  247. data/lib/ingenico/connect/sdk/domain/token/approve_token_request.rb +1 -2
  248. data/lib/ingenico/connect/sdk/domain/token/contact_details_token.rb +1 -2
  249. data/lib/ingenico/connect/sdk/domain/token/create_token_request.rb +1 -2
  250. data/lib/ingenico/connect/sdk/domain/token/create_token_response.rb +1 -2
  251. data/lib/ingenico/connect/sdk/domain/token/creditor.rb +1 -2
  252. data/lib/ingenico/connect/sdk/domain/token/customer_token.rb +1 -2
  253. data/lib/ingenico/connect/sdk/domain/token/customer_token_with_contact_details.rb +1 -2
  254. data/lib/ingenico/connect/sdk/domain/token/debtor.rb +1 -2
  255. data/lib/ingenico/connect/sdk/domain/token/mandate_approval.rb +1 -2
  256. data/lib/ingenico/connect/sdk/domain/token/mandate_non_sepa_direct_debit.rb +1 -2
  257. data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit.rb +1 -2
  258. data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit_with_mandate_id.rb +1 -2
  259. data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit_without_creditor.rb +1 -2
  260. data/lib/ingenico/connect/sdk/domain/token/personal_information_token.rb +1 -2
  261. data/lib/ingenico/connect/sdk/domain/token/personal_name_token.rb +1 -2
  262. data/lib/ingenico/connect/sdk/domain/token/token_card.rb +1 -2
  263. data/lib/ingenico/connect/sdk/domain/token/token_card_data.rb +1 -2
  264. data/lib/ingenico/connect/sdk/domain/token/token_e_wallet.rb +1 -2
  265. data/lib/ingenico/connect/sdk/domain/token/token_e_wallet_data.rb +1 -2
  266. data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit.rb +1 -2
  267. data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit_payment_product705_specific_data.rb +1 -2
  268. data/lib/ingenico/connect/sdk/domain/token/token_response.rb +1 -2
  269. data/lib/ingenico/connect/sdk/domain/token/token_sepa_direct_debit.rb +1 -2
  270. data/lib/ingenico/connect/sdk/domain/token/token_sepa_direct_debit_without_creditor.rb +1 -2
  271. data/lib/ingenico/connect/sdk/domain/token/update_token_request.rb +1 -2
  272. data/lib/ingenico/connect/sdk/merchant/captures/captures_client.rb +57 -0
  273. data/lib/ingenico/connect/sdk/merchant/hostedcheckouts/hostedcheckouts_client.rb +3 -3
  274. data/lib/ingenico/connect/sdk/merchant/merchant_client.rb +10 -1
  275. data/lib/ingenico/connect/sdk/merchant/payments/payments_client.rb +77 -9
  276. data/lib/ingenico/connect/sdk/merchant/payouts/payouts_client.rb +6 -6
  277. data/lib/ingenico/connect/sdk/merchant/productgroups/find_productgroups_params.rb +2 -2
  278. data/lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb +2 -2
  279. data/lib/ingenico/connect/sdk/merchant/productgroups/productgroups_client.rb +3 -3
  280. data/lib/ingenico/connect/sdk/merchant/products/directory_params.rb +2 -2
  281. data/lib/ingenico/connect/sdk/merchant/products/find_products_params.rb +2 -2
  282. data/lib/ingenico/connect/sdk/merchant/products/get_product_params.rb +2 -2
  283. data/lib/ingenico/connect/sdk/merchant/products/networks_params.rb +2 -2
  284. data/lib/ingenico/connect/sdk/merchant/products/products_client.rb +6 -6
  285. data/lib/ingenico/connect/sdk/merchant/refunds/refunds_client.rb +5 -5
  286. data/lib/ingenico/connect/sdk/merchant/riskassessments/riskassessments_client.rb +3 -3
  287. data/lib/ingenico/connect/sdk/merchant/services/convert_amount_params.rb +2 -2
  288. data/lib/ingenico/connect/sdk/merchant/services/services_client.rb +5 -5
  289. data/lib/ingenico/connect/sdk/merchant/sessions/sessions_client.rb +2 -2
  290. data/lib/ingenico/connect/sdk/merchant/tokens/delete_token_params.rb +2 -2
  291. data/lib/ingenico/connect/sdk/merchant/tokens/tokens_client.rb +6 -6
  292. data/lib/ingenico/connect/sdk/meta_data_provider.rb +1 -1
  293. data/lib/ingenico/connect/sdk/modules.rb +10 -0
  294. data/spec/fixtures/resources/defaultimpl/createPayment.unicode.json +42 -0
  295. data/spec/lib/defaultimpl/default_connection_logger_spec.rb +47 -0
  296. data/spec/lib/logging/ruby_communicator_logger_spec.rb +8 -0
  297. metadata +19 -3
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RedirectData RedirectData}
12
11
  class RedirectData < Ingenico::Connect::SDK::DataObject
13
12
 
14
13
  # String
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base'
6
6
  require 'ingenico/connect/sdk/domain/payment/redirect_payment_product809_specific_input'
@@ -11,7 +11,6 @@ module Ingenico::Connect::SDK
11
11
  module Domain
12
12
  module Payment
13
13
 
14
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RedirectPaymentMethodSpecificInput RedirectPaymentMethodSpecificInput}
15
14
  class RedirectPaymentMethodSpecificInput < Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentMethodSpecificInputBase
16
15
 
17
16
  # true/false
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RedirectPaymentMethodSpecificInputBase RedirectPaymentMethodSpecificInputBase}
12
11
  class RedirectPaymentMethodSpecificInputBase < Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput
13
12
 
14
13
  # Integer
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/domain/definitions/bank_account_iban'
6
6
  require 'ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output'
@@ -11,7 +11,6 @@ module Ingenico::Connect::SDK
11
11
  module Domain
12
12
  module Payment
13
13
 
14
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RedirectPaymentMethodSpecificOutput RedirectPaymentMethodSpecificOutput}
15
14
  class RedirectPaymentMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::AbstractPaymentMethodSpecificOutput
16
15
 
17
16
  # {Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban}
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RedirectPaymentProduct809SpecificInput RedirectPaymentProduct809SpecificInput}
12
11
  class RedirectPaymentProduct809SpecificInput < Ingenico::Connect::SDK::DataObject
13
12
 
14
13
  # String
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
  require 'ingenico/connect/sdk/domain/definitions/bank_account_iban'
@@ -9,7 +9,6 @@ module Ingenico::Connect::SDK
9
9
  module Domain
10
10
  module Payment
11
11
 
12
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RedirectPaymentProduct816SpecificInput RedirectPaymentProduct816SpecificInput}
13
12
  class RedirectPaymentProduct816SpecificInput < Ingenico::Connect::SDK::DataObject
14
13
 
15
14
  # {Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban}
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RedirectPaymentProduct882SpecificInput RedirectPaymentProduct882SpecificInput}
12
11
  class RedirectPaymentProduct882SpecificInput < Ingenico::Connect::SDK::DataObject
13
12
 
14
13
  # String
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/domain/payment/refund_method_specific_output'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RefundBankMethodSpecificOutput RefundBankMethodSpecificOutput}
12
11
  class RefundBankMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::RefundMethodSpecificOutput
13
12
  end
14
13
  end
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/domain/payment/refund_method_specific_output'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RefundCardMethodSpecificOutput RefundCardMethodSpecificOutput}
12
11
  class RefundCardMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::RefundMethodSpecificOutput
13
12
  end
14
13
  end
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/domain/payment/refund_method_specific_output'
6
6
  require 'ingenico/connect/sdk/domain/payment/refund_payment_product840_specific_output'
@@ -9,7 +9,6 @@ module Ingenico::Connect::SDK
9
9
  module Domain
10
10
  module Payment
11
11
 
12
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RefundEWalletMethodSpecificOutput RefundEWalletMethodSpecificOutput}
13
12
  class RefundEWalletMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::RefundMethodSpecificOutput
14
13
 
15
14
  # {Ingenico::Connect::SDK::Domain::Payment::RefundPaymentProduct840SpecificOutput}
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RefundMethodSpecificOutput RefundMethodSpecificOutput}
12
11
  class RefundMethodSpecificOutput < Ingenico::Connect::SDK::DataObject
13
12
 
14
13
  # Integer
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/domain/payment/refund_method_specific_output'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RefundMobileMethodSpecificOutput RefundMobileMethodSpecificOutput}
12
11
  class RefundMobileMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::RefundMethodSpecificOutput
13
12
 
14
13
  # String
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/domain/payment/order_output'
6
6
  require 'ingenico/connect/sdk/domain/payment/refund_bank_method_specific_output'
@@ -12,7 +12,6 @@ module Ingenico::Connect::SDK
12
12
  module Domain
13
13
  module Payment
14
14
 
15
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RefundOutput RefundOutput}
16
15
  class RefundOutput < Ingenico::Connect::SDK::Domain::Payment::OrderOutput
17
16
 
18
17
  # Integer
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RefundPaymentProduct840CustomerAccount RefundPaymentProduct840CustomerAccount}
12
11
  class RefundPaymentProduct840CustomerAccount < Ingenico::Connect::SDK::DataObject
13
12
 
14
13
  # String
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
  require 'ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account'
@@ -9,7 +9,6 @@ module Ingenico::Connect::SDK
9
9
  module Domain
10
10
  module Payment
11
11
 
12
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_RefundPaymentProduct840SpecificOutput RefundPaymentProduct840SpecificOutput}
13
12
  class RefundPaymentProduct840SpecificOutput < Ingenico::Connect::SDK::DataObject
14
13
 
15
14
  # {Ingenico::Connect::SDK::Domain::Payment::RefundPaymentProduct840CustomerAccount}
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_SepaDirectDebitPaymentMethodSpecificInput SepaDirectDebitPaymentMethodSpecificInput}
12
11
  class SepaDirectDebitPaymentMethodSpecificInput < Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput
13
12
 
14
13
  # String
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/domain/definitions/fraud_results'
6
6
  require 'ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output'
@@ -9,7 +9,6 @@ module Ingenico::Connect::SDK
9
9
  module Domain
10
10
  module Payment
11
11
 
12
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_SepaDirectDebitPaymentMethodSpecificOutput SepaDirectDebitPaymentMethodSpecificOutput}
13
12
  class SepaDirectDebitPaymentMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::AbstractPaymentMethodSpecificOutput
14
13
 
15
14
  # {Ingenico::Connect::SDK::Domain::Definitions::FraudResults}
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
  require 'ingenico/connect/sdk/domain/payment/amount_breakdown'
@@ -9,7 +9,6 @@ module Ingenico::Connect::SDK
9
9
  module Domain
10
10
  module Payment
11
11
 
12
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_ShoppingCart ShoppingCart}
13
12
  class ShoppingCart < Ingenico::Connect::SDK::DataObject
14
13
 
15
14
  # Array of {Ingenico::Connect::SDK::Domain::Payment::AmountBreakdown}
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_ThreeDSecureResults ThreeDSecureResults}
12
11
  class ThreeDSecureResults < Ingenico::Connect::SDK::DataObject
13
12
 
14
13
  # String
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_TokenizePaymentRequest TokenizePaymentRequest}
12
11
  class TokenizePaymentRequest < Ingenico::Connect::SDK::DataObject
13
12
 
14
13
  # String
@@ -0,0 +1,15 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
+ #
5
+ require 'ingenico/connect/sdk/data_object'
6
+
7
+ module Ingenico::Connect::SDK
8
+ module Domain
9
+ module Payout
10
+
11
+ class AbstractPayoutMethodSpecificInput < Ingenico::Connect::SDK::DataObject
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # This class was auto-generated from the API references found at
3
- # https://developer.globalcollect.com/documentation/api/server/
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
 
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payout
10
10
 
11
- # Class {https://developer.globalcollect.com/documentation/api/server/#schema_ApprovePayoutRequest ApprovePayoutRequest}
12
11
  class ApprovePayoutRequest < Ingenico::Connect::SDK::DataObject
13
12
 
14
13
  # String
@@ -0,0 +1,78 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
+ #
5
+ require 'ingenico/connect/sdk/domain/definitions/bank_account_bban'
6
+ require 'ingenico/connect/sdk/domain/definitions/bank_account_iban'
7
+ require 'ingenico/connect/sdk/domain/payout/abstract_payout_method_specific_input'
8
+ require 'ingenico/connect/sdk/domain/payout/payout_customer'
9
+
10
+ module Ingenico::Connect::SDK
11
+ module Domain
12
+ module Payout
13
+
14
+ class BankTransferPayoutMethodSpecificInput < Ingenico::Connect::SDK::Domain::Payout::AbstractPayoutMethodSpecificInput
15
+
16
+ # {Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban}
17
+ attr_accessor :bank_account_bban
18
+
19
+ # {Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban}
20
+ attr_accessor :bank_account_iban
21
+
22
+ # {Ingenico::Connect::SDK::Domain::Payout::PayoutCustomer}
23
+ attr_accessor :customer
24
+
25
+ # String
26
+ attr_accessor :payout_date
27
+
28
+ # String
29
+ attr_accessor :payout_text
30
+
31
+ # String
32
+ attr_accessor :swift_code
33
+
34
+ def to_h
35
+ hash = super
36
+ add_to_hash(hash, 'bankAccountBban', @bank_account_bban)
37
+ add_to_hash(hash, 'bankAccountIban', @bank_account_iban)
38
+ add_to_hash(hash, 'customer', @customer)
39
+ add_to_hash(hash, 'payoutDate', @payout_date)
40
+ add_to_hash(hash, 'payoutText', @payout_text)
41
+ add_to_hash(hash, 'swiftCode', @swift_code)
42
+ hash
43
+ end
44
+
45
+ def from_hash(hash)
46
+ super
47
+ if hash.has_key?('bankAccountBban')
48
+ if !(hash['bankAccountBban'].is_a? Hash)
49
+ raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountBban']]
50
+ end
51
+ @bank_account_bban = Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban.new_from_hash(hash['bankAccountBban'])
52
+ end
53
+ if hash.has_key?('bankAccountIban')
54
+ if !(hash['bankAccountIban'].is_a? Hash)
55
+ raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']]
56
+ end
57
+ @bank_account_iban = Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban.new_from_hash(hash['bankAccountIban'])
58
+ end
59
+ if hash.has_key?('customer')
60
+ if !(hash['customer'].is_a? Hash)
61
+ raise TypeError, "value '%s' is not a Hash" % [hash['customer']]
62
+ end
63
+ @customer = Ingenico::Connect::SDK::Domain::Payout::PayoutCustomer.new_from_hash(hash['customer'])
64
+ end
65
+ if hash.has_key?('payoutDate')
66
+ @payout_date = hash['payoutDate']
67
+ end
68
+ if hash.has_key?('payoutText')
69
+ @payout_text = hash['payoutText']
70
+ end
71
+ if hash.has_key?('swiftCode')
72
+ @swift_code = hash['swiftCode']
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end