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
@@ -30,18 +30,52 @@ module WalleeRubySdk
30
30
  # The URL to fetch the shipping options from.
31
31
  attr_accessor :merchant_shipping_callback_url
32
32
 
33
+ # The base URL on the merchant shop used to create the order.
34
+ attr_accessor :merchant_redirect_url
35
+
36
+ attr_accessor :authorization_environment
37
+
38
+ # Customer time zone for presentation and cutoffs (same semantics as on Transaction).
39
+ attr_accessor :time_zone
40
+
33
41
  # The currency of the session.
34
42
  attr_accessor :currency
35
43
 
36
- attr_accessor :shipping_options
44
+ # Preferred language for customer-facing content (same semantics as on Transaction).
45
+ attr_accessor :language
46
+
47
+ class EnumAttributeValidator
48
+ attr_reader :datatype
49
+ attr_reader :allowable_values
50
+
51
+ def initialize(datatype, allowable_values)
52
+ @allowable_values = allowable_values.map do |value|
53
+ case datatype.to_s
54
+ when /Integer/i
55
+ value.to_i
56
+ when /Float/i
57
+ value.to_f
58
+ else
59
+ value
60
+ end
61
+ end
62
+ end
63
+
64
+ def valid?(value)
65
+ !value || allowable_values.include?(value)
66
+ end
67
+ end
37
68
 
38
69
  # Attribute mapping from ruby-style variable name to JSON key.
39
70
  def self.attribute_map
40
71
  {
41
72
  :'line_items' => :'lineItems',
42
73
  :'merchant_shipping_callback_url' => :'merchantShippingCallbackUrl',
74
+ :'merchant_redirect_url' => :'merchantRedirectUrl',
75
+ :'authorization_environment' => :'authorizationEnvironment',
76
+ :'time_zone' => :'timeZone',
43
77
  :'currency' => :'currency',
44
- :'shipping_options' => :'shippingOptions'
78
+ :'language' => :'language'
45
79
  }
46
80
  end
47
81
 
@@ -60,8 +94,11 @@ module WalleeRubySdk
60
94
  {
61
95
  :'line_items' => :'Array<LineItem>',
62
96
  :'merchant_shipping_callback_url' => :'String',
97
+ :'merchant_redirect_url' => :'String',
98
+ :'authorization_environment' => :'ChargeAttemptEnvironment',
99
+ :'time_zone' => :'String',
63
100
  :'currency' => :'String',
64
- :'shipping_options' => :'Array<ExpressCheckoutShippingOption>'
101
+ :'language' => :'String'
65
102
  }
66
103
  end
67
104
 
@@ -91,20 +128,38 @@ module WalleeRubySdk
91
128
  if (value = attributes[:'line_items']).is_a?(Array)
92
129
  self.line_items = value
93
130
  end
131
+ else
132
+ self.line_items = nil
94
133
  end
95
134
 
96
135
  if attributes.key?(:'merchant_shipping_callback_url')
97
136
  self.merchant_shipping_callback_url = attributes[:'merchant_shipping_callback_url']
98
137
  end
99
138
 
139
+ if attributes.key?(:'merchant_redirect_url')
140
+ self.merchant_redirect_url = attributes[:'merchant_redirect_url']
141
+ else
142
+ self.merchant_redirect_url = nil
143
+ end
144
+
145
+ if attributes.key?(:'authorization_environment')
146
+ self.authorization_environment = attributes[:'authorization_environment']
147
+ else
148
+ self.authorization_environment = nil
149
+ end
150
+
151
+ if attributes.key?(:'time_zone')
152
+ self.time_zone = attributes[:'time_zone']
153
+ end
154
+
100
155
  if attributes.key?(:'currency')
101
156
  self.currency = attributes[:'currency']
157
+ else
158
+ self.currency = nil
102
159
  end
103
160
 
104
- if attributes.key?(:'shipping_options')
105
- if (value = attributes[:'shipping_options']).is_a?(Array)
106
- self.shipping_options = value
107
- end
161
+ if attributes.key?(:'language')
162
+ self.language = attributes[:'language']
108
163
  end
109
164
  end
110
165
 
@@ -113,6 +168,22 @@ module WalleeRubySdk
113
168
  def list_invalid_properties
114
169
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
115
170
  invalid_properties = Array.new
171
+ if @line_items.nil?
172
+ invalid_properties.push('invalid value for "line_items", line_items cannot be nil.')
173
+ end
174
+
175
+ if @merchant_redirect_url.nil?
176
+ invalid_properties.push('invalid value for "merchant_redirect_url", merchant_redirect_url cannot be nil.')
177
+ end
178
+
179
+ if @authorization_environment.nil?
180
+ invalid_properties.push('invalid value for "authorization_environment", authorization_environment cannot be nil.')
181
+ end
182
+
183
+ if @currency.nil?
184
+ invalid_properties.push('invalid value for "currency", currency cannot be nil.')
185
+ end
186
+
116
187
  invalid_properties
117
188
  end
118
189
 
@@ -120,9 +191,53 @@ module WalleeRubySdk
120
191
  # @return true if the model is valid
121
192
  def valid?
122
193
  warn '[DEPRECATED] the `valid?` method is obsolete'
194
+ return false if @line_items.nil?
195
+ return false if @merchant_redirect_url.nil?
196
+ return false if @authorization_environment.nil?
197
+ return false if @currency.nil?
123
198
  true
124
199
  end
125
200
 
201
+ # Custom attribute writer method with validation
202
+ # @param [Object] line_items Value to be assigned
203
+ def line_items=(line_items)
204
+ if line_items.nil?
205
+ fail ArgumentError, 'line_items cannot be nil'
206
+ end
207
+
208
+ @line_items = line_items
209
+ end
210
+
211
+ # Custom attribute writer method with validation
212
+ # @param [Object] merchant_redirect_url Value to be assigned
213
+ def merchant_redirect_url=(merchant_redirect_url)
214
+ if merchant_redirect_url.nil?
215
+ fail ArgumentError, 'merchant_redirect_url cannot be nil'
216
+ end
217
+
218
+ @merchant_redirect_url = merchant_redirect_url
219
+ end
220
+
221
+ # Custom attribute writer method with validation
222
+ # @param [Object] authorization_environment Value to be assigned
223
+ def authorization_environment=(authorization_environment)
224
+ if authorization_environment.nil?
225
+ fail ArgumentError, 'authorization_environment cannot be nil'
226
+ end
227
+
228
+ @authorization_environment = authorization_environment
229
+ end
230
+
231
+ # Custom attribute writer method with validation
232
+ # @param [Object] currency Value to be assigned
233
+ def currency=(currency)
234
+ if currency.nil?
235
+ fail ArgumentError, 'currency cannot be nil'
236
+ end
237
+
238
+ @currency = currency
239
+ end
240
+
126
241
  # Checks equality by comparing each attribute.
127
242
  # @param [Object] Object to be compared
128
243
  def ==(o)
@@ -130,8 +245,11 @@ module WalleeRubySdk
130
245
  self.class == o.class &&
131
246
  line_items == o.line_items &&
132
247
  merchant_shipping_callback_url == o.merchant_shipping_callback_url &&
248
+ merchant_redirect_url == o.merchant_redirect_url &&
249
+ authorization_environment == o.authorization_environment &&
250
+ time_zone == o.time_zone &&
133
251
  currency == o.currency &&
134
- shipping_options == o.shipping_options
252
+ language == o.language
135
253
  end
136
254
 
137
255
  # @see the `==` method
@@ -143,7 +261,7 @@ module WalleeRubySdk
143
261
  # Calculates hash code according to all attributes.
144
262
  # @return [Integer] Hash code
145
263
  def hash
146
- [line_items, merchant_shipping_callback_url, currency, shipping_options].hash
264
+ [line_items, merchant_shipping_callback_url, merchant_redirect_url, authorization_environment, time_zone, currency, language].hash
147
265
  end
148
266
 
149
267
  # Builds the object from hash
@@ -24,19 +24,18 @@ require 'date'
24
24
  require 'time'
25
25
 
26
26
  module WalleeRubySdk
27
- class ExpressCheckoutCreateResponse
28
- attr_accessor :iframe_src
29
-
30
- attr_accessor :session
31
-
27
+ class ExpressCheckoutSessionCreateResponse
28
+ # Security token used to render the widget and continue the checkout flow.
32
29
  attr_accessor :session_token
33
30
 
31
+ # Identifier of the newly created Express Checkout session.
32
+ attr_accessor :session_id
33
+
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
- :'iframe_src' => :'iframeSrc',
38
- :'session' => :'session',
39
- :'session_token' => :'sessionToken'
37
+ :'session_token' => :'sessionToken',
38
+ :'session_id' => :'sessionId'
40
39
  }
41
40
  end
42
41
 
@@ -53,9 +52,8 @@ module WalleeRubySdk
53
52
  # Attribute type mapping.
54
53
  def self.openapi_types
55
54
  {
56
- :'iframe_src' => :'String',
57
- :'session' => :'Integer',
58
- :'session_token' => :'String'
55
+ :'session_token' => :'String',
56
+ :'session_id' => :'Integer'
59
57
  }
60
58
  end
61
59
 
@@ -69,29 +67,25 @@ module WalleeRubySdk
69
67
  # @param [Hash] attributes Model attributes in the form of hash
70
68
  def initialize(attributes = {})
71
69
  if (!attributes.is_a?(Hash))
72
- fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::ExpressCheckoutCreateResponse` initialize method"
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::ExpressCheckoutSessionCreateResponse` initialize method"
73
71
  end
74
72
 
75
73
  # check to see if the attribute exists and convert string to symbol for hash key
76
74
  acceptable_attribute_map = self.class.acceptable_attribute_map
77
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
78
76
  if (!acceptable_attribute_map.key?(k.to_sym))
79
- fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::ExpressCheckoutCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::ExpressCheckoutSessionCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
80
78
  end
81
79
  h[k.to_sym] = v
82
80
  }
83
81
 
84
- if attributes.key?(:'iframe_src')
85
- self.iframe_src = attributes[:'iframe_src']
86
- end
87
-
88
- if attributes.key?(:'session')
89
- self.session = attributes[:'session']
90
- end
91
-
92
82
  if attributes.key?(:'session_token')
93
83
  self.session_token = attributes[:'session_token']
94
84
  end
85
+
86
+ if attributes.key?(:'session_id')
87
+ self.session_id = attributes[:'session_id']
88
+ end
95
89
  end
96
90
 
97
91
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -114,9 +108,8 @@ module WalleeRubySdk
114
108
  def ==(o)
115
109
  return true if self.equal?(o)
116
110
  self.class == o.class &&
117
- iframe_src == o.iframe_src &&
118
- session == o.session &&
119
- session_token == o.session_token
111
+ session_token == o.session_token &&
112
+ session_id == o.session_id
120
113
  end
121
114
 
122
115
  # @see the `==` method
@@ -128,7 +121,7 @@ module WalleeRubySdk
128
121
  # Calculates hash code according to all attributes.
129
122
  # @return [Integer] Hash code
130
123
  def hash
131
- [iframe_src, session, session_token].hash
124
+ [session_token, session_id].hash
132
125
  end
133
126
 
134
127
  # Builds the object from hash
@@ -0,0 +1,329 @@
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 ExpressCheckoutSessionProcessRequest
28
+ # Mandatory URL to redirect the customer to after a successful payment for Express Checkout.
29
+ attr_accessor :success_url
30
+
31
+ # The Express Checkout session identifier returned by create-session.
32
+ attr_accessor :session_id
33
+
34
+ # Mandatory merchant order identifier used as merchantReference on the created transaction.
35
+ attr_accessor :merchant_reference
36
+
37
+ # Mandatory URL to redirect the customer to after a failed payment for Express Checkout.
38
+ attr_accessor :failure_url
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+ :'success_url' => :'successUrl',
44
+ :'session_id' => :'sessionId',
45
+ :'merchant_reference' => :'merchantReference',
46
+ :'failure_url' => :'failureUrl'
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
+ :'success_url' => :'String',
64
+ :'session_id' => :'Integer',
65
+ :'merchant_reference' => :'String',
66
+ :'failure_url' => :'String'
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::ExpressCheckoutSessionProcessRequest` 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::ExpressCheckoutSessionProcessRequest`. 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?(:'success_url')
93
+ self.success_url = attributes[:'success_url']
94
+ else
95
+ self.success_url = nil
96
+ end
97
+
98
+ if attributes.key?(:'session_id')
99
+ self.session_id = attributes[:'session_id']
100
+ else
101
+ self.session_id = nil
102
+ end
103
+
104
+ if attributes.key?(:'merchant_reference')
105
+ self.merchant_reference = attributes[:'merchant_reference']
106
+ else
107
+ self.merchant_reference = nil
108
+ end
109
+
110
+ if attributes.key?(:'failure_url')
111
+ self.failure_url = attributes[:'failure_url']
112
+ else
113
+ self.failure_url = nil
114
+ end
115
+ end
116
+
117
+ # Show invalid properties with the reasons. Usually used together with valid?
118
+ # @return Array for valid properties with the reasons
119
+ def list_invalid_properties
120
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
121
+ invalid_properties = Array.new
122
+ if @success_url.nil?
123
+ invalid_properties.push('invalid value for "success_url", success_url cannot be nil.')
124
+ end
125
+
126
+ if @session_id.nil?
127
+ invalid_properties.push('invalid value for "session_id", session_id cannot be nil.')
128
+ end
129
+
130
+ if @merchant_reference.nil?
131
+ invalid_properties.push('invalid value for "merchant_reference", merchant_reference cannot be nil.')
132
+ end
133
+
134
+ if @failure_url.nil?
135
+ invalid_properties.push('invalid value for "failure_url", failure_url cannot be nil.')
136
+ end
137
+
138
+ invalid_properties
139
+ end
140
+
141
+ # Check to see if the all the properties in the model are valid
142
+ # @return true if the model is valid
143
+ def valid?
144
+ warn '[DEPRECATED] the `valid?` method is obsolete'
145
+ return false if @success_url.nil?
146
+ return false if @session_id.nil?
147
+ return false if @merchant_reference.nil?
148
+ return false if @failure_url.nil?
149
+ true
150
+ end
151
+
152
+ # Custom attribute writer method with validation
153
+ # @param [Object] success_url Value to be assigned
154
+ def success_url=(success_url)
155
+ if success_url.nil?
156
+ fail ArgumentError, 'success_url cannot be nil'
157
+ end
158
+
159
+ @success_url = success_url
160
+ end
161
+
162
+ # Custom attribute writer method with validation
163
+ # @param [Object] session_id Value to be assigned
164
+ def session_id=(session_id)
165
+ if session_id.nil?
166
+ fail ArgumentError, 'session_id cannot be nil'
167
+ end
168
+
169
+ @session_id = session_id
170
+ end
171
+
172
+ # Custom attribute writer method with validation
173
+ # @param [Object] merchant_reference Value to be assigned
174
+ def merchant_reference=(merchant_reference)
175
+ if merchant_reference.nil?
176
+ fail ArgumentError, 'merchant_reference cannot be nil'
177
+ end
178
+
179
+ @merchant_reference = merchant_reference
180
+ end
181
+
182
+ # Custom attribute writer method with validation
183
+ # @param [Object] failure_url Value to be assigned
184
+ def failure_url=(failure_url)
185
+ if failure_url.nil?
186
+ fail ArgumentError, 'failure_url cannot be nil'
187
+ end
188
+
189
+ @failure_url = failure_url
190
+ end
191
+
192
+ # Checks equality by comparing each attribute.
193
+ # @param [Object] Object to be compared
194
+ def ==(o)
195
+ return true if self.equal?(o)
196
+ self.class == o.class &&
197
+ success_url == o.success_url &&
198
+ session_id == o.session_id &&
199
+ merchant_reference == o.merchant_reference &&
200
+ failure_url == o.failure_url
201
+ end
202
+
203
+ # @see the `==` method
204
+ # @param [Object] Object to be compared
205
+ def eql?(o)
206
+ self == o
207
+ end
208
+
209
+ # Calculates hash code according to all attributes.
210
+ # @return [Integer] Hash code
211
+ def hash
212
+ [success_url, session_id, merchant_reference, failure_url].hash
213
+ end
214
+
215
+ # Builds the object from hash
216
+ # @param [Hash] attributes Model attributes in the form of hash
217
+ # @return [Object] Returns the model itself
218
+ def self.build_from_hash(attributes)
219
+ return nil unless attributes.is_a?(Hash)
220
+ attributes = attributes.transform_keys(&:to_sym)
221
+ transformed_hash = {}
222
+ openapi_types.each_pair do |key, type|
223
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
224
+ transformed_hash["#{key}"] = nil
225
+ elsif type =~ /\AArray<(.*)>/i
226
+ # check to ensure the input is an array given that the attribute
227
+ # is documented as an array but the input is not
228
+ if attributes[attribute_map[key]].is_a?(Array)
229
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
230
+ end
231
+ elsif !attributes[attribute_map[key]].nil?
232
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
233
+ end
234
+ end
235
+ new(transformed_hash)
236
+ end
237
+
238
+ # Deserializes the data based on type
239
+ # @param string type Data type
240
+ # @param string value Value to be deserialized
241
+ # @return [Object] Deserialized data
242
+ def self._deserialize(type, value)
243
+ case type.to_sym
244
+ when :Time
245
+ Time.parse(value)
246
+ when :Date
247
+ Date.parse(value)
248
+ when :String
249
+ value.to_s
250
+ when :Integer
251
+ value.to_i
252
+ when :Float
253
+ value.to_f
254
+ when :Boolean
255
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
256
+ true
257
+ else
258
+ false
259
+ end
260
+ when :Object
261
+ # generic object (usually a Hash), return directly
262
+ value
263
+ when /\AArray<(?<inner_type>.+)>\z/
264
+ inner_type = Regexp.last_match[:inner_type]
265
+ value.map { |v| _deserialize(inner_type, v) }
266
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
267
+ k_type = Regexp.last_match[:k_type]
268
+ v_type = Regexp.last_match[:v_type]
269
+ {}.tap do |hash|
270
+ value.each do |k, v|
271
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
272
+ end
273
+ end
274
+ else # model
275
+ # models (e.g. Pet) or oneOf
276
+ klass = WalleeRubySdk.const_get(type)
277
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
278
+ end
279
+ end
280
+
281
+ # Returns the string representation of the object
282
+ # @return [String] String presentation of the object
283
+ def to_s
284
+ to_hash.to_s
285
+ end
286
+
287
+ # to_body is an alias to to_hash (backward compatibility)
288
+ # @return [Hash] Returns the object in the form of hash
289
+ def to_body
290
+ to_hash
291
+ end
292
+
293
+ # Returns the object in the form of hash
294
+ # @return [Hash] Returns the object in the form of hash
295
+ def to_hash
296
+ hash = {}
297
+ self.class.attribute_map.each_pair do |attr, param|
298
+ value = self.send(attr)
299
+ if value.nil?
300
+ is_nullable = self.class.openapi_nullable.include?(attr)
301
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
302
+ end
303
+
304
+ hash[param] = _to_hash(value)
305
+ end
306
+ hash
307
+ end
308
+
309
+ # Outputs non-array value in the form of hash
310
+ # For object, use to_hash. Otherwise, just return the value
311
+ # @param [Object] value Any valid value
312
+ # @return [Hash] Returns the value in the form of hash
313
+ def _to_hash(value)
314
+ if value.is_a?(Array)
315
+ value.compact.map { |v| _to_hash(v) }
316
+ elsif value.is_a?(Hash)
317
+ {}.tap do |hash|
318
+ value.each { |k, v| hash[k] = _to_hash(v) }
319
+ end
320
+ elsif value.respond_to? :to_hash
321
+ value.to_hash
322
+ else
323
+ value
324
+ end
325
+ end
326
+
327
+ end
328
+
329
+ end
@@ -24,14 +24,14 @@ require 'date'
24
24
  require 'time'
25
25
 
26
26
  module WalleeRubySdk
27
- class ExpressCheckoutShippingMethodChangeRequest
28
- # Identifier of the selected shipping option.
29
- attr_accessor :shipping_method_id
27
+ class ExpressCheckoutSessionProcessResponse
28
+ # URL to which the shop must redirect the customer to continue the flow.
29
+ attr_accessor :redirect_url
30
30
 
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
32
32
  def self.attribute_map
33
33
  {
34
- :'shipping_method_id' => :'shippingMethodId'
34
+ :'redirect_url' => :'redirectUrl'
35
35
  }
36
36
  end
37
37
 
@@ -48,7 +48,7 @@ module WalleeRubySdk
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
- :'shipping_method_id' => :'String'
51
+ :'redirect_url' => :'String'
52
52
  }
53
53
  end
54
54
 
@@ -62,20 +62,20 @@ module WalleeRubySdk
62
62
  # @param [Hash] attributes Model attributes in the form of hash
63
63
  def initialize(attributes = {})
64
64
  if (!attributes.is_a?(Hash))
65
- fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::ExpressCheckoutShippingMethodChangeRequest` initialize method"
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::ExpressCheckoutSessionProcessResponse` initialize method"
66
66
  end
67
67
 
68
68
  # check to see if the attribute exists and convert string to symbol for hash key
69
69
  acceptable_attribute_map = self.class.acceptable_attribute_map
70
70
  attributes = attributes.each_with_object({}) { |(k, v), h|
71
71
  if (!acceptable_attribute_map.key?(k.to_sym))
72
- fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::ExpressCheckoutShippingMethodChangeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::ExpressCheckoutSessionProcessResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
73
  end
74
74
  h[k.to_sym] = v
75
75
  }
76
76
 
77
- if attributes.key?(:'shipping_method_id')
78
- self.shipping_method_id = attributes[:'shipping_method_id']
77
+ if attributes.key?(:'redirect_url')
78
+ self.redirect_url = attributes[:'redirect_url']
79
79
  end
80
80
  end
81
81
 
@@ -99,7 +99,7 @@ module WalleeRubySdk
99
99
  def ==(o)
100
100
  return true if self.equal?(o)
101
101
  self.class == o.class &&
102
- shipping_method_id == o.shipping_method_id
102
+ redirect_url == o.redirect_url
103
103
  end
104
104
 
105
105
  # @see the `==` method
@@ -111,7 +111,7 @@ module WalleeRubySdk
111
111
  # Calculates hash code according to all attributes.
112
112
  # @return [Integer] Hash code
113
113
  def hash
114
- [shipping_method_id].hash
114
+ [redirect_url].hash
115
115
  end
116
116
 
117
117
  # Builds the object from hash