wallee-ruby-sdk 1.0.3 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (515) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/LICENSE +1 -1
  4. data/README.md +101 -38
  5. data/lib/wallee-ruby-sdk.rb +274 -118
  6. data/lib/wallee-ruby-sdk/{services → api}/account_service_api.rb +35 -39
  7. data/lib/wallee-ruby-sdk/{services → api}/application_user_service_api.rb +35 -39
  8. data/lib/wallee-ruby-sdk/api/bank_account_service_api.rb +213 -0
  9. data/lib/wallee-ruby-sdk/{services/email_template_service_api.rb → api/bank_transaction_service_api.rb} +36 -40
  10. data/lib/wallee-ruby-sdk/{services → api}/card_processing_service_api.rb +20 -24
  11. data/lib/wallee-ruby-sdk/{services → api}/charge_attempt_service_api.rb +20 -24
  12. data/lib/wallee-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
  13. data/lib/wallee-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
  14. data/lib/wallee-ruby-sdk/{services → api}/charge_flow_level_service_api.rb +27 -31
  15. data/lib/wallee-ruby-sdk/{services → api}/charge_flow_service_api.rb +36 -40
  16. data/lib/wallee-ruby-sdk/{services → api}/condition_type_service_api.rb +11 -15
  17. data/lib/wallee-ruby-sdk/{services → api}/country_service_api.rb +5 -9
  18. data/lib/wallee-ruby-sdk/{services → api}/country_state_service_api.rb +11 -15
  19. data/lib/wallee-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
  20. data/lib/wallee-ruby-sdk/{services → api}/currency_service_api.rb +5 -9
  21. data/lib/wallee-ruby-sdk/api/customer_address_service_api.rb +460 -0
  22. data/lib/wallee-ruby-sdk/api/customer_comment_service_api.rb +522 -0
  23. data/lib/wallee-ruby-sdk/{services/token_service_api.rb → api/customer_service_api.rb} +68 -72
  24. data/lib/wallee-ruby-sdk/{services → api}/debt_collection_case_service_api.rb +87 -91
  25. data/lib/wallee-ruby-sdk/{services → api}/debt_collector_configuration_service_api.rb +20 -24
  26. data/lib/wallee-ruby-sdk/{services → api}/debt_collector_service_api.rb +11 -15
  27. data/lib/wallee-ruby-sdk/{services → api}/delivery_indication_service_api.rb +34 -38
  28. data/lib/wallee-ruby-sdk/{services → api}/document_template_service_api.rb +20 -24
  29. data/lib/wallee-ruby-sdk/{services → api}/document_template_type_service_api.rb +11 -15
  30. data/lib/wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
  31. data/lib/wallee-ruby-sdk/{services → api}/human_user_service_api.rb +41 -45
  32. data/lib/wallee-ruby-sdk/{services → api}/installment_payment_service_api.rb +29 -33
  33. data/lib/wallee-ruby-sdk/{services → api}/installment_payment_slice_service_api.rb +21 -25
  34. data/lib/wallee-ruby-sdk/{services → api}/installment_plan_calculation_service_api.rb +7 -11
  35. data/lib/wallee-ruby-sdk/{services → api}/installment_plan_configuration_service_api.rb +21 -25
  36. data/lib/wallee-ruby-sdk/{services → api}/installment_plan_slice_configuration_service_api.rb +21 -25
  37. data/lib/wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
  38. data/lib/wallee-ruby-sdk/{services → api}/label_description_group_service_api.rb +11 -15
  39. data/lib/wallee-ruby-sdk/{services → api}/label_description_service_api.rb +11 -15
  40. data/lib/wallee-ruby-sdk/{services → api}/language_service_api.rb +5 -9
  41. data/lib/wallee-ruby-sdk/{services → api}/legal_organization_form_service_api.rb +17 -21
  42. data/lib/wallee-ruby-sdk/{services → api}/manual_task_service_api.rb +20 -24
  43. data/lib/wallee-ruby-sdk/{services → api}/mertic_usage_service_api.rb +8 -12
  44. data/lib/wallee-ruby-sdk/{services → api}/payment_connector_configuration_service_api.rb +20 -24
  45. data/lib/wallee-ruby-sdk/{services → api}/payment_connector_service_api.rb +11 -15
  46. data/lib/wallee-ruby-sdk/{services → api}/payment_link_service_api.rb +41 -45
  47. data/lib/wallee-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
  48. data/lib/wallee-ruby-sdk/{services → api}/payment_method_configuration_service_api.rb +20 -24
  49. data/lib/wallee-ruby-sdk/{services → api}/payment_method_service_api.rb +11 -15
  50. data/lib/wallee-ruby-sdk/{services → api}/payment_processor_configuration_service_api.rb +20 -24
  51. data/lib/wallee-ruby-sdk/{services → api}/payment_processor_service_api.rb +11 -15
  52. data/lib/wallee-ruby-sdk/api/payment_terminal_service_api.rb +213 -0
  53. data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
  54. data/lib/wallee-ruby-sdk/{services → api}/permission_service_api.rb +11 -15
  55. data/lib/wallee-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
  56. data/lib/wallee-ruby-sdk/api/refund_comment_service_api.rb +464 -0
  57. data/lib/wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
  58. data/lib/wallee-ruby-sdk/{services → api}/refund_service_api.rb +117 -53
  59. data/lib/wallee-ruby-sdk/api/shopify_recurring_order_service_api.rb +274 -0
  60. data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +275 -0
  61. data/lib/wallee-ruby-sdk/api/shopify_subscription_product_service_api.rb +337 -0
  62. data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +466 -0
  63. data/lib/wallee-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +337 -0
  64. data/lib/wallee-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
  65. data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
  66. data/lib/wallee-ruby-sdk/{services → api}/space_service_api.rb +35 -39
  67. data/lib/wallee-ruby-sdk/{services → api}/static_value_service_api.rb +11 -15
  68. data/lib/wallee-ruby-sdk/{services → api}/subscriber_service_api.rb +44 -48
  69. data/lib/wallee-ruby-sdk/{services → api}/subscription_affiliate_service_api.rb +41 -45
  70. data/lib/wallee-ruby-sdk/{services → api}/subscription_charge_service_api.rb +34 -38
  71. data/lib/wallee-ruby-sdk/{services → api}/subscription_ledger_entry_service_api.rb +27 -31
  72. data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_service_api.rb +41 -45
  73. data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_usage_service_api.rb +27 -31
  74. data/lib/wallee-ruby-sdk/{services → api}/subscription_period_bill_service_api.rb +26 -30
  75. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_group_service_api.rb +41 -45
  76. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_service_api.rb +41 -45
  77. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_fee_tier_service_api.rb +41 -45
  78. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_metered_fee_service_api.rb +41 -45
  79. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_period_fee_service_api.rb +41 -45
  80. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_retirement_service_api.rb +27 -31
  81. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_service_api.rb +34 -38
  82. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_setup_fee_service_api.rb +41 -45
  83. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_retirement_service_api.rb +27 -31
  84. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_service_api.rb +41 -45
  85. data/lib/wallee-ruby-sdk/{services → api}/subscription_service_api.rb +237 -107
  86. data/lib/wallee-ruby-sdk/{services → api}/subscription_suspension_service_api.rb +34 -38
  87. data/lib/wallee-ruby-sdk/{services → api}/subscription_version_service_api.rb +20 -24
  88. data/lib/wallee-ruby-sdk/api/token_service_api.rb +587 -0
  89. data/lib/wallee-ruby-sdk/{services → api}/token_version_service_api.rb +27 -31
  90. data/lib/wallee-ruby-sdk/api/transaction_comment_service_api.rb +464 -0
  91. data/lib/wallee-ruby-sdk/{services → api}/transaction_completion_service_api.rb +158 -38
  92. data/lib/wallee-ruby-sdk/api/transaction_iframe_service_api.rb +91 -0
  93. data/lib/wallee-ruby-sdk/api/transaction_invoice_comment_service_api.rb +464 -0
  94. data/lib/wallee-ruby-sdk/{services → api}/transaction_invoice_service_api.rb +180 -53
  95. data/lib/wallee-ruby-sdk/api/transaction_lightbox_service_api.rb +91 -0
  96. data/lib/wallee-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +86 -0
  97. data/lib/wallee-ruby-sdk/api/transaction_payment_page_service_api.rb +91 -0
  98. data/lib/wallee-ruby-sdk/{services → api}/transaction_service_api.rb +149 -327
  99. data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +161 -0
  100. data/lib/wallee-ruby-sdk/{services → api}/transaction_void_service_api.rb +34 -38
  101. data/lib/wallee-ruby-sdk/{services → api}/user_account_role_service_api.rb +21 -25
  102. data/lib/wallee-ruby-sdk/{services → api}/user_space_role_service_api.rb +21 -25
  103. data/lib/wallee-ruby-sdk/api/web_app_service_api.rb +200 -0
  104. data/lib/wallee-ruby-sdk/{services → api}/webhook_listener_service_api.rb +41 -45
  105. data/lib/wallee-ruby-sdk/{services → api}/webhook_url_service_api.rb +41 -45
  106. data/lib/wallee-ruby-sdk/api_client.rb +9 -8
  107. data/lib/wallee-ruby-sdk/api_error.rb +0 -4
  108. data/lib/wallee-ruby-sdk/configuration.rb +2 -6
  109. data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +40 -14
  110. data/lib/wallee-ruby-sdk/models/abstract_application_user_update.rb +31 -14
  111. data/lib/wallee-ruby-sdk/models/abstract_customer_active.rb +312 -0
  112. data/lib/wallee-ruby-sdk/models/abstract_customer_address_active.rb +200 -0
  113. data/lib/wallee-ruby-sdk/models/abstract_customer_comment_active.rb +205 -0
  114. data/lib/wallee-ruby-sdk/models/abstract_debt_collection_case_update.rb +5 -13
  115. data/lib/wallee-ruby-sdk/models/abstract_human_user_update.rb +87 -15
  116. data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +35 -28
  117. data/lib/wallee-ruby-sdk/models/abstract_refund_comment_active.rb +205 -0
  118. data/lib/wallee-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
  119. data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +51 -15
  120. data/lib/wallee-ruby-sdk/models/abstract_subscriber_update.rb +51 -14
  121. data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +30 -14
  122. data/lib/wallee-ruby-sdk/models/abstract_subscription_metric_update.rb +5 -13
  123. data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +20 -13
  124. data/lib/wallee-ruby-sdk/models/abstract_token_update.rb +35 -13
  125. data/lib/wallee-ruby-sdk/models/abstract_transaction_comment_active.rb +205 -0
  126. data/lib/wallee-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +205 -0
  127. data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +127 -17
  128. data/lib/wallee-ruby-sdk/models/abstract_webhook_listener_update.rb +43 -14
  129. data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +44 -13
  130. data/lib/wallee-ruby-sdk/models/account.rb +90 -13
  131. data/lib/wallee-ruby-sdk/models/account_create.rb +56 -14
  132. data/lib/wallee-ruby-sdk/models/account_state.rb +12 -20
  133. data/lib/wallee-ruby-sdk/models/account_type.rb +9 -17
  134. data/lib/wallee-ruby-sdk/models/account_update.rb +42 -15
  135. data/lib/wallee-ruby-sdk/models/address.rb +240 -22
  136. data/lib/wallee-ruby-sdk/models/address_create.rb +240 -22
  137. data/lib/wallee-ruby-sdk/models/application_user.rb +32 -14
  138. data/lib/wallee-ruby-sdk/models/application_user_create.rb +32 -14
  139. data/lib/wallee-ruby-sdk/models/application_user_create_with_mac_key.rb +31 -13
  140. data/lib/wallee-ruby-sdk/models/application_user_update.rb +33 -15
  141. data/lib/wallee-ruby-sdk/models/authenticated_card_data.rb +221 -0
  142. data/lib/wallee-ruby-sdk/models/authenticated_card_data_create.rb +358 -0
  143. data/lib/wallee-ruby-sdk/models/bank_account.rb +291 -0
  144. data/lib/wallee-ruby-sdk/models/bank_account_environment.rb +35 -0
  145. data/lib/wallee-ruby-sdk/models/bank_account_state.rb +37 -0
  146. data/lib/wallee-ruby-sdk/models/bank_account_type.rb +227 -0
  147. data/lib/wallee-ruby-sdk/models/bank_transaction.rb +387 -0
  148. data/lib/wallee-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
  149. data/lib/wallee-ruby-sdk/models/{attachment_resource.rb → bank_transaction_source.rb} +33 -28
  150. data/lib/wallee-ruby-sdk/models/bank_transaction_state.rb +35 -0
  151. data/lib/wallee-ruby-sdk/models/bank_transaction_type.rb +215 -0
  152. data/lib/wallee-ruby-sdk/models/card_authentication_response.rb +38 -0
  153. data/lib/wallee-ruby-sdk/models/card_authentication_version.rb +35 -0
  154. data/lib/wallee-ruby-sdk/models/card_cryptogram.rb +201 -0
  155. data/lib/wallee-ruby-sdk/models/card_cryptogram_create.rb +211 -0
  156. data/lib/wallee-ruby-sdk/models/card_cryptogram_type.rb +34 -0
  157. data/lib/wallee-ruby-sdk/models/{unencrypted_card_data_create.rb → cardholder_authentication.rb} +44 -46
  158. data/lib/wallee-ruby-sdk/models/cardholder_authentication_create.rb +241 -0
  159. data/lib/wallee-ruby-sdk/models/charge.rb +16 -13
  160. data/lib/wallee-ruby-sdk/models/charge_attempt.rb +61 -13
  161. data/lib/wallee-ruby-sdk/models/charge_attempt_environment.rb +8 -16
  162. data/lib/wallee-ruby-sdk/models/charge_attempt_state.rb +9 -17
  163. data/lib/wallee-ruby-sdk/models/charge_bank_transaction.rb +291 -0
  164. data/lib/wallee-ruby-sdk/models/charge_flow.rb +5 -12
  165. data/lib/wallee-ruby-sdk/models/charge_flow_level.rb +5 -12
  166. data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration.rb +20 -12
  167. data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration_type.rb +20 -15
  168. data/lib/wallee-ruby-sdk/models/charge_flow_level_payment_link.rb +231 -0
  169. data/lib/wallee-ruby-sdk/models/charge_flow_level_state.rb +9 -17
  170. data/lib/wallee-ruby-sdk/models/charge_state.rb +9 -17
  171. data/lib/wallee-ruby-sdk/models/charge_type.rb +10 -17
  172. data/lib/wallee-ruby-sdk/models/client_error.rb +5 -12
  173. data/lib/wallee-ruby-sdk/models/client_error_type.rb +9 -17
  174. data/lib/wallee-ruby-sdk/models/completion_line_item.rb +226 -0
  175. data/lib/wallee-ruby-sdk/models/completion_line_item_create.rb +245 -0
  176. data/lib/wallee-ruby-sdk/models/condition.rb +20 -12
  177. data/lib/wallee-ruby-sdk/models/condition_type.rb +7 -14
  178. data/lib/wallee-ruby-sdk/models/connector_invocation.rb +5 -12
  179. data/lib/wallee-ruby-sdk/models/connector_invocation_stage.rb +10 -18
  180. data/lib/wallee-ruby-sdk/models/creation_entity_state.rb +11 -19
  181. data/lib/wallee-ruby-sdk/models/criteria_operator.rb +18 -24
  182. data/lib/wallee-ruby-sdk/models/currency_bank_account.rb +241 -0
  183. data/lib/wallee-ruby-sdk/models/customer.rb +353 -0
  184. data/lib/wallee-ruby-sdk/models/customer_active.rb +343 -0
  185. data/lib/wallee-ruby-sdk/models/customer_address.rb +261 -0
  186. data/lib/wallee-ruby-sdk/models/customer_address_active.rb +231 -0
  187. data/lib/wallee-ruby-sdk/models/customer_address_create.rb +216 -0
  188. data/lib/wallee-ruby-sdk/models/customer_address_type.rb +36 -0
  189. data/lib/wallee-ruby-sdk/models/customer_comment.rb +296 -0
  190. data/lib/wallee-ruby-sdk/models/customer_comment_active.rb +236 -0
  191. data/lib/wallee-ruby-sdk/models/customer_comment_create.rb +221 -0
  192. data/lib/wallee-ruby-sdk/models/customer_create.rb +313 -0
  193. data/lib/wallee-ruby-sdk/models/customer_postal_address.rb +606 -0
  194. data/lib/wallee-ruby-sdk/models/customer_postal_address_create.rb +606 -0
  195. data/lib/wallee-ruby-sdk/models/customers_presence.rb +9 -17
  196. data/lib/wallee-ruby-sdk/models/data_collection_type.rb +8 -16
  197. data/lib/wallee-ruby-sdk/models/database_translated_string.rb +5 -12
  198. data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +5 -12
  199. data/lib/wallee-ruby-sdk/models/database_translated_string_item.rb +20 -12
  200. data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +21 -13
  201. data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +5 -12
  202. data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +7 -14
  203. data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +50 -12
  204. data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +7 -14
  205. data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +13 -21
  206. data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +7 -14
  207. data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +8 -16
  208. data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +29 -12
  209. data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +7 -14
  210. data/lib/wallee-ruby-sdk/models/debt_collector.rb +7 -14
  211. data/lib/wallee-ruby-sdk/models/debt_collector_condition.rb +20 -12
  212. data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +7 -14
  213. data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +20 -12
  214. data/lib/wallee-ruby-sdk/models/delivery_indication.rb +16 -13
  215. data/lib/wallee-ruby-sdk/models/delivery_indication_decision_reason.rb +7 -14
  216. data/lib/wallee-ruby-sdk/models/delivery_indication_state.rb +10 -18
  217. data/lib/wallee-ruby-sdk/models/document_template.rb +41 -13
  218. data/lib/wallee-ruby-sdk/models/document_template_type.rb +18 -15
  219. data/lib/wallee-ruby-sdk/models/document_template_type_group.rb +203 -0
  220. data/lib/wallee-ruby-sdk/models/entity_export_request.rb +6 -13
  221. data/lib/wallee-ruby-sdk/models/entity_query.rb +5 -12
  222. data/lib/wallee-ruby-sdk/models/entity_query_filter.rb +6 -13
  223. data/lib/wallee-ruby-sdk/models/entity_query_filter_type.rb +9 -17
  224. data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +7 -14
  225. data/lib/wallee-ruby-sdk/models/entity_query_order_by_type.rb +8 -16
  226. data/lib/wallee-ruby-sdk/models/environment.rb +8 -16
  227. data/lib/wallee-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
  228. data/lib/wallee-ruby-sdk/models/failure_category.rb +11 -19
  229. data/lib/wallee-ruby-sdk/models/failure_reason.rb +7 -14
  230. data/lib/wallee-ruby-sdk/models/feature.rb +18 -15
  231. data/lib/wallee-ruby-sdk/models/feature_category.rb +225 -0
  232. data/lib/wallee-ruby-sdk/models/gender.rb +8 -16
  233. data/lib/wallee-ruby-sdk/models/human_user.rb +107 -14
  234. data/lib/wallee-ruby-sdk/models/human_user_create.rb +86 -13
  235. data/lib/wallee-ruby-sdk/models/human_user_update.rb +88 -15
  236. data/lib/wallee-ruby-sdk/models/installment_calculated_plan.rb +5 -12
  237. data/lib/wallee-ruby-sdk/models/installment_calculated_slice.rb +5 -12
  238. data/lib/wallee-ruby-sdk/models/installment_payment.rb +5 -12
  239. data/lib/wallee-ruby-sdk/models/installment_payment_slice.rb +5 -12
  240. data/lib/wallee-ruby-sdk/models/installment_payment_slice_state.rb +13 -21
  241. data/lib/wallee-ruby-sdk/models/installment_payment_state.rb +14 -22
  242. data/lib/wallee-ruby-sdk/models/installment_plan_configuration.rb +20 -12
  243. data/lib/wallee-ruby-sdk/models/installment_plan_slice_configuration.rb +5 -12
  244. data/lib/wallee-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
  245. data/lib/wallee-ruby-sdk/models/label.rb +5 -12
  246. data/lib/wallee-ruby-sdk/models/label_descriptor.rb +7 -14
  247. data/lib/wallee-ruby-sdk/models/label_descriptor_category.rb +8 -16
  248. data/lib/wallee-ruby-sdk/models/label_descriptor_group.rb +7 -14
  249. data/lib/wallee-ruby-sdk/models/label_descriptor_type.rb +7 -14
  250. data/lib/wallee-ruby-sdk/models/legal_organization_form.rb +5 -12
  251. data/lib/wallee-ruby-sdk/models/line_item.rb +121 -14
  252. data/lib/wallee-ruby-sdk/models/line_item_attribute.rb +35 -12
  253. data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +45 -14
  254. data/lib/wallee-ruby-sdk/models/line_item_create.rb +84 -19
  255. data/lib/wallee-ruby-sdk/models/line_item_reduction.rb +20 -12
  256. data/lib/wallee-ruby-sdk/models/line_item_reduction_create.rb +27 -15
  257. data/lib/wallee-ruby-sdk/models/line_item_type.rb +10 -18
  258. data/lib/wallee-ruby-sdk/models/localized_string.rb +5 -12
  259. data/lib/wallee-ruby-sdk/models/manual_task.rb +5 -12
  260. data/lib/wallee-ruby-sdk/models/manual_task_action.rb +6 -13
  261. data/lib/wallee-ruby-sdk/models/manual_task_action_style.rb +9 -17
  262. data/lib/wallee-ruby-sdk/models/manual_task_state.rb +9 -17
  263. data/lib/wallee-ruby-sdk/models/manual_task_type.rb +7 -14
  264. data/lib/wallee-ruby-sdk/models/metric_usage.rb +7 -14
  265. data/lib/wallee-ruby-sdk/models/one_click_payment_mode.rb +9 -17
  266. data/lib/wallee-ruby-sdk/models/payment_adjustment.rb +231 -0
  267. data/lib/wallee-ruby-sdk/models/payment_adjustment_type.rb +215 -0
  268. data/lib/wallee-ruby-sdk/models/payment_connector.rb +8 -15
  269. data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +33 -13
  270. data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +5 -12
  271. data/lib/wallee-ruby-sdk/models/payment_contract.rb +29 -12
  272. data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +11 -19
  273. data/lib/wallee-ruby-sdk/models/payment_contract_type.rb +7 -14
  274. data/lib/wallee-ruby-sdk/models/payment_information_hash.rb +211 -0
  275. data/lib/wallee-ruby-sdk/models/payment_information_hash_type.rb +203 -0
  276. data/lib/wallee-ruby-sdk/models/payment_link.rb +59 -27
  277. data/lib/wallee-ruby-sdk/models/payment_link_active.rb +37 -29
  278. data/lib/wallee-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
  279. data/lib/wallee-ruby-sdk/models/payment_link_create.rb +64 -28
  280. data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +8 -16
  281. data/lib/wallee-ruby-sdk/models/payment_link_update.rb +37 -29
  282. data/lib/wallee-ruby-sdk/models/payment_method.rb +8 -15
  283. data/lib/wallee-ruby-sdk/models/payment_method_brand.rb +7 -14
  284. data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +22 -14
  285. data/lib/wallee-ruby-sdk/models/payment_primary_risk_taker.rb +9 -17
  286. data/lib/wallee-ruby-sdk/models/payment_processor.rb +10 -17
  287. data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +20 -12
  288. data/lib/wallee-ruby-sdk/models/{email_template.rb → payment_terminal.rb} +57 -75
  289. data/lib/wallee-ruby-sdk/models/{space_address_setter.rb → payment_terminal_address.rb} +105 -27
  290. data/lib/wallee-ruby-sdk/models/{email_sender.rb → payment_terminal_configuration.rb} +34 -46
  291. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_state.rb +37 -0
  292. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +323 -0
  293. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +38 -0
  294. data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +276 -0
  295. data/lib/wallee-ruby-sdk/models/payment_terminal_location_state.rb +37 -0
  296. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version.rb +281 -0
  297. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +38 -0
  298. data/lib/wallee-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
  299. data/lib/wallee-ruby-sdk/models/payment_terminal_state.rb +38 -0
  300. data/lib/wallee-ruby-sdk/models/payment_terminal_type.rb +215 -0
  301. data/lib/wallee-ruby-sdk/models/permission.rb +30 -17
  302. data/lib/wallee-ruby-sdk/models/persistable_currency_amount.rb +5 -12
  303. data/lib/wallee-ruby-sdk/models/persistable_currency_amount_update.rb +5 -12
  304. data/lib/wallee-ruby-sdk/models/product_fee_type.rb +9 -17
  305. data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +5 -12
  306. data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +7 -14
  307. data/lib/wallee-ruby-sdk/models/product_metered_tier_fee.rb +5 -12
  308. data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +7 -14
  309. data/lib/wallee-ruby-sdk/models/product_metered_tier_pricing.rb +8 -16
  310. data/lib/wallee-ruby-sdk/models/product_period_fee.rb +16 -13
  311. data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +18 -15
  312. data/lib/wallee-ruby-sdk/models/product_setup_fee.rb +5 -12
  313. data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +7 -14
  314. data/lib/wallee-ruby-sdk/models/recurring_indicator.rb +37 -0
  315. data/lib/wallee-ruby-sdk/models/refund.rb +120 -13
  316. data/lib/wallee-ruby-sdk/models/refund_bank_transaction.rb +281 -0
  317. data/lib/wallee-ruby-sdk/models/refund_comment.rb +296 -0
  318. data/lib/wallee-ruby-sdk/models/refund_comment_active.rb +236 -0
  319. data/lib/wallee-ruby-sdk/models/refund_comment_create.rb +221 -0
  320. data/lib/wallee-ruby-sdk/models/refund_create.rb +67 -21
  321. data/lib/wallee-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
  322. data/lib/wallee-ruby-sdk/models/refund_state.rb +12 -19
  323. data/lib/wallee-ruby-sdk/models/refund_type.rb +10 -18
  324. data/lib/wallee-ruby-sdk/models/rendered_document.rb +5 -12
  325. data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +223 -0
  326. data/lib/wallee-ruby-sdk/models/resource_path.rb +29 -12
  327. data/lib/wallee-ruby-sdk/models/resource_state.rb +9 -17
  328. data/lib/wallee-ruby-sdk/models/rest_address_format.rb +5 -12
  329. data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +16 -24
  330. data/lib/wallee-ruby-sdk/models/rest_country.rb +5 -12
  331. data/lib/wallee-ruby-sdk/models/rest_country_state.rb +5 -12
  332. data/lib/wallee-ruby-sdk/models/rest_currency.rb +5 -12
  333. data/lib/wallee-ruby-sdk/models/rest_language.rb +5 -12
  334. data/lib/wallee-ruby-sdk/models/role.rb +16 -13
  335. data/lib/wallee-ruby-sdk/models/sales_channel.rb +245 -0
  336. data/lib/wallee-ruby-sdk/models/scope.rb +61 -13
  337. data/lib/wallee-ruby-sdk/models/server_error.rb +5 -12
  338. data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
  339. data/lib/wallee-ruby-sdk/models/shopify_integration.rb +470 -0
  340. data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
  341. data/lib/wallee-ruby-sdk/models/shopify_integration_subscription_app_version.rb +36 -0
  342. data/lib/wallee-ruby-sdk/models/shopify_recurring_order.rb +351 -0
  343. data/lib/wallee-ruby-sdk/models/shopify_recurring_order_state.rb +39 -0
  344. data/lib/wallee-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
  345. data/lib/wallee-ruby-sdk/models/{email_template_type.rb → shopify_subscriber.rb} +70 -77
  346. data/lib/wallee-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
  347. data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
  348. data/lib/wallee-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
  349. data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +375 -0
  350. data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +546 -0
  351. data/lib/wallee-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
  352. data/lib/wallee-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
  353. data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +363 -0
  354. data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +261 -0
  355. data/lib/wallee-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
  356. data/lib/wallee-ruby-sdk/models/{entity_reference.rb → shopify_subscription_model_tax_line.rb} +27 -14
  357. data/lib/wallee-ruby-sdk/models/shopify_subscription_product.rb +471 -0
  358. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +366 -0
  359. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
  360. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
  361. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_update.rb +351 -0
  362. data/lib/wallee-ruby-sdk/models/shopify_subscription_state.rb +39 -0
  363. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension.rb +311 -0
  364. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_create.rb +226 -0
  365. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_initiator.rb +35 -0
  366. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_state.rb +35 -0
  367. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_type.rb +35 -0
  368. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
  369. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +233 -0
  370. data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +453 -0
  371. data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item.rb +233 -0
  372. data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +35 -0
  373. data/lib/wallee-ruby-sdk/models/shopify_subscription_version_state.rb +36 -0
  374. data/lib/wallee-ruby-sdk/models/shopify_subscription_weekday.rb +40 -0
  375. data/lib/wallee-ruby-sdk/models/shopify_tax_line.rb +231 -0
  376. data/lib/wallee-ruby-sdk/models/shopify_transaction.rb +301 -0
  377. data/lib/wallee-ruby-sdk/models/shopify_transaction_state.rb +38 -0
  378. data/lib/wallee-ruby-sdk/models/space.rb +91 -14
  379. data/lib/wallee-ruby-sdk/models/space_address.rb +120 -22
  380. data/lib/wallee-ruby-sdk/models/space_address_create.rb +120 -22
  381. data/lib/wallee-ruby-sdk/models/space_create.rb +52 -15
  382. data/lib/wallee-ruby-sdk/models/space_reference.rb +5 -12
  383. data/lib/wallee-ruby-sdk/models/space_reference_state.rb +11 -19
  384. data/lib/wallee-ruby-sdk/models/space_update.rb +53 -16
  385. data/lib/wallee-ruby-sdk/models/space_view.rb +29 -12
  386. data/lib/wallee-ruby-sdk/models/static_value.rb +7 -14
  387. data/lib/wallee-ruby-sdk/models/subscriber.rb +51 -13
  388. data/lib/wallee-ruby-sdk/models/subscriber_active.rb +53 -15
  389. data/lib/wallee-ruby-sdk/models/subscriber_create.rb +52 -14
  390. data/lib/wallee-ruby-sdk/models/subscriber_update.rb +53 -15
  391. data/lib/wallee-ruby-sdk/models/subscription.rb +76 -13
  392. data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +78 -13
  393. data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +92 -14
  394. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +78 -13
  395. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +78 -13
  396. data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +32 -15
  397. data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +32 -15
  398. data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +25 -15
  399. data/lib/wallee-ruby-sdk/models/subscription_charge.rb +79 -13
  400. data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +71 -15
  401. data/lib/wallee-ruby-sdk/models/subscription_charge_processing_type.rb +8 -16
  402. data/lib/wallee-ruby-sdk/models/subscription_charge_state.rb +11 -19
  403. data/lib/wallee-ruby-sdk/models/subscription_charge_type.rb +8 -16
  404. data/lib/wallee-ruby-sdk/models/subscription_component_configuration.rb +201 -0
  405. data/lib/wallee-ruby-sdk/models/subscription_component_reference_configuration.rb +201 -0
  406. data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +22 -17
  407. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +40 -13
  408. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +38 -17
  409. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_state.rb +9 -17
  410. data/lib/wallee-ruby-sdk/models/subscription_metric.rb +5 -12
  411. data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +7 -14
  412. data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +7 -14
  413. data/lib/wallee-ruby-sdk/models/subscription_metric_type.rb +7 -14
  414. data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +7 -14
  415. data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report.rb +20 -12
  416. data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +24 -16
  417. data/lib/wallee-ruby-sdk/models/subscription_pending.rb +48 -25
  418. data/lib/wallee-ruby-sdk/models/subscription_period_bill.rb +5 -12
  419. data/lib/wallee-ruby-sdk/models/subscription_period_bill_state.rb +8 -16
  420. data/lib/wallee-ruby-sdk/models/subscription_product.rb +35 -12
  421. data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +22 -14
  422. data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +37 -14
  423. data/lib/wallee-ruby-sdk/models/subscription_product_component_group.rb +5 -12
  424. data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +7 -14
  425. data/lib/wallee-ruby-sdk/models/subscription_product_component_reference.rb +20 -12
  426. data/lib/wallee-ruby-sdk/models/subscription_product_component_reference_state.rb +10 -18
  427. data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +39 -16
  428. data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +40 -13
  429. data/lib/wallee-ruby-sdk/models/subscription_product_retirement.rb +5 -12
  430. data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +6 -13
  431. data/lib/wallee-ruby-sdk/models/subscription_product_state.rb +11 -19
  432. data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +31 -13
  433. data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +19 -16
  434. data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement.rb +5 -12
  435. data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +6 -13
  436. data/lib/wallee-ruby-sdk/models/subscription_product_version_state.rb +11 -19
  437. data/lib/wallee-ruby-sdk/models/subscription_state.rb +14 -21
  438. data/lib/wallee-ruby-sdk/models/subscription_suspension.rb +20 -12
  439. data/lib/wallee-ruby-sdk/models/subscription_suspension_action.rb +8 -16
  440. data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +23 -15
  441. data/lib/wallee-ruby-sdk/models/subscription_suspension_reason.rb +9 -17
  442. data/lib/wallee-ruby-sdk/models/subscription_suspension_running.rb +20 -12
  443. data/lib/wallee-ruby-sdk/models/subscription_suspension_state.rb +8 -16
  444. data/lib/wallee-ruby-sdk/models/subscription_update.rb +33 -15
  445. data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
  446. data/lib/wallee-ruby-sdk/models/subscription_version.rb +18 -13
  447. data/lib/wallee-ruby-sdk/models/subscription_version_state.rb +12 -20
  448. data/lib/wallee-ruby-sdk/models/tax.rb +29 -12
  449. data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
  450. data/lib/wallee-ruby-sdk/models/tax_class.rb +20 -12
  451. data/lib/wallee-ruby-sdk/models/tax_create.rb +35 -14
  452. data/lib/wallee-ruby-sdk/models/tenant_database.rb +20 -12
  453. data/lib/wallee-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
  454. data/lib/wallee-ruby-sdk/models/terminal_receipt_format.rb +35 -0
  455. data/lib/wallee-ruby-sdk/models/token.rb +59 -12
  456. data/lib/wallee-ruby-sdk/models/token_create.rb +64 -13
  457. data/lib/wallee-ruby-sdk/models/token_update.rb +37 -14
  458. data/lib/wallee-ruby-sdk/models/token_version.rb +78 -13
  459. data/lib/wallee-ruby-sdk/models/token_version_state.rb +9 -17
  460. data/lib/wallee-ruby-sdk/models/token_version_type.rb +7 -14
  461. data/lib/wallee-ruby-sdk/models/{tokenizationn_mode.rb → tokenization_mode.rb} +11 -18
  462. data/lib/wallee-ruby-sdk/models/{unencrypted_card_data.rb → tokenized_card_data.rb} +28 -45
  463. data/lib/wallee-ruby-sdk/models/tokenized_card_data_create.rb +348 -0
  464. data/lib/wallee-ruby-sdk/models/transaction.rb +282 -17
  465. data/lib/wallee-ruby-sdk/models/transaction_aware_entity.rb +5 -12
  466. data/lib/wallee-ruby-sdk/models/transaction_comment.rb +296 -0
  467. data/lib/wallee-ruby-sdk/models/transaction_comment_active.rb +236 -0
  468. data/lib/wallee-ruby-sdk/models/transaction_comment_create.rb +221 -0
  469. data/lib/wallee-ruby-sdk/models/transaction_completion.rb +151 -13
  470. data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
  471. data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +9 -17
  472. data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +291 -0
  473. data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +11 -18
  474. data/lib/wallee-ruby-sdk/models/transaction_create.rb +162 -17
  475. data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +9 -16
  476. data/lib/wallee-ruby-sdk/models/transaction_group.rb +20 -12
  477. data/lib/wallee-ruby-sdk/models/transaction_group_state.rb +9 -17
  478. data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +76 -14
  479. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment.rb +296 -0
  480. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_active.rb +236 -0
  481. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_create.rb +221 -0
  482. data/lib/wallee-ruby-sdk/models/transaction_invoice_replacement.rb +62 -16
  483. data/lib/wallee-ruby-sdk/models/transaction_invoice_state.rb +13 -21
  484. data/lib/wallee-ruby-sdk/models/transaction_line_item_update_request.rb +6 -13
  485. data/lib/wallee-ruby-sdk/models/transaction_line_item_version.rb +5 -12
  486. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +129 -18
  487. data/lib/wallee-ruby-sdk/models/transaction_state.rb +16 -24
  488. data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +11 -17
  489. data/lib/wallee-ruby-sdk/models/transaction_void.rb +5 -12
  490. data/lib/wallee-ruby-sdk/models/transaction_void_mode.rb +8 -16
  491. data/lib/wallee-ruby-sdk/models/transaction_void_state.rb +10 -18
  492. data/lib/wallee-ruby-sdk/models/{email_sender_type.rb → two_factor_authentication_type.rb} +19 -16
  493. data/lib/wallee-ruby-sdk/models/user.rb +5 -12
  494. data/lib/wallee-ruby-sdk/models/user_account_role.rb +5 -12
  495. data/lib/wallee-ruby-sdk/models/user_space_role.rb +5 -12
  496. data/lib/wallee-ruby-sdk/models/user_type.rb +11 -19
  497. data/lib/wallee-ruby-sdk/models/web_app_confirmation_request.rb +206 -0
  498. data/lib/wallee-ruby-sdk/models/web_app_confirmation_response.rb +231 -0
  499. data/lib/wallee-ruby-sdk/models/webhook_identity.rb +20 -12
  500. data/lib/wallee-ruby-sdk/models/webhook_listener.rb +20 -12
  501. data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +44 -41
  502. data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +6 -13
  503. data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +45 -15
  504. data/lib/wallee-ruby-sdk/models/webhook_url.rb +55 -13
  505. data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +44 -12
  506. data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +46 -14
  507. data/lib/wallee-ruby-sdk/version.rb +1 -5
  508. data/test/condition_type_service_test.rb +22 -0
  509. data/test/{transactioncreate.rb → transaction_create_service_test.rb} +2 -2
  510. data/test/transaction_payment_page_service_test.rb +91 -0
  511. data/wallee-ruby-sdk.gemspec +5 -8
  512. metadata +270 -98
  513. data/lib/wallee-ruby-sdk/services/email_sender_service_api.rb +0 -219
  514. data/lib/wallee-ruby-sdk/services/email_sender_type_service_api.rb +0 -143
  515. data/lib/wallee-ruby-sdk/services/email_template_type_service_api.rb +0 -143
@@ -1,10 +1,6 @@
1
1
  =begin
2
- Wallee API: 1.0.0
3
-
4
2
  The wallee API allows an easy interaction with the wallee web service.
5
3
 
6
-
7
-
8
4
  Licensed under the Apache License, Version 2.0 (the "License");
9
5
  you may not use this file except in compliance with the License.
10
6
  You may obtain a copy of the License at
@@ -35,8 +31,8 @@ module Wallee
35
31
  # @param id The id of the transaction which should be completed.
36
32
  # @param [Hash] opts the optional parameters
37
33
  # @return [TransactionCompletion]
38
- def transaction_completion_service_complete_offline(space_id, id, opts = {})
39
- data, _status_code, _headers = transaction_completion_service_complete_offline_with_http_info(space_id, id, opts)
34
+ def complete_offline(space_id, id, opts = {})
35
+ data, _status_code, _headers = complete_offline_with_http_info(space_id, id, opts)
40
36
  return data
41
37
  end
42
38
 
@@ -46,14 +42,14 @@ module Wallee
46
42
  # @param id The id of the transaction which should be completed.
47
43
  # @param [Hash] opts the optional parameters
48
44
  # @return [Array<(TransactionCompletion, Fixnum, Hash)>] TransactionCompletion data, response status code and response headers
49
- def transaction_completion_service_complete_offline_with_http_info(space_id, id, opts = {})
45
+ def complete_offline_with_http_info(space_id, id, opts = {})
50
46
  if @api_client.config.debugging
51
- @api_client.config.logger.debug "Calling API: TransactionCompletionService.transaction_completion_service_complete_offline ..."
47
+ @api_client.config.logger.debug "Calling API: TransactionCompletionService.complete_offline ..."
52
48
  end
53
49
  # verify the required parameter 'space_id' is set
54
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.transaction_completion_service_complete_offline" if space_id.nil?
50
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.complete_offline" if space_id.nil?
55
51
  # verify the required parameter 'id' is set
56
- fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCompletionService.transaction_completion_service_complete_offline" if id.nil?
52
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCompletionService.complete_offline" if id.nil?
57
53
  # resource path
58
54
  local_var_path = "/transaction-completion/completeOffline".sub('{format}','json')
59
55
 
@@ -87,7 +83,7 @@ module Wallee
87
83
  :auth_names => auth_names,
88
84
  :return_type => 'TransactionCompletion')
89
85
  if @api_client.config.debugging
90
- @api_client.config.logger.debug "API called: TransactionCompletionService#transaction_completion_service_complete_offline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ @api_client.config.logger.debug "API called: TransactionCompletionService#complete_offline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
87
  end
92
88
  return data, status_code, headers
93
89
  end
@@ -98,8 +94,8 @@ module Wallee
98
94
  # @param id The id of the transaction which should be completed.
99
95
  # @param [Hash] opts the optional parameters
100
96
  # @return [TransactionCompletion]
101
- def transaction_completion_service_complete_online(space_id, id, opts = {})
102
- data, _status_code, _headers = transaction_completion_service_complete_online_with_http_info(space_id, id, opts)
97
+ def complete_online(space_id, id, opts = {})
98
+ data, _status_code, _headers = complete_online_with_http_info(space_id, id, opts)
103
99
  return data
104
100
  end
105
101
 
@@ -109,14 +105,14 @@ module Wallee
109
105
  # @param id The id of the transaction which should be completed.
110
106
  # @param [Hash] opts the optional parameters
111
107
  # @return [Array<(TransactionCompletion, Fixnum, Hash)>] TransactionCompletion data, response status code and response headers
112
- def transaction_completion_service_complete_online_with_http_info(space_id, id, opts = {})
108
+ def complete_online_with_http_info(space_id, id, opts = {})
113
109
  if @api_client.config.debugging
114
- @api_client.config.logger.debug "Calling API: TransactionCompletionService.transaction_completion_service_complete_online ..."
110
+ @api_client.config.logger.debug "Calling API: TransactionCompletionService.complete_online ..."
115
111
  end
116
112
  # verify the required parameter 'space_id' is set
117
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.transaction_completion_service_complete_online" if space_id.nil?
113
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.complete_online" if space_id.nil?
118
114
  # verify the required parameter 'id' is set
119
- fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCompletionService.transaction_completion_service_complete_online" if id.nil?
115
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCompletionService.complete_online" if id.nil?
120
116
  # resource path
121
117
  local_var_path = "/transaction-completion/completeOnline".sub('{format}','json')
122
118
 
@@ -150,7 +146,131 @@ module Wallee
150
146
  :auth_names => auth_names,
151
147
  :return_type => 'TransactionCompletion')
152
148
  if @api_client.config.debugging
153
- @api_client.config.logger.debug "API called: TransactionCompletionService#transaction_completion_service_complete_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
+ @api_client.config.logger.debug "API called: TransactionCompletionService#complete_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
+ end
151
+ return data, status_code, headers
152
+ end
153
+
154
+ # completePartiallyOffline
155
+ # This operation can be used to partially complete the transaction offline. The completion is not forwarded to the processor. This implies the processor does not do anything. This method is only here to fix manually the transaction state.
156
+ # @param space_id
157
+ # @param completion
158
+ # @param [Hash] opts the optional parameters
159
+ # @return [TransactionCompletion]
160
+ def complete_partially_offline(space_id, completion, opts = {})
161
+ data, _status_code, _headers = complete_partially_offline_with_http_info(space_id, completion, opts)
162
+ return data
163
+ end
164
+
165
+ # completePartiallyOffline
166
+ # This operation can be used to partially complete the transaction offline. The completion is not forwarded to the processor. This implies the processor does not do anything. This method is only here to fix manually the transaction state.
167
+ # @param space_id
168
+ # @param completion
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [Array<(TransactionCompletion, Fixnum, Hash)>] TransactionCompletion data, response status code and response headers
171
+ def complete_partially_offline_with_http_info(space_id, completion, opts = {})
172
+ if @api_client.config.debugging
173
+ @api_client.config.logger.debug "Calling API: TransactionCompletionService.complete_partially_offline ..."
174
+ end
175
+ # verify the required parameter 'space_id' is set
176
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.complete_partially_offline" if space_id.nil?
177
+ # verify the required parameter 'completion' is set
178
+ fail ArgumentError, "Missing the required parameter 'completion' when calling TransactionCompletionService.complete_partially_offline" if completion.nil?
179
+ # resource path
180
+ local_var_path = "/transaction-completion/completePartiallyOffline".sub('{format}','json')
181
+
182
+ # query parameters
183
+ query_params = {}
184
+ query_params[:'spaceId'] = space_id
185
+
186
+ # header parameters
187
+ header_params = {}
188
+
189
+ # HTTP header 'Accept' (if needed)
190
+ local_header_accept = ['application/json;charset=utf-8']
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 = ['application/json;charset=utf-8']
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 = @api_client.object_to_http_body(completion)
202
+ auth_names = []
203
+ data, status_code, headers = @api_client.call_api(:POST, 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 => 'TransactionCompletion')
210
+ if @api_client.config.debugging
211
+ @api_client.config.logger.debug "API called: TransactionCompletionService#complete_partially_offline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
212
+ end
213
+ return data, status_code, headers
214
+ end
215
+
216
+ # completePartiallyOnline
217
+ # This operation can be used to partially complete the transaction online. The completion is forwarded to the processor. This implies that the processor may take some actions based on the completion.
218
+ # @param space_id
219
+ # @param completion
220
+ # @param [Hash] opts the optional parameters
221
+ # @return [TransactionCompletion]
222
+ def complete_partially_online(space_id, completion, opts = {})
223
+ data, _status_code, _headers = complete_partially_online_with_http_info(space_id, completion, opts)
224
+ return data
225
+ end
226
+
227
+ # completePartiallyOnline
228
+ # This operation can be used to partially complete the transaction online. The completion is forwarded to the processor. This implies that the processor may take some actions based on the completion.
229
+ # @param space_id
230
+ # @param completion
231
+ # @param [Hash] opts the optional parameters
232
+ # @return [Array<(TransactionCompletion, Fixnum, Hash)>] TransactionCompletion data, response status code and response headers
233
+ def complete_partially_online_with_http_info(space_id, completion, opts = {})
234
+ if @api_client.config.debugging
235
+ @api_client.config.logger.debug "Calling API: TransactionCompletionService.complete_partially_online ..."
236
+ end
237
+ # verify the required parameter 'space_id' is set
238
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.complete_partially_online" if space_id.nil?
239
+ # verify the required parameter 'completion' is set
240
+ fail ArgumentError, "Missing the required parameter 'completion' when calling TransactionCompletionService.complete_partially_online" if completion.nil?
241
+ # resource path
242
+ local_var_path = "/transaction-completion/completePartiallyOnline".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 = ['application/json;charset=utf-8']
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(completion)
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 => 'TransactionCompletion')
272
+ if @api_client.config.debugging
273
+ @api_client.config.logger.debug "API called: TransactionCompletionService#complete_partially_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
154
274
  end
155
275
  return data, status_code, headers
156
276
  end
@@ -161,8 +281,8 @@ module Wallee
161
281
  # @param [Hash] opts the optional parameters
162
282
  # @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
163
283
  # @return [Integer]
164
- def transaction_completion_service_count(space_id, opts = {})
165
- data, _status_code, _headers = transaction_completion_service_count_with_http_info(space_id, opts)
284
+ def count(space_id, opts = {})
285
+ data, _status_code, _headers = count_with_http_info(space_id, opts)
166
286
  return data
167
287
  end
168
288
 
@@ -172,12 +292,12 @@ module Wallee
172
292
  # @param [Hash] opts the optional parameters
173
293
  # @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
174
294
  # @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
175
- def transaction_completion_service_count_with_http_info(space_id, opts = {})
295
+ def count_with_http_info(space_id, opts = {})
176
296
  if @api_client.config.debugging
177
- @api_client.config.logger.debug "Calling API: TransactionCompletionService.transaction_completion_service_count ..."
297
+ @api_client.config.logger.debug "Calling API: TransactionCompletionService.count ..."
178
298
  end
179
299
  # verify the required parameter 'space_id' is set
180
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.transaction_completion_service_count" if space_id.nil?
300
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.count" if space_id.nil?
181
301
  # resource path
182
302
  local_var_path = "/transaction-completion/count".sub('{format}','json')
183
303
 
@@ -210,7 +330,7 @@ module Wallee
210
330
  :auth_names => auth_names,
211
331
  :return_type => 'Integer')
212
332
  if @api_client.config.debugging
213
- @api_client.config.logger.debug "API called: TransactionCompletionService#transaction_completion_service_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
333
+ @api_client.config.logger.debug "API called: TransactionCompletionService#count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
214
334
  end
215
335
  return data, status_code, headers
216
336
  end
@@ -221,8 +341,8 @@ module Wallee
221
341
  # @param id The id of the transaction completions which should be returned.
222
342
  # @param [Hash] opts the optional parameters
223
343
  # @return [TransactionCompletion]
224
- def transaction_completion_service_read(space_id, id, opts = {})
225
- data, _status_code, _headers = transaction_completion_service_read_with_http_info(space_id, id, opts)
344
+ def read(space_id, id, opts = {})
345
+ data, _status_code, _headers = read_with_http_info(space_id, id, opts)
226
346
  return data
227
347
  end
228
348
 
@@ -232,14 +352,14 @@ module Wallee
232
352
  # @param id The id of the transaction completions which should be returned.
233
353
  # @param [Hash] opts the optional parameters
234
354
  # @return [Array<(TransactionCompletion, Fixnum, Hash)>] TransactionCompletion data, response status code and response headers
235
- def transaction_completion_service_read_with_http_info(space_id, id, opts = {})
355
+ def read_with_http_info(space_id, id, opts = {})
236
356
  if @api_client.config.debugging
237
- @api_client.config.logger.debug "Calling API: TransactionCompletionService.transaction_completion_service_read ..."
357
+ @api_client.config.logger.debug "Calling API: TransactionCompletionService.read ..."
238
358
  end
239
359
  # verify the required parameter 'space_id' is set
240
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.transaction_completion_service_read" if space_id.nil?
360
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.read" if space_id.nil?
241
361
  # verify the required parameter 'id' is set
242
- fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCompletionService.transaction_completion_service_read" if id.nil?
362
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCompletionService.read" if id.nil?
243
363
  # resource path
244
364
  local_var_path = "/transaction-completion/read".sub('{format}','json')
245
365
 
@@ -273,7 +393,7 @@ module Wallee
273
393
  :auth_names => auth_names,
274
394
  :return_type => 'TransactionCompletion')
275
395
  if @api_client.config.debugging
276
- @api_client.config.logger.debug "API called: TransactionCompletionService#transaction_completion_service_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
396
+ @api_client.config.logger.debug "API called: TransactionCompletionService#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
277
397
  end
278
398
  return data, status_code, headers
279
399
  end
@@ -284,8 +404,8 @@ module Wallee
284
404
  # @param query The query restricts the transaction completions which are returned by the search.
285
405
  # @param [Hash] opts the optional parameters
286
406
  # @return [Array<TransactionCompletion>]
287
- def transaction_completion_service_search(space_id, query, opts = {})
288
- data, _status_code, _headers = transaction_completion_service_search_with_http_info(space_id, query, opts)
407
+ def search(space_id, query, opts = {})
408
+ data, _status_code, _headers = search_with_http_info(space_id, query, opts)
289
409
  return data
290
410
  end
291
411
 
@@ -295,14 +415,14 @@ module Wallee
295
415
  # @param query The query restricts the transaction completions which are returned by the search.
296
416
  # @param [Hash] opts the optional parameters
297
417
  # @return [Array<(Array<TransactionCompletion>, Fixnum, Hash)>] Array<TransactionCompletion> data, response status code and response headers
298
- def transaction_completion_service_search_with_http_info(space_id, query, opts = {})
418
+ def search_with_http_info(space_id, query, opts = {})
299
419
  if @api_client.config.debugging
300
- @api_client.config.logger.debug "Calling API: TransactionCompletionService.transaction_completion_service_search ..."
420
+ @api_client.config.logger.debug "Calling API: TransactionCompletionService.search ..."
301
421
  end
302
422
  # verify the required parameter 'space_id' is set
303
- fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.transaction_completion_service_search" if space_id.nil?
423
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.search" if space_id.nil?
304
424
  # verify the required parameter 'query' is set
305
- fail ArgumentError, "Missing the required parameter 'query' when calling TransactionCompletionService.transaction_completion_service_search" if query.nil?
425
+ fail ArgumentError, "Missing the required parameter 'query' when calling TransactionCompletionService.search" if query.nil?
306
426
  # resource path
307
427
  local_var_path = "/transaction-completion/search".sub('{format}','json')
308
428
 
@@ -335,7 +455,7 @@ module Wallee
335
455
  :auth_names => auth_names,
336
456
  :return_type => 'Array<TransactionCompletion>')
337
457
  if @api_client.config.debugging
338
- @api_client.config.logger.debug "API called: TransactionCompletionService#transaction_completion_service_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
458
+ @api_client.config.logger.debug "API called: TransactionCompletionService#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
339
459
  end
340
460
  return data, status_code, headers
341
461
  end
@@ -0,0 +1,91 @@
1
+ =begin
2
+ The wallee API allows an easy interaction with the wallee 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 Wallee
21
+ class TransactionIframeService
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 iFrame 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 iFrame 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: TransactionIframeService.javascript_url ..."
48
+ end
49
+ # verify the required parameter 'space_id' is set
50
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionIframeService.javascript_url" if space_id.nil?
51
+ # verify the required parameter 'id' is set
52
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionIframeService.javascript_url" if id.nil?
53
+ # resource path
54
+ local_var_path = "/transaction-iframe/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: TransactionIframeService#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,464 @@
1
+ =begin
2
+ The wallee API allows an easy interaction with the wallee 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 Wallee
21
+ class TransactionInvoiceCommentService
22
+ attr_accessor :api_client
23
+
24
+ def initialize(api_client = ApiClient.default)
25
+ @api_client = api_client
26
+ end
27
+
28
+ # Find by invoice
29
+ # Returns all comments of the given transaction invoice.
30
+ # @param space_id
31
+ # @param invoice_id
32
+ # @param [Hash] opts the optional parameters
33
+ # @return [Array<TransactionInvoiceComment>]
34
+ def all(space_id, invoice_id, opts = {})
35
+ data, _status_code, _headers = all_with_http_info(space_id, invoice_id, opts)
36
+ return data
37
+ end
38
+
39
+ # Find by invoice
40
+ # Returns all comments of the given transaction invoice.
41
+ # @param space_id
42
+ # @param invoice_id
43
+ # @param [Hash] opts the optional parameters
44
+ # @return [Array<(Array<TransactionInvoiceComment>, Fixnum, Hash)>] Array<TransactionInvoiceComment> data, response status code and response headers
45
+ def all_with_http_info(space_id, invoice_id, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug "Calling API: TransactionInvoiceCommentService.all ..."
48
+ end
49
+ # verify the required parameter 'space_id' is set
50
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceCommentService.all" if space_id.nil?
51
+ # verify the required parameter 'invoice_id' is set
52
+ fail ArgumentError, "Missing the required parameter 'invoice_id' when calling TransactionInvoiceCommentService.all" if invoice_id.nil?
53
+ # resource path
54
+ local_var_path = "/transaction-invoice-comment/all".sub('{format}','json')
55
+
56
+ # query parameters
57
+ query_params = {}
58
+ query_params[:'spaceId'] = space_id
59
+ query_params[:'invoiceId'] = invoice_id
60
+
61
+ # header parameters
62
+ header_params = {}
63
+
64
+ # HTTP header 'Accept' (if needed)
65
+ local_header_accept = ['application/json;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 = ['application/json;charset=utf-8']
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(:POST, 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 => 'Array<TransactionInvoiceComment>')
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: TransactionInvoiceCommentService#all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+
91
+ # Create
92
+ # Creates the comment with the given properties.
93
+ # @param space_id
94
+ # @param entity
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [TransactionInvoiceComment]
97
+ def create(space_id, entity, opts = {})
98
+ data, _status_code, _headers = create_with_http_info(space_id, entity, opts)
99
+ return data
100
+ end
101
+
102
+ # Create
103
+ # Creates the comment with the given properties.
104
+ # @param space_id
105
+ # @param entity
106
+ # @param [Hash] opts the optional parameters
107
+ # @return [Array<(TransactionInvoiceComment, Fixnum, Hash)>] TransactionInvoiceComment data, response status code and response headers
108
+ def create_with_http_info(space_id, entity, opts = {})
109
+ if @api_client.config.debugging
110
+ @api_client.config.logger.debug "Calling API: TransactionInvoiceCommentService.create ..."
111
+ end
112
+ # verify the required parameter 'space_id' is set
113
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceCommentService.create" if space_id.nil?
114
+ # verify the required parameter 'entity' is set
115
+ fail ArgumentError, "Missing the required parameter 'entity' when calling TransactionInvoiceCommentService.create" if entity.nil?
116
+ # resource path
117
+ local_var_path = "/transaction-invoice-comment/create".sub('{format}','json')
118
+
119
+ # query parameters
120
+ query_params = {}
121
+ query_params[:'spaceId'] = space_id
122
+
123
+ # header parameters
124
+ header_params = {}
125
+
126
+ # HTTP header 'Accept' (if needed)
127
+ local_header_accept = ['application/json;charset=utf-8']
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 = ['application/json;charset=utf-8']
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 = @api_client.object_to_http_body(entity)
139
+ auth_names = []
140
+ data, status_code, headers = @api_client.call_api(:POST, 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 => 'TransactionInvoiceComment')
147
+ if @api_client.config.debugging
148
+ @api_client.config.logger.debug "API called: TransactionInvoiceCommentService#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
+ end
150
+ return data, status_code, headers
151
+ end
152
+
153
+ # Delete
154
+ # Deletes the comment with the given id.
155
+ # @param space_id
156
+ # @param id
157
+ # @param [Hash] opts the optional parameters
158
+ # @return [nil]
159
+ def delete(space_id, id, opts = {})
160
+ delete_with_http_info(space_id, id, opts)
161
+ return nil
162
+ end
163
+
164
+ # Delete
165
+ # Deletes the comment with the given id.
166
+ # @param space_id
167
+ # @param id
168
+ # @param [Hash] opts the optional parameters
169
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
170
+ def delete_with_http_info(space_id, id, opts = {})
171
+ if @api_client.config.debugging
172
+ @api_client.config.logger.debug "Calling API: TransactionInvoiceCommentService.delete ..."
173
+ end
174
+ # verify the required parameter 'space_id' is set
175
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceCommentService.delete" if space_id.nil?
176
+ # verify the required parameter 'id' is set
177
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionInvoiceCommentService.delete" if id.nil?
178
+ # resource path
179
+ local_var_path = "/transaction-invoice-comment/delete".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 = ['application/json;charset=utf-8']
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 = ['application/json;charset=utf-8']
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(:POST, 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
+ if @api_client.config.debugging
210
+ @api_client.config.logger.debug "API called: TransactionInvoiceCommentService#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
211
+ end
212
+ return data, status_code, headers
213
+ end
214
+
215
+ # Pin
216
+ # Pins the comment to the top.
217
+ # @param space_id
218
+ # @param id
219
+ # @param [Hash] opts the optional parameters
220
+ # @return [nil]
221
+ def pin(space_id, id, opts = {})
222
+ pin_with_http_info(space_id, id, opts)
223
+ return nil
224
+ end
225
+
226
+ # Pin
227
+ # Pins the comment to the top.
228
+ # @param space_id
229
+ # @param id
230
+ # @param [Hash] opts the optional parameters
231
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
232
+ def pin_with_http_info(space_id, id, opts = {})
233
+ if @api_client.config.debugging
234
+ @api_client.config.logger.debug "Calling API: TransactionInvoiceCommentService.pin ..."
235
+ end
236
+ # verify the required parameter 'space_id' is set
237
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceCommentService.pin" if space_id.nil?
238
+ # verify the required parameter 'id' is set
239
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionInvoiceCommentService.pin" if id.nil?
240
+ # resource path
241
+ local_var_path = "/transaction-invoice-comment/pin".sub('{format}','json')
242
+
243
+ # query parameters
244
+ query_params = {}
245
+ query_params[:'spaceId'] = space_id
246
+ query_params[:'id'] = id
247
+
248
+ # header parameters
249
+ header_params = {}
250
+
251
+ # HTTP header 'Accept' (if needed)
252
+ local_header_accept = ['application/json;charset=utf-8']
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 = ['*/*']
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 = nil
264
+ auth_names = []
265
+ data, status_code, headers = @api_client.call_api(:GET, 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
+ if @api_client.config.debugging
272
+ @api_client.config.logger.debug "API called: TransactionInvoiceCommentService#pin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
273
+ end
274
+ return data, status_code, headers
275
+ end
276
+
277
+ # Read
278
+ # Reads the comment with the given 'id' and returns it.
279
+ # @param space_id
280
+ # @param id
281
+ # @param [Hash] opts the optional parameters
282
+ # @return [TransactionInvoiceComment]
283
+ def read(space_id, id, opts = {})
284
+ data, _status_code, _headers = read_with_http_info(space_id, id, opts)
285
+ return data
286
+ end
287
+
288
+ # Read
289
+ # Reads the comment with the given &#39;id&#39; and returns it.
290
+ # @param space_id
291
+ # @param id
292
+ # @param [Hash] opts the optional parameters
293
+ # @return [Array<(TransactionInvoiceComment, Fixnum, Hash)>] TransactionInvoiceComment data, response status code and response headers
294
+ def read_with_http_info(space_id, id, opts = {})
295
+ if @api_client.config.debugging
296
+ @api_client.config.logger.debug "Calling API: TransactionInvoiceCommentService.read ..."
297
+ end
298
+ # verify the required parameter 'space_id' is set
299
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceCommentService.read" if space_id.nil?
300
+ # verify the required parameter 'id' is set
301
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionInvoiceCommentService.read" if id.nil?
302
+ # resource path
303
+ local_var_path = "/transaction-invoice-comment/read".sub('{format}','json')
304
+
305
+ # query parameters
306
+ query_params = {}
307
+ query_params[:'spaceId'] = space_id
308
+ query_params[:'id'] = id
309
+
310
+ # header parameters
311
+ header_params = {}
312
+
313
+ # HTTP header 'Accept' (if needed)
314
+ local_header_accept = ['application/json;charset=utf-8']
315
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
316
+
317
+ # HTTP header 'Content-Type'
318
+ local_header_content_type = ['*/*']
319
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
320
+
321
+ # form parameters
322
+ form_params = {}
323
+
324
+ # http body (model)
325
+ post_body = nil
326
+ auth_names = []
327
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
328
+ :header_params => header_params,
329
+ :query_params => query_params,
330
+ :form_params => form_params,
331
+ :body => post_body,
332
+ :auth_names => auth_names,
333
+ :return_type => 'TransactionInvoiceComment')
334
+ if @api_client.config.debugging
335
+ @api_client.config.logger.debug "API called: TransactionInvoiceCommentService#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
336
+ end
337
+ return data, status_code, headers
338
+ end
339
+
340
+ # Unpin
341
+ # Unpins the comment from the top.
342
+ # @param space_id
343
+ # @param id
344
+ # @param [Hash] opts the optional parameters
345
+ # @return [nil]
346
+ def unpin(space_id, id, opts = {})
347
+ unpin_with_http_info(space_id, id, opts)
348
+ return nil
349
+ end
350
+
351
+ # Unpin
352
+ # Unpins the comment from the top.
353
+ # @param space_id
354
+ # @param id
355
+ # @param [Hash] opts the optional parameters
356
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
357
+ def unpin_with_http_info(space_id, id, opts = {})
358
+ if @api_client.config.debugging
359
+ @api_client.config.logger.debug "Calling API: TransactionInvoiceCommentService.unpin ..."
360
+ end
361
+ # verify the required parameter 'space_id' is set
362
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceCommentService.unpin" if space_id.nil?
363
+ # verify the required parameter 'id' is set
364
+ fail ArgumentError, "Missing the required parameter 'id' when calling TransactionInvoiceCommentService.unpin" if id.nil?
365
+ # resource path
366
+ local_var_path = "/transaction-invoice-comment/unpin".sub('{format}','json')
367
+
368
+ # query parameters
369
+ query_params = {}
370
+ query_params[:'spaceId'] = space_id
371
+ query_params[:'id'] = id
372
+
373
+ # header parameters
374
+ header_params = {}
375
+
376
+ # HTTP header 'Accept' (if needed)
377
+ local_header_accept = ['application/json;charset=utf-8']
378
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
379
+
380
+ # HTTP header 'Content-Type'
381
+ local_header_content_type = ['*/*']
382
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
383
+
384
+ # form parameters
385
+ form_params = {}
386
+
387
+ # http body (model)
388
+ post_body = nil
389
+ auth_names = []
390
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
391
+ :header_params => header_params,
392
+ :query_params => query_params,
393
+ :form_params => form_params,
394
+ :body => post_body,
395
+ :auth_names => auth_names)
396
+ if @api_client.config.debugging
397
+ @api_client.config.logger.debug "API called: TransactionInvoiceCommentService#unpin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
398
+ end
399
+ return data, status_code, headers
400
+ end
401
+
402
+ # Update
403
+ # This updates the comment with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the comment.
404
+ # @param space_id
405
+ # @param entity
406
+ # @param [Hash] opts the optional parameters
407
+ # @return [TransactionInvoiceComment]
408
+ def update(space_id, entity, opts = {})
409
+ data, _status_code, _headers = update_with_http_info(space_id, entity, opts)
410
+ return data
411
+ end
412
+
413
+ # Update
414
+ # This updates the comment 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 comment.
415
+ # @param space_id
416
+ # @param entity
417
+ # @param [Hash] opts the optional parameters
418
+ # @return [Array<(TransactionInvoiceComment, Fixnum, Hash)>] TransactionInvoiceComment data, response status code and response headers
419
+ def update_with_http_info(space_id, entity, opts = {})
420
+ if @api_client.config.debugging
421
+ @api_client.config.logger.debug "Calling API: TransactionInvoiceCommentService.update ..."
422
+ end
423
+ # verify the required parameter 'space_id' is set
424
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceCommentService.update" if space_id.nil?
425
+ # verify the required parameter 'entity' is set
426
+ fail ArgumentError, "Missing the required parameter 'entity' when calling TransactionInvoiceCommentService.update" if entity.nil?
427
+ # resource path
428
+ local_var_path = "/transaction-invoice-comment/update".sub('{format}','json')
429
+
430
+ # query parameters
431
+ query_params = {}
432
+ query_params[:'spaceId'] = space_id
433
+
434
+ # header parameters
435
+ header_params = {}
436
+
437
+ # HTTP header 'Accept' (if needed)
438
+ local_header_accept = ['application/json;charset=utf-8']
439
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
440
+
441
+ # HTTP header 'Content-Type'
442
+ local_header_content_type = ['application/json;charset=utf-8']
443
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
444
+
445
+ # form parameters
446
+ form_params = {}
447
+
448
+ # http body (model)
449
+ post_body = @api_client.object_to_http_body(entity)
450
+ auth_names = []
451
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
452
+ :header_params => header_params,
453
+ :query_params => query_params,
454
+ :form_params => form_params,
455
+ :body => post_body,
456
+ :auth_names => auth_names,
457
+ :return_type => 'TransactionInvoiceComment')
458
+ if @api_client.config.debugging
459
+ @api_client.config.logger.debug "API called: TransactionInvoiceCommentService#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
460
+ end
461
+ return data, status_code, headers
462
+ end
463
+ end
464
+ end