wallee-ruby-sdk 1.0.0 → 1.0.1

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 (354) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/{wallee/models/line_item_attribute.rb → wallee-ruby-sdk/models/abstract_account_update.rb} +17 -17
  4. data/lib/{wallee/models/line_item_attribute_create.rb → wallee-ruby-sdk/models/abstract_application_user_update.rb} +16 -16
  5. data/lib/{wallee/models/user.rb → wallee-ruby-sdk/models/abstract_human_user_update.rb} +41 -41
  6. data/lib/{wallee/models/condition.rb → wallee-ruby-sdk/models/abstract_space_update.rb} +39 -47
  7. data/lib/{wallee/models/subscriber.rb → wallee-ruby-sdk/models/abstract_subscriber_update.rb} +16 -64
  8. data/lib/{wallee/models/persistable_currency_amount.rb → wallee-ruby-sdk/models/abstract_subscription_metric_update.rb} +15 -15
  9. data/lib/{wallee/models/subscription_product.rb → wallee-ruby-sdk/models/abstract_subscription_product_active.rb} +6 -66
  10. data/lib/{wallee/models/token.rb → wallee-ruby-sdk/models/abstract_token_update.rb} +12 -72
  11. data/lib/{wallee/models/token_version.rb → wallee-ruby-sdk/models/abstract_transaction_pending.rb} +111 -105
  12. data/lib/{wallee/models/entity_query_order_by.rb → wallee-ruby-sdk/models/abstract_webhook_listener_update.rb} +16 -16
  13. data/lib/{wallee/models/webhook_listener_entity.rb → wallee-ruby-sdk/models/abstract_webhook_url_update.rb} +20 -22
  14. data/lib/wallee-ruby-sdk/models/account_create.rb +8 -98
  15. data/lib/wallee-ruby-sdk/models/account_update.rb +8 -78
  16. data/lib/wallee-ruby-sdk/models/address.rb +1 -1
  17. data/lib/wallee-ruby-sdk/models/address_create.rb +1 -1
  18. data/lib/wallee-ruby-sdk/models/application_user_create.rb +8 -68
  19. data/lib/wallee-ruby-sdk/models/application_user_update.rb +18 -58
  20. data/lib/wallee-ruby-sdk/models/charge.rb +11 -1
  21. data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +1 -23
  22. data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +1 -11
  23. data/lib/wallee-ruby-sdk/models/human_user.rb +11 -61
  24. data/lib/wallee-ruby-sdk/models/human_user_create.rb +21 -91
  25. data/lib/wallee-ruby-sdk/models/human_user_update.rb +31 -81
  26. data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +10 -0
  27. data/lib/wallee-ruby-sdk/models/line_item_create.rb +4 -64
  28. data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +35 -1
  29. data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +24 -44
  30. data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +24 -24
  31. data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +24 -44
  32. data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +24 -44
  33. data/lib/wallee-ruby-sdk/models/refund_create.rb +4 -214
  34. data/lib/{wallee/models/tax_class.rb → wallee-ruby-sdk/models/role.rb} +26 -24
  35. data/lib/{wallee/models/space_address.rb → wallee-ruby-sdk/models/space_address_create.rb} +1 -1
  36. data/lib/wallee-ruby-sdk/models/space_create.rb +9 -94
  37. data/lib/wallee-ruby-sdk/models/space_update.rb +12 -72
  38. data/lib/wallee-ruby-sdk/models/subscriber.rb +13 -1
  39. data/lib/wallee-ruby-sdk/models/subscriber_active.rb +33 -51
  40. data/lib/wallee-ruby-sdk/models/subscriber_create.rb +17 -55
  41. data/lib/wallee-ruby-sdk/models/subscriber_update.rb +33 -61
  42. data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +4 -136
  43. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +4 -104
  44. data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +20 -60
  45. data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +4 -64
  46. data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +20 -60
  47. data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +4 -64
  48. data/lib/wallee-ruby-sdk/models/subscription_pending.rb +17 -97
  49. data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +11 -51
  50. data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +11 -21
  51. data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +24 -34
  52. data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +8 -68
  53. data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +4 -44
  54. data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +24 -24
  55. data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +4 -44
  56. data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +4 -104
  57. data/lib/wallee-ruby-sdk/models/subscription_update.rb +17 -127
  58. data/lib/wallee-ruby-sdk/models/token.rb +11 -1
  59. data/lib/wallee-ruby-sdk/models/token_create.rb +25 -75
  60. data/lib/wallee-ruby-sdk/models/token_update.rb +18 -58
  61. data/lib/wallee-ruby-sdk/models/token_version.rb +21 -1
  62. data/lib/{wallee/models/email_sender_type.rb → wallee-ruby-sdk/models/token_version_type.rb} +2 -2
  63. data/lib/wallee-ruby-sdk/models/transaction.rb +53 -3
  64. data/lib/wallee-ruby-sdk/models/transaction_create.rb +43 -278
  65. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +19 -259
  66. data/lib/{wallee/models/label.rb → wallee-ruby-sdk/models/user_account_role.rb} +34 -24
  67. data/lib/{wallee/models/tenant_database.rb → wallee-ruby-sdk/models/user_space_role.rb} +29 -9
  68. data/lib/wallee-ruby-sdk/models/user_type.rb +1 -0
  69. data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +24 -79
  70. data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +11 -1
  71. data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +8 -80
  72. data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +4 -59
  73. data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +11 -31
  74. data/lib/wallee-ruby-sdk/services/token_service_api.rb +3 -3
  75. data/lib/wallee-ruby-sdk/services/user_account_role_service_api.rb +223 -0
  76. data/lib/wallee-ruby-sdk/services/user_space_role_service_api.rb +220 -0
  77. data/lib/wallee-ruby-sdk/version.rb +1 -1
  78. data/lib/wallee-ruby-sdk.rb +18 -11
  79. data/test/transactioncreate.rb +5 -9
  80. metadata +21 -293
  81. data/Gemfile.lock +0 -31
  82. data/lib/wallee/api_client.rb +0 -403
  83. data/lib/wallee/api_error.rb +0 -47
  84. data/lib/wallee/configuration.rb +0 -144
  85. data/lib/wallee/models/account.rb +0 -298
  86. data/lib/wallee/models/account_create.rb +0 -308
  87. data/lib/wallee/models/account_state.rb +0 -47
  88. data/lib/wallee/models/account_type.rb +0 -44
  89. data/lib/wallee/models/account_update.rb +0 -308
  90. data/lib/wallee/models/address.rb +0 -388
  91. data/lib/wallee/models/address_create.rb +0 -388
  92. data/lib/wallee/models/application_user.rb +0 -268
  93. data/lib/wallee/models/application_user_create.rb +0 -283
  94. data/lib/wallee/models/application_user_create_with_mac_key.rb +0 -278
  95. data/lib/wallee/models/application_user_update.rb +0 -278
  96. data/lib/wallee/models/attachment_resource.rb +0 -210
  97. data/lib/wallee/models/charge.rb +0 -318
  98. data/lib/wallee/models/charge_attempt.rb +0 -420
  99. data/lib/wallee/models/charge_attempt_environment.rb +0 -43
  100. data/lib/wallee/models/charge_attempt_state.rb +0 -44
  101. data/lib/wallee/models/charge_flow.rb +0 -270
  102. data/lib/wallee/models/charge_flow_level.rb +0 -318
  103. data/lib/wallee/models/charge_flow_level_configuration.rb +0 -288
  104. data/lib/wallee/models/charge_flow_level_configuration_type.rb +0 -222
  105. data/lib/wallee/models/charge_flow_level_state.rb +0 -44
  106. data/lib/wallee/models/charge_state.rb +0 -44
  107. data/lib/wallee/models/charge_type.rb +0 -44
  108. data/lib/wallee/models/client_error.rb +0 -238
  109. data/lib/wallee/models/client_error_type.rb +0 -44
  110. data/lib/wallee/models/condition_type.rb +0 -222
  111. data/lib/wallee/models/connector_invocation.rb +0 -278
  112. data/lib/wallee/models/connector_invocation_stage.rb +0 -45
  113. data/lib/wallee/models/creation_entity_state.rb +0 -46
  114. data/lib/wallee/models/criteria_operator.rb +0 -50
  115. data/lib/wallee/models/customers_presence.rb +0 -44
  116. data/lib/wallee/models/data_collection_type.rb +0 -43
  117. data/lib/wallee/models/database_translated_string.rb +0 -222
  118. data/lib/wallee/models/database_translated_string_create.rb +0 -222
  119. data/lib/wallee/models/database_translated_string_item.rb +0 -218
  120. data/lib/wallee/models/database_translated_string_item_create.rb +0 -223
  121. data/lib/wallee/models/delivery_indication.rb +0 -318
  122. data/lib/wallee/models/delivery_indication_decision_reason.rb +0 -222
  123. data/lib/wallee/models/delivery_indication_state.rb +0 -45
  124. data/lib/wallee/models/document_template.rb +0 -278
  125. data/lib/wallee/models/document_template_type.rb +0 -242
  126. data/lib/wallee/models/email_sender.rb +0 -278
  127. data/lib/wallee/models/email_template.rb +0 -324
  128. data/lib/wallee/models/email_template_type.rb +0 -288
  129. data/lib/wallee/models/entity_query.rb +0 -240
  130. data/lib/wallee/models/entity_query_filter.rb +0 -245
  131. data/lib/wallee/models/entity_query_filter_type.rb +0 -44
  132. data/lib/wallee/models/entity_query_order_by_type.rb +0 -43
  133. data/lib/wallee/models/entity_reference.rb +0 -188
  134. data/lib/wallee/models/failure_category.rb +0 -46
  135. data/lib/wallee/models/failure_reason.rb +0 -244
  136. data/lib/wallee/models/feature.rb +0 -274
  137. data/lib/wallee/models/gender.rb +0 -43
  138. data/lib/wallee/models/human_user.rb +0 -318
  139. data/lib/wallee/models/human_user_create.rb +0 -328
  140. data/lib/wallee/models/human_user_update.rb +0 -328
  141. data/lib/wallee/models/installment_calculated_plan.rb +0 -242
  142. data/lib/wallee/models/installment_calculated_slice.rb +0 -220
  143. data/lib/wallee/models/installment_payment.rb +0 -280
  144. data/lib/wallee/models/installment_payment_slice.rb +0 -300
  145. data/lib/wallee/models/installment_payment_slice_state.rb +0 -48
  146. data/lib/wallee/models/installment_payment_state.rb +0 -49
  147. data/lib/wallee/models/installment_plan_configuration.rb +0 -362
  148. data/lib/wallee/models/installment_plan_slice_configuration.rb +0 -288
  149. data/lib/wallee/models/label_descriptor.rb +0 -274
  150. data/lib/wallee/models/label_descriptor_category.rb +0 -43
  151. data/lib/wallee/models/label_descriptor_group.rb +0 -232
  152. data/lib/wallee/models/label_descriptor_type.rb +0 -222
  153. data/lib/wallee/models/legal_organization_form.rb +0 -242
  154. data/lib/wallee/models/line_item.rb +0 -342
  155. data/lib/wallee/models/line_item_create.rb +0 -367
  156. data/lib/wallee/models/line_item_reduction.rb +0 -218
  157. data/lib/wallee/models/line_item_reduction_create.rb +0 -233
  158. data/lib/wallee/models/line_item_type.rb +0 -45
  159. data/lib/wallee/models/localized_string.rb +0 -218
  160. data/lib/wallee/models/manual_task.rb +0 -290
  161. data/lib/wallee/models/manual_task_action.rb +0 -230
  162. data/lib/wallee/models/manual_task_action_style.rb +0 -44
  163. data/lib/wallee/models/manual_task_state.rb +0 -44
  164. data/lib/wallee/models/manual_task_type.rb +0 -234
  165. data/lib/wallee/models/one_click_payment_mode.rb +0 -44
  166. data/lib/wallee/models/payment_connector.rb +0 -306
  167. data/lib/wallee/models/payment_connector_configuration.rb +0 -322
  168. data/lib/wallee/models/payment_connector_feature.rb +0 -218
  169. data/lib/wallee/models/payment_method.rb +0 -256
  170. data/lib/wallee/models/payment_method_brand.rb +0 -252
  171. data/lib/wallee/models/payment_method_configuration.rb +0 -328
  172. data/lib/wallee/models/payment_primary_risk_taker.rb +0 -44
  173. data/lib/wallee/models/payment_processor.rb +0 -278
  174. data/lib/wallee/models/payment_processor_configuration.rb +0 -258
  175. data/lib/wallee/models/permission.rb +0 -286
  176. data/lib/wallee/models/persistable_currency_amount_update.rb +0 -208
  177. data/lib/wallee/models/product_fee_type.rb +0 -44
  178. data/lib/wallee/models/product_metered_fee.rb +0 -278
  179. data/lib/wallee/models/product_metered_fee_update.rb +0 -288
  180. data/lib/wallee/models/product_metered_tier_fee.rb +0 -240
  181. data/lib/wallee/models/product_metered_tier_fee_update.rb +0 -250
  182. data/lib/wallee/models/product_metered_tier_pricing.rb +0 -43
  183. data/lib/wallee/models/product_period_fee.rb +0 -280
  184. data/lib/wallee/models/product_period_fee_update.rb +0 -290
  185. data/lib/wallee/models/product_setup_fee.rb +0 -294
  186. data/lib/wallee/models/product_setup_fee_update.rb +0 -304
  187. data/lib/wallee/models/refund.rb +0 -450
  188. data/lib/wallee/models/refund_create.rb +0 -470
  189. data/lib/wallee/models/refund_state.rb +0 -46
  190. data/lib/wallee/models/refund_type.rb +0 -45
  191. data/lib/wallee/models/rendered_document.rb +0 -230
  192. data/lib/wallee/models/resource_path.rb +0 -258
  193. data/lib/wallee/models/resource_state.rb +0 -44
  194. data/lib/wallee/models/rest_country.rb +0 -240
  195. data/lib/wallee/models/rest_country_state.rb +0 -228
  196. data/lib/wallee/models/rest_currency.rb +0 -218
  197. data/lib/wallee/models/rest_language.rb +0 -248
  198. data/lib/wallee/models/scope.rb +0 -302
  199. data/lib/wallee/models/server_error.rb +0 -218
  200. data/lib/wallee/models/space.rb +0 -330
  201. data/lib/wallee/models/space_address_setter.rb +0 -318
  202. data/lib/wallee/models/space_create.rb +0 -350
  203. data/lib/wallee/models/space_reference.rb +0 -258
  204. data/lib/wallee/models/space_reference_state.rb +0 -46
  205. data/lib/wallee/models/space_update.rb +0 -340
  206. data/lib/wallee/models/space_view.rb +0 -258
  207. data/lib/wallee/models/static_value.rb +0 -234
  208. data/lib/wallee/models/subscriber_active.rb +0 -342
  209. data/lib/wallee/models/subscriber_create.rb +0 -347
  210. data/lib/wallee/models/subscriber_update.rb +0 -342
  211. data/lib/wallee/models/subscription.rb +0 -338
  212. data/lib/wallee/models/subscription_change_request.rb +0 -250
  213. data/lib/wallee/models/subscription_charge.rb +0 -390
  214. data/lib/wallee/models/subscription_charge_create.rb +0 -405
  215. data/lib/wallee/models/subscription_charge_processing_type.rb +0 -43
  216. data/lib/wallee/models/subscription_charge_state.rb +0 -46
  217. data/lib/wallee/models/subscription_charge_type.rb +0 -43
  218. data/lib/wallee/models/subscription_create_request.rb +0 -245
  219. data/lib/wallee/models/subscription_ledger_entry.rb +0 -350
  220. data/lib/wallee/models/subscription_ledger_entry_create.rb +0 -375
  221. data/lib/wallee/models/subscription_ledger_entry_state.rb +0 -44
  222. data/lib/wallee/models/subscription_metric.rb +0 -268
  223. data/lib/wallee/models/subscription_metric_active.rb +0 -278
  224. data/lib/wallee/models/subscription_metric_create.rb +0 -288
  225. data/lib/wallee/models/subscription_metric_type.rb +0 -232
  226. data/lib/wallee/models/subscription_metric_update.rb +0 -278
  227. data/lib/wallee/models/subscription_metric_usage_report.rb +0 -298
  228. data/lib/wallee/models/subscription_metric_usage_report_create.rb +0 -318
  229. data/lib/wallee/models/subscription_pending.rb +0 -348
  230. data/lib/wallee/models/subscription_period_bill.rb +0 -298
  231. data/lib/wallee/models/subscription_period_bill_state.rb +0 -43
  232. data/lib/wallee/models/subscription_product_active.rb +0 -310
  233. data/lib/wallee/models/subscription_product_component.rb +0 -298
  234. data/lib/wallee/models/subscription_product_component_group.rb +0 -258
  235. data/lib/wallee/models/subscription_product_component_group_update.rb +0 -268
  236. data/lib/wallee/models/subscription_product_component_reference.rb +0 -258
  237. data/lib/wallee/models/subscription_product_component_reference_state.rb +0 -45
  238. data/lib/wallee/models/subscription_product_component_update.rb +0 -308
  239. data/lib/wallee/models/subscription_product_create.rb +0 -315
  240. data/lib/wallee/models/subscription_product_retirement.rb +0 -258
  241. data/lib/wallee/models/subscription_product_retirement_create.rb +0 -263
  242. data/lib/wallee/models/subscription_product_state.rb +0 -46
  243. data/lib/wallee/models/subscription_product_version.rb +0 -390
  244. data/lib/wallee/models/subscription_product_version_pending.rb +0 -310
  245. data/lib/wallee/models/subscription_product_version_retirement.rb +0 -258
  246. data/lib/wallee/models/subscription_product_version_retirement_create.rb +0 -263
  247. data/lib/wallee/models/subscription_product_version_state.rb +0 -46
  248. data/lib/wallee/models/subscription_state.rb +0 -48
  249. data/lib/wallee/models/subscription_suspension.rb +0 -328
  250. data/lib/wallee/models/subscription_suspension_action.rb +0 -43
  251. data/lib/wallee/models/subscription_suspension_create.rb +0 -343
  252. data/lib/wallee/models/subscription_suspension_reason.rb +0 -44
  253. data/lib/wallee/models/subscription_suspension_running.rb +0 -328
  254. data/lib/wallee/models/subscription_suspension_state.rb +0 -43
  255. data/lib/wallee/models/subscription_update.rb +0 -348
  256. data/lib/wallee/models/subscription_version.rb +0 -370
  257. data/lib/wallee/models/subscription_version_state.rb +0 -47
  258. data/lib/wallee/models/tax.rb +0 -208
  259. data/lib/wallee/models/tax_create.rb +0 -218
  260. data/lib/wallee/models/token_create.rb +0 -323
  261. data/lib/wallee/models/token_update.rb +0 -318
  262. data/lib/wallee/models/token_version_state.rb +0 -44
  263. data/lib/wallee/models/transaction.rb +0 -626
  264. data/lib/wallee/models/transaction_aware_entity.rb +0 -218
  265. data/lib/wallee/models/transaction_completion.rb +0 -390
  266. data/lib/wallee/models/transaction_completion_mode.rb +0 -44
  267. data/lib/wallee/models/transaction_completion_state.rb +0 -45
  268. data/lib/wallee/models/transaction_create.rb +0 -646
  269. data/lib/wallee/models/transaction_group.rb +0 -268
  270. data/lib/wallee/models/transaction_group_state.rb +0 -44
  271. data/lib/wallee/models/transaction_invoice.rb +0 -380
  272. data/lib/wallee/models/transaction_invoice_replacement.rb +0 -250
  273. data/lib/wallee/models/transaction_invoice_state.rb +0 -48
  274. data/lib/wallee/models/transaction_line_item_update_request.rb +0 -215
  275. data/lib/wallee/models/transaction_line_item_version.rb +0 -320
  276. data/lib/wallee/models/transaction_pending.rb +0 -636
  277. data/lib/wallee/models/transaction_state.rb +0 -51
  278. data/lib/wallee/models/transaction_user_interface_type.rb +0 -44
  279. data/lib/wallee/models/transaction_void.rb +0 -380
  280. data/lib/wallee/models/transaction_void_mode.rb +0 -43
  281. data/lib/wallee/models/transaction_void_state.rb +0 -45
  282. data/lib/wallee/models/user_type.rb +0 -45
  283. data/lib/wallee/models/webhook_identity.rb +0 -248
  284. data/lib/wallee/models/webhook_listener.rb +0 -300
  285. data/lib/wallee/models/webhook_listener_create.rb +0 -330
  286. data/lib/wallee/models/webhook_listener_update.rb +0 -310
  287. data/lib/wallee/models/webhook_url.rb +0 -258
  288. data/lib/wallee/models/webhook_url_create.rb +0 -273
  289. data/lib/wallee/models/webhook_url_update.rb +0 -268
  290. data/lib/wallee/services/account_service_api.rb +0 -372
  291. data/lib/wallee/services/application_user_service_api.rb +0 -372
  292. data/lib/wallee/services/charge_attempt_service_api.rb +0 -217
  293. data/lib/wallee/services/charge_flow_level_service_api.rb +0 -280
  294. data/lib/wallee/services/charge_flow_service_api.rb +0 -352
  295. data/lib/wallee/services/condition_type_service_api.rb +0 -143
  296. data/lib/wallee/services/country_service_api.rb +0 -85
  297. data/lib/wallee/services/country_state_service_api.rb +0 -143
  298. data/lib/wallee/services/currency_service_api.rb +0 -85
  299. data/lib/wallee/services/delivery_indication_service_api.rb +0 -341
  300. data/lib/wallee/services/document_template_service_api.rb +0 -217
  301. data/lib/wallee/services/document_template_type_service_api.rb +0 -143
  302. data/lib/wallee/services/email_sender_service_api.rb +0 -219
  303. data/lib/wallee/services/email_sender_type_service_api.rb +0 -143
  304. data/lib/wallee/services/email_template_service_api.rb +0 -217
  305. data/lib/wallee/services/email_template_type_service_api.rb +0 -143
  306. data/lib/wallee/services/human_user_service_api.rb +0 -372
  307. data/lib/wallee/services/installment_payment_service_api.rb +0 -287
  308. data/lib/wallee/services/installment_payment_slice_service_api.rb +0 -219
  309. data/lib/wallee/services/installment_plan_calculation_service_api.rb +0 -95
  310. data/lib/wallee/services/installment_plan_configuration_service_api.rb +0 -219
  311. data/lib/wallee/services/installment_plan_slice_configuration_service_api.rb +0 -219
  312. data/lib/wallee/services/label_description_group_service_api.rb +0 -143
  313. data/lib/wallee/services/label_description_service_api.rb +0 -143
  314. data/lib/wallee/services/language_service_api.rb +0 -85
  315. data/lib/wallee/services/manual_task_service_api.rb +0 -217
  316. data/lib/wallee/services/payment_connector_configuration_service_api.rb +0 -217
  317. data/lib/wallee/services/payment_connector_service_api.rb +0 -143
  318. data/lib/wallee/services/payment_method_configuration_service_api.rb +0 -217
  319. data/lib/wallee/services/payment_method_service_api.rb +0 -143
  320. data/lib/wallee/services/payment_processor_configuration_service_api.rb +0 -217
  321. data/lib/wallee/services/payment_processor_service_api.rb +0 -143
  322. data/lib/wallee/services/permission_service_api.rb +0 -143
  323. data/lib/wallee/services/refund_service_api.rb +0 -468
  324. data/lib/wallee/services/space_service_api.rb +0 -372
  325. data/lib/wallee/services/static_value_service_api.rb +0 -143
  326. data/lib/wallee/services/subscriber_service_api.rb +0 -402
  327. data/lib/wallee/services/subscription_charge_service_api.rb +0 -342
  328. data/lib/wallee/services/subscription_ledger_entry_service_api.rb +0 -279
  329. data/lib/wallee/services/subscription_metric_service_api.rb +0 -402
  330. data/lib/wallee/services/subscription_metric_usage_service_api.rb +0 -279
  331. data/lib/wallee/services/subscription_period_bill_service_api.rb +0 -217
  332. data/lib/wallee/services/subscription_product_component_group_service_api.rb +0 -402
  333. data/lib/wallee/services/subscription_product_component_service_api.rb +0 -402
  334. data/lib/wallee/services/subscription_product_fee_tier_service_api.rb +0 -402
  335. data/lib/wallee/services/subscription_product_metered_fee_service_api.rb +0 -402
  336. data/lib/wallee/services/subscription_product_period_fee_service_api.rb +0 -402
  337. data/lib/wallee/services/subscription_product_retirement_service_api.rb +0 -279
  338. data/lib/wallee/services/subscription_product_service_api.rb +0 -341
  339. data/lib/wallee/services/subscription_product_setup_fee_service_api.rb +0 -402
  340. data/lib/wallee/services/subscription_product_version_retirement_service_api.rb +0 -279
  341. data/lib/wallee/services/subscription_product_version_service_api.rb +0 -404
  342. data/lib/wallee/services/subscription_service_api.rb +0 -608
  343. data/lib/wallee/services/subscription_suspension_service_api.rb +0 -342
  344. data/lib/wallee/services/subscription_version_service_api.rb +0 -217
  345. data/lib/wallee/services/token_service_api.rb +0 -402
  346. data/lib/wallee/services/token_version_service_api.rb +0 -280
  347. data/lib/wallee/services/transaction_completion_service_api.rb +0 -343
  348. data/lib/wallee/services/transaction_invoice_service_api.rb +0 -473
  349. data/lib/wallee/services/transaction_service_api.rb +0 -1263
  350. data/lib/wallee/services/transaction_void_service_api.rb +0 -343
  351. data/lib/wallee/services/webhook_listener_service_api.rb +0 -402
  352. data/lib/wallee/services/webhook_url_service_api.rb +0 -402
  353. data/lib/wallee/version.rb +0 -24
  354. data/lib/wallee.rb +0 -332
@@ -1,1263 +0,0 @@
1
- =begin
2
- Wallee API: 1.0.0
3
-
4
- The wallee API allows an easy interaction with the wallee web service.
5
-
6
-
7
-
8
- Licensed under the Apache License, Version 2.0 (the "License");
9
- you may not use this file except in compliance with the License.
10
- You may obtain a copy of the License at
11
-
12
- http://www.apache.org/licenses/LICENSE-2.0
13
-
14
- Unless required by applicable law or agreed to in writing, software
15
- distributed under the License is distributed on an "AS IS" BASIS,
16
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- See the License for the specific language governing permissions and
18
- limitations under the License.
19
-
20
- =end
21
-
22
- require "uri"
23
-
24
- module Wallee
25
- class TransactionService
26
- attr_accessor :api_client
27
-
28
- def initialize(api_client = ApiClient.default)
29
- @api_client = api_client
30
- end
31
-
32
- # Build JavaScript URL
33
- # This operation creates the URL which can be used to embed the JavaScript for handling the iFrame checkout flow.
34
- # @param space_id
35
- # @param id The id of the transaction which should be returned.
36
- # @param [Hash] opts the optional parameters
37
- # @return [String]
38
- def transaction_service_build_java_script_url(space_id, id, opts = {})
39
- data, _status_code, _headers = transaction_service_build_java_script_url_with_http_info(space_id, id, opts)
40
- return data
41
- end
42
-
43
- # Build JavaScript URL
44
- # This operation creates the URL which can be used to embed the JavaScript for handling the iFrame checkout flow.
45
- # @param space_id
46
- # @param id The id of the transaction which should be returned.
47
- # @param [Hash] opts the optional parameters
48
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
49
- def transaction_service_build_java_script_url_with_http_info(space_id, id, opts = {})
50
- if @api_client.config.debugging
51
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_build_java_script_url ..."
52
- end
53
- # verify the required parameter 'space_id' is set
54
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_build_java_script_url" if space_id.nil?
55
- # verify the required parameter 'id' is set
56
- fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.transaction_service_build_java_script_url" if id.nil?
57
- # resource path
58
- local_var_path = "/transaction/buildJavaScriptUrl".sub('{format}','json')
59
-
60
- # query parameters
61
- query_params = {}
62
- query_params[:'spaceId'] = space_id
63
- query_params[:'id'] = id
64
-
65
- # header parameters
66
- header_params = {}
67
-
68
- # HTTP header 'Accept' (if needed)
69
- local_header_accept = []
70
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
71
-
72
- # HTTP header 'Content-Type'
73
- local_header_content_type = []
74
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
75
-
76
- # form parameters
77
- form_params = {}
78
-
79
- # http body (model)
80
- post_body = nil
81
- auth_names = []
82
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
83
- :header_params => header_params,
84
- :query_params => query_params,
85
- :form_params => form_params,
86
- :body => post_body,
87
- :auth_names => auth_names,
88
- :return_type => 'String')
89
- if @api_client.config.debugging
90
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_build_java_script_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
- end
92
- return data, status_code, headers
93
- end
94
-
95
- # Build Mobile SDK URL with Credentials
96
- # 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.
97
- # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
98
- # @param [Hash] opts the optional parameters
99
- # @return [String]
100
- def transaction_service_build_mobile_sdk_url_with_credentials(credentials, opts = {})
101
- data, _status_code, _headers = transaction_service_build_mobile_sdk_url_with_credentials_with_http_info(credentials, opts)
102
- return data
103
- end
104
-
105
- # Build Mobile SDK URL with Credentials
106
- # 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.
107
- # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
108
- # @param [Hash] opts the optional parameters
109
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
110
- def transaction_service_build_mobile_sdk_url_with_credentials_with_http_info(credentials, opts = {})
111
- if @api_client.config.debugging
112
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_build_mobile_sdk_url_with_credentials ..."
113
- end
114
- # verify the required parameter 'credentials' is set
115
- fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.transaction_service_build_mobile_sdk_url_with_credentials" if credentials.nil?
116
- # resource path
117
- local_var_path = "/transaction/buildMobileSdkUrlWithCredentials".sub('{format}','json')
118
-
119
- # query parameters
120
- query_params = {}
121
- query_params[:'credentials'] = credentials
122
-
123
- # header parameters
124
- header_params = {}
125
-
126
- # HTTP header 'Accept' (if needed)
127
- local_header_accept = []
128
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
129
-
130
- # HTTP header 'Content-Type'
131
- local_header_content_type = []
132
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
133
-
134
- # form parameters
135
- form_params = {}
136
-
137
- # http body (model)
138
- post_body = nil
139
- auth_names = []
140
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
141
- :header_params => header_params,
142
- :query_params => query_params,
143
- :form_params => form_params,
144
- :body => post_body,
145
- :auth_names => auth_names,
146
- :return_type => 'String')
147
- if @api_client.config.debugging
148
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_build_mobile_sdk_url_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
- end
150
- return data, status_code, headers
151
- end
152
-
153
- # Build Payment Page URL
154
- # This operation creates the URL to which the user should be redirected to when the payment page should be used.
155
- # @param space_id
156
- # @param id The id of the transaction which should be returned.
157
- # @param [Hash] opts the optional parameters
158
- # @return [String]
159
- def transaction_service_build_payment_page_url(space_id, id, opts = {})
160
- data, _status_code, _headers = transaction_service_build_payment_page_url_with_http_info(space_id, id, opts)
161
- return data
162
- end
163
-
164
- # Build Payment Page URL
165
- # This operation creates the URL to which the user should be redirected to when the payment page should be used.
166
- # @param space_id
167
- # @param id The id of the transaction which should be returned.
168
- # @param [Hash] opts the optional parameters
169
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
170
- def transaction_service_build_payment_page_url_with_http_info(space_id, id, opts = {})
171
- if @api_client.config.debugging
172
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_build_payment_page_url ..."
173
- end
174
- # verify the required parameter 'space_id' is set
175
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_build_payment_page_url" if space_id.nil?
176
- # verify the required parameter 'id' is set
177
- fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.transaction_service_build_payment_page_url" if id.nil?
178
- # resource path
179
- local_var_path = "/transaction/buildPaymentPageUrl".sub('{format}','json')
180
-
181
- # query parameters
182
- query_params = {}
183
- query_params[:'spaceId'] = space_id
184
- query_params[:'id'] = id
185
-
186
- # header parameters
187
- header_params = {}
188
-
189
- # HTTP header 'Accept' (if needed)
190
- local_header_accept = []
191
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
192
-
193
- # HTTP header 'Content-Type'
194
- local_header_content_type = []
195
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
196
-
197
- # form parameters
198
- form_params = {}
199
-
200
- # http body (model)
201
- post_body = nil
202
- auth_names = []
203
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
204
- :header_params => header_params,
205
- :query_params => query_params,
206
- :form_params => form_params,
207
- :body => post_body,
208
- :auth_names => auth_names,
209
- :return_type => 'String')
210
- if @api_client.config.debugging
211
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_build_payment_page_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
212
- end
213
- return data, status_code, headers
214
- end
215
-
216
- # Confirm
217
- # The confirm operation marks the transaction as confirmed. Once the transaction is confirmed no more changes can be applied.
218
- # @param space_id
219
- # @param transaction_model The transaction JSON object to update and confirm.
220
- # @param [Hash] opts the optional parameters
221
- # @return [Transaction]
222
- def transaction_service_confirm(space_id, transaction_model, opts = {})
223
- data, _status_code, _headers = transaction_service_confirm_with_http_info(space_id, transaction_model, opts)
224
- return data
225
- end
226
-
227
- # Confirm
228
- # The confirm operation marks the transaction as confirmed. Once the transaction is confirmed no more changes can be applied.
229
- # @param space_id
230
- # @param transaction_model The transaction JSON object to update and confirm.
231
- # @param [Hash] opts the optional parameters
232
- # @return [Array<(Transaction, Fixnum, Hash)>] Transaction data, response status code and response headers
233
- def transaction_service_confirm_with_http_info(space_id, transaction_model, opts = {})
234
- if @api_client.config.debugging
235
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_confirm ..."
236
- end
237
- # verify the required parameter 'space_id' is set
238
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_confirm" if space_id.nil?
239
- # verify the required parameter 'transaction_model' is set
240
- fail ArgumentError, "Missing the required parameter 'transaction_model' when calling TransactionService.transaction_service_confirm" if transaction_model.nil?
241
- # resource path
242
- local_var_path = "/transaction/confirm".sub('{format}','json')
243
-
244
- # query parameters
245
- query_params = {}
246
- query_params[:'spaceId'] = space_id
247
-
248
- # header parameters
249
- header_params = {}
250
-
251
- # HTTP header 'Accept' (if needed)
252
- local_header_accept = []
253
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
254
-
255
- # HTTP header 'Content-Type'
256
- local_header_content_type = ['application/json;charset=utf-8']
257
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
258
-
259
- # form parameters
260
- form_params = {}
261
-
262
- # http body (model)
263
- post_body = @api_client.object_to_http_body(transaction_model)
264
- auth_names = []
265
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
266
- :header_params => header_params,
267
- :query_params => query_params,
268
- :form_params => form_params,
269
- :body => post_body,
270
- :auth_names => auth_names,
271
- :return_type => 'Transaction')
272
- if @api_client.config.debugging
273
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_confirm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
274
- end
275
- return data, status_code, headers
276
- end
277
-
278
- # Count
279
- # Counts the number of items in the database as restricted by the given filter.
280
- # @param space_id
281
- # @param [Hash] opts the optional parameters
282
- # @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
283
- # @return [Integer]
284
- def transaction_service_count(space_id, opts = {})
285
- data, _status_code, _headers = transaction_service_count_with_http_info(space_id, opts)
286
- return data
287
- end
288
-
289
- # Count
290
- # Counts the number of items in the database as restricted by the given filter.
291
- # @param space_id
292
- # @param [Hash] opts the optional parameters
293
- # @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
294
- # @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
295
- def transaction_service_count_with_http_info(space_id, opts = {})
296
- if @api_client.config.debugging
297
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_count ..."
298
- end
299
- # verify the required parameter 'space_id' is set
300
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_count" if space_id.nil?
301
- # resource path
302
- local_var_path = "/transaction/count".sub('{format}','json')
303
-
304
- # query parameters
305
- query_params = {}
306
- query_params[:'spaceId'] = space_id
307
-
308
- # header parameters
309
- header_params = {}
310
-
311
- # HTTP header 'Accept' (if needed)
312
- local_header_accept = ['application/json;charset=utf-8']
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 = ['application/json;charset=utf-8']
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 = @api_client.object_to_http_body(opts[:'filter'])
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
- :return_type => 'Integer')
332
- if @api_client.config.debugging
333
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
334
- end
335
- return data, status_code, headers
336
- end
337
-
338
- # Create
339
- # Creates the entity with the given properties.
340
- # @param space_id
341
- # @param transaction The transaction object which should be created.
342
- # @param [Hash] opts the optional parameters
343
- # @return [Transaction]
344
- def transaction_service_create(space_id, transaction, opts = {})
345
- data, _status_code, _headers = transaction_service_create_with_http_info(space_id, transaction, opts)
346
- return data
347
- end
348
-
349
- # Create
350
- # Creates the entity with the given properties.
351
- # @param space_id
352
- # @param transaction The transaction object which should be created.
353
- # @param [Hash] opts the optional parameters
354
- # @return [Array<(Transaction, Fixnum, Hash)>] Transaction data, response status code and response headers
355
- def transaction_service_create_with_http_info(space_id, transaction, opts = {})
356
- if @api_client.config.debugging
357
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_create ..."
358
- end
359
- # verify the required parameter 'space_id' is set
360
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_create" if space_id.nil?
361
- # verify the required parameter 'transaction' is set
362
- fail ArgumentError, "Missing the required parameter 'transaction' when calling TransactionService.transaction_service_create" if transaction.nil?
363
- # resource path
364
- local_var_path = "/transaction/create".sub('{format}','json')
365
-
366
- # query parameters
367
- query_params = {}
368
- query_params[:'spaceId'] = space_id
369
-
370
- # header parameters
371
- header_params = {}
372
-
373
- # HTTP header 'Accept' (if needed)
374
- local_header_accept = ['application/json;charset=utf-8']
375
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
376
-
377
- # HTTP header 'Content-Type'
378
- local_header_content_type = ['application/json;charset=utf-8']
379
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
380
-
381
- # form parameters
382
- form_params = {}
383
-
384
- # http body (model)
385
- post_body = @api_client.object_to_http_body(transaction)
386
- auth_names = []
387
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
388
- :header_params => header_params,
389
- :query_params => query_params,
390
- :form_params => form_params,
391
- :body => post_body,
392
- :auth_names => auth_names,
393
- :return_type => 'Transaction')
394
- if @api_client.config.debugging
395
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
396
- end
397
- return data, status_code, headers
398
- end
399
-
400
- # Create Transaction Credentials
401
- # This operation allows to create transaction credentials to delegate temporarily the access to the web service API for this particular transaction.
402
- # @param space_id
403
- # @param id The id of the transaction which should be returned.
404
- # @param [Hash] opts the optional parameters
405
- # @return [String]
406
- def transaction_service_create_transaction_credentials(space_id, id, opts = {})
407
- data, _status_code, _headers = transaction_service_create_transaction_credentials_with_http_info(space_id, id, opts)
408
- return data
409
- end
410
-
411
- # Create Transaction Credentials
412
- # This operation allows to create transaction credentials to delegate temporarily the access to the web service API for this particular transaction.
413
- # @param space_id
414
- # @param id The id of the transaction which should be returned.
415
- # @param [Hash] opts the optional parameters
416
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
417
- def transaction_service_create_transaction_credentials_with_http_info(space_id, id, opts = {})
418
- if @api_client.config.debugging
419
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_create_transaction_credentials ..."
420
- end
421
- # verify the required parameter 'space_id' is set
422
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_create_transaction_credentials" if space_id.nil?
423
- # verify the required parameter 'id' is set
424
- fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.transaction_service_create_transaction_credentials" if id.nil?
425
- # resource path
426
- local_var_path = "/transaction/createTransactionCredentials".sub('{format}','json')
427
-
428
- # query parameters
429
- query_params = {}
430
- query_params[:'spaceId'] = space_id
431
- query_params[:'id'] = id
432
-
433
- # header parameters
434
- header_params = {}
435
-
436
- # HTTP header 'Accept' (if needed)
437
- local_header_accept = []
438
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
439
-
440
- # HTTP header 'Content-Type'
441
- local_header_content_type = []
442
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
443
-
444
- # form parameters
445
- form_params = {}
446
-
447
- # http body (model)
448
- post_body = nil
449
- auth_names = []
450
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
451
- :header_params => header_params,
452
- :query_params => query_params,
453
- :form_params => form_params,
454
- :body => post_body,
455
- :auth_names => auth_names,
456
- :return_type => 'String')
457
- if @api_client.config.debugging
458
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_create_transaction_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
459
- end
460
- return data, status_code, headers
461
- end
462
-
463
- # Delete One-Click Token with Credentials
464
- # This operation removes the given token.
465
- # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
466
- # @param token_id The token ID will be used to find the token which should be removed.
467
- # @param [Hash] opts the optional parameters
468
- # @return [nil]
469
- def transaction_service_delete_one_click_token_with_credentials(credentials, token_id, opts = {})
470
- transaction_service_delete_one_click_token_with_credentials_with_http_info(credentials, token_id, opts)
471
- return nil
472
- end
473
-
474
- # Delete One-Click Token with Credentials
475
- # This operation removes the given token.
476
- # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
477
- # @param token_id The token ID will be used to find the token which should be removed.
478
- # @param [Hash] opts the optional parameters
479
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
480
- def transaction_service_delete_one_click_token_with_credentials_with_http_info(credentials, token_id, opts = {})
481
- if @api_client.config.debugging
482
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_delete_one_click_token_with_credentials ..."
483
- end
484
- # verify the required parameter 'credentials' is set
485
- fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.transaction_service_delete_one_click_token_with_credentials" if credentials.nil?
486
- # verify the required parameter 'token_id' is set
487
- fail ArgumentError, "Missing the required parameter 'token_id' when calling TransactionService.transaction_service_delete_one_click_token_with_credentials" if token_id.nil?
488
- # resource path
489
- local_var_path = "/transaction/deleteOneClickTokenWithCredentials".sub('{format}','json')
490
-
491
- # query parameters
492
- query_params = {}
493
- query_params[:'credentials'] = credentials
494
- query_params[:'tokenId'] = token_id
495
-
496
- # header parameters
497
- header_params = {}
498
-
499
- # HTTP header 'Accept' (if needed)
500
- local_header_accept = []
501
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
502
-
503
- # HTTP header 'Content-Type'
504
- local_header_content_type = []
505
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
506
-
507
- # form parameters
508
- form_params = {}
509
-
510
- # http body (model)
511
- post_body = nil
512
- auth_names = []
513
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
514
- :header_params => header_params,
515
- :query_params => query_params,
516
- :form_params => form_params,
517
- :body => post_body,
518
- :auth_names => auth_names)
519
- if @api_client.config.debugging
520
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_delete_one_click_token_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
521
- end
522
- return data, status_code, headers
523
- end
524
-
525
- # Fetch One Click Tokens with Credentials
526
- # This operation returns the token version objects which references the tokens usable as one-click payment tokens for the provided transaction.
527
- # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
528
- # @param [Hash] opts the optional parameters
529
- # @return [Array<TokenVersion>]
530
- def transaction_service_fetch_one_click_tokens_with_credentials(credentials, opts = {})
531
- data, _status_code, _headers = transaction_service_fetch_one_click_tokens_with_credentials_with_http_info(credentials, opts)
532
- return data
533
- end
534
-
535
- # Fetch One Click Tokens with Credentials
536
- # This operation returns the token version objects which references the tokens usable as one-click payment tokens for the provided transaction.
537
- # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
538
- # @param [Hash] opts the optional parameters
539
- # @return [Array<(Array<TokenVersion>, Fixnum, Hash)>] Array<TokenVersion> data, response status code and response headers
540
- def transaction_service_fetch_one_click_tokens_with_credentials_with_http_info(credentials, opts = {})
541
- if @api_client.config.debugging
542
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_fetch_one_click_tokens_with_credentials ..."
543
- end
544
- # verify the required parameter 'credentials' is set
545
- fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.transaction_service_fetch_one_click_tokens_with_credentials" if credentials.nil?
546
- # resource path
547
- local_var_path = "/transaction/fetchOneClickTokensWithCredentials".sub('{format}','json')
548
-
549
- # query parameters
550
- query_params = {}
551
- query_params[:'credentials'] = credentials
552
-
553
- # header parameters
554
- header_params = {}
555
-
556
- # HTTP header 'Accept' (if needed)
557
- local_header_accept = []
558
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
559
-
560
- # HTTP header 'Content-Type'
561
- local_header_content_type = []
562
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
563
-
564
- # form parameters
565
- form_params = {}
566
-
567
- # http body (model)
568
- post_body = nil
569
- auth_names = []
570
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
571
- :header_params => header_params,
572
- :query_params => query_params,
573
- :form_params => form_params,
574
- :body => post_body,
575
- :auth_names => auth_names,
576
- :return_type => 'Array<TokenVersion>')
577
- if @api_client.config.debugging
578
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_fetch_one_click_tokens_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
579
- end
580
- return data, status_code, headers
581
- end
582
-
583
- # Fetch Possible Payment Methods
584
- # This operation allows to get the payment method configurations which can be used with the provided transaction.
585
- # @param space_id
586
- # @param id The id of the transaction which should be returned.
587
- # @param [Hash] opts the optional parameters
588
- # @return [Array<PaymentMethodConfiguration>]
589
- def transaction_service_fetch_possible_payment_methods(space_id, id, opts = {})
590
- data, _status_code, _headers = transaction_service_fetch_possible_payment_methods_with_http_info(space_id, id, opts)
591
- return data
592
- end
593
-
594
- # Fetch Possible Payment Methods
595
- # This operation allows to get the payment method configurations which can be used with the provided transaction.
596
- # @param space_id
597
- # @param id The id of the transaction which should be returned.
598
- # @param [Hash] opts the optional parameters
599
- # @return [Array<(Array<PaymentMethodConfiguration>, Fixnum, Hash)>] Array<PaymentMethodConfiguration> data, response status code and response headers
600
- def transaction_service_fetch_possible_payment_methods_with_http_info(space_id, id, opts = {})
601
- if @api_client.config.debugging
602
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_fetch_possible_payment_methods ..."
603
- end
604
- # verify the required parameter 'space_id' is set
605
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_fetch_possible_payment_methods" if space_id.nil?
606
- # verify the required parameter 'id' is set
607
- fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.transaction_service_fetch_possible_payment_methods" if id.nil?
608
- # resource path
609
- local_var_path = "/transaction/fetchPossiblePaymentMethods".sub('{format}','json')
610
-
611
- # query parameters
612
- query_params = {}
613
- query_params[:'spaceId'] = space_id
614
- query_params[:'id'] = id
615
-
616
- # header parameters
617
- header_params = {}
618
-
619
- # HTTP header 'Accept' (if needed)
620
- local_header_accept = []
621
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
622
-
623
- # HTTP header 'Content-Type'
624
- local_header_content_type = ['application/json;charset=utf-8']
625
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
626
-
627
- # form parameters
628
- form_params = {}
629
-
630
- # http body (model)
631
- post_body = nil
632
- auth_names = []
633
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
634
- :header_params => header_params,
635
- :query_params => query_params,
636
- :form_params => form_params,
637
- :body => post_body,
638
- :auth_names => auth_names,
639
- :return_type => 'Array<PaymentMethodConfiguration>')
640
- if @api_client.config.debugging
641
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_fetch_possible_payment_methods\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
642
- end
643
- return data, status_code, headers
644
- end
645
-
646
- # Fetch Possible Payment Methods with Credentials
647
- # This operation allows to get the payment method configurations which can be used with the provided transaction.
648
- # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
649
- # @param [Hash] opts the optional parameters
650
- # @return [Array<PaymentMethodConfiguration>]
651
- def transaction_service_fetch_possible_payment_methods_with_credentials(credentials, opts = {})
652
- data, _status_code, _headers = transaction_service_fetch_possible_payment_methods_with_credentials_with_http_info(credentials, opts)
653
- return data
654
- end
655
-
656
- # Fetch Possible Payment Methods with Credentials
657
- # This operation allows to get the payment method configurations which can be used with the provided transaction.
658
- # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
659
- # @param [Hash] opts the optional parameters
660
- # @return [Array<(Array<PaymentMethodConfiguration>, Fixnum, Hash)>] Array<PaymentMethodConfiguration> data, response status code and response headers
661
- def transaction_service_fetch_possible_payment_methods_with_credentials_with_http_info(credentials, opts = {})
662
- if @api_client.config.debugging
663
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_fetch_possible_payment_methods_with_credentials ..."
664
- end
665
- # verify the required parameter 'credentials' is set
666
- fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.transaction_service_fetch_possible_payment_methods_with_credentials" if credentials.nil?
667
- # resource path
668
- local_var_path = "/transaction/fetchPossiblePaymentMethodsWithCredentials".sub('{format}','json')
669
-
670
- # query parameters
671
- query_params = {}
672
- query_params[:'credentials'] = credentials
673
-
674
- # header parameters
675
- header_params = {}
676
-
677
- # HTTP header 'Accept' (if needed)
678
- local_header_accept = []
679
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
680
-
681
- # HTTP header 'Content-Type'
682
- local_header_content_type = ['application/json;charset=utf-8']
683
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
684
-
685
- # form parameters
686
- form_params = {}
687
-
688
- # http body (model)
689
- post_body = nil
690
- auth_names = []
691
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
692
- :header_params => header_params,
693
- :query_params => query_params,
694
- :form_params => form_params,
695
- :body => post_body,
696
- :auth_names => auth_names,
697
- :return_type => 'Array<PaymentMethodConfiguration>')
698
- if @api_client.config.debugging
699
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_fetch_possible_payment_methods_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
700
- end
701
- return data, status_code, headers
702
- end
703
-
704
- # getInvoiceDocument
705
- # Returns the PDF document for the transaction invoice with given id.
706
- # @param space_id
707
- # @param id The id of the transaction to get the invoice document for.
708
- # @param [Hash] opts the optional parameters
709
- # @return [RenderedDocument]
710
- def transaction_service_get_invoice_document(space_id, id, opts = {})
711
- data, _status_code, _headers = transaction_service_get_invoice_document_with_http_info(space_id, id, opts)
712
- return data
713
- end
714
-
715
- # getInvoiceDocument
716
- # Returns the PDF document for the transaction invoice with given id.
717
- # @param space_id
718
- # @param id The id of the transaction to get the invoice document for.
719
- # @param [Hash] opts the optional parameters
720
- # @return [Array<(RenderedDocument, Fixnum, Hash)>] RenderedDocument data, response status code and response headers
721
- def transaction_service_get_invoice_document_with_http_info(space_id, id, opts = {})
722
- if @api_client.config.debugging
723
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_get_invoice_document ..."
724
- end
725
- # verify the required parameter 'space_id' is set
726
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_get_invoice_document" if space_id.nil?
727
- # verify the required parameter 'id' is set
728
- fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.transaction_service_get_invoice_document" if id.nil?
729
- # resource path
730
- local_var_path = "/transaction/getInvoiceDocument".sub('{format}','json')
731
-
732
- # query parameters
733
- query_params = {}
734
- query_params[:'spaceId'] = space_id
735
- query_params[:'id'] = id
736
-
737
- # header parameters
738
- header_params = {}
739
-
740
- # HTTP header 'Accept' (if needed)
741
- local_header_accept = ['*/*']
742
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
743
-
744
- # HTTP header 'Content-Type'
745
- local_header_content_type = ['application/json;charset=utf-8']
746
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
747
-
748
- # form parameters
749
- form_params = {}
750
-
751
- # http body (model)
752
- post_body = nil
753
- auth_names = []
754
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
755
- :header_params => header_params,
756
- :query_params => query_params,
757
- :form_params => form_params,
758
- :body => post_body,
759
- :auth_names => auth_names,
760
- :return_type => 'RenderedDocument')
761
- if @api_client.config.debugging
762
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_get_invoice_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
763
- end
764
- return data, status_code, headers
765
- end
766
-
767
- # getLatestTransactionLineItemVersion
768
- #
769
- # @param space_id
770
- # @param id The id of the transaction to get the latest line item version for.
771
- # @param [Hash] opts the optional parameters
772
- # @return [TransactionLineItemVersion]
773
- def transaction_service_get_latest_transaction_line_item_version(space_id, id, opts = {})
774
- data, _status_code, _headers = transaction_service_get_latest_transaction_line_item_version_with_http_info(space_id, id, opts)
775
- return data
776
- end
777
-
778
- # getLatestTransactionLineItemVersion
779
- #
780
- # @param space_id
781
- # @param id The id of the transaction to get the latest line item version for.
782
- # @param [Hash] opts the optional parameters
783
- # @return [Array<(TransactionLineItemVersion, Fixnum, Hash)>] TransactionLineItemVersion data, response status code and response headers
784
- def transaction_service_get_latest_transaction_line_item_version_with_http_info(space_id, id, opts = {})
785
- if @api_client.config.debugging
786
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_get_latest_transaction_line_item_version ..."
787
- end
788
- # verify the required parameter 'space_id' is set
789
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_get_latest_transaction_line_item_version" if space_id.nil?
790
- # verify the required parameter 'id' is set
791
- fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.transaction_service_get_latest_transaction_line_item_version" if id.nil?
792
- # resource path
793
- local_var_path = "/transaction/getLatestTransactionLineItemVersion".sub('{format}','json')
794
-
795
- # query parameters
796
- query_params = {}
797
- query_params[:'spaceId'] = space_id
798
- query_params[:'id'] = id
799
-
800
- # header parameters
801
- header_params = {}
802
-
803
- # HTTP header 'Accept' (if needed)
804
- local_header_accept = []
805
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
806
-
807
- # HTTP header 'Content-Type'
808
- local_header_content_type = ['application/json;charset=utf-8']
809
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
810
-
811
- # form parameters
812
- form_params = {}
813
-
814
- # http body (model)
815
- post_body = nil
816
- auth_names = []
817
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
818
- :header_params => header_params,
819
- :query_params => query_params,
820
- :form_params => form_params,
821
- :body => post_body,
822
- :auth_names => auth_names,
823
- :return_type => 'TransactionLineItemVersion')
824
- if @api_client.config.debugging
825
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_get_latest_transaction_line_item_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
826
- end
827
- return data, status_code, headers
828
- end
829
-
830
- # getPackingSlip
831
- # Returns the packing slip for the transaction with given id.
832
- # @param space_id
833
- # @param id The id of the transaction to get the packing slip for.
834
- # @param [Hash] opts the optional parameters
835
- # @return [RenderedDocument]
836
- def transaction_service_get_packing_slip(space_id, id, opts = {})
837
- data, _status_code, _headers = transaction_service_get_packing_slip_with_http_info(space_id, id, opts)
838
- return data
839
- end
840
-
841
- # getPackingSlip
842
- # Returns the packing slip for the transaction with given id.
843
- # @param space_id
844
- # @param id The id of the transaction to get the packing slip for.
845
- # @param [Hash] opts the optional parameters
846
- # @return [Array<(RenderedDocument, Fixnum, Hash)>] RenderedDocument data, response status code and response headers
847
- def transaction_service_get_packing_slip_with_http_info(space_id, id, opts = {})
848
- if @api_client.config.debugging
849
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_get_packing_slip ..."
850
- end
851
- # verify the required parameter 'space_id' is set
852
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_get_packing_slip" if space_id.nil?
853
- # verify the required parameter 'id' is set
854
- fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.transaction_service_get_packing_slip" if id.nil?
855
- # resource path
856
- local_var_path = "/transaction/getPackingSlip".sub('{format}','json')
857
-
858
- # query parameters
859
- query_params = {}
860
- query_params[:'spaceId'] = space_id
861
- query_params[:'id'] = id
862
-
863
- # header parameters
864
- header_params = {}
865
-
866
- # HTTP header 'Accept' (if needed)
867
- local_header_accept = ['*/*']
868
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
869
-
870
- # HTTP header 'Content-Type'
871
- local_header_content_type = ['application/json;charset=utf-8']
872
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
873
-
874
- # form parameters
875
- form_params = {}
876
-
877
- # http body (model)
878
- post_body = nil
879
- auth_names = []
880
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
881
- :header_params => header_params,
882
- :query_params => query_params,
883
- :form_params => form_params,
884
- :body => post_body,
885
- :auth_names => auth_names,
886
- :return_type => 'RenderedDocument')
887
- if @api_client.config.debugging
888
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_get_packing_slip\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
889
- end
890
- return data, status_code, headers
891
- end
892
-
893
- # Process One-Click Token with Credentials
894
- # This operation assigns the given token to the transaction and process it.
895
- # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
896
- # @param token_id The token ID is used to load the corresponding token and to process the transaction with it.
897
- # @param [Hash] opts the optional parameters
898
- # @return [Transaction]
899
- def transaction_service_process_one_click_token_with_credentials(credentials, token_id, opts = {})
900
- data, _status_code, _headers = transaction_service_process_one_click_token_with_credentials_with_http_info(credentials, token_id, opts)
901
- return data
902
- end
903
-
904
- # Process One-Click Token with Credentials
905
- # This operation assigns the given token to the transaction and process it.
906
- # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
907
- # @param token_id The token ID is used to load the corresponding token and to process the transaction with it.
908
- # @param [Hash] opts the optional parameters
909
- # @return [Array<(Transaction, Fixnum, Hash)>] Transaction data, response status code and response headers
910
- def transaction_service_process_one_click_token_with_credentials_with_http_info(credentials, token_id, opts = {})
911
- if @api_client.config.debugging
912
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_process_one_click_token_with_credentials ..."
913
- end
914
- # verify the required parameter 'credentials' is set
915
- fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.transaction_service_process_one_click_token_with_credentials" if credentials.nil?
916
- # verify the required parameter 'token_id' is set
917
- fail ArgumentError, "Missing the required parameter 'token_id' when calling TransactionService.transaction_service_process_one_click_token_with_credentials" if token_id.nil?
918
- # resource path
919
- local_var_path = "/transaction/processOneClickTokenWithCredentials".sub('{format}','json')
920
-
921
- # query parameters
922
- query_params = {}
923
- query_params[:'credentials'] = credentials
924
- query_params[:'tokenId'] = token_id
925
-
926
- # header parameters
927
- header_params = {}
928
-
929
- # HTTP header 'Accept' (if needed)
930
- local_header_accept = []
931
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
932
-
933
- # HTTP header 'Content-Type'
934
- local_header_content_type = []
935
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
936
-
937
- # form parameters
938
- form_params = {}
939
-
940
- # http body (model)
941
- post_body = nil
942
- auth_names = []
943
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
944
- :header_params => header_params,
945
- :query_params => query_params,
946
- :form_params => form_params,
947
- :body => post_body,
948
- :auth_names => auth_names,
949
- :return_type => 'Transaction')
950
- if @api_client.config.debugging
951
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_process_one_click_token_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
952
- end
953
- return data, status_code, headers
954
- end
955
-
956
- # Read
957
- # Reads the entity with the given 'id' and returns it.
958
- # @param space_id
959
- # @param id The id of the transaction which should be returned.
960
- # @param [Hash] opts the optional parameters
961
- # @return [Transaction]
962
- def transaction_service_read(space_id, id, opts = {})
963
- data, _status_code, _headers = transaction_service_read_with_http_info(space_id, id, opts)
964
- return data
965
- end
966
-
967
- # Read
968
- # Reads the entity with the given &#39;id&#39; and returns it.
969
- # @param space_id
970
- # @param id The id of the transaction which should be returned.
971
- # @param [Hash] opts the optional parameters
972
- # @return [Array<(Transaction, Fixnum, Hash)>] Transaction data, response status code and response headers
973
- def transaction_service_read_with_http_info(space_id, id, opts = {})
974
- if @api_client.config.debugging
975
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_read ..."
976
- end
977
- # verify the required parameter 'space_id' is set
978
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_read" if space_id.nil?
979
- # verify the required parameter 'id' is set
980
- fail ArgumentError, "Missing the required parameter 'id' when calling TransactionService.transaction_service_read" if id.nil?
981
- # resource path
982
- local_var_path = "/transaction/read".sub('{format}','json')
983
-
984
- # query parameters
985
- query_params = {}
986
- query_params[:'spaceId'] = space_id
987
- query_params[:'id'] = id
988
-
989
- # header parameters
990
- header_params = {}
991
-
992
- # HTTP header 'Accept' (if needed)
993
- local_header_accept = ['*/*']
994
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
995
-
996
- # HTTP header 'Content-Type'
997
- local_header_content_type = ['application/json;charset=utf-8']
998
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
999
-
1000
- # form parameters
1001
- form_params = {}
1002
-
1003
- # http body (model)
1004
- post_body = nil
1005
- auth_names = []
1006
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1007
- :header_params => header_params,
1008
- :query_params => query_params,
1009
- :form_params => form_params,
1010
- :body => post_body,
1011
- :auth_names => auth_names,
1012
- :return_type => 'Transaction')
1013
- if @api_client.config.debugging
1014
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1015
- end
1016
- return data, status_code, headers
1017
- end
1018
-
1019
- # Read With Credentials
1020
- # Reads the transaction with the given 'id' and returns it. This method uses the credentials to authenticate and identify the transaction.
1021
- # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
1022
- # @param [Hash] opts the optional parameters
1023
- # @return [Transaction]
1024
- def transaction_service_read_with_credentials(credentials, opts = {})
1025
- data, _status_code, _headers = transaction_service_read_with_credentials_with_http_info(credentials, opts)
1026
- return data
1027
- end
1028
-
1029
- # Read With Credentials
1030
- # Reads the transaction with the given &#39;id&#39; and returns it. This method uses the credentials to authenticate and identify the transaction.
1031
- # @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
1032
- # @param [Hash] opts the optional parameters
1033
- # @return [Array<(Transaction, Fixnum, Hash)>] Transaction data, response status code and response headers
1034
- def transaction_service_read_with_credentials_with_http_info(credentials, opts = {})
1035
- if @api_client.config.debugging
1036
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_read_with_credentials ..."
1037
- end
1038
- # verify the required parameter 'credentials' is set
1039
- fail ArgumentError, "Missing the required parameter 'credentials' when calling TransactionService.transaction_service_read_with_credentials" if credentials.nil?
1040
- # resource path
1041
- local_var_path = "/transaction/readWithCredentials".sub('{format}','json')
1042
-
1043
- # query parameters
1044
- query_params = {}
1045
- query_params[:'credentials'] = credentials
1046
-
1047
- # header parameters
1048
- header_params = {}
1049
-
1050
- # HTTP header 'Accept' (if needed)
1051
- local_header_accept = ['*/*']
1052
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1053
-
1054
- # HTTP header 'Content-Type'
1055
- local_header_content_type = ['application/json;charset=utf-8']
1056
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1057
-
1058
- # form parameters
1059
- form_params = {}
1060
-
1061
- # http body (model)
1062
- post_body = nil
1063
- auth_names = []
1064
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1065
- :header_params => header_params,
1066
- :query_params => query_params,
1067
- :form_params => form_params,
1068
- :body => post_body,
1069
- :auth_names => auth_names,
1070
- :return_type => 'Transaction')
1071
- if @api_client.config.debugging
1072
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_read_with_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1073
- end
1074
- return data, status_code, headers
1075
- end
1076
-
1077
- # Search
1078
- # Searches for the entities as specified by the given query.
1079
- # @param space_id
1080
- # @param query The query restricts the transactions which are returned by the search.
1081
- # @param [Hash] opts the optional parameters
1082
- # @return [Array<Transaction>]
1083
- def transaction_service_search(space_id, query, opts = {})
1084
- data, _status_code, _headers = transaction_service_search_with_http_info(space_id, query, opts)
1085
- return data
1086
- end
1087
-
1088
- # Search
1089
- # Searches for the entities as specified by the given query.
1090
- # @param space_id
1091
- # @param query The query restricts the transactions which are returned by the search.
1092
- # @param [Hash] opts the optional parameters
1093
- # @return [Array<(Array<Transaction>, Fixnum, Hash)>] Array<Transaction> data, response status code and response headers
1094
- def transaction_service_search_with_http_info(space_id, query, opts = {})
1095
- if @api_client.config.debugging
1096
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_search ..."
1097
- end
1098
- # verify the required parameter 'space_id' is set
1099
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_search" if space_id.nil?
1100
- # verify the required parameter 'query' is set
1101
- fail ArgumentError, "Missing the required parameter 'query' when calling TransactionService.transaction_service_search" if query.nil?
1102
- # resource path
1103
- local_var_path = "/transaction/search".sub('{format}','json')
1104
-
1105
- # query parameters
1106
- query_params = {}
1107
- query_params[:'spaceId'] = space_id
1108
-
1109
- # header parameters
1110
- header_params = {}
1111
-
1112
- # HTTP header 'Accept' (if needed)
1113
- local_header_accept = ['application/json;charset=utf-8']
1114
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1115
-
1116
- # HTTP header 'Content-Type'
1117
- local_header_content_type = ['application/json;charset=utf-8']
1118
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1119
-
1120
- # form parameters
1121
- form_params = {}
1122
-
1123
- # http body (model)
1124
- post_body = @api_client.object_to_http_body(query)
1125
- auth_names = []
1126
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1127
- :header_params => header_params,
1128
- :query_params => query_params,
1129
- :form_params => form_params,
1130
- :body => post_body,
1131
- :auth_names => auth_names,
1132
- :return_type => 'Array<Transaction>')
1133
- if @api_client.config.debugging
1134
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1135
- end
1136
- return data, status_code, headers
1137
- end
1138
-
1139
- # Update
1140
- # 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.
1141
- # @param space_id
1142
- # @param entity The transaction object with the properties which should be updated.
1143
- # @param [Hash] opts the optional parameters
1144
- # @return [Transaction]
1145
- def transaction_service_update(space_id, entity, opts = {})
1146
- data, _status_code, _headers = transaction_service_update_with_http_info(space_id, entity, opts)
1147
- return data
1148
- end
1149
-
1150
- # Update
1151
- # 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.
1152
- # @param space_id
1153
- # @param entity The transaction object with the properties which should be updated.
1154
- # @param [Hash] opts the optional parameters
1155
- # @return [Array<(Transaction, Fixnum, Hash)>] Transaction data, response status code and response headers
1156
- def transaction_service_update_with_http_info(space_id, entity, opts = {})
1157
- if @api_client.config.debugging
1158
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_update ..."
1159
- end
1160
- # verify the required parameter 'space_id' is set
1161
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_update" if space_id.nil?
1162
- # verify the required parameter 'entity' is set
1163
- fail ArgumentError, "Missing the required parameter 'entity' when calling TransactionService.transaction_service_update" if entity.nil?
1164
- # resource path
1165
- local_var_path = "/transaction/update".sub('{format}','json')
1166
-
1167
- # query parameters
1168
- query_params = {}
1169
- query_params[:'spaceId'] = space_id
1170
-
1171
- # header parameters
1172
- header_params = {}
1173
-
1174
- # HTTP header 'Accept' (if needed)
1175
- local_header_accept = ['application/json;charset=utf-8']
1176
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1177
-
1178
- # HTTP header 'Content-Type'
1179
- local_header_content_type = ['application/json;charset=utf-8']
1180
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1181
-
1182
- # form parameters
1183
- form_params = {}
1184
-
1185
- # http body (model)
1186
- post_body = @api_client.object_to_http_body(entity)
1187
- auth_names = []
1188
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1189
- :header_params => header_params,
1190
- :query_params => query_params,
1191
- :form_params => form_params,
1192
- :body => post_body,
1193
- :auth_names => auth_names,
1194
- :return_type => 'Transaction')
1195
- if @api_client.config.debugging
1196
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1197
- end
1198
- return data, status_code, headers
1199
- end
1200
-
1201
- # updateTransactionLineItems
1202
- #
1203
- # @param space_id
1204
- # @param update_request
1205
- # @param [Hash] opts the optional parameters
1206
- # @return [TransactionLineItemVersion]
1207
- def transaction_service_update_transaction_line_items(space_id, update_request, opts = {})
1208
- data, _status_code, _headers = transaction_service_update_transaction_line_items_with_http_info(space_id, update_request, opts)
1209
- return data
1210
- end
1211
-
1212
- # updateTransactionLineItems
1213
- #
1214
- # @param space_id
1215
- # @param update_request
1216
- # @param [Hash] opts the optional parameters
1217
- # @return [Array<(TransactionLineItemVersion, Fixnum, Hash)>] TransactionLineItemVersion data, response status code and response headers
1218
- def transaction_service_update_transaction_line_items_with_http_info(space_id, update_request, opts = {})
1219
- if @api_client.config.debugging
1220
- @api_client.config.logger.debug "Calling API: TransactionService.transaction_service_update_transaction_line_items ..."
1221
- end
1222
- # verify the required parameter 'space_id' is set
1223
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionService.transaction_service_update_transaction_line_items" if space_id.nil?
1224
- # verify the required parameter 'update_request' is set
1225
- fail ArgumentError, "Missing the required parameter 'update_request' when calling TransactionService.transaction_service_update_transaction_line_items" if update_request.nil?
1226
- # resource path
1227
- local_var_path = "/transaction/updateTransactionLineItems".sub('{format}','json')
1228
-
1229
- # query parameters
1230
- query_params = {}
1231
- query_params[:'spaceId'] = space_id
1232
-
1233
- # header parameters
1234
- header_params = {}
1235
-
1236
- # HTTP header 'Accept' (if needed)
1237
- local_header_accept = []
1238
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1239
-
1240
- # HTTP header 'Content-Type'
1241
- local_header_content_type = ['application/json;charset=utf-8']
1242
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1243
-
1244
- # form parameters
1245
- form_params = {}
1246
-
1247
- # http body (model)
1248
- post_body = @api_client.object_to_http_body(update_request)
1249
- auth_names = []
1250
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1251
- :header_params => header_params,
1252
- :query_params => query_params,
1253
- :form_params => form_params,
1254
- :body => post_body,
1255
- :auth_names => auth_names,
1256
- :return_type => 'TransactionLineItemVersion')
1257
- if @api_client.config.debugging
1258
- @api_client.config.logger.debug "API called: TransactionService#transaction_service_update_transaction_line_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1259
- end
1260
- return data, status_code, headers
1261
- end
1262
- end
1263
- end