wallee-ruby-sdk 1.0.2 → 2.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (495) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/LICENSE +1 -1
  4. data/README.md +101 -38
  5. data/lib/wallee-ruby-sdk.rb +252 -116
  6. data/lib/wallee-ruby-sdk/{services → api}/account_service_api.rb +35 -39
  7. data/lib/wallee-ruby-sdk/{services → api}/application_user_service_api.rb +35 -39
  8. data/lib/wallee-ruby-sdk/{services → api}/card_processing_service_api.rb +20 -24
  9. data/lib/wallee-ruby-sdk/{services → api}/charge_attempt_service_api.rb +20 -24
  10. data/lib/wallee-ruby-sdk/{services/email_template_service_api.rb → api/charge_bank_transaction_service_api.rb} +36 -40
  11. data/lib/wallee-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
  12. data/lib/wallee-ruby-sdk/{services → api}/charge_flow_level_service_api.rb +27 -31
  13. data/lib/wallee-ruby-sdk/{services → api}/charge_flow_service_api.rb +36 -40
  14. data/lib/wallee-ruby-sdk/{services → api}/condition_type_service_api.rb +11 -15
  15. data/lib/wallee-ruby-sdk/{services → api}/country_service_api.rb +5 -9
  16. data/lib/wallee-ruby-sdk/{services → api}/country_state_service_api.rb +11 -15
  17. data/lib/wallee-ruby-sdk/{services → api}/currency_service_api.rb +5 -9
  18. data/lib/wallee-ruby-sdk/api/customer_address_service_api.rb +460 -0
  19. data/lib/wallee-ruby-sdk/api/customer_comment_service_api.rb +522 -0
  20. data/lib/wallee-ruby-sdk/{services/token_service_api.rb → api/customer_service_api.rb} +68 -72
  21. data/lib/wallee-ruby-sdk/{services → api}/debt_collection_case_service_api.rb +87 -91
  22. data/lib/wallee-ruby-sdk/{services → api}/debt_collector_configuration_service_api.rb +20 -24
  23. data/lib/wallee-ruby-sdk/{services → api}/debt_collector_service_api.rb +11 -15
  24. data/lib/wallee-ruby-sdk/{services → api}/delivery_indication_service_api.rb +34 -38
  25. data/lib/wallee-ruby-sdk/{services → api}/document_template_service_api.rb +20 -24
  26. data/lib/wallee-ruby-sdk/{services → api}/document_template_type_service_api.rb +11 -15
  27. data/lib/wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
  28. data/lib/wallee-ruby-sdk/{services → api}/human_user_service_api.rb +41 -45
  29. data/lib/wallee-ruby-sdk/{services → api}/installment_payment_service_api.rb +29 -33
  30. data/lib/wallee-ruby-sdk/{services → api}/installment_payment_slice_service_api.rb +21 -25
  31. data/lib/wallee-ruby-sdk/{services → api}/installment_plan_calculation_service_api.rb +7 -11
  32. data/lib/wallee-ruby-sdk/{services → api}/installment_plan_configuration_service_api.rb +21 -25
  33. data/lib/wallee-ruby-sdk/{services → api}/installment_plan_slice_configuration_service_api.rb +21 -25
  34. data/lib/wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
  35. data/lib/wallee-ruby-sdk/{services → api}/label_description_group_service_api.rb +11 -15
  36. data/lib/wallee-ruby-sdk/{services → api}/label_description_service_api.rb +11 -15
  37. data/lib/wallee-ruby-sdk/{services → api}/language_service_api.rb +5 -9
  38. data/lib/wallee-ruby-sdk/{services → api}/legal_organization_form_service_api.rb +17 -21
  39. data/lib/wallee-ruby-sdk/{services → api}/manual_task_service_api.rb +20 -24
  40. data/lib/wallee-ruby-sdk/{services → api}/mertic_usage_service_api.rb +8 -12
  41. data/lib/wallee-ruby-sdk/{services → api}/payment_connector_configuration_service_api.rb +20 -24
  42. data/lib/wallee-ruby-sdk/{services → api}/payment_connector_service_api.rb +11 -15
  43. data/lib/wallee-ruby-sdk/{services → api}/payment_link_service_api.rb +41 -45
  44. data/lib/wallee-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
  45. data/lib/wallee-ruby-sdk/{services → api}/payment_method_configuration_service_api.rb +20 -24
  46. data/lib/wallee-ruby-sdk/{services → api}/payment_method_service_api.rb +11 -15
  47. data/lib/wallee-ruby-sdk/{services → api}/payment_processor_configuration_service_api.rb +20 -24
  48. data/lib/wallee-ruby-sdk/{services → api}/payment_processor_service_api.rb +11 -15
  49. data/lib/wallee-ruby-sdk/api/payment_terminal_service_api.rb +213 -0
  50. data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +99 -0
  51. data/lib/wallee-ruby-sdk/{services → api}/permission_service_api.rb +11 -15
  52. data/lib/wallee-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
  53. data/lib/wallee-ruby-sdk/api/refund_comment_service_api.rb +464 -0
  54. data/lib/wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
  55. data/lib/wallee-ruby-sdk/{services → api}/refund_service_api.rb +117 -53
  56. data/lib/wallee-ruby-sdk/api/shopify_recurring_order_service_api.rb +274 -0
  57. data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +213 -0
  58. data/lib/wallee-ruby-sdk/api/shopify_subscription_product_service_api.rb +337 -0
  59. data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +466 -0
  60. data/lib/wallee-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +337 -0
  61. data/lib/wallee-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
  62. data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
  63. data/lib/wallee-ruby-sdk/{services → api}/space_service_api.rb +35 -39
  64. data/lib/wallee-ruby-sdk/{services → api}/static_value_service_api.rb +11 -15
  65. data/lib/wallee-ruby-sdk/{services → api}/subscriber_service_api.rb +44 -48
  66. data/lib/wallee-ruby-sdk/{services → api}/subscription_affiliate_service_api.rb +41 -45
  67. data/lib/wallee-ruby-sdk/{services → api}/subscription_charge_service_api.rb +34 -38
  68. data/lib/wallee-ruby-sdk/{services → api}/subscription_ledger_entry_service_api.rb +27 -31
  69. data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_service_api.rb +41 -45
  70. data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_usage_service_api.rb +27 -31
  71. data/lib/wallee-ruby-sdk/{services → api}/subscription_period_bill_service_api.rb +26 -30
  72. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_group_service_api.rb +41 -45
  73. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_service_api.rb +41 -45
  74. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_fee_tier_service_api.rb +41 -45
  75. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_metered_fee_service_api.rb +41 -45
  76. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_period_fee_service_api.rb +41 -45
  77. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_retirement_service_api.rb +27 -31
  78. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_service_api.rb +34 -38
  79. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_setup_fee_service_api.rb +41 -45
  80. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_retirement_service_api.rb +27 -31
  81. data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_service_api.rb +41 -45
  82. data/lib/wallee-ruby-sdk/{services → api}/subscription_service_api.rb +237 -107
  83. data/lib/wallee-ruby-sdk/{services → api}/subscription_suspension_service_api.rb +34 -38
  84. data/lib/wallee-ruby-sdk/{services → api}/subscription_version_service_api.rb +20 -24
  85. data/lib/wallee-ruby-sdk/api/token_service_api.rb +587 -0
  86. data/lib/wallee-ruby-sdk/{services → api}/token_version_service_api.rb +27 -31
  87. data/lib/wallee-ruby-sdk/api/transaction_comment_service_api.rb +464 -0
  88. data/lib/wallee-ruby-sdk/{services → api}/transaction_completion_service_api.rb +158 -38
  89. data/lib/wallee-ruby-sdk/api/transaction_iframe_service_api.rb +91 -0
  90. data/lib/wallee-ruby-sdk/api/transaction_invoice_comment_service_api.rb +464 -0
  91. data/lib/wallee-ruby-sdk/{services → api}/transaction_invoice_service_api.rb +180 -53
  92. data/lib/wallee-ruby-sdk/api/transaction_lightbox_service_api.rb +91 -0
  93. data/lib/wallee-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +86 -0
  94. data/lib/wallee-ruby-sdk/api/transaction_payment_page_service_api.rb +91 -0
  95. data/lib/wallee-ruby-sdk/{services → api}/transaction_service_api.rb +149 -327
  96. data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +172 -0
  97. data/lib/wallee-ruby-sdk/{services → api}/transaction_void_service_api.rb +34 -38
  98. data/lib/wallee-ruby-sdk/{services → api}/user_account_role_service_api.rb +21 -25
  99. data/lib/wallee-ruby-sdk/{services → api}/user_space_role_service_api.rb +21 -25
  100. data/lib/wallee-ruby-sdk/{services → api}/webhook_listener_service_api.rb +41 -45
  101. data/lib/wallee-ruby-sdk/{services → api}/webhook_url_service_api.rb +41 -45
  102. data/lib/wallee-ruby-sdk/api_client.rb +9 -8
  103. data/lib/wallee-ruby-sdk/api_error.rb +0 -4
  104. data/lib/wallee-ruby-sdk/configuration.rb +2 -6
  105. data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +40 -14
  106. data/lib/wallee-ruby-sdk/models/abstract_application_user_update.rb +31 -14
  107. data/lib/wallee-ruby-sdk/models/abstract_customer_active.rb +312 -0
  108. data/lib/wallee-ruby-sdk/models/abstract_customer_address_active.rb +200 -0
  109. data/lib/wallee-ruby-sdk/models/abstract_customer_comment_active.rb +205 -0
  110. data/lib/wallee-ruby-sdk/models/abstract_debt_collection_case_update.rb +5 -13
  111. data/lib/wallee-ruby-sdk/models/abstract_human_user_update.rb +87 -15
  112. data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +35 -28
  113. data/lib/wallee-ruby-sdk/models/abstract_refund_comment_active.rb +205 -0
  114. data/lib/wallee-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
  115. data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +51 -15
  116. data/lib/wallee-ruby-sdk/models/abstract_subscriber_update.rb +51 -14
  117. data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +30 -14
  118. data/lib/wallee-ruby-sdk/models/abstract_subscription_metric_update.rb +5 -13
  119. data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +20 -13
  120. data/lib/wallee-ruby-sdk/models/abstract_token_update.rb +35 -13
  121. data/lib/wallee-ruby-sdk/models/abstract_transaction_comment_active.rb +205 -0
  122. data/lib/wallee-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +205 -0
  123. data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +127 -17
  124. data/lib/wallee-ruby-sdk/models/abstract_webhook_listener_update.rb +43 -14
  125. data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +44 -13
  126. data/lib/wallee-ruby-sdk/models/account.rb +90 -13
  127. data/lib/wallee-ruby-sdk/models/account_create.rb +56 -14
  128. data/lib/wallee-ruby-sdk/models/account_state.rb +12 -20
  129. data/lib/wallee-ruby-sdk/models/account_type.rb +9 -17
  130. data/lib/wallee-ruby-sdk/models/account_update.rb +42 -15
  131. data/lib/wallee-ruby-sdk/models/address.rb +240 -22
  132. data/lib/wallee-ruby-sdk/models/address_create.rb +240 -22
  133. data/lib/wallee-ruby-sdk/models/application_user.rb +32 -14
  134. data/lib/wallee-ruby-sdk/models/application_user_create.rb +32 -14
  135. data/lib/wallee-ruby-sdk/models/application_user_create_with_mac_key.rb +31 -13
  136. data/lib/wallee-ruby-sdk/models/application_user_update.rb +33 -15
  137. data/lib/wallee-ruby-sdk/models/bank_account.rb +291 -0
  138. data/lib/wallee-ruby-sdk/models/bank_account_environment.rb +35 -0
  139. data/lib/wallee-ruby-sdk/models/bank_account_state.rb +37 -0
  140. data/lib/wallee-ruby-sdk/models/bank_account_type.rb +227 -0
  141. data/lib/wallee-ruby-sdk/models/bank_transaction.rb +387 -0
  142. data/lib/wallee-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
  143. data/lib/wallee-ruby-sdk/models/{attachment_resource.rb → bank_transaction_source.rb} +33 -28
  144. data/lib/wallee-ruby-sdk/models/bank_transaction_state.rb +35 -0
  145. data/lib/wallee-ruby-sdk/models/bank_transaction_type.rb +215 -0
  146. data/lib/wallee-ruby-sdk/models/charge.rb +16 -13
  147. data/lib/wallee-ruby-sdk/models/charge_attempt.rb +61 -13
  148. data/lib/wallee-ruby-sdk/models/charge_attempt_environment.rb +8 -16
  149. data/lib/wallee-ruby-sdk/models/charge_attempt_state.rb +9 -17
  150. data/lib/wallee-ruby-sdk/models/charge_bank_transaction.rb +291 -0
  151. data/lib/wallee-ruby-sdk/models/charge_flow.rb +5 -12
  152. data/lib/wallee-ruby-sdk/models/charge_flow_level.rb +5 -12
  153. data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration.rb +20 -12
  154. data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration_type.rb +20 -15
  155. data/lib/wallee-ruby-sdk/models/charge_flow_level_payment_link.rb +231 -0
  156. data/lib/wallee-ruby-sdk/models/charge_flow_level_state.rb +9 -17
  157. data/lib/wallee-ruby-sdk/models/charge_state.rb +9 -17
  158. data/lib/wallee-ruby-sdk/models/charge_type.rb +10 -17
  159. data/lib/wallee-ruby-sdk/models/client_error.rb +5 -12
  160. data/lib/wallee-ruby-sdk/models/client_error_type.rb +9 -17
  161. data/lib/wallee-ruby-sdk/models/completion_line_item.rb +226 -0
  162. data/lib/wallee-ruby-sdk/models/completion_line_item_create.rb +245 -0
  163. data/lib/wallee-ruby-sdk/models/condition.rb +20 -12
  164. data/lib/wallee-ruby-sdk/models/condition_type.rb +7 -14
  165. data/lib/wallee-ruby-sdk/models/connector_invocation.rb +5 -12
  166. data/lib/wallee-ruby-sdk/models/connector_invocation_stage.rb +10 -18
  167. data/lib/wallee-ruby-sdk/models/creation_entity_state.rb +11 -19
  168. data/lib/wallee-ruby-sdk/models/criteria_operator.rb +18 -24
  169. data/lib/wallee-ruby-sdk/models/currency_bank_account.rb +241 -0
  170. data/lib/wallee-ruby-sdk/models/customer.rb +353 -0
  171. data/lib/wallee-ruby-sdk/models/customer_active.rb +343 -0
  172. data/lib/wallee-ruby-sdk/models/customer_address.rb +261 -0
  173. data/lib/wallee-ruby-sdk/models/customer_address_active.rb +231 -0
  174. data/lib/wallee-ruby-sdk/models/customer_address_create.rb +216 -0
  175. data/lib/wallee-ruby-sdk/models/customer_address_type.rb +36 -0
  176. data/lib/wallee-ruby-sdk/models/customer_comment.rb +296 -0
  177. data/lib/wallee-ruby-sdk/models/customer_comment_active.rb +236 -0
  178. data/lib/wallee-ruby-sdk/models/customer_comment_create.rb +221 -0
  179. data/lib/wallee-ruby-sdk/models/customer_create.rb +313 -0
  180. data/lib/wallee-ruby-sdk/models/customer_postal_address.rb +606 -0
  181. data/lib/wallee-ruby-sdk/models/customer_postal_address_create.rb +606 -0
  182. data/lib/wallee-ruby-sdk/models/customers_presence.rb +9 -17
  183. data/lib/wallee-ruby-sdk/models/data_collection_type.rb +8 -16
  184. data/lib/wallee-ruby-sdk/models/database_translated_string.rb +5 -12
  185. data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +5 -12
  186. data/lib/wallee-ruby-sdk/models/database_translated_string_item.rb +20 -12
  187. data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +21 -13
  188. data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +5 -12
  189. data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +7 -14
  190. data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +50 -12
  191. data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +7 -14
  192. data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +13 -21
  193. data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +7 -14
  194. data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +8 -16
  195. data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +29 -12
  196. data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +7 -14
  197. data/lib/wallee-ruby-sdk/models/debt_collector.rb +7 -14
  198. data/lib/wallee-ruby-sdk/models/debt_collector_condition.rb +20 -12
  199. data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +7 -14
  200. data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +20 -12
  201. data/lib/wallee-ruby-sdk/models/delivery_indication.rb +16 -13
  202. data/lib/wallee-ruby-sdk/models/delivery_indication_decision_reason.rb +7 -14
  203. data/lib/wallee-ruby-sdk/models/delivery_indication_state.rb +10 -18
  204. data/lib/wallee-ruby-sdk/models/document_template.rb +41 -13
  205. data/lib/wallee-ruby-sdk/models/document_template_type.rb +18 -15
  206. data/lib/wallee-ruby-sdk/models/document_template_type_group.rb +203 -0
  207. data/lib/wallee-ruby-sdk/models/entity_export_request.rb +6 -13
  208. data/lib/wallee-ruby-sdk/models/entity_query.rb +5 -12
  209. data/lib/wallee-ruby-sdk/models/entity_query_filter.rb +6 -13
  210. data/lib/wallee-ruby-sdk/models/entity_query_filter_type.rb +9 -17
  211. data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +7 -14
  212. data/lib/wallee-ruby-sdk/models/entity_query_order_by_type.rb +8 -16
  213. data/lib/wallee-ruby-sdk/models/environment.rb +8 -16
  214. data/lib/wallee-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
  215. data/lib/wallee-ruby-sdk/models/failure_category.rb +11 -19
  216. data/lib/wallee-ruby-sdk/models/failure_reason.rb +7 -14
  217. data/lib/wallee-ruby-sdk/models/feature.rb +18 -15
  218. data/lib/wallee-ruby-sdk/models/feature_category.rb +225 -0
  219. data/lib/wallee-ruby-sdk/models/gender.rb +8 -16
  220. data/lib/wallee-ruby-sdk/models/human_user.rb +107 -14
  221. data/lib/wallee-ruby-sdk/models/human_user_create.rb +86 -13
  222. data/lib/wallee-ruby-sdk/models/human_user_update.rb +88 -15
  223. data/lib/wallee-ruby-sdk/models/installment_calculated_plan.rb +5 -12
  224. data/lib/wallee-ruby-sdk/models/installment_calculated_slice.rb +5 -12
  225. data/lib/wallee-ruby-sdk/models/installment_payment.rb +5 -12
  226. data/lib/wallee-ruby-sdk/models/installment_payment_slice.rb +5 -12
  227. data/lib/wallee-ruby-sdk/models/installment_payment_slice_state.rb +13 -21
  228. data/lib/wallee-ruby-sdk/models/installment_payment_state.rb +14 -22
  229. data/lib/wallee-ruby-sdk/models/installment_plan_configuration.rb +20 -12
  230. data/lib/wallee-ruby-sdk/models/installment_plan_slice_configuration.rb +5 -12
  231. data/lib/wallee-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
  232. data/lib/wallee-ruby-sdk/models/label.rb +5 -12
  233. data/lib/wallee-ruby-sdk/models/label_descriptor.rb +7 -14
  234. data/lib/wallee-ruby-sdk/models/label_descriptor_category.rb +8 -16
  235. data/lib/wallee-ruby-sdk/models/label_descriptor_group.rb +7 -14
  236. data/lib/wallee-ruby-sdk/models/label_descriptor_type.rb +7 -14
  237. data/lib/wallee-ruby-sdk/models/legal_organization_form.rb +5 -12
  238. data/lib/wallee-ruby-sdk/models/line_item.rb +121 -14
  239. data/lib/wallee-ruby-sdk/models/line_item_attribute.rb +35 -12
  240. data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +45 -14
  241. data/lib/wallee-ruby-sdk/models/line_item_create.rb +84 -19
  242. data/lib/wallee-ruby-sdk/models/line_item_reduction.rb +20 -12
  243. data/lib/wallee-ruby-sdk/models/line_item_reduction_create.rb +27 -15
  244. data/lib/wallee-ruby-sdk/models/line_item_type.rb +10 -18
  245. data/lib/wallee-ruby-sdk/models/localized_string.rb +5 -12
  246. data/lib/wallee-ruby-sdk/models/manual_task.rb +5 -12
  247. data/lib/wallee-ruby-sdk/models/manual_task_action.rb +6 -13
  248. data/lib/wallee-ruby-sdk/models/manual_task_action_style.rb +9 -17
  249. data/lib/wallee-ruby-sdk/models/manual_task_state.rb +9 -17
  250. data/lib/wallee-ruby-sdk/models/manual_task_type.rb +7 -14
  251. data/lib/wallee-ruby-sdk/models/metric_usage.rb +7 -14
  252. data/lib/wallee-ruby-sdk/models/one_click_payment_mode.rb +9 -17
  253. data/lib/wallee-ruby-sdk/models/payment_adjustment.rb +231 -0
  254. data/lib/wallee-ruby-sdk/models/payment_adjustment_type.rb +215 -0
  255. data/lib/wallee-ruby-sdk/models/payment_connector.rb +8 -15
  256. data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +33 -13
  257. data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +5 -12
  258. data/lib/wallee-ruby-sdk/models/payment_contract.rb +29 -12
  259. data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +11 -19
  260. data/lib/wallee-ruby-sdk/models/payment_contract_type.rb +7 -14
  261. data/lib/wallee-ruby-sdk/models/payment_information_hash.rb +211 -0
  262. data/lib/wallee-ruby-sdk/models/payment_information_hash_type.rb +203 -0
  263. data/lib/wallee-ruby-sdk/models/payment_link.rb +59 -27
  264. data/lib/wallee-ruby-sdk/models/payment_link_active.rb +37 -29
  265. data/lib/wallee-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
  266. data/lib/wallee-ruby-sdk/models/payment_link_create.rb +64 -28
  267. data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +8 -16
  268. data/lib/wallee-ruby-sdk/models/payment_link_update.rb +37 -29
  269. data/lib/wallee-ruby-sdk/models/payment_method.rb +8 -15
  270. data/lib/wallee-ruby-sdk/models/payment_method_brand.rb +7 -14
  271. data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +22 -14
  272. data/lib/wallee-ruby-sdk/models/payment_primary_risk_taker.rb +9 -17
  273. data/lib/wallee-ruby-sdk/models/payment_processor.rb +10 -17
  274. data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +20 -12
  275. data/lib/wallee-ruby-sdk/models/{email_template.rb → payment_terminal.rb} +51 -79
  276. data/lib/wallee-ruby-sdk/models/{space_address_setter.rb → payment_terminal_address.rb} +105 -27
  277. data/lib/wallee-ruby-sdk/models/{email_sender.rb → payment_terminal_configuration.rb} +34 -46
  278. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_state.rb +37 -0
  279. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +313 -0
  280. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +38 -0
  281. data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +276 -0
  282. data/lib/wallee-ruby-sdk/models/payment_terminal_location_state.rb +37 -0
  283. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version.rb +281 -0
  284. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +38 -0
  285. data/lib/wallee-ruby-sdk/models/payment_terminal_state.rb +38 -0
  286. data/lib/wallee-ruby-sdk/models/payment_terminal_type.rb +215 -0
  287. data/lib/wallee-ruby-sdk/models/permission.rb +20 -17
  288. data/lib/wallee-ruby-sdk/models/persistable_currency_amount.rb +5 -12
  289. data/lib/wallee-ruby-sdk/models/persistable_currency_amount_update.rb +5 -12
  290. data/lib/wallee-ruby-sdk/models/product_fee_type.rb +9 -17
  291. data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +5 -12
  292. data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +7 -14
  293. data/lib/wallee-ruby-sdk/models/product_metered_tier_fee.rb +5 -12
  294. data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +7 -14
  295. data/lib/wallee-ruby-sdk/models/product_metered_tier_pricing.rb +8 -16
  296. data/lib/wallee-ruby-sdk/models/product_period_fee.rb +16 -13
  297. data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +18 -15
  298. data/lib/wallee-ruby-sdk/models/product_setup_fee.rb +5 -12
  299. data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +7 -14
  300. data/lib/wallee-ruby-sdk/models/refund.rb +120 -13
  301. data/lib/wallee-ruby-sdk/models/refund_bank_transaction.rb +281 -0
  302. data/lib/wallee-ruby-sdk/models/refund_comment.rb +296 -0
  303. data/lib/wallee-ruby-sdk/models/refund_comment_active.rb +236 -0
  304. data/lib/wallee-ruby-sdk/models/refund_comment_create.rb +221 -0
  305. data/lib/wallee-ruby-sdk/models/refund_create.rb +67 -21
  306. data/lib/wallee-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
  307. data/lib/wallee-ruby-sdk/models/refund_state.rb +12 -19
  308. data/lib/wallee-ruby-sdk/models/refund_type.rb +10 -18
  309. data/lib/wallee-ruby-sdk/models/rendered_document.rb +5 -12
  310. data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +203 -0
  311. data/lib/wallee-ruby-sdk/models/resource_path.rb +29 -12
  312. data/lib/wallee-ruby-sdk/models/resource_state.rb +9 -17
  313. data/lib/wallee-ruby-sdk/models/rest_address_format.rb +5 -12
  314. data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +16 -24
  315. data/lib/wallee-ruby-sdk/models/rest_country.rb +5 -12
  316. data/lib/wallee-ruby-sdk/models/rest_country_state.rb +5 -12
  317. data/lib/wallee-ruby-sdk/models/rest_currency.rb +5 -12
  318. data/lib/wallee-ruby-sdk/models/rest_language.rb +5 -12
  319. data/lib/wallee-ruby-sdk/models/role.rb +16 -13
  320. data/lib/wallee-ruby-sdk/models/{email_template_type.rb → sales_channel.rb} +27 -70
  321. data/lib/wallee-ruby-sdk/models/scope.rb +61 -13
  322. data/lib/wallee-ruby-sdk/models/server_error.rb +5 -12
  323. data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
  324. data/lib/wallee-ruby-sdk/models/shopify_integration.rb +470 -0
  325. data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
  326. data/lib/wallee-ruby-sdk/models/shopify_integration_subscription_app_version.rb +36 -0
  327. data/lib/wallee-ruby-sdk/models/shopify_recurring_order.rb +351 -0
  328. data/lib/wallee-ruby-sdk/models/shopify_recurring_order_state.rb +39 -0
  329. data/lib/wallee-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
  330. data/lib/wallee-ruby-sdk/models/shopify_subscriber.rb +281 -0
  331. data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
  332. data/lib/wallee-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
  333. data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +365 -0
  334. data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +546 -0
  335. data/lib/wallee-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
  336. data/lib/wallee-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
  337. data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +353 -0
  338. data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +261 -0
  339. data/lib/wallee-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
  340. data/lib/wallee-ruby-sdk/models/{entity_reference.rb → shopify_subscription_model_tax_line.rb} +27 -14
  341. data/lib/wallee-ruby-sdk/models/shopify_subscription_product.rb +471 -0
  342. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +366 -0
  343. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
  344. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
  345. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_update.rb +351 -0
  346. data/lib/wallee-ruby-sdk/models/shopify_subscription_state.rb +39 -0
  347. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension.rb +311 -0
  348. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_create.rb +226 -0
  349. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_initiator.rb +35 -0
  350. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_state.rb +35 -0
  351. data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_type.rb +35 -0
  352. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
  353. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +233 -0
  354. data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +453 -0
  355. data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item.rb +233 -0
  356. data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +35 -0
  357. data/lib/wallee-ruby-sdk/models/shopify_subscription_version_state.rb +36 -0
  358. data/lib/wallee-ruby-sdk/models/shopify_subscription_weekday.rb +40 -0
  359. data/lib/wallee-ruby-sdk/models/shopify_tax_line.rb +231 -0
  360. data/lib/wallee-ruby-sdk/models/shopify_transaction.rb +301 -0
  361. data/lib/wallee-ruby-sdk/models/shopify_transaction_state.rb +38 -0
  362. data/lib/wallee-ruby-sdk/models/space.rb +91 -14
  363. data/lib/wallee-ruby-sdk/models/space_address.rb +120 -22
  364. data/lib/wallee-ruby-sdk/models/space_address_create.rb +120 -22
  365. data/lib/wallee-ruby-sdk/models/space_create.rb +52 -15
  366. data/lib/wallee-ruby-sdk/models/space_reference.rb +5 -12
  367. data/lib/wallee-ruby-sdk/models/space_reference_state.rb +11 -19
  368. data/lib/wallee-ruby-sdk/models/space_update.rb +53 -16
  369. data/lib/wallee-ruby-sdk/models/space_view.rb +29 -12
  370. data/lib/wallee-ruby-sdk/models/static_value.rb +7 -14
  371. data/lib/wallee-ruby-sdk/models/subscriber.rb +51 -13
  372. data/lib/wallee-ruby-sdk/models/subscriber_active.rb +53 -15
  373. data/lib/wallee-ruby-sdk/models/subscriber_create.rb +52 -14
  374. data/lib/wallee-ruby-sdk/models/subscriber_update.rb +53 -15
  375. data/lib/wallee-ruby-sdk/models/subscription.rb +76 -13
  376. data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +78 -13
  377. data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +92 -14
  378. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +78 -13
  379. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +78 -13
  380. data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +32 -15
  381. data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +32 -15
  382. data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +25 -15
  383. data/lib/wallee-ruby-sdk/models/subscription_charge.rb +79 -13
  384. data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +71 -15
  385. data/lib/wallee-ruby-sdk/models/subscription_charge_processing_type.rb +8 -16
  386. data/lib/wallee-ruby-sdk/models/subscription_charge_state.rb +11 -19
  387. data/lib/wallee-ruby-sdk/models/subscription_charge_type.rb +8 -16
  388. data/lib/wallee-ruby-sdk/models/subscription_component_configuration.rb +201 -0
  389. data/lib/wallee-ruby-sdk/models/subscription_component_reference_configuration.rb +201 -0
  390. data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +22 -17
  391. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +40 -13
  392. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +38 -17
  393. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_state.rb +9 -17
  394. data/lib/wallee-ruby-sdk/models/subscription_metric.rb +5 -12
  395. data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +7 -14
  396. data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +7 -14
  397. data/lib/wallee-ruby-sdk/models/subscription_metric_type.rb +7 -14
  398. data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +7 -14
  399. data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report.rb +20 -12
  400. data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +24 -16
  401. data/lib/wallee-ruby-sdk/models/subscription_pending.rb +48 -25
  402. data/lib/wallee-ruby-sdk/models/subscription_period_bill.rb +5 -12
  403. data/lib/wallee-ruby-sdk/models/subscription_period_bill_state.rb +8 -16
  404. data/lib/wallee-ruby-sdk/models/subscription_product.rb +35 -12
  405. data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +22 -14
  406. data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +36 -13
  407. data/lib/wallee-ruby-sdk/models/subscription_product_component_group.rb +5 -12
  408. data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +7 -14
  409. data/lib/wallee-ruby-sdk/models/subscription_product_component_reference.rb +20 -12
  410. data/lib/wallee-ruby-sdk/models/subscription_product_component_reference_state.rb +10 -18
  411. data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +38 -15
  412. data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +40 -13
  413. data/lib/wallee-ruby-sdk/models/subscription_product_retirement.rb +5 -12
  414. data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +6 -13
  415. data/lib/wallee-ruby-sdk/models/subscription_product_state.rb +11 -19
  416. data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +31 -13
  417. data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +19 -16
  418. data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement.rb +5 -12
  419. data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +6 -13
  420. data/lib/wallee-ruby-sdk/models/subscription_product_version_state.rb +11 -19
  421. data/lib/wallee-ruby-sdk/models/subscription_state.rb +14 -21
  422. data/lib/wallee-ruby-sdk/models/subscription_suspension.rb +20 -12
  423. data/lib/wallee-ruby-sdk/models/subscription_suspension_action.rb +8 -16
  424. data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +23 -15
  425. data/lib/wallee-ruby-sdk/models/subscription_suspension_reason.rb +9 -17
  426. data/lib/wallee-ruby-sdk/models/subscription_suspension_running.rb +20 -12
  427. data/lib/wallee-ruby-sdk/models/subscription_suspension_state.rb +8 -16
  428. data/lib/wallee-ruby-sdk/models/subscription_update.rb +33 -15
  429. data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
  430. data/lib/wallee-ruby-sdk/models/subscription_version.rb +18 -13
  431. data/lib/wallee-ruby-sdk/models/subscription_version_state.rb +12 -20
  432. data/lib/wallee-ruby-sdk/models/tax.rb +29 -12
  433. data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
  434. data/lib/wallee-ruby-sdk/models/tax_class.rb +20 -12
  435. data/lib/wallee-ruby-sdk/models/tax_create.rb +35 -14
  436. data/lib/wallee-ruby-sdk/models/tenant_database.rb +20 -12
  437. data/lib/wallee-ruby-sdk/models/token.rb +59 -12
  438. data/lib/wallee-ruby-sdk/models/token_create.rb +64 -13
  439. data/lib/wallee-ruby-sdk/models/token_update.rb +37 -14
  440. data/lib/wallee-ruby-sdk/models/token_version.rb +78 -13
  441. data/lib/wallee-ruby-sdk/models/token_version_state.rb +9 -17
  442. data/lib/wallee-ruby-sdk/models/token_version_type.rb +7 -14
  443. data/lib/wallee-ruby-sdk/models/{tokenizationn_mode.rb → tokenization_mode.rb} +11 -18
  444. data/lib/wallee-ruby-sdk/models/transaction.rb +292 -17
  445. data/lib/wallee-ruby-sdk/models/transaction_aware_entity.rb +5 -12
  446. data/lib/wallee-ruby-sdk/models/transaction_comment.rb +296 -0
  447. data/lib/wallee-ruby-sdk/models/transaction_comment_active.rb +236 -0
  448. data/lib/wallee-ruby-sdk/models/transaction_comment_create.rb +221 -0
  449. data/lib/wallee-ruby-sdk/models/transaction_completion.rb +151 -13
  450. data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
  451. data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +9 -17
  452. data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +291 -0
  453. data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +11 -18
  454. data/lib/wallee-ruby-sdk/models/transaction_create.rb +162 -17
  455. data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +9 -16
  456. data/lib/wallee-ruby-sdk/models/transaction_group.rb +20 -12
  457. data/lib/wallee-ruby-sdk/models/transaction_group_state.rb +9 -17
  458. data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +76 -14
  459. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment.rb +296 -0
  460. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_active.rb +236 -0
  461. data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_create.rb +221 -0
  462. data/lib/wallee-ruby-sdk/models/transaction_invoice_replacement.rb +62 -16
  463. data/lib/wallee-ruby-sdk/models/transaction_invoice_state.rb +13 -21
  464. data/lib/wallee-ruby-sdk/models/transaction_line_item_update_request.rb +6 -13
  465. data/lib/wallee-ruby-sdk/models/transaction_line_item_version.rb +5 -12
  466. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +129 -18
  467. data/lib/wallee-ruby-sdk/models/transaction_state.rb +16 -24
  468. data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +11 -17
  469. data/lib/wallee-ruby-sdk/models/transaction_void.rb +5 -12
  470. data/lib/wallee-ruby-sdk/models/transaction_void_mode.rb +8 -16
  471. data/lib/wallee-ruby-sdk/models/transaction_void_state.rb +10 -18
  472. data/lib/wallee-ruby-sdk/models/{email_sender_type.rb → two_factor_authentication_type.rb} +19 -16
  473. data/lib/wallee-ruby-sdk/models/unencrypted_card_data.rb +68 -12
  474. data/lib/wallee-ruby-sdk/models/unencrypted_card_data_create.rb +73 -13
  475. data/lib/wallee-ruby-sdk/models/user.rb +5 -12
  476. data/lib/wallee-ruby-sdk/models/user_account_role.rb +5 -12
  477. data/lib/wallee-ruby-sdk/models/user_space_role.rb +5 -12
  478. data/lib/wallee-ruby-sdk/models/user_type.rb +11 -19
  479. data/lib/wallee-ruby-sdk/models/webhook_identity.rb +20 -12
  480. data/lib/wallee-ruby-sdk/models/webhook_listener.rb +20 -12
  481. data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +44 -41
  482. data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +6 -13
  483. data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +45 -15
  484. data/lib/wallee-ruby-sdk/models/webhook_url.rb +44 -12
  485. data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +44 -12
  486. data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +46 -14
  487. data/lib/wallee-ruby-sdk/version.rb +1 -5
  488. data/test/condition_type_service_test.rb +22 -0
  489. data/test/{transactioncreate.rb → transaction_create_service_test.rb} +2 -2
  490. data/test/transaction_payment_page_service_test.rb +91 -0
  491. data/wallee-ruby-sdk.gemspec +5 -8
  492. metadata +248 -96
  493. data/lib/wallee-ruby-sdk/services/email_sender_service_api.rb +0 -219
  494. data/lib/wallee-ruby-sdk/services/email_sender_type_service_api.rb +0 -143
  495. data/lib/wallee-ruby-sdk/services/email_template_type_service_api.rb +0 -143
@@ -1,10 +1,6 @@
1
1
  =begin
2
- Wallee API: 1.0.0
3
-
4
2
  The wallee API allows an easy interaction with the wallee web service.
5
3
 
6
-
7
-
8
4
  Licensed under the Apache License, Version 2.0 (the "License");
9
5
  you may not use this file except in compliance with the License.
10
6
  You may obtain a copy of the License at
@@ -22,7 +18,6 @@ limitations under the License.
22
18
  require 'date'
23
19
 
24
20
  module Wallee
25
-
26
21
  class AbstractSubscriberUpdate
27
22
  # Those payment methods which are allowed additionally will be available even when the product does not allow those methods.
28
23
  attr_accessor :additional_allowed_payment_method_configurations
@@ -51,7 +46,6 @@ module Wallee
51
46
  #
52
47
  attr_accessor :shipping_address
53
48
 
54
-
55
49
  # Attribute mapping from ruby-style variable name to JSON key.
56
50
  def self.attribute_map
57
51
  {
@@ -88,7 +82,7 @@ module Wallee
88
82
  return unless attributes.is_a?(Hash)
89
83
 
90
84
  # convert string to symbol for hash key
91
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
85
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
92
86
 
93
87
  if attributes.has_key?(:'additionalAllowedPaymentMethodConfigurations')
94
88
  if (value = attributes[:'additionalAllowedPaymentMethodConfigurations']).is_a?(Array)
@@ -119,7 +113,7 @@ module Wallee
119
113
  end
120
114
 
121
115
  if attributes.has_key?(:'metaData')
122
- if (value = attributes[:'metaData']).is_a?(Array)
116
+ if (value = attributes[:'metaData']).is_a?(Hash)
123
117
  self.meta_data = value
124
118
  end
125
119
  end
@@ -131,20 +125,64 @@ module Wallee
131
125
  if attributes.has_key?(:'shippingAddress')
132
126
  self.shipping_address = attributes[:'shippingAddress']
133
127
  end
134
-
135
128
  end
136
129
 
137
130
  # Show invalid properties with the reasons. Usually used together with valid?
138
- # @return Array for valid properies with the reasons
131
+ # @return Array for valid properties with the reasons
139
132
  def list_invalid_properties
140
133
  invalid_properties = Array.new
141
- return invalid_properties
134
+ if !@description.nil? && @description.to_s.length > 200
135
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 200.')
136
+ end
137
+
138
+ if !@email_address.nil? && @email_address.to_s.length > 254
139
+ invalid_properties.push('invalid value for "email_address", the character length must be smaller than or equal to 254.')
140
+ end
141
+
142
+ if !@reference.nil? && @reference.to_s.length > 100
143
+ invalid_properties.push('invalid value for "reference", the character length must be smaller than or equal to 100.')
144
+ end
145
+
146
+ invalid_properties
142
147
  end
143
148
 
144
149
  # Check to see if the all the properties in the model are valid
145
150
  # @return true if the model is valid
146
151
  def valid?
147
- return true
152
+ return false if !@description.nil? && @description.to_s.length > 200
153
+ return false if !@email_address.nil? && @email_address.to_s.length > 254
154
+ return false if !@reference.nil? && @reference.to_s.length > 100
155
+ true
156
+ end
157
+
158
+ # Custom attribute writer method with validation
159
+ # @param [Object] description Value to be assigned
160
+ def description=(description)
161
+ if !description.nil? && description.to_s.length > 200
162
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 200.'
163
+ end
164
+
165
+ @description = description
166
+ end
167
+
168
+ # Custom attribute writer method with validation
169
+ # @param [Object] email_address Value to be assigned
170
+ def email_address=(email_address)
171
+ if !email_address.nil? && email_address.to_s.length > 254
172
+ fail ArgumentError, 'invalid value for "email_address", the character length must be smaller than or equal to 254.'
173
+ end
174
+
175
+ @email_address = email_address
176
+ end
177
+
178
+ # Custom attribute writer method with validation
179
+ # @param [Object] reference Value to be assigned
180
+ def reference=(reference)
181
+ if !reference.nil? && reference.to_s.length > 100
182
+ fail ArgumentError, 'invalid value for "reference", the character length must be smaller than or equal to 100.'
183
+ end
184
+
185
+ @reference = reference
148
186
  end
149
187
 
150
188
  # Checks equality by comparing each attribute.
@@ -182,7 +220,7 @@ module Wallee
182
220
  return nil unless attributes.is_a?(Hash)
183
221
  self.class.swagger_types.each_pair do |key, type|
184
222
  if type =~ /\AArray<(.*)>/i
185
- # check to ensure the input is an array given that the the attribute
223
+ # check to ensure the input is an array given that the attribute
186
224
  # is documented as an array but the input is not
187
225
  if attributes[self.class.attribute_map[key]].is_a?(Array)
188
226
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
@@ -280,5 +318,4 @@ module Wallee
280
318
  end
281
319
 
282
320
  end
283
-
284
321
  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
@@ -22,7 +18,6 @@ limitations under the License.
22
18
  require 'date'
23
19
 
24
20
  module Wallee
25
-
26
21
  class AbstractSubscriptionAffiliateUpdate
27
22
  #
28
23
  attr_accessor :language
@@ -36,7 +31,6 @@ module Wallee
36
31
  #
37
32
  attr_accessor :state
38
33
 
39
-
40
34
  # Attribute mapping from ruby-style variable name to JSON key.
41
35
  def self.attribute_map
42
36
  {
@@ -63,14 +57,14 @@ module Wallee
63
57
  return unless attributes.is_a?(Hash)
64
58
 
65
59
  # convert string to symbol for hash key
66
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
60
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
61
 
68
62
  if attributes.has_key?(:'language')
69
63
  self.language = attributes[:'language']
70
64
  end
71
65
 
72
66
  if attributes.has_key?(:'metaData')
73
- if (value = attributes[:'metaData']).is_a?(Array)
67
+ if (value = attributes[:'metaData']).is_a?(Hash)
74
68
  self.meta_data = value
75
69
  end
76
70
  end
@@ -82,20 +76,43 @@ module Wallee
82
76
  if attributes.has_key?(:'state')
83
77
  self.state = attributes[:'state']
84
78
  end
85
-
86
79
  end
87
80
 
88
81
  # Show invalid properties with the reasons. Usually used together with valid?
89
- # @return Array for valid properies with the reasons
82
+ # @return Array for valid properties with the reasons
90
83
  def list_invalid_properties
91
84
  invalid_properties = Array.new
92
- return invalid_properties
85
+ if !@name.nil? && @name.to_s.length > 255
86
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
87
+ end
88
+
89
+ if !@name.nil? && @name.to_s.length < 3
90
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
91
+ end
92
+
93
+ invalid_properties
93
94
  end
94
95
 
95
96
  # Check to see if the all the properties in the model are valid
96
97
  # @return true if the model is valid
97
98
  def valid?
98
- return true
99
+ return false if !@name.nil? && @name.to_s.length > 255
100
+ return false if !@name.nil? && @name.to_s.length < 3
101
+ true
102
+ end
103
+
104
+ # Custom attribute writer method with validation
105
+ # @param [Object] name Value to be assigned
106
+ def name=(name)
107
+ if !name.nil? && name.to_s.length > 255
108
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
109
+ end
110
+
111
+ if !name.nil? && name.to_s.length < 3
112
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
113
+ end
114
+
115
+ @name = name
99
116
  end
100
117
 
101
118
  # Checks equality by comparing each attribute.
@@ -128,7 +145,7 @@ module Wallee
128
145
  return nil unless attributes.is_a?(Hash)
129
146
  self.class.swagger_types.each_pair do |key, type|
130
147
  if type =~ /\AArray<(.*)>/i
131
- # check to ensure the input is an array given that the the attribute
148
+ # check to ensure the input is an array given that the attribute
132
149
  # is documented as an array but the input is not
133
150
  if attributes[self.class.attribute_map[key]].is_a?(Array)
134
151
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
@@ -226,5 +243,4 @@ module Wallee
226
243
  end
227
244
 
228
245
  end
229
-
230
246
  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
@@ -22,7 +18,6 @@ limitations under the License.
22
18
  require 'date'
23
19
 
24
20
  module Wallee
25
-
26
21
  class AbstractSubscriptionMetricUpdate
27
22
  #
28
23
  attr_accessor :description
@@ -30,7 +25,6 @@ module Wallee
30
25
  #
31
26
  attr_accessor :name
32
27
 
33
-
34
28
  # Attribute mapping from ruby-style variable name to JSON key.
35
29
  def self.attribute_map
36
30
  {
@@ -53,7 +47,7 @@ module Wallee
53
47
  return unless attributes.is_a?(Hash)
54
48
 
55
49
  # convert string to symbol for hash key
56
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
50
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
51
 
58
52
  if attributes.has_key?(:'description')
59
53
  self.description = attributes[:'description']
@@ -62,20 +56,19 @@ module Wallee
62
56
  if attributes.has_key?(:'name')
63
57
  self.name = attributes[:'name']
64
58
  end
65
-
66
59
  end
67
60
 
68
61
  # Show invalid properties with the reasons. Usually used together with valid?
69
- # @return Array for valid properies with the reasons
62
+ # @return Array for valid properties with the reasons
70
63
  def list_invalid_properties
71
64
  invalid_properties = Array.new
72
- return invalid_properties
65
+ invalid_properties
73
66
  end
74
67
 
75
68
  # Check to see if the all the properties in the model are valid
76
69
  # @return true if the model is valid
77
70
  def valid?
78
- return true
71
+ true
79
72
  end
80
73
 
81
74
  # Checks equality by comparing each attribute.
@@ -106,7 +99,7 @@ module Wallee
106
99
  return nil unless attributes.is_a?(Hash)
107
100
  self.class.swagger_types.each_pair do |key, type|
108
101
  if type =~ /\AArray<(.*)>/i
109
- # check to ensure the input is an array given that the the attribute
102
+ # check to ensure the input is an array given that the attribute
110
103
  # is documented as an array but the input is not
111
104
  if attributes[self.class.attribute_map[key]].is_a?(Array)
112
105
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
@@ -204,5 +197,4 @@ module Wallee
204
197
  end
205
198
 
206
199
  end
207
-
208
200
  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
@@ -22,7 +18,6 @@ limitations under the License.
22
18
  require 'date'
23
19
 
24
20
  module Wallee
25
-
26
21
  class AbstractSubscriptionProductActive
27
22
  # The allowed payment method configurations control which payment methods can be used with this product. When none is selected all methods will be allowed.
28
23
  attr_accessor :allowed_payment_method_configurations
@@ -39,7 +34,6 @@ module Wallee
39
34
  #
40
35
  attr_accessor :state
41
36
 
42
-
43
37
  # Attribute mapping from ruby-style variable name to JSON key.
44
38
  def self.attribute_map
45
39
  {
@@ -68,7 +62,7 @@ module Wallee
68
62
  return unless attributes.is_a?(Hash)
69
63
 
70
64
  # convert string to symbol for hash key
71
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
65
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
72
66
 
73
67
  if attributes.has_key?(:'allowedPaymentMethodConfigurations')
74
68
  if (value = attributes[:'allowedPaymentMethodConfigurations']).is_a?(Array)
@@ -91,20 +85,34 @@ module Wallee
91
85
  if attributes.has_key?(:'state')
92
86
  self.state = attributes[:'state']
93
87
  end
94
-
95
88
  end
96
89
 
97
90
  # Show invalid properties with the reasons. Usually used together with valid?
98
- # @return Array for valid properies with the reasons
91
+ # @return Array for valid properties with the reasons
99
92
  def list_invalid_properties
100
93
  invalid_properties = Array.new
101
- return invalid_properties
94
+ if !@name.nil? && @name.to_s.length > 100
95
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
96
+ end
97
+
98
+ invalid_properties
102
99
  end
103
100
 
104
101
  # Check to see if the all the properties in the model are valid
105
102
  # @return true if the model is valid
106
103
  def valid?
107
- return true
104
+ return false if !@name.nil? && @name.to_s.length > 100
105
+ true
106
+ end
107
+
108
+ # Custom attribute writer method with validation
109
+ # @param [Object] name Value to be assigned
110
+ def name=(name)
111
+ if !name.nil? && name.to_s.length > 100
112
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
113
+ end
114
+
115
+ @name = name
108
116
  end
109
117
 
110
118
  # Checks equality by comparing each attribute.
@@ -138,7 +146,7 @@ module Wallee
138
146
  return nil unless attributes.is_a?(Hash)
139
147
  self.class.swagger_types.each_pair do |key, type|
140
148
  if type =~ /\AArray<(.*)>/i
141
- # check to ensure the input is an array given that the the attribute
149
+ # check to ensure the input is an array given that the attribute
142
150
  # is documented as an array but the input is not
143
151
  if attributes[self.class.attribute_map[key]].is_a?(Array)
144
152
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
@@ -236,5 +244,4 @@ module Wallee
236
244
  end
237
245
 
238
246
  end
239
-
240
247
  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
@@ -22,7 +18,6 @@ limitations under the License.
22
18
  require 'date'
23
19
 
24
20
  module Wallee
25
-
26
21
  class AbstractTokenUpdate
27
22
  # The customer email address is the email address of the customer.
28
23
  attr_accessor :customer_email_address
@@ -42,7 +37,6 @@ module Wallee
42
37
  # Use something that it is easy to identify and may help you find the token (e.g. customer id, email address).
43
38
  attr_accessor :token_reference
44
39
 
45
-
46
40
  # Attribute mapping from ruby-style variable name to JSON key.
47
41
  def self.attribute_map
48
42
  {
@@ -73,7 +67,7 @@ module Wallee
73
67
  return unless attributes.is_a?(Hash)
74
68
 
75
69
  # convert string to symbol for hash key
76
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
70
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
77
71
 
78
72
  if attributes.has_key?(:'customerEmailAddress')
79
73
  self.customer_email_address = attributes[:'customerEmailAddress']
@@ -98,20 +92,49 @@ module Wallee
98
92
  if attributes.has_key?(:'tokenReference')
99
93
  self.token_reference = attributes[:'tokenReference']
100
94
  end
101
-
102
95
  end
103
96
 
104
97
  # Show invalid properties with the reasons. Usually used together with valid?
105
- # @return Array for valid properies with the reasons
98
+ # @return Array for valid properties with the reasons
106
99
  def list_invalid_properties
107
100
  invalid_properties = Array.new
108
- return invalid_properties
101
+ if !@customer_email_address.nil? && @customer_email_address.to_s.length > 150
102
+ invalid_properties.push('invalid value for "customer_email_address", the character length must be smaller than or equal to 150.')
103
+ end
104
+
105
+ if !@token_reference.nil? && @token_reference.to_s.length > 100
106
+ invalid_properties.push('invalid value for "token_reference", the character length must be smaller than or equal to 100.')
107
+ end
108
+
109
+ invalid_properties
109
110
  end
110
111
 
111
112
  # Check to see if the all the properties in the model are valid
112
113
  # @return true if the model is valid
113
114
  def valid?
114
- return true
115
+ return false if !@customer_email_address.nil? && @customer_email_address.to_s.length > 150
116
+ return false if !@token_reference.nil? && @token_reference.to_s.length > 100
117
+ true
118
+ end
119
+
120
+ # Custom attribute writer method with validation
121
+ # @param [Object] customer_email_address Value to be assigned
122
+ def customer_email_address=(customer_email_address)
123
+ if !customer_email_address.nil? && customer_email_address.to_s.length > 150
124
+ fail ArgumentError, 'invalid value for "customer_email_address", the character length must be smaller than or equal to 150.'
125
+ end
126
+
127
+ @customer_email_address = customer_email_address
128
+ end
129
+
130
+ # Custom attribute writer method with validation
131
+ # @param [Object] token_reference Value to be assigned
132
+ def token_reference=(token_reference)
133
+ if !token_reference.nil? && token_reference.to_s.length > 100
134
+ fail ArgumentError, 'invalid value for "token_reference", the character length must be smaller than or equal to 100.'
135
+ end
136
+
137
+ @token_reference = token_reference
115
138
  end
116
139
 
117
140
  # Checks equality by comparing each attribute.
@@ -146,7 +169,7 @@ module Wallee
146
169
  return nil unless attributes.is_a?(Hash)
147
170
  self.class.swagger_types.each_pair do |key, type|
148
171
  if type =~ /\AArray<(.*)>/i
149
- # check to ensure the input is an array given that the the attribute
172
+ # check to ensure the input is an array given that the attribute
150
173
  # is documented as an array but the input is not
151
174
  if attributes[self.class.attribute_map[key]].is_a?(Array)
152
175
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
@@ -244,5 +267,4 @@ module Wallee
244
267
  end
245
268
 
246
269
  end
247
-
248
270
  end