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
 
@@ -45,7 +45,6 @@ module Wallee
45
45
  # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
46
46
  attr_accessor :version
47
47
 
48
-
49
48
  # Attribute mapping from ruby-style variable name to JSON key.
50
49
  def self.attribute_map
51
50
  {
@@ -78,7 +77,7 @@ module Wallee
78
77
  return unless attributes.is_a?(Hash)
79
78
 
80
79
  # convert string to symbol for hash key
81
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
80
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
82
81
 
83
82
  if attributes.has_key?(:'createdOn')
84
83
  self.created_on = attributes[:'createdOn']
@@ -107,20 +106,19 @@ module Wallee
107
106
  if attributes.has_key?(:'version')
108
107
  self.version = attributes[:'version']
109
108
  end
110
-
111
109
  end
112
110
 
113
111
  # Show invalid properties with the reasons. Usually used together with valid?
114
- # @return Array for valid properies with the reasons
112
+ # @return Array for valid properties with the reasons
115
113
  def list_invalid_properties
116
114
  invalid_properties = Array.new
117
- return invalid_properties
115
+ invalid_properties
118
116
  end
119
117
 
120
118
  # Check to see if the all the properties in the model are valid
121
119
  # @return true if the model is valid
122
120
  def valid?
123
- return true
121
+ true
124
122
  end
125
123
 
126
124
  # Checks equality by comparing each attribute.
@@ -254,5 +252,4 @@ module Wallee
254
252
  end
255
253
 
256
254
  end
257
-
258
255
  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 :target_product
35
35
 
36
-
37
36
  # Attribute mapping from ruby-style variable name to JSON key.
38
37
  def self.attribute_map
39
38
  {
@@ -58,7 +57,7 @@ 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?(:'product')
64
63
  self.product = attributes[:'product']
@@ -71,25 +70,24 @@ module Wallee
71
70
  if attributes.has_key?(:'targetProduct')
72
71
  self.target_product = attributes[:'targetProduct']
73
72
  end
74
-
75
73
  end
76
74
 
77
75
  # Show invalid properties with the reasons. Usually used together with valid?
78
- # @return Array for valid properies with the reasons
76
+ # @return Array for valid properties with the reasons
79
77
  def list_invalid_properties
80
78
  invalid_properties = Array.new
81
79
  if @product.nil?
82
- invalid_properties.push("invalid value for 'product', product cannot be nil.")
80
+ invalid_properties.push('invalid value for "product", product cannot be nil.')
83
81
  end
84
82
 
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
89
  return false if @product.nil?
92
- return true
90
+ true
93
91
  end
94
92
 
95
93
  # Checks equality by comparing each attribute.
@@ -219,5 +217,4 @@ module Wallee
219
217
  end
220
218
 
221
219
  end
222
-
223
220
  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,23 +24,19 @@ require 'date'
24
24
  module Wallee
25
25
  class SubscriptionProductState
26
26
 
27
- CREATE = "CREATE".freeze
28
- ACTIVE = "ACTIVE".freeze
29
- INACTIVE = "INACTIVE".freeze
30
- RETIRING = "RETIRING".freeze
31
- RETIRED = "RETIRED".freeze
32
-
33
- # Builds the object from hash
34
- # @param [Hash] attributes Model attributes in the form of hash
35
- # @return [Object] Returns the model itself
27
+ CREATE = 'CREATE'.freeze
28
+ ACTIVE = 'ACTIVE'.freeze
29
+ INACTIVE = 'INACTIVE'.freeze
30
+ RETIRING = 'RETIRING'.freeze
31
+ RETIRED = 'RETIRED'.freeze
32
+
33
+ # Builds the enum from string
34
+ # @param [String] The enum value in the form of the string
35
+ # @return [String] The enum value
36
36
  def build_from_hash(value)
37
-
38
- consantValues = SubscriptionProductState.constants.select{|c| c.to_s == value}
39
- raise "Invalid ENUM value #{value} for class #SubscriptionProductState" if consantValues.empty?
40
-
37
+ constantValues = SubscriptionProductState.constants.select { |c| SubscriptionProductState::const_get(c) == value }
38
+ raise "Invalid ENUM value #{value} for class #SubscriptionProductState" if constantValues.empty?
41
39
  value
42
-
43
40
  end
44
41
  end
45
-
46
42
  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
 
@@ -84,7 +84,6 @@ module Wallee
84
84
  # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
85
85
  attr_accessor :version
86
86
 
87
-
88
87
  # Attribute mapping from ruby-style variable name to JSON key.
89
88
  def self.attribute_map
90
89
  {
@@ -143,7 +142,7 @@ module Wallee
143
142
  return unless attributes.is_a?(Hash)
144
143
 
145
144
  # convert string to symbol for hash key
146
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
145
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
147
146
 
148
147
  if attributes.has_key?(:'activatedOn')
149
148
  self.activated_on = attributes[:'activatedOn']
@@ -226,20 +225,19 @@ module Wallee
226
225
  if attributes.has_key?(:'version')
227
226
  self.version = attributes[:'version']
228
227
  end
229
-
230
228
  end
231
229
 
232
230
  # Show invalid properties with the reasons. Usually used together with valid?
233
- # @return Array for valid properies with the reasons
231
+ # @return Array for valid properties with the reasons
234
232
  def list_invalid_properties
235
233
  invalid_properties = Array.new
236
- return invalid_properties
234
+ invalid_properties
237
235
  end
238
236
 
239
237
  # Check to see if the all the properties in the model are valid
240
238
  # @return true if the model is valid
241
239
  def valid?
242
- return true
240
+ true
243
241
  end
244
242
 
245
243
  # Checks equality by comparing each attribute.
@@ -386,5 +384,4 @@ module Wallee
386
384
  end
387
385
 
388
386
  end
389
-
390
387
  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
  #
58
58
  attr_accessor :state
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?(:'id')
104
103
  self.id = attributes[:'id']
@@ -145,22 +144,21 @@ module Wallee
145
144
  if attributes.has_key?(:'state')
146
145
  self.state = attributes[:'state']
147
146
  end
148
-
149
147
  end
150
148
 
151
149
  # Show invalid properties with the reasons. Usually used together with valid?
152
- # @return Array for valid properies with the reasons
150
+ # @return Array for valid properties with the reasons
153
151
  def list_invalid_properties
154
152
  invalid_properties = Array.new
155
153
  if @id.nil?
156
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
154
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
157
155
  end
158
156
 
159
157
  if @version.nil?
160
- invalid_properties.push("invalid value for 'version', version cannot be nil.")
158
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
161
159
  end
162
160
 
163
- return invalid_properties
161
+ invalid_properties
164
162
  end
165
163
 
166
164
  # Check to see if the all the properties in the model are valid
@@ -168,7 +166,7 @@ module Wallee
168
166
  def valid?
169
167
  return false if @id.nil?
170
168
  return false if @version.nil?
171
- return true
169
+ true
172
170
  end
173
171
 
174
172
  # Checks equality by comparing each attribute.
@@ -306,5 +304,4 @@ module Wallee
306
304
  end
307
305
 
308
306
  end
309
-
310
307
  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
 
@@ -45,7 +45,6 @@ module Wallee
45
45
  # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
46
46
  attr_accessor :version
47
47
 
48
-
49
48
  # Attribute mapping from ruby-style variable name to JSON key.
50
49
  def self.attribute_map
51
50
  {
@@ -78,7 +77,7 @@ module Wallee
78
77
  return unless attributes.is_a?(Hash)
79
78
 
80
79
  # convert string to symbol for hash key
81
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
80
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
82
81
 
83
82
  if attributes.has_key?(:'createdOn')
84
83
  self.created_on = attributes[:'createdOn']
@@ -107,20 +106,19 @@ module Wallee
107
106
  if attributes.has_key?(:'version')
108
107
  self.version = attributes[:'version']
109
108
  end
110
-
111
109
  end
112
110
 
113
111
  # Show invalid properties with the reasons. Usually used together with valid?
114
- # @return Array for valid properies with the reasons
112
+ # @return Array for valid properties with the reasons
115
113
  def list_invalid_properties
116
114
  invalid_properties = Array.new
117
- return invalid_properties
115
+ invalid_properties
118
116
  end
119
117
 
120
118
  # Check to see if the all the properties in the model are valid
121
119
  # @return true if the model is valid
122
120
  def valid?
123
- return true
121
+ true
124
122
  end
125
123
 
126
124
  # Checks equality by comparing each attribute.
@@ -254,5 +252,4 @@ module Wallee
254
252
  end
255
253
 
256
254
  end
257
-
258
255
  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 :target_product
35
35
 
36
-
37
36
  # Attribute mapping from ruby-style variable name to JSON key.
38
37
  def self.attribute_map
39
38
  {
@@ -58,7 +57,7 @@ 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?(:'productVersion')
64
63
  self.product_version = attributes[:'productVersion']
@@ -71,25 +70,24 @@ module Wallee
71
70
  if attributes.has_key?(:'targetProduct')
72
71
  self.target_product = attributes[:'targetProduct']
73
72
  end
74
-
75
73
  end
76
74
 
77
75
  # Show invalid properties with the reasons. Usually used together with valid?
78
- # @return Array for valid properies with the reasons
76
+ # @return Array for valid properties with the reasons
79
77
  def list_invalid_properties
80
78
  invalid_properties = Array.new
81
79
  if @product_version.nil?
82
- invalid_properties.push("invalid value for 'product_version', product_version cannot be nil.")
80
+ invalid_properties.push('invalid value for "product_version", product_version cannot be nil.')
83
81
  end
84
82
 
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
89
  return false if @product_version.nil?
92
- return true
90
+ true
93
91
  end
94
92
 
95
93
  # Checks equality by comparing each attribute.
@@ -219,5 +217,4 @@ module Wallee
219
217
  end
220
218
 
221
219
  end
222
-
223
220
  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,23 +24,19 @@ require 'date'
24
24
  module Wallee
25
25
  class SubscriptionProductVersionState
26
26
 
27
- PENDING = "PENDING".freeze
28
- ACTIVE = "ACTIVE".freeze
29
- OBSOLETE = "OBSOLETE".freeze
30
- RETIRING = "RETIRING".freeze
31
- RETIRED = "RETIRED".freeze
32
-
33
- # Builds the object from hash
34
- # @param [Hash] attributes Model attributes in the form of hash
35
- # @return [Object] Returns the model itself
27
+ PENDING = 'PENDING'.freeze
28
+ ACTIVE = 'ACTIVE'.freeze
29
+ OBSOLETE = 'OBSOLETE'.freeze
30
+ RETIRING = 'RETIRING'.freeze
31
+ RETIRED = 'RETIRED'.freeze
32
+
33
+ # Builds the enum from string
34
+ # @param [String] The enum value in the form of the string
35
+ # @return [String] The enum value
36
36
  def build_from_hash(value)
37
-
38
- consantValues = SubscriptionProductVersionState.constants.select{|c| c.to_s == value}
39
- raise "Invalid ENUM value #{value} for class #SubscriptionProductVersionState" if consantValues.empty?
40
-
37
+ constantValues = SubscriptionProductVersionState.constants.select { |c| SubscriptionProductVersionState::const_get(c) == value }
38
+ raise "Invalid ENUM value #{value} for class #SubscriptionProductVersionState" if constantValues.empty?
41
39
  value
42
-
43
40
  end
44
41
  end
45
-
46
42
  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,25 +24,21 @@ require 'date'
24
24
  module Wallee
25
25
  class SubscriptionState
26
26
 
27
- PENDING = "PENDING".freeze
28
- INITIALIZING = "INITIALIZING".freeze
29
- FAILED = "FAILED".freeze
30
- ACTIVE = "ACTIVE".freeze
31
- SUSPENDED = "SUSPENDED".freeze
32
- TERMINATING = "TERMINATING".freeze
33
- TERMINATED = "TERMINATED".freeze
34
-
35
- # Builds the object from hash
36
- # @param [Hash] attributes Model attributes in the form of hash
37
- # @return [Object] Returns the model itself
27
+ PENDING = 'PENDING'.freeze
28
+ INITIALIZING = 'INITIALIZING'.freeze
29
+ FAILED = 'FAILED'.freeze
30
+ ACTIVE = 'ACTIVE'.freeze
31
+ SUSPENDED = 'SUSPENDED'.freeze
32
+ TERMINATING = 'TERMINATING'.freeze
33
+ TERMINATED = 'TERMINATED'.freeze
34
+
35
+ # Builds the enum from string
36
+ # @param [String] The enum value in the form of the string
37
+ # @return [String] The enum value
38
38
  def build_from_hash(value)
39
-
40
- consantValues = SubscriptionState.constants.select{|c| c.to_s == value}
41
- raise "Invalid ENUM value #{value} for class #SubscriptionState" if consantValues.empty?
42
-
39
+ constantValues = SubscriptionState.constants.select { |c| SubscriptionState::const_get(c) == value }
40
+ raise "Invalid ENUM value #{value} for class #SubscriptionState" if constantValues.empty?
43
41
  value
44
-
45
42
  end
46
43
  end
47
-
48
44
  end