wallee-ruby-sdk 6.4.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 (211) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +38 -31
  3. data/README.md +450 -129
  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/{abstract_payment_terminal_update.rb → basic_address.rb} +46 -30
  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 +560 -0
  15. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_option.rb → create_fulfillment_request.rb} +25 -50
  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/{express_checkout_session_state.rb → dunning_case_level_state.rb} +7 -7
  22. data/lib/wallee-ruby-sdk/models/extended_rest_o_auth_client.rb +425 -0
  23. data/lib/wallee-ruby-sdk/models/fulfillment.rb +428 -0
  24. data/lib/wallee-ruby-sdk/models/fulfillment_search_response.rb +263 -0
  25. data/lib/wallee-ruby-sdk/models/fulfillment_state.rb +52 -0
  26. data/lib/wallee-ruby-sdk/models/identity_info.rb +279 -0
  27. data/lib/wallee-ruby-sdk/models/invoice_processor.rb +51 -0
  28. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
  29. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link.rb +278 -0
  30. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
  31. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
  32. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
  33. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
  34. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
  35. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
  36. data/lib/wallee-ruby-sdk/models/{express_checkout_wallet_type.rb → invoice_reconciliation_record_type.rb} +3 -3
  37. data/lib/wallee-ruby-sdk/models/invoice_reimbursement.rb +463 -0
  38. data/lib/wallee-ruby-sdk/models/invoice_reimbursement_list_response.rb +253 -0
  39. data/lib/wallee-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
  40. data/lib/wallee-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
  41. data/lib/wallee-ruby-sdk/models/legal_form.rb +83 -0
  42. data/lib/wallee-ruby-sdk/models/merchant_application_data_dto.rb +275 -0
  43. data/lib/wallee-ruby-sdk/models/merchant_application_state.rb +50 -0
  44. data/lib/wallee-ruby-sdk/models/merchant_application_status_dto.rb +284 -0
  45. data/lib/wallee-ruby-sdk/models/merchant_bank_details_dto.rb +253 -0
  46. data/lib/wallee-ruby-sdk/models/merchant_company_details_dto.rb +331 -0
  47. data/lib/wallee-ruby-sdk/models/merchant_contract_revenue_dto.rb +261 -0
  48. data/lib/wallee-ruby-sdk/models/merchant_ecommerce_details_dto.rb +348 -0
  49. data/lib/wallee-ruby-sdk/models/merchant_payment_channels_dto.rb +263 -0
  50. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_address_change_response.rb → merchant_related_persons_dto.rb} +22 -20
  51. data/lib/wallee-ruby-sdk/models/o_auth_client.rb +397 -0
  52. data/lib/wallee-ruby-sdk/models/o_auth_client_create.rb +365 -0
  53. data/lib/wallee-ruby-sdk/models/{user_space_role_list_response.rb → o_auth_client_list_response.rb} +4 -4
  54. data/lib/wallee-ruby-sdk/models/o_auth_client_search_response.rb +263 -0
  55. data/lib/wallee-ruby-sdk/models/o_auth_client_update.rb +374 -0
  56. data/lib/wallee-ruby-sdk/models/o_auth_consent.rb +321 -0
  57. data/lib/wallee-ruby-sdk/models/{user_account_role_list_response.rb → o_auth_consent_list_response.rb} +4 -4
  58. data/lib/wallee-ruby-sdk/models/o_auth_consent_search_response.rb +263 -0
  59. data/lib/wallee-ruby-sdk/models/{user_account_role.rb → o_auth_user.rb} +56 -29
  60. data/lib/wallee-ruby-sdk/models/{bogus_express_checkout_approval_request.rb → payment_facilitator_pricing_profile_dto.rb} +19 -10
  61. data/lib/wallee-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
  62. data/lib/wallee-ruby-sdk/models/{express_checkout_session.rb → payment_initiation_advice_file.rb} +57 -72
  63. data/lib/wallee-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
  64. data/lib/wallee-ruby-sdk/models/payment_terminal.rb +37 -1
  65. data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
  66. data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
  67. data/lib/wallee-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
  68. data/lib/wallee-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
  69. data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +1 -0
  70. data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
  71. data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
  72. data/lib/wallee-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
  73. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
  74. data/lib/wallee-ruby-sdk/models/{express_checkout_create_response.rb → payout_account_info.rb} +31 -22
  75. data/lib/wallee-ruby-sdk/models/person_salutation.rb +54 -0
  76. data/lib/wallee-ruby-sdk/models/pricing_history_dto.rb +266 -0
  77. data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +11 -1
  78. data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +11 -1
  79. data/lib/wallee-ruby-sdk/models/refund_days_range.rb +51 -0
  80. data/lib/wallee-ruby-sdk/models/refund_percentage_range.rb +56 -0
  81. data/lib/wallee-ruby-sdk/models/related_person.rb +329 -0
  82. data/lib/wallee-ruby-sdk/models/representative_info.rb +239 -0
  83. data/lib/wallee-ruby-sdk/models/{user_space_role.rb → rest_member.rb} +50 -37
  84. data/lib/wallee-ruby-sdk/models/{express_checkout_approval_response.rb → rest_o_auth_client_secret.rb} +19 -17
  85. data/lib/wallee-ruby-sdk/models/rest_o_auth_client_secret_created.rb +289 -0
  86. data/lib/wallee-ruby-sdk/models/role.rb +13 -1
  87. data/lib/wallee-ruby-sdk/models/role_create.rb +13 -1
  88. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_method_change_request.rb → role_ref.rb} +21 -11
  89. data/lib/wallee-ruby-sdk/models/role_update.rb +13 -1
  90. data/lib/wallee-ruby-sdk/models/sales_channel.rb +15 -230
  91. data/lib/wallee-ruby-sdk/models/scope.rb +13 -1
  92. data/lib/wallee-ruby-sdk/models/secret_key_state.rb +51 -0
  93. data/lib/wallee-ruby-sdk/models/setter.rb +618 -0
  94. data/lib/wallee-ruby-sdk/models/sole_proprietor_ownership_type.rb +51 -0
  95. data/lib/wallee-ruby-sdk/models/sole_proprietorship_info.rb +261 -0
  96. data/lib/wallee-ruby-sdk/models/state_list_response.rb +253 -0
  97. data/lib/wallee-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
  98. data/lib/wallee-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
  99. data/lib/wallee-ruby-sdk/models/{express_checkout_session_create.rb → subscription_component_group_configuration_request.rb} +23 -37
  100. data/lib/wallee-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
  101. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_method_change_response.rb → subscription_product_dto.rb} +16 -18
  102. data/lib/wallee-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
  103. data/lib/wallee-ruby-sdk/models/tracking_number_request.rb +230 -0
  104. data/lib/wallee-ruby-sdk/models/transaction_overview.rb +1144 -0
  105. data/lib/wallee-ruby-sdk/models/transaction_projection.rb +1135 -0
  106. data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
  107. data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
  108. data/lib/wallee-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
  109. data/lib/wallee-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +266 -0
  110. data/lib/wallee-ruby-sdk/models/walleejoin_partnership.rb +357 -0
  111. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
  112. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
  113. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
  114. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
  115. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
  116. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
  117. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
  118. data/lib/wallee-ruby-sdk/models/wallet_type.rb +40 -1
  119. data/lib/wallee-ruby-sdk/models/web_ui_account_theme.rb +230 -0
  120. data/lib/wallee-ruby-sdk/service/accounts_service.rb +16 -9
  121. data/lib/wallee-ruby-sdk/service/analytics_queries_service.rb +8 -8
  122. data/lib/wallee-ruby-sdk/service/bank_accounts_service.rb +3 -3
  123. data/lib/wallee-ruby-sdk/service/bank_transactions_service.rb +3 -3
  124. data/lib/wallee-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
  125. data/lib/wallee-ruby-sdk/service/charge_attempts_service.rb +3 -3
  126. data/lib/wallee-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
  127. data/lib/wallee-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
  128. data/lib/wallee-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
  129. data/lib/wallee-ruby-sdk/service/charge_flows_service.rb +3 -3
  130. data/lib/wallee-ruby-sdk/service/consumed_resources_service.rb +1 -1
  131. data/lib/wallee-ruby-sdk/service/countries_service.rb +15 -6
  132. data/lib/wallee-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
  133. data/lib/wallee-ruby-sdk/service/customer_addresses_service.rb +7 -7
  134. data/lib/wallee-ruby-sdk/service/customer_comments_service.rb +8 -8
  135. data/lib/wallee-ruby-sdk/service/customers_service.rb +11 -11
  136. data/lib/wallee-ruby-sdk/service/debt_collection_cases_service.rb +12 -12
  137. data/lib/wallee-ruby-sdk/service/debt_collector_configurations_service.rb +6 -6
  138. data/lib/wallee-ruby-sdk/service/delivery_indications_service.rb +5 -5
  139. data/lib/wallee-ruby-sdk/service/document_templates_service.rb +3 -3
  140. data/lib/wallee-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
  141. data/lib/wallee-ruby-sdk/service/dunning_cases_service.rb +5 -5
  142. data/lib/wallee-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
  143. data/lib/wallee-ruby-sdk/service/dunning_flows_service.rb +3 -3
  144. data/lib/wallee-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
  145. data/lib/wallee-ruby-sdk/service/fulfillments_service.rb +355 -0
  146. data/lib/wallee-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
  147. data/lib/wallee-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
  148. data/lib/wallee-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
  149. data/lib/wallee-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
  150. data/lib/wallee-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
  151. data/lib/wallee-ruby-sdk/service/join_partnership_service.rb +586 -0
  152. data/lib/wallee-ruby-sdk/service/manual_tasks_service.rb +5 -5
  153. data/lib/wallee-ruby-sdk/service/members_service.rb +215 -0
  154. data/lib/wallee-ruby-sdk/service/merchant_applications_service.rb +334 -0
  155. data/lib/wallee-ruby-sdk/service/o_auth_clients_service.rb +611 -0
  156. data/lib/wallee-ruby-sdk/service/o_auth_consents_service.rb +332 -0
  157. data/lib/wallee-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
  158. data/lib/wallee-ruby-sdk/service/payment_links_service.rb +6 -6
  159. data/lib/wallee-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
  160. data/lib/wallee-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
  161. data/lib/wallee-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
  162. data/lib/wallee-ruby-sdk/service/payment_terminals_service.rb +475 -22
  163. data/lib/wallee-ruby-sdk/service/payment_web_apps_service.rb +11 -11
  164. data/lib/wallee-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
  165. data/lib/wallee-ruby-sdk/service/refund_comments_service.rb +8 -8
  166. data/lib/wallee-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
  167. data/lib/wallee-ruby-sdk/service/refunds_service.rb +7 -7
  168. data/lib/wallee-ruby-sdk/service/spaces_service.rb +10 -3
  169. data/lib/wallee-ruby-sdk/service/subscribers_service.rb +6 -6
  170. data/lib/wallee-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
  171. data/lib/wallee-ruby-sdk/service/subscription_charges_service.rb +5 -5
  172. data/lib/wallee-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
  173. data/lib/wallee-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
  174. data/lib/wallee-ruby-sdk/service/subscription_metrics_service.rb +6 -6
  175. data/lib/wallee-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
  176. data/lib/wallee-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
  177. data/lib/wallee-ruby-sdk/service/subscription_product_components_service.rb +6 -6
  178. data/lib/wallee-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
  179. data/lib/wallee-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
  180. data/lib/wallee-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
  181. data/lib/wallee-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
  182. data/lib/wallee-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
  183. data/lib/wallee-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
  184. data/lib/wallee-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
  185. data/lib/wallee-ruby-sdk/service/subscription_products_service.rb +6 -6
  186. data/lib/wallee-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
  187. data/lib/wallee-ruby-sdk/service/subscription_versions_service.rb +3 -3
  188. data/lib/wallee-ruby-sdk/service/subscriptions_service.rb +13 -13
  189. data/lib/wallee-ruby-sdk/service/terminal_locations_service.rb +276 -0
  190. data/lib/wallee-ruby-sdk/service/token_versions_service.rb +3 -3
  191. data/lib/wallee-ruby-sdk/service/tokens_service.rb +8 -8
  192. data/lib/wallee-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
  193. data/lib/wallee-ruby-sdk/service/transaction_comments_service.rb +8 -8
  194. data/lib/wallee-ruby-sdk/service/transaction_completions_service.rb +3 -3
  195. data/lib/wallee-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
  196. data/lib/wallee-ruby-sdk/service/transaction_invoices_service.rb +86 -8
  197. data/lib/wallee-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
  198. data/lib/wallee-ruby-sdk/service/transaction_voids_service.rb +3 -3
  199. data/lib/wallee-ruby-sdk/service/transactions_service.rb +179 -37
  200. data/lib/wallee-ruby-sdk/service/web_apps_service.rb +2 -2
  201. data/lib/wallee-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
  202. data/lib/wallee-ruby-sdk/service/webhook_listeners_service.rb +9 -9
  203. data/lib/wallee-ruby-sdk/service/webhook_urls_service.rb +9 -9
  204. data/lib/wallee-ruby-sdk/version.rb +1 -1
  205. data/lib/wallee-ruby-sdk.rb +115 -25
  206. metadata +117 -27
  207. data/lib/wallee-ruby-sdk/service/application_users_roles_service.rb +0 -478
  208. data/lib/wallee-ruby-sdk/service/bogus_express_checkout_service.rb +0 -114
  209. data/lib/wallee-ruby-sdk/service/express_checkout_service.rb +0 -269
  210. data/lib/wallee-ruby-sdk/service/human_users_roles_service.rb +0 -478
  211. data/lib/wallee-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
@@ -0,0 +1,330 @@
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 AbstractWalleejoinPartnership
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 ID of the product.
47
+ attr_accessor :subscription_product_id
48
+
49
+ # The ID of the partner account.
50
+ attr_accessor :partner_account
51
+
52
+ class EnumAttributeValidator
53
+ attr_reader :datatype
54
+ attr_reader :allowable_values
55
+
56
+ def initialize(datatype, allowable_values)
57
+ @allowable_values = allowable_values.map do |value|
58
+ case datatype.to_s
59
+ when /Integer/i
60
+ value.to_i
61
+ when /Float/i
62
+ value.to_f
63
+ else
64
+ value
65
+ end
66
+ end
67
+ end
68
+
69
+ def valid?(value)
70
+ !value || allowable_values.include?(value)
71
+ end
72
+ end
73
+
74
+ # Attribute mapping from ruby-style variable name to JSON key.
75
+ def self.attribute_map
76
+ {
77
+ :'terminated_on' => :'terminatedOn',
78
+ :'pricing_profile_sell_rate' => :'pricingProfileSellRate',
79
+ :'activated_on' => :'activatedOn',
80
+ :'merchant_account' => :'merchantAccount',
81
+ :'invitation_email_address' => :'invitationEmailAddress',
82
+ :'partnership_type' => :'partnershipType',
83
+ :'state' => :'state',
84
+ :'subscription_product_id' => :'subscriptionProductId',
85
+ :'partner_account' => :'partnerAccount'
86
+ }
87
+ end
88
+
89
+ # Returns attribute mapping this model knows about
90
+ def self.acceptable_attribute_map
91
+ attribute_map
92
+ end
93
+
94
+ # Returns all the JSON keys this model knows about
95
+ def self.acceptable_attributes
96
+ acceptable_attribute_map.values
97
+ end
98
+
99
+ # Attribute type mapping.
100
+ def self.openapi_types
101
+ {
102
+ :'terminated_on' => :'Time',
103
+ :'pricing_profile_sell_rate' => :'Object',
104
+ :'activated_on' => :'Time',
105
+ :'merchant_account' => :'Integer',
106
+ :'invitation_email_address' => :'String',
107
+ :'partnership_type' => :'WalleejoinPartnershipType',
108
+ :'state' => :'WalleejoinPartnershipState',
109
+ :'subscription_product_id' => :'Integer',
110
+ :'partner_account' => :'Integer'
111
+ }
112
+ end
113
+
114
+ # List of attributes with nullable: true
115
+ def self.openapi_nullable
116
+ Set.new([
117
+ ])
118
+ end
119
+
120
+ # Initializes the object
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ def initialize(attributes = {})
123
+ if (!attributes.is_a?(Hash))
124
+ fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::AbstractWalleejoinPartnership` initialize method"
125
+ end
126
+
127
+ # check to see if the attribute exists and convert string to symbol for hash key
128
+ acceptable_attribute_map = self.class.acceptable_attribute_map
129
+ attributes = attributes.each_with_object({}) { |(k, v), h|
130
+ if (!acceptable_attribute_map.key?(k.to_sym))
131
+ fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::AbstractWalleejoinPartnership`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
132
+ end
133
+ h[k.to_sym] = v
134
+ }
135
+
136
+ if attributes.key?(:'terminated_on')
137
+ self.terminated_on = attributes[:'terminated_on']
138
+ end
139
+
140
+ if attributes.key?(:'pricing_profile_sell_rate')
141
+ self.pricing_profile_sell_rate = attributes[:'pricing_profile_sell_rate']
142
+ end
143
+
144
+ if attributes.key?(:'activated_on')
145
+ self.activated_on = attributes[:'activated_on']
146
+ end
147
+
148
+ if attributes.key?(:'merchant_account')
149
+ self.merchant_account = attributes[:'merchant_account']
150
+ end
151
+
152
+ if attributes.key?(:'invitation_email_address')
153
+ self.invitation_email_address = attributes[:'invitation_email_address']
154
+ end
155
+
156
+ if attributes.key?(:'partnership_type')
157
+ self.partnership_type = attributes[:'partnership_type']
158
+ end
159
+
160
+ if attributes.key?(:'state')
161
+ self.state = attributes[:'state']
162
+ end
163
+
164
+ if attributes.key?(:'subscription_product_id')
165
+ self.subscription_product_id = attributes[:'subscription_product_id']
166
+ end
167
+
168
+ if attributes.key?(:'partner_account')
169
+ self.partner_account = attributes[:'partner_account']
170
+ end
171
+ end
172
+
173
+ # Show invalid properties with the reasons. Usually used together with valid?
174
+ # @return Array for valid properties with the reasons
175
+ def list_invalid_properties
176
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
177
+ invalid_properties = Array.new
178
+ invalid_properties
179
+ end
180
+
181
+ # Check to see if the all the properties in the model are valid
182
+ # @return true if the model is valid
183
+ def valid?
184
+ warn '[DEPRECATED] the `valid?` method is obsolete'
185
+ true
186
+ end
187
+
188
+ # Checks equality by comparing each attribute.
189
+ # @param [Object] Object to be compared
190
+ def ==(o)
191
+ return true if self.equal?(o)
192
+ self.class == o.class &&
193
+ terminated_on == o.terminated_on &&
194
+ pricing_profile_sell_rate == o.pricing_profile_sell_rate &&
195
+ activated_on == o.activated_on &&
196
+ merchant_account == o.merchant_account &&
197
+ invitation_email_address == o.invitation_email_address &&
198
+ partnership_type == o.partnership_type &&
199
+ state == o.state &&
200
+ subscription_product_id == o.subscription_product_id &&
201
+ partner_account == o.partner_account
202
+ end
203
+
204
+ # @see the `==` method
205
+ # @param [Object] Object to be compared
206
+ def eql?(o)
207
+ self == o
208
+ end
209
+
210
+ # Calculates hash code according to all attributes.
211
+ # @return [Integer] Hash code
212
+ def hash
213
+ [terminated_on, pricing_profile_sell_rate, activated_on, merchant_account, invitation_email_address, partnership_type, state, subscription_product_id, partner_account].hash
214
+ end
215
+
216
+ # Builds the object from hash
217
+ # @param [Hash] attributes Model attributes in the form of hash
218
+ # @return [Object] Returns the model itself
219
+ def self.build_from_hash(attributes)
220
+ return nil unless attributes.is_a?(Hash)
221
+ attributes = attributes.transform_keys(&:to_sym)
222
+ transformed_hash = {}
223
+ openapi_types.each_pair do |key, type|
224
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
225
+ transformed_hash["#{key}"] = nil
226
+ elsif type =~ /\AArray<(.*)>/i
227
+ # check to ensure the input is an array given that the attribute
228
+ # is documented as an array but the input is not
229
+ if attributes[attribute_map[key]].is_a?(Array)
230
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
231
+ end
232
+ elsif !attributes[attribute_map[key]].nil?
233
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
234
+ end
235
+ end
236
+ new(transformed_hash)
237
+ end
238
+
239
+ # Deserializes the data based on type
240
+ # @param string type Data type
241
+ # @param string value Value to be deserialized
242
+ # @return [Object] Deserialized data
243
+ def self._deserialize(type, value)
244
+ case type.to_sym
245
+ when :Time
246
+ Time.parse(value)
247
+ when :Date
248
+ Date.parse(value)
249
+ when :String
250
+ value.to_s
251
+ when :Integer
252
+ value.to_i
253
+ when :Float
254
+ value.to_f
255
+ when :Boolean
256
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
257
+ true
258
+ else
259
+ false
260
+ end
261
+ when :Object
262
+ # generic object (usually a Hash), return directly
263
+ value
264
+ when /\AArray<(?<inner_type>.+)>\z/
265
+ inner_type = Regexp.last_match[:inner_type]
266
+ value.map { |v| _deserialize(inner_type, v) }
267
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
268
+ k_type = Regexp.last_match[:k_type]
269
+ v_type = Regexp.last_match[:v_type]
270
+ {}.tap do |hash|
271
+ value.each do |k, v|
272
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
273
+ end
274
+ end
275
+ else # model
276
+ # models (e.g. Pet) or oneOf
277
+ klass = WalleeRubySdk.const_get(type)
278
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
279
+ end
280
+ end
281
+
282
+ # Returns the string representation of the object
283
+ # @return [String] String presentation of the object
284
+ def to_s
285
+ to_hash.to_s
286
+ end
287
+
288
+ # to_body is an alias to to_hash (backward compatibility)
289
+ # @return [Hash] Returns the object in the form of hash
290
+ def to_body
291
+ to_hash
292
+ end
293
+
294
+ # Returns the object in the form of hash
295
+ # @return [Hash] Returns the object in the form of hash
296
+ def to_hash
297
+ hash = {}
298
+ self.class.attribute_map.each_pair do |attr, param|
299
+ value = self.send(attr)
300
+ if value.nil?
301
+ is_nullable = self.class.openapi_nullable.include?(attr)
302
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
303
+ end
304
+
305
+ hash[param] = _to_hash(value)
306
+ end
307
+ hash
308
+ end
309
+
310
+ # Outputs non-array value in the form of hash
311
+ # For object, use to_hash. Otherwise, just return the value
312
+ # @param [Object] value Any valid value
313
+ # @return [Hash] Returns the value in the form of hash
314
+ def _to_hash(value)
315
+ if value.is_a?(Array)
316
+ value.compact.map { |v| _to_hash(v) }
317
+ elsif value.is_a?(Hash)
318
+ {}.tap do |hash|
319
+ value.each { |k, v| hash[k] = _to_hash(v) }
320
+ end
321
+ elsif value.respond_to? :to_hash
322
+ value.to_hash
323
+ else
324
+ value
325
+ end
326
+ end
327
+
328
+ end
329
+
330
+ end
@@ -24,22 +24,30 @@ require 'date'
24
24
  require 'time'
25
25
 
26
26
  module WalleeRubySdk
27
- class PaymentTerminalPreparing
28
- # The name used to identify the payment terminal.
27
+ class AccountCreateWithOwner
28
+ # The name used to identify the account.
29
29
  attr_accessor :name
30
30
 
31
- # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
32
- attr_accessor :version
31
+ # The number of sub-accounts that can be created within this account.
32
+ attr_accessor :subaccount_limit
33
33
 
34
- # A client-generated nonce which uniquely identifies some action to be executed. Subsequent requests with the same external ID do not execute the action again, but return the original result.
35
- attr_accessor :external_id
34
+ # The scope that the account belongs to.
35
+ attr_accessor :scope
36
+
37
+ # The parent account responsible for administering this account.
38
+ attr_accessor :parent_account
39
+
40
+ # The email address for the person who will be invited to assume the role of account admin.
41
+ attr_accessor :owner_email_address
36
42
 
37
43
  # Attribute mapping from ruby-style variable name to JSON key.
38
44
  def self.attribute_map
39
45
  {
40
46
  :'name' => :'name',
41
- :'version' => :'version',
42
- :'external_id' => :'externalId'
47
+ :'subaccount_limit' => :'subaccountLimit',
48
+ :'scope' => :'scope',
49
+ :'parent_account' => :'parentAccount',
50
+ :'owner_email_address' => :'ownerEmailAddress'
43
51
  }
44
52
  end
45
53
 
@@ -57,8 +65,10 @@ module WalleeRubySdk
57
65
  def self.openapi_types
58
66
  {
59
67
  :'name' => :'String',
60
- :'version' => :'Integer',
61
- :'external_id' => :'String'
68
+ :'subaccount_limit' => :'Integer',
69
+ :'scope' => :'Integer',
70
+ :'parent_account' => :'Integer',
71
+ :'owner_email_address' => :'String'
62
72
  }
63
73
  end
64
74
 
@@ -71,7 +81,7 @@ module WalleeRubySdk
71
81
  # List of class defined in allOf (OpenAPI v3)
72
82
  def self.openapi_all_of
73
83
  [
74
- :'PaymentTerminalUpdate'
84
+ :'AccountCreate'
75
85
  ]
76
86
  end
77
87
 
@@ -79,14 +89,14 @@ module WalleeRubySdk
79
89
  # @param [Hash] attributes Model attributes in the form of hash
80
90
  def initialize(attributes = {})
81
91
  if (!attributes.is_a?(Hash))
82
- fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::PaymentTerminalPreparing` initialize method"
92
+ fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::AccountCreateWithOwner` initialize method"
83
93
  end
84
94
 
85
95
  # check to see if the attribute exists and convert string to symbol for hash key
86
96
  acceptable_attribute_map = self.class.acceptable_attribute_map
87
97
  attributes = attributes.each_with_object({}) { |(k, v), h|
88
98
  if (!acceptable_attribute_map.key?(k.to_sym))
89
- fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::PaymentTerminalPreparing`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
99
+ fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::AccountCreateWithOwner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
90
100
  end
91
101
  h[k.to_sym] = v
92
102
  }
@@ -95,14 +105,22 @@ module WalleeRubySdk
95
105
  self.name = attributes[:'name']
96
106
  end
97
107
 
98
- if attributes.key?(:'version')
99
- self.version = attributes[:'version']
108
+ if attributes.key?(:'subaccount_limit')
109
+ self.subaccount_limit = attributes[:'subaccount_limit']
110
+ end
111
+
112
+ if attributes.key?(:'scope')
113
+ self.scope = attributes[:'scope']
100
114
  else
101
- self.version = nil
115
+ self.scope = nil
116
+ end
117
+
118
+ if attributes.key?(:'parent_account')
119
+ self.parent_account = attributes[:'parent_account']
102
120
  end
103
121
 
104
- if attributes.key?(:'external_id')
105
- self.external_id = attributes[:'external_id']
122
+ if attributes.key?(:'owner_email_address')
123
+ self.owner_email_address = attributes[:'owner_email_address']
106
124
  end
107
125
  end
108
126
 
@@ -111,12 +129,16 @@ module WalleeRubySdk
111
129
  def list_invalid_properties
112
130
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
131
  invalid_properties = Array.new
114
- if !@name.nil? && @name.to_s.length > 100
115
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
132
+ if !@name.nil? && @name.to_s.length > 200
133
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 200.')
134
+ end
135
+
136
+ if !@name.nil? && @name.to_s.length < 3
137
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
116
138
  end
117
139
 
118
- if @version.nil?
119
- invalid_properties.push('invalid value for "version", version cannot be nil.')
140
+ if @scope.nil?
141
+ invalid_properties.push('invalid value for "scope", scope cannot be nil.')
120
142
  end
121
143
 
122
144
  invalid_properties
@@ -126,8 +148,9 @@ module WalleeRubySdk
126
148
  # @return true if the model is valid
127
149
  def valid?
128
150
  warn '[DEPRECATED] the `valid?` method is obsolete'
129
- return false if !@name.nil? && @name.to_s.length > 100
130
- return false if @version.nil?
151
+ return false if !@name.nil? && @name.to_s.length > 200
152
+ return false if !@name.nil? && @name.to_s.length < 3
153
+ return false if @scope.nil?
131
154
  true
132
155
  end
133
156
 
@@ -138,21 +161,25 @@ module WalleeRubySdk
138
161
  fail ArgumentError, 'name cannot be nil'
139
162
  end
140
163
 
141
- if name.to_s.length > 100
142
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
164
+ if name.to_s.length > 200
165
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 200.'
166
+ end
167
+
168
+ if name.to_s.length < 3
169
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
143
170
  end
144
171
 
145
172
  @name = name
146
173
  end
147
174
 
148
175
  # Custom attribute writer method with validation
149
- # @param [Object] version Value to be assigned
150
- def version=(version)
151
- if version.nil?
152
- fail ArgumentError, 'version cannot be nil'
176
+ # @param [Object] scope Value to be assigned
177
+ def scope=(scope)
178
+ if scope.nil?
179
+ fail ArgumentError, 'scope cannot be nil'
153
180
  end
154
181
 
155
- @version = version
182
+ @scope = scope
156
183
  end
157
184
 
158
185
  # Checks equality by comparing each attribute.
@@ -161,8 +188,10 @@ module WalleeRubySdk
161
188
  return true if self.equal?(o)
162
189
  self.class == o.class &&
163
190
  name == o.name &&
164
- version == o.version &&
165
- external_id == o.external_id
191
+ subaccount_limit == o.subaccount_limit &&
192
+ scope == o.scope &&
193
+ parent_account == o.parent_account &&
194
+ owner_email_address == o.owner_email_address
166
195
  end
167
196
 
168
197
  # @see the `==` method
@@ -174,7 +203,7 @@ module WalleeRubySdk
174
203
  # Calculates hash code according to all attributes.
175
204
  # @return [Integer] Hash code
176
205
  def hash
177
- [name, version, external_id].hash
206
+ [name, subaccount_limit, scope, parent_account, owner_email_address].hash
178
207
  end
179
208
 
180
209
  # Builds the object from hash
@@ -41,6 +41,9 @@ module WalleeRubySdk
41
41
 
42
42
  attr_accessor :recurring_indicator
43
43
 
44
+ # A reference specific to linking card transaction lifecycle events within the payment scheme.
45
+ attr_accessor :transaction_link_identifier
46
+
44
47
  # A reference specific to the card's transaction within its payment scheme.
45
48
  attr_accessor :scheme_transaction_reference
46
49
 
@@ -82,6 +85,7 @@ module WalleeRubySdk
82
85
  :'card_verification_code' => :'cardVerificationCode',
83
86
  :'primary_account_number' => :'primaryAccountNumber',
84
87
  :'recurring_indicator' => :'recurringIndicator',
88
+ :'transaction_link_identifier' => :'transactionLinkIdentifier',
85
89
  :'scheme_transaction_reference' => :'schemeTransactionReference',
86
90
  :'cardholder_authentication' => :'cardholderAuthentication',
87
91
  :'token_requestor_id' => :'tokenRequestorId',
@@ -108,6 +112,7 @@ module WalleeRubySdk
108
112
  :'card_verification_code' => :'String',
109
113
  :'primary_account_number' => :'String',
110
114
  :'recurring_indicator' => :'RecurringIndicator',
115
+ :'transaction_link_identifier' => :'String',
111
116
  :'scheme_transaction_reference' => :'String',
112
117
  :'cardholder_authentication' => :'CardholderAuthenticationCreate',
113
118
  :'token_requestor_id' => :'String',
@@ -163,6 +168,10 @@ module WalleeRubySdk
163
168
  self.recurring_indicator = attributes[:'recurring_indicator']
164
169
  end
165
170
 
171
+ if attributes.key?(:'transaction_link_identifier')
172
+ self.transaction_link_identifier = attributes[:'transaction_link_identifier']
173
+ end
174
+
166
175
  if attributes.key?(:'scheme_transaction_reference')
167
176
  self.scheme_transaction_reference = attributes[:'scheme_transaction_reference']
168
177
  end
@@ -224,6 +233,10 @@ module WalleeRubySdk
224
233
  invalid_properties.push("invalid value for \"primary_account_number\", must conform to the pattern #{pattern}.")
225
234
  end
226
235
 
236
+ if !@transaction_link_identifier.nil? && @transaction_link_identifier.to_s.length > 100
237
+ invalid_properties.push('invalid value for "transaction_link_identifier", the character length must be smaller than or equal to 100.')
238
+ end
239
+
227
240
  if !@scheme_transaction_reference.nil? && @scheme_transaction_reference.to_s.length > 100
228
241
  invalid_properties.push('invalid value for "scheme_transaction_reference", the character length must be smaller than or equal to 100.')
229
242
  end
@@ -244,6 +257,7 @@ module WalleeRubySdk
244
257
  return false if @primary_account_number.to_s.length > 30
245
258
  return false if @primary_account_number.to_s.length < 10
246
259
  return false if @primary_account_number !~ Regexp.new(/([0-9 ]+)/)
260
+ return false if !@transaction_link_identifier.nil? && @transaction_link_identifier.to_s.length > 100
247
261
  return false if !@scheme_transaction_reference.nil? && @scheme_transaction_reference.to_s.length > 100
248
262
  true
249
263
  end
@@ -323,6 +337,20 @@ module WalleeRubySdk
323
337
  @primary_account_number = primary_account_number
324
338
  end
325
339
 
340
+ # Custom attribute writer method with validation
341
+ # @param [Object] transaction_link_identifier Value to be assigned
342
+ def transaction_link_identifier=(transaction_link_identifier)
343
+ if transaction_link_identifier.nil?
344
+ fail ArgumentError, 'transaction_link_identifier cannot be nil'
345
+ end
346
+
347
+ if transaction_link_identifier.to_s.length > 100
348
+ fail ArgumentError, 'invalid value for "transaction_link_identifier", the character length must be smaller than or equal to 100.'
349
+ end
350
+
351
+ @transaction_link_identifier = transaction_link_identifier
352
+ end
353
+
326
354
  # Custom attribute writer method with validation
327
355
  # @param [Object] scheme_transaction_reference Value to be assigned
328
356
  def scheme_transaction_reference=(scheme_transaction_reference)
@@ -348,6 +376,7 @@ module WalleeRubySdk
348
376
  card_verification_code == o.card_verification_code &&
349
377
  primary_account_number == o.primary_account_number &&
350
378
  recurring_indicator == o.recurring_indicator &&
379
+ transaction_link_identifier == o.transaction_link_identifier &&
351
380
  scheme_transaction_reference == o.scheme_transaction_reference &&
352
381
  cardholder_authentication == o.cardholder_authentication &&
353
382
  token_requestor_id == o.token_requestor_id &&
@@ -363,7 +392,7 @@ module WalleeRubySdk
363
392
  # Calculates hash code according to all attributes.
364
393
  # @return [Integer] Hash code
365
394
  def hash
366
- [expiry_date, pan_type, card_holder_name, card_verification_code, primary_account_number, recurring_indicator, scheme_transaction_reference, cardholder_authentication, token_requestor_id, cryptogram].hash
395
+ [expiry_date, pan_type, card_holder_name, card_verification_code, primary_account_number, recurring_indicator, transaction_link_identifier, scheme_transaction_reference, cardholder_authentication, token_requestor_id, cryptogram].hash
367
396
  end
368
397
 
369
398
  # Builds the object from hash
@@ -0,0 +1,50 @@
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 BankPaymentType
28
+ INSTANT = "INSTANT".freeze
29
+ REGULAR = "REGULAR".freeze
30
+
31
+ def self.all_vars
32
+ @all_vars ||= [INSTANT, REGULAR].freeze
33
+ end
34
+
35
+ # Builds the enum from string
36
+ # @param [String] The enum value in the form of the string
37
+ # @return [String] The enum value
38
+ def self.build_from_hash(value)
39
+ new.build_from_hash(value)
40
+ end
41
+
42
+ # Builds the enum from string
43
+ # @param [String] The enum value in the form of the string
44
+ # @return [String] The enum value
45
+ def build_from_hash(value)
46
+ return value if BankPaymentType.all_vars.include?(value)
47
+ raise "Invalid ENUM value #{value} for class #BankPaymentType"
48
+ end
49
+ end
50
+ end