wallee-ruby-sdk 1.0.1 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (472) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +1 -1
  3. data/LICENSE +1 -1
  4. data/README.md +107 -34
  5. data/lib/wallee-ruby-sdk.rb +260 -99
  6. data/lib/wallee-ruby-sdk/{services → api}/account_service_api.rb +37 -41
  7. data/lib/wallee-ruby-sdk/{services → api}/application_user_service_api.rb +37 -41
  8. data/lib/wallee-ruby-sdk/api/card_processing_service_api.rb +172 -0
  9. data/lib/wallee-ruby-sdk/{services → api}/charge_attempt_service_api.rb +22 -26
  10. data/lib/wallee-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
  11. data/lib/wallee-ruby-sdk/{services → api}/charge_flow_level_service_api.rb +31 -35
  12. data/lib/wallee-ruby-sdk/{services → api}/charge_flow_service_api.rb +42 -46
  13. data/lib/wallee-ruby-sdk/{services → api}/condition_type_service_api.rb +15 -19
  14. data/lib/wallee-ruby-sdk/{services → api}/country_service_api.rb +7 -11
  15. data/lib/wallee-ruby-sdk/{services → api}/country_state_service_api.rb +15 -19
  16. data/lib/wallee-ruby-sdk/{services → api}/currency_service_api.rb +7 -11
  17. data/lib/wallee-ruby-sdk/api/customer_address_service_api.rb +460 -0
  18. data/lib/wallee-ruby-sdk/api/customer_comment_service_api.rb +522 -0
  19. data/lib/wallee-ruby-sdk/api/customer_service_api.rb +398 -0
  20. data/lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb +796 -0
  21. data/lib/wallee-ruby-sdk/api/debt_collector_configuration_service_api.rb +213 -0
  22. data/lib/wallee-ruby-sdk/api/debt_collector_service_api.rb +139 -0
  23. data/lib/wallee-ruby-sdk/{services → api}/delivery_indication_service_api.rb +40 -44
  24. data/lib/wallee-ruby-sdk/{services → api}/document_template_service_api.rb +22 -26
  25. data/lib/wallee-ruby-sdk/{services → api}/document_template_type_service_api.rb +15 -19
  26. data/lib/wallee-ruby-sdk/{services → api}/human_user_service_api.rb +94 -41
  27. data/lib/wallee-ruby-sdk/{services → api}/installment_payment_service_api.rb +33 -37
  28. data/lib/wallee-ruby-sdk/{services → api}/installment_payment_slice_service_api.rb +23 -27
  29. data/lib/wallee-ruby-sdk/{services → api}/installment_plan_calculation_service_api.rb +9 -13
  30. data/lib/wallee-ruby-sdk/{services → api}/installment_plan_configuration_service_api.rb +23 -27
  31. data/lib/wallee-ruby-sdk/{services → api}/installment_plan_slice_configuration_service_api.rb +23 -27
  32. data/lib/wallee-ruby-sdk/{services → api}/label_description_group_service_api.rb +15 -19
  33. data/lib/wallee-ruby-sdk/{services → api}/label_description_service_api.rb +15 -19
  34. data/lib/wallee-ruby-sdk/{services → api}/language_service_api.rb +7 -11
  35. data/lib/wallee-ruby-sdk/api/legal_organization_form_service_api.rb +197 -0
  36. data/lib/wallee-ruby-sdk/{services → api}/manual_task_service_api.rb +22 -26
  37. data/lib/wallee-ruby-sdk/api/mertic_usage_service_api.rb +96 -0
  38. data/lib/wallee-ruby-sdk/{services → api}/payment_connector_configuration_service_api.rb +22 -26
  39. data/lib/wallee-ruby-sdk/{services → api}/payment_connector_service_api.rb +15 -19
  40. data/lib/wallee-ruby-sdk/{services/token_service_api.rb → api/payment_link_service_api.rb} +68 -72
  41. data/lib/wallee-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
  42. data/lib/wallee-ruby-sdk/{services → api}/payment_method_configuration_service_api.rb +22 -26
  43. data/lib/wallee-ruby-sdk/{services → api}/payment_method_service_api.rb +15 -19
  44. data/lib/wallee-ruby-sdk/{services → api}/payment_processor_configuration_service_api.rb +22 -26
  45. data/lib/wallee-ruby-sdk/{services → api}/payment_processor_service_api.rb +15 -19
  46. data/lib/wallee-ruby-sdk/{services/email_template_service_api.rb → api/payment_terminal_service_api.rb} +36 -40
  47. data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +99 -0
  48. data/lib/wallee-ruby-sdk/{services → api}/permission_service_api.rb +15 -19
  49. data/lib/wallee-ruby-sdk/api/refund_comment_service_api.rb +464 -0
  50. data/lib/wallee-ruby-sdk/{services → api}/refund_service_api.rb +125 -61
  51. data/lib/wallee-ruby-sdk/api/shopify_recurring_order_service_api.rb +274 -0
  52. data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +213 -0
  53. data/lib/wallee-ruby-sdk/api/shopify_subscription_product_service_api.rb +337 -0
  54. data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +466 -0
  55. data/lib/wallee-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +337 -0
  56. data/lib/wallee-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
  57. data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
  58. data/lib/wallee-ruby-sdk/{services → api}/space_service_api.rb +37 -41
  59. data/lib/wallee-ruby-sdk/{services → api}/static_value_service_api.rb +15 -19
  60. data/lib/wallee-ruby-sdk/{services → api}/subscriber_service_api.rb +46 -50
  61. data/lib/wallee-ruby-sdk/api/subscription_affiliate_service_api.rb +398 -0
  62. data/lib/wallee-ruby-sdk/{services → api}/subscription_charge_service_api.rb +38 -42
  63. data/lib/wallee-ruby-sdk/{services → api}/subscription_ledger_entry_service_api.rb +29 -33
  64. data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_service_api.rb +43 -47
  65. data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_usage_service_api.rb +29 -33
  66. data/lib/wallee-ruby-sdk/{services → api}/subscription_period_bill_service_api.rb +28 -32
  67. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_group_service_api.rb +43 -47
  68. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_service_api.rb +43 -47
  69. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_fee_tier_service_api.rb +43 -47
  70. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_metered_fee_service_api.rb +43 -47
  71. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_period_fee_service_api.rb +43 -47
  72. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_retirement_service_api.rb +29 -33
  73. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_service_api.rb +36 -40
  74. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_setup_fee_service_api.rb +43 -47
  75. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_retirement_service_api.rb +29 -33
  76. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_service_api.rb +43 -47
  77. data/lib/wallee-ruby-sdk/{services → api}/subscription_service_api.rb +245 -115
  78. data/lib/wallee-ruby-sdk/{services → api}/subscription_suspension_service_api.rb +36 -40
  79. data/lib/wallee-ruby-sdk/{services → api}/subscription_version_service_api.rb +22 -26
  80. data/lib/wallee-ruby-sdk/api/token_service_api.rb +587 -0
  81. data/lib/wallee-ruby-sdk/{services → api}/token_version_service_api.rb +31 -35
  82. data/lib/wallee-ruby-sdk/api/transaction_comment_service_api.rb +464 -0
  83. data/lib/wallee-ruby-sdk/{services → api}/transaction_completion_service_api.rb +164 -44
  84. data/lib/wallee-ruby-sdk/api/transaction_iframe_service_api.rb +91 -0
  85. data/lib/wallee-ruby-sdk/api/transaction_invoice_comment_service_api.rb +464 -0
  86. data/lib/wallee-ruby-sdk/{services → api}/transaction_invoice_service_api.rb +186 -59
  87. data/lib/wallee-ruby-sdk/api/transaction_lightbox_service_api.rb +91 -0
  88. data/lib/wallee-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +86 -0
  89. data/lib/wallee-ruby-sdk/api/transaction_payment_page_service_api.rb +91 -0
  90. data/lib/wallee-ruby-sdk/{services → api}/transaction_service_api.rb +273 -326
  91. data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +172 -0
  92. data/lib/wallee-ruby-sdk/{services → api}/transaction_void_service_api.rb +40 -44
  93. data/lib/wallee-ruby-sdk/{services → api}/user_account_role_service_api.rb +27 -31
  94. data/lib/wallee-ruby-sdk/{services → api}/user_space_role_service_api.rb +30 -34
  95. data/lib/wallee-ruby-sdk/{services → api}/webhook_listener_service_api.rb +43 -47
  96. data/lib/wallee-ruby-sdk/{services → api}/webhook_url_service_api.rb +43 -47
  97. data/lib/wallee-ruby-sdk/api_client.rb +7 -7
  98. data/lib/wallee-ruby-sdk/api_error.rb +0 -4
  99. data/lib/wallee-ruby-sdk/configuration.rb +2 -6
  100. data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +40 -14
  101. data/lib/wallee-ruby-sdk/models/abstract_application_user_update.rb +31 -14
  102. data/lib/wallee-ruby-sdk/models/abstract_customer_active.rb +312 -0
  103. data/lib/wallee-ruby-sdk/models/abstract_customer_address_active.rb +200 -0
  104. data/lib/wallee-ruby-sdk/models/abstract_customer_comment_active.rb +205 -0
  105. data/lib/wallee-ruby-sdk/models/abstract_debt_collection_case_update.rb +262 -0
  106. data/lib/wallee-ruby-sdk/models/abstract_human_user_update.rb +87 -15
  107. data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +309 -0
  108. data/lib/wallee-ruby-sdk/models/abstract_refund_comment_active.rb +205 -0
  109. data/lib/wallee-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
  110. data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +51 -15
  111. data/lib/wallee-ruby-sdk/models/abstract_subscriber_update.rb +51 -14
  112. data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +246 -0
  113. data/lib/wallee-ruby-sdk/models/abstract_subscription_metric_update.rb +5 -13
  114. data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +20 -13
  115. data/lib/wallee-ruby-sdk/models/abstract_token_update.rb +35 -13
  116. data/lib/wallee-ruby-sdk/models/abstract_transaction_comment_active.rb +205 -0
  117. data/lib/wallee-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +205 -0
  118. data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +136 -16
  119. data/lib/wallee-ruby-sdk/models/abstract_webhook_listener_update.rb +43 -14
  120. data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +44 -13
  121. data/lib/wallee-ruby-sdk/models/account.rb +90 -13
  122. data/lib/wallee-ruby-sdk/models/account_create.rb +56 -14
  123. data/lib/wallee-ruby-sdk/models/account_state.rb +12 -20
  124. data/lib/wallee-ruby-sdk/models/account_type.rb +9 -17
  125. data/lib/wallee-ruby-sdk/models/account_update.rb +42 -15
  126. data/lib/wallee-ruby-sdk/models/address.rb +240 -22
  127. data/lib/wallee-ruby-sdk/models/address_create.rb +240 -22
  128. data/lib/wallee-ruby-sdk/models/application_user.rb +32 -14
  129. data/lib/wallee-ruby-sdk/models/application_user_create.rb +32 -14
  130. data/lib/wallee-ruby-sdk/models/application_user_create_with_mac_key.rb +31 -13
  131. data/lib/wallee-ruby-sdk/models/application_user_update.rb +33 -15
  132. data/lib/wallee-ruby-sdk/models/charge.rb +16 -13
  133. data/lib/wallee-ruby-sdk/models/charge_attempt.rb +61 -13
  134. data/lib/wallee-ruby-sdk/models/charge_attempt_environment.rb +8 -16
  135. data/lib/wallee-ruby-sdk/models/charge_attempt_state.rb +9 -17
  136. data/lib/wallee-ruby-sdk/models/charge_flow.rb +5 -12
  137. data/lib/wallee-ruby-sdk/models/charge_flow_level.rb +5 -12
  138. data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration.rb +20 -12
  139. data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration_type.rb +20 -15
  140. data/lib/wallee-ruby-sdk/models/charge_flow_level_payment_link.rb +231 -0
  141. data/lib/wallee-ruby-sdk/models/charge_flow_level_state.rb +9 -17
  142. data/lib/wallee-ruby-sdk/models/charge_state.rb +9 -17
  143. data/lib/wallee-ruby-sdk/models/charge_type.rb +10 -17
  144. data/lib/wallee-ruby-sdk/models/client_error.rb +5 -12
  145. data/lib/wallee-ruby-sdk/models/client_error_type.rb +9 -17
  146. data/lib/wallee-ruby-sdk/models/completion_line_item.rb +226 -0
  147. data/lib/wallee-ruby-sdk/models/completion_line_item_create.rb +245 -0
  148. data/lib/wallee-ruby-sdk/models/condition.rb +20 -12
  149. data/lib/wallee-ruby-sdk/models/condition_type.rb +7 -14
  150. data/lib/wallee-ruby-sdk/models/connector_invocation.rb +5 -12
  151. data/lib/wallee-ruby-sdk/models/connector_invocation_stage.rb +10 -18
  152. data/lib/wallee-ruby-sdk/models/creation_entity_state.rb +11 -19
  153. data/lib/wallee-ruby-sdk/models/criteria_operator.rb +18 -23
  154. data/lib/wallee-ruby-sdk/models/customer.rb +353 -0
  155. data/lib/wallee-ruby-sdk/models/customer_active.rb +343 -0
  156. data/lib/wallee-ruby-sdk/models/customer_address.rb +261 -0
  157. data/lib/wallee-ruby-sdk/models/customer_address_active.rb +231 -0
  158. data/lib/wallee-ruby-sdk/models/customer_address_create.rb +216 -0
  159. data/lib/wallee-ruby-sdk/models/customer_address_type.rb +36 -0
  160. data/lib/wallee-ruby-sdk/models/customer_comment.rb +296 -0
  161. data/lib/wallee-ruby-sdk/models/customer_comment_active.rb +236 -0
  162. data/lib/wallee-ruby-sdk/models/customer_comment_create.rb +221 -0
  163. data/lib/wallee-ruby-sdk/models/customer_create.rb +313 -0
  164. data/lib/wallee-ruby-sdk/models/customer_postal_address.rb +606 -0
  165. data/lib/wallee-ruby-sdk/models/customer_postal_address_create.rb +606 -0
  166. data/lib/wallee-ruby-sdk/models/customers_presence.rb +9 -17
  167. data/lib/wallee-ruby-sdk/models/data_collection_type.rb +8 -16
  168. data/lib/wallee-ruby-sdk/models/database_translated_string.rb +5 -12
  169. data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +5 -12
  170. data/lib/wallee-ruby-sdk/models/database_translated_string_item.rb +20 -12
  171. data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +21 -13
  172. data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +495 -0
  173. data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +303 -0
  174. data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +338 -0
  175. data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +225 -0
  176. data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +40 -0
  177. data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +293 -0
  178. data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +35 -0
  179. data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +305 -0
  180. data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +215 -0
  181. data/lib/wallee-ruby-sdk/models/debt_collector.rb +215 -0
  182. data/lib/wallee-ruby-sdk/models/{email_sender.rb → debt_collector_condition.rb} +34 -46
  183. data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +215 -0
  184. data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +310 -0
  185. data/lib/wallee-ruby-sdk/models/delivery_indication.rb +16 -13
  186. data/lib/wallee-ruby-sdk/models/delivery_indication_decision_reason.rb +7 -14
  187. data/lib/wallee-ruby-sdk/models/delivery_indication_state.rb +10 -18
  188. data/lib/wallee-ruby-sdk/models/document_template.rb +41 -13
  189. data/lib/wallee-ruby-sdk/models/document_template_type.rb +18 -25
  190. data/lib/wallee-ruby-sdk/models/document_template_type_group.rb +203 -0
  191. data/lib/wallee-ruby-sdk/models/entity_export_request.rb +208 -0
  192. data/lib/wallee-ruby-sdk/models/entity_query.rb +6 -13
  193. data/lib/wallee-ruby-sdk/models/entity_query_filter.rb +6 -13
  194. data/lib/wallee-ruby-sdk/models/entity_query_filter_type.rb +9 -17
  195. data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +15 -12
  196. data/lib/wallee-ruby-sdk/models/entity_query_order_by_type.rb +8 -16
  197. data/lib/wallee-ruby-sdk/models/environment.rb +35 -0
  198. data/lib/wallee-ruby-sdk/models/failure_category.rb +11 -19
  199. data/lib/wallee-ruby-sdk/models/failure_reason.rb +7 -14
  200. data/lib/wallee-ruby-sdk/models/feature.rb +18 -15
  201. data/lib/wallee-ruby-sdk/models/feature_category.rb +225 -0
  202. data/lib/wallee-ruby-sdk/models/gender.rb +8 -16
  203. data/lib/wallee-ruby-sdk/models/human_user.rb +107 -14
  204. data/lib/wallee-ruby-sdk/models/human_user_create.rb +86 -13
  205. data/lib/wallee-ruby-sdk/models/human_user_update.rb +88 -15
  206. data/lib/wallee-ruby-sdk/models/installment_calculated_plan.rb +5 -12
  207. data/lib/wallee-ruby-sdk/models/installment_calculated_slice.rb +5 -12
  208. data/lib/wallee-ruby-sdk/models/installment_payment.rb +5 -12
  209. data/lib/wallee-ruby-sdk/models/installment_payment_slice.rb +5 -12
  210. data/lib/wallee-ruby-sdk/models/installment_payment_slice_state.rb +13 -21
  211. data/lib/wallee-ruby-sdk/models/installment_payment_state.rb +14 -22
  212. data/lib/wallee-ruby-sdk/models/installment_plan_configuration.rb +20 -12
  213. data/lib/wallee-ruby-sdk/models/installment_plan_slice_configuration.rb +5 -12
  214. data/lib/wallee-ruby-sdk/models/label.rb +5 -12
  215. data/lib/wallee-ruby-sdk/models/label_descriptor.rb +7 -14
  216. data/lib/wallee-ruby-sdk/models/label_descriptor_category.rb +8 -16
  217. data/lib/wallee-ruby-sdk/models/label_descriptor_group.rb +7 -14
  218. data/lib/wallee-ruby-sdk/models/label_descriptor_type.rb +7 -14
  219. data/lib/wallee-ruby-sdk/models/legal_organization_form.rb +5 -12
  220. data/lib/wallee-ruby-sdk/models/line_item.rb +121 -14
  221. data/lib/wallee-ruby-sdk/models/line_item_attribute.rb +35 -12
  222. data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +45 -14
  223. data/lib/wallee-ruby-sdk/models/line_item_create.rb +84 -19
  224. data/lib/wallee-ruby-sdk/models/line_item_reduction.rb +20 -12
  225. data/lib/wallee-ruby-sdk/models/line_item_reduction_create.rb +27 -15
  226. data/lib/wallee-ruby-sdk/models/line_item_type.rb +10 -18
  227. data/lib/wallee-ruby-sdk/models/localized_string.rb +5 -12
  228. data/lib/wallee-ruby-sdk/models/manual_task.rb +5 -12
  229. data/lib/wallee-ruby-sdk/models/manual_task_action.rb +6 -13
  230. data/lib/wallee-ruby-sdk/models/manual_task_action_style.rb +9 -17
  231. data/lib/wallee-ruby-sdk/models/manual_task_state.rb +9 -17
  232. data/lib/wallee-ruby-sdk/models/manual_task_type.rb +7 -14
  233. data/lib/wallee-ruby-sdk/models/metric_usage.rb +225 -0
  234. data/lib/wallee-ruby-sdk/models/one_click_payment_mode.rb +9 -17
  235. data/lib/wallee-ruby-sdk/models/payment_connector.rb +30 -15
  236. data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +33 -13
  237. data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +5 -12
  238. data/lib/wallee-ruby-sdk/models/payment_contract.rb +355 -0
  239. data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +38 -0
  240. data/lib/wallee-ruby-sdk/models/{email_sender_type.rb → payment_contract_type.rb} +9 -16
  241. data/lib/wallee-ruby-sdk/models/payment_information_hash.rb +211 -0
  242. data/lib/wallee-ruby-sdk/models/payment_information_hash_type.rb +203 -0
  243. data/lib/wallee-ruby-sdk/models/payment_link.rb +414 -0
  244. data/lib/wallee-ruby-sdk/models/payment_link_active.rb +350 -0
  245. data/lib/wallee-ruby-sdk/models/payment_link_create.rb +373 -0
  246. data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +35 -0
  247. data/lib/wallee-ruby-sdk/models/payment_link_update.rb +340 -0
  248. data/lib/wallee-ruby-sdk/models/payment_method.rb +20 -15
  249. data/lib/wallee-ruby-sdk/models/payment_method_brand.rb +7 -14
  250. data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +22 -14
  251. data/lib/wallee-ruby-sdk/models/payment_primary_risk_taker.rb +9 -17
  252. data/lib/wallee-ruby-sdk/models/payment_processor.rb +10 -17
  253. data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +31 -13
  254. data/lib/wallee-ruby-sdk/models/{email_template.rb → payment_terminal.rb} +51 -79
  255. data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +456 -0
  256. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration.rb +266 -0
  257. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_state.rb +37 -0
  258. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +313 -0
  259. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +38 -0
  260. data/lib/wallee-ruby-sdk/models/{space_address_setter.rb → payment_terminal_contact_address.rb} +105 -27
  261. data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +286 -0
  262. data/lib/wallee-ruby-sdk/models/payment_terminal_location_state.rb +37 -0
  263. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version.rb +281 -0
  264. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +38 -0
  265. data/lib/wallee-ruby-sdk/models/payment_terminal_state.rb +38 -0
  266. data/lib/wallee-ruby-sdk/models/{attachment_resource.rb → payment_terminal_type.rb} +33 -28
  267. data/lib/wallee-ruby-sdk/models/permission.rb +20 -17
  268. data/lib/wallee-ruby-sdk/models/persistable_currency_amount.rb +5 -12
  269. data/lib/wallee-ruby-sdk/models/persistable_currency_amount_update.rb +5 -12
  270. data/lib/wallee-ruby-sdk/models/product_fee_type.rb +9 -17
  271. data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +5 -12
  272. data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +7 -14
  273. data/lib/wallee-ruby-sdk/models/product_metered_tier_fee.rb +5 -12
  274. data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +7 -14
  275. data/lib/wallee-ruby-sdk/models/product_metered_tier_pricing.rb +8 -16
  276. data/lib/wallee-ruby-sdk/models/product_period_fee.rb +16 -13
  277. data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +18 -15
  278. data/lib/wallee-ruby-sdk/models/product_setup_fee.rb +5 -12
  279. data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +7 -14
  280. data/lib/wallee-ruby-sdk/models/refund.rb +130 -13
  281. data/lib/wallee-ruby-sdk/models/refund_comment.rb +296 -0
  282. data/lib/wallee-ruby-sdk/models/refund_comment_active.rb +236 -0
  283. data/lib/wallee-ruby-sdk/models/refund_comment_create.rb +221 -0
  284. data/lib/wallee-ruby-sdk/models/refund_create.rb +67 -21
  285. data/lib/wallee-ruby-sdk/models/refund_state.rb +12 -19
  286. data/lib/wallee-ruby-sdk/models/refund_type.rb +10 -18
  287. data/lib/wallee-ruby-sdk/models/rendered_document.rb +5 -12
  288. data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +203 -0
  289. data/lib/wallee-ruby-sdk/models/resource_path.rb +29 -12
  290. data/lib/wallee-ruby-sdk/models/resource_state.rb +9 -17
  291. data/lib/wallee-ruby-sdk/models/rest_address_format.rb +227 -0
  292. data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +43 -0
  293. data/lib/wallee-ruby-sdk/models/rest_country.rb +16 -13
  294. data/lib/wallee-ruby-sdk/models/rest_country_state.rb +5 -12
  295. data/lib/wallee-ruby-sdk/models/rest_currency.rb +5 -12
  296. data/lib/wallee-ruby-sdk/models/rest_language.rb +5 -12
  297. data/lib/wallee-ruby-sdk/models/role.rb +16 -13
  298. data/lib/wallee-ruby-sdk/models/sales_channel.rb +245 -0
  299. data/lib/wallee-ruby-sdk/models/scope.rb +61 -13
  300. data/lib/wallee-ruby-sdk/models/server_error.rb +5 -12
  301. data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
  302. data/lib/wallee-ruby-sdk/models/shopify_integration.rb +470 -0
  303. data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
  304. data/lib/wallee-ruby-sdk/models/shopify_integration_subscription_app_version.rb +36 -0
  305. data/lib/wallee-ruby-sdk/models/shopify_recurring_order.rb +351 -0
  306. data/lib/wallee-ruby-sdk/models/shopify_recurring_order_state.rb +39 -0
  307. data/lib/wallee-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
  308. data/lib/wallee-ruby-sdk/models/shopify_subscriber.rb +281 -0
  309. data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
  310. data/lib/wallee-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
  311. data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +365 -0
  312. data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +546 -0
  313. data/lib/wallee-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
  314. data/lib/wallee-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
  315. data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +353 -0
  316. data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +261 -0
  317. data/lib/wallee-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
  318. data/lib/wallee-ruby-sdk/models/{entity_reference.rb → shopify_subscription_model_tax_line.rb} +27 -14
  319. data/lib/wallee-ruby-sdk/models/shopify_subscription_product.rb +471 -0
  320. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +366 -0
  321. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
  322. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
  323. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_update.rb +351 -0
  324. data/lib/wallee-ruby-sdk/models/shopify_subscription_state.rb +39 -0
  325. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension.rb +311 -0
  326. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_create.rb +226 -0
  327. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_initiator.rb +35 -0
  328. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_state.rb +35 -0
  329. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_type.rb +35 -0
  330. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
  331. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +233 -0
  332. data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +453 -0
  333. data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item.rb +233 -0
  334. data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +35 -0
  335. data/lib/wallee-ruby-sdk/models/shopify_subscription_version_state.rb +36 -0
  336. data/lib/wallee-ruby-sdk/models/shopify_subscription_weekday.rb +40 -0
  337. data/lib/wallee-ruby-sdk/models/shopify_tax_line.rb +231 -0
  338. data/lib/wallee-ruby-sdk/models/shopify_transaction.rb +301 -0
  339. data/lib/wallee-ruby-sdk/models/shopify_transaction_state.rb +38 -0
  340. data/lib/wallee-ruby-sdk/models/space.rb +91 -14
  341. data/lib/wallee-ruby-sdk/models/space_address.rb +120 -22
  342. data/lib/wallee-ruby-sdk/models/space_address_create.rb +120 -22
  343. data/lib/wallee-ruby-sdk/models/space_create.rb +52 -15
  344. data/lib/wallee-ruby-sdk/models/space_reference.rb +5 -12
  345. data/lib/wallee-ruby-sdk/models/space_reference_state.rb +11 -19
  346. data/lib/wallee-ruby-sdk/models/space_update.rb +53 -16
  347. data/lib/wallee-ruby-sdk/models/space_view.rb +29 -12
  348. data/lib/wallee-ruby-sdk/models/static_value.rb +7 -14
  349. data/lib/wallee-ruby-sdk/models/subscriber.rb +51 -13
  350. data/lib/wallee-ruby-sdk/models/subscriber_active.rb +53 -15
  351. data/lib/wallee-ruby-sdk/models/subscriber_create.rb +52 -14
  352. data/lib/wallee-ruby-sdk/models/subscriber_update.rb +53 -15
  353. data/lib/wallee-ruby-sdk/models/subscription.rb +86 -13
  354. data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +355 -0
  355. data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +333 -0
  356. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +355 -0
  357. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +355 -0
  358. data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +277 -0
  359. data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +277 -0
  360. data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +27 -17
  361. data/lib/wallee-ruby-sdk/models/subscription_charge.rb +79 -13
  362. data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +71 -15
  363. data/lib/wallee-ruby-sdk/models/subscription_charge_processing_type.rb +8 -16
  364. data/lib/wallee-ruby-sdk/models/subscription_charge_state.rb +11 -19
  365. data/lib/wallee-ruby-sdk/models/subscription_charge_type.rb +8 -16
  366. data/lib/wallee-ruby-sdk/models/subscription_component_configuration.rb +201 -0
  367. data/lib/wallee-ruby-sdk/models/subscription_component_reference_configuration.rb +201 -0
  368. data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +22 -17
  369. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +29 -12
  370. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +38 -17
  371. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_state.rb +9 -17
  372. data/lib/wallee-ruby-sdk/models/subscription_metric.rb +5 -12
  373. data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +7 -14
  374. data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +7 -14
  375. data/lib/wallee-ruby-sdk/models/subscription_metric_type.rb +7 -14
  376. data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +7 -14
  377. data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report.rb +20 -12
  378. data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +24 -16
  379. data/lib/wallee-ruby-sdk/models/subscription_pending.rb +48 -15
  380. data/lib/wallee-ruby-sdk/models/subscription_period_bill.rb +5 -12
  381. data/lib/wallee-ruby-sdk/models/subscription_period_bill_state.rb +8 -16
  382. data/lib/wallee-ruby-sdk/models/subscription_product.rb +35 -12
  383. data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +22 -14
  384. data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +36 -13
  385. data/lib/wallee-ruby-sdk/models/subscription_product_component_group.rb +5 -12
  386. data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +7 -14
  387. data/lib/wallee-ruby-sdk/models/subscription_product_component_reference.rb +20 -12
  388. data/lib/wallee-ruby-sdk/models/subscription_product_component_reference_state.rb +10 -18
  389. data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +38 -15
  390. data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +40 -13
  391. data/lib/wallee-ruby-sdk/models/subscription_product_retirement.rb +5 -12
  392. data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +6 -13
  393. data/lib/wallee-ruby-sdk/models/subscription_product_state.rb +11 -19
  394. data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +31 -13
  395. data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +19 -16
  396. data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement.rb +5 -12
  397. data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +6 -13
  398. data/lib/wallee-ruby-sdk/models/subscription_product_version_state.rb +11 -19
  399. data/lib/wallee-ruby-sdk/models/subscription_state.rb +14 -21
  400. data/lib/wallee-ruby-sdk/models/subscription_suspension.rb +20 -12
  401. data/lib/wallee-ruby-sdk/models/subscription_suspension_action.rb +8 -16
  402. data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +23 -15
  403. data/lib/wallee-ruby-sdk/models/subscription_suspension_reason.rb +9 -17
  404. data/lib/wallee-ruby-sdk/models/subscription_suspension_running.rb +20 -12
  405. data/lib/wallee-ruby-sdk/models/subscription_suspension_state.rb +8 -16
  406. data/lib/wallee-ruby-sdk/models/subscription_update.rb +33 -15
  407. data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
  408. data/lib/wallee-ruby-sdk/models/subscription_version.rb +18 -13
  409. data/lib/wallee-ruby-sdk/models/subscription_version_state.rb +12 -20
  410. data/lib/wallee-ruby-sdk/models/tax.rb +29 -12
  411. data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
  412. data/lib/wallee-ruby-sdk/models/tax_class.rb +20 -12
  413. data/lib/wallee-ruby-sdk/models/tax_create.rb +35 -14
  414. data/lib/wallee-ruby-sdk/models/tenant_database.rb +20 -12
  415. data/lib/wallee-ruby-sdk/models/token.rb +59 -12
  416. data/lib/wallee-ruby-sdk/models/token_create.rb +64 -13
  417. data/lib/wallee-ruby-sdk/models/token_update.rb +37 -14
  418. data/lib/wallee-ruby-sdk/models/token_version.rb +78 -13
  419. data/lib/wallee-ruby-sdk/models/token_version_state.rb +9 -17
  420. data/lib/wallee-ruby-sdk/models/token_version_type.rb +7 -14
  421. data/lib/wallee-ruby-sdk/models/tokenization_mode.rb +37 -0
  422. data/lib/wallee-ruby-sdk/models/transaction.rb +291 -16
  423. data/lib/wallee-ruby-sdk/models/transaction_aware_entity.rb +5 -12
  424. data/lib/wallee-ruby-sdk/models/transaction_comment.rb +296 -0
  425. data/lib/wallee-ruby-sdk/models/transaction_comment_active.rb +236 -0
  426. data/lib/wallee-ruby-sdk/models/transaction_comment_create.rb +221 -0
  427. data/lib/wallee-ruby-sdk/models/transaction_completion.rb +151 -13
  428. data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
  429. data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +9 -17
  430. data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +291 -0
  431. data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +11 -18
  432. data/lib/wallee-ruby-sdk/models/transaction_create.rb +200 -15
  433. data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +36 -0
  434. data/lib/wallee-ruby-sdk/models/transaction_group.rb +20 -12
  435. data/lib/wallee-ruby-sdk/models/transaction_group_state.rb +9 -17
  436. data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +85 -13
  437. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment.rb +296 -0
  438. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_active.rb +236 -0
  439. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_create.rb +221 -0
  440. data/lib/wallee-ruby-sdk/models/transaction_invoice_replacement.rb +62 -16
  441. data/lib/wallee-ruby-sdk/models/transaction_invoice_state.rb +13 -21
  442. data/lib/wallee-ruby-sdk/models/transaction_line_item_update_request.rb +6 -13
  443. data/lib/wallee-ruby-sdk/models/transaction_line_item_version.rb +5 -12
  444. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +137 -16
  445. data/lib/wallee-ruby-sdk/models/transaction_state.rb +16 -24
  446. data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +11 -17
  447. data/lib/wallee-ruby-sdk/models/transaction_void.rb +5 -12
  448. data/lib/wallee-ruby-sdk/models/transaction_void_mode.rb +8 -16
  449. data/lib/wallee-ruby-sdk/models/transaction_void_state.rb +10 -18
  450. data/lib/wallee-ruby-sdk/models/{email_template_type.rb → two_factor_authentication_type.rb} +18 -71
  451. data/lib/wallee-ruby-sdk/models/unencrypted_card_data.rb +284 -0
  452. data/lib/wallee-ruby-sdk/models/unencrypted_card_data_create.rb +293 -0
  453. data/lib/wallee-ruby-sdk/models/user.rb +5 -12
  454. data/lib/wallee-ruby-sdk/models/user_account_role.rb +5 -12
  455. data/lib/wallee-ruby-sdk/models/user_space_role.rb +5 -12
  456. data/lib/wallee-ruby-sdk/models/user_type.rb +11 -19
  457. data/lib/wallee-ruby-sdk/models/webhook_identity.rb +20 -12
  458. data/lib/wallee-ruby-sdk/models/webhook_listener.rb +20 -12
  459. data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +44 -41
  460. data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +7 -24
  461. data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +45 -15
  462. data/lib/wallee-ruby-sdk/models/webhook_url.rb +44 -12
  463. data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +44 -12
  464. data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +46 -14
  465. data/lib/wallee-ruby-sdk/version.rb +1 -5
  466. data/test/{transactioncreate.rb → transaction_create_service_test.rb} +2 -2
  467. data/test/transaction_payment_page_service_test.rb +91 -0
  468. data/wallee-ruby-sdk.gemspec +5 -8
  469. metadata +262 -87
  470. data/lib/wallee-ruby-sdk/services/email_sender_service_api.rb +0 -219
  471. data/lib/wallee-ruby-sdk/services/email_sender_type_service_api.rb +0 -143
  472. data/lib/wallee-ruby-sdk/services/email_template_type_service_api.rb +0 -143
@@ -0,0 +1,36 @@
1
+ =begin
2
+ The wallee API allows an easy interaction with the wallee web service.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ =end
17
+
18
+ require 'date'
19
+
20
+ module Wallee
21
+ class TransactionEnvironmentSelectionStrategy
22
+
23
+ FORCE_TEST_ENVIRONMENT = 'FORCE_TEST_ENVIRONMENT'.freeze
24
+ FORCE_PRODUCTION_ENVIRONMENT = 'FORCE_PRODUCTION_ENVIRONMENT'.freeze
25
+ USE_CONFIGURATION = 'USE_CONFIGURATION'.freeze
26
+
27
+ # Builds the enum from string
28
+ # @param [String] The enum value in the form of the string
29
+ # @return [String] The enum value
30
+ def build_from_hash(value)
31
+ constantValues = TransactionEnvironmentSelectionStrategy.constants.select { |c| TransactionEnvironmentSelectionStrategy::const_get(c) == value }
32
+ raise "Invalid ENUM value #{value} for class #TransactionEnvironmentSelectionStrategy" if constantValues.empty?
33
+ value
34
+ end
35
+ end
36
+ end
@@ -1,10 +1,6 @@
1
1
  =begin
2
- Wallee API: 1.0.0
3
-
4
2
  The wallee API allows an easy interaction with the wallee web service.
5
3
 
6
-
7
-
8
4
  Licensed under the Apache License, Version 2.0 (the "License");
9
5
  you may not use this file except in compliance with the License.
10
6
  You may obtain a copy of the License at
@@ -48,7 +44,6 @@ module Wallee
48
44
  # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
49
45
  attr_accessor :version
50
46
 
51
-
52
47
  # Attribute mapping from ruby-style variable name to JSON key.
53
48
  def self.attribute_map
54
49
  {
@@ -83,7 +78,7 @@ module Wallee
83
78
  return unless attributes.is_a?(Hash)
84
79
 
85
80
  # convert string to symbol for hash key
86
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
81
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
87
82
 
88
83
  if attributes.has_key?(:'beginDate')
89
84
  self.begin_date = attributes[:'beginDate']
@@ -116,20 +111,34 @@ module Wallee
116
111
  if attributes.has_key?(:'version')
117
112
  self.version = attributes[:'version']
118
113
  end
119
-
120
114
  end
121
115
 
122
116
  # Show invalid properties with the reasons. Usually used together with valid?
123
- # @return Array for valid properies with the reasons
117
+ # @return Array for valid properties with the reasons
124
118
  def list_invalid_properties
125
119
  invalid_properties = Array.new
126
- return invalid_properties
120
+ if !@customer_id.nil? && @customer_id.to_s.length > 100
121
+ invalid_properties.push('invalid value for "customer_id", the character length must be smaller than or equal to 100.')
122
+ end
123
+
124
+ invalid_properties
127
125
  end
128
126
 
129
127
  # Check to see if the all the properties in the model are valid
130
128
  # @return true if the model is valid
131
129
  def valid?
132
- return true
130
+ return false if !@customer_id.nil? && @customer_id.to_s.length > 100
131
+ true
132
+ end
133
+
134
+ # Custom attribute writer method with validation
135
+ # @param [Object] customer_id Value to be assigned
136
+ def customer_id=(customer_id)
137
+ if !customer_id.nil? && customer_id.to_s.length > 100
138
+ fail ArgumentError, 'invalid value for "customer_id", the character length must be smaller than or equal to 100.'
139
+ end
140
+
141
+ @customer_id = customer_id
133
142
  end
134
143
 
135
144
  # Checks equality by comparing each attribute.
@@ -166,7 +175,7 @@ module Wallee
166
175
  return nil unless attributes.is_a?(Hash)
167
176
  self.class.swagger_types.each_pair do |key, type|
168
177
  if type =~ /\AArray<(.*)>/i
169
- # check to ensure the input is an array given that the the attribute
178
+ # check to ensure the input is an array given that the attribute
170
179
  # is documented as an array but the input is not
171
180
  if attributes[self.class.attribute_map[key]].is_a?(Array)
172
181
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
@@ -264,5 +273,4 @@ module Wallee
264
273
  end
265
274
 
266
275
  end
267
-
268
276
  end
@@ -1,10 +1,6 @@
1
1
  =begin
2
- Wallee API: 1.0.0
3
-
4
2
  The wallee API allows an easy interaction with the wallee web service.
5
3
 
6
-
7
-
8
4
  Licensed under the Apache License, Version 2.0 (the "License");
9
5
  you may not use this file except in compliance with the License.
10
6
  You may obtain a copy of the License at
@@ -24,21 +20,17 @@ require 'date'
24
20
  module Wallee
25
21
  class TransactionGroupState
26
22
 
27
- PENDING = "PENDING".freeze
28
- FAILED = "FAILED".freeze
29
- SUCCESSFUL = "SUCCESSFUL".freeze
30
-
31
- # Builds the object from hash
32
- # @param [Hash] attributes Model attributes in the form of hash
33
- # @return [Object] Returns the model itself
23
+ PENDING = 'PENDING'.freeze
24
+ FAILED = 'FAILED'.freeze
25
+ SUCCESSFUL = 'SUCCESSFUL'.freeze
26
+
27
+ # Builds the enum from string
28
+ # @param [String] The enum value in the form of the string
29
+ # @return [String] The enum value
34
30
  def build_from_hash(value)
35
-
36
- consantValues = TransactionGroupState.constants.select{|c| c.to_s == value}
37
- raise "Invalid ENUM value #{value} for class #TransactionGroupState" if consantValues.empty?
38
-
31
+ constantValues = TransactionGroupState.constants.select { |c| TransactionGroupState::const_get(c) == value }
32
+ raise "Invalid ENUM value #{value} for class #TransactionGroupState" if constantValues.empty?
39
33
  value
40
-
41
34
  end
42
35
  end
43
-
44
36
  end
@@ -1,10 +1,6 @@
1
1
  =begin
2
- Wallee API: 1.0.0
3
-
4
2
  The wallee API allows an easy interaction with the wallee web service.
5
3
 
6
-
7
-
8
4
  Licensed under the Apache License, Version 2.0 (the "License");
9
5
  you may not use this file except in compliance with the License.
10
6
  You may obtain a copy of the License at
@@ -36,12 +32,18 @@ module Wallee
36
32
  #
37
33
  attr_accessor :amount
38
34
 
35
+ #
36
+ attr_accessor :billing_address
37
+
39
38
  #
40
39
  attr_accessor :completion
41
40
 
42
41
  # The date on which the invoice is created on.
43
42
  attr_accessor :created_on
44
43
 
44
+ # The id of the user which marked the invoice as derecognized.
45
+ attr_accessor :derecognized_by
46
+
45
47
  # The date on which the invoice is marked as derecognized.
46
48
  attr_accessor :derecognized_on
47
49
 
@@ -49,6 +51,9 @@ module Wallee
49
51
  attr_accessor :due_on
50
52
 
51
53
  #
54
+ attr_accessor :environment
55
+
56
+ # The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.
52
57
  attr_accessor :external_id
53
58
 
54
59
  #
@@ -78,10 +83,12 @@ module Wallee
78
83
  #
79
84
  attr_accessor :tax_amount
80
85
 
86
+ #
87
+ attr_accessor :time_zone
88
+
81
89
  # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
82
90
  attr_accessor :version
83
91
 
84
-
85
92
  # Attribute mapping from ruby-style variable name to JSON key.
86
93
  def self.attribute_map
87
94
  {
@@ -89,10 +96,13 @@ module Wallee
89
96
  :'linked_space_id' => :'linkedSpaceId',
90
97
  :'linked_transaction' => :'linkedTransaction',
91
98
  :'amount' => :'amount',
99
+ :'billing_address' => :'billingAddress',
92
100
  :'completion' => :'completion',
93
101
  :'created_on' => :'createdOn',
102
+ :'derecognized_by' => :'derecognizedBy',
94
103
  :'derecognized_on' => :'derecognizedOn',
95
104
  :'due_on' => :'dueOn',
105
+ :'environment' => :'environment',
96
106
  :'external_id' => :'externalId',
97
107
  :'language' => :'language',
98
108
  :'line_items' => :'lineItems',
@@ -103,6 +113,7 @@ module Wallee
103
113
  :'space_view_id' => :'spaceViewId',
104
114
  :'state' => :'state',
105
115
  :'tax_amount' => :'taxAmount',
116
+ :'time_zone' => :'timeZone',
106
117
  :'version' => :'version'
107
118
  }
108
119
  end
@@ -114,10 +125,13 @@ module Wallee
114
125
  :'linked_space_id' => :'Integer',
115
126
  :'linked_transaction' => :'Integer',
116
127
  :'amount' => :'Float',
128
+ :'billing_address' => :'Address',
117
129
  :'completion' => :'TransactionCompletion',
118
130
  :'created_on' => :'DateTime',
131
+ :'derecognized_by' => :'Integer',
119
132
  :'derecognized_on' => :'DateTime',
120
133
  :'due_on' => :'DateTime',
134
+ :'environment' => :'Environment',
121
135
  :'external_id' => :'String',
122
136
  :'language' => :'String',
123
137
  :'line_items' => :'Array<LineItem>',
@@ -128,6 +142,7 @@ module Wallee
128
142
  :'space_view_id' => :'Integer',
129
143
  :'state' => :'TransactionInvoiceState',
130
144
  :'tax_amount' => :'Float',
145
+ :'time_zone' => :'String',
131
146
  :'version' => :'Integer'
132
147
  }
133
148
  end
@@ -138,7 +153,7 @@ module Wallee
138
153
  return unless attributes.is_a?(Hash)
139
154
 
140
155
  # convert string to symbol for hash key
141
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
156
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
142
157
 
143
158
  if attributes.has_key?(:'id')
144
159
  self.id = attributes[:'id']
@@ -156,6 +171,10 @@ module Wallee
156
171
  self.amount = attributes[:'amount']
157
172
  end
158
173
 
174
+ if attributes.has_key?(:'billingAddress')
175
+ self.billing_address = attributes[:'billingAddress']
176
+ end
177
+
159
178
  if attributes.has_key?(:'completion')
160
179
  self.completion = attributes[:'completion']
161
180
  end
@@ -164,6 +183,10 @@ module Wallee
164
183
  self.created_on = attributes[:'createdOn']
165
184
  end
166
185
 
186
+ if attributes.has_key?(:'derecognizedBy')
187
+ self.derecognized_by = attributes[:'derecognizedBy']
188
+ end
189
+
167
190
  if attributes.has_key?(:'derecognizedOn')
168
191
  self.derecognized_on = attributes[:'derecognizedOn']
169
192
  end
@@ -172,6 +195,10 @@ module Wallee
172
195
  self.due_on = attributes[:'dueOn']
173
196
  end
174
197
 
198
+ if attributes.has_key?(:'environment')
199
+ self.environment = attributes[:'environment']
200
+ end
201
+
175
202
  if attributes.has_key?(:'externalId')
176
203
  self.external_id = attributes[:'externalId']
177
204
  end
@@ -214,23 +241,65 @@ module Wallee
214
241
  self.tax_amount = attributes[:'taxAmount']
215
242
  end
216
243
 
244
+ if attributes.has_key?(:'timeZone')
245
+ self.time_zone = attributes[:'timeZone']
246
+ end
247
+
217
248
  if attributes.has_key?(:'version')
218
249
  self.version = attributes[:'version']
219
250
  end
220
-
221
251
  end
222
252
 
223
253
  # Show invalid properties with the reasons. Usually used together with valid?
224
- # @return Array for valid properies with the reasons
254
+ # @return Array for valid properties with the reasons
225
255
  def list_invalid_properties
226
256
  invalid_properties = Array.new
227
- return invalid_properties
257
+ if !@external_id.nil? && @external_id.to_s.length > 100
258
+ invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
259
+ end
260
+
261
+ if !@external_id.nil? && @external_id.to_s.length < 1
262
+ invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
263
+ end
264
+
265
+ if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
266
+ invalid_properties.push('invalid value for "merchant_reference", the character length must be smaller than or equal to 100.')
267
+ end
268
+
269
+ invalid_properties
228
270
  end
229
271
 
230
272
  # Check to see if the all the properties in the model are valid
231
273
  # @return true if the model is valid
232
274
  def valid?
233
- return true
275
+ return false if !@external_id.nil? && @external_id.to_s.length > 100
276
+ return false if !@external_id.nil? && @external_id.to_s.length < 1
277
+ return false if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
278
+ true
279
+ end
280
+
281
+ # Custom attribute writer method with validation
282
+ # @param [Object] external_id Value to be assigned
283
+ def external_id=(external_id)
284
+ if !external_id.nil? && external_id.to_s.length > 100
285
+ fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
286
+ end
287
+
288
+ if !external_id.nil? && external_id.to_s.length < 1
289
+ fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
290
+ end
291
+
292
+ @external_id = external_id
293
+ end
294
+
295
+ # Custom attribute writer method with validation
296
+ # @param [Object] merchant_reference Value to be assigned
297
+ def merchant_reference=(merchant_reference)
298
+ if !merchant_reference.nil? && merchant_reference.to_s.length > 100
299
+ fail ArgumentError, 'invalid value for "merchant_reference", the character length must be smaller than or equal to 100.'
300
+ end
301
+
302
+ @merchant_reference = merchant_reference
234
303
  end
235
304
 
236
305
  # Checks equality by comparing each attribute.
@@ -242,10 +311,13 @@ module Wallee
242
311
  linked_space_id == o.linked_space_id &&
243
312
  linked_transaction == o.linked_transaction &&
244
313
  amount == o.amount &&
314
+ billing_address == o.billing_address &&
245
315
  completion == o.completion &&
246
316
  created_on == o.created_on &&
317
+ derecognized_by == o.derecognized_by &&
247
318
  derecognized_on == o.derecognized_on &&
248
319
  due_on == o.due_on &&
320
+ environment == o.environment &&
249
321
  external_id == o.external_id &&
250
322
  language == o.language &&
251
323
  line_items == o.line_items &&
@@ -256,6 +328,7 @@ module Wallee
256
328
  space_view_id == o.space_view_id &&
257
329
  state == o.state &&
258
330
  tax_amount == o.tax_amount &&
331
+ time_zone == o.time_zone &&
259
332
  version == o.version
260
333
  end
261
334
 
@@ -268,7 +341,7 @@ module Wallee
268
341
  # Calculates hash code according to all attributes.
269
342
  # @return [Fixnum] Hash code
270
343
  def hash
271
- [id, linked_space_id, linked_transaction, amount, completion, created_on, derecognized_on, due_on, external_id, language, line_items, merchant_reference, outstanding_amount, paid_on, planned_purge_date, space_view_id, state, tax_amount, version].hash
344
+ [id, linked_space_id, linked_transaction, amount, billing_address, completion, created_on, derecognized_by, derecognized_on, due_on, environment, external_id, language, line_items, merchant_reference, outstanding_amount, paid_on, planned_purge_date, space_view_id, state, tax_amount, time_zone, version].hash
272
345
  end
273
346
 
274
347
  # Builds the object from hash
@@ -278,7 +351,7 @@ module Wallee
278
351
  return nil unless attributes.is_a?(Hash)
279
352
  self.class.swagger_types.each_pair do |key, type|
280
353
  if type =~ /\AArray<(.*)>/i
281
- # check to ensure the input is an array given that the the attribute
354
+ # check to ensure the input is an array given that the attribute
282
355
  # is documented as an array but the input is not
283
356
  if attributes[self.class.attribute_map[key]].is_a?(Array)
284
357
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
@@ -376,5 +449,4 @@ module Wallee
376
449
  end
377
450
 
378
451
  end
379
-
380
452
  end
@@ -0,0 +1,296 @@
1
+ =begin
2
+ The wallee API allows an easy interaction with the wallee web service.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ =end
17
+
18
+ require 'date'
19
+
20
+ module Wallee
21
+ #
22
+ class TransactionInvoiceComment
23
+ #
24
+ attr_accessor :content
25
+
26
+ #
27
+ attr_accessor :created_by
28
+
29
+ # The created on date indicates the date on which the entity was stored into the database.
30
+ attr_accessor :created_on
31
+
32
+ #
33
+ attr_accessor :edited_by
34
+
35
+ # The date on which the comment was last edited.
36
+ attr_accessor :edited_on
37
+
38
+ # The ID is the primary key of the entity. The ID identifies the entity uniquely.
39
+ attr_accessor :id
40
+
41
+ # The linked space id holds the ID of the space to which the entity belongs to.
42
+ attr_accessor :linked_space_id
43
+
44
+ #
45
+ attr_accessor :pinned
46
+
47
+ #
48
+ attr_accessor :transaction_invoice
49
+
50
+ # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
51
+ attr_accessor :version
52
+
53
+ # Attribute mapping from ruby-style variable name to JSON key.
54
+ def self.attribute_map
55
+ {
56
+ :'content' => :'content',
57
+ :'created_by' => :'createdBy',
58
+ :'created_on' => :'createdOn',
59
+ :'edited_by' => :'editedBy',
60
+ :'edited_on' => :'editedOn',
61
+ :'id' => :'id',
62
+ :'linked_space_id' => :'linkedSpaceId',
63
+ :'pinned' => :'pinned',
64
+ :'transaction_invoice' => :'transactionInvoice',
65
+ :'version' => :'version'
66
+ }
67
+ end
68
+
69
+ # Attribute type mapping.
70
+ def self.swagger_types
71
+ {
72
+ :'content' => :'String',
73
+ :'created_by' => :'Integer',
74
+ :'created_on' => :'DateTime',
75
+ :'edited_by' => :'Integer',
76
+ :'edited_on' => :'DateTime',
77
+ :'id' => :'Integer',
78
+ :'linked_space_id' => :'Integer',
79
+ :'pinned' => :'BOOLEAN',
80
+ :'transaction_invoice' => :'Integer',
81
+ :'version' => :'Integer'
82
+ }
83
+ end
84
+
85
+ # Initializes the object
86
+ # @param [Hash] attributes Model attributes in the form of hash
87
+ def initialize(attributes = {})
88
+ return unless attributes.is_a?(Hash)
89
+
90
+ # convert string to symbol for hash key
91
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
92
+
93
+ if attributes.has_key?(:'content')
94
+ self.content = attributes[:'content']
95
+ end
96
+
97
+ if attributes.has_key?(:'createdBy')
98
+ self.created_by = attributes[:'createdBy']
99
+ end
100
+
101
+ if attributes.has_key?(:'createdOn')
102
+ self.created_on = attributes[:'createdOn']
103
+ end
104
+
105
+ if attributes.has_key?(:'editedBy')
106
+ self.edited_by = attributes[:'editedBy']
107
+ end
108
+
109
+ if attributes.has_key?(:'editedOn')
110
+ self.edited_on = attributes[:'editedOn']
111
+ end
112
+
113
+ if attributes.has_key?(:'id')
114
+ self.id = attributes[:'id']
115
+ end
116
+
117
+ if attributes.has_key?(:'linkedSpaceId')
118
+ self.linked_space_id = attributes[:'linkedSpaceId']
119
+ end
120
+
121
+ if attributes.has_key?(:'pinned')
122
+ self.pinned = attributes[:'pinned']
123
+ end
124
+
125
+ if attributes.has_key?(:'transactionInvoice')
126
+ self.transaction_invoice = attributes[:'transactionInvoice']
127
+ end
128
+
129
+ if attributes.has_key?(:'version')
130
+ self.version = attributes[:'version']
131
+ end
132
+ end
133
+
134
+ # Show invalid properties with the reasons. Usually used together with valid?
135
+ # @return Array for valid properties with the reasons
136
+ def list_invalid_properties
137
+ invalid_properties = Array.new
138
+ if !@content.nil? && @content.to_s.length > 262144
139
+ invalid_properties.push('invalid value for "content", the character length must be smaller than or equal to 262144.')
140
+ end
141
+
142
+ invalid_properties
143
+ end
144
+
145
+ # Check to see if the all the properties in the model are valid
146
+ # @return true if the model is valid
147
+ def valid?
148
+ return false if !@content.nil? && @content.to_s.length > 262144
149
+ true
150
+ end
151
+
152
+ # Custom attribute writer method with validation
153
+ # @param [Object] content Value to be assigned
154
+ def content=(content)
155
+ if !content.nil? && content.to_s.length > 262144
156
+ fail ArgumentError, 'invalid value for "content", the character length must be smaller than or equal to 262144.'
157
+ end
158
+
159
+ @content = content
160
+ end
161
+
162
+ # Checks equality by comparing each attribute.
163
+ # @param [Object] Object to be compared
164
+ def ==(o)
165
+ return true if self.equal?(o)
166
+ self.class == o.class &&
167
+ content == o.content &&
168
+ created_by == o.created_by &&
169
+ created_on == o.created_on &&
170
+ edited_by == o.edited_by &&
171
+ edited_on == o.edited_on &&
172
+ id == o.id &&
173
+ linked_space_id == o.linked_space_id &&
174
+ pinned == o.pinned &&
175
+ transaction_invoice == o.transaction_invoice &&
176
+ version == o.version
177
+ end
178
+
179
+ # @see the `==` method
180
+ # @param [Object] Object to be compared
181
+ def eql?(o)
182
+ self == o
183
+ end
184
+
185
+ # Calculates hash code according to all attributes.
186
+ # @return [Fixnum] Hash code
187
+ def hash
188
+ [content, created_by, created_on, edited_by, edited_on, id, linked_space_id, pinned, transaction_invoice, version].hash
189
+ end
190
+
191
+ # Builds the object from hash
192
+ # @param [Hash] attributes Model attributes in the form of hash
193
+ # @return [Object] Returns the model itself
194
+ def build_from_hash(attributes)
195
+ return nil unless attributes.is_a?(Hash)
196
+ self.class.swagger_types.each_pair do |key, type|
197
+ if type =~ /\AArray<(.*)>/i
198
+ # check to ensure the input is an array given that the attribute
199
+ # is documented as an array but the input is not
200
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
201
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
202
+ end
203
+ elsif !attributes[self.class.attribute_map[key]].nil?
204
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
205
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
206
+ end
207
+
208
+ self
209
+ end
210
+
211
+ # Deserializes the data based on type
212
+ # @param string type Data type
213
+ # @param string value Value to be deserialized
214
+ # @return [Object] Deserialized data
215
+ def _deserialize(type, value)
216
+ case type.to_sym
217
+ when :DateTime
218
+ DateTime.parse(value)
219
+ when :Date
220
+ Date.parse(value)
221
+ when :String
222
+ value.to_s
223
+ when :Integer
224
+ value.to_i
225
+ when :Float
226
+ value.to_f
227
+ when :BOOLEAN
228
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
229
+ true
230
+ else
231
+ false
232
+ end
233
+ when :Object
234
+ # generic object (usually a Hash), return directly
235
+ value
236
+ when /\AArray<(?<inner_type>.+)>\z/
237
+ inner_type = Regexp.last_match[:inner_type]
238
+ value.map { |v| _deserialize(inner_type, v) }
239
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
240
+ k_type = Regexp.last_match[:k_type]
241
+ v_type = Regexp.last_match[:v_type]
242
+ {}.tap do |hash|
243
+ value.each do |k, v|
244
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
245
+ end
246
+ end
247
+ else # model
248
+ temp_model = Wallee.const_get(type).new
249
+ temp_model.build_from_hash(value)
250
+ end
251
+ end
252
+
253
+ # Returns the string representation of the object
254
+ # @return [String] String presentation of the object
255
+ def to_s
256
+ to_hash.to_s
257
+ end
258
+
259
+ # to_body is an alias to to_hash (backward compatibility)
260
+ # @return [Hash] Returns the object in the form of hash
261
+ def to_body
262
+ to_hash
263
+ end
264
+
265
+ # Returns the object in the form of hash
266
+ # @return [Hash] Returns the object in the form of hash
267
+ def to_hash
268
+ hash = {}
269
+ self.class.attribute_map.each_pair do |attr, param|
270
+ value = self.send(attr)
271
+ next if value.nil?
272
+ hash[param] = _to_hash(value)
273
+ end
274
+ hash
275
+ end
276
+
277
+ # Outputs non-array value in the form of hash
278
+ # For object, use to_hash. Otherwise, just return the value
279
+ # @param [Object] value Any valid value
280
+ # @return [Hash] Returns the value in the form of hash
281
+ def _to_hash(value)
282
+ if value.is_a?(Array)
283
+ value.compact.map{ |v| _to_hash(v) }
284
+ elsif value.is_a?(Hash)
285
+ {}.tap do |hash|
286
+ value.each { |k, v| hash[k] = _to_hash(v) }
287
+ end
288
+ elsif value.respond_to? :to_hash
289
+ value.to_hash
290
+ else
291
+ value
292
+ end
293
+ end
294
+
295
+ end
296
+ end