onlinepayments-sdk-ruby 7.1.0 → 7.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (447) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -0
  3. data/LICENSE.txt +0 -0
  4. data/README.md +0 -0
  5. data/Rakefile +0 -0
  6. data/lib/onlinepayments/sdk/api_exception.rb +0 -0
  7. data/lib/onlinepayments/sdk/api_resource.rb +0 -0
  8. data/lib/onlinepayments/sdk/authentication/authenticator.rb +0 -0
  9. data/lib/onlinepayments/sdk/authentication/authorization_type.rb +0 -0
  10. data/lib/onlinepayments/sdk/authentication/v1hmac_authenticator.rb +1 -1
  11. data/lib/onlinepayments/sdk/authentication.rb +0 -0
  12. data/lib/onlinepayments/sdk/authorization_exception.rb +0 -0
  13. data/lib/onlinepayments/sdk/call_context.rb +1 -0
  14. data/lib/onlinepayments/sdk/client.rb +1 -1
  15. data/lib/onlinepayments/sdk/communication/communication_exception.rb +0 -0
  16. data/lib/onlinepayments/sdk/communication/connection.rb +0 -0
  17. data/lib/onlinepayments/sdk/communication/default_connection.rb +28 -12
  18. data/lib/onlinepayments/sdk/communication/metadata_provider.rb +1 -1
  19. data/lib/onlinepayments/sdk/communication/multipart_form_data_object.rb +0 -0
  20. data/lib/onlinepayments/sdk/communication/multipart_form_data_request.rb +0 -0
  21. data/lib/onlinepayments/sdk/communication/not_found_exception.rb +0 -0
  22. data/lib/onlinepayments/sdk/communication/param_request.rb +0 -0
  23. data/lib/onlinepayments/sdk/communication/pooled_connection.rb +0 -0
  24. data/lib/onlinepayments/sdk/communication/request_header.rb +0 -0
  25. data/lib/onlinepayments/sdk/communication/request_param.rb +0 -0
  26. data/lib/onlinepayments/sdk/communication/response_exception.rb +0 -0
  27. data/lib/onlinepayments/sdk/communication/response_header.rb +0 -0
  28. data/lib/onlinepayments/sdk/communication.rb +0 -0
  29. data/lib/onlinepayments/sdk/communicator.rb +13 -2
  30. data/lib/onlinepayments/sdk/communicator_configuration.rb +0 -0
  31. data/lib/onlinepayments/sdk/declined_payment_exception.rb +0 -0
  32. data/lib/onlinepayments/sdk/declined_payout_exception.rb +0 -0
  33. data/lib/onlinepayments/sdk/declined_refund_exception.rb +0 -0
  34. data/lib/onlinepayments/sdk/declined_transaction_exception.rb +0 -0
  35. data/lib/onlinepayments/sdk/domain/acceptance.rb +39 -0
  36. data/lib/onlinepayments/sdk/domain/account_on_file.rb +0 -0
  37. data/lib/onlinepayments/sdk/domain/account_on_file_attribute.rb +0 -0
  38. data/lib/onlinepayments/sdk/domain/account_on_file_display_hints.rb +0 -0
  39. data/lib/onlinepayments/sdk/domain/acquirer_information.rb +0 -0
  40. data/lib/onlinepayments/sdk/domain/acquirer_selection_information.rb +0 -0
  41. data/lib/onlinepayments/sdk/domain/additional_order_input.rb +0 -0
  42. data/lib/onlinepayments/sdk/domain/address.rb +0 -0
  43. data/lib/onlinepayments/sdk/domain/address_personal.rb +0 -0
  44. data/lib/onlinepayments/sdk/domain/airline_data.rb +0 -0
  45. data/lib/onlinepayments/sdk/domain/airline_flight_leg.rb +0 -0
  46. data/lib/onlinepayments/sdk/domain/airline_passenger.rb +0 -0
  47. data/lib/onlinepayments/sdk/domain/amount_breakdown.rb +0 -0
  48. data/lib/onlinepayments/sdk/domain/amount_of_money.rb +0 -0
  49. data/lib/onlinepayments/sdk/domain/api_error.rb +0 -0
  50. data/lib/onlinepayments/sdk/domain/apple_pay_line_item.rb +0 -0
  51. data/lib/onlinepayments/sdk/domain/apple_pay_recurring_payment_request.rb +0 -0
  52. data/lib/onlinepayments/sdk/domain/bank_account_iban.rb +0 -0
  53. data/lib/onlinepayments/sdk/domain/batch_metadata.rb +44 -0
  54. data/lib/onlinepayments/sdk/domain/browser_data.rb +0 -0
  55. data/lib/onlinepayments/sdk/domain/calculate_surcharge_request.rb +0 -0
  56. data/lib/onlinepayments/sdk/domain/calculate_surcharge_response.rb +0 -0
  57. data/lib/onlinepayments/sdk/domain/cancel_payment_batch_request.rb +39 -0
  58. data/lib/onlinepayments/sdk/domain/cancel_payment_request.rb +0 -0
  59. data/lib/onlinepayments/sdk/domain/cancel_payment_response.rb +0 -0
  60. data/lib/onlinepayments/sdk/domain/capture.rb +0 -0
  61. data/lib/onlinepayments/sdk/domain/capture_output.rb +0 -0
  62. data/lib/onlinepayments/sdk/domain/capture_payment_batch_request.rb +39 -0
  63. data/lib/onlinepayments/sdk/domain/capture_payment_request.rb +0 -0
  64. data/lib/onlinepayments/sdk/domain/capture_response.rb +0 -0
  65. data/lib/onlinepayments/sdk/domain/capture_status_output.rb +0 -0
  66. data/lib/onlinepayments/sdk/domain/captures_response.rb +0 -0
  67. data/lib/onlinepayments/sdk/domain/card.rb +0 -0
  68. data/lib/onlinepayments/sdk/domain/card_bin_details.rb +0 -0
  69. data/lib/onlinepayments/sdk/domain/card_data_without_cvv.rb +0 -0
  70. data/lib/onlinepayments/sdk/domain/card_essentials.rb +0 -0
  71. data/lib/onlinepayments/sdk/domain/card_fraud_results.rb +0 -0
  72. data/lib/onlinepayments/sdk/domain/card_info.rb +0 -0
  73. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +0 -0
  74. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +0 -0
  75. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb +0 -0
  76. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +9 -0
  77. data/lib/onlinepayments/sdk/domain/card_payout_method_specific_input.rb +0 -0
  78. data/lib/onlinepayments/sdk/domain/card_recurrence_details.rb +0 -0
  79. data/lib/onlinepayments/sdk/domain/card_source.rb +0 -0
  80. data/lib/onlinepayments/sdk/domain/card_without_cvv.rb +0 -0
  81. data/lib/onlinepayments/sdk/domain/click_to_pay.rb +0 -0
  82. data/lib/onlinepayments/sdk/domain/company_information.rb +0 -0
  83. data/lib/onlinepayments/sdk/domain/complete_payment_card_payment_method_specific_input.rb +0 -0
  84. data/lib/onlinepayments/sdk/domain/complete_payment_request.rb +0 -0
  85. data/lib/onlinepayments/sdk/domain/complete_payment_response.rb +0 -0
  86. data/lib/onlinepayments/sdk/domain/contact_details.rb +0 -0
  87. data/lib/onlinepayments/sdk/domain/create_certificate_response.rb +0 -0
  88. data/lib/onlinepayments/sdk/domain/create_hosted_checkout_request.rb +0 -0
  89. data/lib/onlinepayments/sdk/domain/create_hosted_checkout_response.rb +0 -0
  90. data/lib/onlinepayments/sdk/domain/create_hosted_fields_session_request.rb +0 -0
  91. data/lib/onlinepayments/sdk/domain/create_hosted_fields_session_response.rb +0 -0
  92. data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_request.rb +0 -0
  93. data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_response.rb +0 -0
  94. data/lib/onlinepayments/sdk/domain/create_mandate_request.rb +0 -0
  95. data/lib/onlinepayments/sdk/domain/create_mandate_response.rb +0 -0
  96. data/lib/onlinepayments/sdk/domain/create_mandate_with_return_url.rb +0 -0
  97. data/lib/onlinepayments/sdk/domain/create_payment_link_request.rb +0 -0
  98. data/lib/onlinepayments/sdk/domain/create_payment_request.rb +0 -0
  99. data/lib/onlinepayments/sdk/domain/create_payment_response.rb +0 -0
  100. data/lib/onlinepayments/sdk/domain/create_payout_request.rb +0 -0
  101. data/lib/onlinepayments/sdk/domain/create_token_request.rb +0 -0
  102. data/lib/onlinepayments/sdk/domain/created_payment_output.rb +0 -0
  103. data/lib/onlinepayments/sdk/domain/created_token_response.rb +0 -0
  104. data/lib/onlinepayments/sdk/domain/credit_card_specific_input_hosted_tokenization.rb +0 -0
  105. data/lib/onlinepayments/sdk/domain/credit_card_validation_rules.rb +0 -0
  106. data/lib/onlinepayments/sdk/domain/credit_card_validation_rules_hosted_tokenization.rb +0 -0
  107. data/lib/onlinepayments/sdk/domain/crm_token.rb +0 -0
  108. data/lib/onlinepayments/sdk/domain/csr_request.rb +0 -0
  109. data/lib/onlinepayments/sdk/domain/currency_conversion.rb +0 -0
  110. data/lib/onlinepayments/sdk/domain/currency_conversion_input.rb +0 -0
  111. data/lib/onlinepayments/sdk/domain/currency_conversion_request.rb +0 -0
  112. data/lib/onlinepayments/sdk/domain/currency_conversion_response.rb +0 -0
  113. data/lib/onlinepayments/sdk/domain/currency_conversion_result.rb +0 -0
  114. data/lib/onlinepayments/sdk/domain/currency_conversion_specific_input.rb +0 -0
  115. data/lib/onlinepayments/sdk/domain/customer.rb +0 -0
  116. data/lib/onlinepayments/sdk/domain/customer_account.rb +0 -0
  117. data/lib/onlinepayments/sdk/domain/customer_account_authentication.rb +0 -0
  118. data/lib/onlinepayments/sdk/domain/customer_bank_account.rb +0 -0
  119. data/lib/onlinepayments/sdk/domain/customer_device.rb +0 -0
  120. data/lib/onlinepayments/sdk/domain/customer_device_output.rb +0 -0
  121. data/lib/onlinepayments/sdk/domain/customer_output.rb +0 -0
  122. data/lib/onlinepayments/sdk/domain/customer_payment_activity.rb +0 -0
  123. data/lib/onlinepayments/sdk/domain/customer_token.rb +0 -0
  124. data/lib/onlinepayments/sdk/domain/data_object.rb +0 -0
  125. data/lib/onlinepayments/sdk/domain/dcc_card_source.rb +0 -0
  126. data/lib/onlinepayments/sdk/domain/dcc_proposal.rb +0 -0
  127. data/lib/onlinepayments/sdk/domain/decrypted_payment_data.rb +0 -0
  128. data/lib/onlinepayments/sdk/domain/detokenization_response.rb +0 -0
  129. data/lib/onlinepayments/sdk/domain/detokenized_token_response.rb +0 -0
  130. data/lib/onlinepayments/sdk/domain/directory_entry.rb +0 -0
  131. data/lib/onlinepayments/sdk/domain/discount.rb +0 -0
  132. data/lib/onlinepayments/sdk/domain/empty_validator.rb +0 -0
  133. data/lib/onlinepayments/sdk/domain/error_response.rb +0 -0
  134. data/lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb +0 -0
  135. data/lib/onlinepayments/sdk/domain/external_token_linked.rb +0 -0
  136. data/lib/onlinepayments/sdk/domain/feedbacks.rb +0 -0
  137. data/lib/onlinepayments/sdk/domain/fixed_list_validator.rb +0 -0
  138. data/lib/onlinepayments/sdk/domain/fraud_fields.rb +0 -0
  139. data/lib/onlinepayments/sdk/domain/fraud_results.rb +0 -0
  140. data/lib/onlinepayments/sdk/domain/g_pay_three_d_secure.rb +0 -0
  141. data/lib/onlinepayments/sdk/domain/get_batch_status_response.rb +51 -0
  142. data/lib/onlinepayments/sdk/domain/get_hosted_checkout_response.rb +0 -0
  143. data/lib/onlinepayments/sdk/domain/get_hosted_tokenization_response.rb +0 -0
  144. data/lib/onlinepayments/sdk/domain/get_iin_details_request.rb +0 -0
  145. data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +0 -0
  146. data/lib/onlinepayments/sdk/domain/get_mandate_response.rb +0 -0
  147. data/lib/onlinepayments/sdk/domain/get_payment_product_groups_response.rb +0 -0
  148. data/lib/onlinepayments/sdk/domain/get_payment_products_response.rb +0 -0
  149. data/lib/onlinepayments/sdk/domain/get_privacy_policy_response.rb +0 -0
  150. data/lib/onlinepayments/sdk/domain/gift_card_purchase.rb +0 -0
  151. data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_input.rb +0 -0
  152. data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_output.rb +0 -0
  153. data/lib/onlinepayments/sdk/domain/iin_detail.rb +0 -0
  154. data/lib/onlinepayments/sdk/domain/import_cof_series_request.rb +0 -0
  155. data/lib/onlinepayments/sdk/domain/import_cof_series_response.rb +0 -0
  156. data/lib/onlinepayments/sdk/domain/label_template_element.rb +0 -0
  157. data/lib/onlinepayments/sdk/domain/length_validator.rb +0 -0
  158. data/lib/onlinepayments/sdk/domain/line_item.rb +0 -0
  159. data/lib/onlinepayments/sdk/domain/line_item_detail.rb +0 -0
  160. data/lib/onlinepayments/sdk/domain/line_item_invoice_data.rb +0 -0
  161. data/lib/onlinepayments/sdk/domain/loan_recipient.rb +0 -0
  162. data/lib/onlinepayments/sdk/domain/lodging_data.rb +0 -0
  163. data/lib/onlinepayments/sdk/domain/mandate_address.rb +0 -0
  164. data/lib/onlinepayments/sdk/domain/mandate_address_response.rb +0 -0
  165. data/lib/onlinepayments/sdk/domain/mandate_contact_details.rb +0 -0
  166. data/lib/onlinepayments/sdk/domain/mandate_customer.rb +0 -0
  167. data/lib/onlinepayments/sdk/domain/mandate_customer_response.rb +0 -0
  168. data/lib/onlinepayments/sdk/domain/mandate_merchant_action.rb +0 -0
  169. data/lib/onlinepayments/sdk/domain/mandate_personal_information.rb +0 -0
  170. data/lib/onlinepayments/sdk/domain/mandate_personal_information_response.rb +0 -0
  171. data/lib/onlinepayments/sdk/domain/mandate_personal_name.rb +0 -0
  172. data/lib/onlinepayments/sdk/domain/mandate_personal_name_response.rb +0 -0
  173. data/lib/onlinepayments/sdk/domain/mandate_redirect_data.rb +0 -0
  174. data/lib/onlinepayments/sdk/domain/mandate_response.rb +0 -0
  175. data/lib/onlinepayments/sdk/domain/market_place.rb +0 -0
  176. data/lib/onlinepayments/sdk/domain/merchant_action.rb +0 -0
  177. data/lib/onlinepayments/sdk/domain/mobile_payment_data.rb +0 -0
  178. data/lib/onlinepayments/sdk/domain/mobile_payment_method_hosted_checkout_specific_input.rb +0 -0
  179. data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_input.rb +0 -0
  180. data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_output.rb +0 -0
  181. data/lib/onlinepayments/sdk/domain/mobile_payment_product302_specific_input.rb +0 -0
  182. data/lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb +0 -0
  183. data/lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb +0 -0
  184. data/lib/onlinepayments/sdk/domain/multiple_payment_information.rb +0 -0
  185. data/lib/onlinepayments/sdk/domain/network_token_data.rb +0 -0
  186. data/lib/onlinepayments/sdk/domain/network_token_essentials.rb +0 -0
  187. data/lib/onlinepayments/sdk/domain/network_token_linked.rb +0 -0
  188. data/lib/onlinepayments/sdk/domain/omnichannel_payment_specific_input.rb +0 -0
  189. data/lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb +0 -0
  190. data/lib/onlinepayments/sdk/domain/omnichannel_refund_specific_input.rb +0 -0
  191. data/lib/onlinepayments/sdk/domain/omnichannel_subsequent_specific_input.rb +0 -0
  192. data/lib/onlinepayments/sdk/domain/operation_output.rb +0 -0
  193. data/lib/onlinepayments/sdk/domain/operation_payment_references.rb +0 -0
  194. data/lib/onlinepayments/sdk/domain/order.rb +0 -0
  195. data/lib/onlinepayments/sdk/domain/order_line_details.rb +0 -0
  196. data/lib/onlinepayments/sdk/domain/order_references.rb +0 -0
  197. data/lib/onlinepayments/sdk/domain/order_status_output.rb +0 -0
  198. data/lib/onlinepayments/sdk/domain/order_type_information.rb +0 -0
  199. data/lib/onlinepayments/sdk/domain/other_details.rb +0 -0
  200. data/lib/onlinepayments/sdk/domain/payment_account_on_file.rb +0 -0
  201. data/lib/onlinepayments/sdk/domain/payment_context.rb +0 -0
  202. data/lib/onlinepayments/sdk/domain/payment_creation_output.rb +0 -0
  203. data/lib/onlinepayments/sdk/domain/payment_details_response.rb +0 -0
  204. data/lib/onlinepayments/sdk/domain/payment_error_response.rb +0 -0
  205. data/lib/onlinepayments/sdk/domain/payment_link_event.rb +0 -0
  206. data/lib/onlinepayments/sdk/domain/payment_link_order_input.rb +0 -0
  207. data/lib/onlinepayments/sdk/domain/payment_link_order_output.rb +0 -0
  208. data/lib/onlinepayments/sdk/domain/payment_link_response.rb +0 -0
  209. data/lib/onlinepayments/sdk/domain/payment_link_specific_input.rb +0 -0
  210. data/lib/onlinepayments/sdk/domain/payment_links_response.rb +0 -0
  211. data/lib/onlinepayments/sdk/domain/payment_output.rb +9 -0
  212. data/lib/onlinepayments/sdk/domain/payment_product.rb +0 -0
  213. data/lib/onlinepayments/sdk/domain/payment_product130_specific_input.rb +0 -0
  214. data/lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb +0 -0
  215. data/lib/onlinepayments/sdk/domain/payment_product3012.rb +0 -0
  216. data/lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb +0 -0
  217. data/lib/onlinepayments/sdk/domain/payment_product3013_specific_input.rb +0 -0
  218. data/lib/onlinepayments/sdk/domain/payment_product302_specific_data.rb +0 -0
  219. data/lib/onlinepayments/sdk/domain/payment_product3203_specific_output.rb +0 -0
  220. data/lib/onlinepayments/sdk/domain/payment_product3204_specific_output.rb +0 -0
  221. data/lib/onlinepayments/sdk/domain/payment_product3208_specific_input.rb +0 -0
  222. data/lib/onlinepayments/sdk/domain/payment_product3208_specific_output.rb +0 -0
  223. data/lib/onlinepayments/sdk/domain/payment_product3209_specific_input.rb +0 -0
  224. data/lib/onlinepayments/sdk/domain/payment_product3209_specific_output.rb +0 -0
  225. data/lib/onlinepayments/sdk/domain/payment_product320_specific_data.rb +0 -0
  226. data/lib/onlinepayments/sdk/domain/payment_product350.rb +0 -0
  227. data/lib/onlinepayments/sdk/domain/payment_product5001.rb +0 -0
  228. data/lib/onlinepayments/sdk/domain/payment_product5001_specific_output.rb +0 -0
  229. data/lib/onlinepayments/sdk/domain/payment_product5100_specific_input.rb +0 -0
  230. data/lib/onlinepayments/sdk/domain/payment_product5402_specific_output.rb +0 -0
  231. data/lib/onlinepayments/sdk/domain/payment_product5404.rb +0 -0
  232. data/lib/onlinepayments/sdk/domain/payment_product5407.rb +0 -0
  233. data/lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb +0 -0
  234. data/lib/onlinepayments/sdk/domain/payment_product771_specific_output.rb +0 -0
  235. data/lib/onlinepayments/sdk/domain/payment_product840.rb +0 -0
  236. data/lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb +0 -0
  237. data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +0 -0
  238. data/lib/onlinepayments/sdk/domain/payment_product_display_hints.rb +0 -0
  239. data/lib/onlinepayments/sdk/domain/payment_product_field.rb +0 -0
  240. data/lib/onlinepayments/sdk/domain/payment_product_field_data_restrictions.rb +0 -0
  241. data/lib/onlinepayments/sdk/domain/payment_product_field_display_element.rb +0 -0
  242. data/lib/onlinepayments/sdk/domain/payment_product_field_display_hints.rb +0 -0
  243. data/lib/onlinepayments/sdk/domain/payment_product_field_form_element.rb +0 -0
  244. data/lib/onlinepayments/sdk/domain/payment_product_field_tooltip.rb +0 -0
  245. data/lib/onlinepayments/sdk/domain/payment_product_field_validators.rb +0 -0
  246. data/lib/onlinepayments/sdk/domain/payment_product_filter.rb +0 -0
  247. data/lib/onlinepayments/sdk/domain/payment_product_filter_hosted_tokenization.rb +0 -0
  248. data/lib/onlinepayments/sdk/domain/payment_product_filters_hosted_checkout.rb +0 -0
  249. data/lib/onlinepayments/sdk/domain/payment_product_filters_hosted_tokenization.rb +0 -0
  250. data/lib/onlinepayments/sdk/domain/payment_product_group.rb +0 -0
  251. data/lib/onlinepayments/sdk/domain/payment_product_networks_response.rb +0 -0
  252. data/lib/onlinepayments/sdk/domain/payment_references.rb +0 -0
  253. data/lib/onlinepayments/sdk/domain/payment_response.rb +0 -0
  254. data/lib/onlinepayments/sdk/domain/payment_status_output.rb +0 -0
  255. data/lib/onlinepayments/sdk/domain/payout_error_response.rb +0 -0
  256. data/lib/onlinepayments/sdk/domain/payout_output.rb +0 -0
  257. data/lib/onlinepayments/sdk/domain/payout_response.rb +0 -0
  258. data/lib/onlinepayments/sdk/domain/payout_result.rb +0 -0
  259. data/lib/onlinepayments/sdk/domain/payout_status_output.rb +0 -0
  260. data/lib/onlinepayments/sdk/domain/pending_authentication.rb +0 -0
  261. data/lib/onlinepayments/sdk/domain/personal_information.rb +0 -0
  262. data/lib/onlinepayments/sdk/domain/personal_information_token.rb +0 -0
  263. data/lib/onlinepayments/sdk/domain/personal_name.rb +0 -0
  264. data/lib/onlinepayments/sdk/domain/personal_name_token.rb +0 -0
  265. data/lib/onlinepayments/sdk/domain/product302_recurring.rb +0 -0
  266. data/lib/onlinepayments/sdk/domain/product320_recurring.rb +0 -0
  267. data/lib/onlinepayments/sdk/domain/product_directory.rb +0 -0
  268. data/lib/onlinepayments/sdk/domain/protection_eligibility.rb +0 -0
  269. data/lib/onlinepayments/sdk/domain/range_validator.rb +0 -0
  270. data/lib/onlinepayments/sdk/domain/rate_details.rb +0 -0
  271. data/lib/onlinepayments/sdk/domain/reattempt_instructions.rb +0 -0
  272. data/lib/onlinepayments/sdk/domain/reattempt_instructions_conditions.rb +0 -0
  273. data/lib/onlinepayments/sdk/domain/redirect_data.rb +0 -0
  274. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +0 -0
  275. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +0 -0
  276. data/lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb +0 -0
  277. data/lib/onlinepayments/sdk/domain/redirect_payment_product3203_specific_input.rb +0 -0
  278. data/lib/onlinepayments/sdk/domain/redirect_payment_product3204_specific_input.rb +0 -0
  279. data/lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb +0 -0
  280. data/lib/onlinepayments/sdk/domain/redirect_payment_product3306_specific_input.rb +0 -0
  281. data/lib/onlinepayments/sdk/domain/redirect_payment_product3307_specific_input.rb +0 -0
  282. data/lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb +0 -0
  283. data/lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb +0 -0
  284. data/lib/onlinepayments/sdk/domain/redirect_payment_product5402_specific_input.rb +0 -0
  285. data/lib/onlinepayments/sdk/domain/redirect_payment_product5403_specific_input.rb +0 -0
  286. data/lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb +0 -0
  287. data/lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb +0 -0
  288. data/lib/onlinepayments/sdk/domain/redirect_payment_product5410_specific_input.rb +0 -0
  289. data/lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb +0 -0
  290. data/lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb +0 -0
  291. data/lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb +0 -0
  292. data/lib/onlinepayments/sdk/domain/redirection_data.rb +0 -0
  293. data/lib/onlinepayments/sdk/domain/refund_card_method_specific_output.rb +0 -0
  294. data/lib/onlinepayments/sdk/domain/refund_e_wallet_method_specific_output.rb +0 -0
  295. data/lib/onlinepayments/sdk/domain/refund_error_response.rb +0 -0
  296. data/lib/onlinepayments/sdk/domain/refund_mobile_method_specific_output.rb +0 -0
  297. data/lib/onlinepayments/sdk/domain/refund_output.rb +0 -0
  298. data/lib/onlinepayments/sdk/domain/refund_payment_batch_request.rb +39 -0
  299. data/lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb +0 -0
  300. data/lib/onlinepayments/sdk/domain/refund_payment_product840_specific_output.rb +0 -0
  301. data/lib/onlinepayments/sdk/domain/refund_redirect_method_specific_output.rb +0 -0
  302. data/lib/onlinepayments/sdk/domain/refund_redirect_payment_method_specific_input.rb +0 -0
  303. data/lib/onlinepayments/sdk/domain/refund_redirect_payment_product900_specific_input.rb +0 -0
  304. data/lib/onlinepayments/sdk/domain/refund_request.rb +0 -0
  305. data/lib/onlinepayments/sdk/domain/refund_response.rb +0 -0
  306. data/lib/onlinepayments/sdk/domain/refunds_response.rb +0 -0
  307. data/lib/onlinepayments/sdk/domain/regular_expression_validator.rb +0 -0
  308. data/lib/onlinepayments/sdk/domain/revoke_mandate_request.rb +0 -0
  309. data/lib/onlinepayments/sdk/domain/send_test_request.rb +0 -0
  310. data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input.rb +0 -0
  311. data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input_base.rb +0 -0
  312. data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb +0 -0
  313. data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input.rb +0 -0
  314. data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input_base.rb +0 -0
  315. data/lib/onlinepayments/sdk/domain/session_data.rb +0 -0
  316. data/lib/onlinepayments/sdk/domain/session_details.rb +0 -0
  317. data/lib/onlinepayments/sdk/domain/session_request.rb +0 -0
  318. data/lib/onlinepayments/sdk/domain/session_response.rb +0 -0
  319. data/lib/onlinepayments/sdk/domain/shipping.rb +0 -0
  320. data/lib/onlinepayments/sdk/domain/shipping_method.rb +0 -0
  321. data/lib/onlinepayments/sdk/domain/shopping_cart.rb +0 -0
  322. data/lib/onlinepayments/sdk/domain/shopping_cart_extension.rb +0 -0
  323. data/lib/onlinepayments/sdk/domain/shopping_cart_output.rb +0 -0
  324. data/lib/onlinepayments/sdk/domain/show_form_data.rb +0 -0
  325. data/lib/onlinepayments/sdk/domain/show_instructions_data.rb +0 -0
  326. data/lib/onlinepayments/sdk/domain/split_payment_product_filter.rb +0 -0
  327. data/lib/onlinepayments/sdk/domain/split_payment_product_filters_hosted_checkout.rb +0 -0
  328. data/lib/onlinepayments/sdk/domain/submit_batch_request_body.rb +116 -0
  329. data/lib/onlinepayments/sdk/domain/submit_batch_response.rb +37 -0
  330. data/lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb +0 -0
  331. data/lib/onlinepayments/sdk/domain/subsequent_payment_batch_request.rb +39 -0
  332. data/lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb +0 -0
  333. data/lib/onlinepayments/sdk/domain/subsequent_payment_request.rb +0 -0
  334. data/lib/onlinepayments/sdk/domain/subsequent_payment_response.rb +0 -0
  335. data/lib/onlinepayments/sdk/domain/surcharge.rb +0 -0
  336. data/lib/onlinepayments/sdk/domain/surcharge_calculation_card.rb +0 -0
  337. data/lib/onlinepayments/sdk/domain/surcharge_for_payment_link.rb +0 -0
  338. data/lib/onlinepayments/sdk/domain/surcharge_rate.rb +0 -0
  339. data/lib/onlinepayments/sdk/domain/surcharge_specific_input.rb +0 -0
  340. data/lib/onlinepayments/sdk/domain/surcharge_specific_output.rb +0 -0
  341. data/lib/onlinepayments/sdk/domain/test_connection.rb +0 -0
  342. data/lib/onlinepayments/sdk/domain/three_d_secure.rb +0 -0
  343. data/lib/onlinepayments/sdk/domain/three_d_secure_base.rb +0 -0
  344. data/lib/onlinepayments/sdk/domain/three_d_secure_data.rb +0 -0
  345. data/lib/onlinepayments/sdk/domain/three_d_secure_results.rb +0 -0
  346. data/lib/onlinepayments/sdk/domain/token_card.rb +0 -0
  347. data/lib/onlinepayments/sdk/domain/token_card_data.rb +0 -0
  348. data/lib/onlinepayments/sdk/domain/token_card_specific_input.rb +0 -0
  349. data/lib/onlinepayments/sdk/domain/token_data.rb +0 -0
  350. data/lib/onlinepayments/sdk/domain/token_e_wallet.rb +0 -0
  351. data/lib/onlinepayments/sdk/domain/token_response.rb +0 -0
  352. data/lib/onlinepayments/sdk/domain/transaction.rb +0 -0
  353. data/lib/onlinepayments/sdk/domain/uploadable_file.rb +0 -0
  354. data/lib/onlinepayments/sdk/domain/validate_credentials_request.rb +0 -0
  355. data/lib/onlinepayments/sdk/domain/validate_credentials_response.rb +0 -0
  356. data/lib/onlinepayments/sdk/domain/value_mapping_element.rb +0 -0
  357. data/lib/onlinepayments/sdk/domain.rb +0 -0
  358. data/lib/onlinepayments/sdk/exception_factory.rb +0 -0
  359. data/lib/onlinepayments/sdk/factory.rb +0 -0
  360. data/lib/onlinepayments/sdk/idempotence_exception.rb +0 -0
  361. data/lib/onlinepayments/sdk/json/default_marshaller.rb +0 -0
  362. data/lib/onlinepayments/sdk/json/marshaller.rb +0 -0
  363. data/lib/onlinepayments/sdk/json/marshaller_syntax_exception.rb +0 -0
  364. data/lib/onlinepayments/sdk/json.rb +0 -0
  365. data/lib/onlinepayments/sdk/logging/communicator_logger.rb +0 -0
  366. data/lib/onlinepayments/sdk/logging/log_message_builder.rb +0 -0
  367. data/lib/onlinepayments/sdk/logging/logging_capable.rb +0 -0
  368. data/lib/onlinepayments/sdk/logging/obfuscation/body_obfuscator.rb +0 -0
  369. data/lib/onlinepayments/sdk/logging/obfuscation/header_obfuscator.rb +0 -0
  370. data/lib/onlinepayments/sdk/logging/obfuscation/obfuscation_capable.rb +0 -0
  371. data/lib/onlinepayments/sdk/logging/obfuscation/obfuscation_rule.rb +0 -0
  372. data/lib/onlinepayments/sdk/logging/obfuscation.rb +0 -0
  373. data/lib/onlinepayments/sdk/logging/request_log_message_builder.rb +0 -0
  374. data/lib/onlinepayments/sdk/logging/response_log_message_builder.rb +0 -0
  375. data/lib/onlinepayments/sdk/logging/ruby_communicator_logger.rb +0 -0
  376. data/lib/onlinepayments/sdk/logging/stdout_communicator_logger.rb +0 -0
  377. data/lib/onlinepayments/sdk/logging.rb +0 -0
  378. data/lib/onlinepayments/sdk/merchant/captures/captures_client.rb +2 -0
  379. data/lib/onlinepayments/sdk/merchant/captures.rb +0 -0
  380. data/lib/onlinepayments/sdk/merchant/cofseries/cof_series_client.rb +2 -0
  381. data/lib/onlinepayments/sdk/merchant/cofseries.rb +0 -0
  382. data/lib/onlinepayments/sdk/merchant/complete/complete_client.rb +2 -0
  383. data/lib/onlinepayments/sdk/merchant/complete.rb +0 -0
  384. data/lib/onlinepayments/sdk/merchant/hostedcheckout/hosted_checkout_client.rb +4 -0
  385. data/lib/onlinepayments/sdk/merchant/hostedcheckout.rb +0 -0
  386. data/lib/onlinepayments/sdk/merchant/hostedfields/hosted_fields_client.rb +2 -0
  387. data/lib/onlinepayments/sdk/merchant/hostedfields.rb +0 -0
  388. data/lib/onlinepayments/sdk/merchant/hostedtokenization/hosted_tokenization_client.rb +4 -0
  389. data/lib/onlinepayments/sdk/merchant/hostedtokenization.rb +0 -0
  390. data/lib/onlinepayments/sdk/merchant/mandates/mandates_client.rb +10 -0
  391. data/lib/onlinepayments/sdk/merchant/mandates.rb +0 -0
  392. data/lib/onlinepayments/sdk/merchant/merchant_client.rb +8 -0
  393. data/lib/onlinepayments/sdk/merchant/merchantbatch/merchant_batch_client.rb +126 -0
  394. data/lib/onlinepayments/sdk/merchant/merchantbatch.rb +4 -0
  395. data/lib/onlinepayments/sdk/merchant/paymentlinks/get_payment_links_in_bulk_params.rb +0 -0
  396. data/lib/onlinepayments/sdk/merchant/paymentlinks/payment_links_client.rb +6 -0
  397. data/lib/onlinepayments/sdk/merchant/paymentlinks.rb +0 -0
  398. data/lib/onlinepayments/sdk/merchant/payments/payments_client.rb +12 -0
  399. data/lib/onlinepayments/sdk/merchant/payments.rb +0 -0
  400. data/lib/onlinepayments/sdk/merchant/payouts/payouts_client.rb +4 -0
  401. data/lib/onlinepayments/sdk/merchant/payouts.rb +0 -0
  402. data/lib/onlinepayments/sdk/merchant/privacypolicy/get_privacy_policy_params.rb +2 -2
  403. data/lib/onlinepayments/sdk/merchant/privacypolicy/privacy_policy_client.rb +2 -0
  404. data/lib/onlinepayments/sdk/merchant/privacypolicy.rb +0 -0
  405. data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +6 -6
  406. data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +6 -6
  407. data/lib/onlinepayments/sdk/merchant/productgroups/product_groups_client.rb +4 -0
  408. data/lib/onlinepayments/sdk/merchant/productgroups.rb +0 -0
  409. data/lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb +4 -4
  410. data/lib/onlinepayments/sdk/merchant/products/get_payment_product_params.rb +6 -6
  411. data/lib/onlinepayments/sdk/merchant/products/get_payment_products_params.rb +6 -6
  412. data/lib/onlinepayments/sdk/merchant/products/get_product_directory_params.rb +2 -2
  413. data/lib/onlinepayments/sdk/merchant/products/products_client.rb +8 -0
  414. data/lib/onlinepayments/sdk/merchant/products.rb +0 -0
  415. data/lib/onlinepayments/sdk/merchant/refunds/refunds_client.rb +2 -0
  416. data/lib/onlinepayments/sdk/merchant/refunds.rb +0 -0
  417. data/lib/onlinepayments/sdk/merchant/services/services_client.rb +8 -0
  418. data/lib/onlinepayments/sdk/merchant/services.rb +0 -0
  419. data/lib/onlinepayments/sdk/merchant/sessions/sessions_client.rb +2 -0
  420. data/lib/onlinepayments/sdk/merchant/sessions.rb +0 -0
  421. data/lib/onlinepayments/sdk/merchant/subsequent/subsequent_client.rb +2 -0
  422. data/lib/onlinepayments/sdk/merchant/subsequent.rb +0 -0
  423. data/lib/onlinepayments/sdk/merchant/tokenization/get_card_data_by_payments_params.rb +1 -1
  424. data/lib/onlinepayments/sdk/merchant/tokenization/get_card_data_by_tokens_params.rb +1 -1
  425. data/lib/onlinepayments/sdk/merchant/tokenization/tokenization_client.rb +6 -0
  426. data/lib/onlinepayments/sdk/merchant/tokenization.rb +0 -0
  427. data/lib/onlinepayments/sdk/merchant/tokens/tokens_client.rb +6 -0
  428. data/lib/onlinepayments/sdk/merchant/tokens.rb +0 -0
  429. data/lib/onlinepayments/sdk/merchant/webhooks/webhooks_client.rb +4 -0
  430. data/lib/onlinepayments/sdk/merchant/webhooks.rb +0 -0
  431. data/lib/onlinepayments/sdk/merchant.rb +0 -0
  432. data/lib/onlinepayments/sdk/platform_exception.rb +0 -0
  433. data/lib/onlinepayments/sdk/proxy_configuration.rb +0 -0
  434. data/lib/onlinepayments/sdk/reference_exception.rb +0 -0
  435. data/lib/onlinepayments/sdk/validation_exception.rb +0 -0
  436. data/lib/onlinepayments/sdk/webhooks/api_version_mismatch_exception.rb +0 -0
  437. data/lib/onlinepayments/sdk/webhooks/in_memory_secret_key_store.rb +0 -0
  438. data/lib/onlinepayments/sdk/webhooks/secret_key_not_available_exception.rb +0 -0
  439. data/lib/onlinepayments/sdk/webhooks/secret_key_store.rb +0 -0
  440. data/lib/onlinepayments/sdk/webhooks/signature_validation_exception.rb +0 -0
  441. data/lib/onlinepayments/sdk/webhooks/signature_validator.rb +0 -0
  442. data/lib/onlinepayments/sdk/webhooks/webhooks_event.rb +8 -0
  443. data/lib/onlinepayments/sdk/webhooks/webhooks_helper.rb +0 -0
  444. data/lib/onlinepayments/sdk/webhooks.rb +0 -0
  445. data/lib/onlinepayments/sdk.rb +0 -0
  446. data/onlinepayments-sdk-ruby.gemspec +1 -1
  447. metadata +13 -2
@@ -0,0 +1,126 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/api_resource'
5
+ require 'onlinepayments/sdk/exception_factory'
6
+ require 'onlinepayments/sdk/communication/response_exception'
7
+ require 'onlinepayments/sdk/domain/error_response'
8
+ require 'onlinepayments/sdk/domain/get_batch_status_response'
9
+ require 'onlinepayments/sdk/domain/submit_batch_response'
10
+
11
+ module OnlinePayments
12
+ module SDK
13
+ module Merchant
14
+ module MerchantBatch
15
+ # MerchantBatch client. Thread-safe.
16
+ class MerchantBatchClient < OnlinePayments::SDK::ApiResource
17
+
18
+ # @param parent [OnlinePayments::SDK::ApiResource]
19
+ # @param path_context [Hash, nil]
20
+ def initialize(parent, path_context)
21
+ super(parent: parent, path_context: path_context)
22
+ end
23
+
24
+ # Resource /v2/!{merchantId}/merchant-batches - Submit batch
25
+ #
26
+ # @param body [OnlinePayments::SDK::Domain::SubmitBatchRequestBody]
27
+ # @param context [OnlinePayments::SDK::CallContext, nil]
28
+ # @return [OnlinePayments::SDK::Domain::SubmitBatchResponse]
29
+ # @raise [OnlinePayments::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
30
+ # @raise [OnlinePayments::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
31
+ # @raise [OnlinePayments::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
32
+ # @raise [OnlinePayments::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
33
+ # or there was a conflict (HTTP status code 404, 409 or 410)
34
+ # @raise [OnlinePayments::SDK::PlatformException] if something went wrong at the payment platform,
35
+ # the payment platform was unable to process a message from a downstream partner/acquirer,
36
+ # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
37
+ # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
38
+ def submit_batch(body, context = nil)
39
+ uri = instantiate_uri('/v2/{merchantId}/merchant-batches', nil)
40
+
41
+ context ||= OnlinePayments::SDK::CallContext.new
42
+ context.gzip = true
43
+
44
+ @communicator.post(
45
+ uri,
46
+ client_headers,
47
+ nil,
48
+ body,
49
+ OnlinePayments::SDK::Domain::SubmitBatchResponse,
50
+ context)
51
+ rescue OnlinePayments::SDK::Communication::ResponseException => e
52
+ error_type = OnlinePayments::SDK::Domain::ErrorResponse
53
+ error_object = @communicator.marshaller.unmarshal(e.body, error_type)
54
+ raise OnlinePayments::SDK.create_exception(e.status_code, e.body, error_object, context)
55
+ end
56
+
57
+ # Resource /v2/!{merchantId}/merchant-batches/!{merchantBatchReference}/process - Process batch transactions
58
+ #
59
+ # @param merchant_batch_reference [String]
60
+ # @param context [OnlinePayments::SDK::CallContext, nil]
61
+ # @raise [OnlinePayments::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
62
+ # @raise [OnlinePayments::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
63
+ # @raise [OnlinePayments::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
64
+ # @raise [OnlinePayments::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
65
+ # or there was a conflict (HTTP status code 404, 409 or 410)
66
+ # @raise [OnlinePayments::SDK::PlatformException] if something went wrong at the payment platform,
67
+ # the payment platform was unable to process a message from a downstream partner/acquirer,
68
+ # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
69
+ # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
70
+ def process_batch(merchant_batch_reference, context = nil)
71
+ path_context = {
72
+ 'merchantBatchReference'.freeze => merchant_batch_reference,
73
+ }
74
+ uri = instantiate_uri('/v2/{merchantId}/merchant-batches/{merchantBatchReference}/process', path_context)
75
+
76
+
77
+ @communicator.post(
78
+ uri,
79
+ client_headers,
80
+ nil,
81
+ nil,
82
+ nil,
83
+ context)
84
+ rescue OnlinePayments::SDK::Communication::ResponseException => e
85
+ error_type = OnlinePayments::SDK::Domain::ErrorResponse
86
+ error_object = @communicator.marshaller.unmarshal(e.body, error_type)
87
+ raise OnlinePayments::SDK.create_exception(e.status_code, e.body, error_object, context)
88
+ end
89
+
90
+ # Resource /v2/!{merchantId}/merchant-batches/!{merchantBatchReference} - Get batch status
91
+ #
92
+ # @param merchant_batch_reference [String]
93
+ # @param context [OnlinePayments::SDK::CallContext, nil]
94
+ # @return [OnlinePayments::SDK::Domain::GetBatchStatusResponse]
95
+ # @raise [OnlinePayments::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
96
+ # @raise [OnlinePayments::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
97
+ # @raise [OnlinePayments::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
98
+ # @raise [OnlinePayments::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
99
+ # or there was a conflict (HTTP status code 404, 409 or 410)
100
+ # @raise [OnlinePayments::SDK::PlatformException] if something went wrong at the payment platform,
101
+ # the payment platform was unable to process a message from a downstream partner/acquirer,
102
+ # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
103
+ # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
104
+ def get_batch_status(merchant_batch_reference, context = nil)
105
+ path_context = {
106
+ 'merchantBatchReference'.freeze => merchant_batch_reference,
107
+ }
108
+ uri = instantiate_uri('/v2/{merchantId}/merchant-batches/{merchantBatchReference}', path_context)
109
+
110
+
111
+ @communicator.get(
112
+ uri,
113
+ client_headers,
114
+ nil,
115
+ OnlinePayments::SDK::Domain::GetBatchStatusResponse,
116
+ context)
117
+ rescue OnlinePayments::SDK::Communication::ResponseException => e
118
+ error_type = OnlinePayments::SDK::Domain::ErrorResponse
119
+ error_object = @communicator.marshaller.unmarshal(e.body, error_type)
120
+ raise OnlinePayments::SDK.create_exception(e.status_code, e.body, error_object, context)
121
+ end
122
+ end
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,4 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ Dir[File.join(__dir__, 'merchantbatch', '*.rb')].each { |f| require f }
@@ -36,6 +36,8 @@ module OnlinePayments
36
36
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
37
37
  def create_payment_link(body, context = nil)
38
38
  uri = instantiate_uri('/v2/{merchantId}/paymentlinks', nil)
39
+
40
+
39
41
  @communicator.post(
40
42
  uri,
41
43
  client_headers,
@@ -68,6 +70,8 @@ module OnlinePayments
68
70
  'paymentLinkId'.freeze => payment_link_id,
69
71
  }
70
72
  uri = instantiate_uri('/v2/{merchantId}/paymentlinks/{paymentLinkId}', path_context)
73
+
74
+
71
75
  @communicator.get(
72
76
  uri,
73
77
  client_headers,
@@ -98,6 +102,8 @@ module OnlinePayments
98
102
  'paymentLinkId'.freeze => payment_link_id,
99
103
  }
100
104
  uri = instantiate_uri('/v2/{merchantId}/paymentlinks/{paymentLinkId}/cancel', path_context)
105
+
106
+
101
107
  @communicator.post(
102
108
  uri,
103
109
  client_headers,
File without changes
@@ -44,6 +44,8 @@ module OnlinePayments
44
44
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
45
45
  def create_payment(body, context = nil)
46
46
  uri = instantiate_uri('/v2/{merchantId}/payments', nil)
47
+
48
+
47
49
  @communicator.post(
48
50
  uri,
49
51
  client_headers,
@@ -76,6 +78,8 @@ module OnlinePayments
76
78
  'paymentId'.freeze => payment_id,
77
79
  }
78
80
  uri = instantiate_uri('/v2/{merchantId}/payments/{paymentId}', path_context)
81
+
82
+
79
83
  @communicator.get(
80
84
  uri,
81
85
  client_headers,
@@ -107,6 +111,8 @@ module OnlinePayments
107
111
  'paymentId'.freeze => payment_id,
108
112
  }
109
113
  uri = instantiate_uri('/v2/{merchantId}/payments/{paymentId}/details', path_context)
114
+
115
+
110
116
  @communicator.get(
111
117
  uri,
112
118
  client_headers,
@@ -139,6 +145,8 @@ module OnlinePayments
139
145
  'paymentId'.freeze => payment_id,
140
146
  }
141
147
  uri = instantiate_uri('/v2/{merchantId}/payments/{paymentId}/cancel', path_context)
148
+
149
+
142
150
  @communicator.post(
143
151
  uri,
144
152
  client_headers,
@@ -172,6 +180,8 @@ module OnlinePayments
172
180
  'paymentId'.freeze => payment_id,
173
181
  }
174
182
  uri = instantiate_uri('/v2/{merchantId}/payments/{paymentId}/capture', path_context)
183
+
184
+
175
185
  @communicator.post(
176
186
  uri,
177
187
  client_headers,
@@ -206,6 +216,8 @@ module OnlinePayments
206
216
  'paymentId'.freeze => payment_id,
207
217
  }
208
218
  uri = instantiate_uri('/v2/{merchantId}/payments/{paymentId}/refund', path_context)
219
+
220
+
209
221
  @communicator.post(
210
222
  uri,
211
223
  client_headers,
File without changes
@@ -38,6 +38,8 @@ module OnlinePayments
38
38
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
39
39
  def create_payout(body, context = nil)
40
40
  uri = instantiate_uri('/v2/{merchantId}/payouts', nil)
41
+
42
+
41
43
  @communicator.post(
42
44
  uri,
43
45
  client_headers,
@@ -70,6 +72,8 @@ module OnlinePayments
70
72
  'payoutId'.freeze => payout_id,
71
73
  }
72
74
  uri = instantiate_uri('/v2/{merchantId}/payouts/{payoutId}', path_context)
75
+
76
+
73
77
  @communicator.get(
74
78
  uri,
75
79
  client_headers,
File without changes
@@ -21,8 +21,8 @@ module OnlinePayments
21
21
  # @return [Array<OnlinePayments::SDK::Communication::RequestParam>] representing the attributes of this class
22
22
  def to_request_parameters
23
23
  result = []
24
- result << RequestParam.new('locale', @locale) unless @locale.nil?
25
- result << RequestParam.new('paymentProductId', @payment_product_id.to_s) unless @payment_product_id.nil?
24
+ result << OnlinePayments::SDK::Communication::RequestParam.new('locale', @locale) unless @locale.nil?
25
+ result << OnlinePayments::SDK::Communication::RequestParam.new('paymentProductId', @payment_product_id.to_s) unless @payment_product_id.nil?
26
26
  result
27
27
  end
28
28
  end
@@ -36,6 +36,8 @@ module OnlinePayments
36
36
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
37
37
  def get_privacy_policy(query, context = nil)
38
38
  uri = instantiate_uri('/v2/{merchantId}/services/privacypolicy', nil)
39
+
40
+
39
41
  @communicator.get(
40
42
  uri,
41
43
  client_headers,
File without changes
@@ -44,13 +44,13 @@ module OnlinePayments
44
44
  # @return [Array<OnlinePayments::SDK::Communication::RequestParam>] representing the attributes of this class
45
45
  def to_request_parameters
46
46
  result = []
47
- result << RequestParam.new('countryCode', @country_code) unless @country_code.nil?
48
- result << RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
49
- result << RequestParam.new('locale', @locale) unless @locale.nil?
50
- result << RequestParam.new('amount', @amount.to_s) unless @amount.nil?
51
- result << RequestParam.new('isRecurring', @is_recurring.to_s) unless @is_recurring.nil?
47
+ result << OnlinePayments::SDK::Communication::RequestParam.new('countryCode', @country_code) unless @country_code.nil?
48
+ result << OnlinePayments::SDK::Communication::RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
49
+ result << OnlinePayments::SDK::Communication::RequestParam.new('locale', @locale) unless @locale.nil?
50
+ result << OnlinePayments::SDK::Communication::RequestParam.new('amount', @amount.to_s) unless @amount.nil?
51
+ result << OnlinePayments::SDK::Communication::RequestParam.new('isRecurring', @is_recurring.to_s) unless @is_recurring.nil?
52
52
  unless @hide.nil?
53
- @hide.each {|e| result << RequestParam.new('hide', e)}
53
+ @hide.each {|e| result << OnlinePayments::SDK::Communication::RequestParam.new('hide', e)}
54
54
  end
55
55
  result
56
56
  end
@@ -44,13 +44,13 @@ module OnlinePayments
44
44
  # @return [Array<OnlinePayments::SDK::Communication::RequestParam>] representing the attributes of this class
45
45
  def to_request_parameters
46
46
  result = []
47
- result << RequestParam.new('countryCode', @country_code) unless @country_code.nil?
48
- result << RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
49
- result << RequestParam.new('locale', @locale) unless @locale.nil?
50
- result << RequestParam.new('amount', @amount.to_s) unless @amount.nil?
51
- result << RequestParam.new('isRecurring', @is_recurring.to_s) unless @is_recurring.nil?
47
+ result << OnlinePayments::SDK::Communication::RequestParam.new('countryCode', @country_code) unless @country_code.nil?
48
+ result << OnlinePayments::SDK::Communication::RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
49
+ result << OnlinePayments::SDK::Communication::RequestParam.new('locale', @locale) unless @locale.nil?
50
+ result << OnlinePayments::SDK::Communication::RequestParam.new('amount', @amount.to_s) unless @amount.nil?
51
+ result << OnlinePayments::SDK::Communication::RequestParam.new('isRecurring', @is_recurring.to_s) unless @is_recurring.nil?
52
52
  unless @hide.nil?
53
- @hide.each {|e| result << RequestParam.new('hide', e)}
53
+ @hide.each {|e| result << OnlinePayments::SDK::Communication::RequestParam.new('hide', e)}
54
54
  end
55
55
  result
56
56
  end
@@ -37,6 +37,8 @@ module OnlinePayments
37
37
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
38
38
  def get_product_groups(query, context = nil)
39
39
  uri = instantiate_uri('/v2/{merchantId}/productgroups', nil)
40
+
41
+
40
42
  @communicator.get(
41
43
  uri,
42
44
  client_headers,
@@ -69,6 +71,8 @@ module OnlinePayments
69
71
  'paymentProductGroupId'.freeze => payment_product_group_id,
70
72
  }
71
73
  uri = instantiate_uri('/v2/{merchantId}/productgroups/{paymentProductGroupId}', path_context)
74
+
75
+
72
76
  @communicator.get(
73
77
  uri,
74
78
  client_headers,
File without changes
@@ -27,10 +27,10 @@ module OnlinePayments
27
27
  # @return [Array<OnlinePayments::SDK::Communication::RequestParam>] representing the attributes of this class
28
28
  def to_request_parameters
29
29
  result = []
30
- result << RequestParam.new('countryCode', @country_code) unless @country_code.nil?
31
- result << RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
32
- result << RequestParam.new('amount', @amount.to_s) unless @amount.nil?
33
- result << RequestParam.new('isRecurring', @is_recurring.to_s) unless @is_recurring.nil?
30
+ result << OnlinePayments::SDK::Communication::RequestParam.new('countryCode', @country_code) unless @country_code.nil?
31
+ result << OnlinePayments::SDK::Communication::RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
32
+ result << OnlinePayments::SDK::Communication::RequestParam.new('amount', @amount.to_s) unless @amount.nil?
33
+ result << OnlinePayments::SDK::Communication::RequestParam.new('isRecurring', @is_recurring.to_s) unless @is_recurring.nil?
34
34
  result
35
35
  end
36
36
  end
@@ -43,13 +43,13 @@ module OnlinePayments
43
43
  # @return [Array<OnlinePayments::SDK::Communication::RequestParam>] representing the attributes of this class
44
44
  def to_request_parameters
45
45
  result = []
46
- result << RequestParam.new('countryCode', @country_code) unless @country_code.nil?
47
- result << RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
48
- result << RequestParam.new('locale', @locale) unless @locale.nil?
49
- result << RequestParam.new('amount', @amount.to_s) unless @amount.nil?
50
- result << RequestParam.new('isRecurring', @is_recurring.to_s) unless @is_recurring.nil?
46
+ result << OnlinePayments::SDK::Communication::RequestParam.new('countryCode', @country_code) unless @country_code.nil?
47
+ result << OnlinePayments::SDK::Communication::RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
48
+ result << OnlinePayments::SDK::Communication::RequestParam.new('locale', @locale) unless @locale.nil?
49
+ result << OnlinePayments::SDK::Communication::RequestParam.new('amount', @amount.to_s) unless @amount.nil?
50
+ result << OnlinePayments::SDK::Communication::RequestParam.new('isRecurring', @is_recurring.to_s) unless @is_recurring.nil?
51
51
  unless @hide.nil?
52
- @hide.each {|e| result << RequestParam.new('hide', e)}
52
+ @hide.each {|e| result << OnlinePayments::SDK::Communication::RequestParam.new('hide', e)}
53
53
  end
54
54
  result
55
55
  end
@@ -43,13 +43,13 @@ module OnlinePayments
43
43
  # @return [Array<OnlinePayments::SDK::Communication::RequestParam>] representing the attributes of this class
44
44
  def to_request_parameters
45
45
  result = []
46
- result << RequestParam.new('countryCode', @country_code) unless @country_code.nil?
47
- result << RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
48
- result << RequestParam.new('locale', @locale) unless @locale.nil?
49
- result << RequestParam.new('amount', @amount.to_s) unless @amount.nil?
50
- result << RequestParam.new('isRecurring', @is_recurring.to_s) unless @is_recurring.nil?
46
+ result << OnlinePayments::SDK::Communication::RequestParam.new('countryCode', @country_code) unless @country_code.nil?
47
+ result << OnlinePayments::SDK::Communication::RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
48
+ result << OnlinePayments::SDK::Communication::RequestParam.new('locale', @locale) unless @locale.nil?
49
+ result << OnlinePayments::SDK::Communication::RequestParam.new('amount', @amount.to_s) unless @amount.nil?
50
+ result << OnlinePayments::SDK::Communication::RequestParam.new('isRecurring', @is_recurring.to_s) unless @is_recurring.nil?
51
51
  unless @hide.nil?
52
- @hide.each {|e| result << RequestParam.new('hide', e)}
52
+ @hide.each {|e| result << OnlinePayments::SDK::Communication::RequestParam.new('hide', e)}
53
53
  end
54
54
  result
55
55
  end
@@ -21,8 +21,8 @@ module OnlinePayments
21
21
  # @return [Array<OnlinePayments::SDK::Communication::RequestParam>] representing the attributes of this class
22
22
  def to_request_parameters
23
23
  result = []
24
- result << RequestParam.new('countryCode', @country_code) unless @country_code.nil?
25
- result << RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
24
+ result << OnlinePayments::SDK::Communication::RequestParam.new('countryCode', @country_code) unless @country_code.nil?
25
+ result << OnlinePayments::SDK::Communication::RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
26
26
  result
27
27
  end
28
28
  end
@@ -39,6 +39,8 @@ module OnlinePayments
39
39
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
40
40
  def get_payment_products(query, context = nil)
41
41
  uri = instantiate_uri('/v2/{merchantId}/products', nil)
42
+
43
+
42
44
  @communicator.get(
43
45
  uri,
44
46
  client_headers,
@@ -71,6 +73,8 @@ module OnlinePayments
71
73
  'paymentProductId'.freeze => payment_product_id.to_s,
72
74
  }
73
75
  uri = instantiate_uri('/v2/{merchantId}/products/{paymentProductId}', path_context)
76
+
77
+
74
78
  @communicator.get(
75
79
  uri,
76
80
  client_headers,
@@ -103,6 +107,8 @@ module OnlinePayments
103
107
  'paymentProductId'.freeze => payment_product_id.to_s,
104
108
  }
105
109
  uri = instantiate_uri('/v2/{merchantId}/products/{paymentProductId}/networks', path_context)
110
+
111
+
106
112
  @communicator.get(
107
113
  uri,
108
114
  client_headers,
@@ -135,6 +141,8 @@ module OnlinePayments
135
141
  'paymentProductId'.freeze => payment_product_id.to_s,
136
142
  }
137
143
  uri = instantiate_uri('/v2/{merchantId}/products/{paymentProductId}/directory', path_context)
144
+
145
+
138
146
  @communicator.get(
139
147
  uri,
140
148
  client_headers,
File without changes
@@ -39,6 +39,8 @@ module OnlinePayments
39
39
  'paymentId'.freeze => payment_id,
40
40
  }
41
41
  uri = instantiate_uri('/v2/{merchantId}/payments/{paymentId}/refunds', path_context)
42
+
43
+
42
44
  @communicator.get(
43
45
  uri,
44
46
  client_headers,
File without changes
@@ -38,6 +38,8 @@ module OnlinePayments
38
38
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
39
39
  def test_connection(context = nil)
40
40
  uri = instantiate_uri('/v2/{merchantId}/services/testconnection', nil)
41
+
42
+
41
43
  @communicator.get(
42
44
  uri,
43
45
  client_headers,
@@ -66,6 +68,8 @@ module OnlinePayments
66
68
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
67
69
  def get_iin_details(body, context = nil)
68
70
  uri = instantiate_uri('/v2/{merchantId}/services/getIINdetails', nil)
71
+
72
+
69
73
  @communicator.post(
70
74
  uri,
71
75
  client_headers,
@@ -95,6 +99,8 @@ module OnlinePayments
95
99
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
96
100
  def get_dcc_rate_inquiry(body, context = nil)
97
101
  uri = instantiate_uri('/v2/{merchantId}/services/dccrate', nil)
102
+
103
+
98
104
  @communicator.post(
99
105
  uri,
100
106
  client_headers,
@@ -124,6 +130,8 @@ module OnlinePayments
124
130
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
125
131
  def surcharge_calculation(body, context = nil)
126
132
  uri = instantiate_uri('/v2/{merchantId}/services/surchargecalculation', nil)
133
+
134
+
127
135
  @communicator.post(
128
136
  uri,
129
137
  client_headers,
File without changes
@@ -36,6 +36,8 @@ module OnlinePayments
36
36
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
37
37
  def create_session(body, context = nil)
38
38
  uri = instantiate_uri('/v2/{merchantId}/sessions', nil)
39
+
40
+
39
41
  @communicator.post(
40
42
  uri,
41
43
  client_headers,
File without changes
@@ -41,6 +41,8 @@ module OnlinePayments
41
41
  'paymentId'.freeze => payment_id,
42
42
  }
43
43
  uri = instantiate_uri('/v2/{merchantId}/payments/{paymentId}/subsequent', path_context)
44
+
45
+
44
46
  @communicator.post(
45
47
  uri,
46
48
  client_headers,
File without changes
@@ -29,7 +29,7 @@ module OnlinePayments
29
29
  def to_request_parameters
30
30
  result = []
31
31
  unless @payments.nil?
32
- @payments.each {|e| result << RequestParam.new('payments', e)}
32
+ @payments.each {|e| result << OnlinePayments::SDK::Communication::RequestParam.new('payments', e)}
33
33
  end
34
34
  result
35
35
  end
@@ -29,7 +29,7 @@ module OnlinePayments
29
29
  def to_request_parameters
30
30
  result = []
31
31
  unless @tokens.nil?
32
- @tokens.each {|e| result << RequestParam.new('tokens', e)}
32
+ @tokens.each {|e| result << OnlinePayments::SDK::Communication::RequestParam.new('tokens', e)}
33
33
  end
34
34
  result
35
35
  end
@@ -37,6 +37,8 @@ module OnlinePayments
37
37
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
38
38
  def create_certificate(body, context = nil)
39
39
  uri = instantiate_uri('/v2/{merchantId}/detokenize/csr', nil)
40
+
41
+
40
42
  @communicator.post(
41
43
  uri,
42
44
  client_headers,
@@ -66,6 +68,8 @@ module OnlinePayments
66
68
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
67
69
  def get_card_data_by_tokens(query, context = nil)
68
70
  uri = instantiate_uri('/v2/{merchantId}/detokenize/tokens', nil)
71
+
72
+
69
73
  @communicator.get(
70
74
  uri,
71
75
  client_headers,
@@ -94,6 +98,8 @@ module OnlinePayments
94
98
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
95
99
  def get_card_data_by_payments(query, context = nil)
96
100
  uri = instantiate_uri('/v2/{merchantId}/detokenize/payments', nil)
101
+
102
+
97
103
  @communicator.get(
98
104
  uri,
99
105
  client_headers,
File without changes
@@ -37,6 +37,8 @@ module OnlinePayments
37
37
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
38
38
  def create_token(body, context = nil)
39
39
  uri = instantiate_uri('/v2/{merchantId}/tokens', nil)
40
+
41
+
40
42
  @communicator.post(
41
43
  uri,
42
44
  client_headers,
@@ -69,6 +71,8 @@ module OnlinePayments
69
71
  'tokenId'.freeze => token_id,
70
72
  }
71
73
  uri = instantiate_uri('/v2/{merchantId}/tokens/{tokenId}', path_context)
74
+
75
+
72
76
  @communicator.get(
73
77
  uri,
74
78
  client_headers,
@@ -99,6 +103,8 @@ module OnlinePayments
99
103
  'tokenId'.freeze => token_id,
100
104
  }
101
105
  uri = instantiate_uri('/v2/{merchantId}/tokens/{tokenId}', path_context)
106
+
107
+
102
108
  @communicator.delete(
103
109
  uri,
104
110
  client_headers,
File without changes
@@ -36,6 +36,8 @@ module OnlinePayments
36
36
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
37
37
  def validate_webhook_credentials(body, context = nil)
38
38
  uri = instantiate_uri('/v2/{merchantId}/webhooks/validateCredentials', nil)
39
+
40
+
39
41
  @communicator.post(
40
42
  uri,
41
43
  client_headers,
@@ -64,6 +66,8 @@ module OnlinePayments
64
66
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
65
67
  def send_test_webhook(body, context = nil)
66
68
  uri = instantiate_uri('/v2/{merchantId}/webhooks/sendtest', nil)
69
+
70
+
67
71
  @communicator.post(
68
72
  uri,
69
73
  client_headers,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes