onlinepayments-sdk-ruby 3.0.0

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 (269) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +2 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +140 -0
  5. data/Rakefile +34 -0
  6. data/lib/onlinepayments/sdk/api_exception.rb +42 -0
  7. data/lib/onlinepayments/sdk/api_resource.rb +115 -0
  8. data/lib/onlinepayments/sdk/authenticator.rb +16 -0
  9. data/lib/onlinepayments/sdk/authorization_exception.rb +13 -0
  10. data/lib/onlinepayments/sdk/call_context.rb +26 -0
  11. data/lib/onlinepayments/sdk/client.rb +82 -0
  12. data/lib/onlinepayments/sdk/communication_exception.rb +16 -0
  13. data/lib/onlinepayments/sdk/communicator.rb +300 -0
  14. data/lib/onlinepayments/sdk/communicator_configuration.rb +59 -0
  15. data/lib/onlinepayments/sdk/connection.rb +41 -0
  16. data/lib/onlinepayments/sdk/data_object.rb +31 -0
  17. data/lib/onlinepayments/sdk/declined_payment_exception.rb +30 -0
  18. data/lib/onlinepayments/sdk/declined_payout_exception.rb +32 -0
  19. data/lib/onlinepayments/sdk/declined_refund_exception.rb +32 -0
  20. data/lib/onlinepayments/sdk/declined_transaction_exception.rb +16 -0
  21. data/lib/onlinepayments/sdk/defaultimpl/authorization_type.rb +24 -0
  22. data/lib/onlinepayments/sdk/defaultimpl/default_authenticator.rb +108 -0
  23. data/lib/onlinepayments/sdk/defaultimpl/default_connection.rb +295 -0
  24. data/lib/onlinepayments/sdk/defaultimpl/default_marshaller.rb +32 -0
  25. data/lib/onlinepayments/sdk/defaultimpl.rb +6 -0
  26. data/lib/onlinepayments/sdk/domain/account_on_file.rb +49 -0
  27. data/lib/onlinepayments/sdk/domain/account_on_file_attribute.rb +38 -0
  28. data/lib/onlinepayments/sdk/domain/account_on_file_display_hints.rb +37 -0
  29. data/lib/onlinepayments/sdk/domain/additional_order_input.rb +54 -0
  30. data/lib/onlinepayments/sdk/domain/address.rb +50 -0
  31. data/lib/onlinepayments/sdk/domain/address_personal.rb +58 -0
  32. data/lib/onlinepayments/sdk/domain/airline_data.rb +128 -0
  33. data/lib/onlinepayments/sdk/domain/airline_flight_leg.rb +102 -0
  34. data/lib/onlinepayments/sdk/domain/airline_passenger.rb +38 -0
  35. data/lib/onlinepayments/sdk/domain/amount_breakdown.rb +30 -0
  36. data/lib/onlinepayments/sdk/domain/amount_of_money.rb +30 -0
  37. data/lib/onlinepayments/sdk/domain/api_error.rb +46 -0
  38. data/lib/onlinepayments/sdk/domain/bank_account_iban.rb +26 -0
  39. data/lib/onlinepayments/sdk/domain/browser_data.rb +42 -0
  40. data/lib/onlinepayments/sdk/domain/cancel_payment_response.rb +30 -0
  41. data/lib/onlinepayments/sdk/domain/capture.rb +46 -0
  42. data/lib/onlinepayments/sdk/domain/capture_output.rb +82 -0
  43. data/lib/onlinepayments/sdk/domain/capture_payment_request.rb +38 -0
  44. data/lib/onlinepayments/sdk/domain/capture_response.rb +46 -0
  45. data/lib/onlinepayments/sdk/domain/capture_status_output.rb +26 -0
  46. data/lib/onlinepayments/sdk/domain/captures_response.rb +33 -0
  47. data/lib/onlinepayments/sdk/domain/card.rb +38 -0
  48. data/lib/onlinepayments/sdk/domain/card_essentials.rb +34 -0
  49. data/lib/onlinepayments/sdk/domain/card_fraud_results.rb +34 -0
  50. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +98 -0
  51. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +86 -0
  52. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb +26 -0
  53. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +78 -0
  54. data/lib/onlinepayments/sdk/domain/card_payout_method_specific_input.rb +38 -0
  55. data/lib/onlinepayments/sdk/domain/card_recurrence_details.rb +26 -0
  56. data/lib/onlinepayments/sdk/domain/card_without_cvv.rb +34 -0
  57. data/lib/onlinepayments/sdk/domain/company_information.rb +26 -0
  58. data/lib/onlinepayments/sdk/domain/complete_payment_card_payment_method_specific_input.rb +30 -0
  59. data/lib/onlinepayments/sdk/domain/complete_payment_request.rb +38 -0
  60. data/lib/onlinepayments/sdk/domain/complete_payment_response.rb +46 -0
  61. data/lib/onlinepayments/sdk/domain/contact_details.rb +42 -0
  62. data/lib/onlinepayments/sdk/domain/create_hosted_checkout_request.rb +78 -0
  63. data/lib/onlinepayments/sdk/domain/create_hosted_checkout_response.rb +48 -0
  64. data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_request.rb +38 -0
  65. data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_response.rb +50 -0
  66. data/lib/onlinepayments/sdk/domain/create_mandate_request.rb +58 -0
  67. data/lib/onlinepayments/sdk/domain/create_mandate_response.rb +38 -0
  68. data/lib/onlinepayments/sdk/domain/create_mandate_with_return_url.rb +58 -0
  69. data/lib/onlinepayments/sdk/domain/create_payment_request.rb +74 -0
  70. data/lib/onlinepayments/sdk/domain/create_payment_response.rb +46 -0
  71. data/lib/onlinepayments/sdk/domain/create_payout_request.rb +46 -0
  72. data/lib/onlinepayments/sdk/domain/create_token_request.rb +34 -0
  73. data/lib/onlinepayments/sdk/domain/created_payment_output.rb +34 -0
  74. data/lib/onlinepayments/sdk/domain/created_token_response.rb +50 -0
  75. data/lib/onlinepayments/sdk/domain/customer.rb +86 -0
  76. data/lib/onlinepayments/sdk/domain/customer_account.rb +70 -0
  77. data/lib/onlinepayments/sdk/domain/customer_account_authentication.rb +30 -0
  78. data/lib/onlinepayments/sdk/domain/customer_device.rb +50 -0
  79. data/lib/onlinepayments/sdk/domain/customer_payment_activity.rb +34 -0
  80. data/lib/onlinepayments/sdk/domain/customer_token.rb +46 -0
  81. data/lib/onlinepayments/sdk/domain/decrypted_payment_data.rb +42 -0
  82. data/lib/onlinepayments/sdk/domain/directory_entry.rb +34 -0
  83. data/lib/onlinepayments/sdk/domain/empty_validator.rb +12 -0
  84. data/lib/onlinepayments/sdk/domain/error_response.rb +37 -0
  85. data/lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb +58 -0
  86. data/lib/onlinepayments/sdk/domain/external_token_linked.rb +34 -0
  87. data/lib/onlinepayments/sdk/domain/fixed_list_validator.rb +32 -0
  88. data/lib/onlinepayments/sdk/domain/fraud_fields.rb +30 -0
  89. data/lib/onlinepayments/sdk/domain/fraud_results.rb +26 -0
  90. data/lib/onlinepayments/sdk/domain/g_pay_three_d_secure.rb +46 -0
  91. data/lib/onlinepayments/sdk/domain/get_hosted_checkout_response.rb +34 -0
  92. data/lib/onlinepayments/sdk/domain/get_hosted_tokenization_response.rb +34 -0
  93. data/lib/onlinepayments/sdk/domain/get_iin_details_request.rb +34 -0
  94. data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +45 -0
  95. data/lib/onlinepayments/sdk/domain/get_mandate_response.rb +30 -0
  96. data/lib/onlinepayments/sdk/domain/get_payment_product_groups_response.rb +33 -0
  97. data/lib/onlinepayments/sdk/domain/get_payment_products_response.rb +33 -0
  98. data/lib/onlinepayments/sdk/domain/gift_card_purchase.rb +34 -0
  99. data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_input.rb +66 -0
  100. data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_output.rb +30 -0
  101. data/lib/onlinepayments/sdk/domain/iin_detail.rb +30 -0
  102. data/lib/onlinepayments/sdk/domain/label_template_element.rb +30 -0
  103. data/lib/onlinepayments/sdk/domain/length_validator.rb +30 -0
  104. data/lib/onlinepayments/sdk/domain/line_item.rb +46 -0
  105. data/lib/onlinepayments/sdk/domain/line_item_invoice_data.rb +26 -0
  106. data/lib/onlinepayments/sdk/domain/loan_recipient.rb +42 -0
  107. data/lib/onlinepayments/sdk/domain/lodging_data.rb +26 -0
  108. data/lib/onlinepayments/sdk/domain/mandate_address.rb +42 -0
  109. data/lib/onlinepayments/sdk/domain/mandate_contact_details.rb +26 -0
  110. data/lib/onlinepayments/sdk/domain/mandate_customer.rb +58 -0
  111. data/lib/onlinepayments/sdk/domain/mandate_merchant_action.rb +34 -0
  112. data/lib/onlinepayments/sdk/domain/mandate_personal_information.rb +34 -0
  113. data/lib/onlinepayments/sdk/domain/mandate_personal_name.rb +30 -0
  114. data/lib/onlinepayments/sdk/domain/mandate_redirect_data.rb +30 -0
  115. data/lib/onlinepayments/sdk/domain/mandate_response.rb +50 -0
  116. data/lib/onlinepayments/sdk/domain/merchant_action.rb +34 -0
  117. data/lib/onlinepayments/sdk/domain/mobile_payment_data.rb +30 -0
  118. data/lib/onlinepayments/sdk/domain/mobile_payment_method_hosted_checkout_specific_input.rb +30 -0
  119. data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_input.rb +62 -0
  120. data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_output.rb +58 -0
  121. data/lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb +30 -0
  122. data/lib/onlinepayments/sdk/domain/operation_output.rb +58 -0
  123. data/lib/onlinepayments/sdk/domain/order.rb +70 -0
  124. data/lib/onlinepayments/sdk/domain/order_line_details.rb +54 -0
  125. data/lib/onlinepayments/sdk/domain/order_references.rb +34 -0
  126. data/lib/onlinepayments/sdk/domain/order_status_output.rb +49 -0
  127. data/lib/onlinepayments/sdk/domain/order_type_information.rb +30 -0
  128. data/lib/onlinepayments/sdk/domain/payment_account_on_file.rb +30 -0
  129. data/lib/onlinepayments/sdk/domain/payment_context.rb +38 -0
  130. data/lib/onlinepayments/sdk/domain/payment_creation_output.rb +38 -0
  131. data/lib/onlinepayments/sdk/domain/payment_details_response.rb +65 -0
  132. data/lib/onlinepayments/sdk/domain/payment_error_response.rb +45 -0
  133. data/lib/onlinepayments/sdk/domain/payment_output.rb +82 -0
  134. data/lib/onlinepayments/sdk/domain/payment_product.rb +102 -0
  135. data/lib/onlinepayments/sdk/domain/payment_product130_specific_input.rb +30 -0
  136. data/lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb +38 -0
  137. data/lib/onlinepayments/sdk/domain/payment_product302_specific_data.rb +32 -0
  138. data/lib/onlinepayments/sdk/domain/payment_product320_specific_data.rb +36 -0
  139. data/lib/onlinepayments/sdk/domain/payment_product5100_specific_input.rb +26 -0
  140. data/lib/onlinepayments/sdk/domain/payment_product5402_specific_output.rb +26 -0
  141. data/lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb +34 -0
  142. data/lib/onlinepayments/sdk/domain/payment_product771_specific_output.rb +26 -0
  143. data/lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb +54 -0
  144. data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +53 -0
  145. data/lib/onlinepayments/sdk/domain/payment_product_display_hints.rb +34 -0
  146. data/lib/onlinepayments/sdk/domain/payment_product_field.rb +46 -0
  147. data/lib/onlinepayments/sdk/domain/payment_product_field_data_restrictions.rb +34 -0
  148. data/lib/onlinepayments/sdk/domain/payment_product_field_display_element.rb +38 -0
  149. data/lib/onlinepayments/sdk/domain/payment_product_field_display_hints.rb +70 -0
  150. data/lib/onlinepayments/sdk/domain/payment_product_field_form_element.rb +37 -0
  151. data/lib/onlinepayments/sdk/domain/payment_product_field_tooltip.rb +30 -0
  152. data/lib/onlinepayments/sdk/domain/payment_product_field_validators.rb +90 -0
  153. data/lib/onlinepayments/sdk/domain/payment_product_filter.rb +42 -0
  154. data/lib/onlinepayments/sdk/domain/payment_product_filters_hosted_checkout.rb +37 -0
  155. data/lib/onlinepayments/sdk/domain/payment_product_group.rb +52 -0
  156. data/lib/onlinepayments/sdk/domain/payment_product_networks_response.rb +32 -0
  157. data/lib/onlinepayments/sdk/domain/payment_references.rb +30 -0
  158. data/lib/onlinepayments/sdk/domain/payment_response.rb +54 -0
  159. data/lib/onlinepayments/sdk/domain/payment_status_output.rb +57 -0
  160. data/lib/onlinepayments/sdk/domain/payout_error_response.rb +45 -0
  161. data/lib/onlinepayments/sdk/domain/payout_output.rb +30 -0
  162. data/lib/onlinepayments/sdk/domain/payout_response.rb +46 -0
  163. data/lib/onlinepayments/sdk/domain/payout_result.rb +46 -0
  164. data/lib/onlinepayments/sdk/domain/payout_status_output.rb +34 -0
  165. data/lib/onlinepayments/sdk/domain/personal_information.rb +38 -0
  166. data/lib/onlinepayments/sdk/domain/personal_information_token.rb +30 -0
  167. data/lib/onlinepayments/sdk/domain/personal_name.rb +34 -0
  168. data/lib/onlinepayments/sdk/domain/personal_name_token.rb +30 -0
  169. data/lib/onlinepayments/sdk/domain/product_directory.rb +33 -0
  170. data/lib/onlinepayments/sdk/domain/protection_eligibility.rb +30 -0
  171. data/lib/onlinepayments/sdk/domain/range_validator.rb +30 -0
  172. data/lib/onlinepayments/sdk/domain/redirect_data.rb +30 -0
  173. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +66 -0
  174. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +66 -0
  175. data/lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb +26 -0
  176. data/lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb +26 -0
  177. data/lib/onlinepayments/sdk/domain/redirection_data.rb +26 -0
  178. data/lib/onlinepayments/sdk/domain/refund_card_method_specific_output.rb +30 -0
  179. data/lib/onlinepayments/sdk/domain/refund_e_wallet_method_specific_output.rb +38 -0
  180. data/lib/onlinepayments/sdk/domain/refund_error_response.rb +45 -0
  181. data/lib/onlinepayments/sdk/domain/refund_mobile_method_specific_output.rb +34 -0
  182. data/lib/onlinepayments/sdk/domain/refund_output.rb +82 -0
  183. data/lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb +34 -0
  184. data/lib/onlinepayments/sdk/domain/refund_payment_product840_specific_output.rb +30 -0
  185. data/lib/onlinepayments/sdk/domain/refund_redirect_method_specific_output.rb +30 -0
  186. data/lib/onlinepayments/sdk/domain/refund_request.rb +38 -0
  187. data/lib/onlinepayments/sdk/domain/refund_response.rb +46 -0
  188. data/lib/onlinepayments/sdk/domain/refunds_response.rb +33 -0
  189. data/lib/onlinepayments/sdk/domain/regular_expression_validator.rb +26 -0
  190. data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input.rb +34 -0
  191. data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input_base.rb +34 -0
  192. data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb +42 -0
  193. data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input.rb +34 -0
  194. data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input_base.rb +34 -0
  195. data/lib/onlinepayments/sdk/domain/session_request.rb +32 -0
  196. data/lib/onlinepayments/sdk/domain/session_response.rb +48 -0
  197. data/lib/onlinepayments/sdk/domain/shipping.rb +58 -0
  198. data/lib/onlinepayments/sdk/domain/shopping_cart.rb +64 -0
  199. data/lib/onlinepayments/sdk/domain/shopping_cart_extension.rb +52 -0
  200. data/lib/onlinepayments/sdk/domain/test_connection.rb +26 -0
  201. data/lib/onlinepayments/sdk/domain/three_d_secure.rb +78 -0
  202. data/lib/onlinepayments/sdk/domain/three_d_secure_base.rb +58 -0
  203. data/lib/onlinepayments/sdk/domain/three_d_secure_data.rb +34 -0
  204. data/lib/onlinepayments/sdk/domain/three_d_secure_results.rb +30 -0
  205. data/lib/onlinepayments/sdk/domain/token_card.rb +34 -0
  206. data/lib/onlinepayments/sdk/domain/token_card_data.rb +30 -0
  207. data/lib/onlinepayments/sdk/domain/token_card_specific_input.rb +30 -0
  208. data/lib/onlinepayments/sdk/domain/token_data.rb +30 -0
  209. data/lib/onlinepayments/sdk/domain/token_e_wallet.rb +34 -0
  210. data/lib/onlinepayments/sdk/domain/token_response.rb +58 -0
  211. data/lib/onlinepayments/sdk/domain/value_mapping_element.rb +37 -0
  212. data/lib/onlinepayments/sdk/endpoint_configuration.rb +127 -0
  213. data/lib/onlinepayments/sdk/exceptions.rb +8 -0
  214. data/lib/onlinepayments/sdk/factory.rb +136 -0
  215. data/lib/onlinepayments/sdk/idempotence_exception.rb +24 -0
  216. data/lib/onlinepayments/sdk/logging/communicator_logger.rb +22 -0
  217. data/lib/onlinepayments/sdk/logging/log_message_builder.rb +56 -0
  218. data/lib/onlinepayments/sdk/logging/logging_capable.rb +17 -0
  219. data/lib/onlinepayments/sdk/logging/logging_util.rb +286 -0
  220. data/lib/onlinepayments/sdk/logging/request_log_message_builder.rb +39 -0
  221. data/lib/onlinepayments/sdk/logging/response_log_message_builder.rb +34 -0
  222. data/lib/onlinepayments/sdk/logging/ruby_communicator_logger.rb +57 -0
  223. data/lib/onlinepayments/sdk/logging/stdout_communicator_logger.rb +34 -0
  224. data/lib/onlinepayments/sdk/logging.rb +10 -0
  225. data/lib/onlinepayments/sdk/marshaller.rb +24 -0
  226. data/lib/onlinepayments/sdk/marshaller_syntax_exception.rb +6 -0
  227. data/lib/onlinepayments/sdk/merchant/hostedcheckout/hosted_checkout_client.rb +86 -0
  228. data/lib/onlinepayments/sdk/merchant/hostedtokenization/hosted_tokenization_client.rb +86 -0
  229. data/lib/onlinepayments/sdk/merchant/mandates/mandates_client.rb +182 -0
  230. data/lib/onlinepayments/sdk/merchant/merchant_client.rb +89 -0
  231. data/lib/onlinepayments/sdk/merchant/payments/payments_client.rb +322 -0
  232. data/lib/onlinepayments/sdk/merchant/payouts/payouts_client.rb +86 -0
  233. data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +57 -0
  234. data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +57 -0
  235. data/lib/onlinepayments/sdk/merchant/productgroups/product_groups_client.rb +87 -0
  236. data/lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb +38 -0
  237. data/lib/onlinepayments/sdk/merchant/products/get_payment_product_params.rb +57 -0
  238. data/lib/onlinepayments/sdk/merchant/products/get_payment_products_params.rb +57 -0
  239. data/lib/onlinepayments/sdk/merchant/products/get_product_directory_params.rb +30 -0
  240. data/lib/onlinepayments/sdk/merchant/products/products_client.rb +155 -0
  241. data/lib/onlinepayments/sdk/merchant/services/services_client.rb +82 -0
  242. data/lib/onlinepayments/sdk/merchant/sessions/sessions_client.rb +54 -0
  243. data/lib/onlinepayments/sdk/merchant/tokens/tokens_client.rb +116 -0
  244. data/lib/onlinepayments/sdk/meta_data_provider.rb +150 -0
  245. data/lib/onlinepayments/sdk/modules.rb +62 -0
  246. data/lib/onlinepayments/sdk/not_found_exception.rb +16 -0
  247. data/lib/onlinepayments/sdk/param_request.rb +11 -0
  248. data/lib/onlinepayments/sdk/payment_platform_exception.rb +15 -0
  249. data/lib/onlinepayments/sdk/pooled_connection.rb +21 -0
  250. data/lib/onlinepayments/sdk/proxy_configuration.rb +74 -0
  251. data/lib/onlinepayments/sdk/reference_exception.rb +14 -0
  252. data/lib/onlinepayments/sdk/request_header.rb +50 -0
  253. data/lib/onlinepayments/sdk/request_param.rb +23 -0
  254. data/lib/onlinepayments/sdk/response_exception.rb +47 -0
  255. data/lib/onlinepayments/sdk/response_header.rb +42 -0
  256. data/lib/onlinepayments/sdk/validation_exception.rb +14 -0
  257. data/lib/onlinepayments/sdk/webhooks/api_version_mismatch_exception.rb +20 -0
  258. data/lib/onlinepayments/sdk/webhooks/in_memory_secret_key_store.rb +56 -0
  259. data/lib/onlinepayments/sdk/webhooks/secret_key_not_available_exception.rb +17 -0
  260. data/lib/onlinepayments/sdk/webhooks/secret_key_store.rb +16 -0
  261. data/lib/onlinepayments/sdk/webhooks/signature_validation_exception.rb +19 -0
  262. data/lib/onlinepayments/sdk/webhooks/webhooks.rb +22 -0
  263. data/lib/onlinepayments/sdk/webhooks/webhooks_event.rb +58 -0
  264. data/lib/onlinepayments/sdk/webhooks/webhooks_helper.rb +100 -0
  265. data/lib/onlinepayments/sdk/webhooks/webhooks_helper_builder.rb +25 -0
  266. data/lib/onlinepayments/sdk/webhooks.rb +11 -0
  267. data/lib/onlinepayments/sdk.rb +26 -0
  268. data/onlinepayments-sdk-ruby.gemspec +28 -0
  269. metadata +416 -0
@@ -0,0 +1,58 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+
6
+ module OnlinePayments::SDK
7
+ module Domain
8
+
9
+ # @attr [String] acs_transaction_id
10
+ # @attr [String] applied_exemption
11
+ # @attr [String] cavv
12
+ # @attr [String] cavv_algorithm
13
+ # @attr [String] directory_server_transaction_id
14
+ # @attr [Integer] eci
15
+ # @attr [Integer] scheme_risk_score
16
+ # @attr [String] three_d_secure_version
17
+ # @attr [String] xid
18
+ class ExternalCardholderAuthenticationData < OnlinePayments::SDK::DataObject
19
+ attr_accessor :acs_transaction_id
20
+ attr_accessor :applied_exemption
21
+ attr_accessor :cavv
22
+ attr_accessor :cavv_algorithm
23
+ attr_accessor :directory_server_transaction_id
24
+ attr_accessor :eci
25
+ attr_accessor :scheme_risk_score
26
+ attr_accessor :three_d_secure_version
27
+ attr_accessor :xid
28
+
29
+ # @return (Hash)
30
+ def to_h
31
+ hash = super
32
+ hash['acsTransactionId'] = @acs_transaction_id unless @acs_transaction_id.nil?
33
+ hash['appliedExemption'] = @applied_exemption unless @applied_exemption.nil?
34
+ hash['cavv'] = @cavv unless @cavv.nil?
35
+ hash['cavvAlgorithm'] = @cavv_algorithm unless @cavv_algorithm.nil?
36
+ hash['directoryServerTransactionId'] = @directory_server_transaction_id unless @directory_server_transaction_id.nil?
37
+ hash['eci'] = @eci unless @eci.nil?
38
+ hash['schemeRiskScore'] = @scheme_risk_score unless @scheme_risk_score.nil?
39
+ hash['threeDSecureVersion'] = @three_d_secure_version unless @three_d_secure_version.nil?
40
+ hash['xid'] = @xid unless @xid.nil?
41
+ hash
42
+ end
43
+
44
+ def from_hash(hash)
45
+ super
46
+ @acs_transaction_id = hash['acsTransactionId'] if hash.key? 'acsTransactionId'
47
+ @applied_exemption = hash['appliedExemption'] if hash.key? 'appliedExemption'
48
+ @cavv = hash['cavv'] if hash.key? 'cavv'
49
+ @cavv_algorithm = hash['cavvAlgorithm'] if hash.key? 'cavvAlgorithm'
50
+ @directory_server_transaction_id = hash['directoryServerTransactionId'] if hash.key? 'directoryServerTransactionId'
51
+ @eci = hash['eci'] if hash.key? 'eci'
52
+ @scheme_risk_score = hash['schemeRiskScore'] if hash.key? 'schemeRiskScore'
53
+ @three_d_secure_version = hash['threeDSecureVersion'] if hash.key? 'threeDSecureVersion'
54
+ @xid = hash['xid'] if hash.key? 'xid'
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,34 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+
6
+ module OnlinePayments::SDK
7
+ module Domain
8
+
9
+ # @attr [String] computed_token
10
+ # @attr [String] gts_computed_token
11
+ # @attr [String] generated_token
12
+ class ExternalTokenLinked < OnlinePayments::SDK::DataObject
13
+ attr_accessor :computed_token
14
+ attr_accessor :gts_computed_token
15
+ attr_accessor :generated_token
16
+
17
+ # @return (Hash)
18
+ def to_h
19
+ hash = super
20
+ hash['ComputedToken'] = @computed_token unless @computed_token.nil?
21
+ hash['GTSComputedToken'] = @gts_computed_token unless @gts_computed_token.nil?
22
+ hash['GeneratedToken'] = @generated_token unless @generated_token.nil?
23
+ hash
24
+ end
25
+
26
+ def from_hash(hash)
27
+ super
28
+ @computed_token = hash['ComputedToken'] if hash.key? 'ComputedToken'
29
+ @gts_computed_token = hash['GTSComputedToken'] if hash.key? 'GTSComputedToken'
30
+ @generated_token = hash['GeneratedToken'] if hash.key? 'GeneratedToken'
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,32 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+
6
+ module OnlinePayments::SDK
7
+ module Domain
8
+
9
+ # @attr [Array<String>] allowed_values
10
+ class FixedListValidator < OnlinePayments::SDK::DataObject
11
+ attr_accessor :allowed_values
12
+
13
+ # @return (Hash)
14
+ def to_h
15
+ hash = super
16
+ hash['allowedValues'] = @allowed_values unless @allowed_values.nil?
17
+ hash
18
+ end
19
+
20
+ def from_hash(hash)
21
+ super
22
+ if hash.key? 'allowedValues'
23
+ raise TypeError, "value '%s' is not an Array" % [hash['allowedValues']] unless hash['allowedValues'].is_a? Array
24
+ @allowed_values = []
25
+ hash['allowedValues'].each do |e|
26
+ @allowed_values << e
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,30 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+
6
+ module OnlinePayments::SDK
7
+ module Domain
8
+
9
+ # @attr [String] black_list_data
10
+ # @attr [String] customer_ip_address
11
+ class FraudFields < OnlinePayments::SDK::DataObject
12
+ attr_accessor :black_list_data
13
+ attr_accessor :customer_ip_address
14
+
15
+ # @return (Hash)
16
+ def to_h
17
+ hash = super
18
+ hash['blackListData'] = @black_list_data unless @black_list_data.nil?
19
+ hash['customerIpAddress'] = @customer_ip_address unless @customer_ip_address.nil?
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ @black_list_data = hash['blackListData'] if hash.key? 'blackListData'
26
+ @customer_ip_address = hash['customerIpAddress'] if hash.key? 'customerIpAddress'
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,26 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+
6
+ module OnlinePayments::SDK
7
+ module Domain
8
+
9
+ # @attr [String] fraud_service_result
10
+ class FraudResults < OnlinePayments::SDK::DataObject
11
+ attr_accessor :fraud_service_result
12
+
13
+ # @return (Hash)
14
+ def to_h
15
+ hash = super
16
+ hash['fraudServiceResult'] = @fraud_service_result unless @fraud_service_result.nil?
17
+ hash
18
+ end
19
+
20
+ def from_hash(hash)
21
+ super
22
+ @fraud_service_result = hash['fraudServiceResult'] if hash.key? 'fraudServiceResult'
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,46 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/redirection_data'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [String] challenge_canvas_size
11
+ # @attr [String] challenge_indicator
12
+ # @attr [String] exemption_request
13
+ # @attr [OnlinePayments::SDK::Domain::RedirectionData] redirection_data
14
+ # @attr [true/false] skip_authentication
15
+ class GPayThreeDSecure < OnlinePayments::SDK::DataObject
16
+ attr_accessor :challenge_canvas_size
17
+ attr_accessor :challenge_indicator
18
+ attr_accessor :exemption_request
19
+ attr_accessor :redirection_data
20
+ attr_accessor :skip_authentication
21
+
22
+ # @return (Hash)
23
+ def to_h
24
+ hash = super
25
+ hash['challengeCanvasSize'] = @challenge_canvas_size unless @challenge_canvas_size.nil?
26
+ hash['challengeIndicator'] = @challenge_indicator unless @challenge_indicator.nil?
27
+ hash['exemptionRequest'] = @exemption_request unless @exemption_request.nil?
28
+ hash['redirectionData'] = @redirection_data.to_h if @redirection_data
29
+ hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil?
30
+ hash
31
+ end
32
+
33
+ def from_hash(hash)
34
+ super
35
+ @challenge_canvas_size = hash['challengeCanvasSize'] if hash.key? 'challengeCanvasSize'
36
+ @challenge_indicator = hash['challengeIndicator'] if hash.key? 'challengeIndicator'
37
+ @exemption_request = hash['exemptionRequest'] if hash.key? 'exemptionRequest'
38
+ if hash.key? 'redirectionData'
39
+ raise TypeError, "value '%s' is not a Hash" % [hash['redirectionData']] unless hash['redirectionData'].is_a? Hash
40
+ @redirection_data = OnlinePayments::SDK::Domain::RedirectionData.new_from_hash(hash['redirectionData'])
41
+ end
42
+ @skip_authentication = hash['skipAuthentication'] if hash.key? 'skipAuthentication'
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,34 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/created_payment_output'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [OnlinePayments::SDK::Domain::CreatedPaymentOutput] created_payment_output
11
+ # @attr [String] status
12
+ class GetHostedCheckoutResponse < OnlinePayments::SDK::DataObject
13
+ attr_accessor :created_payment_output
14
+ attr_accessor :status
15
+
16
+ # @return (Hash)
17
+ def to_h
18
+ hash = super
19
+ hash['createdPaymentOutput'] = @created_payment_output.to_h if @created_payment_output
20
+ hash['status'] = @status unless @status.nil?
21
+ hash
22
+ end
23
+
24
+ def from_hash(hash)
25
+ super
26
+ if hash.key? 'createdPaymentOutput'
27
+ raise TypeError, "value '%s' is not a Hash" % [hash['createdPaymentOutput']] unless hash['createdPaymentOutput'].is_a? Hash
28
+ @created_payment_output = OnlinePayments::SDK::Domain::CreatedPaymentOutput.new_from_hash(hash['createdPaymentOutput'])
29
+ end
30
+ @status = hash['status'] if hash.key? 'status'
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,34 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/token_response'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [OnlinePayments::SDK::Domain::TokenResponse] token
11
+ # @attr [String] token_status
12
+ class GetHostedTokenizationResponse < OnlinePayments::SDK::DataObject
13
+ attr_accessor :token
14
+ attr_accessor :token_status
15
+
16
+ # @return (Hash)
17
+ def to_h
18
+ hash = super
19
+ hash['token'] = @token.to_h if @token
20
+ hash['tokenStatus'] = @token_status unless @token_status.nil?
21
+ hash
22
+ end
23
+
24
+ def from_hash(hash)
25
+ super
26
+ if hash.key? 'token'
27
+ raise TypeError, "value '%s' is not a Hash" % [hash['token']] unless hash['token'].is_a? Hash
28
+ @token = OnlinePayments::SDK::Domain::TokenResponse.new_from_hash(hash['token'])
29
+ end
30
+ @token_status = hash['tokenStatus'] if hash.key? 'tokenStatus'
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,34 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/payment_context'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [String] bin
11
+ # @attr [OnlinePayments::SDK::Domain::PaymentContext] payment_context
12
+ class GetIINDetailsRequest < OnlinePayments::SDK::DataObject
13
+ attr_accessor :bin
14
+ attr_accessor :payment_context
15
+
16
+ # @return (Hash)
17
+ def to_h
18
+ hash = super
19
+ hash['bin'] = @bin unless @bin.nil?
20
+ hash['paymentContext'] = @payment_context.to_h if @payment_context
21
+ hash
22
+ end
23
+
24
+ def from_hash(hash)
25
+ super
26
+ @bin = hash['bin'] if hash.key? 'bin'
27
+ if hash.key? 'paymentContext'
28
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentContext']] unless hash['paymentContext'].is_a? Hash
29
+ @payment_context = OnlinePayments::SDK::Domain::PaymentContext.new_from_hash(hash['paymentContext'])
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,45 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/iin_detail'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [Array<OnlinePayments::SDK::Domain::IINDetail>] co_brands
11
+ # @attr [String] country_code
12
+ # @attr [true/false] is_allowed_in_context
13
+ # @attr [Integer] payment_product_id
14
+ class GetIINDetailsResponse < OnlinePayments::SDK::DataObject
15
+ attr_accessor :co_brands
16
+ attr_accessor :country_code
17
+ attr_accessor :is_allowed_in_context
18
+ attr_accessor :payment_product_id
19
+
20
+ # @return (Hash)
21
+ def to_h
22
+ hash = super
23
+ hash['coBrands'] = @co_brands.collect(&:to_h) if @co_brands
24
+ hash['countryCode'] = @country_code unless @country_code.nil?
25
+ hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
26
+ hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
27
+ hash
28
+ end
29
+
30
+ def from_hash(hash)
31
+ super
32
+ if hash.key? 'coBrands'
33
+ raise TypeError, "value '%s' is not an Array" % [hash['coBrands']] unless hash['coBrands'].is_a? Array
34
+ @co_brands = []
35
+ hash['coBrands'].each do |e|
36
+ @co_brands << OnlinePayments::SDK::Domain::IINDetail.new_from_hash(e)
37
+ end
38
+ end
39
+ @country_code = hash['countryCode'] if hash.key? 'countryCode'
40
+ @is_allowed_in_context = hash['isAllowedInContext'] if hash.key? 'isAllowedInContext'
41
+ @payment_product_id = hash['paymentProductId'] if hash.key? 'paymentProductId'
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,30 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/mandate_response'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [OnlinePayments::SDK::Domain::MandateResponse] mandate
11
+ class GetMandateResponse < OnlinePayments::SDK::DataObject
12
+ attr_accessor :mandate
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['mandate'] = @mandate.to_h if @mandate
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.key? 'mandate'
24
+ raise TypeError, "value '%s' is not a Hash" % [hash['mandate']] unless hash['mandate'].is_a? Hash
25
+ @mandate = OnlinePayments::SDK::Domain::MandateResponse.new_from_hash(hash['mandate'])
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,33 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/payment_product_group'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [Array<OnlinePayments::SDK::Domain::PaymentProductGroup>] payment_product_groups
11
+ class GetPaymentProductGroupsResponse < OnlinePayments::SDK::DataObject
12
+ attr_accessor :payment_product_groups
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['paymentProductGroups'] = @payment_product_groups.collect(&:to_h) if @payment_product_groups
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.key? 'paymentProductGroups'
24
+ raise TypeError, "value '%s' is not an Array" % [hash['paymentProductGroups']] unless hash['paymentProductGroups'].is_a? Array
25
+ @payment_product_groups = []
26
+ hash['paymentProductGroups'].each do |e|
27
+ @payment_product_groups << OnlinePayments::SDK::Domain::PaymentProductGroup.new_from_hash(e)
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,33 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/payment_product'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [Array<OnlinePayments::SDK::Domain::PaymentProduct>] payment_products
11
+ class GetPaymentProductsResponse < OnlinePayments::SDK::DataObject
12
+ attr_accessor :payment_products
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['paymentProducts'] = @payment_products.collect(&:to_h) if @payment_products
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.key? 'paymentProducts'
24
+ raise TypeError, "value '%s' is not an Array" % [hash['paymentProducts']] unless hash['paymentProducts'].is_a? Array
25
+ @payment_products = []
26
+ hash['paymentProducts'].each do |e|
27
+ @payment_products << OnlinePayments::SDK::Domain::PaymentProduct.new_from_hash(e)
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,34 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/amount_of_money'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
11
+ # @attr [Integer] number_of_gift_cards
12
+ class GiftCardPurchase < OnlinePayments::SDK::DataObject
13
+ attr_accessor :amount_of_money
14
+ attr_accessor :number_of_gift_cards
15
+
16
+ # @return (Hash)
17
+ def to_h
18
+ hash = super
19
+ hash['amountOfMoney'] = @amount_of_money.to_h if @amount_of_money
20
+ hash['numberOfGiftCards'] = @number_of_gift_cards unless @number_of_gift_cards.nil?
21
+ hash
22
+ end
23
+
24
+ def from_hash(hash)
25
+ super
26
+ if hash.key? 'amountOfMoney'
27
+ raise TypeError, "value '%s' is not a Hash" % [hash['amountOfMoney']] unless hash['amountOfMoney'].is_a? Hash
28
+ @amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
29
+ end
30
+ @number_of_gift_cards = hash['numberOfGiftCards'] if hash.key? 'numberOfGiftCards'
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,66 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout'
6
+ require 'onlinepayments/sdk/domain/payment_product_filters_hosted_checkout'
7
+
8
+ module OnlinePayments::SDK
9
+ module Domain
10
+
11
+ # @attr [OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInputForHostedCheckout] card_payment_method_specific_input
12
+ # @attr [true/false] is_recurring
13
+ # @attr [String] locale
14
+ # @attr [OnlinePayments::SDK::Domain::PaymentProductFiltersHostedCheckout] payment_product_filters
15
+ # @attr [String] return_url
16
+ # @attr [Integer] session_timeout
17
+ # @attr [true/false] show_result_page
18
+ # @attr [String] tokens
19
+ # @attr [String] variant
20
+ class HostedCheckoutSpecificInput < OnlinePayments::SDK::DataObject
21
+ attr_accessor :card_payment_method_specific_input
22
+ attr_accessor :is_recurring
23
+ attr_accessor :locale
24
+ attr_accessor :payment_product_filters
25
+ attr_accessor :return_url
26
+ attr_accessor :session_timeout
27
+ attr_accessor :show_result_page
28
+ attr_accessor :tokens
29
+ attr_accessor :variant
30
+
31
+ # @return (Hash)
32
+ def to_h
33
+ hash = super
34
+ hash['cardPaymentMethodSpecificInput'] = @card_payment_method_specific_input.to_h if @card_payment_method_specific_input
35
+ hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
36
+ hash['locale'] = @locale unless @locale.nil?
37
+ hash['paymentProductFilters'] = @payment_product_filters.to_h if @payment_product_filters
38
+ hash['returnUrl'] = @return_url unless @return_url.nil?
39
+ hash['sessionTimeout'] = @session_timeout unless @session_timeout.nil?
40
+ hash['showResultPage'] = @show_result_page unless @show_result_page.nil?
41
+ hash['tokens'] = @tokens unless @tokens.nil?
42
+ hash['variant'] = @variant unless @variant.nil?
43
+ hash
44
+ end
45
+
46
+ def from_hash(hash)
47
+ super
48
+ if hash.key? 'cardPaymentMethodSpecificInput'
49
+ raise TypeError, "value '%s' is not a Hash" % [hash['cardPaymentMethodSpecificInput']] unless hash['cardPaymentMethodSpecificInput'].is_a? Hash
50
+ @card_payment_method_specific_input = OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInputForHostedCheckout.new_from_hash(hash['cardPaymentMethodSpecificInput'])
51
+ end
52
+ @is_recurring = hash['isRecurring'] if hash.key? 'isRecurring'
53
+ @locale = hash['locale'] if hash.key? 'locale'
54
+ if hash.key? 'paymentProductFilters'
55
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProductFilters']] unless hash['paymentProductFilters'].is_a? Hash
56
+ @payment_product_filters = OnlinePayments::SDK::Domain::PaymentProductFiltersHostedCheckout.new_from_hash(hash['paymentProductFilters'])
57
+ end
58
+ @return_url = hash['returnUrl'] if hash.key? 'returnUrl'
59
+ @session_timeout = hash['sessionTimeout'] if hash.key? 'sessionTimeout'
60
+ @show_result_page = hash['showResultPage'] if hash.key? 'showResultPage'
61
+ @tokens = hash['tokens'] if hash.key? 'tokens'
62
+ @variant = hash['variant'] if hash.key? 'variant'
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,30 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+
6
+ module OnlinePayments::SDK
7
+ module Domain
8
+
9
+ # @attr [String] hosted_checkout_id
10
+ # @attr [String] variant
11
+ class HostedCheckoutSpecificOutput < OnlinePayments::SDK::DataObject
12
+ attr_accessor :hosted_checkout_id
13
+ attr_accessor :variant
14
+
15
+ # @return (Hash)
16
+ def to_h
17
+ hash = super
18
+ hash['hostedCheckoutId'] = @hosted_checkout_id unless @hosted_checkout_id.nil?
19
+ hash['variant'] = @variant unless @variant.nil?
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ @hosted_checkout_id = hash['hostedCheckoutId'] if hash.key? 'hostedCheckoutId'
26
+ @variant = hash['variant'] if hash.key? 'variant'
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+
6
+ module OnlinePayments::SDK
7
+ module Domain
8
+
9
+ # @attr [true/false] is_allowed_in_context
10
+ # @attr [Integer] payment_product_id
11
+ class IINDetail < OnlinePayments::SDK::DataObject
12
+ attr_accessor :is_allowed_in_context
13
+ attr_accessor :payment_product_id
14
+
15
+ # @return (Hash)
16
+ def to_h
17
+ hash = super
18
+ hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
19
+ hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ @is_allowed_in_context = hash['isAllowedInContext'] if hash.key? 'isAllowedInContext'
26
+ @payment_product_id = hash['paymentProductId'] if hash.key? 'paymentProductId'
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+
6
+ module OnlinePayments::SDK
7
+ module Domain
8
+
9
+ # @attr [String] attribute_key
10
+ # @attr [String] mask
11
+ class LabelTemplateElement < OnlinePayments::SDK::DataObject
12
+ attr_accessor :attribute_key
13
+ attr_accessor :mask
14
+
15
+ # @return (Hash)
16
+ def to_h
17
+ hash = super
18
+ hash['attributeKey'] = @attribute_key unless @attribute_key.nil?
19
+ hash['mask'] = @mask unless @mask.nil?
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ @attribute_key = hash['attributeKey'] if hash.key? 'attributeKey'
26
+ @mask = hash['mask'] if hash.key? 'mask'
27
+ end
28
+ end
29
+ end
30
+ end