postfinancecheckout-ruby-sdk 3.0.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 (364) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +8 -0
  3. data/LICENSE +201 -0
  4. data/README.md +137 -0
  5. data/Rakefile +13 -0
  6. data/lib/.DS_Store +0 -0
  7. data/lib/postfinancecheckout-ruby-sdk.rb +392 -0
  8. data/lib/postfinancecheckout-ruby-sdk/api/account_service_api.rb +368 -0
  9. data/lib/postfinancecheckout-ruby-sdk/api/application_user_service_api.rb +368 -0
  10. data/lib/postfinancecheckout-ruby-sdk/api/bank_account_service_api.rb +213 -0
  11. data/lib/postfinancecheckout-ruby-sdk/api/bank_transaction_service_api.rb +213 -0
  12. data/lib/postfinancecheckout-ruby-sdk/api/charge_attempt_service_api.rb +213 -0
  13. data/lib/postfinancecheckout-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
  14. data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
  15. data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_level_service_api.rb +276 -0
  16. data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_service_api.rb +348 -0
  17. data/lib/postfinancecheckout-ruby-sdk/api/condition_type_service_api.rb +139 -0
  18. data/lib/postfinancecheckout-ruby-sdk/api/country_service_api.rb +81 -0
  19. data/lib/postfinancecheckout-ruby-sdk/api/country_state_service_api.rb +139 -0
  20. data/lib/postfinancecheckout-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
  21. data/lib/postfinancecheckout-ruby-sdk/api/currency_service_api.rb +81 -0
  22. data/lib/postfinancecheckout-ruby-sdk/api/customer_address_service_api.rb +460 -0
  23. data/lib/postfinancecheckout-ruby-sdk/api/customer_comment_service_api.rb +522 -0
  24. data/lib/postfinancecheckout-ruby-sdk/api/customer_service_api.rb +398 -0
  25. data/lib/postfinancecheckout-ruby-sdk/api/delivery_indication_service_api.rb +337 -0
  26. data/lib/postfinancecheckout-ruby-sdk/api/document_template_service_api.rb +213 -0
  27. data/lib/postfinancecheckout-ruby-sdk/api/document_template_type_service_api.rb +139 -0
  28. data/lib/postfinancecheckout-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
  29. data/lib/postfinancecheckout-ruby-sdk/api/human_user_service_api.rb +425 -0
  30. data/lib/postfinancecheckout-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
  31. data/lib/postfinancecheckout-ruby-sdk/api/label_description_group_service_api.rb +139 -0
  32. data/lib/postfinancecheckout-ruby-sdk/api/label_description_service_api.rb +139 -0
  33. data/lib/postfinancecheckout-ruby-sdk/api/language_service_api.rb +81 -0
  34. data/lib/postfinancecheckout-ruby-sdk/api/legal_organization_form_service_api.rb +197 -0
  35. data/lib/postfinancecheckout-ruby-sdk/api/manual_task_service_api.rb +213 -0
  36. data/lib/postfinancecheckout-ruby-sdk/api/payment_connector_configuration_service_api.rb +213 -0
  37. data/lib/postfinancecheckout-ruby-sdk/api/payment_connector_service_api.rb +139 -0
  38. data/lib/postfinancecheckout-ruby-sdk/api/payment_link_service_api.rb +398 -0
  39. data/lib/postfinancecheckout-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
  40. data/lib/postfinancecheckout-ruby-sdk/api/payment_method_configuration_service_api.rb +213 -0
  41. data/lib/postfinancecheckout-ruby-sdk/api/payment_method_service_api.rb +139 -0
  42. data/lib/postfinancecheckout-ruby-sdk/api/payment_processor_configuration_service_api.rb +213 -0
  43. data/lib/postfinancecheckout-ruby-sdk/api/payment_processor_service_api.rb +139 -0
  44. data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_service_api.rb +213 -0
  45. data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
  46. data/lib/postfinancecheckout-ruby-sdk/api/permission_service_api.rb +139 -0
  47. data/lib/postfinancecheckout-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
  48. data/lib/postfinancecheckout-ruby-sdk/api/refund_comment_service_api.rb +464 -0
  49. data/lib/postfinancecheckout-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
  50. data/lib/postfinancecheckout-ruby-sdk/api/refund_service_api.rb +532 -0
  51. data/lib/postfinancecheckout-ruby-sdk/api/shopify_recurring_order_service_api.rb +274 -0
  52. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscriber_service_api.rb +275 -0
  53. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_product_service_api.rb +337 -0
  54. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_service_api.rb +466 -0
  55. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +337 -0
  56. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
  57. data/lib/postfinancecheckout-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
  58. data/lib/postfinancecheckout-ruby-sdk/api/space_service_api.rb +368 -0
  59. data/lib/postfinancecheckout-ruby-sdk/api/static_value_service_api.rb +139 -0
  60. data/lib/postfinancecheckout-ruby-sdk/api/token_service_api.rb +650 -0
  61. data/lib/postfinancecheckout-ruby-sdk/api/token_version_service_api.rb +276 -0
  62. data/lib/postfinancecheckout-ruby-sdk/api/transaction_comment_service_api.rb +464 -0
  63. data/lib/postfinancecheckout-ruby-sdk/api/transaction_completion_service_api.rb +463 -0
  64. data/lib/postfinancecheckout-ruby-sdk/api/transaction_iframe_service_api.rb +91 -0
  65. data/lib/postfinancecheckout-ruby-sdk/api/transaction_invoice_comment_service_api.rb +464 -0
  66. data/lib/postfinancecheckout-ruby-sdk/api/transaction_invoice_service_api.rb +600 -0
  67. data/lib/postfinancecheckout-ruby-sdk/api/transaction_lightbox_service_api.rb +91 -0
  68. data/lib/postfinancecheckout-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +86 -0
  69. data/lib/postfinancecheckout-ruby-sdk/api/transaction_payment_page_service_api.rb +91 -0
  70. data/lib/postfinancecheckout-ruby-sdk/api/transaction_service_api.rb +1210 -0
  71. data/lib/postfinancecheckout-ruby-sdk/api/transaction_terminal_service_api.rb +161 -0
  72. data/lib/postfinancecheckout-ruby-sdk/api/transaction_void_service_api.rb +339 -0
  73. data/lib/postfinancecheckout-ruby-sdk/api/user_account_role_service_api.rb +219 -0
  74. data/lib/postfinancecheckout-ruby-sdk/api/user_space_role_service_api.rb +216 -0
  75. data/lib/postfinancecheckout-ruby-sdk/api/webhook_listener_service_api.rb +398 -0
  76. data/lib/postfinancecheckout-ruby-sdk/api/webhook_url_service_api.rb +398 -0
  77. data/lib/postfinancecheckout-ruby-sdk/api_client.rb +405 -0
  78. data/lib/postfinancecheckout-ruby-sdk/api_error.rb +43 -0
  79. data/lib/postfinancecheckout-ruby-sdk/configuration.rb +140 -0
  80. data/lib/postfinancecheckout-ruby-sdk/models/abstract_account_update.rb +234 -0
  81. data/lib/postfinancecheckout-ruby-sdk/models/abstract_application_user_update.rb +225 -0
  82. data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_active.rb +312 -0
  83. data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_address_active.rb +200 -0
  84. data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_comment_active.rb +205 -0
  85. data/lib/postfinancecheckout-ruby-sdk/models/abstract_human_user_update.rb +320 -0
  86. data/lib/postfinancecheckout-ruby-sdk/models/abstract_payment_link_update.rb +309 -0
  87. data/lib/postfinancecheckout-ruby-sdk/models/abstract_refund_comment_active.rb +205 -0
  88. data/lib/postfinancecheckout-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
  89. data/lib/postfinancecheckout-ruby-sdk/models/abstract_space_update.rb +286 -0
  90. data/lib/postfinancecheckout-ruby-sdk/models/abstract_token_update.rb +270 -0
  91. data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_comment_active.rb +205 -0
  92. data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +205 -0
  93. data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_pending.rb +486 -0
  94. data/lib/postfinancecheckout-ruby-sdk/models/abstract_webhook_listener_update.rb +237 -0
  95. data/lib/postfinancecheckout-ruby-sdk/models/abstract_webhook_url_update.rb +249 -0
  96. data/lib/postfinancecheckout-ruby-sdk/models/account.rb +375 -0
  97. data/lib/postfinancecheckout-ruby-sdk/models/account_create.rb +260 -0
  98. data/lib/postfinancecheckout-ruby-sdk/models/account_state.rb +39 -0
  99. data/lib/postfinancecheckout-ruby-sdk/models/account_type.rb +36 -0
  100. data/lib/postfinancecheckout-ruby-sdk/models/account_update.rb +265 -0
  101. data/lib/postfinancecheckout-ruby-sdk/models/address.rb +606 -0
  102. data/lib/postfinancecheckout-ruby-sdk/models/address_create.rb +606 -0
  103. data/lib/postfinancecheckout-ruby-sdk/models/application_user.rb +286 -0
  104. data/lib/postfinancecheckout-ruby-sdk/models/application_user_create.rb +241 -0
  105. data/lib/postfinancecheckout-ruby-sdk/models/application_user_create_with_mac_key.rb +296 -0
  106. data/lib/postfinancecheckout-ruby-sdk/models/application_user_update.rb +256 -0
  107. data/lib/postfinancecheckout-ruby-sdk/models/bank_account.rb +291 -0
  108. data/lib/postfinancecheckout-ruby-sdk/models/bank_account_environment.rb +35 -0
  109. data/lib/postfinancecheckout-ruby-sdk/models/bank_account_state.rb +37 -0
  110. data/lib/postfinancecheckout-ruby-sdk/models/bank_account_type.rb +227 -0
  111. data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction.rb +387 -0
  112. data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
  113. data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_source.rb +215 -0
  114. data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_state.rb +35 -0
  115. data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_type.rb +215 -0
  116. data/lib/postfinancecheckout-ruby-sdk/models/charge.rb +331 -0
  117. data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt.rb +468 -0
  118. data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_environment.rb +35 -0
  119. data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_state.rb +36 -0
  120. data/lib/postfinancecheckout-ruby-sdk/models/charge_bank_transaction.rb +291 -0
  121. data/lib/postfinancecheckout-ruby-sdk/models/charge_flow.rb +263 -0
  122. data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level.rb +311 -0
  123. data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_configuration.rb +296 -0
  124. data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_configuration_type.rb +227 -0
  125. data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_payment_link.rb +231 -0
  126. data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_state.rb +36 -0
  127. data/lib/postfinancecheckout-ruby-sdk/models/charge_state.rb +36 -0
  128. data/lib/postfinancecheckout-ruby-sdk/models/charge_type.rb +37 -0
  129. data/lib/postfinancecheckout-ruby-sdk/models/client_error.rb +231 -0
  130. data/lib/postfinancecheckout-ruby-sdk/models/client_error_type.rb +36 -0
  131. data/lib/postfinancecheckout-ruby-sdk/models/completion_line_item.rb +226 -0
  132. data/lib/postfinancecheckout-ruby-sdk/models/completion_line_item_create.rb +245 -0
  133. data/lib/postfinancecheckout-ruby-sdk/models/condition.rb +266 -0
  134. data/lib/postfinancecheckout-ruby-sdk/models/condition_type.rb +215 -0
  135. data/lib/postfinancecheckout-ruby-sdk/models/connector_invocation.rb +271 -0
  136. data/lib/postfinancecheckout-ruby-sdk/models/connector_invocation_stage.rb +37 -0
  137. data/lib/postfinancecheckout-ruby-sdk/models/creation_entity_state.rb +38 -0
  138. data/lib/postfinancecheckout-ruby-sdk/models/criteria_operator.rb +45 -0
  139. data/lib/postfinancecheckout-ruby-sdk/models/currency_bank_account.rb +241 -0
  140. data/lib/postfinancecheckout-ruby-sdk/models/customer.rb +353 -0
  141. data/lib/postfinancecheckout-ruby-sdk/models/customer_active.rb +343 -0
  142. data/lib/postfinancecheckout-ruby-sdk/models/customer_address.rb +261 -0
  143. data/lib/postfinancecheckout-ruby-sdk/models/customer_address_active.rb +231 -0
  144. data/lib/postfinancecheckout-ruby-sdk/models/customer_address_create.rb +216 -0
  145. data/lib/postfinancecheckout-ruby-sdk/models/customer_address_type.rb +36 -0
  146. data/lib/postfinancecheckout-ruby-sdk/models/customer_comment.rb +296 -0
  147. data/lib/postfinancecheckout-ruby-sdk/models/customer_comment_active.rb +236 -0
  148. data/lib/postfinancecheckout-ruby-sdk/models/customer_comment_create.rb +221 -0
  149. data/lib/postfinancecheckout-ruby-sdk/models/customer_create.rb +313 -0
  150. data/lib/postfinancecheckout-ruby-sdk/models/customer_postal_address.rb +606 -0
  151. data/lib/postfinancecheckout-ruby-sdk/models/customer_postal_address_create.rb +606 -0
  152. data/lib/postfinancecheckout-ruby-sdk/models/customers_presence.rb +36 -0
  153. data/lib/postfinancecheckout-ruby-sdk/models/data_collection_type.rb +35 -0
  154. data/lib/postfinancecheckout-ruby-sdk/models/database_translated_string.rb +215 -0
  155. data/lib/postfinancecheckout-ruby-sdk/models/database_translated_string_item.rb +226 -0
  156. data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication.rb +321 -0
  157. data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication_decision_reason.rb +215 -0
  158. data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication_state.rb +37 -0
  159. data/lib/postfinancecheckout-ruby-sdk/models/document_template.rb +306 -0
  160. data/lib/postfinancecheckout-ruby-sdk/models/document_template_type.rb +235 -0
  161. data/lib/postfinancecheckout-ruby-sdk/models/document_template_type_group.rb +203 -0
  162. data/lib/postfinancecheckout-ruby-sdk/models/entity_export_request.rb +208 -0
  163. data/lib/postfinancecheckout-ruby-sdk/models/entity_query.rb +233 -0
  164. data/lib/postfinancecheckout-ruby-sdk/models/entity_query_filter.rb +238 -0
  165. data/lib/postfinancecheckout-ruby-sdk/models/entity_query_filter_type.rb +36 -0
  166. data/lib/postfinancecheckout-ruby-sdk/models/entity_query_order_by.rb +211 -0
  167. data/lib/postfinancecheckout-ruby-sdk/models/entity_query_order_by_type.rb +35 -0
  168. data/lib/postfinancecheckout-ruby-sdk/models/environment.rb +35 -0
  169. data/lib/postfinancecheckout-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
  170. data/lib/postfinancecheckout-ruby-sdk/models/failure_category.rb +38 -0
  171. data/lib/postfinancecheckout-ruby-sdk/models/failure_reason.rb +237 -0
  172. data/lib/postfinancecheckout-ruby-sdk/models/feature.rb +277 -0
  173. data/lib/postfinancecheckout-ruby-sdk/models/feature_category.rb +225 -0
  174. data/lib/postfinancecheckout-ruby-sdk/models/gender.rb +35 -0
  175. data/lib/postfinancecheckout-ruby-sdk/models/human_user.rb +361 -0
  176. data/lib/postfinancecheckout-ruby-sdk/models/human_user_create.rb +331 -0
  177. data/lib/postfinancecheckout-ruby-sdk/models/human_user_update.rb +351 -0
  178. data/lib/postfinancecheckout-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
  179. data/lib/postfinancecheckout-ruby-sdk/models/label.rb +231 -0
  180. data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor.rb +267 -0
  181. data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_category.rb +35 -0
  182. data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_group.rb +225 -0
  183. data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_type.rb +215 -0
  184. data/lib/postfinancecheckout-ruby-sdk/models/legal_organization_form.rb +235 -0
  185. data/lib/postfinancecheckout-ruby-sdk/models/line_item.rb +449 -0
  186. data/lib/postfinancecheckout-ruby-sdk/models/line_item_attribute.rb +231 -0
  187. data/lib/postfinancecheckout-ruby-sdk/models/line_item_attribute_create.rb +249 -0
  188. data/lib/postfinancecheckout-ruby-sdk/models/line_item_create.rb +372 -0
  189. data/lib/postfinancecheckout-ruby-sdk/models/line_item_reduction.rb +226 -0
  190. data/lib/postfinancecheckout-ruby-sdk/models/line_item_reduction_create.rb +245 -0
  191. data/lib/postfinancecheckout-ruby-sdk/models/line_item_type.rb +37 -0
  192. data/lib/postfinancecheckout-ruby-sdk/models/localized_string.rb +211 -0
  193. data/lib/postfinancecheckout-ruby-sdk/models/manual_task.rb +283 -0
  194. data/lib/postfinancecheckout-ruby-sdk/models/manual_task_action.rb +223 -0
  195. data/lib/postfinancecheckout-ruby-sdk/models/manual_task_action_style.rb +36 -0
  196. data/lib/postfinancecheckout-ruby-sdk/models/manual_task_state.rb +36 -0
  197. data/lib/postfinancecheckout-ruby-sdk/models/manual_task_type.rb +227 -0
  198. data/lib/postfinancecheckout-ruby-sdk/models/one_click_payment_mode.rb +36 -0
  199. data/lib/postfinancecheckout-ruby-sdk/models/payment_adjustment.rb +231 -0
  200. data/lib/postfinancecheckout-ruby-sdk/models/payment_adjustment_type.rb +215 -0
  201. data/lib/postfinancecheckout-ruby-sdk/models/payment_connector.rb +321 -0
  202. data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_configuration.rb +342 -0
  203. data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_feature.rb +211 -0
  204. data/lib/postfinancecheckout-ruby-sdk/models/payment_contract.rb +331 -0
  205. data/lib/postfinancecheckout-ruby-sdk/models/payment_contract_state.rb +38 -0
  206. data/lib/postfinancecheckout-ruby-sdk/models/payment_contract_type.rb +225 -0
  207. data/lib/postfinancecheckout-ruby-sdk/models/payment_information_hash.rb +211 -0
  208. data/lib/postfinancecheckout-ruby-sdk/models/payment_information_hash_type.rb +203 -0
  209. data/lib/postfinancecheckout-ruby-sdk/models/payment_link.rb +390 -0
  210. data/lib/postfinancecheckout-ruby-sdk/models/payment_link_active.rb +350 -0
  211. data/lib/postfinancecheckout-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
  212. data/lib/postfinancecheckout-ruby-sdk/models/payment_link_create.rb +345 -0
  213. data/lib/postfinancecheckout-ruby-sdk/models/payment_link_protection_mode.rb +35 -0
  214. data/lib/postfinancecheckout-ruby-sdk/models/payment_link_update.rb +340 -0
  215. data/lib/postfinancecheckout-ruby-sdk/models/payment_method.rb +261 -0
  216. data/lib/postfinancecheckout-ruby-sdk/models/payment_method_brand.rb +245 -0
  217. data/lib/postfinancecheckout-ruby-sdk/models/payment_method_configuration.rb +370 -0
  218. data/lib/postfinancecheckout-ruby-sdk/models/payment_primary_risk_taker.rb +36 -0
  219. data/lib/postfinancecheckout-ruby-sdk/models/payment_processor.rb +271 -0
  220. data/lib/postfinancecheckout-ruby-sdk/models/payment_processor_configuration.rb +276 -0
  221. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal.rb +306 -0
  222. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_address.rb +396 -0
  223. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration.rb +266 -0
  224. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_state.rb +37 -0
  225. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_version.rb +323 -0
  226. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_version_state.rb +38 -0
  227. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location.rb +266 -0
  228. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_state.rb +37 -0
  229. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version.rb +281 -0
  230. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version_state.rb +38 -0
  231. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
  232. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_state.rb +38 -0
  233. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_type.rb +215 -0
  234. data/lib/postfinancecheckout-ruby-sdk/models/permission.rb +299 -0
  235. data/lib/postfinancecheckout-ruby-sdk/models/refund.rb +567 -0
  236. data/lib/postfinancecheckout-ruby-sdk/models/refund_bank_transaction.rb +281 -0
  237. data/lib/postfinancecheckout-ruby-sdk/models/refund_comment.rb +296 -0
  238. data/lib/postfinancecheckout-ruby-sdk/models/refund_comment_active.rb +236 -0
  239. data/lib/postfinancecheckout-ruby-sdk/models/refund_comment_create.rb +221 -0
  240. data/lib/postfinancecheckout-ruby-sdk/models/refund_create.rb +306 -0
  241. data/lib/postfinancecheckout-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
  242. data/lib/postfinancecheckout-ruby-sdk/models/refund_state.rb +39 -0
  243. data/lib/postfinancecheckout-ruby-sdk/models/refund_type.rb +37 -0
  244. data/lib/postfinancecheckout-ruby-sdk/models/rendered_document.rb +223 -0
  245. data/lib/postfinancecheckout-ruby-sdk/models/rendered_terminal_receipt.rb +223 -0
  246. data/lib/postfinancecheckout-ruby-sdk/models/resource_path.rb +275 -0
  247. data/lib/postfinancecheckout-ruby-sdk/models/resource_state.rb +36 -0
  248. data/lib/postfinancecheckout-ruby-sdk/models/rest_address_format.rb +227 -0
  249. data/lib/postfinancecheckout-ruby-sdk/models/rest_address_format_field.rb +43 -0
  250. data/lib/postfinancecheckout-ruby-sdk/models/rest_country.rb +243 -0
  251. data/lib/postfinancecheckout-ruby-sdk/models/rest_country_state.rb +221 -0
  252. data/lib/postfinancecheckout-ruby-sdk/models/rest_currency.rb +211 -0
  253. data/lib/postfinancecheckout-ruby-sdk/models/rest_language.rb +241 -0
  254. data/lib/postfinancecheckout-ruby-sdk/models/role.rb +263 -0
  255. data/lib/postfinancecheckout-ruby-sdk/models/role_state.rb +37 -0
  256. data/lib/postfinancecheckout-ruby-sdk/models/sales_channel.rb +245 -0
  257. data/lib/postfinancecheckout-ruby-sdk/models/scope.rb +350 -0
  258. data/lib/postfinancecheckout-ruby-sdk/models/server_error.rb +211 -0
  259. data/lib/postfinancecheckout-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
  260. data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration.rb +470 -0
  261. data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
  262. data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration_subscription_app_version.rb +36 -0
  263. data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order.rb +351 -0
  264. data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order_state.rb +39 -0
  265. data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
  266. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber.rb +281 -0
  267. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
  268. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
  269. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
  270. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription.rb +375 -0
  271. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_address.rb +546 -0
  272. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
  273. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
  274. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_creation_request.rb +363 -0
  275. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +271 -0
  276. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
  277. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_model_tax_line.rb +201 -0
  278. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product.rb +471 -0
  279. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_create.rb +366 -0
  280. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
  281. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
  282. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_update.rb +351 -0
  283. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_state.rb +39 -0
  284. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension.rb +311 -0
  285. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_create.rb +226 -0
  286. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_initiator.rb +35 -0
  287. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_state.rb +35 -0
  288. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_type.rb +35 -0
  289. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
  290. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_update_request.rb +233 -0
  291. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version.rb +463 -0
  292. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_item.rb +233 -0
  293. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +35 -0
  294. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_state.rb +36 -0
  295. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_weekday.rb +40 -0
  296. data/lib/postfinancecheckout-ruby-sdk/models/shopify_tax_line.rb +231 -0
  297. data/lib/postfinancecheckout-ruby-sdk/models/shopify_transaction.rb +301 -0
  298. data/lib/postfinancecheckout-ruby-sdk/models/shopify_transaction_state.rb +38 -0
  299. data/lib/postfinancecheckout-ruby-sdk/models/space.rb +407 -0
  300. data/lib/postfinancecheckout-ruby-sdk/models/space_address.rb +416 -0
  301. data/lib/postfinancecheckout-ruby-sdk/models/space_address_create.rb +416 -0
  302. data/lib/postfinancecheckout-ruby-sdk/models/space_create.rb +302 -0
  303. data/lib/postfinancecheckout-ruby-sdk/models/space_update.rb +317 -0
  304. data/lib/postfinancecheckout-ruby-sdk/models/space_view.rb +275 -0
  305. data/lib/postfinancecheckout-ruby-sdk/models/static_value.rb +227 -0
  306. data/lib/postfinancecheckout-ruby-sdk/models/tax.rb +225 -0
  307. data/lib/postfinancecheckout-ruby-sdk/models/tax_create.rb +239 -0
  308. data/lib/postfinancecheckout-ruby-sdk/models/tenant_database.rb +226 -0
  309. data/lib/postfinancecheckout-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
  310. data/lib/postfinancecheckout-ruby-sdk/models/terminal_receipt_format.rb +35 -0
  311. data/lib/postfinancecheckout-ruby-sdk/models/token.rb +341 -0
  312. data/lib/postfinancecheckout-ruby-sdk/models/token_create.rb +296 -0
  313. data/lib/postfinancecheckout-ruby-sdk/models/token_update.rb +301 -0
  314. data/lib/postfinancecheckout-ruby-sdk/models/token_version.rb +445 -0
  315. data/lib/postfinancecheckout-ruby-sdk/models/token_version_state.rb +36 -0
  316. data/lib/postfinancecheckout-ruby-sdk/models/token_version_type.rb +225 -0
  317. data/lib/postfinancecheckout-ruby-sdk/models/tokenization_mode.rb +37 -0
  318. data/lib/postfinancecheckout-ruby-sdk/models/transaction.rb +1011 -0
  319. data/lib/postfinancecheckout-ruby-sdk/models/transaction_aware_entity.rb +211 -0
  320. data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment.rb +296 -0
  321. data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment_active.rb +236 -0
  322. data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment_create.rb +221 -0
  323. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion.rb +528 -0
  324. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
  325. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_mode.rb +36 -0
  326. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_request.rb +291 -0
  327. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_state.rb +38 -0
  328. data/lib/postfinancecheckout-ruby-sdk/models/transaction_create.rb +596 -0
  329. data/lib/postfinancecheckout-ruby-sdk/models/transaction_environment_selection_strategy.rb +36 -0
  330. data/lib/postfinancecheckout-ruby-sdk/models/transaction_group.rb +276 -0
  331. data/lib/postfinancecheckout-ruby-sdk/models/transaction_group_state.rb +36 -0
  332. data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice.rb +452 -0
  333. data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment.rb +296 -0
  334. data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment_active.rb +236 -0
  335. data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment_create.rb +221 -0
  336. data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_replacement.rb +296 -0
  337. data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_state.rb +40 -0
  338. data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_update_request.rb +208 -0
  339. data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_version.rb +313 -0
  340. data/lib/postfinancecheckout-ruby-sdk/models/transaction_pending.rb +517 -0
  341. data/lib/postfinancecheckout-ruby-sdk/models/transaction_state.rb +43 -0
  342. data/lib/postfinancecheckout-ruby-sdk/models/transaction_user_interface_type.rb +38 -0
  343. data/lib/postfinancecheckout-ruby-sdk/models/transaction_void.rb +373 -0
  344. data/lib/postfinancecheckout-ruby-sdk/models/transaction_void_mode.rb +35 -0
  345. data/lib/postfinancecheckout-ruby-sdk/models/transaction_void_state.rb +37 -0
  346. data/lib/postfinancecheckout-ruby-sdk/models/two_factor_authentication_type.rb +235 -0
  347. data/lib/postfinancecheckout-ruby-sdk/models/user.rb +241 -0
  348. data/lib/postfinancecheckout-ruby-sdk/models/user_account_role.rb +241 -0
  349. data/lib/postfinancecheckout-ruby-sdk/models/user_space_role.rb +231 -0
  350. data/lib/postfinancecheckout-ruby-sdk/models/user_type.rb +38 -0
  351. data/lib/postfinancecheckout-ruby-sdk/models/webhook_identity.rb +256 -0
  352. data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener.rb +308 -0
  353. data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_create.rb +278 -0
  354. data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_entity.rb +213 -0
  355. data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_update.rb +268 -0
  356. data/lib/postfinancecheckout-ruby-sdk/models/webhook_url.rb +300 -0
  357. data/lib/postfinancecheckout-ruby-sdk/models/webhook_url_create.rb +250 -0
  358. data/lib/postfinancecheckout-ruby-sdk/models/webhook_url_update.rb +280 -0
  359. data/lib/postfinancecheckout-ruby-sdk/version.rb +20 -0
  360. data/postfinancecheckout-ruby-sdk.gemspec +44 -0
  361. data/test/condition_type_service_test.rb +22 -0
  362. data/test/transaction_create_service_test.rb +89 -0
  363. data/test/transaction_payment_page_service_test.rb +91 -0
  364. metadata +469 -0
@@ -0,0 +1,91 @@
1
+ =begin
2
+ The PostFinance Checkout API allows an easy interaction with the PostFinance Checkout web service.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ =end
17
+
18
+ require "uri"
19
+
20
+ module PostFinanceCheckout
21
+ class TransactionLightboxService
22
+ attr_accessor :api_client
23
+
24
+ def initialize(api_client = ApiClient.default)
25
+ @api_client = api_client
26
+ end
27
+
28
+ # Build JavaScript URL
29
+ # This operation creates the URL which can be used to embed the JavaScript for handling the Lightbox checkout flow.
30
+ # @param space_id
31
+ # @param id The id of the transaction which should be returned.
32
+ # @param [Hash] opts the optional parameters
33
+ # @return [String]
34
+ def javascript_url(space_id, id, opts = {})
35
+ data, _status_code, _headers = javascript_url_with_http_info(space_id, id, opts)
36
+ return data
37
+ end
38
+
39
+ # Build JavaScript URL
40
+ # This operation creates the URL which can be used to embed the JavaScript for handling the Lightbox checkout flow.
41
+ # @param space_id
42
+ # @param id The id of the transaction which should be returned.
43
+ # @param [Hash] opts the optional parameters
44
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
45
+ def javascript_url_with_http_info(space_id, id, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug "Calling API: TransactionLightboxService.javascript_url ..."
48
+ end
49
+ # verify the required parameter 'space_id' is set
50
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionLightboxService.javascript_url" if space_id.nil?
51
+ # verify the required parameter 'id' is set
52
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionLightboxService.javascript_url" if id.nil?
53
+ # resource path
54
+ local_var_path = "/transaction-lightbox/javascript-url".sub('{format}','json')
55
+
56
+ # query parameters
57
+ query_params = {}
58
+ query_params[:'spaceId'] = space_id
59
+ query_params[:'id'] = id
60
+
61
+ # header parameters
62
+ header_params = {}
63
+
64
+ # HTTP header 'Accept' (if needed)
65
+ local_header_accept = ['application/json', 'text/plain;charset=utf-8']
66
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
+
68
+ # HTTP header 'Content-Type'
69
+ local_header_content_type = []
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ post_body = nil
77
+ auth_names = []
78
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
79
+ :header_params => header_params,
80
+ :query_params => query_params,
81
+ :form_params => form_params,
82
+ :body => post_body,
83
+ :auth_names => auth_names,
84
+ :return_type => 'String')
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: TransactionLightboxService#javascript_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,86 @@
1
+ =begin
2
+ The PostFinance Checkout API allows an easy interaction with the PostFinance Checkout web service.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ =end
17
+
18
+ require "uri"
19
+
20
+ module PostFinanceCheckout
21
+ class TransactionMobileSdkService
22
+ attr_accessor :api_client
23
+
24
+ def initialize(api_client = ApiClient.default)
25
+ @api_client = api_client
26
+ end
27
+
28
+ # Build Mobile SDK URL
29
+ # This operation builds the URL which is used to load the payment form within a WebView on a mobile device. This operation is typically called through the mobile SDK.
30
+ # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [String]
33
+ def payment_form_url(credentials, opts = {})
34
+ data, _status_code, _headers = payment_form_url_with_http_info(credentials, opts)
35
+ return data
36
+ end
37
+
38
+ # Build Mobile SDK URL
39
+ # This operation builds the URL which is used to load the payment form within a WebView on a mobile device. This operation is typically called through the mobile SDK.
40
+ # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
43
+ def payment_form_url_with_http_info(credentials, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug "Calling API: TransactionMobileSdkService.payment_form_url ..."
46
+ end
47
+ # verify the required parameter 'credentials' is set
48
+ fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionMobileSdkService.payment_form_url" if credentials.nil?
49
+ # resource path
50
+ local_var_path = "/transaction-mobile-sdk/payment-form-url".sub('{format}','json')
51
+
52
+ # query parameters
53
+ query_params = {}
54
+ query_params[:'credentials'] = credentials
55
+
56
+ # header parameters
57
+ header_params = {}
58
+
59
+ # HTTP header 'Accept' (if needed)
60
+ local_header_accept = ['application/json', 'text/plain;charset=utf-8']
61
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
62
+
63
+ # HTTP header 'Content-Type'
64
+ local_header_content_type = []
65
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
66
+
67
+ # form parameters
68
+ form_params = {}
69
+
70
+ # http body (model)
71
+ post_body = nil
72
+ auth_names = []
73
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
74
+ :header_params => header_params,
75
+ :query_params => query_params,
76
+ :form_params => form_params,
77
+ :body => post_body,
78
+ :auth_names => auth_names,
79
+ :return_type => 'String')
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: TransactionMobileSdkService#payment_form_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,91 @@
1
+ =begin
2
+ The PostFinance Checkout API allows an easy interaction with the PostFinance Checkout web service.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ =end
17
+
18
+ require "uri"
19
+
20
+ module PostFinanceCheckout
21
+ class TransactionPaymentPageService
22
+ attr_accessor :api_client
23
+
24
+ def initialize(api_client = ApiClient.default)
25
+ @api_client = api_client
26
+ end
27
+
28
+ # Build Payment Page URL
29
+ # This operation creates the URL to which the user should be redirected to when the payment page should be used.
30
+ # @param space_id
31
+ # @param id The id of the transaction which should be returned.
32
+ # @param [Hash] opts the optional parameters
33
+ # @return [String]
34
+ def payment_page_url(space_id, id, opts = {})
35
+ data, _status_code, _headers = payment_page_url_with_http_info(space_id, id, opts)
36
+ return data
37
+ end
38
+
39
+ # Build Payment Page URL
40
+ # This operation creates the URL to which the user should be redirected to when the payment page should be used.
41
+ # @param space_id
42
+ # @param id The id of the transaction which should be returned.
43
+ # @param [Hash] opts the optional parameters
44
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
45
+ def payment_page_url_with_http_info(space_id, id, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug "Calling API: TransactionPaymentPageService.payment_page_url ..."
48
+ end
49
+ # verify the required parameter 'space_id' is set
50
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionPaymentPageService.payment_page_url" if space_id.nil?
51
+ # verify the required parameter 'id' is set
52
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionPaymentPageService.payment_page_url" if id.nil?
53
+ # resource path
54
+ local_var_path = "/transaction-payment-page/payment-page-url".sub('{format}','json')
55
+
56
+ # query parameters
57
+ query_params = {}
58
+ query_params[:'spaceId'] = space_id
59
+ query_params[:'id'] = id
60
+
61
+ # header parameters
62
+ header_params = {}
63
+
64
+ # HTTP header 'Accept' (if needed)
65
+ local_header_accept = ['application/json', 'text/plain;charset=utf-8']
66
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
+
68
+ # HTTP header 'Content-Type'
69
+ local_header_content_type = []
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ post_body = nil
77
+ auth_names = []
78
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
79
+ :header_params => header_params,
80
+ :query_params => query_params,
81
+ :form_params => form_params,
82
+ :body => post_body,
83
+ :auth_names => auth_names,
84
+ :return_type => 'String')
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: TransactionPaymentPageService#payment_page_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,1210 @@
1
+ =begin
2
+ The PostFinance Checkout API allows an easy interaction with the PostFinance Checkout web service.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ =end
17
+
18
+ require "uri"
19
+
20
+ module PostFinanceCheckout
21
+ class TransactionService
22
+ attr_accessor :api_client
23
+
24
+ def initialize(api_client = ApiClient.default)
25
+ @api_client = api_client
26
+ end
27
+
28
+ # Confirm
29
+ # The confirm operation marks the transaction as confirmed. Once the transaction is confirmed no more changes can be applied.
30
+ # @param space_id
31
+ # @param transaction_model The transaction JSON object to update and confirm.
32
+ # @param [Hash] opts the optional parameters
33
+ # @return [Transaction]
34
+ def confirm(space_id, transaction_model, opts = {})
35
+ data, _status_code, _headers = confirm_with_http_info(space_id, transaction_model, opts)
36
+ return data
37
+ end
38
+
39
+ # Confirm
40
+ # The confirm operation marks the transaction as confirmed. Once the transaction is confirmed no more changes can be applied.
41
+ # @param space_id
42
+ # @param transaction_model The transaction JSON object to update and confirm.
43
+ # @param [Hash] opts the optional parameters
44
+ # @return [Array<(Transaction, Fixnum, Hash)>] Transaction data, response status code and response headers
45
+ def confirm_with_http_info(space_id, transaction_model, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug "Calling API: TransactionService.confirm ..."
48
+ end
49
+ # verify the required parameter 'space_id' is set
50
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.confirm" if space_id.nil?
51
+ # verify the required parameter 'transaction_model' is set
52
+ fail ArgumentError, "Missing the required parameter 'transaction_model' when calling TransactionService.confirm" if transaction_model.nil?
53
+ # resource path
54
+ local_var_path = "/transaction/confirm".sub('{format}','json')
55
+
56
+ # query parameters
57
+ query_params = {}
58
+ query_params[:'spaceId'] = space_id
59
+
60
+ # header parameters
61
+ header_params = {}
62
+
63
+ # HTTP header 'Accept' (if needed)
64
+ local_header_accept = ['application/json;charset=utf-8']
65
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
66
+
67
+ # HTTP header 'Content-Type'
68
+ local_header_content_type = ['application/json;charset=utf-8']
69
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
70
+
71
+ # form parameters
72
+ form_params = {}
73
+
74
+ # http body (model)
75
+ post_body = @api_client.object_to_http_body(transaction_model)
76
+ auth_names = []
77
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
78
+ :header_params => header_params,
79
+ :query_params => query_params,
80
+ :form_params => form_params,
81
+ :body => post_body,
82
+ :auth_names => auth_names,
83
+ :return_type => 'Transaction')
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: TransactionService#confirm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Count
91
+ # Counts the number of items in the database as restricted by the given filter.
92
+ # @param space_id
93
+ # @param [Hash] opts the optional parameters
94
+ # @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
95
+ # @return [Integer]
96
+ def count(space_id, opts = {})
97
+ data, _status_code, _headers = count_with_http_info(space_id, opts)
98
+ return data
99
+ end
100
+
101
+ # Count
102
+ # Counts the number of items in the database as restricted by the given filter.
103
+ # @param space_id
104
+ # @param [Hash] opts the optional parameters
105
+ # @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
106
+ # @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
107
+ def count_with_http_info(space_id, opts = {})
108
+ if @api_client.config.debugging
109
+ @api_client.config.logger.debug "Calling API: TransactionService.count ..."
110
+ end
111
+ # verify the required parameter 'space_id' is set
112
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.count" if space_id.nil?
113
+ # resource path
114
+ local_var_path = "/transaction/count".sub('{format}','json')
115
+
116
+ # query parameters
117
+ query_params = {}
118
+ query_params[:'spaceId'] = space_id
119
+
120
+ # header parameters
121
+ header_params = {}
122
+
123
+ # HTTP header 'Accept' (if needed)
124
+ local_header_accept = ['application/json;charset=utf-8']
125
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
126
+
127
+ # HTTP header 'Content-Type'
128
+ local_header_content_type = ['application/json;charset=utf-8']
129
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
130
+
131
+ # form parameters
132
+ form_params = {}
133
+
134
+ # http body (model)
135
+ post_body = @api_client.object_to_http_body(opts[:'filter'])
136
+ auth_names = []
137
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
138
+ :header_params => header_params,
139
+ :query_params => query_params,
140
+ :form_params => form_params,
141
+ :body => post_body,
142
+ :auth_names => auth_names,
143
+ :return_type => 'Integer')
144
+ if @api_client.config.debugging
145
+ @api_client.config.logger.debug "API called: TransactionService#count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
+ end
147
+ return data, status_code, headers
148
+ end
149
+
150
+ # Create
151
+ # Creates the entity with the given properties.
152
+ # @param space_id
153
+ # @param transaction The transaction object which should be created.
154
+ # @param [Hash] opts the optional parameters
155
+ # @return [Transaction]
156
+ def create(space_id, transaction, opts = {})
157
+ data, _status_code, _headers = create_with_http_info(space_id, transaction, opts)
158
+ return data
159
+ end
160
+
161
+ # Create
162
+ # Creates the entity with the given properties.
163
+ # @param space_id
164
+ # @param transaction The transaction object which should be created.
165
+ # @param [Hash] opts the optional parameters
166
+ # @return [Array<(Transaction, Fixnum, Hash)>] Transaction data, response status code and response headers
167
+ def create_with_http_info(space_id, transaction, opts = {})
168
+ if @api_client.config.debugging
169
+ @api_client.config.logger.debug "Calling API: TransactionService.create ..."
170
+ end
171
+ # verify the required parameter 'space_id' is set
172
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.create" if space_id.nil?
173
+ # verify the required parameter 'transaction' is set
174
+ fail ArgumentError, "Missing the required parameter 'transaction' when calling TransactionService.create" if transaction.nil?
175
+ # resource path
176
+ local_var_path = "/transaction/create".sub('{format}','json')
177
+
178
+ # query parameters
179
+ query_params = {}
180
+ query_params[:'spaceId'] = space_id
181
+
182
+ # header parameters
183
+ header_params = {}
184
+
185
+ # HTTP header 'Accept' (if needed)
186
+ local_header_accept = ['application/json;charset=utf-8']
187
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
188
+
189
+ # HTTP header 'Content-Type'
190
+ local_header_content_type = ['application/json;charset=utf-8']
191
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
192
+
193
+ # form parameters
194
+ form_params = {}
195
+
196
+ # http body (model)
197
+ post_body = @api_client.object_to_http_body(transaction)
198
+ auth_names = []
199
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
200
+ :header_params => header_params,
201
+ :query_params => query_params,
202
+ :form_params => form_params,
203
+ :body => post_body,
204
+ :auth_names => auth_names,
205
+ :return_type => 'Transaction')
206
+ if @api_client.config.debugging
207
+ @api_client.config.logger.debug "API called: TransactionService#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
208
+ end
209
+ return data, status_code, headers
210
+ end
211
+
212
+ # Create Transaction Credentials
213
+ # This operation allows to create transaction credentials to delegate temporarily the access to the web service API for this particular transaction.
214
+ # @param space_id
215
+ # @param id The id of the transaction which should be returned.
216
+ # @param [Hash] opts the optional parameters
217
+ # @return [String]
218
+ def create_transaction_credentials(space_id, id, opts = {})
219
+ data, _status_code, _headers = create_transaction_credentials_with_http_info(space_id, id, opts)
220
+ return data
221
+ end
222
+
223
+ # Create Transaction Credentials
224
+ # This operation allows to create transaction credentials to delegate temporarily the access to the web service API for this particular transaction.
225
+ # @param space_id
226
+ # @param id The id of the transaction which should be returned.
227
+ # @param [Hash] opts the optional parameters
228
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
229
+ def create_transaction_credentials_with_http_info(space_id, id, opts = {})
230
+ if @api_client.config.debugging
231
+ @api_client.config.logger.debug "Calling API: TransactionService.create_transaction_credentials ..."
232
+ end
233
+ # verify the required parameter 'space_id' is set
234
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.create_transaction_credentials" if space_id.nil?
235
+ # verify the required parameter 'id' is set
236
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.create_transaction_credentials" if id.nil?
237
+ # resource path
238
+ local_var_path = "/transaction/createTransactionCredentials".sub('{format}','json')
239
+
240
+ # query parameters
241
+ query_params = {}
242
+ query_params[:'spaceId'] = space_id
243
+ query_params[:'id'] = id
244
+
245
+ # header parameters
246
+ header_params = {}
247
+
248
+ # HTTP header 'Accept' (if needed)
249
+ local_header_accept = []
250
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
251
+
252
+ # HTTP header 'Content-Type'
253
+ local_header_content_type = []
254
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
255
+
256
+ # form parameters
257
+ form_params = {}
258
+
259
+ # http body (model)
260
+ post_body = nil
261
+ auth_names = []
262
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
263
+ :header_params => header_params,
264
+ :query_params => query_params,
265
+ :form_params => form_params,
266
+ :body => post_body,
267
+ :auth_names => auth_names,
268
+ :return_type => 'String')
269
+ if @api_client.config.debugging
270
+ @api_client.config.logger.debug "API called: TransactionService#create_transaction_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
271
+ end
272
+ return data, status_code, headers
273
+ end
274
+
275
+ # Delete One-Click Token with Credentials
276
+ # This operation removes the given token.
277
+ # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
278
+ # @param token_id The token ID will be used to find the token which should be removed.
279
+ # @param [Hash] opts the optional parameters
280
+ # @return [nil]
281
+ def delete_one_click_token_with_credentials(credentials, token_id, opts = {})
282
+ delete_one_click_token_with_credentials_with_http_info(credentials, token_id, opts)
283
+ return nil
284
+ end
285
+
286
+ # Delete One-Click Token with Credentials
287
+ # This operation removes the given token.
288
+ # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
289
+ # @param token_id The token ID will be used to find the token which should be removed.
290
+ # @param [Hash] opts the optional parameters
291
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
292
+ def delete_one_click_token_with_credentials_with_http_info(credentials, token_id, opts = {})
293
+ if @api_client.config.debugging
294
+ @api_client.config.logger.debug "Calling API: TransactionService.delete_one_click_token_with_credentials ..."
295
+ end
296
+ # verify the required parameter 'credentials' is set
297
+ fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.delete_one_click_token_with_credentials" if credentials.nil?
298
+ # verify the required parameter 'token_id' is set
299
+ fail ArgumentError, "Missing the required parameter 'token_id' when calling TransactionService.delete_one_click_token_with_credentials" if token_id.nil?
300
+ # resource path
301
+ local_var_path = "/transaction/deleteOneClickTokenWithCredentials".sub('{format}','json')
302
+
303
+ # query parameters
304
+ query_params = {}
305
+ query_params[:'credentials'] = credentials
306
+ query_params[:'tokenId'] = token_id
307
+
308
+ # header parameters
309
+ header_params = {}
310
+
311
+ # HTTP header 'Accept' (if needed)
312
+ local_header_accept = []
313
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
314
+
315
+ # HTTP header 'Content-Type'
316
+ local_header_content_type = []
317
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
318
+
319
+ # form parameters
320
+ form_params = {}
321
+
322
+ # http body (model)
323
+ post_body = nil
324
+ auth_names = []
325
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
326
+ :header_params => header_params,
327
+ :query_params => query_params,
328
+ :form_params => form_params,
329
+ :body => post_body,
330
+ :auth_names => auth_names)
331
+ if @api_client.config.debugging
332
+ @api_client.config.logger.debug "API called: TransactionService#delete_one_click_token_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
333
+ end
334
+ return data, status_code, headers
335
+ end
336
+
337
+ # Export
338
+ # Exports the transactions into a CSV file. The file will contain the properties defined in the request.
339
+ # @param space_id
340
+ # @param request The request controls the entries which are exported.
341
+ # @param [Hash] opts the optional parameters
342
+ # @return [String]
343
+ def export(space_id, request, opts = {})
344
+ data, _status_code, _headers = export_with_http_info(space_id, request, opts)
345
+ return data
346
+ end
347
+
348
+ # Export
349
+ # Exports the transactions into a CSV file. The file will contain the properties defined in the request.
350
+ # @param space_id
351
+ # @param request The request controls the entries which are exported.
352
+ # @param [Hash] opts the optional parameters
353
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
354
+ def export_with_http_info(space_id, request, opts = {})
355
+ if @api_client.config.debugging
356
+ @api_client.config.logger.debug "Calling API: TransactionService.export ..."
357
+ end
358
+ # verify the required parameter 'space_id' is set
359
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.export" if space_id.nil?
360
+ # verify the required parameter 'request' is set
361
+ fail ArgumentError, "Missing the required parameter 'request' when calling TransactionService.export" if request.nil?
362
+ # resource path
363
+ local_var_path = "/transaction/export".sub('{format}','json')
364
+
365
+ # query parameters
366
+ query_params = {}
367
+ query_params[:'spaceId'] = space_id
368
+
369
+ # header parameters
370
+ header_params = {}
371
+
372
+ # HTTP header 'Accept' (if needed)
373
+ local_header_accept = ['application/json;charset=utf-8', 'text/csv']
374
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
375
+
376
+ # HTTP header 'Content-Type'
377
+ local_header_content_type = ['application/json;charset=utf-8']
378
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
379
+
380
+ # form parameters
381
+ form_params = {}
382
+
383
+ # http body (model)
384
+ post_body = @api_client.object_to_http_body(request)
385
+ auth_names = []
386
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
387
+ :header_params => header_params,
388
+ :query_params => query_params,
389
+ :form_params => form_params,
390
+ :body => post_body,
391
+ :auth_names => auth_names,
392
+ :return_type => 'String')
393
+ if @api_client.config.debugging
394
+ @api_client.config.logger.debug "API called: TransactionService#export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
395
+ end
396
+ return data, status_code, headers
397
+ end
398
+
399
+ # Fetch One Click Tokens with Credentials
400
+ # This operation returns the token version objects which references the tokens usable as one-click payment tokens for the provided transaction.
401
+ # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
402
+ # @param [Hash] opts the optional parameters
403
+ # @return [Array<TokenVersion>]
404
+ def fetch_one_click_tokens_with_credentials(credentials, opts = {})
405
+ data, _status_code, _headers = fetch_one_click_tokens_with_credentials_with_http_info(credentials, opts)
406
+ return data
407
+ end
408
+
409
+ # Fetch One Click Tokens with Credentials
410
+ # This operation returns the token version objects which references the tokens usable as one-click payment tokens for the provided transaction.
411
+ # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
412
+ # @param [Hash] opts the optional parameters
413
+ # @return [Array<(Array<TokenVersion>, Fixnum, Hash)>] Array<TokenVersion> data, response status code and response headers
414
+ def fetch_one_click_tokens_with_credentials_with_http_info(credentials, opts = {})
415
+ if @api_client.config.debugging
416
+ @api_client.config.logger.debug "Calling API: TransactionService.fetch_one_click_tokens_with_credentials ..."
417
+ end
418
+ # verify the required parameter 'credentials' is set
419
+ fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.fetch_one_click_tokens_with_credentials" if credentials.nil?
420
+ # resource path
421
+ local_var_path = "/transaction/fetchOneClickTokensWithCredentials".sub('{format}','json')
422
+
423
+ # query parameters
424
+ query_params = {}
425
+ query_params[:'credentials'] = credentials
426
+
427
+ # header parameters
428
+ header_params = {}
429
+
430
+ # HTTP header 'Accept' (if needed)
431
+ local_header_accept = []
432
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
433
+
434
+ # HTTP header 'Content-Type'
435
+ local_header_content_type = []
436
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
437
+
438
+ # form parameters
439
+ form_params = {}
440
+
441
+ # http body (model)
442
+ post_body = nil
443
+ auth_names = []
444
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
445
+ :header_params => header_params,
446
+ :query_params => query_params,
447
+ :form_params => form_params,
448
+ :body => post_body,
449
+ :auth_names => auth_names,
450
+ :return_type => 'Array<TokenVersion>')
451
+ if @api_client.config.debugging
452
+ @api_client.config.logger.debug "API called: TransactionService#fetch_one_click_tokens_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
453
+ end
454
+ return data, status_code, headers
455
+ end
456
+
457
+ # Fetch Possible Payment Methods
458
+ # This operation allows to get the payment method configurations which can be used with the provided transaction.
459
+ # @param space_id
460
+ # @param id The id of the transaction which should be returned.
461
+ # @param integration_mode The integration mode defines the type of integration that is applied on the transaction.
462
+ # @param [Hash] opts the optional parameters
463
+ # @return [Array<PaymentMethodConfiguration>]
464
+ def fetch_payment_methods(space_id, id, integration_mode, opts = {})
465
+ data, _status_code, _headers = fetch_payment_methods_with_http_info(space_id, id, integration_mode, opts)
466
+ return data
467
+ end
468
+
469
+ # Fetch Possible Payment Methods
470
+ # This operation allows to get the payment method configurations which can be used with the provided transaction.
471
+ # @param space_id
472
+ # @param id The id of the transaction which should be returned.
473
+ # @param integration_mode The integration mode defines the type of integration that is applied on the transaction.
474
+ # @param [Hash] opts the optional parameters
475
+ # @return [Array<(Array<PaymentMethodConfiguration>, Fixnum, Hash)>] Array<PaymentMethodConfiguration> data, response status code and response headers
476
+ def fetch_payment_methods_with_http_info(space_id, id, integration_mode, opts = {})
477
+ if @api_client.config.debugging
478
+ @api_client.config.logger.debug "Calling API: TransactionService.fetch_payment_methods ..."
479
+ end
480
+ # verify the required parameter 'space_id' is set
481
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.fetch_payment_methods" if space_id.nil?
482
+ # verify the required parameter 'id' is set
483
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.fetch_payment_methods" if id.nil?
484
+ # verify the required parameter 'integration_mode' is set
485
+ fail ArgumentError, "Missing the required parameter 'integration_mode' when calling TransactionService.fetch_payment_methods" if integration_mode.nil?
486
+ # resource path
487
+ local_var_path = "/transaction/fetch-payment-methods".sub('{format}','json')
488
+
489
+ # query parameters
490
+ query_params = {}
491
+ query_params[:'spaceId'] = space_id
492
+ query_params[:'id'] = id
493
+ query_params[:'integrationMode'] = integration_mode
494
+
495
+ # header parameters
496
+ header_params = {}
497
+
498
+ # HTTP header 'Accept' (if needed)
499
+ local_header_accept = ['application/json;charset=utf-8']
500
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
501
+
502
+ # HTTP header 'Content-Type'
503
+ local_header_content_type = []
504
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
505
+
506
+ # form parameters
507
+ form_params = {}
508
+
509
+ # http body (model)
510
+ post_body = nil
511
+ auth_names = []
512
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
513
+ :header_params => header_params,
514
+ :query_params => query_params,
515
+ :form_params => form_params,
516
+ :body => post_body,
517
+ :auth_names => auth_names,
518
+ :return_type => 'Array<PaymentMethodConfiguration>')
519
+ if @api_client.config.debugging
520
+ @api_client.config.logger.debug "API called: TransactionService#fetch_payment_methods\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
521
+ end
522
+ return data, status_code, headers
523
+ end
524
+
525
+ # Fetch Possible Payment Methods with Credentials
526
+ # This operation allows to get the payment method configurations which can be used with the provided transaction.
527
+ # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
528
+ # @param integration_mode The integration mode defines the type of integration that is applied on the transaction.
529
+ # @param [Hash] opts the optional parameters
530
+ # @return [Array<PaymentMethodConfiguration>]
531
+ def fetch_payment_methods_with_credentials(credentials, integration_mode, opts = {})
532
+ data, _status_code, _headers = fetch_payment_methods_with_credentials_with_http_info(credentials, integration_mode, opts)
533
+ return data
534
+ end
535
+
536
+ # Fetch Possible Payment Methods with Credentials
537
+ # This operation allows to get the payment method configurations which can be used with the provided transaction.
538
+ # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
539
+ # @param integration_mode The integration mode defines the type of integration that is applied on the transaction.
540
+ # @param [Hash] opts the optional parameters
541
+ # @return [Array<(Array<PaymentMethodConfiguration>, Fixnum, Hash)>] Array<PaymentMethodConfiguration> data, response status code and response headers
542
+ def fetch_payment_methods_with_credentials_with_http_info(credentials, integration_mode, opts = {})
543
+ if @api_client.config.debugging
544
+ @api_client.config.logger.debug "Calling API: TransactionService.fetch_payment_methods_with_credentials ..."
545
+ end
546
+ # verify the required parameter 'credentials' is set
547
+ fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.fetch_payment_methods_with_credentials" if credentials.nil?
548
+ # verify the required parameter 'integration_mode' is set
549
+ fail ArgumentError, "Missing the required parameter 'integration_mode' when calling TransactionService.fetch_payment_methods_with_credentials" if integration_mode.nil?
550
+ # resource path
551
+ local_var_path = "/transaction/fetch-payment-methods-with-credentials".sub('{format}','json')
552
+
553
+ # query parameters
554
+ query_params = {}
555
+ query_params[:'credentials'] = credentials
556
+ query_params[:'integrationMode'] = integration_mode
557
+
558
+ # header parameters
559
+ header_params = {}
560
+
561
+ # HTTP header 'Accept' (if needed)
562
+ local_header_accept = ['application/json;charset=utf-8']
563
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
564
+
565
+ # HTTP header 'Content-Type'
566
+ local_header_content_type = []
567
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
568
+
569
+ # form parameters
570
+ form_params = {}
571
+
572
+ # http body (model)
573
+ post_body = nil
574
+ auth_names = []
575
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
576
+ :header_params => header_params,
577
+ :query_params => query_params,
578
+ :form_params => form_params,
579
+ :body => post_body,
580
+ :auth_names => auth_names,
581
+ :return_type => 'Array<PaymentMethodConfiguration>')
582
+ if @api_client.config.debugging
583
+ @api_client.config.logger.debug "API called: TransactionService#fetch_payment_methods_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
584
+ end
585
+ return data, status_code, headers
586
+ end
587
+
588
+ # getInvoiceDocument
589
+ # Returns the PDF document for the transaction invoice with given id.
590
+ # @param space_id
591
+ # @param id The id of the transaction to get the invoice document for.
592
+ # @param [Hash] opts the optional parameters
593
+ # @return [RenderedDocument]
594
+ def get_invoice_document(space_id, id, opts = {})
595
+ data, _status_code, _headers = get_invoice_document_with_http_info(space_id, id, opts)
596
+ return data
597
+ end
598
+
599
+ # getInvoiceDocument
600
+ # Returns the PDF document for the transaction invoice with given id.
601
+ # @param space_id
602
+ # @param id The id of the transaction to get the invoice document for.
603
+ # @param [Hash] opts the optional parameters
604
+ # @return [Array<(RenderedDocument, Fixnum, Hash)>] RenderedDocument data, response status code and response headers
605
+ def get_invoice_document_with_http_info(space_id, id, opts = {})
606
+ if @api_client.config.debugging
607
+ @api_client.config.logger.debug "Calling API: TransactionService.get_invoice_document ..."
608
+ end
609
+ # verify the required parameter 'space_id' is set
610
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.get_invoice_document" if space_id.nil?
611
+ # verify the required parameter 'id' is set
612
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.get_invoice_document" if id.nil?
613
+ # resource path
614
+ local_var_path = "/transaction/getInvoiceDocument".sub('{format}','json')
615
+
616
+ # query parameters
617
+ query_params = {}
618
+ query_params[:'spaceId'] = space_id
619
+ query_params[:'id'] = id
620
+
621
+ # header parameters
622
+ header_params = {}
623
+
624
+ # HTTP header 'Accept' (if needed)
625
+ local_header_accept = ['application/json;charset=utf-8']
626
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
627
+
628
+ # HTTP header 'Content-Type'
629
+ local_header_content_type = ['*/*']
630
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
631
+
632
+ # form parameters
633
+ form_params = {}
634
+
635
+ # http body (model)
636
+ post_body = nil
637
+ auth_names = []
638
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
639
+ :header_params => header_params,
640
+ :query_params => query_params,
641
+ :form_params => form_params,
642
+ :body => post_body,
643
+ :auth_names => auth_names,
644
+ :return_type => 'RenderedDocument')
645
+ if @api_client.config.debugging
646
+ @api_client.config.logger.debug "API called: TransactionService#get_invoice_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
647
+ end
648
+ return data, status_code, headers
649
+ end
650
+
651
+ # getLatestTransactionLineItemVersion
652
+ #
653
+ # @param space_id
654
+ # @param id The id of the transaction to get the latest line item version for.
655
+ # @param [Hash] opts the optional parameters
656
+ # @return [TransactionLineItemVersion]
657
+ def get_latest_transaction_line_item_version(space_id, id, opts = {})
658
+ data, _status_code, _headers = get_latest_transaction_line_item_version_with_http_info(space_id, id, opts)
659
+ return data
660
+ end
661
+
662
+ # getLatestTransactionLineItemVersion
663
+ #
664
+ # @param space_id
665
+ # @param id The id of the transaction to get the latest line item version for.
666
+ # @param [Hash] opts the optional parameters
667
+ # @return [Array<(TransactionLineItemVersion, Fixnum, Hash)>] TransactionLineItemVersion data, response status code and response headers
668
+ def get_latest_transaction_line_item_version_with_http_info(space_id, id, opts = {})
669
+ if @api_client.config.debugging
670
+ @api_client.config.logger.debug "Calling API: TransactionService.get_latest_transaction_line_item_version ..."
671
+ end
672
+ # verify the required parameter 'space_id' is set
673
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.get_latest_transaction_line_item_version" if space_id.nil?
674
+ # verify the required parameter 'id' is set
675
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.get_latest_transaction_line_item_version" if id.nil?
676
+ # resource path
677
+ local_var_path = "/transaction/getLatestTransactionLineItemVersion".sub('{format}','json')
678
+
679
+ # query parameters
680
+ query_params = {}
681
+ query_params[:'spaceId'] = space_id
682
+ query_params[:'id'] = id
683
+
684
+ # header parameters
685
+ header_params = {}
686
+
687
+ # HTTP header 'Accept' (if needed)
688
+ local_header_accept = ['application/json;charset=utf-8']
689
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
690
+
691
+ # HTTP header 'Content-Type'
692
+ local_header_content_type = []
693
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
694
+
695
+ # form parameters
696
+ form_params = {}
697
+
698
+ # http body (model)
699
+ post_body = nil
700
+ auth_names = []
701
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
702
+ :header_params => header_params,
703
+ :query_params => query_params,
704
+ :form_params => form_params,
705
+ :body => post_body,
706
+ :auth_names => auth_names,
707
+ :return_type => 'TransactionLineItemVersion')
708
+ if @api_client.config.debugging
709
+ @api_client.config.logger.debug "API called: TransactionService#get_latest_transaction_line_item_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
710
+ end
711
+ return data, status_code, headers
712
+ end
713
+
714
+ # getPackingSlip
715
+ # Returns the packing slip for the transaction with given id.
716
+ # @param space_id
717
+ # @param id The id of the transaction to get the packing slip for.
718
+ # @param [Hash] opts the optional parameters
719
+ # @return [RenderedDocument]
720
+ def get_packing_slip(space_id, id, opts = {})
721
+ data, _status_code, _headers = get_packing_slip_with_http_info(space_id, id, opts)
722
+ return data
723
+ end
724
+
725
+ # getPackingSlip
726
+ # Returns the packing slip for the transaction with given id.
727
+ # @param space_id
728
+ # @param id The id of the transaction to get the packing slip for.
729
+ # @param [Hash] opts the optional parameters
730
+ # @return [Array<(RenderedDocument, Fixnum, Hash)>] RenderedDocument data, response status code and response headers
731
+ def get_packing_slip_with_http_info(space_id, id, opts = {})
732
+ if @api_client.config.debugging
733
+ @api_client.config.logger.debug "Calling API: TransactionService.get_packing_slip ..."
734
+ end
735
+ # verify the required parameter 'space_id' is set
736
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.get_packing_slip" if space_id.nil?
737
+ # verify the required parameter 'id' is set
738
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.get_packing_slip" if id.nil?
739
+ # resource path
740
+ local_var_path = "/transaction/getPackingSlip".sub('{format}','json')
741
+
742
+ # query parameters
743
+ query_params = {}
744
+ query_params[:'spaceId'] = space_id
745
+ query_params[:'id'] = id
746
+
747
+ # header parameters
748
+ header_params = {}
749
+
750
+ # HTTP header 'Accept' (if needed)
751
+ local_header_accept = ['application/json;charset=utf-8']
752
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
753
+
754
+ # HTTP header 'Content-Type'
755
+ local_header_content_type = ['*/*']
756
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
757
+
758
+ # form parameters
759
+ form_params = {}
760
+
761
+ # http body (model)
762
+ post_body = nil
763
+ auth_names = []
764
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
765
+ :header_params => header_params,
766
+ :query_params => query_params,
767
+ :form_params => form_params,
768
+ :body => post_body,
769
+ :auth_names => auth_names,
770
+ :return_type => 'RenderedDocument')
771
+ if @api_client.config.debugging
772
+ @api_client.config.logger.debug "API called: TransactionService#get_packing_slip\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
773
+ end
774
+ return data, status_code, headers
775
+ end
776
+
777
+ # Process One-Click Token with Credentials
778
+ # This operation assigns the given token to the transaction and process it. This method will return an URL where the customer has to be redirect to complete the transaction.
779
+ # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
780
+ # @param token_id The token ID is used to load the corresponding token and to process the transaction with it.
781
+ # @param [Hash] opts the optional parameters
782
+ # @return [String]
783
+ def process_one_click_token_and_redirect_with_credentials(credentials, token_id, opts = {})
784
+ data, _status_code, _headers = process_one_click_token_and_redirect_with_credentials_with_http_info(credentials, token_id, opts)
785
+ return data
786
+ end
787
+
788
+ # Process One-Click Token with Credentials
789
+ # This operation assigns the given token to the transaction and process it. This method will return an URL where the customer has to be redirect to complete the transaction.
790
+ # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
791
+ # @param token_id The token ID is used to load the corresponding token and to process the transaction with it.
792
+ # @param [Hash] opts the optional parameters
793
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
794
+ def process_one_click_token_and_redirect_with_credentials_with_http_info(credentials, token_id, opts = {})
795
+ if @api_client.config.debugging
796
+ @api_client.config.logger.debug "Calling API: TransactionService.process_one_click_token_and_redirect_with_credentials ..."
797
+ end
798
+ # verify the required parameter 'credentials' is set
799
+ fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.process_one_click_token_and_redirect_with_credentials" if credentials.nil?
800
+ # verify the required parameter 'token_id' is set
801
+ fail ArgumentError, "Missing the required parameter 'token_id' when calling TransactionService.process_one_click_token_and_redirect_with_credentials" if token_id.nil?
802
+ # resource path
803
+ local_var_path = "/transaction/processOneClickTokenAndRedirectWithCredentials".sub('{format}','json')
804
+
805
+ # query parameters
806
+ query_params = {}
807
+ query_params[:'credentials'] = credentials
808
+ query_params[:'tokenId'] = token_id
809
+
810
+ # header parameters
811
+ header_params = {}
812
+
813
+ # HTTP header 'Accept' (if needed)
814
+ local_header_accept = []
815
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
816
+
817
+ # HTTP header 'Content-Type'
818
+ local_header_content_type = []
819
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
820
+
821
+ # form parameters
822
+ form_params = {}
823
+
824
+ # http body (model)
825
+ post_body = nil
826
+ auth_names = []
827
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
828
+ :header_params => header_params,
829
+ :query_params => query_params,
830
+ :form_params => form_params,
831
+ :body => post_body,
832
+ :auth_names => auth_names,
833
+ :return_type => 'String')
834
+ if @api_client.config.debugging
835
+ @api_client.config.logger.debug "API called: TransactionService#process_one_click_token_and_redirect_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
836
+ end
837
+ return data, status_code, headers
838
+ end
839
+
840
+ # Process Without User Interaction
841
+ # This operation processes the transaction without requiring that the customer is present. Means this operation applies strategies to process the transaction without a direct interaction with the buyer. This operation is suitable for recurring transactions.
842
+ # @param space_id
843
+ # @param id The id of the transaction which should be processed.
844
+ # @param [Hash] opts the optional parameters
845
+ # @return [Transaction]
846
+ def process_without_user_interaction(space_id, id, opts = {})
847
+ data, _status_code, _headers = process_without_user_interaction_with_http_info(space_id, id, opts)
848
+ return data
849
+ end
850
+
851
+ # Process Without User Interaction
852
+ # This operation processes the transaction without requiring that the customer is present. Means this operation applies strategies to process the transaction without a direct interaction with the buyer. This operation is suitable for recurring transactions.
853
+ # @param space_id
854
+ # @param id The id of the transaction which should be processed.
855
+ # @param [Hash] opts the optional parameters
856
+ # @return [Array<(Transaction, Fixnum, Hash)>] Transaction data, response status code and response headers
857
+ def process_without_user_interaction_with_http_info(space_id, id, opts = {})
858
+ if @api_client.config.debugging
859
+ @api_client.config.logger.debug "Calling API: TransactionService.process_without_user_interaction ..."
860
+ end
861
+ # verify the required parameter 'space_id' is set
862
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.process_without_user_interaction" if space_id.nil?
863
+ # verify the required parameter 'id' is set
864
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.process_without_user_interaction" if id.nil?
865
+ # resource path
866
+ local_var_path = "/transaction/processWithoutUserInteraction".sub('{format}','json')
867
+
868
+ # query parameters
869
+ query_params = {}
870
+ query_params[:'spaceId'] = space_id
871
+ query_params[:'id'] = id
872
+
873
+ # header parameters
874
+ header_params = {}
875
+
876
+ # HTTP header 'Accept' (if needed)
877
+ local_header_accept = []
878
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
879
+
880
+ # HTTP header 'Content-Type'
881
+ local_header_content_type = []
882
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
883
+
884
+ # form parameters
885
+ form_params = {}
886
+
887
+ # http body (model)
888
+ post_body = nil
889
+ auth_names = []
890
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
891
+ :header_params => header_params,
892
+ :query_params => query_params,
893
+ :form_params => form_params,
894
+ :body => post_body,
895
+ :auth_names => auth_names,
896
+ :return_type => 'Transaction')
897
+ if @api_client.config.debugging
898
+ @api_client.config.logger.debug "API called: TransactionService#process_without_user_interaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
899
+ end
900
+ return data, status_code, headers
901
+ end
902
+
903
+ # Read
904
+ # Reads the entity with the given 'id' and returns it.
905
+ # @param space_id
906
+ # @param id The id of the transaction which should be returned.
907
+ # @param [Hash] opts the optional parameters
908
+ # @return [Transaction]
909
+ def read(space_id, id, opts = {})
910
+ data, _status_code, _headers = read_with_http_info(space_id, id, opts)
911
+ return data
912
+ end
913
+
914
+ # Read
915
+ # Reads the entity with the given &#39;id&#39; and returns it.
916
+ # @param space_id
917
+ # @param id The id of the transaction which should be returned.
918
+ # @param [Hash] opts the optional parameters
919
+ # @return [Array<(Transaction, Fixnum, Hash)>] Transaction data, response status code and response headers
920
+ def read_with_http_info(space_id, id, opts = {})
921
+ if @api_client.config.debugging
922
+ @api_client.config.logger.debug "Calling API: TransactionService.read ..."
923
+ end
924
+ # verify the required parameter 'space_id' is set
925
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.read" if space_id.nil?
926
+ # verify the required parameter 'id' is set
927
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.read" if id.nil?
928
+ # resource path
929
+ local_var_path = "/transaction/read".sub('{format}','json')
930
+
931
+ # query parameters
932
+ query_params = {}
933
+ query_params[:'spaceId'] = space_id
934
+ query_params[:'id'] = id
935
+
936
+ # header parameters
937
+ header_params = {}
938
+
939
+ # HTTP header 'Accept' (if needed)
940
+ local_header_accept = ['application/json;charset=utf-8']
941
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
942
+
943
+ # HTTP header 'Content-Type'
944
+ local_header_content_type = ['*/*']
945
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
946
+
947
+ # form parameters
948
+ form_params = {}
949
+
950
+ # http body (model)
951
+ post_body = nil
952
+ auth_names = []
953
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
954
+ :header_params => header_params,
955
+ :query_params => query_params,
956
+ :form_params => form_params,
957
+ :body => post_body,
958
+ :auth_names => auth_names,
959
+ :return_type => 'Transaction')
960
+ if @api_client.config.debugging
961
+ @api_client.config.logger.debug "API called: TransactionService#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
962
+ end
963
+ return data, status_code, headers
964
+ end
965
+
966
+ # Read With Credentials
967
+ # Reads the transaction with the given 'id' and returns it. This method uses the credentials to authenticate and identify the transaction.
968
+ # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
969
+ # @param [Hash] opts the optional parameters
970
+ # @return [Transaction]
971
+ def read_with_credentials(credentials, opts = {})
972
+ data, _status_code, _headers = read_with_credentials_with_http_info(credentials, opts)
973
+ return data
974
+ end
975
+
976
+ # Read With Credentials
977
+ # Reads the transaction with the given &#39;id&#39; and returns it. This method uses the credentials to authenticate and identify the transaction.
978
+ # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
979
+ # @param [Hash] opts the optional parameters
980
+ # @return [Array<(Transaction, Fixnum, Hash)>] Transaction data, response status code and response headers
981
+ def read_with_credentials_with_http_info(credentials, opts = {})
982
+ if @api_client.config.debugging
983
+ @api_client.config.logger.debug "Calling API: TransactionService.read_with_credentials ..."
984
+ end
985
+ # verify the required parameter 'credentials' is set
986
+ fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.read_with_credentials" if credentials.nil?
987
+ # resource path
988
+ local_var_path = "/transaction/readWithCredentials".sub('{format}','json')
989
+
990
+ # query parameters
991
+ query_params = {}
992
+ query_params[:'credentials'] = credentials
993
+
994
+ # header parameters
995
+ header_params = {}
996
+
997
+ # HTTP header 'Accept' (if needed)
998
+ local_header_accept = ['application/json;charset=utf-8']
999
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1000
+
1001
+ # HTTP header 'Content-Type'
1002
+ local_header_content_type = ['*/*']
1003
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1004
+
1005
+ # form parameters
1006
+ form_params = {}
1007
+
1008
+ # http body (model)
1009
+ post_body = nil
1010
+ auth_names = []
1011
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1012
+ :header_params => header_params,
1013
+ :query_params => query_params,
1014
+ :form_params => form_params,
1015
+ :body => post_body,
1016
+ :auth_names => auth_names,
1017
+ :return_type => 'Transaction')
1018
+ if @api_client.config.debugging
1019
+ @api_client.config.logger.debug "API called: TransactionService#read_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1020
+ end
1021
+ return data, status_code, headers
1022
+ end
1023
+
1024
+ # Search
1025
+ # Searches for the entities as specified by the given query.
1026
+ # @param space_id
1027
+ # @param query The query restricts the transactions which are returned by the search.
1028
+ # @param [Hash] opts the optional parameters
1029
+ # @return [Array<Transaction>]
1030
+ def search(space_id, query, opts = {})
1031
+ data, _status_code, _headers = search_with_http_info(space_id, query, opts)
1032
+ return data
1033
+ end
1034
+
1035
+ # Search
1036
+ # Searches for the entities as specified by the given query.
1037
+ # @param space_id
1038
+ # @param query The query restricts the transactions which are returned by the search.
1039
+ # @param [Hash] opts the optional parameters
1040
+ # @return [Array<(Array<Transaction>, Fixnum, Hash)>] Array<Transaction> data, response status code and response headers
1041
+ def search_with_http_info(space_id, query, opts = {})
1042
+ if @api_client.config.debugging
1043
+ @api_client.config.logger.debug "Calling API: TransactionService.search ..."
1044
+ end
1045
+ # verify the required parameter 'space_id' is set
1046
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.search" if space_id.nil?
1047
+ # verify the required parameter 'query' is set
1048
+ fail ArgumentError, "Missing the required parameter 'query' when calling TransactionService.search" if query.nil?
1049
+ # resource path
1050
+ local_var_path = "/transaction/search".sub('{format}','json')
1051
+
1052
+ # query parameters
1053
+ query_params = {}
1054
+ query_params[:'spaceId'] = space_id
1055
+
1056
+ # header parameters
1057
+ header_params = {}
1058
+
1059
+ # HTTP header 'Accept' (if needed)
1060
+ local_header_accept = ['application/json;charset=utf-8']
1061
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1062
+
1063
+ # HTTP header 'Content-Type'
1064
+ local_header_content_type = ['application/json;charset=utf-8']
1065
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1066
+
1067
+ # form parameters
1068
+ form_params = {}
1069
+
1070
+ # http body (model)
1071
+ post_body = @api_client.object_to_http_body(query)
1072
+ auth_names = []
1073
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1074
+ :header_params => header_params,
1075
+ :query_params => query_params,
1076
+ :form_params => form_params,
1077
+ :body => post_body,
1078
+ :auth_names => auth_names,
1079
+ :return_type => 'Array<Transaction>')
1080
+ if @api_client.config.debugging
1081
+ @api_client.config.logger.debug "API called: TransactionService#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1082
+ end
1083
+ return data, status_code, headers
1084
+ end
1085
+
1086
+ # Update
1087
+ # This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity.
1088
+ # @param space_id
1089
+ # @param entity The transaction object with the properties which should be updated.
1090
+ # @param [Hash] opts the optional parameters
1091
+ # @return [Transaction]
1092
+ def update(space_id, entity, opts = {})
1093
+ data, _status_code, _headers = update_with_http_info(space_id, entity, opts)
1094
+ return data
1095
+ end
1096
+
1097
+ # Update
1098
+ # This updates the entity with the given properties. Only those properties which should be updated can be provided. The &#39;id&#39; and &#39;version&#39; are required to identify the entity.
1099
+ # @param space_id
1100
+ # @param entity The transaction object with the properties which should be updated.
1101
+ # @param [Hash] opts the optional parameters
1102
+ # @return [Array<(Transaction, Fixnum, Hash)>] Transaction data, response status code and response headers
1103
+ def update_with_http_info(space_id, entity, opts = {})
1104
+ if @api_client.config.debugging
1105
+ @api_client.config.logger.debug "Calling API: TransactionService.update ..."
1106
+ end
1107
+ # verify the required parameter 'space_id' is set
1108
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.update" if space_id.nil?
1109
+ # verify the required parameter 'entity' is set
1110
+ fail ArgumentError, "Missing the required parameter 'entity' when calling TransactionService.update" if entity.nil?
1111
+ # resource path
1112
+ local_var_path = "/transaction/update".sub('{format}','json')
1113
+
1114
+ # query parameters
1115
+ query_params = {}
1116
+ query_params[:'spaceId'] = space_id
1117
+
1118
+ # header parameters
1119
+ header_params = {}
1120
+
1121
+ # HTTP header 'Accept' (if needed)
1122
+ local_header_accept = ['application/json;charset=utf-8']
1123
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1124
+
1125
+ # HTTP header 'Content-Type'
1126
+ local_header_content_type = ['application/json;charset=utf-8']
1127
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1128
+
1129
+ # form parameters
1130
+ form_params = {}
1131
+
1132
+ # http body (model)
1133
+ post_body = @api_client.object_to_http_body(entity)
1134
+ auth_names = []
1135
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1136
+ :header_params => header_params,
1137
+ :query_params => query_params,
1138
+ :form_params => form_params,
1139
+ :body => post_body,
1140
+ :auth_names => auth_names,
1141
+ :return_type => 'Transaction')
1142
+ if @api_client.config.debugging
1143
+ @api_client.config.logger.debug "API called: TransactionService#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1144
+ end
1145
+ return data, status_code, headers
1146
+ end
1147
+
1148
+ # updateTransactionLineItems
1149
+ #
1150
+ # @param space_id
1151
+ # @param update_request
1152
+ # @param [Hash] opts the optional parameters
1153
+ # @return [TransactionLineItemVersion]
1154
+ def update_transaction_line_items(space_id, update_request, opts = {})
1155
+ data, _status_code, _headers = update_transaction_line_items_with_http_info(space_id, update_request, opts)
1156
+ return data
1157
+ end
1158
+
1159
+ # updateTransactionLineItems
1160
+ #
1161
+ # @param space_id
1162
+ # @param update_request
1163
+ # @param [Hash] opts the optional parameters
1164
+ # @return [Array<(TransactionLineItemVersion, Fixnum, Hash)>] TransactionLineItemVersion data, response status code and response headers
1165
+ def update_transaction_line_items_with_http_info(space_id, update_request, opts = {})
1166
+ if @api_client.config.debugging
1167
+ @api_client.config.logger.debug "Calling API: TransactionService.update_transaction_line_items ..."
1168
+ end
1169
+ # verify the required parameter 'space_id' is set
1170
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.update_transaction_line_items" if space_id.nil?
1171
+ # verify the required parameter 'update_request' is set
1172
+ fail ArgumentError, "Missing the required parameter 'update_request' when calling TransactionService.update_transaction_line_items" if update_request.nil?
1173
+ # resource path
1174
+ local_var_path = "/transaction/updateTransactionLineItems".sub('{format}','json')
1175
+
1176
+ # query parameters
1177
+ query_params = {}
1178
+ query_params[:'spaceId'] = space_id
1179
+
1180
+ # header parameters
1181
+ header_params = {}
1182
+
1183
+ # HTTP header 'Accept' (if needed)
1184
+ local_header_accept = ['application/json;charset=utf-8']
1185
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1186
+
1187
+ # HTTP header 'Content-Type'
1188
+ local_header_content_type = ['application/json;charset=utf-8']
1189
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1190
+
1191
+ # form parameters
1192
+ form_params = {}
1193
+
1194
+ # http body (model)
1195
+ post_body = @api_client.object_to_http_body(update_request)
1196
+ auth_names = []
1197
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1198
+ :header_params => header_params,
1199
+ :query_params => query_params,
1200
+ :form_params => form_params,
1201
+ :body => post_body,
1202
+ :auth_names => auth_names,
1203
+ :return_type => 'TransactionLineItemVersion')
1204
+ if @api_client.config.debugging
1205
+ @api_client.config.logger.debug "API called: TransactionService#update_transaction_line_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1206
+ end
1207
+ return data, status_code, headers
1208
+ end
1209
+ end
1210
+ end