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,560 @@
|
|
|
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 ChargeAttemptProjection
|
|
28
|
+
# The language that is linked to the object.
|
|
29
|
+
attr_accessor :language
|
|
30
|
+
|
|
31
|
+
# The sales channel through which the charge attempt was made.
|
|
32
|
+
attr_accessor :sales_channel
|
|
33
|
+
|
|
34
|
+
# The date and time when the object was created.
|
|
35
|
+
attr_accessor :created_on
|
|
36
|
+
|
|
37
|
+
# Whether a new token version is being initialized.
|
|
38
|
+
attr_accessor :initializing_token_version
|
|
39
|
+
|
|
40
|
+
attr_accessor :token_version
|
|
41
|
+
|
|
42
|
+
# The date and time when the charge attempt succeeded.
|
|
43
|
+
attr_accessor :succeeded_on
|
|
44
|
+
|
|
45
|
+
# A unique identifier for the object.
|
|
46
|
+
attr_accessor :id
|
|
47
|
+
|
|
48
|
+
attr_accessor :state
|
|
49
|
+
|
|
50
|
+
# The payment transaction this object is linked to.
|
|
51
|
+
attr_accessor :linked_transaction
|
|
52
|
+
|
|
53
|
+
# The URL to redirect the customer to after payment processing.
|
|
54
|
+
attr_accessor :redirection_url
|
|
55
|
+
|
|
56
|
+
attr_accessor :charge
|
|
57
|
+
|
|
58
|
+
attr_accessor :wallet
|
|
59
|
+
|
|
60
|
+
# The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
|
|
61
|
+
attr_accessor :planned_purge_date
|
|
62
|
+
|
|
63
|
+
# The time zone that this object is associated with.
|
|
64
|
+
attr_accessor :time_zone
|
|
65
|
+
|
|
66
|
+
# The ID of the space view this object is linked to.
|
|
67
|
+
attr_accessor :space_view_id
|
|
68
|
+
|
|
69
|
+
attr_accessor :terminal
|
|
70
|
+
|
|
71
|
+
# The message that can be displayed to the customer explaining why the charge attempt failed, in the customer's language.
|
|
72
|
+
attr_accessor :user_failure_message
|
|
73
|
+
|
|
74
|
+
attr_accessor :completion_behavior
|
|
75
|
+
|
|
76
|
+
# The version is used for optimistic locking and incremented whenever the object is updated.
|
|
77
|
+
attr_accessor :version
|
|
78
|
+
|
|
79
|
+
# The labels providing additional information about the object.
|
|
80
|
+
attr_accessor :labels
|
|
81
|
+
|
|
82
|
+
# The ID of the space this object belongs to.
|
|
83
|
+
attr_accessor :linked_space_id
|
|
84
|
+
|
|
85
|
+
# The date and time when the object will expire.
|
|
86
|
+
attr_accessor :timeout_on
|
|
87
|
+
|
|
88
|
+
attr_accessor :environment
|
|
89
|
+
|
|
90
|
+
attr_accessor :invocation
|
|
91
|
+
|
|
92
|
+
attr_accessor :connector_configuration
|
|
93
|
+
|
|
94
|
+
# The date and time when the next update of the object's state is planned.
|
|
95
|
+
attr_accessor :next_update_on
|
|
96
|
+
|
|
97
|
+
attr_accessor :failure_reason
|
|
98
|
+
|
|
99
|
+
attr_accessor :customers_presence
|
|
100
|
+
|
|
101
|
+
# The date and time when the charge attempt failed.
|
|
102
|
+
attr_accessor :failed_on
|
|
103
|
+
|
|
104
|
+
class EnumAttributeValidator
|
|
105
|
+
attr_reader :datatype
|
|
106
|
+
attr_reader :allowable_values
|
|
107
|
+
|
|
108
|
+
def initialize(datatype, allowable_values)
|
|
109
|
+
@allowable_values = allowable_values.map do |value|
|
|
110
|
+
case datatype.to_s
|
|
111
|
+
when /Integer/i
|
|
112
|
+
value.to_i
|
|
113
|
+
when /Float/i
|
|
114
|
+
value.to_f
|
|
115
|
+
else
|
|
116
|
+
value
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
def valid?(value)
|
|
122
|
+
!value || allowable_values.include?(value)
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
127
|
+
def self.attribute_map
|
|
128
|
+
{
|
|
129
|
+
:'language' => :'language',
|
|
130
|
+
:'sales_channel' => :'salesChannel',
|
|
131
|
+
:'created_on' => :'createdOn',
|
|
132
|
+
:'initializing_token_version' => :'initializingTokenVersion',
|
|
133
|
+
:'token_version' => :'tokenVersion',
|
|
134
|
+
:'succeeded_on' => :'succeededOn',
|
|
135
|
+
:'id' => :'id',
|
|
136
|
+
:'state' => :'state',
|
|
137
|
+
:'linked_transaction' => :'linkedTransaction',
|
|
138
|
+
:'redirection_url' => :'redirectionUrl',
|
|
139
|
+
:'charge' => :'charge',
|
|
140
|
+
:'wallet' => :'wallet',
|
|
141
|
+
:'planned_purge_date' => :'plannedPurgeDate',
|
|
142
|
+
:'time_zone' => :'timeZone',
|
|
143
|
+
:'space_view_id' => :'spaceViewId',
|
|
144
|
+
:'terminal' => :'terminal',
|
|
145
|
+
:'user_failure_message' => :'userFailureMessage',
|
|
146
|
+
:'completion_behavior' => :'completionBehavior',
|
|
147
|
+
:'version' => :'version',
|
|
148
|
+
:'labels' => :'labels',
|
|
149
|
+
:'linked_space_id' => :'linkedSpaceId',
|
|
150
|
+
:'timeout_on' => :'timeoutOn',
|
|
151
|
+
:'environment' => :'environment',
|
|
152
|
+
:'invocation' => :'invocation',
|
|
153
|
+
:'connector_configuration' => :'connectorConfiguration',
|
|
154
|
+
:'next_update_on' => :'nextUpdateOn',
|
|
155
|
+
:'failure_reason' => :'failureReason',
|
|
156
|
+
:'customers_presence' => :'customersPresence',
|
|
157
|
+
:'failed_on' => :'failedOn'
|
|
158
|
+
}
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Returns attribute mapping this model knows about
|
|
162
|
+
def self.acceptable_attribute_map
|
|
163
|
+
attribute_map
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Returns all the JSON keys this model knows about
|
|
167
|
+
def self.acceptable_attributes
|
|
168
|
+
acceptable_attribute_map.values
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Attribute type mapping.
|
|
172
|
+
def self.openapi_types
|
|
173
|
+
{
|
|
174
|
+
:'language' => :'String',
|
|
175
|
+
:'sales_channel' => :'Integer',
|
|
176
|
+
:'created_on' => :'Time',
|
|
177
|
+
:'initializing_token_version' => :'Boolean',
|
|
178
|
+
:'token_version' => :'TokenVersion',
|
|
179
|
+
:'succeeded_on' => :'Time',
|
|
180
|
+
:'id' => :'Integer',
|
|
181
|
+
:'state' => :'ChargeAttemptState',
|
|
182
|
+
:'linked_transaction' => :'Integer',
|
|
183
|
+
:'redirection_url' => :'String',
|
|
184
|
+
:'charge' => :'Charge',
|
|
185
|
+
:'wallet' => :'WalletType',
|
|
186
|
+
:'planned_purge_date' => :'Time',
|
|
187
|
+
:'time_zone' => :'String',
|
|
188
|
+
:'space_view_id' => :'Integer',
|
|
189
|
+
:'terminal' => :'PaymentTerminal',
|
|
190
|
+
:'user_failure_message' => :'String',
|
|
191
|
+
:'completion_behavior' => :'TransactionCompletionBehavior',
|
|
192
|
+
:'version' => :'Integer',
|
|
193
|
+
:'labels' => :'Array<Label>',
|
|
194
|
+
:'linked_space_id' => :'Integer',
|
|
195
|
+
:'timeout_on' => :'Time',
|
|
196
|
+
:'environment' => :'ChargeAttemptEnvironment',
|
|
197
|
+
:'invocation' => :'ConnectorInvocation',
|
|
198
|
+
:'connector_configuration' => :'PaymentConnectorConfiguration',
|
|
199
|
+
:'next_update_on' => :'Time',
|
|
200
|
+
:'failure_reason' => :'FailureReason',
|
|
201
|
+
:'customers_presence' => :'CustomersPresence',
|
|
202
|
+
:'failed_on' => :'Time'
|
|
203
|
+
}
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# List of attributes with nullable: true
|
|
207
|
+
def self.openapi_nullable
|
|
208
|
+
Set.new([
|
|
209
|
+
])
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# List of class defined in allOf (OpenAPI v3)
|
|
213
|
+
def self.openapi_all_of
|
|
214
|
+
[
|
|
215
|
+
:'ChargeAttempt'
|
|
216
|
+
]
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Initializes the object
|
|
220
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
221
|
+
def initialize(attributes = {})
|
|
222
|
+
if (!attributes.is_a?(Hash))
|
|
223
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::ChargeAttemptProjection` initialize method"
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
227
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
228
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
229
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
230
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::ChargeAttemptProjection`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
231
|
+
end
|
|
232
|
+
h[k.to_sym] = v
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'language')
|
|
236
|
+
self.language = attributes[:'language']
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if attributes.key?(:'sales_channel')
|
|
240
|
+
self.sales_channel = attributes[:'sales_channel']
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.key?(:'created_on')
|
|
244
|
+
self.created_on = attributes[:'created_on']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.key?(:'initializing_token_version')
|
|
248
|
+
self.initializing_token_version = attributes[:'initializing_token_version']
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
if attributes.key?(:'token_version')
|
|
252
|
+
self.token_version = attributes[:'token_version']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'succeeded_on')
|
|
256
|
+
self.succeeded_on = attributes[:'succeeded_on']
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if attributes.key?(:'id')
|
|
260
|
+
self.id = attributes[:'id']
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
if attributes.key?(:'state')
|
|
264
|
+
self.state = attributes[:'state']
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if attributes.key?(:'linked_transaction')
|
|
268
|
+
self.linked_transaction = attributes[:'linked_transaction']
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
if attributes.key?(:'redirection_url')
|
|
272
|
+
self.redirection_url = attributes[:'redirection_url']
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if attributes.key?(:'charge')
|
|
276
|
+
self.charge = attributes[:'charge']
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
if attributes.key?(:'wallet')
|
|
280
|
+
self.wallet = attributes[:'wallet']
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
if attributes.key?(:'planned_purge_date')
|
|
284
|
+
self.planned_purge_date = attributes[:'planned_purge_date']
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
if attributes.key?(:'time_zone')
|
|
288
|
+
self.time_zone = attributes[:'time_zone']
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if attributes.key?(:'space_view_id')
|
|
292
|
+
self.space_view_id = attributes[:'space_view_id']
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
if attributes.key?(:'terminal')
|
|
296
|
+
self.terminal = attributes[:'terminal']
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
if attributes.key?(:'user_failure_message')
|
|
300
|
+
self.user_failure_message = attributes[:'user_failure_message']
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
if attributes.key?(:'completion_behavior')
|
|
304
|
+
self.completion_behavior = attributes[:'completion_behavior']
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
if attributes.key?(:'version')
|
|
308
|
+
self.version = attributes[:'version']
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
if attributes.key?(:'labels')
|
|
312
|
+
if (value = attributes[:'labels']).is_a?(Array)
|
|
313
|
+
self.labels = value
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
if attributes.key?(:'linked_space_id')
|
|
318
|
+
self.linked_space_id = attributes[:'linked_space_id']
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
if attributes.key?(:'timeout_on')
|
|
322
|
+
self.timeout_on = attributes[:'timeout_on']
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
if attributes.key?(:'environment')
|
|
326
|
+
self.environment = attributes[:'environment']
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
if attributes.key?(:'invocation')
|
|
330
|
+
self.invocation = attributes[:'invocation']
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if attributes.key?(:'connector_configuration')
|
|
334
|
+
self.connector_configuration = attributes[:'connector_configuration']
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
if attributes.key?(:'next_update_on')
|
|
338
|
+
self.next_update_on = attributes[:'next_update_on']
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
if attributes.key?(:'failure_reason')
|
|
342
|
+
self.failure_reason = attributes[:'failure_reason']
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
if attributes.key?(:'customers_presence')
|
|
346
|
+
self.customers_presence = attributes[:'customers_presence']
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
if attributes.key?(:'failed_on')
|
|
350
|
+
self.failed_on = attributes[:'failed_on']
|
|
351
|
+
end
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
355
|
+
# @return Array for valid properties with the reasons
|
|
356
|
+
def list_invalid_properties
|
|
357
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
358
|
+
invalid_properties = Array.new
|
|
359
|
+
if !@user_failure_message.nil? && @user_failure_message.to_s.length > 2000
|
|
360
|
+
invalid_properties.push('invalid value for "user_failure_message", the character length must be smaller than or equal to 2000.')
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
invalid_properties
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
# Check to see if the all the properties in the model are valid
|
|
367
|
+
# @return true if the model is valid
|
|
368
|
+
def valid?
|
|
369
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
370
|
+
return false if !@user_failure_message.nil? && @user_failure_message.to_s.length > 2000
|
|
371
|
+
true
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# Custom attribute writer method with validation
|
|
375
|
+
# @param [Object] user_failure_message Value to be assigned
|
|
376
|
+
def user_failure_message=(user_failure_message)
|
|
377
|
+
if user_failure_message.nil?
|
|
378
|
+
fail ArgumentError, 'user_failure_message cannot be nil'
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
if user_failure_message.to_s.length > 2000
|
|
382
|
+
fail ArgumentError, 'invalid value for "user_failure_message", the character length must be smaller than or equal to 2000.'
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
@user_failure_message = user_failure_message
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
# Custom attribute writer method with validation
|
|
389
|
+
# @param [Object] labels Value to be assigned
|
|
390
|
+
def labels=(labels)
|
|
391
|
+
if labels.nil?
|
|
392
|
+
fail ArgumentError, 'labels cannot be nil'
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
@labels = labels
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# Checks equality by comparing each attribute.
|
|
399
|
+
# @param [Object] Object to be compared
|
|
400
|
+
def ==(o)
|
|
401
|
+
return true if self.equal?(o)
|
|
402
|
+
self.class == o.class &&
|
|
403
|
+
language == o.language &&
|
|
404
|
+
sales_channel == o.sales_channel &&
|
|
405
|
+
created_on == o.created_on &&
|
|
406
|
+
initializing_token_version == o.initializing_token_version &&
|
|
407
|
+
token_version == o.token_version &&
|
|
408
|
+
succeeded_on == o.succeeded_on &&
|
|
409
|
+
id == o.id &&
|
|
410
|
+
state == o.state &&
|
|
411
|
+
linked_transaction == o.linked_transaction &&
|
|
412
|
+
redirection_url == o.redirection_url &&
|
|
413
|
+
charge == o.charge &&
|
|
414
|
+
wallet == o.wallet &&
|
|
415
|
+
planned_purge_date == o.planned_purge_date &&
|
|
416
|
+
time_zone == o.time_zone &&
|
|
417
|
+
space_view_id == o.space_view_id &&
|
|
418
|
+
terminal == o.terminal &&
|
|
419
|
+
user_failure_message == o.user_failure_message &&
|
|
420
|
+
completion_behavior == o.completion_behavior &&
|
|
421
|
+
version == o.version &&
|
|
422
|
+
labels == o.labels &&
|
|
423
|
+
linked_space_id == o.linked_space_id &&
|
|
424
|
+
timeout_on == o.timeout_on &&
|
|
425
|
+
environment == o.environment &&
|
|
426
|
+
invocation == o.invocation &&
|
|
427
|
+
connector_configuration == o.connector_configuration &&
|
|
428
|
+
next_update_on == o.next_update_on &&
|
|
429
|
+
failure_reason == o.failure_reason &&
|
|
430
|
+
customers_presence == o.customers_presence &&
|
|
431
|
+
failed_on == o.failed_on
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
# @see the `==` method
|
|
435
|
+
# @param [Object] Object to be compared
|
|
436
|
+
def eql?(o)
|
|
437
|
+
self == o
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
# Calculates hash code according to all attributes.
|
|
441
|
+
# @return [Integer] Hash code
|
|
442
|
+
def hash
|
|
443
|
+
[language, sales_channel, created_on, initializing_token_version, token_version, succeeded_on, id, state, linked_transaction, redirection_url, charge, wallet, planned_purge_date, time_zone, space_view_id, terminal, user_failure_message, completion_behavior, version, labels, linked_space_id, timeout_on, environment, invocation, connector_configuration, next_update_on, failure_reason, customers_presence, failed_on].hash
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
# Builds the object from hash
|
|
447
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
448
|
+
# @return [Object] Returns the model itself
|
|
449
|
+
def self.build_from_hash(attributes)
|
|
450
|
+
return nil unless attributes.is_a?(Hash)
|
|
451
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
452
|
+
transformed_hash = {}
|
|
453
|
+
openapi_types.each_pair do |key, type|
|
|
454
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
455
|
+
transformed_hash["#{key}"] = nil
|
|
456
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
457
|
+
# check to ensure the input is an array given that the attribute
|
|
458
|
+
# is documented as an array but the input is not
|
|
459
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
460
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
461
|
+
end
|
|
462
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
463
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
464
|
+
end
|
|
465
|
+
end
|
|
466
|
+
new(transformed_hash)
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
# Deserializes the data based on type
|
|
470
|
+
# @param string type Data type
|
|
471
|
+
# @param string value Value to be deserialized
|
|
472
|
+
# @return [Object] Deserialized data
|
|
473
|
+
def self._deserialize(type, value)
|
|
474
|
+
case type.to_sym
|
|
475
|
+
when :Time
|
|
476
|
+
Time.parse(value)
|
|
477
|
+
when :Date
|
|
478
|
+
Date.parse(value)
|
|
479
|
+
when :String
|
|
480
|
+
value.to_s
|
|
481
|
+
when :Integer
|
|
482
|
+
value.to_i
|
|
483
|
+
when :Float
|
|
484
|
+
value.to_f
|
|
485
|
+
when :Boolean
|
|
486
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
487
|
+
true
|
|
488
|
+
else
|
|
489
|
+
false
|
|
490
|
+
end
|
|
491
|
+
when :Object
|
|
492
|
+
# generic object (usually a Hash), return directly
|
|
493
|
+
value
|
|
494
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
495
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
496
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
497
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
498
|
+
k_type = Regexp.last_match[:k_type]
|
|
499
|
+
v_type = Regexp.last_match[:v_type]
|
|
500
|
+
{}.tap do |hash|
|
|
501
|
+
value.each do |k, v|
|
|
502
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
503
|
+
end
|
|
504
|
+
end
|
|
505
|
+
else # model
|
|
506
|
+
# models (e.g. Pet) or oneOf
|
|
507
|
+
klass = WalleeRubySdk.const_get(type)
|
|
508
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
509
|
+
end
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
# Returns the string representation of the object
|
|
513
|
+
# @return [String] String presentation of the object
|
|
514
|
+
def to_s
|
|
515
|
+
to_hash.to_s
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
519
|
+
# @return [Hash] Returns the object in the form of hash
|
|
520
|
+
def to_body
|
|
521
|
+
to_hash
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
# Returns the object in the form of hash
|
|
525
|
+
# @return [Hash] Returns the object in the form of hash
|
|
526
|
+
def to_hash
|
|
527
|
+
hash = {}
|
|
528
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
529
|
+
value = self.send(attr)
|
|
530
|
+
if value.nil?
|
|
531
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
532
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
hash[param] = _to_hash(value)
|
|
536
|
+
end
|
|
537
|
+
hash
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
# Outputs non-array value in the form of hash
|
|
541
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
542
|
+
# @param [Object] value Any valid value
|
|
543
|
+
# @return [Hash] Returns the value in the form of hash
|
|
544
|
+
def _to_hash(value)
|
|
545
|
+
if value.is_a?(Array)
|
|
546
|
+
value.compact.map { |v| _to_hash(v) }
|
|
547
|
+
elsif value.is_a?(Hash)
|
|
548
|
+
{}.tap do |hash|
|
|
549
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
550
|
+
end
|
|
551
|
+
elsif value.respond_to? :to_hash
|
|
552
|
+
value.to_hash
|
|
553
|
+
else
|
|
554
|
+
value
|
|
555
|
+
end
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
end
|
|
@@ -24,38 +24,25 @@ require 'date'
|
|
|
24
24
|
require 'time'
|
|
25
25
|
|
|
26
26
|
module WalleeRubySdk
|
|
27
|
-
class
|
|
28
|
-
# Total cost of this shipping option.
|
|
27
|
+
class CreateFulfillmentRequest
|
|
29
28
|
attr_accessor :amount
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
attr_accessor :description
|
|
33
|
-
|
|
34
|
-
# Currency of the option
|
|
35
|
-
attr_accessor :currency
|
|
36
|
-
|
|
37
|
-
# Identifier of the option.
|
|
38
|
-
attr_accessor :id
|
|
30
|
+
attr_accessor :completion_id
|
|
39
31
|
|
|
40
|
-
|
|
41
|
-
attr_accessor :label
|
|
32
|
+
attr_accessor :description
|
|
42
33
|
|
|
43
|
-
|
|
44
|
-
attr_accessor :tax_amount
|
|
34
|
+
attr_accessor :external_id
|
|
45
35
|
|
|
46
|
-
|
|
47
|
-
attr_accessor :selected
|
|
36
|
+
attr_accessor :tracking_number
|
|
48
37
|
|
|
49
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
39
|
def self.attribute_map
|
|
51
40
|
{
|
|
52
41
|
:'amount' => :'amount',
|
|
42
|
+
:'completion_id' => :'completionId',
|
|
53
43
|
:'description' => :'description',
|
|
54
|
-
:'
|
|
55
|
-
:'
|
|
56
|
-
:'label' => :'label',
|
|
57
|
-
:'tax_amount' => :'taxAmount',
|
|
58
|
-
:'selected' => :'selected'
|
|
44
|
+
:'external_id' => :'externalId',
|
|
45
|
+
:'tracking_number' => :'trackingNumber'
|
|
59
46
|
}
|
|
60
47
|
end
|
|
61
48
|
|
|
@@ -73,12 +60,10 @@ module WalleeRubySdk
|
|
|
73
60
|
def self.openapi_types
|
|
74
61
|
{
|
|
75
62
|
:'amount' => :'Float',
|
|
63
|
+
:'completion_id' => :'Integer',
|
|
76
64
|
:'description' => :'String',
|
|
77
|
-
:'
|
|
78
|
-
:'
|
|
79
|
-
:'label' => :'String',
|
|
80
|
-
:'tax_amount' => :'Float',
|
|
81
|
-
:'selected' => :'Boolean'
|
|
65
|
+
:'external_id' => :'String',
|
|
66
|
+
:'tracking_number' => :'String'
|
|
82
67
|
}
|
|
83
68
|
end
|
|
84
69
|
|
|
@@ -92,14 +77,14 @@ module WalleeRubySdk
|
|
|
92
77
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
93
78
|
def initialize(attributes = {})
|
|
94
79
|
if (!attributes.is_a?(Hash))
|
|
95
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::CreateFulfillmentRequest` initialize method"
|
|
96
81
|
end
|
|
97
82
|
|
|
98
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
99
84
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
100
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
101
86
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
102
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::CreateFulfillmentRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
103
88
|
end
|
|
104
89
|
h[k.to_sym] = v
|
|
105
90
|
}
|
|
@@ -108,28 +93,20 @@ module WalleeRubySdk
|
|
|
108
93
|
self.amount = attributes[:'amount']
|
|
109
94
|
end
|
|
110
95
|
|
|
111
|
-
if attributes.key?(:'
|
|
112
|
-
self.
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
if attributes.key?(:'currency')
|
|
116
|
-
self.currency = attributes[:'currency']
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
if attributes.key?(:'id')
|
|
120
|
-
self.id = attributes[:'id']
|
|
96
|
+
if attributes.key?(:'completion_id')
|
|
97
|
+
self.completion_id = attributes[:'completion_id']
|
|
121
98
|
end
|
|
122
99
|
|
|
123
|
-
if attributes.key?(:'
|
|
124
|
-
self.
|
|
100
|
+
if attributes.key?(:'description')
|
|
101
|
+
self.description = attributes[:'description']
|
|
125
102
|
end
|
|
126
103
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
self.
|
|
104
|
+
if attributes.key?(:'external_id')
|
|
105
|
+
self.external_id = attributes[:'external_id']
|
|
129
106
|
end
|
|
130
107
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
108
|
+
if attributes.key?(:'tracking_number')
|
|
109
|
+
self.tracking_number = attributes[:'tracking_number']
|
|
133
110
|
end
|
|
134
111
|
end
|
|
135
112
|
|
|
@@ -154,12 +131,10 @@ module WalleeRubySdk
|
|
|
154
131
|
return true if self.equal?(o)
|
|
155
132
|
self.class == o.class &&
|
|
156
133
|
amount == o.amount &&
|
|
134
|
+
completion_id == o.completion_id &&
|
|
157
135
|
description == o.description &&
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
label == o.label &&
|
|
161
|
-
tax_amount == o.tax_amount &&
|
|
162
|
-
selected == o.selected
|
|
136
|
+
external_id == o.external_id &&
|
|
137
|
+
tracking_number == o.tracking_number
|
|
163
138
|
end
|
|
164
139
|
|
|
165
140
|
# @see the `==` method
|
|
@@ -171,7 +146,7 @@ module WalleeRubySdk
|
|
|
171
146
|
# Calculates hash code according to all attributes.
|
|
172
147
|
# @return [Integer] Hash code
|
|
173
148
|
def hash
|
|
174
|
-
[amount,
|
|
149
|
+
[amount, completion_id, description, external_id, tracking_number].hash
|
|
175
150
|
end
|
|
176
151
|
|
|
177
152
|
# Builds the object from hash
|