wallee-ruby-sdk 6.3.0 → 7.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 (217) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +68 -19
  3. data/LICENSE +1 -1
  4. data/README.md +451 -108
  5. data/lib/wallee-ruby-sdk/api_client.rb +1 -1
  6. data/lib/wallee-ruby-sdk/models/abstract_o_auth_client_update.rb +340 -0
  7. data/lib/wallee-ruby-sdk/models/abstract_role_update.rb +13 -1
  8. data/lib/wallee-ruby-sdk/models/abstract_walleejoin_partnership.rb +330 -0
  9. data/lib/wallee-ruby-sdk/models/{payment_terminal_preparing.rb → account_create_with_owner.rb} +63 -34
  10. data/lib/wallee-ruby-sdk/models/authenticated_card_data_create.rb +30 -1
  11. data/lib/wallee-ruby-sdk/models/bank_payment_type.rb +50 -0
  12. data/lib/wallee-ruby-sdk/models/basic_address.rb +266 -0
  13. data/lib/wallee-ruby-sdk/models/boarding_strategy_information_request.rb +247 -0
  14. data/lib/wallee-ruby-sdk/models/{express_checkout_session_create.rb → charge_attempt_lookup_result.rb} +16 -20
  15. data/lib/wallee-ruby-sdk/models/charge_attempt_projection.rb +560 -0
  16. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_option.rb → create_fulfillment_request.rb} +25 -50
  17. data/lib/wallee-ruby-sdk/models/delivery_days_range.rb +60 -0
  18. data/lib/wallee-ruby-sdk/models/delivery_destination.rb +51 -0
  19. data/lib/wallee-ruby-sdk/models/dunning_case_level.rb +403 -0
  20. data/lib/wallee-ruby-sdk/models/dunning_case_level_list_response.rb +253 -0
  21. data/lib/wallee-ruby-sdk/models/dunning_case_level_search_response.rb +263 -0
  22. data/lib/wallee-ruby-sdk/models/{express_checkout_session_state.rb → dunning_case_level_state.rb} +7 -7
  23. data/lib/wallee-ruby-sdk/models/extended_rest_o_auth_client.rb +425 -0
  24. data/lib/wallee-ruby-sdk/models/fulfillment.rb +428 -0
  25. data/lib/wallee-ruby-sdk/models/fulfillment_search_response.rb +263 -0
  26. data/lib/wallee-ruby-sdk/models/fulfillment_state.rb +52 -0
  27. data/lib/wallee-ruby-sdk/models/identity_info.rb +279 -0
  28. data/lib/wallee-ruby-sdk/models/invoice_processor.rb +51 -0
  29. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
  30. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link.rb +278 -0
  31. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
  32. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
  33. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
  34. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
  35. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
  36. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
  37. data/lib/wallee-ruby-sdk/models/{express_checkout_wallet_type.rb → invoice_reconciliation_record_type.rb} +3 -3
  38. data/lib/wallee-ruby-sdk/models/invoice_reimbursement.rb +463 -0
  39. data/lib/wallee-ruby-sdk/models/invoice_reimbursement_list_response.rb +253 -0
  40. data/lib/wallee-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
  41. data/lib/wallee-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
  42. data/lib/wallee-ruby-sdk/models/legal_form.rb +83 -0
  43. data/lib/wallee-ruby-sdk/models/merchant_application_data_dto.rb +275 -0
  44. data/lib/wallee-ruby-sdk/models/merchant_application_state.rb +50 -0
  45. data/lib/wallee-ruby-sdk/models/merchant_application_status_dto.rb +284 -0
  46. data/lib/wallee-ruby-sdk/models/merchant_bank_details_dto.rb +253 -0
  47. data/lib/wallee-ruby-sdk/models/merchant_company_details_dto.rb +331 -0
  48. data/lib/wallee-ruby-sdk/models/merchant_contract_revenue_dto.rb +261 -0
  49. data/lib/wallee-ruby-sdk/models/merchant_ecommerce_details_dto.rb +348 -0
  50. data/lib/wallee-ruby-sdk/models/merchant_payment_channels_dto.rb +263 -0
  51. data/lib/wallee-ruby-sdk/models/merchant_related_persons_dto.rb +243 -0
  52. data/lib/wallee-ruby-sdk/models/o_auth_client.rb +397 -0
  53. data/lib/wallee-ruby-sdk/models/o_auth_client_create.rb +365 -0
  54. data/lib/wallee-ruby-sdk/models/{user_space_role_list_response.rb → o_auth_client_list_response.rb} +4 -4
  55. data/lib/wallee-ruby-sdk/models/o_auth_client_search_response.rb +263 -0
  56. data/lib/wallee-ruby-sdk/models/o_auth_client_update.rb +374 -0
  57. data/lib/wallee-ruby-sdk/models/o_auth_consent.rb +321 -0
  58. data/lib/wallee-ruby-sdk/models/{user_account_role_list_response.rb → o_auth_consent_list_response.rb} +4 -4
  59. data/lib/wallee-ruby-sdk/models/o_auth_consent_search_response.rb +263 -0
  60. data/lib/wallee-ruby-sdk/models/{user_account_role.rb → o_auth_user.rb} +56 -29
  61. data/lib/wallee-ruby-sdk/models/{express_checkout_create_response.rb → payment_facilitator_pricing_profile_dto.rb} +16 -16
  62. data/lib/wallee-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
  63. data/lib/wallee-ruby-sdk/models/payment_initiation_advice_file.rb +337 -0
  64. data/lib/wallee-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
  65. data/lib/wallee-ruby-sdk/models/payment_terminal.rb +37 -1
  66. data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
  67. data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
  68. data/lib/wallee-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
  69. data/lib/wallee-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
  70. data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +1 -0
  71. data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
  72. data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
  73. data/lib/wallee-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
  74. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
  75. data/lib/wallee-ruby-sdk/models/payout_account_info.rb +257 -0
  76. data/lib/wallee-ruby-sdk/models/person_salutation.rb +54 -0
  77. data/lib/wallee-ruby-sdk/models/pricing_history_dto.rb +266 -0
  78. data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +11 -1
  79. data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +11 -1
  80. data/lib/wallee-ruby-sdk/models/refund.rb +13 -1
  81. data/lib/wallee-ruby-sdk/models/refund_create.rb +13 -1
  82. data/lib/wallee-ruby-sdk/models/refund_days_range.rb +51 -0
  83. data/lib/wallee-ruby-sdk/models/refund_percentage_range.rb +56 -0
  84. data/lib/wallee-ruby-sdk/models/related_person.rb +329 -0
  85. data/lib/wallee-ruby-sdk/models/representative_info.rb +239 -0
  86. data/lib/wallee-ruby-sdk/models/rest_member.rb +284 -0
  87. data/lib/wallee-ruby-sdk/models/{user_space_role.rb → rest_o_auth_client_secret.rb} +38 -37
  88. data/lib/wallee-ruby-sdk/models/{express_checkout_session.rb → rest_o_auth_client_secret_created.rb} +27 -52
  89. data/lib/wallee-ruby-sdk/models/role.rb +13 -1
  90. data/lib/wallee-ruby-sdk/models/role_create.rb +13 -1
  91. data/lib/wallee-ruby-sdk/models/{abstract_payment_terminal_update.rb → role_ref.rb} +18 -27
  92. data/lib/wallee-ruby-sdk/models/role_update.rb +13 -1
  93. data/lib/wallee-ruby-sdk/models/sales_channel.rb +15 -230
  94. data/lib/wallee-ruby-sdk/models/scope.rb +28 -16
  95. data/lib/wallee-ruby-sdk/models/secret_key_state.rb +51 -0
  96. data/lib/wallee-ruby-sdk/models/setter.rb +618 -0
  97. data/lib/wallee-ruby-sdk/models/sole_proprietor_ownership_type.rb +51 -0
  98. data/lib/wallee-ruby-sdk/models/sole_proprietorship_info.rb +261 -0
  99. data/lib/wallee-ruby-sdk/models/state_list_response.rb +253 -0
  100. data/lib/wallee-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
  101. data/lib/wallee-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
  102. data/lib/wallee-ruby-sdk/models/subscription_component_group_configuration_request.rb +249 -0
  103. data/lib/wallee-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
  104. data/lib/wallee-ruby-sdk/models/subscription_product_dto.rb +239 -0
  105. data/lib/wallee-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
  106. data/lib/wallee-ruby-sdk/models/tracking_number_request.rb +230 -0
  107. data/lib/wallee-ruby-sdk/models/transaction_completion.rb +13 -1
  108. data/lib/wallee-ruby-sdk/models/transaction_completion_details.rb +26 -4
  109. data/lib/wallee-ruby-sdk/models/transaction_overview.rb +1144 -0
  110. data/lib/wallee-ruby-sdk/models/transaction_projection.rb +1135 -0
  111. data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +2 -1
  112. data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
  113. data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
  114. data/lib/wallee-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
  115. data/lib/wallee-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +266 -0
  116. data/lib/wallee-ruby-sdk/models/walleejoin_partnership.rb +357 -0
  117. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
  118. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
  119. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
  120. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
  121. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
  122. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
  123. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
  124. data/lib/wallee-ruby-sdk/models/wallet_type.rb +40 -1
  125. data/lib/wallee-ruby-sdk/models/web_ui_account_theme.rb +230 -0
  126. data/lib/wallee-ruby-sdk/service/accounts_service.rb +16 -9
  127. data/lib/wallee-ruby-sdk/service/analytics_queries_service.rb +8 -8
  128. data/lib/wallee-ruby-sdk/service/bank_accounts_service.rb +3 -3
  129. data/lib/wallee-ruby-sdk/service/bank_transactions_service.rb +3 -3
  130. data/lib/wallee-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
  131. data/lib/wallee-ruby-sdk/service/charge_attempts_service.rb +3 -3
  132. data/lib/wallee-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
  133. data/lib/wallee-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
  134. data/lib/wallee-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
  135. data/lib/wallee-ruby-sdk/service/charge_flows_service.rb +3 -3
  136. data/lib/wallee-ruby-sdk/service/consumed_resources_service.rb +1 -1
  137. data/lib/wallee-ruby-sdk/service/countries_service.rb +15 -6
  138. data/lib/wallee-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
  139. data/lib/wallee-ruby-sdk/service/customer_addresses_service.rb +7 -7
  140. data/lib/wallee-ruby-sdk/service/customer_comments_service.rb +8 -8
  141. data/lib/wallee-ruby-sdk/service/customers_service.rb +11 -11
  142. data/lib/wallee-ruby-sdk/service/debt_collection_cases_service.rb +12 -12
  143. data/lib/wallee-ruby-sdk/service/debt_collector_configurations_service.rb +6 -6
  144. data/lib/wallee-ruby-sdk/service/delivery_indications_service.rb +5 -5
  145. data/lib/wallee-ruby-sdk/service/document_templates_service.rb +3 -3
  146. data/lib/wallee-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
  147. data/lib/wallee-ruby-sdk/service/dunning_cases_service.rb +5 -5
  148. data/lib/wallee-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
  149. data/lib/wallee-ruby-sdk/service/dunning_flows_service.rb +3 -3
  150. data/lib/wallee-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
  151. data/lib/wallee-ruby-sdk/service/fulfillments_service.rb +355 -0
  152. data/lib/wallee-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
  153. data/lib/wallee-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
  154. data/lib/wallee-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
  155. data/lib/wallee-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
  156. data/lib/wallee-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
  157. data/lib/wallee-ruby-sdk/service/join_partnership_service.rb +586 -0
  158. data/lib/wallee-ruby-sdk/service/manual_tasks_service.rb +5 -5
  159. data/lib/wallee-ruby-sdk/service/members_service.rb +215 -0
  160. data/lib/wallee-ruby-sdk/service/merchant_applications_service.rb +334 -0
  161. data/lib/wallee-ruby-sdk/service/o_auth_clients_service.rb +611 -0
  162. data/lib/wallee-ruby-sdk/service/o_auth_consents_service.rb +332 -0
  163. data/lib/wallee-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
  164. data/lib/wallee-ruby-sdk/service/payment_links_service.rb +6 -6
  165. data/lib/wallee-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
  166. data/lib/wallee-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
  167. data/lib/wallee-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
  168. data/lib/wallee-ruby-sdk/service/payment_terminals_service.rb +475 -22
  169. data/lib/wallee-ruby-sdk/service/payment_web_apps_service.rb +11 -11
  170. data/lib/wallee-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
  171. data/lib/wallee-ruby-sdk/service/refund_comments_service.rb +8 -8
  172. data/lib/wallee-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
  173. data/lib/wallee-ruby-sdk/service/refunds_service.rb +7 -7
  174. data/lib/wallee-ruby-sdk/service/spaces_service.rb +10 -3
  175. data/lib/wallee-ruby-sdk/service/subscribers_service.rb +6 -6
  176. data/lib/wallee-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
  177. data/lib/wallee-ruby-sdk/service/subscription_charges_service.rb +5 -5
  178. data/lib/wallee-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
  179. data/lib/wallee-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
  180. data/lib/wallee-ruby-sdk/service/subscription_metrics_service.rb +6 -6
  181. data/lib/wallee-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
  182. data/lib/wallee-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
  183. data/lib/wallee-ruby-sdk/service/subscription_product_components_service.rb +6 -6
  184. data/lib/wallee-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
  185. data/lib/wallee-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
  186. data/lib/wallee-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
  187. data/lib/wallee-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
  188. data/lib/wallee-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
  189. data/lib/wallee-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
  190. data/lib/wallee-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
  191. data/lib/wallee-ruby-sdk/service/subscription_products_service.rb +6 -6
  192. data/lib/wallee-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
  193. data/lib/wallee-ruby-sdk/service/subscription_versions_service.rb +3 -3
  194. data/lib/wallee-ruby-sdk/service/subscriptions_service.rb +13 -13
  195. data/lib/wallee-ruby-sdk/service/terminal_locations_service.rb +276 -0
  196. data/lib/wallee-ruby-sdk/service/token_versions_service.rb +3 -3
  197. data/lib/wallee-ruby-sdk/service/tokens_service.rb +8 -8
  198. data/lib/wallee-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
  199. data/lib/wallee-ruby-sdk/service/transaction_comments_service.rb +8 -8
  200. data/lib/wallee-ruby-sdk/service/transaction_completions_service.rb +3 -3
  201. data/lib/wallee-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
  202. data/lib/wallee-ruby-sdk/service/transaction_invoices_service.rb +86 -8
  203. data/lib/wallee-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
  204. data/lib/wallee-ruby-sdk/service/transaction_voids_service.rb +3 -3
  205. data/lib/wallee-ruby-sdk/service/transactions_service.rb +179 -37
  206. data/lib/wallee-ruby-sdk/service/web_apps_service.rb +2 -2
  207. data/lib/wallee-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
  208. data/lib/wallee-ruby-sdk/service/webhook_listeners_service.rb +9 -9
  209. data/lib/wallee-ruby-sdk/service/webhook_urls_service.rb +9 -9
  210. data/lib/wallee-ruby-sdk/version.rb +1 -1
  211. data/lib/wallee-ruby-sdk.rb +115 -17
  212. data/test/test_querying.rb +11 -0
  213. metadata +117 -19
  214. data/lib/wallee-ruby-sdk/service/application_users_roles_service.rb +0 -478
  215. data/lib/wallee-ruby-sdk/service/express_checkout_service.rb +0 -107
  216. data/lib/wallee-ruby-sdk/service/human_users_roles_service.rb +0 -478
  217. data/lib/wallee-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
@@ -0,0 +1,301 @@
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 PaymentTerminalActivationStatus
28
+ # Whether the activation code is active on the acquirer side
29
+ attr_accessor :activation_code_active
30
+
31
+ # The environment (TEST/PRODUCTION) the payment terminal belongs to.
32
+ attr_accessor :environment
33
+
34
+ # Time when the payment terminal got activated on acquirer side
35
+ attr_accessor :activated_on
36
+
37
+ # The ID of the location that the payment terminal belongs to
38
+ attr_accessor :location_id
39
+
40
+ # Activation code that is used to link the terminal
41
+ attr_accessor :activation_code
42
+
43
+ # The ID of the configuration that the payment terminal belongs to
44
+ attr_accessor :configuration_id
45
+
46
+ # The ID of the payment terminal
47
+ attr_accessor :terminal_id
48
+
49
+ # The ID of the space that the payment terminal belongs to
50
+ attr_accessor :space
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'activation_code_active' => :'activationCodeActive',
56
+ :'environment' => :'environment',
57
+ :'activated_on' => :'activatedOn',
58
+ :'location_id' => :'locationId',
59
+ :'activation_code' => :'activationCode',
60
+ :'configuration_id' => :'configurationId',
61
+ :'terminal_id' => :'terminalId',
62
+ :'space' => :'space'
63
+ }
64
+ end
65
+
66
+ # Returns attribute mapping this model knows about
67
+ def self.acceptable_attribute_map
68
+ attribute_map
69
+ end
70
+
71
+ # Returns all the JSON keys this model knows about
72
+ def self.acceptable_attributes
73
+ acceptable_attribute_map.values
74
+ end
75
+
76
+ # Attribute type mapping.
77
+ def self.openapi_types
78
+ {
79
+ :'activation_code_active' => :'Boolean',
80
+ :'environment' => :'String',
81
+ :'activated_on' => :'Time',
82
+ :'location_id' => :'Integer',
83
+ :'activation_code' => :'String',
84
+ :'configuration_id' => :'Integer',
85
+ :'terminal_id' => :'String',
86
+ :'space' => :'Integer'
87
+ }
88
+ end
89
+
90
+ # List of attributes with nullable: true
91
+ def self.openapi_nullable
92
+ Set.new([
93
+ ])
94
+ end
95
+
96
+ # Initializes the object
97
+ # @param [Hash] attributes Model attributes in the form of hash
98
+ def initialize(attributes = {})
99
+ if (!attributes.is_a?(Hash))
100
+ fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::PaymentTerminalActivationStatus` initialize method"
101
+ end
102
+
103
+ # check to see if the attribute exists and convert string to symbol for hash key
104
+ acceptable_attribute_map = self.class.acceptable_attribute_map
105
+ attributes = attributes.each_with_object({}) { |(k, v), h|
106
+ if (!acceptable_attribute_map.key?(k.to_sym))
107
+ fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::PaymentTerminalActivationStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
108
+ end
109
+ h[k.to_sym] = v
110
+ }
111
+
112
+ if attributes.key?(:'activation_code_active')
113
+ self.activation_code_active = attributes[:'activation_code_active']
114
+ end
115
+
116
+ if attributes.key?(:'environment')
117
+ self.environment = attributes[:'environment']
118
+ end
119
+
120
+ if attributes.key?(:'activated_on')
121
+ self.activated_on = attributes[:'activated_on']
122
+ end
123
+
124
+ if attributes.key?(:'location_id')
125
+ self.location_id = attributes[:'location_id']
126
+ end
127
+
128
+ if attributes.key?(:'activation_code')
129
+ self.activation_code = attributes[:'activation_code']
130
+ end
131
+
132
+ if attributes.key?(:'configuration_id')
133
+ self.configuration_id = attributes[:'configuration_id']
134
+ end
135
+
136
+ if attributes.key?(:'terminal_id')
137
+ self.terminal_id = attributes[:'terminal_id']
138
+ end
139
+
140
+ if attributes.key?(:'space')
141
+ self.space = attributes[:'space']
142
+ end
143
+ end
144
+
145
+ # Show invalid properties with the reasons. Usually used together with valid?
146
+ # @return Array for valid properties with the reasons
147
+ def list_invalid_properties
148
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
149
+ invalid_properties = Array.new
150
+ invalid_properties
151
+ end
152
+
153
+ # Check to see if the all the properties in the model are valid
154
+ # @return true if the model is valid
155
+ def valid?
156
+ warn '[DEPRECATED] the `valid?` method is obsolete'
157
+ true
158
+ end
159
+
160
+ # Checks equality by comparing each attribute.
161
+ # @param [Object] Object to be compared
162
+ def ==(o)
163
+ return true if self.equal?(o)
164
+ self.class == o.class &&
165
+ activation_code_active == o.activation_code_active &&
166
+ environment == o.environment &&
167
+ activated_on == o.activated_on &&
168
+ location_id == o.location_id &&
169
+ activation_code == o.activation_code &&
170
+ configuration_id == o.configuration_id &&
171
+ terminal_id == o.terminal_id &&
172
+ space == o.space
173
+ end
174
+
175
+ # @see the `==` method
176
+ # @param [Object] Object to be compared
177
+ def eql?(o)
178
+ self == o
179
+ end
180
+
181
+ # Calculates hash code according to all attributes.
182
+ # @return [Integer] Hash code
183
+ def hash
184
+ [activation_code_active, environment, activated_on, location_id, activation_code, configuration_id, terminal_id, space].hash
185
+ end
186
+
187
+ # Builds the object from hash
188
+ # @param [Hash] attributes Model attributes in the form of hash
189
+ # @return [Object] Returns the model itself
190
+ def self.build_from_hash(attributes)
191
+ return nil unless attributes.is_a?(Hash)
192
+ attributes = attributes.transform_keys(&:to_sym)
193
+ transformed_hash = {}
194
+ openapi_types.each_pair do |key, type|
195
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
196
+ transformed_hash["#{key}"] = nil
197
+ elsif type =~ /\AArray<(.*)>/i
198
+ # check to ensure the input is an array given that the attribute
199
+ # is documented as an array but the input is not
200
+ if attributes[attribute_map[key]].is_a?(Array)
201
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
202
+ end
203
+ elsif !attributes[attribute_map[key]].nil?
204
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
205
+ end
206
+ end
207
+ new(transformed_hash)
208
+ end
209
+
210
+ # Deserializes the data based on type
211
+ # @param string type Data type
212
+ # @param string value Value to be deserialized
213
+ # @return [Object] Deserialized data
214
+ def self._deserialize(type, value)
215
+ case type.to_sym
216
+ when :Time
217
+ Time.parse(value)
218
+ when :Date
219
+ Date.parse(value)
220
+ when :String
221
+ value.to_s
222
+ when :Integer
223
+ value.to_i
224
+ when :Float
225
+ value.to_f
226
+ when :Boolean
227
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
228
+ true
229
+ else
230
+ false
231
+ end
232
+ when :Object
233
+ # generic object (usually a Hash), return directly
234
+ value
235
+ when /\AArray<(?<inner_type>.+)>\z/
236
+ inner_type = Regexp.last_match[:inner_type]
237
+ value.map { |v| _deserialize(inner_type, v) }
238
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
239
+ k_type = Regexp.last_match[:k_type]
240
+ v_type = Regexp.last_match[:v_type]
241
+ {}.tap do |hash|
242
+ value.each do |k, v|
243
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
244
+ end
245
+ end
246
+ else # model
247
+ # models (e.g. Pet) or oneOf
248
+ klass = WalleeRubySdk.const_get(type)
249
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
250
+ end
251
+ end
252
+
253
+ # Returns the string representation of the object
254
+ # @return [String] String presentation of the object
255
+ def to_s
256
+ to_hash.to_s
257
+ end
258
+
259
+ # to_body is an alias to to_hash (backward compatibility)
260
+ # @return [Hash] Returns the object in the form of hash
261
+ def to_body
262
+ to_hash
263
+ end
264
+
265
+ # Returns the object in the form of hash
266
+ # @return [Hash] Returns the object in the form of hash
267
+ def to_hash
268
+ hash = {}
269
+ self.class.attribute_map.each_pair do |attr, param|
270
+ value = self.send(attr)
271
+ if value.nil?
272
+ is_nullable = self.class.openapi_nullable.include?(attr)
273
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
274
+ end
275
+
276
+ hash[param] = _to_hash(value)
277
+ end
278
+ hash
279
+ end
280
+
281
+ # Outputs non-array value in the form of hash
282
+ # For object, use to_hash. Otherwise, just return the value
283
+ # @param [Object] value Any valid value
284
+ # @return [Hash] Returns the value in the form of hash
285
+ def _to_hash(value)
286
+ if value.is_a?(Array)
287
+ value.compact.map { |v| _to_hash(v) }
288
+ elsif value.is_a?(Hash)
289
+ {}.tap do |hash|
290
+ value.each { |k, v| hash[k] = _to_hash(v) }
291
+ end
292
+ elsif value.respond_to? :to_hash
293
+ value.to_hash
294
+ else
295
+ value
296
+ end
297
+ end
298
+
299
+ end
300
+
301
+ end
@@ -0,0 +1,263 @@
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 PaymentTerminalActivationStatusDetailSearchResponse
28
+ # An array containing the actual response objects.
29
+ attr_accessor :data
30
+
31
+ # The number of skipped objects.
32
+ attr_accessor :offset
33
+
34
+ # Whether there are more objects available after this set. If false, there are no more objects to retrieve.
35
+ attr_accessor :has_more
36
+
37
+ # The applied limit on the number of objects returned.
38
+ attr_accessor :limit
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+ :'data' => :'data',
44
+ :'offset' => :'offset',
45
+ :'has_more' => :'hasMore',
46
+ :'limit' => :'limit'
47
+ }
48
+ end
49
+
50
+ # Returns attribute mapping this model knows about
51
+ def self.acceptable_attribute_map
52
+ attribute_map
53
+ end
54
+
55
+ # Returns all the JSON keys this model knows about
56
+ def self.acceptable_attributes
57
+ acceptable_attribute_map.values
58
+ end
59
+
60
+ # Attribute type mapping.
61
+ def self.openapi_types
62
+ {
63
+ :'data' => :'Array<PaymentTerminalActivationStatus>',
64
+ :'offset' => :'Integer',
65
+ :'has_more' => :'Boolean',
66
+ :'limit' => :'Integer'
67
+ }
68
+ end
69
+
70
+ # List of attributes with nullable: true
71
+ def self.openapi_nullable
72
+ Set.new([
73
+ ])
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::PaymentTerminalActivationStatusDetailSearchResponse` initialize method"
81
+ end
82
+
83
+ # check to see if the attribute exists and convert string to symbol for hash key
84
+ acceptable_attribute_map = self.class.acceptable_attribute_map
85
+ attributes = attributes.each_with_object({}) { |(k, v), h|
86
+ if (!acceptable_attribute_map.key?(k.to_sym))
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::PaymentTerminalActivationStatusDetailSearchResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
88
+ end
89
+ h[k.to_sym] = v
90
+ }
91
+
92
+ if attributes.key?(:'data')
93
+ if (value = attributes[:'data']).is_a?(Array)
94
+ self.data = value
95
+ end
96
+ end
97
+
98
+ if attributes.key?(:'offset')
99
+ self.offset = attributes[:'offset']
100
+ end
101
+
102
+ if attributes.key?(:'has_more')
103
+ self.has_more = attributes[:'has_more']
104
+ end
105
+
106
+ if attributes.key?(:'limit')
107
+ self.limit = attributes[:'limit']
108
+ end
109
+ end
110
+
111
+ # Show invalid properties with the reasons. Usually used together with valid?
112
+ # @return Array for valid properties with the reasons
113
+ def list_invalid_properties
114
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
115
+ invalid_properties = Array.new
116
+ invalid_properties
117
+ end
118
+
119
+ # Check to see if the all the properties in the model are valid
120
+ # @return true if the model is valid
121
+ def valid?
122
+ warn '[DEPRECATED] the `valid?` method is obsolete'
123
+ true
124
+ end
125
+
126
+ # Checks equality by comparing each attribute.
127
+ # @param [Object] Object to be compared
128
+ def ==(o)
129
+ return true if self.equal?(o)
130
+ self.class == o.class &&
131
+ data == o.data &&
132
+ offset == o.offset &&
133
+ has_more == o.has_more &&
134
+ limit == o.limit
135
+ end
136
+
137
+ # @see the `==` method
138
+ # @param [Object] Object to be compared
139
+ def eql?(o)
140
+ self == o
141
+ end
142
+
143
+ # Calculates hash code according to all attributes.
144
+ # @return [Integer] Hash code
145
+ def hash
146
+ [data, offset, has_more, limit].hash
147
+ end
148
+
149
+ # Builds the object from hash
150
+ # @param [Hash] attributes Model attributes in the form of hash
151
+ # @return [Object] Returns the model itself
152
+ def self.build_from_hash(attributes)
153
+ return nil unless attributes.is_a?(Hash)
154
+ attributes = attributes.transform_keys(&:to_sym)
155
+ transformed_hash = {}
156
+ openapi_types.each_pair do |key, type|
157
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
158
+ transformed_hash["#{key}"] = nil
159
+ elsif type =~ /\AArray<(.*)>/i
160
+ # check to ensure the input is an array given that the attribute
161
+ # is documented as an array but the input is not
162
+ if attributes[attribute_map[key]].is_a?(Array)
163
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
164
+ end
165
+ elsif !attributes[attribute_map[key]].nil?
166
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
167
+ end
168
+ end
169
+ new(transformed_hash)
170
+ end
171
+
172
+ # Deserializes the data based on type
173
+ # @param string type Data type
174
+ # @param string value Value to be deserialized
175
+ # @return [Object] Deserialized data
176
+ def self._deserialize(type, value)
177
+ case type.to_sym
178
+ when :Time
179
+ Time.parse(value)
180
+ when :Date
181
+ Date.parse(value)
182
+ when :String
183
+ value.to_s
184
+ when :Integer
185
+ value.to_i
186
+ when :Float
187
+ value.to_f
188
+ when :Boolean
189
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
190
+ true
191
+ else
192
+ false
193
+ end
194
+ when :Object
195
+ # generic object (usually a Hash), return directly
196
+ value
197
+ when /\AArray<(?<inner_type>.+)>\z/
198
+ inner_type = Regexp.last_match[:inner_type]
199
+ value.map { |v| _deserialize(inner_type, v) }
200
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
201
+ k_type = Regexp.last_match[:k_type]
202
+ v_type = Regexp.last_match[:v_type]
203
+ {}.tap do |hash|
204
+ value.each do |k, v|
205
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
206
+ end
207
+ end
208
+ else # model
209
+ # models (e.g. Pet) or oneOf
210
+ klass = WalleeRubySdk.const_get(type)
211
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
212
+ end
213
+ end
214
+
215
+ # Returns the string representation of the object
216
+ # @return [String] String presentation of the object
217
+ def to_s
218
+ to_hash.to_s
219
+ end
220
+
221
+ # to_body is an alias to to_hash (backward compatibility)
222
+ # @return [Hash] Returns the object in the form of hash
223
+ def to_body
224
+ to_hash
225
+ end
226
+
227
+ # Returns the object in the form of hash
228
+ # @return [Hash] Returns the object in the form of hash
229
+ def to_hash
230
+ hash = {}
231
+ self.class.attribute_map.each_pair do |attr, param|
232
+ value = self.send(attr)
233
+ if value.nil?
234
+ is_nullable = self.class.openapi_nullable.include?(attr)
235
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
236
+ end
237
+
238
+ hash[param] = _to_hash(value)
239
+ end
240
+ hash
241
+ end
242
+
243
+ # Outputs non-array value in the form of hash
244
+ # For object, use to_hash. Otherwise, just return the value
245
+ # @param [Object] value Any valid value
246
+ # @return [Hash] Returns the value in the form of hash
247
+ def _to_hash(value)
248
+ if value.is_a?(Array)
249
+ value.compact.map { |v| _to_hash(v) }
250
+ elsif value.is_a?(Hash)
251
+ {}.tap do |hash|
252
+ value.each { |k, v| hash[k] = _to_hash(v) }
253
+ end
254
+ elsif value.respond_to? :to_hash
255
+ value.to_hash
256
+ else
257
+ value
258
+ end
259
+ end
260
+
261
+ end
262
+
263
+ end