wallee-ruby-sdk 6.4.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +44 -37
  3. data/README.md +480 -122
  4. data/lib/wallee-ruby-sdk/api_client.rb +1 -1
  5. data/lib/wallee-ruby-sdk/models/abstract_o_auth_client_update.rb +340 -0
  6. data/lib/wallee-ruby-sdk/models/abstract_role_update.rb +13 -1
  7. data/lib/wallee-ruby-sdk/models/abstract_walleejoin_partnership.rb +330 -0
  8. data/lib/wallee-ruby-sdk/models/{payment_terminal_preparing.rb → account_create_with_owner.rb} +63 -34
  9. data/lib/wallee-ruby-sdk/models/authenticated_card_data_create.rb +30 -1
  10. data/lib/wallee-ruby-sdk/models/bank_payment_type.rb +50 -0
  11. data/lib/wallee-ruby-sdk/models/basic_address.rb +266 -0
  12. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_address_change_request.rb → boarding_strategy_information_request.rb} +22 -14
  13. data/lib/wallee-ruby-sdk/models/{bogus_express_checkout_payment_data.rb → charge_attempt_lookup_result.rb} +16 -18
  14. data/lib/wallee-ruby-sdk/models/charge_attempt_projection.rb +569 -0
  15. data/lib/wallee-ruby-sdk/models/create_fulfillment_request.rb +266 -0
  16. data/lib/wallee-ruby-sdk/models/delivery_days_range.rb +60 -0
  17. data/lib/wallee-ruby-sdk/models/delivery_destination.rb +51 -0
  18. data/lib/wallee-ruby-sdk/models/dunning_case_level.rb +403 -0
  19. data/lib/wallee-ruby-sdk/models/dunning_case_level_list_response.rb +253 -0
  20. data/lib/wallee-ruby-sdk/models/dunning_case_level_search_response.rb +263 -0
  21. data/lib/wallee-ruby-sdk/models/dunning_case_level_state.rb +53 -0
  22. data/lib/wallee-ruby-sdk/models/express_checkout_session.rb +116 -19
  23. data/lib/wallee-ruby-sdk/models/express_checkout_session_create.rb +127 -9
  24. data/lib/wallee-ruby-sdk/models/{express_checkout_create_response.rb → express_checkout_session_create_response.rb} +18 -25
  25. data/lib/wallee-ruby-sdk/models/express_checkout_session_process_request.rb +329 -0
  26. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_method_change_request.rb → express_checkout_session_process_response.rb} +11 -11
  27. data/lib/wallee-ruby-sdk/models/express_checkout_shipping_option.rb +30 -18
  28. data/lib/wallee-ruby-sdk/models/extended_rest_o_auth_client.rb +425 -0
  29. data/lib/wallee-ruby-sdk/models/fulfillment.rb +428 -0
  30. data/lib/wallee-ruby-sdk/models/fulfillment_search_response.rb +263 -0
  31. data/lib/wallee-ruby-sdk/models/fulfillment_state.rb +53 -0
  32. data/lib/wallee-ruby-sdk/models/identity_info.rb +279 -0
  33. data/lib/wallee-ruby-sdk/models/invoice_processor.rb +51 -0
  34. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
  35. data/lib/wallee-ruby-sdk/models/{payment_terminal_update.rb → invoice_reconciliation_record_invoice_link.rb} +55 -54
  36. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
  37. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
  38. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
  39. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
  40. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
  41. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
  42. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_type.rb +255 -0
  43. data/lib/wallee-ruby-sdk/models/invoice_reimbursement.rb +463 -0
  44. data/lib/wallee-ruby-sdk/models/invoice_reimbursement_list_response.rb +253 -0
  45. data/lib/wallee-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
  46. data/lib/wallee-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
  47. data/lib/wallee-ruby-sdk/models/legal_form.rb +83 -0
  48. data/lib/wallee-ruby-sdk/models/merchant_application_data_dto.rb +275 -0
  49. data/lib/wallee-ruby-sdk/models/merchant_application_state.rb +50 -0
  50. data/lib/wallee-ruby-sdk/models/merchant_application_status_dto.rb +284 -0
  51. data/lib/wallee-ruby-sdk/models/merchant_application_submit_request_dto.rb +232 -0
  52. data/lib/wallee-ruby-sdk/models/merchant_application_submitted_dto.rb +273 -0
  53. data/lib/wallee-ruby-sdk/models/merchant_bank_details_dto.rb +253 -0
  54. data/lib/wallee-ruby-sdk/models/merchant_company_details_dto.rb +331 -0
  55. data/lib/wallee-ruby-sdk/models/merchant_contract_revenue_dto.rb +261 -0
  56. data/lib/wallee-ruby-sdk/models/merchant_ecommerce_details_dto.rb +348 -0
  57. data/lib/wallee-ruby-sdk/models/merchant_payment_channels_dto.rb +263 -0
  58. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_address_change_response.rb → merchant_related_persons_dto.rb} +22 -20
  59. data/lib/wallee-ruby-sdk/models/o_auth_client.rb +397 -0
  60. data/lib/wallee-ruby-sdk/models/o_auth_client_create.rb +365 -0
  61. data/lib/wallee-ruby-sdk/models/{user_space_role_list_response.rb → o_auth_client_list_response.rb} +4 -4
  62. data/lib/wallee-ruby-sdk/models/o_auth_client_search_response.rb +263 -0
  63. data/lib/wallee-ruby-sdk/models/o_auth_client_update.rb +374 -0
  64. data/lib/wallee-ruby-sdk/models/o_auth_consent.rb +321 -0
  65. data/lib/wallee-ruby-sdk/models/{user_account_role_list_response.rb → o_auth_consent_list_response.rb} +4 -4
  66. data/lib/wallee-ruby-sdk/models/o_auth_consent_search_response.rb +263 -0
  67. data/lib/wallee-ruby-sdk/models/{user_account_role.rb → o_auth_user.rb} +56 -29
  68. data/lib/wallee-ruby-sdk/models/{bogus_express_checkout_approval_request.rb → payment_facilitator_pricing_profile_dto.rb} +19 -10
  69. data/lib/wallee-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
  70. data/lib/wallee-ruby-sdk/models/payment_initiation_advice_file.rb +337 -0
  71. data/lib/wallee-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
  72. data/lib/wallee-ruby-sdk/models/payment_terminal.rb +37 -1
  73. data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
  74. data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
  75. data/lib/wallee-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
  76. data/lib/wallee-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
  77. data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +1 -0
  78. data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
  79. data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
  80. data/lib/wallee-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
  81. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
  82. data/lib/wallee-ruby-sdk/models/{abstract_payment_terminal_update.rb → payment_terminal_update_request.rb} +27 -26
  83. data/lib/wallee-ruby-sdk/models/payout_account_info.rb +257 -0
  84. data/lib/wallee-ruby-sdk/models/person_salutation.rb +54 -0
  85. data/lib/wallee-ruby-sdk/models/pricing_history_dto.rb +266 -0
  86. data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +11 -1
  87. data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +11 -1
  88. data/lib/wallee-ruby-sdk/models/refund_days_range.rb +51 -0
  89. data/lib/wallee-ruby-sdk/models/refund_percentage_range.rb +56 -0
  90. data/lib/wallee-ruby-sdk/models/related_person.rb +329 -0
  91. data/lib/wallee-ruby-sdk/models/representative_info.rb +239 -0
  92. data/lib/wallee-ruby-sdk/models/{user_space_role.rb → rest_member.rb} +50 -37
  93. data/lib/wallee-ruby-sdk/models/{express_checkout_approval_response.rb → rest_o_auth_client_secret.rb} +19 -17
  94. data/lib/wallee-ruby-sdk/models/rest_o_auth_client_secret_created.rb +289 -0
  95. data/lib/wallee-ruby-sdk/models/role.rb +13 -1
  96. data/lib/wallee-ruby-sdk/models/role_create.rb +13 -1
  97. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_method_change_response.rb → role_ref.rb} +18 -18
  98. data/lib/wallee-ruby-sdk/models/role_update.rb +13 -1
  99. data/lib/wallee-ruby-sdk/models/sales_channel.rb +15 -230
  100. data/lib/wallee-ruby-sdk/models/scope.rb +13 -1
  101. data/lib/wallee-ruby-sdk/models/secret_key_state.rb +51 -0
  102. data/lib/wallee-ruby-sdk/models/setter.rb +618 -0
  103. data/lib/wallee-ruby-sdk/models/sole_proprietor_ownership_type.rb +51 -0
  104. data/lib/wallee-ruby-sdk/models/sole_proprietorship_info.rb +261 -0
  105. data/lib/wallee-ruby-sdk/models/state_list_response.rb +253 -0
  106. data/lib/wallee-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
  107. data/lib/wallee-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
  108. data/lib/wallee-ruby-sdk/models/subscription_component_group_configuration_request.rb +249 -0
  109. data/lib/wallee-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
  110. data/lib/wallee-ruby-sdk/models/subscription_partial_update_request.rb +250 -0
  111. data/lib/wallee-ruby-sdk/models/subscription_product_dto.rb +239 -0
  112. data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +45 -22
  113. data/lib/wallee-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
  114. data/lib/wallee-ruby-sdk/models/tracking_number_request.rb +230 -0
  115. data/lib/wallee-ruby-sdk/models/transaction_amounts.rb +257 -0
  116. data/lib/wallee-ruby-sdk/models/transaction_overview.rb +1144 -0
  117. data/lib/wallee-ruby-sdk/models/transaction_projection.rb +1135 -0
  118. data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
  119. data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
  120. data/lib/wallee-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
  121. data/lib/wallee-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +285 -0
  122. data/lib/wallee-ruby-sdk/models/walleejoin_partnership.rb +357 -0
  123. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
  124. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
  125. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
  126. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
  127. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
  128. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
  129. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
  130. data/lib/wallee-ruby-sdk/models/wallet_type.rb +40 -1
  131. data/lib/wallee-ruby-sdk/models/web_ui_account_theme.rb +230 -0
  132. data/lib/wallee-ruby-sdk/service/accounts_service.rb +16 -9
  133. data/lib/wallee-ruby-sdk/service/analytics_queries_service.rb +8 -8
  134. data/lib/wallee-ruby-sdk/service/bank_accounts_service.rb +3 -3
  135. data/lib/wallee-ruby-sdk/service/bank_transactions_service.rb +3 -3
  136. data/lib/wallee-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
  137. data/lib/wallee-ruby-sdk/service/charge_attempts_service.rb +3 -3
  138. data/lib/wallee-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
  139. data/lib/wallee-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
  140. data/lib/wallee-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
  141. data/lib/wallee-ruby-sdk/service/charge_flows_service.rb +3 -3
  142. data/lib/wallee-ruby-sdk/service/consumed_resources_service.rb +1 -1
  143. data/lib/wallee-ruby-sdk/service/countries_service.rb +15 -6
  144. data/lib/wallee-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
  145. data/lib/wallee-ruby-sdk/service/customer_addresses_service.rb +7 -7
  146. data/lib/wallee-ruby-sdk/service/customer_comments_service.rb +8 -8
  147. data/lib/wallee-ruby-sdk/service/customers_service.rb +11 -11
  148. data/lib/wallee-ruby-sdk/service/debt_collection_cases_service.rb +12 -12
  149. data/lib/wallee-ruby-sdk/service/debt_collector_configurations_service.rb +6 -6
  150. data/lib/wallee-ruby-sdk/service/delivery_indications_service.rb +5 -5
  151. data/lib/wallee-ruby-sdk/service/document_templates_service.rb +3 -3
  152. data/lib/wallee-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
  153. data/lib/wallee-ruby-sdk/service/dunning_cases_service.rb +5 -5
  154. data/lib/wallee-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
  155. data/lib/wallee-ruby-sdk/service/dunning_flows_service.rb +3 -3
  156. data/lib/wallee-ruby-sdk/service/{express_checkout_service.rb → express_checkout_session_service.rb} +68 -82
  157. data/lib/wallee-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
  158. data/lib/wallee-ruby-sdk/service/fulfillments_service.rb +355 -0
  159. data/lib/wallee-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
  160. data/lib/wallee-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
  161. data/lib/wallee-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
  162. data/lib/wallee-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
  163. data/lib/wallee-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
  164. data/lib/wallee-ruby-sdk/service/join_partnership_service.rb +586 -0
  165. data/lib/wallee-ruby-sdk/service/manual_tasks_service.rb +5 -5
  166. data/lib/wallee-ruby-sdk/service/members_service.rb +215 -0
  167. data/lib/wallee-ruby-sdk/service/merchant_applications_service.rb +485 -0
  168. data/lib/wallee-ruby-sdk/service/o_auth_clients_service.rb +611 -0
  169. data/lib/wallee-ruby-sdk/service/o_auth_consents_service.rb +332 -0
  170. data/lib/wallee-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
  171. data/lib/wallee-ruby-sdk/service/payment_links_service.rb +6 -6
  172. data/lib/wallee-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
  173. data/lib/wallee-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
  174. data/lib/wallee-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
  175. data/lib/wallee-ruby-sdk/service/payment_terminals_service.rb +484 -31
  176. data/lib/wallee-ruby-sdk/service/payment_web_apps_service.rb +11 -11
  177. data/lib/wallee-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
  178. data/lib/wallee-ruby-sdk/service/refund_comments_service.rb +8 -8
  179. data/lib/wallee-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
  180. data/lib/wallee-ruby-sdk/service/refunds_service.rb +7 -7
  181. data/lib/wallee-ruby-sdk/service/spaces_service.rb +10 -3
  182. data/lib/wallee-ruby-sdk/service/subscribers_service.rb +6 -6
  183. data/lib/wallee-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
  184. data/lib/wallee-ruby-sdk/service/subscription_charges_service.rb +5 -5
  185. data/lib/wallee-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
  186. data/lib/wallee-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
  187. data/lib/wallee-ruby-sdk/service/subscription_metrics_service.rb +6 -6
  188. data/lib/wallee-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
  189. data/lib/wallee-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
  190. data/lib/wallee-ruby-sdk/service/subscription_product_components_service.rb +6 -6
  191. data/lib/wallee-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
  192. data/lib/wallee-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
  193. data/lib/wallee-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
  194. data/lib/wallee-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
  195. data/lib/wallee-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
  196. data/lib/wallee-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
  197. data/lib/wallee-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
  198. data/lib/wallee-ruby-sdk/service/subscription_products_service.rb +6 -6
  199. data/lib/wallee-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
  200. data/lib/wallee-ruby-sdk/service/subscription_versions_service.rb +3 -3
  201. data/lib/wallee-ruby-sdk/service/subscriptions_service.rb +22 -22
  202. data/lib/wallee-ruby-sdk/service/terminal_locations_service.rb +276 -0
  203. data/lib/wallee-ruby-sdk/service/token_versions_service.rb +3 -3
  204. data/lib/wallee-ruby-sdk/service/tokens_service.rb +8 -8
  205. data/lib/wallee-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
  206. data/lib/wallee-ruby-sdk/service/transaction_comments_service.rb +8 -8
  207. data/lib/wallee-ruby-sdk/service/transaction_completions_service.rb +3 -3
  208. data/lib/wallee-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
  209. data/lib/wallee-ruby-sdk/service/transaction_invoices_service.rb +86 -8
  210. data/lib/wallee-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
  211. data/lib/wallee-ruby-sdk/service/transaction_voids_service.rb +3 -3
  212. data/lib/wallee-ruby-sdk/service/transactions_service.rb +179 -37
  213. data/lib/wallee-ruby-sdk/service/web_apps_service.rb +2 -2
  214. data/lib/wallee-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
  215. data/lib/wallee-ruby-sdk/service/webhook_listeners_service.rb +9 -9
  216. data/lib/wallee-ruby-sdk/service/webhook_urls_service.rb +9 -9
  217. data/lib/wallee-ruby-sdk/version.rb +1 -1
  218. data/lib/wallee-ruby-sdk.rb +124 -21
  219. data/wallee-ruby-sdk.gemspec +3 -3
  220. metadata +962 -841
  221. data/lib/wallee-ruby-sdk/service/application_users_roles_service.rb +0 -478
  222. data/lib/wallee-ruby-sdk/service/bogus_express_checkout_service.rb +0 -114
  223. data/lib/wallee-ruby-sdk/service/human_users_roles_service.rb +0 -478
  224. data/lib/wallee-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
@@ -0,0 +1,51 @@
1
+ =begin
2
+ # Wallee AG Ruby SDK
3
+ #
4
+ # This library allows to interact with the Wallee AG payment service.
5
+ #
6
+ # Copyright owner: Wallee AG
7
+ # Website: https://en.wallee.com
8
+ # Developer email: ecosystem-team@wallee.com
9
+ #
10
+ # Licensed under the Apache License, Version 2.0 (the "License");
11
+ # you may not use this file except in compliance with the License.
12
+ # You may obtain a copy of the License at
13
+ #
14
+ # http://www.apache.org/licenses/LICENSE-2.0
15
+ #
16
+ # Unless required by applicable law or agreed to in writing, software
17
+ # distributed under the License is distributed on an "AS IS" BASIS,
18
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ # See the License for the specific language governing permissions and
20
+ # limitations under the License.
21
+ =end
22
+
23
+ require 'date'
24
+ require 'time'
25
+
26
+ module WalleeRubySdk
27
+ class WalleejoinAdminPricingType
28
+ PREDEFINED = "PREDEFINED".freeze
29
+ POSITIVE_MARGIN_ONLY = "POSITIVE_MARGIN_ONLY".freeze
30
+ FLEXIBLE = "FLEXIBLE".freeze
31
+
32
+ def self.all_vars
33
+ @all_vars ||= [PREDEFINED, POSITIVE_MARGIN_ONLY, FLEXIBLE].freeze
34
+ end
35
+
36
+ # Builds the enum from string
37
+ # @param [String] The enum value in the form of the string
38
+ # @return [String] The enum value
39
+ def self.build_from_hash(value)
40
+ new.build_from_hash(value)
41
+ end
42
+
43
+ # Builds the enum from string
44
+ # @param [String] The enum value in the form of the string
45
+ # @return [String] The enum value
46
+ def build_from_hash(value)
47
+ return value if WalleejoinAdminPricingType.all_vars.include?(value)
48
+ raise "Invalid ENUM value #{value} for class #WalleejoinAdminPricingType"
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,285 @@
1
+ =begin
2
+ # Wallee AG Ruby SDK
3
+ #
4
+ # This library allows to interact with the Wallee AG payment service.
5
+ #
6
+ # Copyright owner: Wallee AG
7
+ # Website: https://en.wallee.com
8
+ # Developer email: ecosystem-team@wallee.com
9
+ #
10
+ # Licensed under the Apache License, Version 2.0 (the "License");
11
+ # you may not use this file except in compliance with the License.
12
+ # You may obtain a copy of the License at
13
+ #
14
+ # http://www.apache.org/licenses/LICENSE-2.0
15
+ #
16
+ # Unless required by applicable law or agreed to in writing, software
17
+ # distributed under the License is distributed on an "AS IS" BASIS,
18
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ # See the License for the specific language governing permissions and
20
+ # limitations under the License.
21
+ =end
22
+
23
+ require 'date'
24
+ require 'time'
25
+
26
+ module WalleeRubySdk
27
+ class WalleejoinCreatePartnershipApiRequestDto
28
+ attr_accessor :email_message
29
+
30
+ attr_accessor :partner_account_id
31
+
32
+ # The name of the subaccount created for the merchant. Only used for ISV partnerships when a merchant email address is provided. If empty, a generated name is used.
33
+ attr_accessor :merchant_account_name
34
+
35
+ attr_accessor :merchant_address
36
+
37
+ attr_accessor :pricing_profile_sell_rate_id
38
+
39
+ attr_accessor :subscription_product_id
40
+
41
+ attr_accessor :merchant_email_address
42
+
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'email_message' => :'emailMessage',
47
+ :'partner_account_id' => :'partnerAccountId',
48
+ :'merchant_account_name' => :'merchantAccountName',
49
+ :'merchant_address' => :'merchantAddress',
50
+ :'pricing_profile_sell_rate_id' => :'pricingProfileSellRateId',
51
+ :'subscription_product_id' => :'subscriptionProductId',
52
+ :'merchant_email_address' => :'merchantEmailAddress'
53
+ }
54
+ end
55
+
56
+ # Returns attribute mapping this model knows about
57
+ def self.acceptable_attribute_map
58
+ attribute_map
59
+ end
60
+
61
+ # Returns all the JSON keys this model knows about
62
+ def self.acceptable_attributes
63
+ acceptable_attribute_map.values
64
+ end
65
+
66
+ # Attribute type mapping.
67
+ def self.openapi_types
68
+ {
69
+ :'email_message' => :'String',
70
+ :'partner_account_id' => :'Integer',
71
+ :'merchant_account_name' => :'String',
72
+ :'merchant_address' => :'SpaceAddressCreate',
73
+ :'pricing_profile_sell_rate_id' => :'Integer',
74
+ :'subscription_product_id' => :'Integer',
75
+ :'merchant_email_address' => :'String'
76
+ }
77
+ end
78
+
79
+ # List of attributes with nullable: true
80
+ def self.openapi_nullable
81
+ Set.new([
82
+ ])
83
+ end
84
+
85
+ # Initializes the object
86
+ # @param [Hash] attributes Model attributes in the form of hash
87
+ def initialize(attributes = {})
88
+ if (!attributes.is_a?(Hash))
89
+ fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::WalleejoinCreatePartnershipApiRequestDto` initialize method"
90
+ end
91
+
92
+ # check to see if the attribute exists and convert string to symbol for hash key
93
+ acceptable_attribute_map = self.class.acceptable_attribute_map
94
+ attributes = attributes.each_with_object({}) { |(k, v), h|
95
+ if (!acceptable_attribute_map.key?(k.to_sym))
96
+ fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::WalleejoinCreatePartnershipApiRequestDto`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
97
+ end
98
+ h[k.to_sym] = v
99
+ }
100
+
101
+ if attributes.key?(:'email_message')
102
+ self.email_message = attributes[:'email_message']
103
+ end
104
+
105
+ if attributes.key?(:'partner_account_id')
106
+ self.partner_account_id = attributes[:'partner_account_id']
107
+ end
108
+
109
+ if attributes.key?(:'merchant_account_name')
110
+ self.merchant_account_name = attributes[:'merchant_account_name']
111
+ end
112
+
113
+ if attributes.key?(:'merchant_address')
114
+ self.merchant_address = attributes[:'merchant_address']
115
+ end
116
+
117
+ if attributes.key?(:'pricing_profile_sell_rate_id')
118
+ self.pricing_profile_sell_rate_id = attributes[:'pricing_profile_sell_rate_id']
119
+ end
120
+
121
+ if attributes.key?(:'subscription_product_id')
122
+ self.subscription_product_id = attributes[:'subscription_product_id']
123
+ end
124
+
125
+ if attributes.key?(:'merchant_email_address')
126
+ self.merchant_email_address = attributes[:'merchant_email_address']
127
+ end
128
+ end
129
+
130
+ # Show invalid properties with the reasons. Usually used together with valid?
131
+ # @return Array for valid properties with the reasons
132
+ def list_invalid_properties
133
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
134
+ invalid_properties = Array.new
135
+ invalid_properties
136
+ end
137
+
138
+ # Check to see if the all the properties in the model are valid
139
+ # @return true if the model is valid
140
+ def valid?
141
+ warn '[DEPRECATED] the `valid?` method is obsolete'
142
+ true
143
+ end
144
+
145
+ # Checks equality by comparing each attribute.
146
+ # @param [Object] Object to be compared
147
+ def ==(o)
148
+ return true if self.equal?(o)
149
+ self.class == o.class &&
150
+ email_message == o.email_message &&
151
+ partner_account_id == o.partner_account_id &&
152
+ merchant_account_name == o.merchant_account_name &&
153
+ merchant_address == o.merchant_address &&
154
+ pricing_profile_sell_rate_id == o.pricing_profile_sell_rate_id &&
155
+ subscription_product_id == o.subscription_product_id &&
156
+ merchant_email_address == o.merchant_email_address
157
+ end
158
+
159
+ # @see the `==` method
160
+ # @param [Object] Object to be compared
161
+ def eql?(o)
162
+ self == o
163
+ end
164
+
165
+ # Calculates hash code according to all attributes.
166
+ # @return [Integer] Hash code
167
+ def hash
168
+ [email_message, partner_account_id, merchant_account_name, merchant_address, pricing_profile_sell_rate_id, subscription_product_id, merchant_email_address].hash
169
+ end
170
+
171
+ # Builds the object from hash
172
+ # @param [Hash] attributes Model attributes in the form of hash
173
+ # @return [Object] Returns the model itself
174
+ def self.build_from_hash(attributes)
175
+ return nil unless attributes.is_a?(Hash)
176
+ attributes = attributes.transform_keys(&:to_sym)
177
+ transformed_hash = {}
178
+ openapi_types.each_pair do |key, type|
179
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
180
+ transformed_hash["#{key}"] = nil
181
+ elsif type =~ /\AArray<(.*)>/i
182
+ # check to ensure the input is an array given that the attribute
183
+ # is documented as an array but the input is not
184
+ if attributes[attribute_map[key]].is_a?(Array)
185
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
186
+ end
187
+ elsif !attributes[attribute_map[key]].nil?
188
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
189
+ end
190
+ end
191
+ new(transformed_hash)
192
+ end
193
+
194
+ # Deserializes the data based on type
195
+ # @param string type Data type
196
+ # @param string value Value to be deserialized
197
+ # @return [Object] Deserialized data
198
+ def self._deserialize(type, value)
199
+ case type.to_sym
200
+ when :Time
201
+ Time.parse(value)
202
+ when :Date
203
+ Date.parse(value)
204
+ when :String
205
+ value.to_s
206
+ when :Integer
207
+ value.to_i
208
+ when :Float
209
+ value.to_f
210
+ when :Boolean
211
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
212
+ true
213
+ else
214
+ false
215
+ end
216
+ when :Object
217
+ # generic object (usually a Hash), return directly
218
+ value
219
+ when /\AArray<(?<inner_type>.+)>\z/
220
+ inner_type = Regexp.last_match[:inner_type]
221
+ value.map { |v| _deserialize(inner_type, v) }
222
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
223
+ k_type = Regexp.last_match[:k_type]
224
+ v_type = Regexp.last_match[:v_type]
225
+ {}.tap do |hash|
226
+ value.each do |k, v|
227
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
228
+ end
229
+ end
230
+ else # model
231
+ # models (e.g. Pet) or oneOf
232
+ klass = WalleeRubySdk.const_get(type)
233
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
234
+ end
235
+ end
236
+
237
+ # Returns the string representation of the object
238
+ # @return [String] String presentation of the object
239
+ def to_s
240
+ to_hash.to_s
241
+ end
242
+
243
+ # to_body is an alias to to_hash (backward compatibility)
244
+ # @return [Hash] Returns the object in the form of hash
245
+ def to_body
246
+ to_hash
247
+ end
248
+
249
+ # Returns the object in the form of hash
250
+ # @return [Hash] Returns the object in the form of hash
251
+ def to_hash
252
+ hash = {}
253
+ self.class.attribute_map.each_pair do |attr, param|
254
+ value = self.send(attr)
255
+ if value.nil?
256
+ is_nullable = self.class.openapi_nullable.include?(attr)
257
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
258
+ end
259
+
260
+ hash[param] = _to_hash(value)
261
+ end
262
+ hash
263
+ end
264
+
265
+ # Outputs non-array value in the form of hash
266
+ # For object, use to_hash. Otherwise, just return the value
267
+ # @param [Object] value Any valid value
268
+ # @return [Hash] Returns the value in the form of hash
269
+ def _to_hash(value)
270
+ if value.is_a?(Array)
271
+ value.compact.map { |v| _to_hash(v) }
272
+ elsif value.is_a?(Hash)
273
+ {}.tap do |hash|
274
+ value.each { |k, v| hash[k] = _to_hash(v) }
275
+ end
276
+ elsif value.respond_to? :to_hash
277
+ value.to_hash
278
+ else
279
+ value
280
+ end
281
+ end
282
+
283
+ end
284
+
285
+ end
@@ -0,0 +1,357 @@
1
+ =begin
2
+ # Wallee AG Ruby SDK
3
+ #
4
+ # This library allows to interact with the Wallee AG payment service.
5
+ #
6
+ # Copyright owner: Wallee AG
7
+ # Website: https://en.wallee.com
8
+ # Developer email: ecosystem-team@wallee.com
9
+ #
10
+ # Licensed under the Apache License, Version 2.0 (the "License");
11
+ # you may not use this file except in compliance with the License.
12
+ # You may obtain a copy of the License at
13
+ #
14
+ # http://www.apache.org/licenses/LICENSE-2.0
15
+ #
16
+ # Unless required by applicable law or agreed to in writing, software
17
+ # distributed under the License is distributed on an "AS IS" BASIS,
18
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ # See the License for the specific language governing permissions and
20
+ # limitations under the License.
21
+ =end
22
+
23
+ require 'date'
24
+ require 'time'
25
+
26
+ module WalleeRubySdk
27
+ class WalleejoinPartnership
28
+ # The date and time when the partnership was terminated.
29
+ attr_accessor :terminated_on
30
+
31
+ attr_accessor :pricing_profile_sell_rate
32
+
33
+ # The date and time when the partnership was activated.
34
+ attr_accessor :activated_on
35
+
36
+ # The ID of the merchant account.
37
+ attr_accessor :merchant_account
38
+
39
+ # The email address the merchant was invited with.
40
+ attr_accessor :invitation_email_address
41
+
42
+ attr_accessor :partnership_type
43
+
44
+ attr_accessor :state
45
+
46
+ # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
47
+ attr_accessor :version
48
+
49
+ # The ID of the product.
50
+ attr_accessor :subscription_product_id
51
+
52
+ # The ID of the partner account.
53
+ attr_accessor :partner_account
54
+
55
+ class EnumAttributeValidator
56
+ attr_reader :datatype
57
+ attr_reader :allowable_values
58
+
59
+ def initialize(datatype, allowable_values)
60
+ @allowable_values = allowable_values.map do |value|
61
+ case datatype.to_s
62
+ when /Integer/i
63
+ value.to_i
64
+ when /Float/i
65
+ value.to_f
66
+ else
67
+ value
68
+ end
69
+ end
70
+ end
71
+
72
+ def valid?(value)
73
+ !value || allowable_values.include?(value)
74
+ end
75
+ end
76
+
77
+ # Attribute mapping from ruby-style variable name to JSON key.
78
+ def self.attribute_map
79
+ {
80
+ :'terminated_on' => :'terminatedOn',
81
+ :'pricing_profile_sell_rate' => :'pricingProfileSellRate',
82
+ :'activated_on' => :'activatedOn',
83
+ :'merchant_account' => :'merchantAccount',
84
+ :'invitation_email_address' => :'invitationEmailAddress',
85
+ :'partnership_type' => :'partnershipType',
86
+ :'state' => :'state',
87
+ :'version' => :'version',
88
+ :'subscription_product_id' => :'subscriptionProductId',
89
+ :'partner_account' => :'partnerAccount'
90
+ }
91
+ end
92
+
93
+ # Returns attribute mapping this model knows about
94
+ def self.acceptable_attribute_map
95
+ attribute_map
96
+ end
97
+
98
+ # Returns all the JSON keys this model knows about
99
+ def self.acceptable_attributes
100
+ acceptable_attribute_map.values
101
+ end
102
+
103
+ # Attribute type mapping.
104
+ def self.openapi_types
105
+ {
106
+ :'terminated_on' => :'Time',
107
+ :'pricing_profile_sell_rate' => :'Object',
108
+ :'activated_on' => :'Time',
109
+ :'merchant_account' => :'Integer',
110
+ :'invitation_email_address' => :'String',
111
+ :'partnership_type' => :'WalleejoinPartnershipType',
112
+ :'state' => :'WalleejoinPartnershipState',
113
+ :'version' => :'Integer',
114
+ :'subscription_product_id' => :'Integer',
115
+ :'partner_account' => :'Integer'
116
+ }
117
+ end
118
+
119
+ # List of attributes with nullable: true
120
+ def self.openapi_nullable
121
+ Set.new([
122
+ ])
123
+ end
124
+
125
+ # Initializes the object
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ def initialize(attributes = {})
128
+ if (!attributes.is_a?(Hash))
129
+ fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::WalleejoinPartnership` initialize method"
130
+ end
131
+
132
+ # check to see if the attribute exists and convert string to symbol for hash key
133
+ acceptable_attribute_map = self.class.acceptable_attribute_map
134
+ attributes = attributes.each_with_object({}) { |(k, v), h|
135
+ if (!acceptable_attribute_map.key?(k.to_sym))
136
+ fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::WalleejoinPartnership`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
137
+ end
138
+ h[k.to_sym] = v
139
+ }
140
+
141
+ if attributes.key?(:'terminated_on')
142
+ self.terminated_on = attributes[:'terminated_on']
143
+ end
144
+
145
+ if attributes.key?(:'pricing_profile_sell_rate')
146
+ self.pricing_profile_sell_rate = attributes[:'pricing_profile_sell_rate']
147
+ end
148
+
149
+ if attributes.key?(:'activated_on')
150
+ self.activated_on = attributes[:'activated_on']
151
+ end
152
+
153
+ if attributes.key?(:'merchant_account')
154
+ self.merchant_account = attributes[:'merchant_account']
155
+ end
156
+
157
+ if attributes.key?(:'invitation_email_address')
158
+ self.invitation_email_address = attributes[:'invitation_email_address']
159
+ end
160
+
161
+ if attributes.key?(:'partnership_type')
162
+ self.partnership_type = attributes[:'partnership_type']
163
+ end
164
+
165
+ if attributes.key?(:'state')
166
+ self.state = attributes[:'state']
167
+ end
168
+
169
+ if attributes.key?(:'version')
170
+ self.version = attributes[:'version']
171
+ else
172
+ self.version = nil
173
+ end
174
+
175
+ if attributes.key?(:'subscription_product_id')
176
+ self.subscription_product_id = attributes[:'subscription_product_id']
177
+ end
178
+
179
+ if attributes.key?(:'partner_account')
180
+ self.partner_account = attributes[:'partner_account']
181
+ end
182
+ end
183
+
184
+ # Show invalid properties with the reasons. Usually used together with valid?
185
+ # @return Array for valid properties with the reasons
186
+ def list_invalid_properties
187
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
188
+ invalid_properties = Array.new
189
+ if @version.nil?
190
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
191
+ end
192
+
193
+ invalid_properties
194
+ end
195
+
196
+ # Check to see if the all the properties in the model are valid
197
+ # @return true if the model is valid
198
+ def valid?
199
+ warn '[DEPRECATED] the `valid?` method is obsolete'
200
+ return false if @version.nil?
201
+ true
202
+ end
203
+
204
+ # Custom attribute writer method with validation
205
+ # @param [Object] version Value to be assigned
206
+ def version=(version)
207
+ if version.nil?
208
+ fail ArgumentError, 'version cannot be nil'
209
+ end
210
+
211
+ @version = version
212
+ end
213
+
214
+ # Checks equality by comparing each attribute.
215
+ # @param [Object] Object to be compared
216
+ def ==(o)
217
+ return true if self.equal?(o)
218
+ self.class == o.class &&
219
+ terminated_on == o.terminated_on &&
220
+ pricing_profile_sell_rate == o.pricing_profile_sell_rate &&
221
+ activated_on == o.activated_on &&
222
+ merchant_account == o.merchant_account &&
223
+ invitation_email_address == o.invitation_email_address &&
224
+ partnership_type == o.partnership_type &&
225
+ state == o.state &&
226
+ version == o.version &&
227
+ subscription_product_id == o.subscription_product_id &&
228
+ partner_account == o.partner_account
229
+ end
230
+
231
+ # @see the `==` method
232
+ # @param [Object] Object to be compared
233
+ def eql?(o)
234
+ self == o
235
+ end
236
+
237
+ # Calculates hash code according to all attributes.
238
+ # @return [Integer] Hash code
239
+ def hash
240
+ [terminated_on, pricing_profile_sell_rate, activated_on, merchant_account, invitation_email_address, partnership_type, state, version, subscription_product_id, partner_account].hash
241
+ end
242
+
243
+ # Builds the object from hash
244
+ # @param [Hash] attributes Model attributes in the form of hash
245
+ # @return [Object] Returns the model itself
246
+ def self.build_from_hash(attributes)
247
+ return nil unless attributes.is_a?(Hash)
248
+ attributes = attributes.transform_keys(&:to_sym)
249
+ transformed_hash = {}
250
+ openapi_types.each_pair do |key, type|
251
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
252
+ transformed_hash["#{key}"] = nil
253
+ elsif type =~ /\AArray<(.*)>/i
254
+ # check to ensure the input is an array given that the attribute
255
+ # is documented as an array but the input is not
256
+ if attributes[attribute_map[key]].is_a?(Array)
257
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
258
+ end
259
+ elsif !attributes[attribute_map[key]].nil?
260
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
261
+ end
262
+ end
263
+ new(transformed_hash)
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 self._deserialize(type, value)
271
+ case type.to_sym
272
+ when :Time
273
+ Time.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
+ # models (e.g. Pet) or oneOf
304
+ klass = WalleeRubySdk.const_get(type)
305
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
306
+ end
307
+ end
308
+
309
+ # Returns the string representation of the object
310
+ # @return [String] String presentation of the object
311
+ def to_s
312
+ to_hash.to_s
313
+ end
314
+
315
+ # to_body is an alias to to_hash (backward compatibility)
316
+ # @return [Hash] Returns the object in the form of hash
317
+ def to_body
318
+ to_hash
319
+ end
320
+
321
+ # Returns the object in the form of hash
322
+ # @return [Hash] Returns the object in the form of hash
323
+ def to_hash
324
+ hash = {}
325
+ self.class.attribute_map.each_pair do |attr, param|
326
+ value = self.send(attr)
327
+ if value.nil?
328
+ is_nullable = self.class.openapi_nullable.include?(attr)
329
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
330
+ end
331
+
332
+ hash[param] = _to_hash(value)
333
+ end
334
+ hash
335
+ end
336
+
337
+ # Outputs non-array value in the form of hash
338
+ # For object, use to_hash. Otherwise, just return the value
339
+ # @param [Object] value Any valid value
340
+ # @return [Hash] Returns the value in the form of hash
341
+ def _to_hash(value)
342
+ if value.is_a?(Array)
343
+ value.compact.map { |v| _to_hash(v) }
344
+ elsif value.is_a?(Hash)
345
+ {}.tap do |hash|
346
+ value.each { |k, v| hash[k] = _to_hash(v) }
347
+ end
348
+ elsif value.respond_to? :to_hash
349
+ value.to_hash
350
+ else
351
+ value
352
+ end
353
+ end
354
+
355
+ end
356
+
357
+ end