wallee-ruby-sdk 1.0.0 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (650) 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 +264 -108
  6. data/lib/wallee-ruby-sdk/{services → api}/account_service_api.rb +37 -41
  7. data/lib/{wallee/services → wallee-ruby-sdk/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/services → wallee-ruby-sdk/api}/charge_attempt_service_api.rb +22 -26
  10. data/lib/wallee-ruby-sdk/{services/email_template_service_api.rb → api/charge_flow_level_payment_link_service_api.rb} +36 -40
  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/services → wallee-ruby-sdk/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/services → wallee-ruby-sdk/api}/currency_service_api.rb +7 -11
  17. data/lib/{wallee/services/subscription_product_period_fee_service_api.rb → wallee-ruby-sdk/api/customer_address_service_api.rb} +132 -74
  18. data/lib/wallee-ruby-sdk/{services/transaction_invoice_service_api.rb → api/customer_comment_service_api.rb} +185 -136
  19. data/lib/wallee-ruby-sdk/{services/subscriber_service_api.rb → api/customer_service_api.rb} +68 -72
  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/services/permission_service_api.rb → wallee-ruby-sdk/api/debt_collector_service_api.rb} +26 -30
  23. data/lib/{wallee/services → wallee-ruby-sdk/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/services → wallee-ruby-sdk/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/services → wallee-ruby-sdk/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/services → wallee-ruby-sdk/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/services → wallee-ruby-sdk/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/services/token_service_api.rb → wallee-ruby-sdk/api/payment_link_service_api.rb} +68 -72
  41. data/lib/{wallee/services/payment_method_service_api.rb → wallee-ruby-sdk/api/payment_method_brand_service_api.rb} +26 -30
  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/charge_attempt_service_api.rb → api/payment_terminal_service_api.rb} +36 -40
  47. data/lib/wallee-ruby-sdk/{services → api}/permission_service_api.rb +15 -19
  48. data/lib/{wallee/services/webhook_listener_service_api.rb → wallee-ruby-sdk/api/refund_comment_service_api.rb} +165 -103
  49. data/lib/{wallee/services → wallee-ruby-sdk/api}/refund_service_api.rb +125 -61
  50. data/lib/{wallee/services/charge_flow_level_service_api.rb → wallee-ruby-sdk/api/shopify_recurring_order_service_api.rb} +57 -63
  51. data/lib/wallee-ruby-sdk/{services/manual_task_service_api.rb → api/shopify_subscriber_service_api.rb} +36 -40
  52. data/lib/{wallee/services/subscription_product_service_api.rb → wallee-ruby-sdk/api/shopify_subscription_product_service_api.rb} +62 -66
  53. data/lib/wallee-ruby-sdk/{services/subscription_charge_service_api.rb → api/shopify_subscription_service_api.rb} +97 -97
  54. data/lib/wallee-ruby-sdk/{services/subscription_suspension_service_api.rb → api/shopify_subscription_suspension_service_api.rb} +77 -82
  55. data/lib/wallee-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
  56. data/lib/{wallee/services → wallee-ruby-sdk/api}/space_service_api.rb +37 -41
  57. data/lib/wallee-ruby-sdk/{services → api}/static_value_service_api.rb +15 -19
  58. data/lib/{wallee/services → wallee-ruby-sdk/api}/subscriber_service_api.rb +43 -47
  59. data/lib/{wallee/services/subscription_metric_service_api.rb → wallee-ruby-sdk/api/subscription_affiliate_service_api.rb} +72 -76
  60. data/lib/{wallee/services → wallee-ruby-sdk/api}/subscription_charge_service_api.rb +38 -42
  61. data/lib/{wallee/services → wallee-ruby-sdk/api}/subscription_ledger_entry_service_api.rb +29 -33
  62. data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_service_api.rb +43 -47
  63. data/lib/{wallee/services → wallee-ruby-sdk/api}/subscription_metric_usage_service_api.rb +29 -33
  64. data/lib/wallee-ruby-sdk/{services → api}/subscription_period_bill_service_api.rb +28 -32
  65. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_group_service_api.rb +43 -47
  66. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_service_api.rb +43 -47
  67. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_fee_tier_service_api.rb +43 -47
  68. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_metered_fee_service_api.rb +43 -47
  69. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_period_fee_service_api.rb +43 -47
  70. data/lib/{wallee/services → wallee-ruby-sdk/api}/subscription_product_retirement_service_api.rb +29 -33
  71. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_service_api.rb +36 -40
  72. data/lib/{wallee/services → wallee-ruby-sdk/api}/subscription_product_setup_fee_service_api.rb +43 -47
  73. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_retirement_service_api.rb +29 -33
  74. data/lib/{wallee/services → wallee-ruby-sdk/api}/subscription_product_version_service_api.rb +43 -47
  75. data/lib/{wallee/services → wallee-ruby-sdk/api}/subscription_service_api.rb +178 -115
  76. data/lib/{wallee/services → wallee-ruby-sdk/api}/subscription_suspension_service_api.rb +36 -40
  77. data/lib/wallee-ruby-sdk/{services → api}/subscription_version_service_api.rb +22 -26
  78. data/lib/wallee-ruby-sdk/{services → api}/token_service_api.rb +109 -50
  79. data/lib/wallee-ruby-sdk/{services → api}/token_version_service_api.rb +31 -35
  80. data/lib/wallee-ruby-sdk/api/transaction_comment_service_api.rb +464 -0
  81. data/lib/wallee-ruby-sdk/{services → api}/transaction_completion_service_api.rb +164 -44
  82. data/lib/wallee-ruby-sdk/{services/currency_service_api.rb → api/transaction_iframe_service_api.rb} +26 -20
  83. data/lib/{wallee/services/subscription_product_fee_tier_service_api.rb → wallee-ruby-sdk/api/transaction_invoice_comment_service_api.rb} +165 -103
  84. data/lib/{wallee/services → wallee-ruby-sdk/api}/transaction_invoice_service_api.rb +186 -59
  85. data/lib/{wallee/services/country_service_api.rb → wallee-ruby-sdk/api/transaction_lightbox_service_api.rb} +26 -20
  86. data/lib/wallee-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +86 -0
  87. data/lib/wallee-ruby-sdk/api/transaction_payment_page_service_api.rb +91 -0
  88. data/lib/wallee-ruby-sdk/{services → api}/transaction_service_api.rb +273 -326
  89. data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +172 -0
  90. data/lib/{wallee/services → wallee-ruby-sdk/api}/transaction_void_service_api.rb +40 -44
  91. data/lib/wallee-ruby-sdk/api/user_account_role_service_api.rb +219 -0
  92. data/lib/wallee-ruby-sdk/api/user_space_role_service_api.rb +216 -0
  93. data/lib/wallee-ruby-sdk/{services → api}/webhook_listener_service_api.rb +43 -47
  94. data/lib/wallee-ruby-sdk/{services → api}/webhook_url_service_api.rb +43 -47
  95. data/lib/wallee-ruby-sdk/api_client.rb +2 -4
  96. data/lib/wallee-ruby-sdk/api_error.rb +0 -4
  97. data/lib/wallee-ruby-sdk/configuration.rb +0 -4
  98. data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +224 -0
  99. data/lib/wallee-ruby-sdk/models/abstract_application_user_update.rb +225 -0
  100. data/lib/wallee-ruby-sdk/models/{space_address_setter.rb → abstract_customer_active.rb} +90 -96
  101. data/lib/wallee-ruby-sdk/models/abstract_customer_address_active.rb +200 -0
  102. data/lib/{wallee/models/tax_create.rb → wallee-ruby-sdk/models/abstract_customer_comment_active.rb} +26 -39
  103. data/lib/{wallee/models/subscription_change_request.rb → wallee-ruby-sdk/models/abstract_debt_collection_case_update.rb} +66 -54
  104. data/lib/{wallee/models/human_user_create.rb → wallee-ruby-sdk/models/abstract_human_user_update.rb} +91 -99
  105. data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +309 -0
  106. data/lib/{wallee/models/payment_connector_feature.rb → wallee-ruby-sdk/models/abstract_refund_comment_active.rb} +28 -41
  107. data/lib/wallee-ruby-sdk/models/abstract_shopify_subscription_product_active.rb +330 -0
  108. data/lib/{wallee/models/space.rb → wallee-ruby-sdk/models/abstract_space_update.rb} +46 -100
  109. data/lib/{wallee/models/subscriber.rb → wallee-ruby-sdk/models/abstract_subscriber_update.rb} +64 -75
  110. data/lib/{wallee/models/database_translated_string_item.rb → wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb} +54 -26
  111. data/lib/{wallee/models/line_item_attribute_create.rb → wallee-ruby-sdk/models/abstract_subscription_metric_update.rb} +19 -27
  112. data/lib/{wallee/models/subscription_product.rb → wallee-ruby-sdk/models/abstract_subscription_product_active.rb} +25 -78
  113. data/lib/{wallee/models/token.rb → wallee-ruby-sdk/models/abstract_token_update.rb} +47 -85
  114. data/lib/{wallee/models/server_error.rb → wallee-ruby-sdk/models/abstract_transaction_comment_active.rb} +29 -42
  115. data/lib/wallee-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +205 -0
  116. data/lib/{wallee/models/transaction_pending.rb → wallee-ruby-sdk/models/abstract_transaction_pending.rb} +81 -289
  117. data/lib/{wallee/models/webhook_identity.rb → wallee-ruby-sdk/models/abstract_webhook_listener_update.rb} +42 -53
  118. data/lib/{wallee/models/rest_country_state.rb → wallee-ruby-sdk/models/abstract_webhook_url_update.rb} +43 -46
  119. data/lib/wallee-ruby-sdk/models/account.rb +60 -13
  120. data/lib/wallee-ruby-sdk/models/account_create.rb +45 -103
  121. data/lib/wallee-ruby-sdk/models/account_state.rb +12 -20
  122. data/lib/wallee-ruby-sdk/models/account_type.rb +9 -17
  123. data/lib/wallee-ruby-sdk/models/account_update.rb +39 -92
  124. data/lib/wallee-ruby-sdk/models/address.rb +241 -23
  125. data/lib/wallee-ruby-sdk/models/address_create.rb +241 -23
  126. data/lib/wallee-ruby-sdk/models/application_user.rb +32 -14
  127. data/lib/wallee-ruby-sdk/models/application_user_create.rb +34 -76
  128. data/lib/wallee-ruby-sdk/models/application_user_create_with_mac_key.rb +31 -13
  129. data/lib/wallee-ruby-sdk/models/application_user_update.rb +47 -69
  130. data/lib/wallee-ruby-sdk/models/charge.rb +26 -13
  131. data/lib/wallee-ruby-sdk/models/charge_attempt.rb +51 -13
  132. data/lib/wallee-ruby-sdk/models/charge_attempt_environment.rb +8 -16
  133. data/lib/wallee-ruby-sdk/models/charge_attempt_state.rb +9 -17
  134. data/lib/wallee-ruby-sdk/models/charge_flow.rb +5 -12
  135. data/lib/wallee-ruby-sdk/models/charge_flow_level.rb +5 -12
  136. data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration.rb +20 -12
  137. data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration_type.rb +20 -15
  138. data/lib/{wallee/models/transaction_aware_entity.rb → wallee-ruby-sdk/models/charge_flow_level_payment_link.rb} +28 -15
  139. data/lib/wallee-ruby-sdk/models/charge_flow_level_state.rb +9 -17
  140. data/lib/wallee-ruby-sdk/models/charge_state.rb +9 -17
  141. data/lib/wallee-ruby-sdk/models/charge_type.rb +10 -17
  142. data/lib/wallee-ruby-sdk/models/client_error.rb +5 -12
  143. data/lib/wallee-ruby-sdk/models/client_error_type.rb +9 -17
  144. data/lib/{wallee/models/static_value.rb → wallee-ruby-sdk/models/completion_line_item.rb} +43 -51
  145. data/lib/wallee-ruby-sdk/models/completion_line_item_create.rb +245 -0
  146. data/lib/wallee-ruby-sdk/models/condition.rb +20 -12
  147. data/lib/wallee-ruby-sdk/models/condition_type.rb +7 -14
  148. data/lib/wallee-ruby-sdk/models/connector_invocation.rb +5 -12
  149. data/lib/wallee-ruby-sdk/models/connector_invocation_stage.rb +10 -18
  150. data/lib/wallee-ruby-sdk/models/creation_entity_state.rb +11 -19
  151. data/lib/wallee-ruby-sdk/models/criteria_operator.rb +18 -23
  152. data/lib/{wallee/models/token_create.rb → wallee-ruby-sdk/models/customer.rb} +101 -71
  153. data/lib/{wallee/models/token_update.rb → wallee-ruby-sdk/models/customer_active.rb} +113 -88
  154. data/lib/{wallee/models/subscription_product_retirement.rb → wallee-ruby-sdk/models/customer_address.rb} +47 -44
  155. data/lib/wallee-ruby-sdk/models/customer_address_active.rb +231 -0
  156. data/lib/{wallee/models/installment_calculated_slice.rb → wallee-ruby-sdk/models/customer_address_create.rb} +30 -34
  157. data/lib/{wallee/models/transaction_void_mode.rb → wallee-ruby-sdk/models/customer_address_type.rb} +10 -17
  158. data/lib/{wallee/models/subscription_product_version_retirement_create.rb → wallee-ruby-sdk/models/customer_comment.rb} +76 -43
  159. data/lib/{wallee/models/product_metered_tier_fee.rb → wallee-ruby-sdk/models/customer_comment_active.rb} +39 -43
  160. data/lib/wallee-ruby-sdk/models/customer_comment_create.rb +221 -0
  161. data/lib/{wallee/models/space_address_setter.rb → wallee-ruby-sdk/models/customer_create.rb} +90 -95
  162. data/lib/wallee-ruby-sdk/models/customer_postal_address.rb +606 -0
  163. data/lib/wallee-ruby-sdk/models/customer_postal_address_create.rb +606 -0
  164. data/lib/wallee-ruby-sdk/models/customers_presence.rb +9 -17
  165. data/lib/wallee-ruby-sdk/models/data_collection_type.rb +8 -16
  166. data/lib/wallee-ruby-sdk/models/database_translated_string.rb +5 -12
  167. data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +6 -35
  168. data/lib/wallee-ruby-sdk/models/database_translated_string_item.rb +20 -12
  169. data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +22 -24
  170. data/lib/{wallee/models/refund_create.rb → wallee-ruby-sdk/models/debt_collection_case.rb} +160 -135
  171. data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +303 -0
  172. data/lib/{wallee/models/token_version.rb → wallee-ruby-sdk/models/debt_collection_case_document.rb} +86 -108
  173. data/lib/{wallee/models/manual_task_type.rb → wallee-ruby-sdk/models/debt_collection_case_source.rb} +16 -25
  174. data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +40 -0
  175. data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +293 -0
  176. data/lib/{wallee/models/data_collection_type.rb → wallee-ruby-sdk/models/debt_collection_environment.rb} +9 -17
  177. data/lib/{wallee/models/transaction_line_item_version.rb → wallee-ruby-sdk/models/debt_collection_receipt.rb} +69 -84
  178. data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +215 -0
  179. data/lib/{wallee/models/charge_flow_level_configuration_type.rb → wallee-ruby-sdk/models/debt_collector.rb} +9 -16
  180. data/lib/{wallee/models/condition.rb → wallee-ruby-sdk/models/debt_collector_condition.rb} +33 -25
  181. data/lib/{wallee/models/delivery_indication_decision_reason.rb → wallee-ruby-sdk/models/debt_collector_condition_type.rb} +9 -16
  182. data/lib/{wallee/models/charge_flow.rb → wallee-ruby-sdk/models/debt_collector_configuration.rb} +58 -18
  183. data/lib/wallee-ruby-sdk/models/delivery_indication.rb +16 -13
  184. data/lib/wallee-ruby-sdk/models/delivery_indication_decision_reason.rb +7 -14
  185. data/lib/wallee-ruby-sdk/models/delivery_indication_state.rb +10 -18
  186. data/lib/wallee-ruby-sdk/models/document_template.rb +41 -13
  187. data/lib/wallee-ruby-sdk/models/document_template_type.rb +18 -25
  188. data/lib/{wallee/models/line_item_attribute.rb → wallee-ruby-sdk/models/document_template_type_group.rb} +22 -27
  189. data/lib/wallee-ruby-sdk/models/entity_export_request.rb +208 -0
  190. data/lib/wallee-ruby-sdk/models/entity_query.rb +6 -13
  191. data/lib/wallee-ruby-sdk/models/entity_query_filter.rb +6 -13
  192. data/lib/wallee-ruby-sdk/models/entity_query_filter_type.rb +9 -17
  193. data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +15 -12
  194. data/lib/wallee-ruby-sdk/models/entity_query_order_by_type.rb +8 -16
  195. data/lib/{wallee/models/gender.rb → wallee-ruby-sdk/models/environment.rb} +9 -17
  196. data/lib/wallee-ruby-sdk/models/failure_category.rb +11 -19
  197. data/lib/wallee-ruby-sdk/models/failure_reason.rb +7 -14
  198. data/lib/wallee-ruby-sdk/models/feature.rb +18 -15
  199. data/lib/{wallee/models/label_descriptor_group.rb → wallee-ruby-sdk/models/feature_category.rb} +15 -22
  200. data/lib/wallee-ruby-sdk/models/gender.rb +8 -16
  201. data/lib/wallee-ruby-sdk/models/human_user.rb +117 -74
  202. data/lib/wallee-ruby-sdk/models/human_user_create.rb +100 -97
  203. data/lib/wallee-ruby-sdk/models/human_user_update.rb +116 -93
  204. data/lib/wallee-ruby-sdk/models/installment_calculated_plan.rb +5 -12
  205. data/lib/wallee-ruby-sdk/models/installment_calculated_slice.rb +5 -12
  206. data/lib/wallee-ruby-sdk/models/installment_payment.rb +5 -12
  207. data/lib/wallee-ruby-sdk/models/installment_payment_slice.rb +5 -12
  208. data/lib/wallee-ruby-sdk/models/installment_payment_slice_state.rb +13 -21
  209. data/lib/wallee-ruby-sdk/models/installment_payment_state.rb +14 -22
  210. data/lib/wallee-ruby-sdk/models/installment_plan_configuration.rb +20 -12
  211. data/lib/wallee-ruby-sdk/models/installment_plan_slice_configuration.rb +5 -12
  212. data/lib/wallee-ruby-sdk/models/label.rb +5 -12
  213. data/lib/wallee-ruby-sdk/models/label_descriptor.rb +7 -14
  214. data/lib/wallee-ruby-sdk/models/label_descriptor_category.rb +8 -16
  215. data/lib/wallee-ruby-sdk/models/label_descriptor_group.rb +7 -14
  216. data/lib/wallee-ruby-sdk/models/label_descriptor_type.rb +7 -14
  217. data/lib/wallee-ruby-sdk/models/legal_organization_form.rb +5 -12
  218. data/lib/wallee-ruby-sdk/models/line_item.rb +121 -14
  219. data/lib/wallee-ruby-sdk/models/line_item_attribute.rb +35 -12
  220. data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +53 -12
  221. data/lib/wallee-ruby-sdk/models/line_item_create.rb +87 -82
  222. data/lib/wallee-ruby-sdk/models/line_item_reduction.rb +20 -12
  223. data/lib/wallee-ruby-sdk/models/line_item_reduction_create.rb +27 -15
  224. data/lib/wallee-ruby-sdk/models/line_item_type.rb +10 -18
  225. data/lib/wallee-ruby-sdk/models/localized_string.rb +5 -12
  226. data/lib/wallee-ruby-sdk/models/manual_task.rb +5 -12
  227. data/lib/wallee-ruby-sdk/models/manual_task_action.rb +6 -13
  228. data/lib/wallee-ruby-sdk/models/manual_task_action_style.rb +9 -17
  229. data/lib/wallee-ruby-sdk/models/manual_task_state.rb +9 -17
  230. data/lib/wallee-ruby-sdk/models/manual_task_type.rb +7 -14
  231. data/lib/wallee-ruby-sdk/models/metric_usage.rb +225 -0
  232. data/lib/wallee-ruby-sdk/models/one_click_payment_mode.rb +9 -17
  233. data/lib/wallee-ruby-sdk/models/payment_connector.rb +30 -15
  234. data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +20 -12
  235. data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +5 -12
  236. data/lib/{wallee/models/subscription_ledger_entry.rb → wallee-ruby-sdk/models/payment_contract.rb} +93 -88
  237. data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +38 -0
  238. data/lib/{wallee/models/email_sender_type.rb → wallee-ruby-sdk/models/payment_contract_type.rb} +9 -16
  239. data/lib/{wallee/models/webhook_listener_entity.rb → wallee-ruby-sdk/models/payment_information_hash.rb} +20 -29
  240. data/lib/wallee-ruby-sdk/models/payment_information_hash_type.rb +203 -0
  241. data/lib/{wallee/models/refund.rb → wallee-ruby-sdk/models/payment_link.rb} +133 -169
  242. data/lib/{wallee/models/subscription_product_active.rb → wallee-ruby-sdk/models/payment_link_active.rb} +123 -83
  243. data/lib/wallee-ruby-sdk/models/payment_link_create.rb +373 -0
  244. data/lib/{wallee/models/charge_state.rb → wallee-ruby-sdk/models/payment_link_protection_mode.rb} +9 -18
  245. data/lib/{wallee/models/subscription_product_create.rb → wallee-ruby-sdk/models/payment_link_update.rb} +114 -89
  246. data/lib/wallee-ruby-sdk/models/payment_method.rb +20 -15
  247. data/lib/wallee-ruby-sdk/models/payment_method_brand.rb +7 -14
  248. data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +55 -13
  249. data/lib/wallee-ruby-sdk/models/payment_primary_risk_taker.rb +9 -17
  250. data/lib/wallee-ruby-sdk/models/payment_processor.rb +10 -17
  251. data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +31 -13
  252. data/lib/{wallee/models/subscription_metric_create.rb → wallee-ruby-sdk/models/payment_terminal.rb} +50 -42
  253. data/lib/{wallee/models/address_create.rb → wallee-ruby-sdk/models/payment_terminal_address.rb} +148 -80
  254. data/lib/{wallee/models/document_template.rb → wallee-ruby-sdk/models/payment_terminal_configuration.rb} +26 -38
  255. data/lib/{wallee/models/transaction_void_state.rb → wallee-ruby-sdk/models/payment_terminal_configuration_state.rb} +11 -19
  256. data/lib/{wallee/models/charge_flow_level.rb → wallee-ruby-sdk/models/payment_terminal_configuration_version.rb} +78 -83
  257. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +38 -0
  258. data/lib/{wallee/models/address.rb → wallee-ruby-sdk/models/payment_terminal_contact_address.rb} +88 -80
  259. data/lib/{wallee/models/charge_flow_level_configuration.rb → wallee-ruby-sdk/models/payment_terminal_location.rb} +51 -53
  260. data/lib/wallee-ruby-sdk/models/payment_terminal_location_state.rb +37 -0
  261. data/lib/{wallee/models/installment_payment.rb → wallee-ruby-sdk/models/payment_terminal_location_version.rb} +46 -45
  262. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +38 -0
  263. data/lib/wallee-ruby-sdk/models/payment_terminal_state.rb +38 -0
  264. data/lib/{wallee/models/condition_type.rb → wallee-ruby-sdk/models/payment_terminal_type.rb} +8 -15
  265. data/lib/wallee-ruby-sdk/models/permission.rb +20 -17
  266. data/lib/wallee-ruby-sdk/models/persistable_currency_amount.rb +5 -12
  267. data/lib/wallee-ruby-sdk/models/persistable_currency_amount_update.rb +5 -12
  268. data/lib/wallee-ruby-sdk/models/product_fee_type.rb +9 -17
  269. data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +5 -12
  270. data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +31 -58
  271. data/lib/wallee-ruby-sdk/models/product_metered_tier_fee.rb +5 -12
  272. data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +31 -38
  273. data/lib/wallee-ruby-sdk/models/product_metered_tier_pricing.rb +8 -16
  274. data/lib/wallee-ruby-sdk/models/product_period_fee.rb +16 -13
  275. data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +38 -55
  276. data/lib/wallee-ruby-sdk/models/product_setup_fee.rb +5 -12
  277. data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +31 -58
  278. data/lib/wallee-ruby-sdk/models/refund.rb +130 -13
  279. data/lib/{wallee/models/subscription_product_retirement_create.rb → wallee-ruby-sdk/models/refund_comment.rb} +72 -39
  280. data/lib/wallee-ruby-sdk/models/refund_comment_active.rb +236 -0
  281. data/lib/{wallee/models/database_translated_string_item_create.rb → wallee-ruby-sdk/models/refund_comment_create.rb} +37 -39
  282. data/lib/wallee-ruby-sdk/models/refund_create.rb +56 -220
  283. data/lib/wallee-ruby-sdk/models/refund_state.rb +12 -19
  284. data/lib/wallee-ruby-sdk/models/refund_type.rb +10 -18
  285. data/lib/wallee-ruby-sdk/models/rendered_document.rb +5 -12
  286. data/lib/{wallee/models/persistable_currency_amount_update.rb → wallee-ruby-sdk/models/rendered_terminal_receipt.rb} +21 -26
  287. data/lib/wallee-ruby-sdk/models/resource_path.rb +29 -12
  288. data/lib/wallee-ruby-sdk/models/resource_state.rb +9 -17
  289. data/lib/wallee-ruby-sdk/models/rest_address_format.rb +227 -0
  290. data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +43 -0
  291. data/lib/wallee-ruby-sdk/models/rest_country.rb +16 -13
  292. data/lib/wallee-ruby-sdk/models/rest_country_state.rb +5 -12
  293. data/lib/wallee-ruby-sdk/models/rest_currency.rb +5 -12
  294. data/lib/wallee-ruby-sdk/models/rest_language.rb +5 -12
  295. data/lib/{wallee/models/subscription_metric.rb → wallee-ruby-sdk/models/role.rb} +35 -40
  296. data/lib/{wallee/models/label_descriptor_type.rb → wallee-ruby-sdk/models/sales_channel.rb} +8 -15
  297. data/lib/wallee-ruby-sdk/models/scope.rb +61 -13
  298. data/lib/wallee-ruby-sdk/models/server_error.rb +5 -12
  299. data/lib/wallee-ruby-sdk/models/shopify_integration.rb +428 -0
  300. data/lib/{wallee/models/charge_attempt_state.rb → wallee-ruby-sdk/models/shopify_integration_app_version.rb} +10 -18
  301. data/lib/{wallee/models/delivery_indication.rb → wallee-ruby-sdk/models/shopify_recurring_order.rb} +86 -53
  302. data/lib/{wallee/models/account_state.rb → wallee-ruby-sdk/models/shopify_recurring_order_state.rb} +13 -21
  303. data/lib/wallee-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
  304. data/lib/{wallee/models/space_reference.rb → wallee-ruby-sdk/models/shopify_subscriber.rb} +44 -21
  305. data/lib/{wallee/models/charge_type.rb → wallee-ruby-sdk/models/shopify_subscriber_state.rb} +10 -18
  306. data/lib/{wallee/models/subscription.rb → wallee-ruby-sdk/models/shopify_subscription.rb} +51 -68
  307. data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +606 -0
  308. data/lib/wallee-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
  309. data/lib/{wallee/models/document_template_type.rb → wallee-ruby-sdk/models/shopify_subscription_edit_model_item.rb} +39 -48
  310. data/lib/{wallee/models/tax.rb → wallee-ruby-sdk/models/shopify_subscription_edit_model_tax_line.rb} +6 -13
  311. data/lib/wallee-ruby-sdk/models/shopify_subscription_product.rb +471 -0
  312. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_active.rb +361 -0
  313. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +371 -0
  314. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
  315. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
  316. data/lib/wallee-ruby-sdk/models/shopify_subscription_state.rb +39 -0
  317. data/lib/{wallee/models/charge.rb → wallee-ruby-sdk/models/shopify_subscription_suspension.rb} +71 -78
  318. data/lib/{wallee/models/client_error.rb → wallee-ruby-sdk/models/shopify_subscription_suspension_create.rb} +39 -51
  319. data/lib/{wallee/models/charge_attempt_environment.rb → wallee-ruby-sdk/models/shopify_subscription_suspension_initiator.rb} +9 -17
  320. data/lib/{wallee/models/account_type.rb → wallee-ruby-sdk/models/shopify_subscription_suspension_state.rb} +9 -18
  321. data/lib/{wallee/models/charge_flow_level_state.rb → wallee-ruby-sdk/models/shopify_subscription_suspension_type.rb} +9 -18
  322. data/lib/{wallee/models/webhook_listener_create.rb → wallee-ruby-sdk/models/shopify_subscription_update_request.rb} +91 -118
  323. data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +453 -0
  324. data/lib/{wallee/models/failure_reason.rb → wallee-ruby-sdk/models/shopify_subscription_version_item.rb} +39 -50
  325. data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +35 -0
  326. data/lib/wallee-ruby-sdk/models/shopify_subscription_version_state.rb +36 -0
  327. data/lib/wallee-ruby-sdk/models/shopify_subscription_weekday.rb +40 -0
  328. data/lib/{wallee/models/label.rb → wallee-ruby-sdk/models/shopify_tax_line.rb} +30 -37
  329. data/lib/{wallee/models/installment_payment_slice.rb → wallee-ruby-sdk/models/shopify_transaction.rb} +37 -36
  330. data/lib/wallee-ruby-sdk/models/shopify_transaction_state.rb +38 -0
  331. data/lib/wallee-ruby-sdk/models/space.rb +61 -14
  332. data/lib/wallee-ruby-sdk/models/space_address.rb +120 -22
  333. data/lib/{wallee/models/space_address.rb → wallee-ruby-sdk/models/space_address_create.rb} +121 -23
  334. data/lib/wallee-ruby-sdk/models/space_create.rb +47 -105
  335. data/lib/wallee-ruby-sdk/models/space_reference.rb +5 -12
  336. data/lib/wallee-ruby-sdk/models/space_reference_state.rb +11 -19
  337. data/lib/wallee-ruby-sdk/models/space_update.rb +54 -87
  338. data/lib/wallee-ruby-sdk/models/space_view.rb +29 -12
  339. data/lib/wallee-ruby-sdk/models/static_value.rb +7 -14
  340. data/lib/wallee-ruby-sdk/models/subscriber.rb +63 -13
  341. data/lib/wallee-ruby-sdk/models/subscriber_active.rb +85 -65
  342. data/lib/wallee-ruby-sdk/models/subscriber_create.rb +65 -65
  343. data/lib/wallee-ruby-sdk/models/subscriber_update.rb +85 -75
  344. data/lib/wallee-ruby-sdk/models/subscription.rb +76 -13
  345. data/lib/{wallee/models/subscriber_active.rb → wallee-ruby-sdk/models/subscription_affiliate.rb} +100 -87
  346. data/lib/{wallee/models/subscription_pending.rb → wallee-ruby-sdk/models/subscription_affiliate_create.rb} +113 -128
  347. data/lib/{wallee/models/subscriber_update.rb → wallee-ruby-sdk/models/subscription_affiliate_deleted.rb} +100 -87
  348. data/lib/{wallee/models/subscriber_create.rb → wallee-ruby-sdk/models/subscription_affiliate_deleting.rb} +98 -90
  349. data/lib/{wallee/models/application_user_create.rb → wallee-ruby-sdk/models/subscription_affiliate_inactive.rb} +58 -64
  350. data/lib/{wallee/models/application_user_update.rb → wallee-ruby-sdk/models/subscription_affiliate_update.rb} +60 -61
  351. data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +27 -17
  352. data/lib/wallee-ruby-sdk/models/subscription_charge.rb +31 -13
  353. data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +27 -151
  354. data/lib/wallee-ruby-sdk/models/subscription_charge_processing_type.rb +8 -16
  355. data/lib/wallee-ruby-sdk/models/subscription_charge_state.rb +11 -19
  356. data/lib/wallee-ruby-sdk/models/subscription_charge_type.rb +8 -16
  357. data/lib/{wallee/models/persistable_currency_amount.rb → wallee-ruby-sdk/models/subscription_component_configuration.rb} +19 -26
  358. data/lib/{wallee/models/localized_string.rb → wallee-ruby-sdk/models/subscription_component_reference_configuration.rb} +20 -37
  359. data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +23 -18
  360. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +29 -12
  361. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +42 -121
  362. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_state.rb +9 -17
  363. data/lib/wallee-ruby-sdk/models/subscription_metric.rb +5 -12
  364. data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +27 -74
  365. data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +11 -78
  366. data/lib/wallee-ruby-sdk/models/subscription_metric_type.rb +7 -14
  367. data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +27 -74
  368. data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report.rb +20 -12
  369. data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +28 -80
  370. data/lib/wallee-ruby-sdk/models/subscription_pending.rb +61 -108
  371. data/lib/wallee-ruby-sdk/models/subscription_period_bill.rb +5 -12
  372. data/lib/wallee-ruby-sdk/models/subscription_period_bill_state.rb +8 -16
  373. data/lib/wallee-ruby-sdk/models/subscription_product.rb +35 -12
  374. data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +33 -65
  375. data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +36 -13
  376. data/lib/wallee-ruby-sdk/models/subscription_product_component_group.rb +5 -12
  377. data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +18 -35
  378. data/lib/wallee-ruby-sdk/models/subscription_product_component_reference.rb +20 -12
  379. data/lib/wallee-ruby-sdk/models/subscription_product_component_reference_state.rb +10 -18
  380. data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +55 -42
  381. data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +44 -77
  382. data/lib/wallee-ruby-sdk/models/subscription_product_retirement.rb +5 -12
  383. data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +10 -57
  384. data/lib/wallee-ruby-sdk/models/subscription_product_state.rb +11 -19
  385. data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +20 -12
  386. data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +31 -38
  387. data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement.rb +5 -12
  388. data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +10 -57
  389. data/lib/wallee-ruby-sdk/models/subscription_product_version_state.rb +11 -19
  390. data/lib/wallee-ruby-sdk/models/subscription_state.rb +14 -21
  391. data/lib/wallee-ruby-sdk/models/subscription_suspension.rb +20 -12
  392. data/lib/wallee-ruby-sdk/models/subscription_suspension_action.rb +8 -16
  393. data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +27 -119
  394. data/lib/wallee-ruby-sdk/models/subscription_suspension_reason.rb +9 -17
  395. data/lib/wallee-ruby-sdk/models/subscription_suspension_running.rb +20 -12
  396. data/lib/wallee-ruby-sdk/models/subscription_suspension_state.rb +8 -16
  397. data/lib/wallee-ruby-sdk/models/subscription_update.rb +46 -138
  398. data/lib/wallee-ruby-sdk/models/subscription_version.rb +18 -13
  399. data/lib/wallee-ruby-sdk/models/subscription_version_state.rb +12 -20
  400. data/lib/wallee-ruby-sdk/models/tax.rb +29 -12
  401. data/lib/wallee-ruby-sdk/models/tax_class.rb +20 -12
  402. data/lib/wallee-ruby-sdk/models/tax_create.rb +35 -14
  403. data/lib/wallee-ruby-sdk/models/tenant_database.rb +20 -12
  404. data/lib/wallee-ruby-sdk/models/token.rb +70 -13
  405. data/lib/wallee-ruby-sdk/models/token_create.rb +83 -82
  406. data/lib/wallee-ruby-sdk/models/token_update.rb +55 -72
  407. data/lib/wallee-ruby-sdk/models/token_version.rb +98 -13
  408. data/lib/wallee-ruby-sdk/models/token_version_state.rb +9 -17
  409. data/lib/wallee-ruby-sdk/models/{email_sender_type.rb → token_version_type.rb} +9 -16
  410. data/lib/wallee-ruby-sdk/models/tokenization_mode.rb +37 -0
  411. data/lib/wallee-ruby-sdk/models/transaction.rb +275 -18
  412. data/lib/wallee-ruby-sdk/models/transaction_aware_entity.rb +5 -12
  413. data/lib/{wallee/models/connector_invocation.rb → wallee-ruby-sdk/models/transaction_comment.rb} +72 -54
  414. data/lib/wallee-ruby-sdk/models/transaction_comment_active.rb +236 -0
  415. data/lib/wallee-ruby-sdk/models/transaction_comment_create.rb +221 -0
  416. data/lib/wallee-ruby-sdk/models/transaction_completion.rb +126 -13
  417. data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +9 -17
  418. data/lib/{wallee/models/transaction_invoice_replacement.rb → wallee-ruby-sdk/models/transaction_completion_request.rb} +64 -48
  419. data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +11 -18
  420. data/lib/wallee-ruby-sdk/models/transaction_create.rb +172 -280
  421. data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +36 -0
  422. data/lib/wallee-ruby-sdk/models/transaction_group.rb +20 -12
  423. data/lib/wallee-ruby-sdk/models/transaction_group_state.rb +9 -17
  424. data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +85 -13
  425. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment.rb +296 -0
  426. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_active.rb +236 -0
  427. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_create.rb +221 -0
  428. data/lib/wallee-ruby-sdk/models/transaction_invoice_replacement.rb +62 -16
  429. data/lib/wallee-ruby-sdk/models/transaction_invoice_state.rb +13 -21
  430. data/lib/wallee-ruby-sdk/models/transaction_line_item_update_request.rb +6 -13
  431. data/lib/wallee-ruby-sdk/models/transaction_line_item_version.rb +5 -12
  432. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +94 -271
  433. data/lib/wallee-ruby-sdk/models/transaction_state.rb +16 -24
  434. data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +11 -17
  435. data/lib/wallee-ruby-sdk/models/transaction_void.rb +5 -12
  436. data/lib/wallee-ruby-sdk/models/transaction_void_mode.rb +8 -16
  437. data/lib/wallee-ruby-sdk/models/transaction_void_state.rb +10 -18
  438. data/lib/{wallee/models/subscription_metric_type.rb → wallee-ruby-sdk/models/two_factor_authentication_type.rb} +21 -18
  439. data/lib/wallee-ruby-sdk/models/unencrypted_card_data.rb +284 -0
  440. data/lib/wallee-ruby-sdk/models/unencrypted_card_data_create.rb +293 -0
  441. data/lib/wallee-ruby-sdk/models/user.rb +5 -12
  442. data/lib/{wallee/models/user.rb → wallee-ruby-sdk/models/user_account_role.rb} +37 -44
  443. data/lib/{wallee/models/tenant_database.rb → wallee-ruby-sdk/models/user_space_role.rb} +34 -21
  444. data/lib/wallee-ruby-sdk/models/user_type.rb +11 -18
  445. data/lib/wallee-ruby-sdk/models/webhook_identity.rb +20 -12
  446. data/lib/wallee-ruby-sdk/models/webhook_listener.rb +20 -12
  447. data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +44 -96
  448. data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +6 -13
  449. data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +30 -72
  450. data/lib/wallee-ruby-sdk/models/webhook_url.rb +20 -12
  451. data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +22 -69
  452. data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +33 -45
  453. data/lib/wallee-ruby-sdk/version.rb +1 -5
  454. data/test/{transactioncreate.rb → transaction_create_service_test.rb} +7 -11
  455. data/test/transaction_payment_page_service_test.rb +91 -0
  456. data/wallee-ruby-sdk.gemspec +2 -6
  457. metadata +242 -370
  458. data/Gemfile.lock +0 -31
  459. data/lib/wallee-ruby-sdk/models/attachment_resource.rb +0 -210
  460. data/lib/wallee-ruby-sdk/models/email_sender.rb +0 -278
  461. data/lib/wallee-ruby-sdk/models/email_template.rb +0 -324
  462. data/lib/wallee-ruby-sdk/models/email_template_type.rb +0 -288
  463. data/lib/wallee-ruby-sdk/models/entity_reference.rb +0 -188
  464. data/lib/wallee-ruby-sdk/services/application_user_service_api.rb +0 -372
  465. data/lib/wallee-ruby-sdk/services/condition_type_service_api.rb +0 -143
  466. data/lib/wallee-ruby-sdk/services/delivery_indication_service_api.rb +0 -341
  467. data/lib/wallee-ruby-sdk/services/email_sender_service_api.rb +0 -219
  468. data/lib/wallee-ruby-sdk/services/email_sender_type_service_api.rb +0 -143
  469. data/lib/wallee-ruby-sdk/services/email_template_type_service_api.rb +0 -143
  470. data/lib/wallee-ruby-sdk/services/installment_payment_service_api.rb +0 -287
  471. data/lib/wallee-ruby-sdk/services/installment_plan_calculation_service_api.rb +0 -95
  472. data/lib/wallee-ruby-sdk/services/installment_plan_slice_configuration_service_api.rb +0 -219
  473. data/lib/wallee-ruby-sdk/services/refund_service_api.rb +0 -468
  474. data/lib/wallee-ruby-sdk/services/space_service_api.rb +0 -372
  475. data/lib/wallee-ruby-sdk/services/subscription_ledger_entry_service_api.rb +0 -279
  476. data/lib/wallee-ruby-sdk/services/subscription_metric_usage_service_api.rb +0 -279
  477. data/lib/wallee-ruby-sdk/services/subscription_product_retirement_service_api.rb +0 -279
  478. data/lib/wallee-ruby-sdk/services/subscription_product_setup_fee_service_api.rb +0 -402
  479. data/lib/wallee-ruby-sdk/services/subscription_product_version_service_api.rb +0 -404
  480. data/lib/wallee-ruby-sdk/services/subscription_service_api.rb +0 -608
  481. data/lib/wallee-ruby-sdk/services/transaction_void_service_api.rb +0 -343
  482. data/lib/wallee.rb +0 -332
  483. data/lib/wallee/api_client.rb +0 -403
  484. data/lib/wallee/api_error.rb +0 -47
  485. data/lib/wallee/configuration.rb +0 -144
  486. data/lib/wallee/models/account.rb +0 -298
  487. data/lib/wallee/models/account_create.rb +0 -308
  488. data/lib/wallee/models/account_update.rb +0 -308
  489. data/lib/wallee/models/application_user.rb +0 -268
  490. data/lib/wallee/models/application_user_create_with_mac_key.rb +0 -278
  491. data/lib/wallee/models/attachment_resource.rb +0 -210
  492. data/lib/wallee/models/charge_attempt.rb +0 -420
  493. data/lib/wallee/models/client_error_type.rb +0 -44
  494. data/lib/wallee/models/connector_invocation_stage.rb +0 -45
  495. data/lib/wallee/models/creation_entity_state.rb +0 -46
  496. data/lib/wallee/models/criteria_operator.rb +0 -50
  497. data/lib/wallee/models/customers_presence.rb +0 -44
  498. data/lib/wallee/models/database_translated_string.rb +0 -222
  499. data/lib/wallee/models/database_translated_string_create.rb +0 -222
  500. data/lib/wallee/models/delivery_indication_state.rb +0 -45
  501. data/lib/wallee/models/email_sender.rb +0 -278
  502. data/lib/wallee/models/email_template.rb +0 -324
  503. data/lib/wallee/models/email_template_type.rb +0 -288
  504. data/lib/wallee/models/entity_query.rb +0 -240
  505. data/lib/wallee/models/entity_query_filter.rb +0 -245
  506. data/lib/wallee/models/entity_query_filter_type.rb +0 -44
  507. data/lib/wallee/models/entity_query_order_by.rb +0 -208
  508. data/lib/wallee/models/entity_query_order_by_type.rb +0 -43
  509. data/lib/wallee/models/entity_reference.rb +0 -188
  510. data/lib/wallee/models/failure_category.rb +0 -46
  511. data/lib/wallee/models/feature.rb +0 -274
  512. data/lib/wallee/models/human_user.rb +0 -318
  513. data/lib/wallee/models/human_user_update.rb +0 -328
  514. data/lib/wallee/models/installment_calculated_plan.rb +0 -242
  515. data/lib/wallee/models/installment_payment_slice_state.rb +0 -48
  516. data/lib/wallee/models/installment_payment_state.rb +0 -49
  517. data/lib/wallee/models/installment_plan_configuration.rb +0 -362
  518. data/lib/wallee/models/installment_plan_slice_configuration.rb +0 -288
  519. data/lib/wallee/models/label_descriptor.rb +0 -274
  520. data/lib/wallee/models/label_descriptor_category.rb +0 -43
  521. data/lib/wallee/models/legal_organization_form.rb +0 -242
  522. data/lib/wallee/models/line_item.rb +0 -342
  523. data/lib/wallee/models/line_item_create.rb +0 -367
  524. data/lib/wallee/models/line_item_reduction.rb +0 -218
  525. data/lib/wallee/models/line_item_reduction_create.rb +0 -233
  526. data/lib/wallee/models/line_item_type.rb +0 -45
  527. data/lib/wallee/models/manual_task.rb +0 -290
  528. data/lib/wallee/models/manual_task_action.rb +0 -230
  529. data/lib/wallee/models/manual_task_action_style.rb +0 -44
  530. data/lib/wallee/models/manual_task_state.rb +0 -44
  531. data/lib/wallee/models/one_click_payment_mode.rb +0 -44
  532. data/lib/wallee/models/payment_connector.rb +0 -306
  533. data/lib/wallee/models/payment_connector_configuration.rb +0 -322
  534. data/lib/wallee/models/payment_method.rb +0 -256
  535. data/lib/wallee/models/payment_method_brand.rb +0 -252
  536. data/lib/wallee/models/payment_method_configuration.rb +0 -328
  537. data/lib/wallee/models/payment_primary_risk_taker.rb +0 -44
  538. data/lib/wallee/models/payment_processor.rb +0 -278
  539. data/lib/wallee/models/payment_processor_configuration.rb +0 -258
  540. data/lib/wallee/models/permission.rb +0 -286
  541. data/lib/wallee/models/product_fee_type.rb +0 -44
  542. data/lib/wallee/models/product_metered_fee.rb +0 -278
  543. data/lib/wallee/models/product_metered_fee_update.rb +0 -288
  544. data/lib/wallee/models/product_metered_tier_fee_update.rb +0 -250
  545. data/lib/wallee/models/product_metered_tier_pricing.rb +0 -43
  546. data/lib/wallee/models/product_period_fee.rb +0 -280
  547. data/lib/wallee/models/product_period_fee_update.rb +0 -290
  548. data/lib/wallee/models/product_setup_fee.rb +0 -294
  549. data/lib/wallee/models/product_setup_fee_update.rb +0 -304
  550. data/lib/wallee/models/refund_state.rb +0 -46
  551. data/lib/wallee/models/refund_type.rb +0 -45
  552. data/lib/wallee/models/rendered_document.rb +0 -230
  553. data/lib/wallee/models/resource_path.rb +0 -258
  554. data/lib/wallee/models/resource_state.rb +0 -44
  555. data/lib/wallee/models/rest_country.rb +0 -240
  556. data/lib/wallee/models/rest_currency.rb +0 -218
  557. data/lib/wallee/models/rest_language.rb +0 -248
  558. data/lib/wallee/models/scope.rb +0 -302
  559. data/lib/wallee/models/space_create.rb +0 -350
  560. data/lib/wallee/models/space_reference_state.rb +0 -46
  561. data/lib/wallee/models/space_update.rb +0 -340
  562. data/lib/wallee/models/space_view.rb +0 -258
  563. data/lib/wallee/models/subscription_charge.rb +0 -390
  564. data/lib/wallee/models/subscription_charge_create.rb +0 -405
  565. data/lib/wallee/models/subscription_charge_processing_type.rb +0 -43
  566. data/lib/wallee/models/subscription_charge_state.rb +0 -46
  567. data/lib/wallee/models/subscription_charge_type.rb +0 -43
  568. data/lib/wallee/models/subscription_create_request.rb +0 -245
  569. data/lib/wallee/models/subscription_ledger_entry_create.rb +0 -375
  570. data/lib/wallee/models/subscription_ledger_entry_state.rb +0 -44
  571. data/lib/wallee/models/subscription_metric_active.rb +0 -278
  572. data/lib/wallee/models/subscription_metric_update.rb +0 -278
  573. data/lib/wallee/models/subscription_metric_usage_report.rb +0 -298
  574. data/lib/wallee/models/subscription_metric_usage_report_create.rb +0 -318
  575. data/lib/wallee/models/subscription_period_bill.rb +0 -298
  576. data/lib/wallee/models/subscription_period_bill_state.rb +0 -43
  577. data/lib/wallee/models/subscription_product_component.rb +0 -298
  578. data/lib/wallee/models/subscription_product_component_group.rb +0 -258
  579. data/lib/wallee/models/subscription_product_component_group_update.rb +0 -268
  580. data/lib/wallee/models/subscription_product_component_reference.rb +0 -258
  581. data/lib/wallee/models/subscription_product_component_reference_state.rb +0 -45
  582. data/lib/wallee/models/subscription_product_component_update.rb +0 -308
  583. data/lib/wallee/models/subscription_product_state.rb +0 -46
  584. data/lib/wallee/models/subscription_product_version.rb +0 -390
  585. data/lib/wallee/models/subscription_product_version_pending.rb +0 -310
  586. data/lib/wallee/models/subscription_product_version_retirement.rb +0 -258
  587. data/lib/wallee/models/subscription_product_version_state.rb +0 -46
  588. data/lib/wallee/models/subscription_state.rb +0 -48
  589. data/lib/wallee/models/subscription_suspension.rb +0 -328
  590. data/lib/wallee/models/subscription_suspension_action.rb +0 -43
  591. data/lib/wallee/models/subscription_suspension_create.rb +0 -343
  592. data/lib/wallee/models/subscription_suspension_reason.rb +0 -44
  593. data/lib/wallee/models/subscription_suspension_running.rb +0 -328
  594. data/lib/wallee/models/subscription_suspension_state.rb +0 -43
  595. data/lib/wallee/models/subscription_update.rb +0 -348
  596. data/lib/wallee/models/subscription_version.rb +0 -370
  597. data/lib/wallee/models/subscription_version_state.rb +0 -47
  598. data/lib/wallee/models/tax_class.rb +0 -258
  599. data/lib/wallee/models/token_version_state.rb +0 -44
  600. data/lib/wallee/models/transaction.rb +0 -626
  601. data/lib/wallee/models/transaction_completion.rb +0 -390
  602. data/lib/wallee/models/transaction_completion_mode.rb +0 -44
  603. data/lib/wallee/models/transaction_completion_state.rb +0 -45
  604. data/lib/wallee/models/transaction_create.rb +0 -646
  605. data/lib/wallee/models/transaction_group.rb +0 -268
  606. data/lib/wallee/models/transaction_group_state.rb +0 -44
  607. data/lib/wallee/models/transaction_invoice.rb +0 -380
  608. data/lib/wallee/models/transaction_invoice_state.rb +0 -48
  609. data/lib/wallee/models/transaction_line_item_update_request.rb +0 -215
  610. data/lib/wallee/models/transaction_state.rb +0 -51
  611. data/lib/wallee/models/transaction_user_interface_type.rb +0 -44
  612. data/lib/wallee/models/transaction_void.rb +0 -380
  613. data/lib/wallee/models/user_type.rb +0 -45
  614. data/lib/wallee/models/webhook_listener.rb +0 -300
  615. data/lib/wallee/models/webhook_listener_update.rb +0 -310
  616. data/lib/wallee/models/webhook_url.rb +0 -258
  617. data/lib/wallee/models/webhook_url_create.rb +0 -273
  618. data/lib/wallee/models/webhook_url_update.rb +0 -268
  619. data/lib/wallee/services/account_service_api.rb +0 -372
  620. data/lib/wallee/services/charge_flow_service_api.rb +0 -352
  621. data/lib/wallee/services/country_state_service_api.rb +0 -143
  622. data/lib/wallee/services/document_template_service_api.rb +0 -217
  623. data/lib/wallee/services/document_template_type_service_api.rb +0 -143
  624. data/lib/wallee/services/email_sender_service_api.rb +0 -219
  625. data/lib/wallee/services/email_sender_type_service_api.rb +0 -143
  626. data/lib/wallee/services/email_template_service_api.rb +0 -217
  627. data/lib/wallee/services/email_template_type_service_api.rb +0 -143
  628. data/lib/wallee/services/human_user_service_api.rb +0 -372
  629. data/lib/wallee/services/installment_payment_slice_service_api.rb +0 -219
  630. data/lib/wallee/services/installment_plan_configuration_service_api.rb +0 -219
  631. data/lib/wallee/services/label_description_group_service_api.rb +0 -143
  632. data/lib/wallee/services/label_description_service_api.rb +0 -143
  633. data/lib/wallee/services/language_service_api.rb +0 -85
  634. data/lib/wallee/services/payment_connector_configuration_service_api.rb +0 -217
  635. data/lib/wallee/services/payment_connector_service_api.rb +0 -143
  636. data/lib/wallee/services/payment_method_configuration_service_api.rb +0 -217
  637. data/lib/wallee/services/payment_processor_configuration_service_api.rb +0 -217
  638. data/lib/wallee/services/payment_processor_service_api.rb +0 -143
  639. data/lib/wallee/services/static_value_service_api.rb +0 -143
  640. data/lib/wallee/services/subscription_period_bill_service_api.rb +0 -217
  641. data/lib/wallee/services/subscription_product_component_group_service_api.rb +0 -402
  642. data/lib/wallee/services/subscription_product_component_service_api.rb +0 -402
  643. data/lib/wallee/services/subscription_product_metered_fee_service_api.rb +0 -402
  644. data/lib/wallee/services/subscription_product_version_retirement_service_api.rb +0 -279
  645. data/lib/wallee/services/subscription_version_service_api.rb +0 -217
  646. data/lib/wallee/services/token_version_service_api.rb +0 -280
  647. data/lib/wallee/services/transaction_completion_service_api.rb +0 -343
  648. data/lib/wallee/services/transaction_service_api.rb +0 -1263
  649. data/lib/wallee/services/webhook_url_service_api.rb +0 -402
  650. data/lib/wallee/version.rb +0 -24
@@ -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,6 +32,12 @@ module Wallee
36
32
  #
37
33
  attr_accessor :environment
38
34
 
35
+ # The expires on date indicates when token version expires. Once this date is reached the token version is marked as obsolete.
36
+ attr_accessor :expires_on
37
+
38
+ #
39
+ attr_accessor :icon_url
40
+
39
41
  # The ID is the primary key of the entity. The ID identifies the entity uniquely.
40
42
  attr_accessor :id
41
43
 
@@ -57,6 +59,15 @@ module Wallee
57
59
  #
58
60
  attr_accessor :payment_connector_configuration
59
61
 
62
+ # The payment information hash set contains hashes of the payment information represented by this token version.
63
+ attr_accessor :payment_information_hashes
64
+
65
+ #
66
+ attr_accessor :payment_method
67
+
68
+ #
69
+ attr_accessor :payment_method_brand
70
+
60
71
  # The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
61
72
  attr_accessor :planned_purge_date
62
73
 
@@ -72,10 +83,12 @@ module Wallee
72
83
  #
73
84
  attr_accessor :token
74
85
 
86
+ # The token version type determines what kind of token it is and by which payment connector the token can be processed by.
87
+ attr_accessor :type
88
+
75
89
  # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
76
90
  attr_accessor :version
77
91
 
78
-
79
92
  # Attribute mapping from ruby-style variable name to JSON key.
80
93
  def self.attribute_map
81
94
  {
@@ -83,6 +96,8 @@ module Wallee
83
96
  :'billing_address' => :'billingAddress',
84
97
  :'created_on' => :'createdOn',
85
98
  :'environment' => :'environment',
99
+ :'expires_on' => :'expiresOn',
100
+ :'icon_url' => :'iconUrl',
86
101
  :'id' => :'id',
87
102
  :'labels' => :'labels',
88
103
  :'language' => :'language',
@@ -90,11 +105,15 @@ module Wallee
90
105
  :'name' => :'name',
91
106
  :'obsoleted_on' => :'obsoletedOn',
92
107
  :'payment_connector_configuration' => :'paymentConnectorConfiguration',
108
+ :'payment_information_hashes' => :'paymentInformationHashes',
109
+ :'payment_method' => :'paymentMethod',
110
+ :'payment_method_brand' => :'paymentMethodBrand',
93
111
  :'planned_purge_date' => :'plannedPurgeDate',
94
112
  :'processor_token' => :'processorToken',
95
113
  :'shipping_address' => :'shippingAddress',
96
114
  :'state' => :'state',
97
115
  :'token' => :'token',
116
+ :'type' => :'type',
98
117
  :'version' => :'version'
99
118
  }
100
119
  end
@@ -106,6 +125,8 @@ module Wallee
106
125
  :'billing_address' => :'Address',
107
126
  :'created_on' => :'DateTime',
108
127
  :'environment' => :'ChargeAttemptEnvironment',
128
+ :'expires_on' => :'DateTime',
129
+ :'icon_url' => :'String',
109
130
  :'id' => :'Integer',
110
131
  :'labels' => :'Array<Label>',
111
132
  :'language' => :'String',
@@ -113,11 +134,15 @@ module Wallee
113
134
  :'name' => :'String',
114
135
  :'obsoleted_on' => :'DateTime',
115
136
  :'payment_connector_configuration' => :'PaymentConnectorConfiguration',
137
+ :'payment_information_hashes' => :'Array<PaymentInformationHash>',
138
+ :'payment_method' => :'Integer',
139
+ :'payment_method_brand' => :'Integer',
116
140
  :'planned_purge_date' => :'DateTime',
117
141
  :'processor_token' => :'String',
118
142
  :'shipping_address' => :'Address',
119
143
  :'state' => :'TokenVersionState',
120
144
  :'token' => :'Token',
145
+ :'type' => :'TokenVersionType',
121
146
  :'version' => :'Integer'
122
147
  }
123
148
  end
@@ -128,7 +153,7 @@ module Wallee
128
153
  return unless attributes.is_a?(Hash)
129
154
 
130
155
  # convert string to symbol for hash key
131
- 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 }
132
157
 
133
158
  if attributes.has_key?(:'activatedOn')
134
159
  self.activated_on = attributes[:'activatedOn']
@@ -146,6 +171,14 @@ module Wallee
146
171
  self.environment = attributes[:'environment']
147
172
  end
148
173
 
174
+ if attributes.has_key?(:'expiresOn')
175
+ self.expires_on = attributes[:'expiresOn']
176
+ end
177
+
178
+ if attributes.has_key?(:'iconUrl')
179
+ self.icon_url = attributes[:'iconUrl']
180
+ end
181
+
149
182
  if attributes.has_key?(:'id')
150
183
  self.id = attributes[:'id']
151
184
  end
@@ -176,6 +209,20 @@ module Wallee
176
209
  self.payment_connector_configuration = attributes[:'paymentConnectorConfiguration']
177
210
  end
178
211
 
212
+ if attributes.has_key?(:'paymentInformationHashes')
213
+ if (value = attributes[:'paymentInformationHashes']).is_a?(Array)
214
+ self.payment_information_hashes = value
215
+ end
216
+ end
217
+
218
+ if attributes.has_key?(:'paymentMethod')
219
+ self.payment_method = attributes[:'paymentMethod']
220
+ end
221
+
222
+ if attributes.has_key?(:'paymentMethodBrand')
223
+ self.payment_method_brand = attributes[:'paymentMethodBrand']
224
+ end
225
+
179
226
  if attributes.has_key?(:'plannedPurgeDate')
180
227
  self.planned_purge_date = attributes[:'plannedPurgeDate']
181
228
  end
@@ -196,23 +243,56 @@ module Wallee
196
243
  self.token = attributes[:'token']
197
244
  end
198
245
 
246
+ if attributes.has_key?(:'type')
247
+ self.type = attributes[:'type']
248
+ end
249
+
199
250
  if attributes.has_key?(:'version')
200
251
  self.version = attributes[:'version']
201
252
  end
202
-
203
253
  end
204
254
 
205
255
  # Show invalid properties with the reasons. Usually used together with valid?
206
- # @return Array for valid properies with the reasons
256
+ # @return Array for valid properties with the reasons
207
257
  def list_invalid_properties
208
258
  invalid_properties = Array.new
209
- return invalid_properties
259
+ if !@name.nil? && @name.to_s.length > 150
260
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 150.')
261
+ end
262
+
263
+ if !@processor_token.nil? && @processor_token.to_s.length > 150
264
+ invalid_properties.push('invalid value for "processor_token", the character length must be smaller than or equal to 150.')
265
+ end
266
+
267
+ invalid_properties
210
268
  end
211
269
 
212
270
  # Check to see if the all the properties in the model are valid
213
271
  # @return true if the model is valid
214
272
  def valid?
215
- return true
273
+ return false if !@name.nil? && @name.to_s.length > 150
274
+ return false if !@processor_token.nil? && @processor_token.to_s.length > 150
275
+ true
276
+ end
277
+
278
+ # Custom attribute writer method with validation
279
+ # @param [Object] name Value to be assigned
280
+ def name=(name)
281
+ if !name.nil? && name.to_s.length > 150
282
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 150.'
283
+ end
284
+
285
+ @name = name
286
+ end
287
+
288
+ # Custom attribute writer method with validation
289
+ # @param [Object] processor_token Value to be assigned
290
+ def processor_token=(processor_token)
291
+ if !processor_token.nil? && processor_token.to_s.length > 150
292
+ fail ArgumentError, 'invalid value for "processor_token", the character length must be smaller than or equal to 150.'
293
+ end
294
+
295
+ @processor_token = processor_token
216
296
  end
217
297
 
218
298
  # Checks equality by comparing each attribute.
@@ -224,6 +304,8 @@ module Wallee
224
304
  billing_address == o.billing_address &&
225
305
  created_on == o.created_on &&
226
306
  environment == o.environment &&
307
+ expires_on == o.expires_on &&
308
+ icon_url == o.icon_url &&
227
309
  id == o.id &&
228
310
  labels == o.labels &&
229
311
  language == o.language &&
@@ -231,11 +313,15 @@ module Wallee
231
313
  name == o.name &&
232
314
  obsoleted_on == o.obsoleted_on &&
233
315
  payment_connector_configuration == o.payment_connector_configuration &&
316
+ payment_information_hashes == o.payment_information_hashes &&
317
+ payment_method == o.payment_method &&
318
+ payment_method_brand == o.payment_method_brand &&
234
319
  planned_purge_date == o.planned_purge_date &&
235
320
  processor_token == o.processor_token &&
236
321
  shipping_address == o.shipping_address &&
237
322
  state == o.state &&
238
323
  token == o.token &&
324
+ type == o.type &&
239
325
  version == o.version
240
326
  end
241
327
 
@@ -248,7 +334,7 @@ module Wallee
248
334
  # Calculates hash code according to all attributes.
249
335
  # @return [Fixnum] Hash code
250
336
  def hash
251
- [activated_on, billing_address, created_on, environment, id, labels, language, linked_space_id, name, obsoleted_on, payment_connector_configuration, planned_purge_date, processor_token, shipping_address, state, token, version].hash
337
+ [activated_on, billing_address, created_on, environment, expires_on, icon_url, id, labels, language, linked_space_id, name, obsoleted_on, payment_connector_configuration, payment_information_hashes, payment_method, payment_method_brand, planned_purge_date, processor_token, shipping_address, state, token, type, version].hash
252
338
  end
253
339
 
254
340
  # Builds the object from hash
@@ -258,7 +344,7 @@ module Wallee
258
344
  return nil unless attributes.is_a?(Hash)
259
345
  self.class.swagger_types.each_pair do |key, type|
260
346
  if type =~ /\AArray<(.*)>/i
261
- # check to ensure the input is an array given that the the attribute
347
+ # check to ensure the input is an array given that the attribute
262
348
  # is documented as an array but the input is not
263
349
  if attributes[self.class.attribute_map[key]].is_a?(Array)
264
350
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
@@ -356,5 +442,4 @@ module Wallee
356
442
  end
357
443
 
358
444
  end
359
-
360
445
  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 TokenVersionState
26
22
 
27
- UNINITIALIZED = "UNINITIALIZED".freeze
28
- ACTIVE = "ACTIVE".freeze
29
- OBSOLETE = "OBSOLETE".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
+ UNINITIALIZED = 'UNINITIALIZED'.freeze
24
+ ACTIVE = 'ACTIVE'.freeze
25
+ OBSOLETE = 'OBSOLETE'.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 = TokenVersionState.constants.select{|c| c.to_s == value}
37
- raise "Invalid ENUM value #{value} for class #TokenVersionState" if consantValues.empty?
38
-
31
+ constantValues = TokenVersionState.constants.select { |c| TokenVersionState::const_get(c) == value }
32
+ raise "Invalid ENUM value #{value} for class #TokenVersionState" 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
@@ -23,7 +19,7 @@ require 'date'
23
19
 
24
20
  module Wallee
25
21
  #
26
- class EmailSenderType
22
+ class TokenVersionType
27
23
  #
28
24
  attr_accessor :description
29
25
 
@@ -36,7 +32,6 @@ module Wallee
36
32
  #
37
33
  attr_accessor :name
38
34
 
39
-
40
35
  # Attribute mapping from ruby-style variable name to JSON key.
41
36
  def self.attribute_map
42
37
  {
@@ -51,7 +46,7 @@ module Wallee
51
46
  def self.swagger_types
52
47
  {
53
48
  :'description' => :'Hash<String, String>',
54
- :'feature' => :'Integer',
49
+ :'feature' => :'Feature',
55
50
  :'id' => :'Integer',
56
51
  :'name' => :'Hash<String, String>'
57
52
  }
@@ -63,10 +58,10 @@ module Wallee
63
58
  return unless attributes.is_a?(Hash)
64
59
 
65
60
  # convert string to symbol for hash key
66
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
61
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
62
 
68
63
  if attributes.has_key?(:'description')
69
- if (value = attributes[:'description']).is_a?(Array)
64
+ if (value = attributes[:'description']).is_a?(Hash)
70
65
  self.description = value
71
66
  end
72
67
  end
@@ -80,24 +75,23 @@ module Wallee
80
75
  end
81
76
 
82
77
  if attributes.has_key?(:'name')
83
- if (value = attributes[:'name']).is_a?(Array)
78
+ if (value = attributes[:'name']).is_a?(Hash)
84
79
  self.name = value
85
80
  end
86
81
  end
87
-
88
82
  end
89
83
 
90
84
  # Show invalid properties with the reasons. Usually used together with valid?
91
- # @return Array for valid properies with the reasons
85
+ # @return Array for valid properties with the reasons
92
86
  def list_invalid_properties
93
87
  invalid_properties = Array.new
94
- return invalid_properties
88
+ invalid_properties
95
89
  end
96
90
 
97
91
  # Check to see if the all the properties in the model are valid
98
92
  # @return true if the model is valid
99
93
  def valid?
100
- return true
94
+ true
101
95
  end
102
96
 
103
97
  # Checks equality by comparing each attribute.
@@ -130,7 +124,7 @@ module Wallee
130
124
  return nil unless attributes.is_a?(Hash)
131
125
  self.class.swagger_types.each_pair do |key, type|
132
126
  if type =~ /\AArray<(.*)>/i
133
- # check to ensure the input is an array given that the the attribute
127
+ # check to ensure the input is an array given that the attribute
134
128
  # is documented as an array but the input is not
135
129
  if attributes[self.class.attribute_map[key]].is_a?(Array)
136
130
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
@@ -228,5 +222,4 @@ module Wallee
228
222
  end
229
223
 
230
224
  end
231
-
232
225
  end
@@ -0,0 +1,37 @@
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 TokenizationMode
22
+
23
+ FORCE_UPDATE = 'FORCE_UPDATE'.freeze
24
+ FORCE_CREATION = 'FORCE_CREATION'.freeze
25
+ FORCE_CREATION_WITH_ONE_CLICK_PAYMENT = 'FORCE_CREATION_WITH_ONE_CLICK_PAYMENT'.freeze
26
+ ALLOW_ONE_CLICK_PAYMENT = 'ALLOW_ONE_CLICK_PAYMENT'.freeze
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def build_from_hash(value)
32
+ constantValues = TokenizationMode.constants.select { |c| TokenizationMode::const_get(c) == value }
33
+ raise "Invalid ENUM value #{value} for class #TokenizationMode" if constantValues.empty?
34
+ value
35
+ end
36
+ end
37
+ 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
@@ -27,6 +23,9 @@ module Wallee
27
23
  #
28
24
  attr_accessor :accept_header
29
25
 
26
+ # The accept language contains the header which indicates the language preferences of the buyer.
27
+ attr_accessor :accept_language_header
28
+
30
29
  #
31
30
  attr_accessor :allowed_payment_method_brands
32
31
 
@@ -36,15 +35,30 @@ module Wallee
36
35
  #
37
36
  attr_accessor :authorization_amount
38
37
 
38
+ # The environment in which this transaction was successfully authorized.
39
+ attr_accessor :authorization_environment
40
+
41
+ # The sales channel through which the transaction was placed.
42
+ attr_accessor :authorization_sales_channel
43
+
44
+ # This is the time on which the transaction will be timed out when it is not at least authorized. The timeout time may change over time.
45
+ attr_accessor :authorization_timeout_on
46
+
39
47
  #
40
48
  attr_accessor :authorized_on
41
49
 
50
+ # When auto confirmation is enabled the transaction can be confirmed by the user and does not require an explicit confirmation through the web service API.
51
+ attr_accessor :auto_confirmation_enabled
52
+
42
53
  #
43
54
  attr_accessor :billing_address
44
55
 
45
56
  # When the charging of the customer fails we can retry the charging. This implies that we redirect the user back to the payment page which allows the customer to retry. By default we will retry.
46
57
  attr_accessor :charge_retry_enabled
47
58
 
59
+ # The completed amount is the total amount which has been captured so far.
60
+ attr_accessor :completed_amount
61
+
48
62
  #
49
63
  attr_accessor :completed_on
50
64
 
@@ -66,31 +80,49 @@ module Wallee
66
80
  #
67
81
  attr_accessor :currency
68
82
 
69
- # The customer email address is the email address of the customer. If no email address is used provided on the shipping or billing address this address is used.
83
+ # The customer email address is the email address of the customer. If no email address is provided on the shipping or billing address this address is used.
70
84
  attr_accessor :customer_email_address
71
85
 
72
86
  #
73
87
  attr_accessor :customer_id
74
88
 
75
- #
89
+ # The customer's presence indicates what kind of authentication methods can be used during the authorization of the transaction. If no value is provided, 'Virtually Present' is used by default.
76
90
  attr_accessor :customers_presence
77
91
 
92
+ # This date indicates when the decision has been made if a transaction should be delivered or not.
93
+ attr_accessor :delivery_decision_made_on
94
+
95
+ # The device session identifier links the transaction with the session identifier provided in the URL of the device data JavaScript. This allows to link the transaction with the collected device data of the buyer.
96
+ attr_accessor :device_session_identifier
97
+
98
+ # Flag indicating whether email sending is disabled for this particular transaction. Defaults to false.
99
+ attr_accessor :emails_disabled
100
+
78
101
  # The transaction's end of life indicates the date from which on no operation can be carried out anymore.
79
102
  attr_accessor :end_of_life
80
103
 
104
+ #
105
+ attr_accessor :environment
106
+
107
+ # The environment selection strategy determines how the environment (test or production) for processing the transaction is selected.
108
+ attr_accessor :environment_selection_strategy
109
+
81
110
  #
82
111
  attr_accessor :failed_on
83
112
 
84
113
  # The user will be redirected to failed URL when the transaction could not be authorized or completed. In case no failed URL is specified a default failed page will be displayed.
85
114
  attr_accessor :failed_url
86
115
 
116
+ # The failure reason describes why the transaction failed. This is only provided when the transaction is marked as failed.
117
+ attr_accessor :failure_reason
118
+
87
119
  #
88
120
  attr_accessor :group
89
121
 
90
122
  # The ID is the primary key of the entity. The ID identifies the entity uniquely.
91
123
  attr_accessor :id
92
124
 
93
- #
125
+ # The Internet Protocol (IP) address identifies the device of the buyer.
94
126
  attr_accessor :internet_protocol_address
95
127
 
96
128
  #
@@ -114,6 +146,9 @@ module Wallee
114
146
  # Meta data allow to store additional data along the object.
115
147
  attr_accessor :meta_data
116
148
 
149
+ #
150
+ attr_accessor :parent
151
+
117
152
  #
118
153
  attr_accessor :payment_connector_configuration
119
154
 
@@ -141,29 +176,49 @@ module Wallee
141
176
  # The user will be redirected to success URL when the transaction could be authorized or completed. In case no success URL is specified a default success page will be displayed.
142
177
  attr_accessor :success_url
143
178
 
179
+ # The time zone defines in which time zone the customer is located in. The time zone may affects how dates are formatted when interacting with the customer.
180
+ attr_accessor :time_zone
181
+
144
182
  #
145
183
  attr_accessor :token
146
184
 
147
- #
185
+ # The tokenization mode controls if and how the tokenization of payment information is applied to the transaction.
186
+ attr_accessor :tokenization_mode
187
+
188
+ # The total applied fees is the sum of all fees that have been applied so far.
189
+ attr_accessor :total_applied_fees
190
+
191
+ # The total settled amount is the total amount which has been settled so far.
192
+ attr_accessor :total_settled_amount
193
+
194
+ # The user agent header provides the exact string which contains the user agent of the buyer.
148
195
  attr_accessor :user_agent_header
149
196
 
197
+ # The failure message describes for an end user why the transaction is failed in the language of the user. This is only provided when the transaction is marked as failed.
198
+ attr_accessor :user_failure_message
199
+
150
200
  # The user interface type defines through which user interface the transaction has been processed resp. created.
151
201
  attr_accessor :user_interface_type
152
202
 
153
203
  # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
154
204
  attr_accessor :version
155
205
 
156
-
157
206
  # Attribute mapping from ruby-style variable name to JSON key.
158
207
  def self.attribute_map
159
208
  {
160
209
  :'accept_header' => :'acceptHeader',
210
+ :'accept_language_header' => :'acceptLanguageHeader',
161
211
  :'allowed_payment_method_brands' => :'allowedPaymentMethodBrands',
162
212
  :'allowed_payment_method_configurations' => :'allowedPaymentMethodConfigurations',
163
213
  :'authorization_amount' => :'authorizationAmount',
214
+ :'authorization_environment' => :'authorizationEnvironment',
215
+ :'authorization_sales_channel' => :'authorizationSalesChannel',
216
+ :'authorization_timeout_on' => :'authorizationTimeoutOn',
164
217
  :'authorized_on' => :'authorizedOn',
218
+ :'auto_confirmation_enabled' => :'autoConfirmationEnabled',
165
219
  :'billing_address' => :'billingAddress',
166
220
  :'charge_retry_enabled' => :'chargeRetryEnabled',
221
+ :'completed_amount' => :'completedAmount',
167
222
  :'completed_on' => :'completedOn',
168
223
  :'completion_timeout_on' => :'completionTimeoutOn',
169
224
  :'confirmed_by' => :'confirmedBy',
@@ -174,9 +229,15 @@ module Wallee
174
229
  :'customer_email_address' => :'customerEmailAddress',
175
230
  :'customer_id' => :'customerId',
176
231
  :'customers_presence' => :'customersPresence',
232
+ :'delivery_decision_made_on' => :'deliveryDecisionMadeOn',
233
+ :'device_session_identifier' => :'deviceSessionIdentifier',
234
+ :'emails_disabled' => :'emailsDisabled',
177
235
  :'end_of_life' => :'endOfLife',
236
+ :'environment' => :'environment',
237
+ :'environment_selection_strategy' => :'environmentSelectionStrategy',
178
238
  :'failed_on' => :'failedOn',
179
239
  :'failed_url' => :'failedUrl',
240
+ :'failure_reason' => :'failureReason',
180
241
  :'group' => :'group',
181
242
  :'id' => :'id',
182
243
  :'internet_protocol_address' => :'internetProtocolAddress',
@@ -187,6 +248,7 @@ module Wallee
187
248
  :'linked_space_id' => :'linkedSpaceId',
188
249
  :'merchant_reference' => :'merchantReference',
189
250
  :'meta_data' => :'metaData',
251
+ :'parent' => :'parent',
190
252
  :'payment_connector_configuration' => :'paymentConnectorConfiguration',
191
253
  :'planned_purge_date' => :'plannedPurgeDate',
192
254
  :'processing_on' => :'processingOn',
@@ -196,8 +258,13 @@ module Wallee
196
258
  :'space_view_id' => :'spaceViewId',
197
259
  :'state' => :'state',
198
260
  :'success_url' => :'successUrl',
261
+ :'time_zone' => :'timeZone',
199
262
  :'token' => :'token',
263
+ :'tokenization_mode' => :'tokenizationMode',
264
+ :'total_applied_fees' => :'totalAppliedFees',
265
+ :'total_settled_amount' => :'totalSettledAmount',
200
266
  :'user_agent_header' => :'userAgentHeader',
267
+ :'user_failure_message' => :'userFailureMessage',
201
268
  :'user_interface_type' => :'userInterfaceType',
202
269
  :'version' => :'version'
203
270
  }
@@ -207,12 +274,18 @@ module Wallee
207
274
  def self.swagger_types
208
275
  {
209
276
  :'accept_header' => :'String',
277
+ :'accept_language_header' => :'String',
210
278
  :'allowed_payment_method_brands' => :'Array<PaymentMethodBrand>',
211
279
  :'allowed_payment_method_configurations' => :'Array<Integer>',
212
280
  :'authorization_amount' => :'Float',
281
+ :'authorization_environment' => :'ChargeAttemptEnvironment',
282
+ :'authorization_sales_channel' => :'Integer',
283
+ :'authorization_timeout_on' => :'DateTime',
213
284
  :'authorized_on' => :'DateTime',
285
+ :'auto_confirmation_enabled' => :'BOOLEAN',
214
286
  :'billing_address' => :'Address',
215
287
  :'charge_retry_enabled' => :'BOOLEAN',
288
+ :'completed_amount' => :'Float',
216
289
  :'completed_on' => :'DateTime',
217
290
  :'completion_timeout_on' => :'DateTime',
218
291
  :'confirmed_by' => :'Integer',
@@ -223,9 +296,15 @@ module Wallee
223
296
  :'customer_email_address' => :'String',
224
297
  :'customer_id' => :'String',
225
298
  :'customers_presence' => :'CustomersPresence',
299
+ :'delivery_decision_made_on' => :'DateTime',
300
+ :'device_session_identifier' => :'String',
301
+ :'emails_disabled' => :'BOOLEAN',
226
302
  :'end_of_life' => :'DateTime',
303
+ :'environment' => :'Environment',
304
+ :'environment_selection_strategy' => :'TransactionEnvironmentSelectionStrategy',
227
305
  :'failed_on' => :'DateTime',
228
306
  :'failed_url' => :'String',
307
+ :'failure_reason' => :'FailureReason',
229
308
  :'group' => :'TransactionGroup',
230
309
  :'id' => :'Integer',
231
310
  :'internet_protocol_address' => :'String',
@@ -236,6 +315,7 @@ module Wallee
236
315
  :'linked_space_id' => :'Integer',
237
316
  :'merchant_reference' => :'String',
238
317
  :'meta_data' => :'Hash<String, String>',
318
+ :'parent' => :'Integer',
239
319
  :'payment_connector_configuration' => :'PaymentConnectorConfiguration',
240
320
  :'planned_purge_date' => :'DateTime',
241
321
  :'processing_on' => :'DateTime',
@@ -245,8 +325,13 @@ module Wallee
245
325
  :'space_view_id' => :'Integer',
246
326
  :'state' => :'TransactionState',
247
327
  :'success_url' => :'String',
328
+ :'time_zone' => :'String',
248
329
  :'token' => :'Token',
330
+ :'tokenization_mode' => :'TokenizationMode',
331
+ :'total_applied_fees' => :'Float',
332
+ :'total_settled_amount' => :'Float',
249
333
  :'user_agent_header' => :'String',
334
+ :'user_failure_message' => :'String',
250
335
  :'user_interface_type' => :'TransactionUserInterfaceType',
251
336
  :'version' => :'Integer'
252
337
  }
@@ -258,12 +343,16 @@ module Wallee
258
343
  return unless attributes.is_a?(Hash)
259
344
 
260
345
  # convert string to symbol for hash key
261
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
346
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
262
347
 
263
348
  if attributes.has_key?(:'acceptHeader')
264
349
  self.accept_header = attributes[:'acceptHeader']
265
350
  end
266
351
 
352
+ if attributes.has_key?(:'acceptLanguageHeader')
353
+ self.accept_language_header = attributes[:'acceptLanguageHeader']
354
+ end
355
+
267
356
  if attributes.has_key?(:'allowedPaymentMethodBrands')
268
357
  if (value = attributes[:'allowedPaymentMethodBrands']).is_a?(Array)
269
358
  self.allowed_payment_method_brands = value
@@ -280,10 +369,26 @@ module Wallee
280
369
  self.authorization_amount = attributes[:'authorizationAmount']
281
370
  end
282
371
 
372
+ if attributes.has_key?(:'authorizationEnvironment')
373
+ self.authorization_environment = attributes[:'authorizationEnvironment']
374
+ end
375
+
376
+ if attributes.has_key?(:'authorizationSalesChannel')
377
+ self.authorization_sales_channel = attributes[:'authorizationSalesChannel']
378
+ end
379
+
380
+ if attributes.has_key?(:'authorizationTimeoutOn')
381
+ self.authorization_timeout_on = attributes[:'authorizationTimeoutOn']
382
+ end
383
+
283
384
  if attributes.has_key?(:'authorizedOn')
284
385
  self.authorized_on = attributes[:'authorizedOn']
285
386
  end
286
387
 
388
+ if attributes.has_key?(:'autoConfirmationEnabled')
389
+ self.auto_confirmation_enabled = attributes[:'autoConfirmationEnabled']
390
+ end
391
+
287
392
  if attributes.has_key?(:'billingAddress')
288
393
  self.billing_address = attributes[:'billingAddress']
289
394
  end
@@ -292,6 +397,10 @@ module Wallee
292
397
  self.charge_retry_enabled = attributes[:'chargeRetryEnabled']
293
398
  end
294
399
 
400
+ if attributes.has_key?(:'completedAmount')
401
+ self.completed_amount = attributes[:'completedAmount']
402
+ end
403
+
295
404
  if attributes.has_key?(:'completedOn')
296
405
  self.completed_on = attributes[:'completedOn']
297
406
  end
@@ -332,10 +441,30 @@ module Wallee
332
441
  self.customers_presence = attributes[:'customersPresence']
333
442
  end
334
443
 
444
+ if attributes.has_key?(:'deliveryDecisionMadeOn')
445
+ self.delivery_decision_made_on = attributes[:'deliveryDecisionMadeOn']
446
+ end
447
+
448
+ if attributes.has_key?(:'deviceSessionIdentifier')
449
+ self.device_session_identifier = attributes[:'deviceSessionIdentifier']
450
+ end
451
+
452
+ if attributes.has_key?(:'emailsDisabled')
453
+ self.emails_disabled = attributes[:'emailsDisabled']
454
+ end
455
+
335
456
  if attributes.has_key?(:'endOfLife')
336
457
  self.end_of_life = attributes[:'endOfLife']
337
458
  end
338
459
 
460
+ if attributes.has_key?(:'environment')
461
+ self.environment = attributes[:'environment']
462
+ end
463
+
464
+ if attributes.has_key?(:'environmentSelectionStrategy')
465
+ self.environment_selection_strategy = attributes[:'environmentSelectionStrategy']
466
+ end
467
+
339
468
  if attributes.has_key?(:'failedOn')
340
469
  self.failed_on = attributes[:'failedOn']
341
470
  end
@@ -344,6 +473,10 @@ module Wallee
344
473
  self.failed_url = attributes[:'failedUrl']
345
474
  end
346
475
 
476
+ if attributes.has_key?(:'failureReason')
477
+ self.failure_reason = attributes[:'failureReason']
478
+ end
479
+
347
480
  if attributes.has_key?(:'group')
348
481
  self.group = attributes[:'group']
349
482
  end
@@ -383,11 +516,15 @@ module Wallee
383
516
  end
384
517
 
385
518
  if attributes.has_key?(:'metaData')
386
- if (value = attributes[:'metaData']).is_a?(Array)
519
+ if (value = attributes[:'metaData']).is_a?(Hash)
387
520
  self.meta_data = value
388
521
  end
389
522
  end
390
523
 
524
+ if attributes.has_key?(:'parent')
525
+ self.parent = attributes[:'parent']
526
+ end
527
+
391
528
  if attributes.has_key?(:'paymentConnectorConfiguration')
392
529
  self.payment_connector_configuration = attributes[:'paymentConnectorConfiguration']
393
530
  end
@@ -424,14 +561,34 @@ module Wallee
424
561
  self.success_url = attributes[:'successUrl']
425
562
  end
426
563
 
564
+ if attributes.has_key?(:'timeZone')
565
+ self.time_zone = attributes[:'timeZone']
566
+ end
567
+
427
568
  if attributes.has_key?(:'token')
428
569
  self.token = attributes[:'token']
429
570
  end
430
571
 
572
+ if attributes.has_key?(:'tokenizationMode')
573
+ self.tokenization_mode = attributes[:'tokenizationMode']
574
+ end
575
+
576
+ if attributes.has_key?(:'totalAppliedFees')
577
+ self.total_applied_fees = attributes[:'totalAppliedFees']
578
+ end
579
+
580
+ if attributes.has_key?(:'totalSettledAmount')
581
+ self.total_settled_amount = attributes[:'totalSettledAmount']
582
+ end
583
+
431
584
  if attributes.has_key?(:'userAgentHeader')
432
585
  self.user_agent_header = attributes[:'userAgentHeader']
433
586
  end
434
587
 
588
+ if attributes.has_key?(:'userFailureMessage')
589
+ self.user_failure_message = attributes[:'userFailureMessage']
590
+ end
591
+
435
592
  if attributes.has_key?(:'userInterfaceType')
436
593
  self.user_interface_type = attributes[:'userInterfaceType']
437
594
  end
@@ -439,20 +596,103 @@ module Wallee
439
596
  if attributes.has_key?(:'version')
440
597
  self.version = attributes[:'version']
441
598
  end
442
-
443
599
  end
444
600
 
445
601
  # Show invalid properties with the reasons. Usually used together with valid?
446
- # @return Array for valid properies with the reasons
602
+ # @return Array for valid properties with the reasons
447
603
  def list_invalid_properties
448
604
  invalid_properties = Array.new
449
- return invalid_properties
605
+ if !@customer_email_address.nil? && @customer_email_address.to_s.length > 254
606
+ invalid_properties.push('invalid value for "customer_email_address", the character length must be smaller than or equal to 254.')
607
+ end
608
+
609
+ if !@device_session_identifier.nil? && @device_session_identifier.to_s.length > 40
610
+ invalid_properties.push('invalid value for "device_session_identifier", the character length must be smaller than or equal to 40.')
611
+ end
612
+
613
+ if !@device_session_identifier.nil? && @device_session_identifier.to_s.length < 10
614
+ invalid_properties.push('invalid value for "device_session_identifier", the character length must be great than or equal to 10.')
615
+ end
616
+
617
+ if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
618
+ invalid_properties.push('invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.')
619
+ end
620
+
621
+ if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
622
+ invalid_properties.push('invalid value for "merchant_reference", the character length must be smaller than or equal to 100.')
623
+ end
624
+
625
+ if !@shipping_method.nil? && @shipping_method.to_s.length > 200
626
+ invalid_properties.push('invalid value for "shipping_method", the character length must be smaller than or equal to 200.')
627
+ end
628
+
629
+ invalid_properties
450
630
  end
451
631
 
452
632
  # Check to see if the all the properties in the model are valid
453
633
  # @return true if the model is valid
454
634
  def valid?
455
- return true
635
+ return false if !@customer_email_address.nil? && @customer_email_address.to_s.length > 254
636
+ return false if !@device_session_identifier.nil? && @device_session_identifier.to_s.length > 40
637
+ return false if !@device_session_identifier.nil? && @device_session_identifier.to_s.length < 10
638
+ return false if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
639
+ return false if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
640
+ return false if !@shipping_method.nil? && @shipping_method.to_s.length > 200
641
+ true
642
+ end
643
+
644
+ # Custom attribute writer method with validation
645
+ # @param [Object] customer_email_address Value to be assigned
646
+ def customer_email_address=(customer_email_address)
647
+ if !customer_email_address.nil? && customer_email_address.to_s.length > 254
648
+ fail ArgumentError, 'invalid value for "customer_email_address", the character length must be smaller than or equal to 254.'
649
+ end
650
+
651
+ @customer_email_address = customer_email_address
652
+ end
653
+
654
+ # Custom attribute writer method with validation
655
+ # @param [Object] device_session_identifier Value to be assigned
656
+ def device_session_identifier=(device_session_identifier)
657
+ if !device_session_identifier.nil? && device_session_identifier.to_s.length > 40
658
+ fail ArgumentError, 'invalid value for "device_session_identifier", the character length must be smaller than or equal to 40.'
659
+ end
660
+
661
+ if !device_session_identifier.nil? && device_session_identifier.to_s.length < 10
662
+ fail ArgumentError, 'invalid value for "device_session_identifier", the character length must be great than or equal to 10.'
663
+ end
664
+
665
+ @device_session_identifier = device_session_identifier
666
+ end
667
+
668
+ # Custom attribute writer method with validation
669
+ # @param [Object] invoice_merchant_reference Value to be assigned
670
+ def invoice_merchant_reference=(invoice_merchant_reference)
671
+ if !invoice_merchant_reference.nil? && invoice_merchant_reference.to_s.length > 100
672
+ fail ArgumentError, 'invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.'
673
+ end
674
+
675
+ @invoice_merchant_reference = invoice_merchant_reference
676
+ end
677
+
678
+ # Custom attribute writer method with validation
679
+ # @param [Object] merchant_reference Value to be assigned
680
+ def merchant_reference=(merchant_reference)
681
+ if !merchant_reference.nil? && merchant_reference.to_s.length > 100
682
+ fail ArgumentError, 'invalid value for "merchant_reference", the character length must be smaller than or equal to 100.'
683
+ end
684
+
685
+ @merchant_reference = merchant_reference
686
+ end
687
+
688
+ # Custom attribute writer method with validation
689
+ # @param [Object] shipping_method Value to be assigned
690
+ def shipping_method=(shipping_method)
691
+ if !shipping_method.nil? && shipping_method.to_s.length > 200
692
+ fail ArgumentError, 'invalid value for "shipping_method", the character length must be smaller than or equal to 200.'
693
+ end
694
+
695
+ @shipping_method = shipping_method
456
696
  end
457
697
 
458
698
  # Checks equality by comparing each attribute.
@@ -461,12 +701,18 @@ module Wallee
461
701
  return true if self.equal?(o)
462
702
  self.class == o.class &&
463
703
  accept_header == o.accept_header &&
704
+ accept_language_header == o.accept_language_header &&
464
705
  allowed_payment_method_brands == o.allowed_payment_method_brands &&
465
706
  allowed_payment_method_configurations == o.allowed_payment_method_configurations &&
466
707
  authorization_amount == o.authorization_amount &&
708
+ authorization_environment == o.authorization_environment &&
709
+ authorization_sales_channel == o.authorization_sales_channel &&
710
+ authorization_timeout_on == o.authorization_timeout_on &&
467
711
  authorized_on == o.authorized_on &&
712
+ auto_confirmation_enabled == o.auto_confirmation_enabled &&
468
713
  billing_address == o.billing_address &&
469
714
  charge_retry_enabled == o.charge_retry_enabled &&
715
+ completed_amount == o.completed_amount &&
470
716
  completed_on == o.completed_on &&
471
717
  completion_timeout_on == o.completion_timeout_on &&
472
718
  confirmed_by == o.confirmed_by &&
@@ -477,9 +723,15 @@ module Wallee
477
723
  customer_email_address == o.customer_email_address &&
478
724
  customer_id == o.customer_id &&
479
725
  customers_presence == o.customers_presence &&
726
+ delivery_decision_made_on == o.delivery_decision_made_on &&
727
+ device_session_identifier == o.device_session_identifier &&
728
+ emails_disabled == o.emails_disabled &&
480
729
  end_of_life == o.end_of_life &&
730
+ environment == o.environment &&
731
+ environment_selection_strategy == o.environment_selection_strategy &&
481
732
  failed_on == o.failed_on &&
482
733
  failed_url == o.failed_url &&
734
+ failure_reason == o.failure_reason &&
483
735
  group == o.group &&
484
736
  id == o.id &&
485
737
  internet_protocol_address == o.internet_protocol_address &&
@@ -490,6 +742,7 @@ module Wallee
490
742
  linked_space_id == o.linked_space_id &&
491
743
  merchant_reference == o.merchant_reference &&
492
744
  meta_data == o.meta_data &&
745
+ parent == o.parent &&
493
746
  payment_connector_configuration == o.payment_connector_configuration &&
494
747
  planned_purge_date == o.planned_purge_date &&
495
748
  processing_on == o.processing_on &&
@@ -499,8 +752,13 @@ module Wallee
499
752
  space_view_id == o.space_view_id &&
500
753
  state == o.state &&
501
754
  success_url == o.success_url &&
755
+ time_zone == o.time_zone &&
502
756
  token == o.token &&
757
+ tokenization_mode == o.tokenization_mode &&
758
+ total_applied_fees == o.total_applied_fees &&
759
+ total_settled_amount == o.total_settled_amount &&
503
760
  user_agent_header == o.user_agent_header &&
761
+ user_failure_message == o.user_failure_message &&
504
762
  user_interface_type == o.user_interface_type &&
505
763
  version == o.version
506
764
  end
@@ -514,7 +772,7 @@ module Wallee
514
772
  # Calculates hash code according to all attributes.
515
773
  # @return [Fixnum] Hash code
516
774
  def hash
517
- [accept_header, allowed_payment_method_brands, allowed_payment_method_configurations, authorization_amount, authorized_on, billing_address, charge_retry_enabled, completed_on, completion_timeout_on, confirmed_by, confirmed_on, created_by, created_on, currency, customer_email_address, customer_id, customers_presence, end_of_life, failed_on, failed_url, group, id, internet_protocol_address, internet_protocol_address_country, invoice_merchant_reference, language, line_items, linked_space_id, merchant_reference, meta_data, payment_connector_configuration, planned_purge_date, processing_on, refunded_amount, shipping_address, shipping_method, space_view_id, state, success_url, token, user_agent_header, user_interface_type, version].hash
775
+ [accept_header, accept_language_header, allowed_payment_method_brands, allowed_payment_method_configurations, authorization_amount, authorization_environment, authorization_sales_channel, authorization_timeout_on, authorized_on, auto_confirmation_enabled, billing_address, charge_retry_enabled, completed_amount, completed_on, completion_timeout_on, confirmed_by, confirmed_on, created_by, created_on, currency, customer_email_address, customer_id, customers_presence, delivery_decision_made_on, device_session_identifier, emails_disabled, end_of_life, environment, environment_selection_strategy, failed_on, failed_url, failure_reason, group, id, internet_protocol_address, internet_protocol_address_country, invoice_merchant_reference, language, line_items, linked_space_id, merchant_reference, meta_data, parent, payment_connector_configuration, planned_purge_date, processing_on, refunded_amount, shipping_address, shipping_method, space_view_id, state, success_url, time_zone, token, tokenization_mode, total_applied_fees, total_settled_amount, user_agent_header, user_failure_message, user_interface_type, version].hash
518
776
  end
519
777
 
520
778
  # Builds the object from hash
@@ -524,7 +782,7 @@ module Wallee
524
782
  return nil unless attributes.is_a?(Hash)
525
783
  self.class.swagger_types.each_pair do |key, type|
526
784
  if type =~ /\AArray<(.*)>/i
527
- # check to ensure the input is an array given that the the attribute
785
+ # check to ensure the input is an array given that the attribute
528
786
  # is documented as an array but the input is not
529
787
  if attributes[self.class.attribute_map[key]].is_a?(Array)
530
788
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
@@ -622,5 +880,4 @@ module Wallee
622
880
  end
623
881
 
624
882
  end
625
-
626
883
  end