wallee-ruby-sdk 1.0.3 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (394) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +101 -38
  4. data/lib/wallee-ruby-sdk.rb +153 -113
  5. data/lib/wallee-ruby-sdk/{services → api}/account_service_api.rb +1 -1
  6. data/lib/wallee-ruby-sdk/{services → api}/application_user_service_api.rb +1 -1
  7. data/lib/wallee-ruby-sdk/{services → api}/card_processing_service_api.rb +3 -3
  8. data/lib/wallee-ruby-sdk/{services → api}/charge_attempt_service_api.rb +1 -1
  9. data/lib/wallee-ruby-sdk/{services → api}/charge_flow_level_service_api.rb +1 -1
  10. data/lib/wallee-ruby-sdk/{services → api}/charge_flow_service_api.rb +1 -1
  11. data/lib/wallee-ruby-sdk/{services → api}/condition_type_service_api.rb +1 -1
  12. data/lib/wallee-ruby-sdk/{services → api}/country_service_api.rb +1 -1
  13. data/lib/wallee-ruby-sdk/{services → api}/country_state_service_api.rb +1 -1
  14. data/lib/wallee-ruby-sdk/{services → api}/currency_service_api.rb +1 -1
  15. data/lib/wallee-ruby-sdk/{services → api}/debt_collection_case_service_api.rb +1 -1
  16. data/lib/wallee-ruby-sdk/{services → api}/debt_collector_configuration_service_api.rb +1 -1
  17. data/lib/wallee-ruby-sdk/{services → api}/debt_collector_service_api.rb +1 -1
  18. data/lib/wallee-ruby-sdk/{services → api}/delivery_indication_service_api.rb +1 -1
  19. data/lib/wallee-ruby-sdk/{services → api}/document_template_service_api.rb +1 -1
  20. data/lib/wallee-ruby-sdk/{services → api}/document_template_type_service_api.rb +1 -1
  21. data/lib/wallee-ruby-sdk/{services → api}/human_user_service_api.rb +1 -1
  22. data/lib/wallee-ruby-sdk/{services → api}/installment_payment_service_api.rb +1 -1
  23. data/lib/wallee-ruby-sdk/{services → api}/installment_payment_slice_service_api.rb +1 -1
  24. data/lib/wallee-ruby-sdk/{services → api}/installment_plan_calculation_service_api.rb +1 -1
  25. data/lib/wallee-ruby-sdk/{services → api}/installment_plan_configuration_service_api.rb +1 -1
  26. data/lib/wallee-ruby-sdk/{services → api}/installment_plan_slice_configuration_service_api.rb +1 -1
  27. data/lib/wallee-ruby-sdk/{services → api}/label_description_group_service_api.rb +1 -1
  28. data/lib/wallee-ruby-sdk/{services → api}/label_description_service_api.rb +1 -1
  29. data/lib/wallee-ruby-sdk/{services → api}/language_service_api.rb +1 -1
  30. data/lib/wallee-ruby-sdk/{services → api}/legal_organization_form_service_api.rb +1 -1
  31. data/lib/wallee-ruby-sdk/{services → api}/manual_task_service_api.rb +1 -1
  32. data/lib/wallee-ruby-sdk/{services → api}/mertic_usage_service_api.rb +1 -1
  33. data/lib/wallee-ruby-sdk/{services → api}/payment_connector_configuration_service_api.rb +1 -1
  34. data/lib/wallee-ruby-sdk/{services → api}/payment_connector_service_api.rb +1 -1
  35. data/lib/wallee-ruby-sdk/{services → api}/payment_link_service_api.rb +1 -1
  36. data/lib/wallee-ruby-sdk/{services → api}/payment_method_configuration_service_api.rb +1 -1
  37. data/lib/wallee-ruby-sdk/{services → api}/payment_method_service_api.rb +1 -1
  38. data/lib/wallee-ruby-sdk/{services → api}/payment_processor_configuration_service_api.rb +1 -1
  39. data/lib/wallee-ruby-sdk/{services → api}/payment_processor_service_api.rb +1 -1
  40. data/lib/wallee-ruby-sdk/{services → api}/permission_service_api.rb +1 -1
  41. data/lib/wallee-ruby-sdk/api/refund_comment_service_api.rb +468 -0
  42. data/lib/wallee-ruby-sdk/{services → api}/refund_service_api.rb +70 -2
  43. data/lib/wallee-ruby-sdk/{services → api}/space_service_api.rb +1 -1
  44. data/lib/wallee-ruby-sdk/{services → api}/static_value_service_api.rb +1 -1
  45. data/lib/wallee-ruby-sdk/{services → api}/subscriber_service_api.rb +1 -1
  46. data/lib/wallee-ruby-sdk/{services → api}/subscription_affiliate_service_api.rb +1 -1
  47. data/lib/wallee-ruby-sdk/{services → api}/subscription_charge_service_api.rb +1 -1
  48. data/lib/wallee-ruby-sdk/{services → api}/subscription_ledger_entry_service_api.rb +1 -1
  49. data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_service_api.rb +1 -1
  50. data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_usage_service_api.rb +1 -1
  51. data/lib/wallee-ruby-sdk/{services → api}/subscription_period_bill_service_api.rb +1 -1
  52. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_group_service_api.rb +1 -1
  53. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_service_api.rb +1 -1
  54. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_fee_tier_service_api.rb +1 -1
  55. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_metered_fee_service_api.rb +1 -1
  56. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_period_fee_service_api.rb +1 -1
  57. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_retirement_service_api.rb +1 -1
  58. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_service_api.rb +1 -1
  59. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_setup_fee_service_api.rb +1 -1
  60. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_retirement_service_api.rb +1 -1
  61. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_service_api.rb +1 -1
  62. data/lib/wallee-ruby-sdk/{services → api}/subscription_service_api.rb +69 -2
  63. data/lib/wallee-ruby-sdk/{services → api}/subscription_suspension_service_api.rb +1 -1
  64. data/lib/wallee-ruby-sdk/{services → api}/subscription_version_service_api.rb +1 -1
  65. data/lib/wallee-ruby-sdk/{services → api}/token_service_api.rb +64 -1
  66. data/lib/wallee-ruby-sdk/{services → api}/token_version_service_api.rb +1 -1
  67. data/lib/wallee-ruby-sdk/api/transaction_comment_service_api.rb +468 -0
  68. data/lib/wallee-ruby-sdk/{services → api}/transaction_completion_service_api.rb +125 -1
  69. data/lib/wallee-ruby-sdk/api/transaction_iframe_service_api.rb +95 -0
  70. data/lib/wallee-ruby-sdk/api/transaction_invoice_comment_service_api.rb +468 -0
  71. data/lib/wallee-ruby-sdk/{services → api}/transaction_invoice_service_api.rb +132 -1
  72. data/lib/wallee-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +90 -0
  73. data/lib/wallee-ruby-sdk/api/transaction_payment_page_service_api.rb +95 -0
  74. data/lib/wallee-ruby-sdk/{services → api}/transaction_service_api.rb +16 -200
  75. data/lib/wallee-ruby-sdk/{services → api}/transaction_void_service_api.rb +1 -1
  76. data/lib/wallee-ruby-sdk/{services → api}/user_account_role_service_api.rb +1 -1
  77. data/lib/wallee-ruby-sdk/{services → api}/user_space_role_service_api.rb +1 -1
  78. data/lib/wallee-ruby-sdk/{services → api}/webhook_listener_service_api.rb +1 -1
  79. data/lib/wallee-ruby-sdk/{services → api}/webhook_url_service_api.rb +1 -1
  80. data/lib/wallee-ruby-sdk/api_client.rb +1 -1
  81. data/lib/wallee-ruby-sdk/api_error.rb +1 -1
  82. data/lib/wallee-ruby-sdk/configuration.rb +1 -1
  83. data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +5 -9
  84. data/lib/wallee-ruby-sdk/models/abstract_application_user_update.rb +16 -10
  85. data/lib/wallee-ruby-sdk/models/abstract_debt_collection_case_update.rb +5 -9
  86. data/lib/wallee-ruby-sdk/models/abstract_human_user_update.rb +27 -11
  87. data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +5 -9
  88. data/lib/wallee-ruby-sdk/models/{entity_reference.rb → abstract_refund_comment_active.rb} +16 -10
  89. data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +17 -11
  90. data/lib/wallee-ruby-sdk/models/abstract_subscriber_update.rb +6 -10
  91. data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +6 -10
  92. data/lib/wallee-ruby-sdk/models/abstract_subscription_metric_update.rb +5 -9
  93. data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +5 -9
  94. data/lib/wallee-ruby-sdk/models/abstract_token_update.rb +5 -9
  95. data/lib/wallee-ruby-sdk/models/abstract_transaction_comment_active.rb +194 -0
  96. data/lib/wallee-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +194 -0
  97. data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +8 -12
  98. data/lib/wallee-ruby-sdk/models/abstract_webhook_listener_update.rb +28 -10
  99. data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +5 -9
  100. data/lib/wallee-ruby-sdk/models/account.rb +16 -9
  101. data/lib/wallee-ruby-sdk/models/account_create.rb +22 -10
  102. data/lib/wallee-ruby-sdk/models/account_state.rb +13 -17
  103. data/lib/wallee-ruby-sdk/models/account_type.rb +10 -14
  104. data/lib/wallee-ruby-sdk/models/account_update.rb +7 -10
  105. data/lib/wallee-ruby-sdk/models/address.rb +5 -8
  106. data/lib/wallee-ruby-sdk/models/address_create.rb +5 -8
  107. data/lib/wallee-ruby-sdk/models/application_user.rb +17 -10
  108. data/lib/wallee-ruby-sdk/models/application_user_create.rb +17 -10
  109. data/lib/wallee-ruby-sdk/models/application_user_create_with_mac_key.rb +16 -9
  110. data/lib/wallee-ruby-sdk/models/application_user_update.rb +18 -11
  111. data/lib/wallee-ruby-sdk/models/charge.rb +16 -9
  112. data/lib/wallee-ruby-sdk/models/charge_attempt.rb +26 -9
  113. data/lib/wallee-ruby-sdk/models/charge_attempt_environment.rb +9 -13
  114. data/lib/wallee-ruby-sdk/models/charge_attempt_state.rb +10 -14
  115. data/lib/wallee-ruby-sdk/models/charge_flow.rb +5 -8
  116. data/lib/wallee-ruby-sdk/models/charge_flow_level.rb +5 -8
  117. data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration.rb +5 -8
  118. data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration_type.rb +7 -10
  119. data/lib/wallee-ruby-sdk/models/charge_flow_level_state.rb +10 -14
  120. data/lib/wallee-ruby-sdk/models/charge_state.rb +10 -14
  121. data/lib/wallee-ruby-sdk/models/charge_type.rb +11 -14
  122. data/lib/wallee-ruby-sdk/models/client_error.rb +5 -8
  123. data/lib/wallee-ruby-sdk/models/client_error_type.rb +10 -14
  124. data/lib/wallee-ruby-sdk/models/completion_line_item.rb +215 -0
  125. data/lib/wallee-ruby-sdk/models/completion_line_item_create.rb +230 -0
  126. data/lib/wallee-ruby-sdk/models/condition.rb +5 -8
  127. data/lib/wallee-ruby-sdk/models/condition_type.rb +7 -10
  128. data/lib/wallee-ruby-sdk/models/connector_invocation.rb +5 -8
  129. data/lib/wallee-ruby-sdk/models/connector_invocation_stage.rb +11 -15
  130. data/lib/wallee-ruby-sdk/models/creation_entity_state.rb +12 -16
  131. data/lib/wallee-ruby-sdk/models/criteria_operator.rb +19 -21
  132. data/lib/wallee-ruby-sdk/models/customers_presence.rb +10 -14
  133. data/lib/wallee-ruby-sdk/models/data_collection_type.rb +9 -13
  134. data/lib/wallee-ruby-sdk/models/database_translated_string.rb +5 -8
  135. data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +5 -8
  136. data/lib/wallee-ruby-sdk/models/database_translated_string_item.rb +5 -8
  137. data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +6 -9
  138. data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +5 -8
  139. data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +7 -10
  140. data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +5 -8
  141. data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +7 -10
  142. data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +14 -18
  143. data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +7 -10
  144. data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +9 -13
  145. data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +5 -8
  146. data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +7 -10
  147. data/lib/wallee-ruby-sdk/models/debt_collector.rb +7 -10
  148. data/lib/wallee-ruby-sdk/models/debt_collector_condition.rb +5 -8
  149. data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +7 -10
  150. data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +5 -8
  151. data/lib/wallee-ruby-sdk/models/delivery_indication.rb +16 -9
  152. data/lib/wallee-ruby-sdk/models/delivery_indication_decision_reason.rb +7 -10
  153. data/lib/wallee-ruby-sdk/models/delivery_indication_state.rb +11 -15
  154. data/lib/wallee-ruby-sdk/models/document_template.rb +26 -9
  155. data/lib/wallee-ruby-sdk/models/document_template_type.rb +18 -11
  156. data/lib/wallee-ruby-sdk/models/{attachment_resource.rb → document_template_type_group.rb} +24 -27
  157. data/lib/wallee-ruby-sdk/models/entity_export_request.rb +6 -9
  158. data/lib/wallee-ruby-sdk/models/entity_query.rb +5 -8
  159. data/lib/wallee-ruby-sdk/models/entity_query_filter.rb +6 -9
  160. data/lib/wallee-ruby-sdk/models/entity_query_filter_type.rb +10 -14
  161. data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +7 -10
  162. data/lib/wallee-ruby-sdk/models/entity_query_order_by_type.rb +9 -13
  163. data/lib/wallee-ruby-sdk/models/environment.rb +9 -13
  164. data/lib/wallee-ruby-sdk/models/failure_category.rb +12 -16
  165. data/lib/wallee-ruby-sdk/models/failure_reason.rb +7 -10
  166. data/lib/wallee-ruby-sdk/models/feature.rb +7 -10
  167. data/lib/wallee-ruby-sdk/models/gender.rb +9 -13
  168. data/lib/wallee-ruby-sdk/models/human_user.rb +47 -10
  169. data/lib/wallee-ruby-sdk/models/human_user_create.rb +26 -9
  170. data/lib/wallee-ruby-sdk/models/human_user_update.rb +28 -11
  171. data/lib/wallee-ruby-sdk/models/installment_calculated_plan.rb +5 -8
  172. data/lib/wallee-ruby-sdk/models/installment_calculated_slice.rb +5 -8
  173. data/lib/wallee-ruby-sdk/models/installment_payment.rb +5 -8
  174. data/lib/wallee-ruby-sdk/models/installment_payment_slice.rb +5 -8
  175. data/lib/wallee-ruby-sdk/models/installment_payment_slice_state.rb +14 -18
  176. data/lib/wallee-ruby-sdk/models/installment_payment_state.rb +15 -19
  177. data/lib/wallee-ruby-sdk/models/installment_plan_configuration.rb +5 -8
  178. data/lib/wallee-ruby-sdk/models/installment_plan_slice_configuration.rb +5 -8
  179. data/lib/wallee-ruby-sdk/models/label.rb +5 -8
  180. data/lib/wallee-ruby-sdk/models/label_descriptor.rb +7 -10
  181. data/lib/wallee-ruby-sdk/models/label_descriptor_category.rb +9 -13
  182. data/lib/wallee-ruby-sdk/models/label_descriptor_group.rb +7 -10
  183. data/lib/wallee-ruby-sdk/models/label_descriptor_type.rb +7 -10
  184. data/lib/wallee-ruby-sdk/models/legal_organization_form.rb +5 -8
  185. data/lib/wallee-ruby-sdk/models/line_item.rb +67 -10
  186. data/lib/wallee-ruby-sdk/models/line_item_attribute.rb +5 -8
  187. data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +7 -10
  188. data/lib/wallee-ruby-sdk/models/line_item_create.rb +22 -15
  189. data/lib/wallee-ruby-sdk/models/line_item_reduction.rb +5 -8
  190. data/lib/wallee-ruby-sdk/models/line_item_reduction_create.rb +8 -11
  191. data/lib/wallee-ruby-sdk/models/line_item_type.rb +11 -15
  192. data/lib/wallee-ruby-sdk/models/localized_string.rb +5 -8
  193. data/lib/wallee-ruby-sdk/models/manual_task.rb +5 -8
  194. data/lib/wallee-ruby-sdk/models/manual_task_action.rb +6 -9
  195. data/lib/wallee-ruby-sdk/models/manual_task_action_style.rb +10 -14
  196. data/lib/wallee-ruby-sdk/models/manual_task_state.rb +10 -14
  197. data/lib/wallee-ruby-sdk/models/manual_task_type.rb +7 -10
  198. data/lib/wallee-ruby-sdk/models/metric_usage.rb +7 -10
  199. data/lib/wallee-ruby-sdk/models/one_click_payment_mode.rb +10 -14
  200. data/lib/wallee-ruby-sdk/models/payment_connector.rb +8 -11
  201. data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +5 -8
  202. data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +5 -8
  203. data/lib/wallee-ruby-sdk/models/payment_contract.rb +5 -8
  204. data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +12 -16
  205. data/lib/wallee-ruby-sdk/models/payment_contract_type.rb +7 -10
  206. data/lib/wallee-ruby-sdk/models/payment_link.rb +5 -8
  207. data/lib/wallee-ruby-sdk/models/payment_link_active.rb +7 -10
  208. data/lib/wallee-ruby-sdk/models/payment_link_create.rb +6 -9
  209. data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +9 -13
  210. data/lib/wallee-ruby-sdk/models/payment_link_update.rb +7 -10
  211. data/lib/wallee-ruby-sdk/models/payment_method.rb +8 -11
  212. data/lib/wallee-ruby-sdk/models/payment_method_brand.rb +7 -10
  213. data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +7 -10
  214. data/lib/wallee-ruby-sdk/models/payment_primary_risk_taker.rb +10 -14
  215. data/lib/wallee-ruby-sdk/models/payment_processor.rb +10 -13
  216. data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +5 -8
  217. data/lib/wallee-ruby-sdk/models/{email_template.rb → payment_terminal.rb} +43 -72
  218. data/lib/wallee-ruby-sdk/models/{space_address_setter.rb → payment_terminal_address.rb} +28 -21
  219. data/lib/wallee-ruby-sdk/models/{email_sender.rb → payment_terminal_configuration.rb} +19 -42
  220. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_state.rb +41 -0
  221. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +317 -0
  222. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +42 -0
  223. data/lib/wallee-ruby-sdk/models/payment_terminal_device.rb +275 -0
  224. data/lib/wallee-ruby-sdk/models/payment_terminal_device_manufacturer.rb +255 -0
  225. data/lib/wallee-ruby-sdk/models/payment_terminal_device_model.rb +287 -0
  226. data/lib/wallee-ruby-sdk/models/payment_terminal_device_state.rb +42 -0
  227. data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +265 -0
  228. data/lib/wallee-ruby-sdk/models/payment_terminal_location_state.rb +41 -0
  229. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version.rb +285 -0
  230. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +42 -0
  231. data/lib/wallee-ruby-sdk/models/payment_terminal_reference.rb +265 -0
  232. data/lib/wallee-ruby-sdk/models/payment_terminal_state.rb +42 -0
  233. data/lib/wallee-ruby-sdk/models/{email_template_type.rb → payment_terminal_type.rb} +16 -73
  234. data/lib/wallee-ruby-sdk/models/permission.rb +20 -13
  235. data/lib/wallee-ruby-sdk/models/persistable_currency_amount.rb +5 -8
  236. data/lib/wallee-ruby-sdk/models/persistable_currency_amount_update.rb +5 -8
  237. data/lib/wallee-ruby-sdk/models/product_fee_type.rb +10 -14
  238. data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +5 -8
  239. data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +7 -10
  240. data/lib/wallee-ruby-sdk/models/product_metered_tier_fee.rb +5 -8
  241. data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +7 -10
  242. data/lib/wallee-ruby-sdk/models/product_metered_tier_pricing.rb +9 -13
  243. data/lib/wallee-ruby-sdk/models/product_period_fee.rb +16 -9
  244. data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +18 -11
  245. data/lib/wallee-ruby-sdk/models/product_setup_fee.rb +5 -8
  246. data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +7 -10
  247. data/lib/wallee-ruby-sdk/models/refund.rb +46 -9
  248. data/lib/wallee-ruby-sdk/models/refund_comment.rb +285 -0
  249. data/lib/wallee-ruby-sdk/models/refund_comment_active.rb +225 -0
  250. data/lib/wallee-ruby-sdk/models/refund_comment_create.rb +210 -0
  251. data/lib/wallee-ruby-sdk/models/refund_create.rb +19 -17
  252. data/lib/wallee-ruby-sdk/models/refund_state.rb +13 -16
  253. data/lib/wallee-ruby-sdk/models/refund_type.rb +11 -15
  254. data/lib/wallee-ruby-sdk/models/rendered_document.rb +5 -8
  255. data/lib/wallee-ruby-sdk/models/resource_path.rb +5 -8
  256. data/lib/wallee-ruby-sdk/models/resource_state.rb +10 -14
  257. data/lib/wallee-ruby-sdk/models/rest_address_format.rb +5 -8
  258. data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +17 -21
  259. data/lib/wallee-ruby-sdk/models/rest_country.rb +5 -8
  260. data/lib/wallee-ruby-sdk/models/rest_country_state.rb +5 -8
  261. data/lib/wallee-ruby-sdk/models/rest_currency.rb +5 -8
  262. data/lib/wallee-ruby-sdk/models/rest_language.rb +5 -8
  263. data/lib/wallee-ruby-sdk/models/role.rb +16 -9
  264. data/lib/wallee-ruby-sdk/models/scope.rb +5 -8
  265. data/lib/wallee-ruby-sdk/models/server_error.rb +5 -8
  266. data/lib/wallee-ruby-sdk/models/space.rb +17 -10
  267. data/lib/wallee-ruby-sdk/models/space_address.rb +5 -8
  268. data/lib/wallee-ruby-sdk/models/space_address_create.rb +5 -8
  269. data/lib/wallee-ruby-sdk/models/space_create.rb +18 -11
  270. data/lib/wallee-ruby-sdk/models/space_reference.rb +5 -8
  271. data/lib/wallee-ruby-sdk/models/space_reference_state.rb +12 -16
  272. data/lib/wallee-ruby-sdk/models/space_update.rb +19 -12
  273. data/lib/wallee-ruby-sdk/models/space_view.rb +5 -8
  274. data/lib/wallee-ruby-sdk/models/static_value.rb +7 -10
  275. data/lib/wallee-ruby-sdk/models/subscriber.rb +6 -9
  276. data/lib/wallee-ruby-sdk/models/subscriber_active.rb +8 -11
  277. data/lib/wallee-ruby-sdk/models/subscriber_create.rb +7 -10
  278. data/lib/wallee-ruby-sdk/models/subscriber_update.rb +8 -11
  279. data/lib/wallee-ruby-sdk/models/subscription.rb +16 -9
  280. data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +6 -9
  281. data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +7 -10
  282. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +6 -9
  283. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +6 -9
  284. data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +8 -11
  285. data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +8 -11
  286. data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +12 -10
  287. data/lib/wallee-ruby-sdk/models/subscription_charge.rb +16 -9
  288. data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +8 -11
  289. data/lib/wallee-ruby-sdk/models/subscription_charge_processing_type.rb +9 -13
  290. data/lib/wallee-ruby-sdk/models/subscription_charge_state.rb +12 -16
  291. data/lib/wallee-ruby-sdk/models/subscription_charge_type.rb +9 -13
  292. data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +8 -11
  293. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +5 -8
  294. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +10 -13
  295. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_state.rb +10 -14
  296. data/lib/wallee-ruby-sdk/models/subscription_metric.rb +5 -8
  297. data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +7 -10
  298. data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +7 -10
  299. data/lib/wallee-ruby-sdk/models/subscription_metric_type.rb +7 -10
  300. data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +7 -10
  301. data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report.rb +5 -8
  302. data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +9 -12
  303. data/lib/wallee-ruby-sdk/models/subscription_pending.rb +7 -10
  304. data/lib/wallee-ruby-sdk/models/subscription_period_bill.rb +5 -8
  305. data/lib/wallee-ruby-sdk/models/subscription_period_bill_state.rb +9 -13
  306. data/lib/wallee-ruby-sdk/models/subscription_product.rb +5 -8
  307. data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +7 -10
  308. data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +5 -8
  309. data/lib/wallee-ruby-sdk/models/subscription_product_component_group.rb +5 -8
  310. data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +7 -10
  311. data/lib/wallee-ruby-sdk/models/subscription_product_component_reference.rb +5 -8
  312. data/lib/wallee-ruby-sdk/models/subscription_product_component_reference_state.rb +11 -15
  313. data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +7 -10
  314. data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +6 -9
  315. data/lib/wallee-ruby-sdk/models/subscription_product_retirement.rb +5 -8
  316. data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +6 -9
  317. data/lib/wallee-ruby-sdk/models/subscription_product_state.rb +12 -16
  318. data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +5 -8
  319. data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +7 -10
  320. data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement.rb +5 -8
  321. data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +6 -9
  322. data/lib/wallee-ruby-sdk/models/subscription_product_version_state.rb +12 -16
  323. data/lib/wallee-ruby-sdk/models/subscription_state.rb +14 -18
  324. data/lib/wallee-ruby-sdk/models/subscription_suspension.rb +5 -8
  325. data/lib/wallee-ruby-sdk/models/subscription_suspension_action.rb +9 -13
  326. data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +8 -11
  327. data/lib/wallee-ruby-sdk/models/subscription_suspension_reason.rb +10 -14
  328. data/lib/wallee-ruby-sdk/models/subscription_suspension_running.rb +5 -8
  329. data/lib/wallee-ruby-sdk/models/subscription_suspension_state.rb +9 -13
  330. data/lib/wallee-ruby-sdk/models/subscription_update.rb +7 -10
  331. data/lib/wallee-ruby-sdk/models/subscription_version.rb +5 -8
  332. data/lib/wallee-ruby-sdk/models/subscription_version_state.rb +13 -17
  333. data/lib/wallee-ruby-sdk/models/tax.rb +5 -8
  334. data/lib/wallee-ruby-sdk/models/tax_class.rb +5 -8
  335. data/lib/wallee-ruby-sdk/models/tax_create.rb +7 -10
  336. data/lib/wallee-ruby-sdk/models/tenant_database.rb +5 -8
  337. data/lib/wallee-ruby-sdk/models/token.rb +5 -8
  338. data/lib/wallee-ruby-sdk/models/token_create.rb +6 -9
  339. data/lib/wallee-ruby-sdk/models/token_update.rb +7 -10
  340. data/lib/wallee-ruby-sdk/models/token_version.rb +26 -9
  341. data/lib/wallee-ruby-sdk/models/token_version_state.rb +10 -14
  342. data/lib/wallee-ruby-sdk/models/token_version_type.rb +7 -10
  343. data/lib/wallee-ruby-sdk/models/{tokenizationn_mode.rb → tokenization_mode.rb} +12 -15
  344. data/lib/wallee-ruby-sdk/models/transaction.rb +29 -12
  345. data/lib/wallee-ruby-sdk/models/transaction_aware_entity.rb +5 -8
  346. data/lib/wallee-ruby-sdk/models/transaction_comment.rb +285 -0
  347. data/lib/wallee-ruby-sdk/models/transaction_comment_active.rb +225 -0
  348. data/lib/wallee-ruby-sdk/models/transaction_comment_create.rb +210 -0
  349. data/lib/wallee-ruby-sdk/models/transaction_completion.rb +102 -9
  350. data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +10 -14
  351. data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +242 -0
  352. data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +12 -15
  353. data/lib/wallee-ruby-sdk/models/transaction_create.rb +9 -12
  354. data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +10 -13
  355. data/lib/wallee-ruby-sdk/models/transaction_group.rb +5 -8
  356. data/lib/wallee-ruby-sdk/models/transaction_group_state.rb +10 -14
  357. data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +27 -10
  358. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment.rb +285 -0
  359. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_active.rb +225 -0
  360. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_create.rb +210 -0
  361. data/lib/wallee-ruby-sdk/models/transaction_invoice_replacement.rb +19 -12
  362. data/lib/wallee-ruby-sdk/models/transaction_invoice_state.rb +14 -18
  363. data/lib/wallee-ruby-sdk/models/transaction_line_item_update_request.rb +6 -9
  364. data/lib/wallee-ruby-sdk/models/transaction_line_item_version.rb +5 -8
  365. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +10 -13
  366. data/lib/wallee-ruby-sdk/models/transaction_state.rb +17 -21
  367. data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +11 -14
  368. data/lib/wallee-ruby-sdk/models/transaction_void.rb +5 -8
  369. data/lib/wallee-ruby-sdk/models/transaction_void_mode.rb +9 -13
  370. data/lib/wallee-ruby-sdk/models/transaction_void_state.rb +11 -15
  371. data/lib/wallee-ruby-sdk/models/{email_sender_type.rb → two_factor_authentication_type.rb} +19 -12
  372. data/lib/wallee-ruby-sdk/models/unencrypted_card_data.rb +5 -8
  373. data/lib/wallee-ruby-sdk/models/unencrypted_card_data_create.rb +6 -9
  374. data/lib/wallee-ruby-sdk/models/user.rb +5 -8
  375. data/lib/wallee-ruby-sdk/models/user_account_role.rb +5 -8
  376. data/lib/wallee-ruby-sdk/models/user_space_role.rb +5 -8
  377. data/lib/wallee-ruby-sdk/models/user_type.rb +12 -16
  378. data/lib/wallee-ruby-sdk/models/webhook_identity.rb +5 -8
  379. data/lib/wallee-ruby-sdk/models/webhook_listener.rb +5 -8
  380. data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +30 -38
  381. data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +6 -9
  382. data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +30 -11
  383. data/lib/wallee-ruby-sdk/models/webhook_url.rb +5 -8
  384. data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +5 -8
  385. data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +7 -10
  386. data/lib/wallee-ruby-sdk/version.rb +2 -2
  387. data/test/{transactioncreate.rb → transaction_create_service_test.rb} +0 -0
  388. data/test/transaction_payment_page_service_test.rb +91 -0
  389. data/wallee-ruby-sdk.gemspec +2 -2
  390. metadata +117 -86
  391. data/lib/wallee-ruby-sdk/services/email_sender_service_api.rb +0 -219
  392. data/lib/wallee-ruby-sdk/services/email_sender_type_service_api.rb +0 -143
  393. data/lib/wallee-ruby-sdk/services/email_template_service_api.rb +0 -217
  394. data/lib/wallee-ruby-sdk/services/email_template_type_service_api.rb +0 -143
@@ -1,5 +1,5 @@
1
1
  =begin
2
- Wallee API: 1.0.0
2
+ wallee API: 2.0.1
3
3
 
4
4
  The wallee API allows an easy interaction with the wallee web service.
5
5
 
@@ -33,7 +33,6 @@ module Wallee
33
33
  #
34
34
  attr_accessor :name
35
35
 
36
-
37
36
  # Attribute mapping from ruby-style variable name to JSON key.
38
37
  def self.attribute_map
39
38
  {
@@ -58,10 +57,10 @@ module Wallee
58
57
  return unless attributes.is_a?(Hash)
59
58
 
60
59
  # convert string to symbol for hash key
61
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
60
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
61
 
63
62
  if attributes.has_key?(:'description')
64
- if (value = attributes[:'description']).is_a?(Array)
63
+ if (value = attributes[:'description']).is_a?(Hash)
65
64
  self.description = value
66
65
  end
67
66
  end
@@ -71,24 +70,23 @@ module Wallee
71
70
  end
72
71
 
73
72
  if attributes.has_key?(:'name')
74
- if (value = attributes[:'name']).is_a?(Array)
73
+ if (value = attributes[:'name']).is_a?(Hash)
75
74
  self.name = value
76
75
  end
77
76
  end
78
-
79
77
  end
80
78
 
81
79
  # Show invalid properties with the reasons. Usually used together with valid?
82
- # @return Array for valid properies with the reasons
80
+ # @return Array for valid properties with the reasons
83
81
  def list_invalid_properties
84
82
  invalid_properties = Array.new
85
- return invalid_properties
83
+ invalid_properties
86
84
  end
87
85
 
88
86
  # Check to see if the all the properties in the model are valid
89
87
  # @return true if the model is valid
90
88
  def valid?
91
- return true
89
+ true
92
90
  end
93
91
 
94
92
  # Checks equality by comparing each attribute.
@@ -218,5 +216,4 @@ module Wallee
218
216
  end
219
217
 
220
218
  end
221
-
222
219
  end
@@ -1,5 +1,5 @@
1
1
  =begin
2
- Wallee API: 1.0.0
2
+ wallee API: 2.0.1
3
3
 
4
4
  The wallee API allows an easy interaction with the wallee web service.
5
5
 
@@ -57,7 +57,6 @@ module Wallee
57
57
  # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
58
58
  attr_accessor :version
59
59
 
60
-
61
60
  # Attribute mapping from ruby-style variable name to JSON key.
62
61
  def self.attribute_map
63
62
  {
@@ -98,7 +97,7 @@ module Wallee
98
97
  return unless attributes.is_a?(Hash)
99
98
 
100
99
  # convert string to symbol for hash key
101
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
100
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
102
101
 
103
102
  if attributes.has_key?(:'collector')
104
103
  self.collector = attributes[:'collector']
@@ -147,20 +146,19 @@ module Wallee
147
146
  if attributes.has_key?(:'version')
148
147
  self.version = attributes[:'version']
149
148
  end
150
-
151
149
  end
152
150
 
153
151
  # Show invalid properties with the reasons. Usually used together with valid?
154
- # @return Array for valid properies with the reasons
152
+ # @return Array for valid properties with the reasons
155
153
  def list_invalid_properties
156
154
  invalid_properties = Array.new
157
- return invalid_properties
155
+ invalid_properties
158
156
  end
159
157
 
160
158
  # Check to see if the all the properties in the model are valid
161
159
  # @return true if the model is valid
162
160
  def valid?
163
- return true
161
+ true
164
162
  end
165
163
 
166
164
  # Checks equality by comparing each attribute.
@@ -298,5 +296,4 @@ module Wallee
298
296
  end
299
297
 
300
298
  end
301
-
302
299
  end
@@ -1,5 +1,5 @@
1
1
  =begin
2
- Wallee API: 1.0.0
2
+ wallee API: 2.0.1
3
3
 
4
4
  The wallee API allows an easy interaction with the wallee web service.
5
5
 
@@ -39,6 +39,9 @@ module Wallee
39
39
  #
40
40
  attr_accessor :automatically_decided_on
41
41
 
42
+ #
43
+ attr_accessor :completion
44
+
42
45
  # The created on date indicates the date on which the entity was stored into the database.
43
46
  attr_accessor :created_on
44
47
 
@@ -63,7 +66,6 @@ module Wallee
63
66
  #
64
67
  attr_accessor :transaction
65
68
 
66
-
67
69
  # Attribute mapping from ruby-style variable name to JSON key.
68
70
  def self.attribute_map
69
71
  {
@@ -72,6 +74,7 @@ module Wallee
72
74
  :'linked_transaction' => :'linkedTransaction',
73
75
  :'automatic_decision_reason' => :'automaticDecisionReason',
74
76
  :'automatically_decided_on' => :'automaticallyDecidedOn',
77
+ :'completion' => :'completion',
75
78
  :'created_on' => :'createdOn',
76
79
  :'manual_decision_timeout_on' => :'manualDecisionTimeoutOn',
77
80
  :'manually_decided_by' => :'manuallyDecidedBy',
@@ -91,6 +94,7 @@ module Wallee
91
94
  :'linked_transaction' => :'Integer',
92
95
  :'automatic_decision_reason' => :'DeliveryIndicationDecisionReason',
93
96
  :'automatically_decided_on' => :'DateTime',
97
+ :'completion' => :'Integer',
94
98
  :'created_on' => :'DateTime',
95
99
  :'manual_decision_timeout_on' => :'DateTime',
96
100
  :'manually_decided_by' => :'Integer',
@@ -108,7 +112,7 @@ module Wallee
108
112
  return unless attributes.is_a?(Hash)
109
113
 
110
114
  # convert string to symbol for hash key
111
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
115
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
112
116
 
113
117
  if attributes.has_key?(:'id')
114
118
  self.id = attributes[:'id']
@@ -130,6 +134,10 @@ module Wallee
130
134
  self.automatically_decided_on = attributes[:'automaticallyDecidedOn']
131
135
  end
132
136
 
137
+ if attributes.has_key?(:'completion')
138
+ self.completion = attributes[:'completion']
139
+ end
140
+
133
141
  if attributes.has_key?(:'createdOn')
134
142
  self.created_on = attributes[:'createdOn']
135
143
  end
@@ -161,20 +169,19 @@ module Wallee
161
169
  if attributes.has_key?(:'transaction')
162
170
  self.transaction = attributes[:'transaction']
163
171
  end
164
-
165
172
  end
166
173
 
167
174
  # Show invalid properties with the reasons. Usually used together with valid?
168
- # @return Array for valid properies with the reasons
175
+ # @return Array for valid properties with the reasons
169
176
  def list_invalid_properties
170
177
  invalid_properties = Array.new
171
- return invalid_properties
178
+ invalid_properties
172
179
  end
173
180
 
174
181
  # Check to see if the all the properties in the model are valid
175
182
  # @return true if the model is valid
176
183
  def valid?
177
- return true
184
+ true
178
185
  end
179
186
 
180
187
  # Checks equality by comparing each attribute.
@@ -187,6 +194,7 @@ module Wallee
187
194
  linked_transaction == o.linked_transaction &&
188
195
  automatic_decision_reason == o.automatic_decision_reason &&
189
196
  automatically_decided_on == o.automatically_decided_on &&
197
+ completion == o.completion &&
190
198
  created_on == o.created_on &&
191
199
  manual_decision_timeout_on == o.manual_decision_timeout_on &&
192
200
  manually_decided_by == o.manually_decided_by &&
@@ -206,7 +214,7 @@ module Wallee
206
214
  # Calculates hash code according to all attributes.
207
215
  # @return [Fixnum] Hash code
208
216
  def hash
209
- [id, linked_space_id, linked_transaction, automatic_decision_reason, automatically_decided_on, created_on, manual_decision_timeout_on, manually_decided_by, manually_decided_on, planned_purge_date, state, timeout_on, transaction].hash
217
+ [id, linked_space_id, linked_transaction, automatic_decision_reason, automatically_decided_on, completion, created_on, manual_decision_timeout_on, manually_decided_by, manually_decided_on, planned_purge_date, state, timeout_on, transaction].hash
210
218
  end
211
219
 
212
220
  # Builds the object from hash
@@ -314,5 +322,4 @@ module Wallee
314
322
  end
315
323
 
316
324
  end
317
-
318
325
  end
@@ -1,5 +1,5 @@
1
1
  =begin
2
- Wallee API: 1.0.0
2
+ wallee API: 2.0.1
3
3
 
4
4
  The wallee API allows an easy interaction with the wallee web service.
5
5
 
@@ -33,7 +33,6 @@ module Wallee
33
33
  #
34
34
  attr_accessor :name
35
35
 
36
-
37
36
  # Attribute mapping from ruby-style variable name to JSON key.
38
37
  def self.attribute_map
39
38
  {
@@ -58,10 +57,10 @@ module Wallee
58
57
  return unless attributes.is_a?(Hash)
59
58
 
60
59
  # convert string to symbol for hash key
61
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
60
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
61
 
63
62
  if attributes.has_key?(:'description')
64
- if (value = attributes[:'description']).is_a?(Array)
63
+ if (value = attributes[:'description']).is_a?(Hash)
65
64
  self.description = value
66
65
  end
67
66
  end
@@ -71,24 +70,23 @@ module Wallee
71
70
  end
72
71
 
73
72
  if attributes.has_key?(:'name')
74
- if (value = attributes[:'name']).is_a?(Array)
73
+ if (value = attributes[:'name']).is_a?(Hash)
75
74
  self.name = value
76
75
  end
77
76
  end
78
-
79
77
  end
80
78
 
81
79
  # Show invalid properties with the reasons. Usually used together with valid?
82
- # @return Array for valid properies with the reasons
80
+ # @return Array for valid properties with the reasons
83
81
  def list_invalid_properties
84
82
  invalid_properties = Array.new
85
- return invalid_properties
83
+ invalid_properties
86
84
  end
87
85
 
88
86
  # Check to see if the all the properties in the model are valid
89
87
  # @return true if the model is valid
90
88
  def valid?
91
- return true
89
+ true
92
90
  end
93
91
 
94
92
  # Checks equality by comparing each attribute.
@@ -218,5 +216,4 @@ module Wallee
218
216
  end
219
217
 
220
218
  end
221
-
222
219
  end
@@ -1,5 +1,5 @@
1
1
  =begin
2
- Wallee API: 1.0.0
2
+ wallee API: 2.0.1
3
3
 
4
4
  The wallee API allows an easy interaction with the wallee web service.
5
5
 
@@ -24,22 +24,18 @@ require 'date'
24
24
  module Wallee
25
25
  class DeliveryIndicationState
26
26
 
27
- PENDING = "PENDING".freeze
28
- NOT_SUITABLE = "NOT_SUITABLE".freeze
29
- MANUAL_CHECK_REQUIRED = "MANUAL_CHECK_REQUIRED".freeze
30
- SUITABLE = "SUITABLE".freeze
31
-
32
- # Builds the object from hash
33
- # @param [Hash] attributes Model attributes in the form of hash
34
- # @return [Object] Returns the model itself
27
+ PENDING = 'PENDING'.freeze
28
+ NOT_SUITABLE = 'NOT_SUITABLE'.freeze
29
+ MANUAL_CHECK_REQUIRED = 'MANUAL_CHECK_REQUIRED'.freeze
30
+ SUITABLE = 'SUITABLE'.freeze
31
+
32
+ # Builds the enum from string
33
+ # @param [String] The enum value in the form of the string
34
+ # @return [String] The enum value
35
35
  def build_from_hash(value)
36
-
37
- consantValues = DeliveryIndicationState.constants.select{|c| c.to_s == value}
38
- raise "Invalid ENUM value #{value} for class #DeliveryIndicationState" if consantValues.empty?
39
-
36
+ constantValues = DeliveryIndicationState.constants.select { |c| DeliveryIndicationState::const_get(c) == value }
37
+ raise "Invalid ENUM value #{value} for class #DeliveryIndicationState" if constantValues.empty?
40
38
  value
41
-
42
39
  end
43
40
  end
44
-
45
41
  end
@@ -1,5 +1,5 @@
1
1
  =begin
2
- Wallee API: 1.0.0
2
+ wallee API: 2.0.1
3
3
 
4
4
  The wallee API allows an easy interaction with the wallee web service.
5
5
 
@@ -24,6 +24,12 @@ require 'date'
24
24
  module Wallee
25
25
  # A document template contains the customizations for a particular document template type.
26
26
  class DocumentTemplate
27
+ # The default document template is used whenever no specific template is specified for a particular template type.
28
+ attr_accessor :default_template
29
+
30
+ #
31
+ attr_accessor :delivery_enabled
32
+
27
33
  # The ID is the primary key of the entity. The ID identifies the entity uniquely.
28
34
  attr_accessor :id
29
35
 
@@ -51,10 +57,11 @@ module Wallee
51
57
  # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
52
58
  attr_accessor :version
53
59
 
54
-
55
60
  # Attribute mapping from ruby-style variable name to JSON key.
56
61
  def self.attribute_map
57
62
  {
63
+ :'default_template' => :'defaultTemplate',
64
+ :'delivery_enabled' => :'deliveryEnabled',
58
65
  :'id' => :'id',
59
66
  :'linked_space_id' => :'linkedSpaceId',
60
67
  :'name' => :'name',
@@ -70,6 +77,8 @@ module Wallee
70
77
  # Attribute type mapping.
71
78
  def self.swagger_types
72
79
  {
80
+ :'default_template' => :'BOOLEAN',
81
+ :'delivery_enabled' => :'BOOLEAN',
73
82
  :'id' => :'Integer',
74
83
  :'linked_space_id' => :'Integer',
75
84
  :'name' => :'String',
@@ -88,7 +97,15 @@ module Wallee
88
97
  return unless attributes.is_a?(Hash)
89
98
 
90
99
  # convert string to symbol for hash key
91
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
100
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
101
+
102
+ if attributes.has_key?(:'defaultTemplate')
103
+ self.default_template = attributes[:'defaultTemplate']
104
+ end
105
+
106
+ if attributes.has_key?(:'deliveryEnabled')
107
+ self.delivery_enabled = attributes[:'deliveryEnabled']
108
+ end
92
109
 
93
110
  if attributes.has_key?(:'id')
94
111
  self.id = attributes[:'id']
@@ -125,20 +142,19 @@ module Wallee
125
142
  if attributes.has_key?(:'version')
126
143
  self.version = attributes[:'version']
127
144
  end
128
-
129
145
  end
130
146
 
131
147
  # Show invalid properties with the reasons. Usually used together with valid?
132
- # @return Array for valid properies with the reasons
148
+ # @return Array for valid properties with the reasons
133
149
  def list_invalid_properties
134
150
  invalid_properties = Array.new
135
- return invalid_properties
151
+ invalid_properties
136
152
  end
137
153
 
138
154
  # Check to see if the all the properties in the model are valid
139
155
  # @return true if the model is valid
140
156
  def valid?
141
- return true
157
+ true
142
158
  end
143
159
 
144
160
  # Checks equality by comparing each attribute.
@@ -146,6 +162,8 @@ module Wallee
146
162
  def ==(o)
147
163
  return true if self.equal?(o)
148
164
  self.class == o.class &&
165
+ default_template == o.default_template &&
166
+ delivery_enabled == o.delivery_enabled &&
149
167
  id == o.id &&
150
168
  linked_space_id == o.linked_space_id &&
151
169
  name == o.name &&
@@ -166,7 +184,7 @@ module Wallee
166
184
  # Calculates hash code according to all attributes.
167
185
  # @return [Fixnum] Hash code
168
186
  def hash
169
- [id, linked_space_id, name, planned_purge_date, space_id, state, template_resource, type, version].hash
187
+ [default_template, delivery_enabled, id, linked_space_id, name, planned_purge_date, space_id, state, template_resource, type, version].hash
170
188
  end
171
189
 
172
190
  # Builds the object from hash
@@ -274,5 +292,4 @@ module Wallee
274
292
  end
275
293
 
276
294
  end
277
-
278
295
  end
@@ -1,5 +1,5 @@
1
1
  =begin
2
- Wallee API: 1.0.0
2
+ wallee API: 2.0.1
3
3
 
4
4
  The wallee API allows an easy interaction with the wallee web service.
5
5
 
@@ -30,18 +30,21 @@ module Wallee
30
30
  #
31
31
  attr_accessor :feature
32
32
 
33
+ #
34
+ attr_accessor :group
35
+
33
36
  # The ID is the primary key of the entity. The ID identifies the entity uniquely.
34
37
  attr_accessor :id
35
38
 
36
39
  #
37
40
  attr_accessor :title
38
41
 
39
-
40
42
  # Attribute mapping from ruby-style variable name to JSON key.
41
43
  def self.attribute_map
42
44
  {
43
45
  :'description' => :'description',
44
46
  :'feature' => :'feature',
47
+ :'group' => :'group',
45
48
  :'id' => :'id',
46
49
  :'title' => :'title'
47
50
  }
@@ -52,6 +55,7 @@ module Wallee
52
55
  {
53
56
  :'description' => :'Hash<String, String>',
54
57
  :'feature' => :'Integer',
58
+ :'group' => :'DocumentTemplateTypeGroup',
55
59
  :'id' => :'Integer',
56
60
  :'title' => :'Hash<String, String>'
57
61
  }
@@ -63,10 +67,10 @@ module Wallee
63
67
  return unless attributes.is_a?(Hash)
64
68
 
65
69
  # convert string to symbol for hash key
66
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
70
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
71
 
68
72
  if attributes.has_key?(:'description')
69
- if (value = attributes[:'description']).is_a?(Array)
73
+ if (value = attributes[:'description']).is_a?(Hash)
70
74
  self.description = value
71
75
  end
72
76
  end
@@ -75,29 +79,32 @@ module Wallee
75
79
  self.feature = attributes[:'feature']
76
80
  end
77
81
 
82
+ if attributes.has_key?(:'group')
83
+ self.group = attributes[:'group']
84
+ end
85
+
78
86
  if attributes.has_key?(:'id')
79
87
  self.id = attributes[:'id']
80
88
  end
81
89
 
82
90
  if attributes.has_key?(:'title')
83
- if (value = attributes[:'title']).is_a?(Array)
91
+ if (value = attributes[:'title']).is_a?(Hash)
84
92
  self.title = value
85
93
  end
86
94
  end
87
-
88
95
  end
89
96
 
90
97
  # Show invalid properties with the reasons. Usually used together with valid?
91
- # @return Array for valid properies with the reasons
98
+ # @return Array for valid properties with the reasons
92
99
  def list_invalid_properties
93
100
  invalid_properties = Array.new
94
- return invalid_properties
101
+ invalid_properties
95
102
  end
96
103
 
97
104
  # Check to see if the all the properties in the model are valid
98
105
  # @return true if the model is valid
99
106
  def valid?
100
- return true
107
+ true
101
108
  end
102
109
 
103
110
  # Checks equality by comparing each attribute.
@@ -107,6 +114,7 @@ module Wallee
107
114
  self.class == o.class &&
108
115
  description == o.description &&
109
116
  feature == o.feature &&
117
+ group == o.group &&
110
118
  id == o.id &&
111
119
  title == o.title
112
120
  end
@@ -120,7 +128,7 @@ module Wallee
120
128
  # Calculates hash code according to all attributes.
121
129
  # @return [Fixnum] Hash code
122
130
  def hash
123
- [description, feature, id, title].hash
131
+ [description, feature, group, id, title].hash
124
132
  end
125
133
 
126
134
  # Builds the object from hash
@@ -228,5 +236,4 @@ module Wallee
228
236
  end
229
237
 
230
238
  end
231
-
232
239
  end