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.
- checksums.yaml +4 -4
- data/Gemfile.lock +68 -19
- data/LICENSE +1 -1
- data/README.md +451 -108
- data/lib/wallee-ruby-sdk/api_client.rb +1 -1
- data/lib/wallee-ruby-sdk/models/abstract_o_auth_client_update.rb +340 -0
- data/lib/wallee-ruby-sdk/models/abstract_role_update.rb +13 -1
- data/lib/wallee-ruby-sdk/models/abstract_walleejoin_partnership.rb +330 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_preparing.rb → account_create_with_owner.rb} +63 -34
- data/lib/wallee-ruby-sdk/models/authenticated_card_data_create.rb +30 -1
- data/lib/wallee-ruby-sdk/models/bank_payment_type.rb +50 -0
- data/lib/wallee-ruby-sdk/models/basic_address.rb +266 -0
- data/lib/wallee-ruby-sdk/models/boarding_strategy_information_request.rb +247 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_session_create.rb → charge_attempt_lookup_result.rb} +16 -20
- data/lib/wallee-ruby-sdk/models/charge_attempt_projection.rb +560 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_option.rb → create_fulfillment_request.rb} +25 -50
- data/lib/wallee-ruby-sdk/models/delivery_days_range.rb +60 -0
- data/lib/wallee-ruby-sdk/models/delivery_destination.rb +51 -0
- data/lib/wallee-ruby-sdk/models/dunning_case_level.rb +403 -0
- data/lib/wallee-ruby-sdk/models/dunning_case_level_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/dunning_case_level_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_session_state.rb → dunning_case_level_state.rb} +7 -7
- data/lib/wallee-ruby-sdk/models/extended_rest_o_auth_client.rb +425 -0
- data/lib/wallee-ruby-sdk/models/fulfillment.rb +428 -0
- data/lib/wallee-ruby-sdk/models/fulfillment_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/fulfillment_state.rb +52 -0
- data/lib/wallee-ruby-sdk/models/identity_info.rb +279 -0
- data/lib/wallee-ruby-sdk/models/invoice_processor.rb +51 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link.rb +278 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_wallet_type.rb → invoice_reconciliation_record_type.rb} +3 -3
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement.rb +463 -0
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
- data/lib/wallee-ruby-sdk/models/legal_form.rb +83 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_data_dto.rb +275 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_state.rb +50 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_status_dto.rb +284 -0
- data/lib/wallee-ruby-sdk/models/merchant_bank_details_dto.rb +253 -0
- data/lib/wallee-ruby-sdk/models/merchant_company_details_dto.rb +331 -0
- data/lib/wallee-ruby-sdk/models/merchant_contract_revenue_dto.rb +261 -0
- data/lib/wallee-ruby-sdk/models/merchant_ecommerce_details_dto.rb +348 -0
- data/lib/wallee-ruby-sdk/models/merchant_payment_channels_dto.rb +263 -0
- data/lib/wallee-ruby-sdk/models/merchant_related_persons_dto.rb +243 -0
- data/lib/wallee-ruby-sdk/models/o_auth_client.rb +397 -0
- data/lib/wallee-ruby-sdk/models/o_auth_client_create.rb +365 -0
- data/lib/wallee-ruby-sdk/models/{user_space_role_list_response.rb → o_auth_client_list_response.rb} +4 -4
- data/lib/wallee-ruby-sdk/models/o_auth_client_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/o_auth_client_update.rb +374 -0
- data/lib/wallee-ruby-sdk/models/o_auth_consent.rb +321 -0
- data/lib/wallee-ruby-sdk/models/{user_account_role_list_response.rb → o_auth_consent_list_response.rb} +4 -4
- data/lib/wallee-ruby-sdk/models/o_auth_consent_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/{user_account_role.rb → o_auth_user.rb} +56 -29
- data/lib/wallee-ruby-sdk/models/{express_checkout_create_response.rb → payment_facilitator_pricing_profile_dto.rb} +16 -16
- data/lib/wallee-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
- data/lib/wallee-ruby-sdk/models/payment_initiation_advice_file.rb +337 -0
- data/lib/wallee-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal.rb +37 -1
- data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +1 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
- data/lib/wallee-ruby-sdk/models/payout_account_info.rb +257 -0
- data/lib/wallee-ruby-sdk/models/person_salutation.rb +54 -0
- data/lib/wallee-ruby-sdk/models/pricing_history_dto.rb +266 -0
- data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +11 -1
- data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/refund.rb +13 -1
- data/lib/wallee-ruby-sdk/models/refund_create.rb +13 -1
- data/lib/wallee-ruby-sdk/models/refund_days_range.rb +51 -0
- data/lib/wallee-ruby-sdk/models/refund_percentage_range.rb +56 -0
- data/lib/wallee-ruby-sdk/models/related_person.rb +329 -0
- data/lib/wallee-ruby-sdk/models/representative_info.rb +239 -0
- data/lib/wallee-ruby-sdk/models/rest_member.rb +284 -0
- data/lib/wallee-ruby-sdk/models/{user_space_role.rb → rest_o_auth_client_secret.rb} +38 -37
- data/lib/wallee-ruby-sdk/models/{express_checkout_session.rb → rest_o_auth_client_secret_created.rb} +27 -52
- data/lib/wallee-ruby-sdk/models/role.rb +13 -1
- data/lib/wallee-ruby-sdk/models/role_create.rb +13 -1
- data/lib/wallee-ruby-sdk/models/{abstract_payment_terminal_update.rb → role_ref.rb} +18 -27
- data/lib/wallee-ruby-sdk/models/role_update.rb +13 -1
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +15 -230
- data/lib/wallee-ruby-sdk/models/scope.rb +28 -16
- data/lib/wallee-ruby-sdk/models/secret_key_state.rb +51 -0
- data/lib/wallee-ruby-sdk/models/setter.rb +618 -0
- data/lib/wallee-ruby-sdk/models/sole_proprietor_ownership_type.rb +51 -0
- data/lib/wallee-ruby-sdk/models/sole_proprietorship_info.rb +261 -0
- data/lib/wallee-ruby-sdk/models/state_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
- data/lib/wallee-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
- data/lib/wallee-ruby-sdk/models/subscription_component_group_configuration_request.rb +249 -0
- data/lib/wallee-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
- data/lib/wallee-ruby-sdk/models/subscription_product_dto.rb +239 -0
- data/lib/wallee-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
- data/lib/wallee-ruby-sdk/models/tracking_number_request.rb +230 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion.rb +13 -1
- data/lib/wallee-ruby-sdk/models/transaction_completion_details.rb +26 -4
- data/lib/wallee-ruby-sdk/models/transaction_overview.rb +1144 -0
- data/lib/wallee-ruby-sdk/models/transaction_projection.rb +1135 -0
- data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +2 -1
- data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +266 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership.rb +357 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
- data/lib/wallee-ruby-sdk/models/wallet_type.rb +40 -1
- data/lib/wallee-ruby-sdk/models/web_ui_account_theme.rb +230 -0
- data/lib/wallee-ruby-sdk/service/accounts_service.rb +16 -9
- data/lib/wallee-ruby-sdk/service/analytics_queries_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/bank_accounts_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
- data/lib/wallee-ruby-sdk/service/charge_attempts_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/charge_flows_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/consumed_resources_service.rb +1 -1
- data/lib/wallee-ruby-sdk/service/countries_service.rb +15 -6
- data/lib/wallee-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/customer_addresses_service.rb +7 -7
- data/lib/wallee-ruby-sdk/service/customer_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/customers_service.rb +11 -11
- data/lib/wallee-ruby-sdk/service/debt_collection_cases_service.rb +12 -12
- data/lib/wallee-ruby-sdk/service/debt_collector_configurations_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/delivery_indications_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/document_templates_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
- data/lib/wallee-ruby-sdk/service/dunning_cases_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/dunning_flows_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/fulfillments_service.rb +355 -0
- data/lib/wallee-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
- data/lib/wallee-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
- data/lib/wallee-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
- data/lib/wallee-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
- data/lib/wallee-ruby-sdk/service/join_partnership_service.rb +586 -0
- data/lib/wallee-ruby-sdk/service/manual_tasks_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/members_service.rb +215 -0
- data/lib/wallee-ruby-sdk/service/merchant_applications_service.rb +334 -0
- data/lib/wallee-ruby-sdk/service/o_auth_clients_service.rb +611 -0
- data/lib/wallee-ruby-sdk/service/o_auth_consents_service.rb +332 -0
- data/lib/wallee-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/payment_links_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
- data/lib/wallee-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/payment_terminals_service.rb +475 -22
- data/lib/wallee-ruby-sdk/service/payment_web_apps_service.rb +11 -11
- data/lib/wallee-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/refund_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/refunds_service.rb +7 -7
- data/lib/wallee-ruby-sdk/service/spaces_service.rb +10 -3
- data/lib/wallee-ruby-sdk/service/subscribers_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_charges_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/subscription_metrics_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_components_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
- data/lib/wallee-ruby-sdk/service/subscription_products_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscription_versions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscriptions_service.rb +13 -13
- data/lib/wallee-ruby-sdk/service/terminal_locations_service.rb +276 -0
- data/lib/wallee-ruby-sdk/service/token_versions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/tokens_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/transaction_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/transaction_completions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/transaction_invoices_service.rb +86 -8
- data/lib/wallee-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/transaction_voids_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/transactions_service.rb +179 -37
- data/lib/wallee-ruby-sdk/service/web_apps_service.rb +2 -2
- data/lib/wallee-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
- data/lib/wallee-ruby-sdk/service/webhook_listeners_service.rb +9 -9
- data/lib/wallee-ruby-sdk/service/webhook_urls_service.rb +9 -9
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/lib/wallee-ruby-sdk.rb +115 -17
- data/test/test_querying.rb +11 -0
- metadata +117 -19
- data/lib/wallee-ruby-sdk/service/application_users_roles_service.rb +0 -478
- data/lib/wallee-ruby-sdk/service/express_checkout_service.rb +0 -107
- data/lib/wallee-ruby-sdk/service/human_users_roles_service.rb +0 -478
- data/lib/wallee-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
|
@@ -0,0 +1,1144 @@
|
|
|
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 TransactionOverview
|
|
28
|
+
attr_accessor :parent
|
|
29
|
+
|
|
30
|
+
# The total amount that was settled, in the transaction's currency.
|
|
31
|
+
attr_accessor :total_settled_amount
|
|
32
|
+
|
|
33
|
+
# Allows to link the transaction to the data collected from the customer's device.
|
|
34
|
+
attr_accessor :device_session_identifier
|
|
35
|
+
|
|
36
|
+
# The date and time when the processing of the transaction was started.
|
|
37
|
+
attr_accessor :processing_on
|
|
38
|
+
|
|
39
|
+
# The merchant's reference used to identify the invoice.
|
|
40
|
+
attr_accessor :invoice_merchant_reference
|
|
41
|
+
|
|
42
|
+
# The language that is linked to the object.
|
|
43
|
+
attr_accessor :language
|
|
44
|
+
|
|
45
|
+
# The date and time when the transaction was created.
|
|
46
|
+
attr_accessor :confirmed_on
|
|
47
|
+
|
|
48
|
+
# The line items purchased by the customer.
|
|
49
|
+
attr_accessor :line_items
|
|
50
|
+
|
|
51
|
+
# The 'Accept Language' header of the customer's web browser.
|
|
52
|
+
attr_accessor :accept_language_header
|
|
53
|
+
|
|
54
|
+
# Whether Java is enabled on the customer's web browser.
|
|
55
|
+
attr_accessor :java_enabled
|
|
56
|
+
|
|
57
|
+
# The ID of the user the transaction was confirmed by.
|
|
58
|
+
attr_accessor :confirmed_by
|
|
59
|
+
|
|
60
|
+
attr_accessor :payment_connector_configuration
|
|
61
|
+
|
|
62
|
+
# A unique identifier for the object.
|
|
63
|
+
attr_accessor :id
|
|
64
|
+
|
|
65
|
+
attr_accessor :state
|
|
66
|
+
|
|
67
|
+
# The window width of the customer's web browser.
|
|
68
|
+
attr_accessor :window_width
|
|
69
|
+
|
|
70
|
+
# The payment method configurations that can be used to authorize the transaction.
|
|
71
|
+
attr_accessor :allowed_payment_method_configurations
|
|
72
|
+
|
|
73
|
+
attr_accessor :group
|
|
74
|
+
|
|
75
|
+
# Whether the customer can make further payment attempts if the first one has failed. Default is true.
|
|
76
|
+
attr_accessor :charge_retry_enabled
|
|
77
|
+
|
|
78
|
+
# The 'Accept' header of the customer's web browser.
|
|
79
|
+
attr_accessor :accept_header
|
|
80
|
+
|
|
81
|
+
# The 'User Agent' header of the customer's web browser.
|
|
82
|
+
attr_accessor :user_agent_header
|
|
83
|
+
|
|
84
|
+
# The name of the shipping method used to ship the products.
|
|
85
|
+
attr_accessor :shipping_method
|
|
86
|
+
|
|
87
|
+
# The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
|
|
88
|
+
attr_accessor :planned_purge_date
|
|
89
|
+
|
|
90
|
+
# The URL to redirect the customer back to after they successfully authenticated their payment.
|
|
91
|
+
attr_accessor :success_url
|
|
92
|
+
|
|
93
|
+
# The customer's time zone, which affects how dates and times are formatted when communicating with the customer.
|
|
94
|
+
attr_accessor :time_zone
|
|
95
|
+
|
|
96
|
+
# The ID of the space view this object is linked to.
|
|
97
|
+
attr_accessor :space_view_id
|
|
98
|
+
|
|
99
|
+
# The message that can be displayed to the customer explaining why the transaction failed, in the customer's language.
|
|
100
|
+
attr_accessor :user_failure_message
|
|
101
|
+
|
|
102
|
+
attr_accessor :completion_behavior
|
|
103
|
+
|
|
104
|
+
# The version is used for optimistic locking and incremented whenever the object is updated.
|
|
105
|
+
attr_accessor :version
|
|
106
|
+
|
|
107
|
+
# The country determined from the IP address of the customer's device.
|
|
108
|
+
attr_accessor :internet_protocol_address_country
|
|
109
|
+
|
|
110
|
+
# The ID of the space this object belongs to.
|
|
111
|
+
attr_accessor :linked_space_id
|
|
112
|
+
|
|
113
|
+
# This date and time when the decision was made as to whether the order should be shipped.
|
|
114
|
+
attr_accessor :delivery_decision_made_on
|
|
115
|
+
|
|
116
|
+
attr_accessor :authorization_environment
|
|
117
|
+
|
|
118
|
+
# Whether the transaction can be confirmed automatically or whether this must be done explicitly via the API. Default is true.
|
|
119
|
+
attr_accessor :auto_confirmation_enabled
|
|
120
|
+
|
|
121
|
+
attr_accessor :failure_reason
|
|
122
|
+
|
|
123
|
+
# The total of all fees charged, in the transaction's currency.
|
|
124
|
+
attr_accessor :total_applied_fees
|
|
125
|
+
|
|
126
|
+
attr_accessor :customers_presence
|
|
127
|
+
|
|
128
|
+
# The date and time when the transaction failed.
|
|
129
|
+
attr_accessor :failed_on
|
|
130
|
+
|
|
131
|
+
# The total amount that was refunded, in the transaction's currency.
|
|
132
|
+
attr_accessor :refunded_amount
|
|
133
|
+
|
|
134
|
+
# The sum of all line item prices including taxes in the transaction's currency.
|
|
135
|
+
attr_accessor :authorization_amount
|
|
136
|
+
|
|
137
|
+
# The screen width of the customer's web browser.
|
|
138
|
+
attr_accessor :screen_width
|
|
139
|
+
|
|
140
|
+
attr_accessor :environment_selection_strategy
|
|
141
|
+
|
|
142
|
+
# The customer's email address.
|
|
143
|
+
attr_accessor :customer_email_address
|
|
144
|
+
|
|
145
|
+
# The window height of the customer's web browser.
|
|
146
|
+
attr_accessor :window_height
|
|
147
|
+
|
|
148
|
+
attr_accessor :tokenization_mode
|
|
149
|
+
|
|
150
|
+
# The date and time when the transaction must be authorized, otherwise it will canceled.
|
|
151
|
+
attr_accessor :authorization_timeout_on
|
|
152
|
+
|
|
153
|
+
# The payment method brands that can be used to authorize the transaction.
|
|
154
|
+
attr_accessor :allowed_payment_method_brands
|
|
155
|
+
|
|
156
|
+
# The date and time when the object was created.
|
|
157
|
+
attr_accessor :created_on
|
|
158
|
+
|
|
159
|
+
# Allow to store additional information about the object.
|
|
160
|
+
attr_accessor :meta_data
|
|
161
|
+
|
|
162
|
+
# Whether email sending is deactivated for the transaction. Default is false.
|
|
163
|
+
attr_accessor :emails_disabled
|
|
164
|
+
|
|
165
|
+
attr_accessor :user_interface_type
|
|
166
|
+
|
|
167
|
+
# The unique identifier of the customer in the external system.
|
|
168
|
+
attr_accessor :customer_id
|
|
169
|
+
|
|
170
|
+
# The three-letter code (ISO 4217 format) of the transaction's currency.
|
|
171
|
+
attr_accessor :currency
|
|
172
|
+
|
|
173
|
+
# The merchant's reference used to identify the transaction.
|
|
174
|
+
attr_accessor :merchant_reference
|
|
175
|
+
|
|
176
|
+
# The sales channel through which the transaction was placed.
|
|
177
|
+
attr_accessor :authorization_sales_channel
|
|
178
|
+
|
|
179
|
+
# The number of years the transaction is kept after its authorization.
|
|
180
|
+
attr_accessor :years_to_keep
|
|
181
|
+
|
|
182
|
+
# The total amount that was completed, in the transaction's currency.
|
|
183
|
+
attr_accessor :completed_amount
|
|
184
|
+
|
|
185
|
+
# The screen height of the customer's web browser.
|
|
186
|
+
attr_accessor :screen_height
|
|
187
|
+
|
|
188
|
+
# The IP address of the customer's device.
|
|
189
|
+
attr_accessor :internet_protocol_address
|
|
190
|
+
|
|
191
|
+
attr_accessor :terminal
|
|
192
|
+
|
|
193
|
+
# The date and time when the transaction reaches its end of live. No further actions can be carried out at this time.
|
|
194
|
+
attr_accessor :end_of_life
|
|
195
|
+
|
|
196
|
+
attr_accessor :token
|
|
197
|
+
|
|
198
|
+
attr_accessor :environment
|
|
199
|
+
|
|
200
|
+
# The screen color depth of the customer's web browser.
|
|
201
|
+
attr_accessor :screen_color_depth
|
|
202
|
+
|
|
203
|
+
# The ID of the user the transaction was created by.
|
|
204
|
+
attr_accessor :created_by
|
|
205
|
+
|
|
206
|
+
# The date and time when the transaction was completed.
|
|
207
|
+
attr_accessor :completed_on
|
|
208
|
+
|
|
209
|
+
# The date and time when the transaction is completed automatically.
|
|
210
|
+
attr_accessor :completion_timeout_on
|
|
211
|
+
|
|
212
|
+
attr_accessor :shipping_address
|
|
213
|
+
|
|
214
|
+
attr_accessor :billing_address
|
|
215
|
+
|
|
216
|
+
# The date and time when the transaction was authorized.
|
|
217
|
+
attr_accessor :authorized_on
|
|
218
|
+
|
|
219
|
+
# The URL to redirect the customer back to after they canceled or failed to authenticated their payment.
|
|
220
|
+
attr_accessor :failed_url
|
|
221
|
+
|
|
222
|
+
attr_accessor :successful_charge_attempt
|
|
223
|
+
|
|
224
|
+
class EnumAttributeValidator
|
|
225
|
+
attr_reader :datatype
|
|
226
|
+
attr_reader :allowable_values
|
|
227
|
+
|
|
228
|
+
def initialize(datatype, allowable_values)
|
|
229
|
+
@allowable_values = allowable_values.map do |value|
|
|
230
|
+
case datatype.to_s
|
|
231
|
+
when /Integer/i
|
|
232
|
+
value.to_i
|
|
233
|
+
when /Float/i
|
|
234
|
+
value.to_f
|
|
235
|
+
else
|
|
236
|
+
value
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
def valid?(value)
|
|
242
|
+
!value || allowable_values.include?(value)
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
247
|
+
def self.attribute_map
|
|
248
|
+
{
|
|
249
|
+
:'parent' => :'parent',
|
|
250
|
+
:'total_settled_amount' => :'totalSettledAmount',
|
|
251
|
+
:'device_session_identifier' => :'deviceSessionIdentifier',
|
|
252
|
+
:'processing_on' => :'processingOn',
|
|
253
|
+
:'invoice_merchant_reference' => :'invoiceMerchantReference',
|
|
254
|
+
:'language' => :'language',
|
|
255
|
+
:'confirmed_on' => :'confirmedOn',
|
|
256
|
+
:'line_items' => :'lineItems',
|
|
257
|
+
:'accept_language_header' => :'acceptLanguageHeader',
|
|
258
|
+
:'java_enabled' => :'javaEnabled',
|
|
259
|
+
:'confirmed_by' => :'confirmedBy',
|
|
260
|
+
:'payment_connector_configuration' => :'paymentConnectorConfiguration',
|
|
261
|
+
:'id' => :'id',
|
|
262
|
+
:'state' => :'state',
|
|
263
|
+
:'window_width' => :'windowWidth',
|
|
264
|
+
:'allowed_payment_method_configurations' => :'allowedPaymentMethodConfigurations',
|
|
265
|
+
:'group' => :'group',
|
|
266
|
+
:'charge_retry_enabled' => :'chargeRetryEnabled',
|
|
267
|
+
:'accept_header' => :'acceptHeader',
|
|
268
|
+
:'user_agent_header' => :'userAgentHeader',
|
|
269
|
+
:'shipping_method' => :'shippingMethod',
|
|
270
|
+
:'planned_purge_date' => :'plannedPurgeDate',
|
|
271
|
+
:'success_url' => :'successUrl',
|
|
272
|
+
:'time_zone' => :'timeZone',
|
|
273
|
+
:'space_view_id' => :'spaceViewId',
|
|
274
|
+
:'user_failure_message' => :'userFailureMessage',
|
|
275
|
+
:'completion_behavior' => :'completionBehavior',
|
|
276
|
+
:'version' => :'version',
|
|
277
|
+
:'internet_protocol_address_country' => :'internetProtocolAddressCountry',
|
|
278
|
+
:'linked_space_id' => :'linkedSpaceId',
|
|
279
|
+
:'delivery_decision_made_on' => :'deliveryDecisionMadeOn',
|
|
280
|
+
:'authorization_environment' => :'authorizationEnvironment',
|
|
281
|
+
:'auto_confirmation_enabled' => :'autoConfirmationEnabled',
|
|
282
|
+
:'failure_reason' => :'failureReason',
|
|
283
|
+
:'total_applied_fees' => :'totalAppliedFees',
|
|
284
|
+
:'customers_presence' => :'customersPresence',
|
|
285
|
+
:'failed_on' => :'failedOn',
|
|
286
|
+
:'refunded_amount' => :'refundedAmount',
|
|
287
|
+
:'authorization_amount' => :'authorizationAmount',
|
|
288
|
+
:'screen_width' => :'screenWidth',
|
|
289
|
+
:'environment_selection_strategy' => :'environmentSelectionStrategy',
|
|
290
|
+
:'customer_email_address' => :'customerEmailAddress',
|
|
291
|
+
:'window_height' => :'windowHeight',
|
|
292
|
+
:'tokenization_mode' => :'tokenizationMode',
|
|
293
|
+
:'authorization_timeout_on' => :'authorizationTimeoutOn',
|
|
294
|
+
:'allowed_payment_method_brands' => :'allowedPaymentMethodBrands',
|
|
295
|
+
:'created_on' => :'createdOn',
|
|
296
|
+
:'meta_data' => :'metaData',
|
|
297
|
+
:'emails_disabled' => :'emailsDisabled',
|
|
298
|
+
:'user_interface_type' => :'userInterfaceType',
|
|
299
|
+
:'customer_id' => :'customerId',
|
|
300
|
+
:'currency' => :'currency',
|
|
301
|
+
:'merchant_reference' => :'merchantReference',
|
|
302
|
+
:'authorization_sales_channel' => :'authorizationSalesChannel',
|
|
303
|
+
:'years_to_keep' => :'yearsToKeep',
|
|
304
|
+
:'completed_amount' => :'completedAmount',
|
|
305
|
+
:'screen_height' => :'screenHeight',
|
|
306
|
+
:'internet_protocol_address' => :'internetProtocolAddress',
|
|
307
|
+
:'terminal' => :'terminal',
|
|
308
|
+
:'end_of_life' => :'endOfLife',
|
|
309
|
+
:'token' => :'token',
|
|
310
|
+
:'environment' => :'environment',
|
|
311
|
+
:'screen_color_depth' => :'screenColorDepth',
|
|
312
|
+
:'created_by' => :'createdBy',
|
|
313
|
+
:'completed_on' => :'completedOn',
|
|
314
|
+
:'completion_timeout_on' => :'completionTimeoutOn',
|
|
315
|
+
:'shipping_address' => :'shippingAddress',
|
|
316
|
+
:'billing_address' => :'billingAddress',
|
|
317
|
+
:'authorized_on' => :'authorizedOn',
|
|
318
|
+
:'failed_url' => :'failedUrl',
|
|
319
|
+
:'successful_charge_attempt' => :'successfulChargeAttempt'
|
|
320
|
+
}
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# Returns attribute mapping this model knows about
|
|
324
|
+
def self.acceptable_attribute_map
|
|
325
|
+
attribute_map
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# Returns all the JSON keys this model knows about
|
|
329
|
+
def self.acceptable_attributes
|
|
330
|
+
acceptable_attribute_map.values
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# Attribute type mapping.
|
|
334
|
+
def self.openapi_types
|
|
335
|
+
{
|
|
336
|
+
:'parent' => :'Transaction',
|
|
337
|
+
:'total_settled_amount' => :'Float',
|
|
338
|
+
:'device_session_identifier' => :'String',
|
|
339
|
+
:'processing_on' => :'Time',
|
|
340
|
+
:'invoice_merchant_reference' => :'String',
|
|
341
|
+
:'language' => :'String',
|
|
342
|
+
:'confirmed_on' => :'Time',
|
|
343
|
+
:'line_items' => :'Array<LineItem>',
|
|
344
|
+
:'accept_language_header' => :'String',
|
|
345
|
+
:'java_enabled' => :'Boolean',
|
|
346
|
+
:'confirmed_by' => :'Integer',
|
|
347
|
+
:'payment_connector_configuration' => :'PaymentConnectorConfiguration',
|
|
348
|
+
:'id' => :'Integer',
|
|
349
|
+
:'state' => :'TransactionState',
|
|
350
|
+
:'window_width' => :'String',
|
|
351
|
+
:'allowed_payment_method_configurations' => :'Array<Integer>',
|
|
352
|
+
:'group' => :'TransactionGroup',
|
|
353
|
+
:'charge_retry_enabled' => :'Boolean',
|
|
354
|
+
:'accept_header' => :'String',
|
|
355
|
+
:'user_agent_header' => :'String',
|
|
356
|
+
:'shipping_method' => :'String',
|
|
357
|
+
:'planned_purge_date' => :'Time',
|
|
358
|
+
:'success_url' => :'String',
|
|
359
|
+
:'time_zone' => :'String',
|
|
360
|
+
:'space_view_id' => :'Integer',
|
|
361
|
+
:'user_failure_message' => :'String',
|
|
362
|
+
:'completion_behavior' => :'TransactionCompletionBehavior',
|
|
363
|
+
:'version' => :'Integer',
|
|
364
|
+
:'internet_protocol_address_country' => :'String',
|
|
365
|
+
:'linked_space_id' => :'Integer',
|
|
366
|
+
:'delivery_decision_made_on' => :'Time',
|
|
367
|
+
:'authorization_environment' => :'ChargeAttemptEnvironment',
|
|
368
|
+
:'auto_confirmation_enabled' => :'Boolean',
|
|
369
|
+
:'failure_reason' => :'FailureReason',
|
|
370
|
+
:'total_applied_fees' => :'Float',
|
|
371
|
+
:'customers_presence' => :'CustomersPresence',
|
|
372
|
+
:'failed_on' => :'Time',
|
|
373
|
+
:'refunded_amount' => :'Float',
|
|
374
|
+
:'authorization_amount' => :'Float',
|
|
375
|
+
:'screen_width' => :'String',
|
|
376
|
+
:'environment_selection_strategy' => :'TransactionEnvironmentSelectionStrategy',
|
|
377
|
+
:'customer_email_address' => :'String',
|
|
378
|
+
:'window_height' => :'String',
|
|
379
|
+
:'tokenization_mode' => :'TokenizationMode',
|
|
380
|
+
:'authorization_timeout_on' => :'Time',
|
|
381
|
+
:'allowed_payment_method_brands' => :'Array<Integer>',
|
|
382
|
+
:'created_on' => :'Time',
|
|
383
|
+
:'meta_data' => :'Hash<String, String>',
|
|
384
|
+
:'emails_disabled' => :'Boolean',
|
|
385
|
+
:'user_interface_type' => :'TransactionUserInterfaceType',
|
|
386
|
+
:'customer_id' => :'String',
|
|
387
|
+
:'currency' => :'String',
|
|
388
|
+
:'merchant_reference' => :'String',
|
|
389
|
+
:'authorization_sales_channel' => :'Integer',
|
|
390
|
+
:'years_to_keep' => :'Integer',
|
|
391
|
+
:'completed_amount' => :'Float',
|
|
392
|
+
:'screen_height' => :'String',
|
|
393
|
+
:'internet_protocol_address' => :'String',
|
|
394
|
+
:'terminal' => :'PaymentTerminal',
|
|
395
|
+
:'end_of_life' => :'Time',
|
|
396
|
+
:'token' => :'Token',
|
|
397
|
+
:'environment' => :'Environment',
|
|
398
|
+
:'screen_color_depth' => :'String',
|
|
399
|
+
:'created_by' => :'Integer',
|
|
400
|
+
:'completed_on' => :'Time',
|
|
401
|
+
:'completion_timeout_on' => :'Time',
|
|
402
|
+
:'shipping_address' => :'Address',
|
|
403
|
+
:'billing_address' => :'Address',
|
|
404
|
+
:'authorized_on' => :'Time',
|
|
405
|
+
:'failed_url' => :'String',
|
|
406
|
+
:'successful_charge_attempt' => :'ChargeAttemptProjection'
|
|
407
|
+
}
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
# List of attributes with nullable: true
|
|
411
|
+
def self.openapi_nullable
|
|
412
|
+
Set.new([
|
|
413
|
+
])
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# List of class defined in allOf (OpenAPI v3)
|
|
417
|
+
def self.openapi_all_of
|
|
418
|
+
[
|
|
419
|
+
:'Transaction'
|
|
420
|
+
]
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Initializes the object
|
|
424
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
425
|
+
def initialize(attributes = {})
|
|
426
|
+
if (!attributes.is_a?(Hash))
|
|
427
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::TransactionOverview` initialize method"
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
431
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
432
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
433
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
434
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::TransactionOverview`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
435
|
+
end
|
|
436
|
+
h[k.to_sym] = v
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
if attributes.key?(:'parent')
|
|
440
|
+
self.parent = attributes[:'parent']
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
if attributes.key?(:'total_settled_amount')
|
|
444
|
+
self.total_settled_amount = attributes[:'total_settled_amount']
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
if attributes.key?(:'device_session_identifier')
|
|
448
|
+
self.device_session_identifier = attributes[:'device_session_identifier']
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
if attributes.key?(:'processing_on')
|
|
452
|
+
self.processing_on = attributes[:'processing_on']
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
if attributes.key?(:'invoice_merchant_reference')
|
|
456
|
+
self.invoice_merchant_reference = attributes[:'invoice_merchant_reference']
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
if attributes.key?(:'language')
|
|
460
|
+
self.language = attributes[:'language']
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
if attributes.key?(:'confirmed_on')
|
|
464
|
+
self.confirmed_on = attributes[:'confirmed_on']
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
if attributes.key?(:'line_items')
|
|
468
|
+
if (value = attributes[:'line_items']).is_a?(Array)
|
|
469
|
+
self.line_items = value
|
|
470
|
+
end
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
if attributes.key?(:'accept_language_header')
|
|
474
|
+
self.accept_language_header = attributes[:'accept_language_header']
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
if attributes.key?(:'java_enabled')
|
|
478
|
+
self.java_enabled = attributes[:'java_enabled']
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
if attributes.key?(:'confirmed_by')
|
|
482
|
+
self.confirmed_by = attributes[:'confirmed_by']
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
if attributes.key?(:'payment_connector_configuration')
|
|
486
|
+
self.payment_connector_configuration = attributes[:'payment_connector_configuration']
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
if attributes.key?(:'id')
|
|
490
|
+
self.id = attributes[:'id']
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
if attributes.key?(:'state')
|
|
494
|
+
self.state = attributes[:'state']
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
if attributes.key?(:'window_width')
|
|
498
|
+
self.window_width = attributes[:'window_width']
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
if attributes.key?(:'allowed_payment_method_configurations')
|
|
502
|
+
if (value = attributes[:'allowed_payment_method_configurations']).is_a?(Array)
|
|
503
|
+
self.allowed_payment_method_configurations = value
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
if attributes.key?(:'group')
|
|
508
|
+
self.group = attributes[:'group']
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
if attributes.key?(:'charge_retry_enabled')
|
|
512
|
+
self.charge_retry_enabled = attributes[:'charge_retry_enabled']
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
if attributes.key?(:'accept_header')
|
|
516
|
+
self.accept_header = attributes[:'accept_header']
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
if attributes.key?(:'user_agent_header')
|
|
520
|
+
self.user_agent_header = attributes[:'user_agent_header']
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
if attributes.key?(:'shipping_method')
|
|
524
|
+
self.shipping_method = attributes[:'shipping_method']
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
if attributes.key?(:'planned_purge_date')
|
|
528
|
+
self.planned_purge_date = attributes[:'planned_purge_date']
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
if attributes.key?(:'success_url')
|
|
532
|
+
self.success_url = attributes[:'success_url']
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
if attributes.key?(:'time_zone')
|
|
536
|
+
self.time_zone = attributes[:'time_zone']
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
if attributes.key?(:'space_view_id')
|
|
540
|
+
self.space_view_id = attributes[:'space_view_id']
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
if attributes.key?(:'user_failure_message')
|
|
544
|
+
self.user_failure_message = attributes[:'user_failure_message']
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
if attributes.key?(:'completion_behavior')
|
|
548
|
+
self.completion_behavior = attributes[:'completion_behavior']
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
if attributes.key?(:'version')
|
|
552
|
+
self.version = attributes[:'version']
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
if attributes.key?(:'internet_protocol_address_country')
|
|
556
|
+
self.internet_protocol_address_country = attributes[:'internet_protocol_address_country']
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
if attributes.key?(:'linked_space_id')
|
|
560
|
+
self.linked_space_id = attributes[:'linked_space_id']
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
if attributes.key?(:'delivery_decision_made_on')
|
|
564
|
+
self.delivery_decision_made_on = attributes[:'delivery_decision_made_on']
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
if attributes.key?(:'authorization_environment')
|
|
568
|
+
self.authorization_environment = attributes[:'authorization_environment']
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
if attributes.key?(:'auto_confirmation_enabled')
|
|
572
|
+
self.auto_confirmation_enabled = attributes[:'auto_confirmation_enabled']
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
if attributes.key?(:'failure_reason')
|
|
576
|
+
self.failure_reason = attributes[:'failure_reason']
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
if attributes.key?(:'total_applied_fees')
|
|
580
|
+
self.total_applied_fees = attributes[:'total_applied_fees']
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
if attributes.key?(:'customers_presence')
|
|
584
|
+
self.customers_presence = attributes[:'customers_presence']
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
if attributes.key?(:'failed_on')
|
|
588
|
+
self.failed_on = attributes[:'failed_on']
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
if attributes.key?(:'refunded_amount')
|
|
592
|
+
self.refunded_amount = attributes[:'refunded_amount']
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
if attributes.key?(:'authorization_amount')
|
|
596
|
+
self.authorization_amount = attributes[:'authorization_amount']
|
|
597
|
+
end
|
|
598
|
+
|
|
599
|
+
if attributes.key?(:'screen_width')
|
|
600
|
+
self.screen_width = attributes[:'screen_width']
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
if attributes.key?(:'environment_selection_strategy')
|
|
604
|
+
self.environment_selection_strategy = attributes[:'environment_selection_strategy']
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
if attributes.key?(:'customer_email_address')
|
|
608
|
+
self.customer_email_address = attributes[:'customer_email_address']
|
|
609
|
+
end
|
|
610
|
+
|
|
611
|
+
if attributes.key?(:'window_height')
|
|
612
|
+
self.window_height = attributes[:'window_height']
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
if attributes.key?(:'tokenization_mode')
|
|
616
|
+
self.tokenization_mode = attributes[:'tokenization_mode']
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
if attributes.key?(:'authorization_timeout_on')
|
|
620
|
+
self.authorization_timeout_on = attributes[:'authorization_timeout_on']
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
if attributes.key?(:'allowed_payment_method_brands')
|
|
624
|
+
if (value = attributes[:'allowed_payment_method_brands']).is_a?(Array)
|
|
625
|
+
self.allowed_payment_method_brands = value
|
|
626
|
+
end
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
if attributes.key?(:'created_on')
|
|
630
|
+
self.created_on = attributes[:'created_on']
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
if attributes.key?(:'meta_data')
|
|
634
|
+
if (value = attributes[:'meta_data']).is_a?(Hash)
|
|
635
|
+
self.meta_data = value
|
|
636
|
+
end
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
if attributes.key?(:'emails_disabled')
|
|
640
|
+
self.emails_disabled = attributes[:'emails_disabled']
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
if attributes.key?(:'user_interface_type')
|
|
644
|
+
self.user_interface_type = attributes[:'user_interface_type']
|
|
645
|
+
end
|
|
646
|
+
|
|
647
|
+
if attributes.key?(:'customer_id')
|
|
648
|
+
self.customer_id = attributes[:'customer_id']
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
if attributes.key?(:'currency')
|
|
652
|
+
self.currency = attributes[:'currency']
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
if attributes.key?(:'merchant_reference')
|
|
656
|
+
self.merchant_reference = attributes[:'merchant_reference']
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
if attributes.key?(:'authorization_sales_channel')
|
|
660
|
+
self.authorization_sales_channel = attributes[:'authorization_sales_channel']
|
|
661
|
+
end
|
|
662
|
+
|
|
663
|
+
if attributes.key?(:'years_to_keep')
|
|
664
|
+
self.years_to_keep = attributes[:'years_to_keep']
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
if attributes.key?(:'completed_amount')
|
|
668
|
+
self.completed_amount = attributes[:'completed_amount']
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
if attributes.key?(:'screen_height')
|
|
672
|
+
self.screen_height = attributes[:'screen_height']
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
if attributes.key?(:'internet_protocol_address')
|
|
676
|
+
self.internet_protocol_address = attributes[:'internet_protocol_address']
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
if attributes.key?(:'terminal')
|
|
680
|
+
self.terminal = attributes[:'terminal']
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
if attributes.key?(:'end_of_life')
|
|
684
|
+
self.end_of_life = attributes[:'end_of_life']
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
if attributes.key?(:'token')
|
|
688
|
+
self.token = attributes[:'token']
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
if attributes.key?(:'environment')
|
|
692
|
+
self.environment = attributes[:'environment']
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
if attributes.key?(:'screen_color_depth')
|
|
696
|
+
self.screen_color_depth = attributes[:'screen_color_depth']
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
if attributes.key?(:'created_by')
|
|
700
|
+
self.created_by = attributes[:'created_by']
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
if attributes.key?(:'completed_on')
|
|
704
|
+
self.completed_on = attributes[:'completed_on']
|
|
705
|
+
end
|
|
706
|
+
|
|
707
|
+
if attributes.key?(:'completion_timeout_on')
|
|
708
|
+
self.completion_timeout_on = attributes[:'completion_timeout_on']
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
if attributes.key?(:'shipping_address')
|
|
712
|
+
self.shipping_address = attributes[:'shipping_address']
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
if attributes.key?(:'billing_address')
|
|
716
|
+
self.billing_address = attributes[:'billing_address']
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
if attributes.key?(:'authorized_on')
|
|
720
|
+
self.authorized_on = attributes[:'authorized_on']
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
if attributes.key?(:'failed_url')
|
|
724
|
+
self.failed_url = attributes[:'failed_url']
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
if attributes.key?(:'successful_charge_attempt')
|
|
728
|
+
self.successful_charge_attempt = attributes[:'successful_charge_attempt']
|
|
729
|
+
end
|
|
730
|
+
end
|
|
731
|
+
|
|
732
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
733
|
+
# @return Array for valid properties with the reasons
|
|
734
|
+
def list_invalid_properties
|
|
735
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
736
|
+
invalid_properties = Array.new
|
|
737
|
+
if !@device_session_identifier.nil? && @device_session_identifier.to_s.length > 40
|
|
738
|
+
invalid_properties.push('invalid value for "device_session_identifier", the character length must be smaller than or equal to 40.')
|
|
739
|
+
end
|
|
740
|
+
|
|
741
|
+
if !@device_session_identifier.nil? && @device_session_identifier.to_s.length < 10
|
|
742
|
+
invalid_properties.push('invalid value for "device_session_identifier", the character length must be great than or equal to 10.')
|
|
743
|
+
end
|
|
744
|
+
|
|
745
|
+
pattern = Regexp.new(/([a-zA-Z0-9_-])*/)
|
|
746
|
+
if !@device_session_identifier.nil? && @device_session_identifier !~ pattern
|
|
747
|
+
invalid_properties.push("invalid value for \"device_session_identifier\", must conform to the pattern #{pattern}.")
|
|
748
|
+
end
|
|
749
|
+
|
|
750
|
+
if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
|
|
751
|
+
invalid_properties.push('invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.')
|
|
752
|
+
end
|
|
753
|
+
|
|
754
|
+
pattern = Regexp.new(/[ \x20-\x7e]*/)
|
|
755
|
+
if !@invoice_merchant_reference.nil? && @invoice_merchant_reference !~ pattern
|
|
756
|
+
invalid_properties.push("invalid value for \"invoice_merchant_reference\", must conform to the pattern #{pattern}.")
|
|
757
|
+
end
|
|
758
|
+
|
|
759
|
+
if !@shipping_method.nil? && @shipping_method.to_s.length > 200
|
|
760
|
+
invalid_properties.push('invalid value for "shipping_method", the character length must be smaller than or equal to 200.')
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
if !@success_url.nil? && @success_url.to_s.length > 2000
|
|
764
|
+
invalid_properties.push('invalid value for "success_url", the character length must be smaller than or equal to 2000.')
|
|
765
|
+
end
|
|
766
|
+
|
|
767
|
+
if !@success_url.nil? && @success_url.to_s.length < 9
|
|
768
|
+
invalid_properties.push('invalid value for "success_url", the character length must be great than or equal to 9.')
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
if !@customer_email_address.nil? && @customer_email_address.to_s.length > 254
|
|
772
|
+
invalid_properties.push('invalid value for "customer_email_address", the character length must be smaller than or equal to 254.')
|
|
773
|
+
end
|
|
774
|
+
|
|
775
|
+
if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
|
|
776
|
+
invalid_properties.push('invalid value for "merchant_reference", the character length must be smaller than or equal to 100.')
|
|
777
|
+
end
|
|
778
|
+
|
|
779
|
+
pattern = Regexp.new(/[ \x20-\x7e]*/)
|
|
780
|
+
if !@merchant_reference.nil? && @merchant_reference !~ pattern
|
|
781
|
+
invalid_properties.push("invalid value for \"merchant_reference\", must conform to the pattern #{pattern}.")
|
|
782
|
+
end
|
|
783
|
+
|
|
784
|
+
if !@failed_url.nil? && @failed_url.to_s.length > 2000
|
|
785
|
+
invalid_properties.push('invalid value for "failed_url", the character length must be smaller than or equal to 2000.')
|
|
786
|
+
end
|
|
787
|
+
|
|
788
|
+
if !@failed_url.nil? && @failed_url.to_s.length < 9
|
|
789
|
+
invalid_properties.push('invalid value for "failed_url", the character length must be great than or equal to 9.')
|
|
790
|
+
end
|
|
791
|
+
|
|
792
|
+
invalid_properties
|
|
793
|
+
end
|
|
794
|
+
|
|
795
|
+
# Check to see if the all the properties in the model are valid
|
|
796
|
+
# @return true if the model is valid
|
|
797
|
+
def valid?
|
|
798
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
799
|
+
return false if !@device_session_identifier.nil? && @device_session_identifier.to_s.length > 40
|
|
800
|
+
return false if !@device_session_identifier.nil? && @device_session_identifier.to_s.length < 10
|
|
801
|
+
return false if !@device_session_identifier.nil? && @device_session_identifier !~ Regexp.new(/([a-zA-Z0-9_-])*/)
|
|
802
|
+
return false if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
|
|
803
|
+
return false if !@invoice_merchant_reference.nil? && @invoice_merchant_reference !~ Regexp.new(/[ \x20-\x7e]*/)
|
|
804
|
+
return false if !@shipping_method.nil? && @shipping_method.to_s.length > 200
|
|
805
|
+
return false if !@success_url.nil? && @success_url.to_s.length > 2000
|
|
806
|
+
return false if !@success_url.nil? && @success_url.to_s.length < 9
|
|
807
|
+
return false if !@customer_email_address.nil? && @customer_email_address.to_s.length > 254
|
|
808
|
+
return false if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
|
|
809
|
+
return false if !@merchant_reference.nil? && @merchant_reference !~ Regexp.new(/[ \x20-\x7e]*/)
|
|
810
|
+
return false if !@failed_url.nil? && @failed_url.to_s.length > 2000
|
|
811
|
+
return false if !@failed_url.nil? && @failed_url.to_s.length < 9
|
|
812
|
+
true
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
# Custom attribute writer method with validation
|
|
816
|
+
# @param [Object] device_session_identifier Value to be assigned
|
|
817
|
+
def device_session_identifier=(device_session_identifier)
|
|
818
|
+
if device_session_identifier.nil?
|
|
819
|
+
fail ArgumentError, 'device_session_identifier cannot be nil'
|
|
820
|
+
end
|
|
821
|
+
|
|
822
|
+
if device_session_identifier.to_s.length > 40
|
|
823
|
+
fail ArgumentError, 'invalid value for "device_session_identifier", the character length must be smaller than or equal to 40.'
|
|
824
|
+
end
|
|
825
|
+
|
|
826
|
+
if device_session_identifier.to_s.length < 10
|
|
827
|
+
fail ArgumentError, 'invalid value for "device_session_identifier", the character length must be great than or equal to 10.'
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
pattern = Regexp.new(/([a-zA-Z0-9_-])*/)
|
|
831
|
+
if device_session_identifier !~ pattern
|
|
832
|
+
fail ArgumentError, "invalid value for \"device_session_identifier\", must conform to the pattern #{pattern}."
|
|
833
|
+
end
|
|
834
|
+
|
|
835
|
+
@device_session_identifier = device_session_identifier
|
|
836
|
+
end
|
|
837
|
+
|
|
838
|
+
# Custom attribute writer method with validation
|
|
839
|
+
# @param [Object] invoice_merchant_reference Value to be assigned
|
|
840
|
+
def invoice_merchant_reference=(invoice_merchant_reference)
|
|
841
|
+
if invoice_merchant_reference.nil?
|
|
842
|
+
fail ArgumentError, 'invoice_merchant_reference cannot be nil'
|
|
843
|
+
end
|
|
844
|
+
|
|
845
|
+
if invoice_merchant_reference.to_s.length > 100
|
|
846
|
+
fail ArgumentError, 'invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.'
|
|
847
|
+
end
|
|
848
|
+
|
|
849
|
+
pattern = Regexp.new(/[ \x20-\x7e]*/)
|
|
850
|
+
if invoice_merchant_reference !~ pattern
|
|
851
|
+
fail ArgumentError, "invalid value for \"invoice_merchant_reference\", must conform to the pattern #{pattern}."
|
|
852
|
+
end
|
|
853
|
+
|
|
854
|
+
@invoice_merchant_reference = invoice_merchant_reference
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
# Custom attribute writer method with validation
|
|
858
|
+
# @param [Object] shipping_method Value to be assigned
|
|
859
|
+
def shipping_method=(shipping_method)
|
|
860
|
+
if shipping_method.nil?
|
|
861
|
+
fail ArgumentError, 'shipping_method cannot be nil'
|
|
862
|
+
end
|
|
863
|
+
|
|
864
|
+
if shipping_method.to_s.length > 200
|
|
865
|
+
fail ArgumentError, 'invalid value for "shipping_method", the character length must be smaller than or equal to 200.'
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
@shipping_method = shipping_method
|
|
869
|
+
end
|
|
870
|
+
|
|
871
|
+
# Custom attribute writer method with validation
|
|
872
|
+
# @param [Object] success_url Value to be assigned
|
|
873
|
+
def success_url=(success_url)
|
|
874
|
+
if success_url.nil?
|
|
875
|
+
fail ArgumentError, 'success_url cannot be nil'
|
|
876
|
+
end
|
|
877
|
+
|
|
878
|
+
if success_url.to_s.length > 2000
|
|
879
|
+
fail ArgumentError, 'invalid value for "success_url", the character length must be smaller than or equal to 2000.'
|
|
880
|
+
end
|
|
881
|
+
|
|
882
|
+
if success_url.to_s.length < 9
|
|
883
|
+
fail ArgumentError, 'invalid value for "success_url", the character length must be great than or equal to 9.'
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
@success_url = success_url
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
# Custom attribute writer method with validation
|
|
890
|
+
# @param [Object] customer_email_address Value to be assigned
|
|
891
|
+
def customer_email_address=(customer_email_address)
|
|
892
|
+
if customer_email_address.nil?
|
|
893
|
+
fail ArgumentError, 'customer_email_address cannot be nil'
|
|
894
|
+
end
|
|
895
|
+
|
|
896
|
+
if customer_email_address.to_s.length > 254
|
|
897
|
+
fail ArgumentError, 'invalid value for "customer_email_address", the character length must be smaller than or equal to 254.'
|
|
898
|
+
end
|
|
899
|
+
|
|
900
|
+
@customer_email_address = customer_email_address
|
|
901
|
+
end
|
|
902
|
+
|
|
903
|
+
# Custom attribute writer method with validation
|
|
904
|
+
# @param [Object] merchant_reference Value to be assigned
|
|
905
|
+
def merchant_reference=(merchant_reference)
|
|
906
|
+
if merchant_reference.nil?
|
|
907
|
+
fail ArgumentError, 'merchant_reference cannot be nil'
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
if merchant_reference.to_s.length > 100
|
|
911
|
+
fail ArgumentError, 'invalid value for "merchant_reference", the character length must be smaller than or equal to 100.'
|
|
912
|
+
end
|
|
913
|
+
|
|
914
|
+
pattern = Regexp.new(/[ \x20-\x7e]*/)
|
|
915
|
+
if merchant_reference !~ pattern
|
|
916
|
+
fail ArgumentError, "invalid value for \"merchant_reference\", must conform to the pattern #{pattern}."
|
|
917
|
+
end
|
|
918
|
+
|
|
919
|
+
@merchant_reference = merchant_reference
|
|
920
|
+
end
|
|
921
|
+
|
|
922
|
+
# Custom attribute writer method with validation
|
|
923
|
+
# @param [Object] failed_url Value to be assigned
|
|
924
|
+
def failed_url=(failed_url)
|
|
925
|
+
if failed_url.nil?
|
|
926
|
+
fail ArgumentError, 'failed_url cannot be nil'
|
|
927
|
+
end
|
|
928
|
+
|
|
929
|
+
if failed_url.to_s.length > 2000
|
|
930
|
+
fail ArgumentError, 'invalid value for "failed_url", the character length must be smaller than or equal to 2000.'
|
|
931
|
+
end
|
|
932
|
+
|
|
933
|
+
if failed_url.to_s.length < 9
|
|
934
|
+
fail ArgumentError, 'invalid value for "failed_url", the character length must be great than or equal to 9.'
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
@failed_url = failed_url
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
# Checks equality by comparing each attribute.
|
|
941
|
+
# @param [Object] Object to be compared
|
|
942
|
+
def ==(o)
|
|
943
|
+
return true if self.equal?(o)
|
|
944
|
+
self.class == o.class &&
|
|
945
|
+
parent == o.parent &&
|
|
946
|
+
total_settled_amount == o.total_settled_amount &&
|
|
947
|
+
device_session_identifier == o.device_session_identifier &&
|
|
948
|
+
processing_on == o.processing_on &&
|
|
949
|
+
invoice_merchant_reference == o.invoice_merchant_reference &&
|
|
950
|
+
language == o.language &&
|
|
951
|
+
confirmed_on == o.confirmed_on &&
|
|
952
|
+
line_items == o.line_items &&
|
|
953
|
+
accept_language_header == o.accept_language_header &&
|
|
954
|
+
java_enabled == o.java_enabled &&
|
|
955
|
+
confirmed_by == o.confirmed_by &&
|
|
956
|
+
payment_connector_configuration == o.payment_connector_configuration &&
|
|
957
|
+
id == o.id &&
|
|
958
|
+
state == o.state &&
|
|
959
|
+
window_width == o.window_width &&
|
|
960
|
+
allowed_payment_method_configurations == o.allowed_payment_method_configurations &&
|
|
961
|
+
group == o.group &&
|
|
962
|
+
charge_retry_enabled == o.charge_retry_enabled &&
|
|
963
|
+
accept_header == o.accept_header &&
|
|
964
|
+
user_agent_header == o.user_agent_header &&
|
|
965
|
+
shipping_method == o.shipping_method &&
|
|
966
|
+
planned_purge_date == o.planned_purge_date &&
|
|
967
|
+
success_url == o.success_url &&
|
|
968
|
+
time_zone == o.time_zone &&
|
|
969
|
+
space_view_id == o.space_view_id &&
|
|
970
|
+
user_failure_message == o.user_failure_message &&
|
|
971
|
+
completion_behavior == o.completion_behavior &&
|
|
972
|
+
version == o.version &&
|
|
973
|
+
internet_protocol_address_country == o.internet_protocol_address_country &&
|
|
974
|
+
linked_space_id == o.linked_space_id &&
|
|
975
|
+
delivery_decision_made_on == o.delivery_decision_made_on &&
|
|
976
|
+
authorization_environment == o.authorization_environment &&
|
|
977
|
+
auto_confirmation_enabled == o.auto_confirmation_enabled &&
|
|
978
|
+
failure_reason == o.failure_reason &&
|
|
979
|
+
total_applied_fees == o.total_applied_fees &&
|
|
980
|
+
customers_presence == o.customers_presence &&
|
|
981
|
+
failed_on == o.failed_on &&
|
|
982
|
+
refunded_amount == o.refunded_amount &&
|
|
983
|
+
authorization_amount == o.authorization_amount &&
|
|
984
|
+
screen_width == o.screen_width &&
|
|
985
|
+
environment_selection_strategy == o.environment_selection_strategy &&
|
|
986
|
+
customer_email_address == o.customer_email_address &&
|
|
987
|
+
window_height == o.window_height &&
|
|
988
|
+
tokenization_mode == o.tokenization_mode &&
|
|
989
|
+
authorization_timeout_on == o.authorization_timeout_on &&
|
|
990
|
+
allowed_payment_method_brands == o.allowed_payment_method_brands &&
|
|
991
|
+
created_on == o.created_on &&
|
|
992
|
+
meta_data == o.meta_data &&
|
|
993
|
+
emails_disabled == o.emails_disabled &&
|
|
994
|
+
user_interface_type == o.user_interface_type &&
|
|
995
|
+
customer_id == o.customer_id &&
|
|
996
|
+
currency == o.currency &&
|
|
997
|
+
merchant_reference == o.merchant_reference &&
|
|
998
|
+
authorization_sales_channel == o.authorization_sales_channel &&
|
|
999
|
+
years_to_keep == o.years_to_keep &&
|
|
1000
|
+
completed_amount == o.completed_amount &&
|
|
1001
|
+
screen_height == o.screen_height &&
|
|
1002
|
+
internet_protocol_address == o.internet_protocol_address &&
|
|
1003
|
+
terminal == o.terminal &&
|
|
1004
|
+
end_of_life == o.end_of_life &&
|
|
1005
|
+
token == o.token &&
|
|
1006
|
+
environment == o.environment &&
|
|
1007
|
+
screen_color_depth == o.screen_color_depth &&
|
|
1008
|
+
created_by == o.created_by &&
|
|
1009
|
+
completed_on == o.completed_on &&
|
|
1010
|
+
completion_timeout_on == o.completion_timeout_on &&
|
|
1011
|
+
shipping_address == o.shipping_address &&
|
|
1012
|
+
billing_address == o.billing_address &&
|
|
1013
|
+
authorized_on == o.authorized_on &&
|
|
1014
|
+
failed_url == o.failed_url &&
|
|
1015
|
+
successful_charge_attempt == o.successful_charge_attempt
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
# @see the `==` method
|
|
1019
|
+
# @param [Object] Object to be compared
|
|
1020
|
+
def eql?(o)
|
|
1021
|
+
self == o
|
|
1022
|
+
end
|
|
1023
|
+
|
|
1024
|
+
# Calculates hash code according to all attributes.
|
|
1025
|
+
# @return [Integer] Hash code
|
|
1026
|
+
def hash
|
|
1027
|
+
[parent, total_settled_amount, device_session_identifier, processing_on, invoice_merchant_reference, language, confirmed_on, line_items, accept_language_header, java_enabled, confirmed_by, payment_connector_configuration, id, state, window_width, allowed_payment_method_configurations, group, charge_retry_enabled, accept_header, user_agent_header, shipping_method, planned_purge_date, success_url, time_zone, space_view_id, user_failure_message, completion_behavior, version, internet_protocol_address_country, linked_space_id, delivery_decision_made_on, authorization_environment, auto_confirmation_enabled, failure_reason, total_applied_fees, customers_presence, failed_on, refunded_amount, authorization_amount, screen_width, environment_selection_strategy, customer_email_address, window_height, tokenization_mode, authorization_timeout_on, allowed_payment_method_brands, created_on, meta_data, emails_disabled, user_interface_type, customer_id, currency, merchant_reference, authorization_sales_channel, years_to_keep, completed_amount, screen_height, internet_protocol_address, terminal, end_of_life, token, environment, screen_color_depth, created_by, completed_on, completion_timeout_on, shipping_address, billing_address, authorized_on, failed_url, successful_charge_attempt].hash
|
|
1028
|
+
end
|
|
1029
|
+
|
|
1030
|
+
# Builds the object from hash
|
|
1031
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
1032
|
+
# @return [Object] Returns the model itself
|
|
1033
|
+
def self.build_from_hash(attributes)
|
|
1034
|
+
return nil unless attributes.is_a?(Hash)
|
|
1035
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
1036
|
+
transformed_hash = {}
|
|
1037
|
+
openapi_types.each_pair do |key, type|
|
|
1038
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
1039
|
+
transformed_hash["#{key}"] = nil
|
|
1040
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
1041
|
+
# check to ensure the input is an array given that the attribute
|
|
1042
|
+
# is documented as an array but the input is not
|
|
1043
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
1044
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
1045
|
+
end
|
|
1046
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
1047
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
1048
|
+
end
|
|
1049
|
+
end
|
|
1050
|
+
new(transformed_hash)
|
|
1051
|
+
end
|
|
1052
|
+
|
|
1053
|
+
# Deserializes the data based on type
|
|
1054
|
+
# @param string type Data type
|
|
1055
|
+
# @param string value Value to be deserialized
|
|
1056
|
+
# @return [Object] Deserialized data
|
|
1057
|
+
def self._deserialize(type, value)
|
|
1058
|
+
case type.to_sym
|
|
1059
|
+
when :Time
|
|
1060
|
+
Time.parse(value)
|
|
1061
|
+
when :Date
|
|
1062
|
+
Date.parse(value)
|
|
1063
|
+
when :String
|
|
1064
|
+
value.to_s
|
|
1065
|
+
when :Integer
|
|
1066
|
+
value.to_i
|
|
1067
|
+
when :Float
|
|
1068
|
+
value.to_f
|
|
1069
|
+
when :Boolean
|
|
1070
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
1071
|
+
true
|
|
1072
|
+
else
|
|
1073
|
+
false
|
|
1074
|
+
end
|
|
1075
|
+
when :Object
|
|
1076
|
+
# generic object (usually a Hash), return directly
|
|
1077
|
+
value
|
|
1078
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
1079
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
1080
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
1081
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
1082
|
+
k_type = Regexp.last_match[:k_type]
|
|
1083
|
+
v_type = Regexp.last_match[:v_type]
|
|
1084
|
+
{}.tap do |hash|
|
|
1085
|
+
value.each do |k, v|
|
|
1086
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
1087
|
+
end
|
|
1088
|
+
end
|
|
1089
|
+
else # model
|
|
1090
|
+
# models (e.g. Pet) or oneOf
|
|
1091
|
+
klass = WalleeRubySdk.const_get(type)
|
|
1092
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
1093
|
+
end
|
|
1094
|
+
end
|
|
1095
|
+
|
|
1096
|
+
# Returns the string representation of the object
|
|
1097
|
+
# @return [String] String presentation of the object
|
|
1098
|
+
def to_s
|
|
1099
|
+
to_hash.to_s
|
|
1100
|
+
end
|
|
1101
|
+
|
|
1102
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
1103
|
+
# @return [Hash] Returns the object in the form of hash
|
|
1104
|
+
def to_body
|
|
1105
|
+
to_hash
|
|
1106
|
+
end
|
|
1107
|
+
|
|
1108
|
+
# Returns the object in the form of hash
|
|
1109
|
+
# @return [Hash] Returns the object in the form of hash
|
|
1110
|
+
def to_hash
|
|
1111
|
+
hash = {}
|
|
1112
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
1113
|
+
value = self.send(attr)
|
|
1114
|
+
if value.nil?
|
|
1115
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
1116
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
1117
|
+
end
|
|
1118
|
+
|
|
1119
|
+
hash[param] = _to_hash(value)
|
|
1120
|
+
end
|
|
1121
|
+
hash
|
|
1122
|
+
end
|
|
1123
|
+
|
|
1124
|
+
# Outputs non-array value in the form of hash
|
|
1125
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
1126
|
+
# @param [Object] value Any valid value
|
|
1127
|
+
# @return [Hash] Returns the value in the form of hash
|
|
1128
|
+
def _to_hash(value)
|
|
1129
|
+
if value.is_a?(Array)
|
|
1130
|
+
value.compact.map { |v| _to_hash(v) }
|
|
1131
|
+
elsif value.is_a?(Hash)
|
|
1132
|
+
{}.tap do |hash|
|
|
1133
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
1134
|
+
end
|
|
1135
|
+
elsif value.respond_to? :to_hash
|
|
1136
|
+
value.to_hash
|
|
1137
|
+
else
|
|
1138
|
+
value
|
|
1139
|
+
end
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1142
|
+
end
|
|
1143
|
+
|
|
1144
|
+
end
|