wallee-ruby-sdk 1.0.3 → 3.0.0

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