wallee-ruby-sdk 2.0.1 → 3.0.4
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 +1 -1
- data/LICENSE +1 -1
- data/README.md +3 -3
- data/lib/wallee-ruby-sdk.rb +128 -11
- data/lib/wallee-ruby-sdk/api/account_service_api.rb +35 -39
- data/lib/wallee-ruby-sdk/api/application_user_service_api.rb +35 -39
- data/lib/wallee-ruby-sdk/api/bank_account_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/card_processing_service_api.rb +18 -22
- data/lib/wallee-ruby-sdk/api/charge_attempt_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/charge_flow_level_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/api/charge_flow_service_api.rb +36 -40
- data/lib/wallee-ruby-sdk/api/condition_type_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/country_service_api.rb +5 -9
- data/lib/wallee-ruby-sdk/api/country_state_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/currency_service_api.rb +5 -9
- data/lib/wallee-ruby-sdk/api/customer_address_service_api.rb +460 -0
- data/lib/wallee-ruby-sdk/api/customer_comment_service_api.rb +522 -0
- data/lib/wallee-ruby-sdk/api/customer_service_api.rb +398 -0
- data/lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb +87 -91
- data/lib/wallee-ruby-sdk/api/debt_collector_configuration_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/debt_collector_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/delivery_indication_service_api.rb +34 -38
- data/lib/wallee-ruby-sdk/api/document_template_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/document_template_type_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/human_user_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/installment_payment_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/api/installment_payment_slice_service_api.rb +21 -25
- data/lib/wallee-ruby-sdk/api/installment_plan_calculation_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/installment_plan_configuration_service_api.rb +21 -25
- data/lib/wallee-ruby-sdk/api/installment_plan_slice_configuration_service_api.rb +21 -25
- data/lib/wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/label_description_group_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/label_description_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/language_service_api.rb +5 -9
- data/lib/wallee-ruby-sdk/api/legal_organization_form_service_api.rb +17 -21
- data/lib/wallee-ruby-sdk/api/manual_task_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/mertic_usage_service_api.rb +8 -12
- data/lib/wallee-ruby-sdk/api/payment_connector_configuration_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/payment_connector_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/payment_link_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
- data/lib/wallee-ruby-sdk/api/payment_method_configuration_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/payment_method_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/payment_processor_configuration_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/payment_processor_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/payment_terminal_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
- data/lib/wallee-ruby-sdk/api/permission_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/refund_comment_service_api.rb +49 -53
- data/lib/wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/refund_service_api.rb +56 -60
- data/lib/wallee-ruby-sdk/api/shopify_recurring_order_service_api.rb +274 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +275 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_product_service_api.rb +337 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +466 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +337 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/space_service_api.rb +35 -39
- data/lib/wallee-ruby-sdk/api/static_value_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/subscriber_service_api.rb +44 -48
- data/lib/wallee-ruby-sdk/api/subscription_affiliate_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_charge_service_api.rb +34 -38
- data/lib/wallee-ruby-sdk/api/subscription_ledger_entry_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/api/subscription_metric_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_metric_usage_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/api/subscription_period_bill_service_api.rb +26 -30
- data/lib/wallee-ruby-sdk/api/subscription_product_component_group_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_product_component_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_product_fee_tier_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_product_metered_fee_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_product_period_fee_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_product_retirement_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/api/subscription_product_service_api.rb +34 -38
- data/lib/wallee-ruby-sdk/api/subscription_product_setup_fee_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_product_version_retirement_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/api/subscription_product_version_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/subscription_service_api.rb +177 -114
- data/lib/wallee-ruby-sdk/api/subscription_suspension_service_api.rb +34 -38
- data/lib/wallee-ruby-sdk/api/subscription_version_service_api.rb +20 -24
- data/lib/wallee-ruby-sdk/api/token_service_api.rb +237 -52
- data/lib/wallee-ruby-sdk/api/token_version_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/api/transaction_comment_service_api.rb +49 -53
- data/lib/wallee-ruby-sdk/api/transaction_completion_service_api.rb +48 -52
- data/lib/wallee-ruby-sdk/api/transaction_iframe_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/transaction_invoice_comment_service_api.rb +49 -53
- data/lib/wallee-ruby-sdk/api/transaction_invoice_service_api.rb +64 -68
- data/lib/wallee-ruby-sdk/api/transaction_lightbox_service_api.rb +91 -0
- data/lib/wallee-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +6 -10
- data/lib/wallee-ruby-sdk/api/transaction_payment_page_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/transaction_service_api.rb +141 -135
- data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +161 -0
- data/lib/wallee-ruby-sdk/api/transaction_void_service_api.rb +34 -38
- data/lib/wallee-ruby-sdk/api/user_account_role_service_api.rb +21 -25
- data/lib/wallee-ruby-sdk/api/user_space_role_service_api.rb +21 -25
- data/lib/wallee-ruby-sdk/api/web_app_service_api.rb +200 -0
- data/lib/wallee-ruby-sdk/api/webhook_listener_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api/webhook_url_service_api.rb +41 -45
- data/lib/wallee-ruby-sdk/api_client.rb +9 -8
- data/lib/wallee-ruby-sdk/api_error.rb +0 -4
- data/lib/wallee-ruby-sdk/configuration.rb +2 -6
- data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +36 -6
- data/lib/wallee-ruby-sdk/models/abstract_application_user_update.rb +16 -5
- data/lib/wallee-ruby-sdk/models/abstract_customer_active.rb +312 -0
- data/lib/wallee-ruby-sdk/models/abstract_customer_address_active.rb +200 -0
- data/lib/wallee-ruby-sdk/models/abstract_customer_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_debt_collection_case_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/abstract_human_user_update.rb +61 -5
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +31 -20
- data/lib/wallee-ruby-sdk/models/abstract_refund_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
- data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +36 -6
- data/lib/wallee-ruby-sdk/models/abstract_subscriber_update.rb +46 -5
- data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +25 -5
- data/lib/wallee-ruby-sdk/models/abstract_subscription_metric_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +27 -6
- data/lib/wallee-ruby-sdk/models/abstract_token_update.rb +31 -5
- data/lib/wallee-ruby-sdk/models/abstract_transaction_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +120 -6
- data/lib/wallee-ruby-sdk/models/abstract_webhook_listener_update.rb +16 -5
- data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +40 -5
- data/lib/wallee-ruby-sdk/models/account.rb +76 -6
- data/lib/wallee-ruby-sdk/models/account_create.rb +36 -6
- data/lib/wallee-ruby-sdk/models/account_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/account_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/account_update.rb +36 -6
- data/lib/wallee-ruby-sdk/models/address.rb +236 -15
- data/lib/wallee-ruby-sdk/models/address_create.rb +236 -15
- data/lib/wallee-ruby-sdk/models/application_user.rb +16 -5
- data/lib/wallee-ruby-sdk/models/application_user_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/application_user_create_with_mac_key.rb +16 -5
- data/lib/wallee-ruby-sdk/models/application_user_update.rb +16 -5
- data/lib/wallee-ruby-sdk/models/authenticated_card_data.rb +221 -0
- data/lib/wallee-ruby-sdk/models/authenticated_card_data_create.rb +358 -0
- data/lib/wallee-ruby-sdk/models/bank_account.rb +291 -0
- data/lib/wallee-ruby-sdk/models/bank_account_environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_device_state.rb → bank_account_state.rb} +6 -11
- data/lib/wallee-ruby-sdk/models/bank_account_type.rb +227 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction.rb +387 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_source.rb +215 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_state.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/card_authentication_response.rb +38 -0
- data/lib/wallee-ruby-sdk/models/card_authentication_version.rb +35 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram.rb +201 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram_create.rb +211 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram_type.rb +34 -0
- data/lib/wallee-ruby-sdk/models/cardholder_authentication.rb +231 -0
- data/lib/wallee-ruby-sdk/models/cardholder_authentication_create.rb +241 -0
- data/lib/wallee-ruby-sdk/models/charge.rb +1 -5
- data/lib/wallee-ruby-sdk/models/charge_attempt.rb +37 -6
- data/lib/wallee-ruby-sdk/models/charge_attempt_environment.rb +0 -4
- data/lib/wallee-ruby-sdk/models/charge_attempt_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/charge_bank_transaction.rb +291 -0
- data/lib/wallee-ruby-sdk/models/charge_flow.rb +1 -5
- data/lib/wallee-ruby-sdk/models/charge_flow_level.rb +1 -5
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration_type.rb +14 -6
- data/lib/wallee-ruby-sdk/models/charge_flow_level_payment_link.rb +231 -0
- data/lib/wallee-ruby-sdk/models/charge_flow_level_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/charge_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/charge_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/client_error.rb +1 -5
- data/lib/wallee-ruby-sdk/models/client_error_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/completion_line_item.rb +16 -5
- data/lib/wallee-ruby-sdk/models/completion_line_item_create.rb +20 -5
- data/lib/wallee-ruby-sdk/models/condition.rb +16 -5
- data/lib/wallee-ruby-sdk/models/condition_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/connector_invocation.rb +1 -5
- data/lib/wallee-ruby-sdk/models/connector_invocation_stage.rb +0 -4
- data/lib/wallee-ruby-sdk/models/creation_entity_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/criteria_operator.rb +0 -4
- data/lib/wallee-ruby-sdk/models/currency_bank_account.rb +241 -0
- data/lib/wallee-ruby-sdk/models/customer.rb +353 -0
- data/lib/wallee-ruby-sdk/models/customer_active.rb +343 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_reference.rb → customer_address.rb} +41 -45
- data/lib/wallee-ruby-sdk/models/customer_address_active.rb +231 -0
- data/lib/wallee-ruby-sdk/models/customer_address_create.rb +216 -0
- data/lib/wallee-ruby-sdk/models/customer_address_type.rb +36 -0
- data/lib/wallee-ruby-sdk/models/customer_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/customer_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/customer_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/customer_create.rb +313 -0
- data/lib/wallee-ruby-sdk/models/customer_postal_address.rb +606 -0
- data/lib/wallee-ruby-sdk/models/customer_postal_address_create.rb +606 -0
- data/lib/wallee-ruby-sdk/models/customers_presence.rb +0 -4
- data/lib/wallee-ruby-sdk/models/data_collection_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/database_translated_string.rb +1 -5
- data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +1 -5
- data/lib/wallee-ruby-sdk/models/database_translated_string_item.rb +16 -5
- data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +2 -6
- data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +2 -6
- data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +46 -5
- data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +1 -5
- data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +0 -4
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +25 -5
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +1 -5
- data/lib/wallee-ruby-sdk/models/debt_collector.rb +1 -5
- data/lib/wallee-ruby-sdk/models/debt_collector_condition.rb +16 -5
- data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/delivery_indication.rb +1 -5
- data/lib/wallee-ruby-sdk/models/delivery_indication_decision_reason.rb +1 -5
- data/lib/wallee-ruby-sdk/models/delivery_indication_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/document_template.rb +16 -5
- data/lib/wallee-ruby-sdk/models/document_template_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/document_template_type_group.rb +1 -5
- data/lib/wallee-ruby-sdk/models/entity_export_request.rb +1 -5
- data/lib/wallee-ruby-sdk/models/entity_query.rb +1 -5
- data/lib/wallee-ruby-sdk/models/entity_query_filter.rb +1 -5
- data/lib/wallee-ruby-sdk/models/entity_query_filter_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +1 -5
- data/lib/wallee-ruby-sdk/models/entity_query_order_by_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/environment.rb +0 -4
- data/lib/wallee-ruby-sdk/models/{payment_terminal_device.rb → external_transfer_bank_transaction.rb} +38 -62
- data/lib/wallee-ruby-sdk/models/failure_category.rb +0 -4
- data/lib/wallee-ruby-sdk/models/failure_reason.rb +1 -5
- data/lib/wallee-ruby-sdk/models/feature.rb +12 -6
- data/lib/wallee-ruby-sdk/models/feature_category.rb +225 -0
- data/lib/wallee-ruby-sdk/models/gender.rb +0 -4
- data/lib/wallee-ruby-sdk/models/human_user.rb +61 -5
- data/lib/wallee-ruby-sdk/models/human_user_create.rb +61 -5
- data/lib/wallee-ruby-sdk/models/human_user_update.rb +61 -5
- data/lib/wallee-ruby-sdk/models/installment_calculated_plan.rb +1 -5
- data/lib/wallee-ruby-sdk/models/installment_calculated_slice.rb +1 -5
- data/lib/wallee-ruby-sdk/models/installment_payment.rb +1 -5
- data/lib/wallee-ruby-sdk/models/installment_payment_slice.rb +1 -5
- data/lib/wallee-ruby-sdk/models/installment_payment_slice_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/installment_payment_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/installment_plan_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/installment_plan_slice_configuration.rb +1 -5
- data/lib/wallee-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
- data/lib/wallee-ruby-sdk/models/label.rb +1 -5
- data/lib/wallee-ruby-sdk/models/label_descriptor.rb +1 -5
- data/lib/wallee-ruby-sdk/models/label_descriptor_category.rb +0 -4
- data/lib/wallee-ruby-sdk/models/label_descriptor_group.rb +1 -5
- data/lib/wallee-ruby-sdk/models/label_descriptor_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/legal_organization_form.rb +1 -5
- data/lib/wallee-ruby-sdk/models/line_item.rb +55 -5
- data/lib/wallee-ruby-sdk/models/line_item_attribute.rb +31 -5
- data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +39 -5
- data/lib/wallee-ruby-sdk/models/line_item_create.rb +63 -5
- data/lib/wallee-ruby-sdk/models/line_item_reduction.rb +16 -5
- data/lib/wallee-ruby-sdk/models/line_item_reduction_create.rb +20 -5
- data/lib/wallee-ruby-sdk/models/line_item_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/localized_string.rb +1 -5
- data/lib/wallee-ruby-sdk/models/manual_task.rb +1 -5
- data/lib/wallee-ruby-sdk/models/manual_task_action.rb +1 -5
- data/lib/wallee-ruby-sdk/models/manual_task_action_style.rb +0 -4
- data/lib/wallee-ruby-sdk/models/manual_task_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/manual_task_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/metric_usage.rb +1 -5
- data/lib/wallee-ruby-sdk/models/one_click_payment_mode.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_adjustment.rb +231 -0
- data/lib/wallee-ruby-sdk/models/payment_adjustment_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/payment_connector.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +29 -6
- data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_contract.rb +2 -6
- data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_contract_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_information_hash.rb +211 -0
- data/lib/wallee-ruby-sdk/models/payment_information_hash_type.rb +203 -0
- data/lib/wallee-ruby-sdk/models/payment_link.rb +32 -21
- data/lib/wallee-ruby-sdk/models/payment_link_active.rb +31 -20
- data/lib/wallee-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +32 -21
- data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_link_update.rb +31 -20
- data/lib/wallee-ruby-sdk/models/payment_method.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_method_brand.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/payment_primary_risk_taker.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_processor.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/payment_terminal.rb +27 -16
- data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +86 -15
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +12 -6
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +23 -22
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_terminal_type.rb +5 -21
- data/lib/wallee-ruby-sdk/models/permission.rb +15 -9
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount.rb +1 -5
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_fee_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_metered_tier_pricing.rb +0 -4
- data/lib/wallee-ruby-sdk/models/product_period_fee.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_setup_fee.rb +1 -5
- data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/recurring_indicator.rb +37 -0
- data/lib/wallee-ruby-sdk/models/refund.rb +76 -6
- data/lib/wallee-ruby-sdk/models/refund_bank_transaction.rb +281 -0
- data/lib/wallee-ruby-sdk/models/refund_comment.rb +16 -5
- data/lib/wallee-ruby-sdk/models/refund_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/refund_comment_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/refund_create.rb +53 -9
- data/lib/wallee-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
- data/lib/wallee-ruby-sdk/models/refund_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/refund_type.rb +2 -6
- data/lib/wallee-ruby-sdk/models/rendered_document.rb +1 -5
- data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +223 -0
- data/lib/wallee-ruby-sdk/models/resource_path.rb +25 -5
- data/lib/wallee-ruby-sdk/models/resource_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/rest_address_format.rb +1 -5
- data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +0 -4
- data/lib/wallee-ruby-sdk/models/rest_country.rb +1 -5
- data/lib/wallee-ruby-sdk/models/rest_country_state.rb +1 -5
- data/lib/wallee-ruby-sdk/models/rest_currency.rb +1 -5
- data/lib/wallee-ruby-sdk/models/rest_language.rb +1 -5
- data/lib/wallee-ruby-sdk/models/role.rb +2 -6
- data/lib/wallee-ruby-sdk/models/role_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +245 -0
- data/lib/wallee-ruby-sdk/models/scope.rb +57 -6
- data/lib/wallee-ruby-sdk/models/server_error.rb +1 -5
- data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration.rb +470 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration_subscription_app_version.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order.rb +351 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_device_model.rb → shopify_subscriber.rb} +50 -56
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +375 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +546 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +363 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +271 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_tax_line.rb +201 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product.rb +471 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +366 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_update.rb +351 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension.rb +311 -0
- data/lib/wallee-ruby-sdk/models/{unencrypted_card_data_create.rb → shopify_subscription_suspension_create.rb} +38 -42
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_initiator.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_state.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension_type.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +233 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +463 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item.rb +233 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version_state.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_weekday.rb +40 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_device_manufacturer.rb → shopify_tax_line.rb} +20 -44
- data/lib/wallee-ruby-sdk/models/shopify_transaction.rb +301 -0
- data/lib/wallee-ruby-sdk/models/shopify_transaction_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/space.rb +76 -6
- data/lib/wallee-ruby-sdk/models/space_address.rb +116 -15
- data/lib/wallee-ruby-sdk/models/space_address_create.rb +116 -15
- data/lib/wallee-ruby-sdk/models/space_create.rb +36 -6
- data/lib/wallee-ruby-sdk/models/space_reference.rb +1 -5
- data/lib/wallee-ruby-sdk/models/space_reference_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/space_update.rb +36 -6
- data/lib/wallee-ruby-sdk/models/space_view.rb +25 -5
- data/lib/wallee-ruby-sdk/models/static_value.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscriber.rb +47 -6
- data/lib/wallee-ruby-sdk/models/subscriber_active.rb +46 -5
- data/lib/wallee-ruby-sdk/models/subscriber_create.rb +47 -6
- data/lib/wallee-ruby-sdk/models/subscriber_update.rb +46 -5
- data/lib/wallee-ruby-sdk/models/subscription.rb +62 -6
- data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +50 -6
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +59 -6
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +50 -6
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +50 -6
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +25 -5
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +25 -5
- data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +14 -6
- data/lib/wallee-ruby-sdk/models/subscription_charge.rb +65 -6
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +65 -6
- data/lib/wallee-ruby-sdk/models/subscription_charge_processing_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_charge_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_charge_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_component_configuration.rb +201 -0
- data/lib/wallee-ruby-sdk/models/subscription_component_reference_configuration.rb +201 -0
- data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +15 -7
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +37 -7
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +30 -6
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_metric.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_metric_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_pending.rb +42 -16
- data/lib/wallee-ruby-sdk/models/subscription_period_bill.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_period_bill_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_product.rb +42 -6
- data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +27 -6
- data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +33 -7
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +33 -7
- data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +46 -6
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +27 -6
- data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +15 -9
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +1 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_version_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_state.rb +1 -4
- data/lib/wallee-ruby-sdk/models/subscription_suspension.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_suspension_action.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_suspension_reason.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_suspension_running.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_suspension_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/subscription_update.rb +27 -6
- data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/subscription_version.rb +14 -6
- data/lib/wallee-ruby-sdk/models/subscription_version_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/tax.rb +25 -5
- data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
- data/lib/wallee-ruby-sdk/models/tax_class.rb +16 -5
- data/lib/wallee-ruby-sdk/models/tax_create.rb +29 -5
- data/lib/wallee-ruby-sdk/models/tenant_database.rb +16 -5
- data/lib/wallee-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
- data/lib/wallee-ruby-sdk/models/terminal_receipt_format.rb +35 -0
- data/lib/wallee-ruby-sdk/models/token.rb +32 -6
- data/lib/wallee-ruby-sdk/models/token_create.rb +32 -6
- data/lib/wallee-ruby-sdk/models/token_update.rb +31 -5
- data/lib/wallee-ruby-sdk/models/token_version.rb +54 -6
- data/lib/wallee-ruby-sdk/models/token_version_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/token_version_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/tokenization_mode.rb +0 -4
- data/lib/wallee-ruby-sdk/models/{unencrypted_card_data.rb → tokenized_card_data.rb} +24 -38
- data/lib/wallee-ruby-sdk/models/tokenized_card_data_create.rb +348 -0
- data/lib/wallee-ruby-sdk/models/transaction.rb +257 -9
- data/lib/wallee-ruby-sdk/models/transaction_aware_entity.rb +1 -5
- data/lib/wallee-ruby-sdk/models/transaction_comment.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_comment_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_completion.rb +51 -6
- data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +55 -6
- data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_create.rb +154 -6
- data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_group.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_group_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +51 -6
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/transaction_invoice_replacement.rb +44 -5
- data/lib/wallee-ruby-sdk/models/transaction_invoice_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_line_item_update_request.rb +1 -5
- data/lib/wallee-ruby-sdk/models/transaction_line_item_version.rb +1 -5
- data/lib/wallee-ruby-sdk/models/transaction_pending.rb +120 -6
- data/lib/wallee-ruby-sdk/models/transaction_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +1 -4
- data/lib/wallee-ruby-sdk/models/transaction_void.rb +1 -5
- data/lib/wallee-ruby-sdk/models/transaction_void_mode.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_void_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/two_factor_authentication_type.rb +1 -5
- data/lib/wallee-ruby-sdk/models/user.rb +1 -5
- data/lib/wallee-ruby-sdk/models/user_account_role.rb +1 -5
- data/lib/wallee-ruby-sdk/models/user_space_role.rb +1 -5
- data/lib/wallee-ruby-sdk/models/user_type.rb +0 -4
- data/lib/wallee-ruby-sdk/models/web_app_confirmation_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/web_app_confirmation_response.rb +231 -0
- data/lib/wallee-ruby-sdk/models/webhook_identity.rb +16 -5
- data/lib/wallee-ruby-sdk/models/webhook_listener.rb +16 -5
- data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +1 -5
- data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +16 -5
- data/lib/wallee-ruby-sdk/models/webhook_url.rb +51 -6
- data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +40 -5
- data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +40 -5
- data/lib/wallee-ruby-sdk/version.rb +1 -5
- data/test/condition_type_service_test.rb +22 -0
- data/test/transaction_create_service_test.rb +2 -2
- data/test/transaction_payment_page_service_test.rb +3 -3
- data/wallee-ruby-sdk.gemspec +4 -7
- metadata +161 -19
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
The wallee API allows an easy interaction with the wallee web service.
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
|
|
16
|
+
=end
|
|
17
|
+
|
|
18
|
+
require 'date'
|
|
19
|
+
|
|
20
|
+
module Wallee
|
|
21
|
+
# This model holds the cardholder authentication data (e.g. 3-D Secure authentication).
|
|
22
|
+
class CardholderAuthenticationCreate
|
|
23
|
+
# The authentication identifier as assigned by authentication system (e.g. XID or DSTransactionID).
|
|
24
|
+
attr_accessor :authentication_identifier
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
attr_accessor :authentication_response
|
|
28
|
+
|
|
29
|
+
# The cardholder authentication value. Also known as Cardholder Authentication Verification Value (CAVV).
|
|
30
|
+
attr_accessor :authentication_value
|
|
31
|
+
|
|
32
|
+
# The Electronic Commerce Indicator (ECI) value. The ECI is returned by authentication system and indicates the outcome/status of authentication.
|
|
33
|
+
attr_accessor :electronic_commerce_indicator
|
|
34
|
+
|
|
35
|
+
#
|
|
36
|
+
attr_accessor :version
|
|
37
|
+
|
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
|
+
def self.attribute_map
|
|
40
|
+
{
|
|
41
|
+
:'authentication_identifier' => :'authenticationIdentifier',
|
|
42
|
+
:'authentication_response' => :'authenticationResponse',
|
|
43
|
+
:'authentication_value' => :'authenticationValue',
|
|
44
|
+
:'electronic_commerce_indicator' => :'electronicCommerceIndicator',
|
|
45
|
+
:'version' => :'version'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
def self.swagger_types
|
|
51
|
+
{
|
|
52
|
+
:'authentication_identifier' => :'String',
|
|
53
|
+
:'authentication_response' => :'CardAuthenticationResponse',
|
|
54
|
+
:'authentication_value' => :'String',
|
|
55
|
+
:'electronic_commerce_indicator' => :'String',
|
|
56
|
+
:'version' => :'CardAuthenticationVersion'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
|
+
def initialize(attributes = {})
|
|
63
|
+
return unless attributes.is_a?(Hash)
|
|
64
|
+
|
|
65
|
+
# convert string to symbol for hash key
|
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'authenticationIdentifier')
|
|
69
|
+
self.authentication_identifier = attributes[:'authenticationIdentifier']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.has_key?(:'authenticationResponse')
|
|
73
|
+
self.authentication_response = attributes[:'authenticationResponse']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.has_key?(:'authenticationValue')
|
|
77
|
+
self.authentication_value = attributes[:'authenticationValue']
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.has_key?(:'electronicCommerceIndicator')
|
|
81
|
+
self.electronic_commerce_indicator = attributes[:'electronicCommerceIndicator']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.has_key?(:'version')
|
|
85
|
+
self.version = attributes[:'version']
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
90
|
+
# @return Array for valid properties with the reasons
|
|
91
|
+
def list_invalid_properties
|
|
92
|
+
invalid_properties = Array.new
|
|
93
|
+
if @authentication_response.nil?
|
|
94
|
+
invalid_properties.push('invalid value for "authentication_response", authentication_response cannot be nil.')
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if @version.nil?
|
|
98
|
+
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
invalid_properties
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Check to see if the all the properties in the model are valid
|
|
105
|
+
# @return true if the model is valid
|
|
106
|
+
def valid?
|
|
107
|
+
return false if @authentication_response.nil?
|
|
108
|
+
return false if @version.nil?
|
|
109
|
+
true
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Checks equality by comparing each attribute.
|
|
113
|
+
# @param [Object] Object to be compared
|
|
114
|
+
def ==(o)
|
|
115
|
+
return true if self.equal?(o)
|
|
116
|
+
self.class == o.class &&
|
|
117
|
+
authentication_identifier == o.authentication_identifier &&
|
|
118
|
+
authentication_response == o.authentication_response &&
|
|
119
|
+
authentication_value == o.authentication_value &&
|
|
120
|
+
electronic_commerce_indicator == o.electronic_commerce_indicator &&
|
|
121
|
+
version == o.version
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# @see the `==` method
|
|
125
|
+
# @param [Object] Object to be compared
|
|
126
|
+
def eql?(o)
|
|
127
|
+
self == o
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Calculates hash code according to all attributes.
|
|
131
|
+
# @return [Fixnum] Hash code
|
|
132
|
+
def hash
|
|
133
|
+
[authentication_identifier, authentication_response, authentication_value, electronic_commerce_indicator, version].hash
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Builds the object from hash
|
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
138
|
+
# @return [Object] Returns the model itself
|
|
139
|
+
def build_from_hash(attributes)
|
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
|
141
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
142
|
+
if type =~ /\AArray<(.*)>/i
|
|
143
|
+
# check to ensure the input is an array given that the attribute
|
|
144
|
+
# is documented as an array but the input is not
|
|
145
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
146
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
147
|
+
end
|
|
148
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
149
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
150
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
self
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Deserializes the data based on type
|
|
157
|
+
# @param string type Data type
|
|
158
|
+
# @param string value Value to be deserialized
|
|
159
|
+
# @return [Object] Deserialized data
|
|
160
|
+
def _deserialize(type, value)
|
|
161
|
+
case type.to_sym
|
|
162
|
+
when :DateTime
|
|
163
|
+
DateTime.parse(value)
|
|
164
|
+
when :Date
|
|
165
|
+
Date.parse(value)
|
|
166
|
+
when :String
|
|
167
|
+
value.to_s
|
|
168
|
+
when :Integer
|
|
169
|
+
value.to_i
|
|
170
|
+
when :Float
|
|
171
|
+
value.to_f
|
|
172
|
+
when :BOOLEAN
|
|
173
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
174
|
+
true
|
|
175
|
+
else
|
|
176
|
+
false
|
|
177
|
+
end
|
|
178
|
+
when :Object
|
|
179
|
+
# generic object (usually a Hash), return directly
|
|
180
|
+
value
|
|
181
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
182
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
183
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
184
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
185
|
+
k_type = Regexp.last_match[:k_type]
|
|
186
|
+
v_type = Regexp.last_match[:v_type]
|
|
187
|
+
{}.tap do |hash|
|
|
188
|
+
value.each do |k, v|
|
|
189
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
else # model
|
|
193
|
+
temp_model = Wallee.const_get(type).new
|
|
194
|
+
temp_model.build_from_hash(value)
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Returns the string representation of the object
|
|
199
|
+
# @return [String] String presentation of the object
|
|
200
|
+
def to_s
|
|
201
|
+
to_hash.to_s
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
|
206
|
+
def to_body
|
|
207
|
+
to_hash
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Returns the object in the form of hash
|
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
|
212
|
+
def to_hash
|
|
213
|
+
hash = {}
|
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
215
|
+
value = self.send(attr)
|
|
216
|
+
next if value.nil?
|
|
217
|
+
hash[param] = _to_hash(value)
|
|
218
|
+
end
|
|
219
|
+
hash
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Outputs non-array value in the form of hash
|
|
223
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
224
|
+
# @param [Object] value Any valid value
|
|
225
|
+
# @return [Hash] Returns the value in the form of hash
|
|
226
|
+
def _to_hash(value)
|
|
227
|
+
if value.is_a?(Array)
|
|
228
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
229
|
+
elsif value.is_a?(Hash)
|
|
230
|
+
{}.tap do |hash|
|
|
231
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
232
|
+
end
|
|
233
|
+
elsif value.respond_to? :to_hash
|
|
234
|
+
value.to_hash
|
|
235
|
+
else
|
|
236
|
+
value
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
end
|
|
241
|
+
end
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
wallee API: 2.0.1
|
|
3
|
-
|
|
4
2
|
The wallee API allows an easy interaction with the wallee web service.
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
5
|
you may not use this file except in compliance with the License.
|
|
10
6
|
You may obtain a copy of the License at
|
|
@@ -234,7 +230,7 @@ module Wallee
|
|
|
234
230
|
return nil unless attributes.is_a?(Hash)
|
|
235
231
|
self.class.swagger_types.each_pair do |key, type|
|
|
236
232
|
if type =~ /\AArray<(.*)>/i
|
|
237
|
-
# check to ensure the input is an array given that the
|
|
233
|
+
# check to ensure the input is an array given that the attribute
|
|
238
234
|
# is documented as an array but the input is not
|
|
239
235
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
240
236
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
wallee API: 2.0.1
|
|
3
|
-
|
|
4
2
|
The wallee API allows an easy interaction with the wallee web service.
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
5
|
you may not use this file except in compliance with the License.
|
|
10
6
|
You may obtain a copy of the License at
|
|
@@ -36,6 +32,9 @@ module Wallee
|
|
|
36
32
|
#
|
|
37
33
|
attr_accessor :charge
|
|
38
34
|
|
|
35
|
+
#
|
|
36
|
+
attr_accessor :completion_behavior
|
|
37
|
+
|
|
39
38
|
#
|
|
40
39
|
attr_accessor :connector_configuration
|
|
41
40
|
|
|
@@ -72,6 +71,9 @@ module Wallee
|
|
|
72
71
|
#
|
|
73
72
|
attr_accessor :redirection_url
|
|
74
73
|
|
|
74
|
+
#
|
|
75
|
+
attr_accessor :sales_channel
|
|
76
|
+
|
|
75
77
|
#
|
|
76
78
|
attr_accessor :space_view_id
|
|
77
79
|
|
|
@@ -106,6 +108,7 @@ module Wallee
|
|
|
106
108
|
:'linked_space_id' => :'linkedSpaceId',
|
|
107
109
|
:'linked_transaction' => :'linkedTransaction',
|
|
108
110
|
:'charge' => :'charge',
|
|
111
|
+
:'completion_behavior' => :'completionBehavior',
|
|
109
112
|
:'connector_configuration' => :'connectorConfiguration',
|
|
110
113
|
:'created_on' => :'createdOn',
|
|
111
114
|
:'environment' => :'environment',
|
|
@@ -118,6 +121,7 @@ module Wallee
|
|
|
118
121
|
:'next_update_on' => :'nextUpdateOn',
|
|
119
122
|
:'planned_purge_date' => :'plannedPurgeDate',
|
|
120
123
|
:'redirection_url' => :'redirectionUrl',
|
|
124
|
+
:'sales_channel' => :'salesChannel',
|
|
121
125
|
:'space_view_id' => :'spaceViewId',
|
|
122
126
|
:'state' => :'state',
|
|
123
127
|
:'succeeded_on' => :'succeededOn',
|
|
@@ -137,6 +141,7 @@ module Wallee
|
|
|
137
141
|
:'linked_space_id' => :'Integer',
|
|
138
142
|
:'linked_transaction' => :'Integer',
|
|
139
143
|
:'charge' => :'Charge',
|
|
144
|
+
:'completion_behavior' => :'TransactionCompletionBehavior',
|
|
140
145
|
:'connector_configuration' => :'PaymentConnectorConfiguration',
|
|
141
146
|
:'created_on' => :'DateTime',
|
|
142
147
|
:'environment' => :'ChargeAttemptEnvironment',
|
|
@@ -149,6 +154,7 @@ module Wallee
|
|
|
149
154
|
:'next_update_on' => :'DateTime',
|
|
150
155
|
:'planned_purge_date' => :'DateTime',
|
|
151
156
|
:'redirection_url' => :'String',
|
|
157
|
+
:'sales_channel' => :'Integer',
|
|
152
158
|
:'space_view_id' => :'Integer',
|
|
153
159
|
:'state' => :'ChargeAttemptState',
|
|
154
160
|
:'succeeded_on' => :'DateTime',
|
|
@@ -185,6 +191,10 @@ module Wallee
|
|
|
185
191
|
self.charge = attributes[:'charge']
|
|
186
192
|
end
|
|
187
193
|
|
|
194
|
+
if attributes.has_key?(:'completionBehavior')
|
|
195
|
+
self.completion_behavior = attributes[:'completionBehavior']
|
|
196
|
+
end
|
|
197
|
+
|
|
188
198
|
if attributes.has_key?(:'connectorConfiguration')
|
|
189
199
|
self.connector_configuration = attributes[:'connectorConfiguration']
|
|
190
200
|
end
|
|
@@ -235,6 +245,10 @@ module Wallee
|
|
|
235
245
|
self.redirection_url = attributes[:'redirectionUrl']
|
|
236
246
|
end
|
|
237
247
|
|
|
248
|
+
if attributes.has_key?(:'salesChannel')
|
|
249
|
+
self.sales_channel = attributes[:'salesChannel']
|
|
250
|
+
end
|
|
251
|
+
|
|
238
252
|
if attributes.has_key?(:'spaceViewId')
|
|
239
253
|
self.space_view_id = attributes[:'spaceViewId']
|
|
240
254
|
end
|
|
@@ -276,15 +290,30 @@ module Wallee
|
|
|
276
290
|
# @return Array for valid properties with the reasons
|
|
277
291
|
def list_invalid_properties
|
|
278
292
|
invalid_properties = Array.new
|
|
293
|
+
if !@user_failure_message.nil? && @user_failure_message.to_s.length > 2000
|
|
294
|
+
invalid_properties.push('invalid value for "user_failure_message", the character length must be smaller than or equal to 2000.')
|
|
295
|
+
end
|
|
296
|
+
|
|
279
297
|
invalid_properties
|
|
280
298
|
end
|
|
281
299
|
|
|
282
300
|
# Check to see if the all the properties in the model are valid
|
|
283
301
|
# @return true if the model is valid
|
|
284
302
|
def valid?
|
|
303
|
+
return false if !@user_failure_message.nil? && @user_failure_message.to_s.length > 2000
|
|
285
304
|
true
|
|
286
305
|
end
|
|
287
306
|
|
|
307
|
+
# Custom attribute writer method with validation
|
|
308
|
+
# @param [Object] user_failure_message Value to be assigned
|
|
309
|
+
def user_failure_message=(user_failure_message)
|
|
310
|
+
if !user_failure_message.nil? && user_failure_message.to_s.length > 2000
|
|
311
|
+
fail ArgumentError, 'invalid value for "user_failure_message", the character length must be smaller than or equal to 2000.'
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
@user_failure_message = user_failure_message
|
|
315
|
+
end
|
|
316
|
+
|
|
288
317
|
# Checks equality by comparing each attribute.
|
|
289
318
|
# @param [Object] Object to be compared
|
|
290
319
|
def ==(o)
|
|
@@ -294,6 +323,7 @@ module Wallee
|
|
|
294
323
|
linked_space_id == o.linked_space_id &&
|
|
295
324
|
linked_transaction == o.linked_transaction &&
|
|
296
325
|
charge == o.charge &&
|
|
326
|
+
completion_behavior == o.completion_behavior &&
|
|
297
327
|
connector_configuration == o.connector_configuration &&
|
|
298
328
|
created_on == o.created_on &&
|
|
299
329
|
environment == o.environment &&
|
|
@@ -306,6 +336,7 @@ module Wallee
|
|
|
306
336
|
next_update_on == o.next_update_on &&
|
|
307
337
|
planned_purge_date == o.planned_purge_date &&
|
|
308
338
|
redirection_url == o.redirection_url &&
|
|
339
|
+
sales_channel == o.sales_channel &&
|
|
309
340
|
space_view_id == o.space_view_id &&
|
|
310
341
|
state == o.state &&
|
|
311
342
|
succeeded_on == o.succeeded_on &&
|
|
@@ -326,7 +357,7 @@ module Wallee
|
|
|
326
357
|
# Calculates hash code according to all attributes.
|
|
327
358
|
# @return [Fixnum] Hash code
|
|
328
359
|
def hash
|
|
329
|
-
[id, linked_space_id, linked_transaction, charge, connector_configuration, created_on, environment, failed_on, failure_reason, initializing_token_version, invocation, labels, language, next_update_on, planned_purge_date, redirection_url, space_view_id, state, succeeded_on, terminal, time_zone, timeout_on, token_version, user_failure_message, version].hash
|
|
360
|
+
[id, linked_space_id, linked_transaction, charge, completion_behavior, connector_configuration, created_on, environment, failed_on, failure_reason, initializing_token_version, invocation, labels, language, next_update_on, planned_purge_date, redirection_url, sales_channel, space_view_id, state, succeeded_on, terminal, time_zone, timeout_on, token_version, user_failure_message, version].hash
|
|
330
361
|
end
|
|
331
362
|
|
|
332
363
|
# Builds the object from hash
|
|
@@ -336,7 +367,7 @@ module Wallee
|
|
|
336
367
|
return nil unless attributes.is_a?(Hash)
|
|
337
368
|
self.class.swagger_types.each_pair do |key, type|
|
|
338
369
|
if type =~ /\AArray<(.*)>/i
|
|
339
|
-
# check to ensure the input is an array given that the
|
|
370
|
+
# check to ensure the input is an array given that the attribute
|
|
340
371
|
# is documented as an array but the input is not
|
|
341
372
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
342
373
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
wallee API: 2.0.1
|
|
3
|
-
|
|
4
2
|
The wallee API allows an easy interaction with the wallee web service.
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
5
|
you may not use this file except in compliance with the License.
|
|
10
6
|
You may obtain a copy of the License at
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
wallee API: 2.0.1
|
|
3
|
-
|
|
4
2
|
The wallee API allows an easy interaction with the wallee web service.
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
5
|
you may not use this file except in compliance with the License.
|
|
10
6
|
You may obtain a copy of the License at
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
The wallee API allows an easy interaction with the wallee web service.
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
|
|
16
|
+
=end
|
|
17
|
+
|
|
18
|
+
require 'date'
|
|
19
|
+
|
|
20
|
+
module Wallee
|
|
21
|
+
#
|
|
22
|
+
class ChargeBankTransaction
|
|
23
|
+
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
|
24
|
+
attr_accessor :id
|
|
25
|
+
|
|
26
|
+
# The linked space id holds the ID of the space to which the entity belongs to.
|
|
27
|
+
attr_accessor :linked_space_id
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
attr_accessor :linked_transaction
|
|
31
|
+
|
|
32
|
+
#
|
|
33
|
+
attr_accessor :bank_transaction
|
|
34
|
+
|
|
35
|
+
#
|
|
36
|
+
attr_accessor :completion
|
|
37
|
+
|
|
38
|
+
#
|
|
39
|
+
attr_accessor :language
|
|
40
|
+
|
|
41
|
+
#
|
|
42
|
+
attr_accessor :space_view_id
|
|
43
|
+
|
|
44
|
+
#
|
|
45
|
+
attr_accessor :transaction
|
|
46
|
+
|
|
47
|
+
# Specify the posting amount in the transaction's currency.
|
|
48
|
+
attr_accessor :transaction_currency_amount
|
|
49
|
+
|
|
50
|
+
#
|
|
51
|
+
attr_accessor :transaction_currency_value_amount
|
|
52
|
+
|
|
53
|
+
# The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
|
|
54
|
+
attr_accessor :version
|
|
55
|
+
|
|
56
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
|
+
def self.attribute_map
|
|
58
|
+
{
|
|
59
|
+
:'id' => :'id',
|
|
60
|
+
:'linked_space_id' => :'linkedSpaceId',
|
|
61
|
+
:'linked_transaction' => :'linkedTransaction',
|
|
62
|
+
:'bank_transaction' => :'bankTransaction',
|
|
63
|
+
:'completion' => :'completion',
|
|
64
|
+
:'language' => :'language',
|
|
65
|
+
:'space_view_id' => :'spaceViewId',
|
|
66
|
+
:'transaction' => :'transaction',
|
|
67
|
+
:'transaction_currency_amount' => :'transactionCurrencyAmount',
|
|
68
|
+
:'transaction_currency_value_amount' => :'transactionCurrencyValueAmount',
|
|
69
|
+
:'version' => :'version'
|
|
70
|
+
}
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Attribute type mapping.
|
|
74
|
+
def self.swagger_types
|
|
75
|
+
{
|
|
76
|
+
:'id' => :'Integer',
|
|
77
|
+
:'linked_space_id' => :'Integer',
|
|
78
|
+
:'linked_transaction' => :'Integer',
|
|
79
|
+
:'bank_transaction' => :'BankTransaction',
|
|
80
|
+
:'completion' => :'Integer',
|
|
81
|
+
:'language' => :'String',
|
|
82
|
+
:'space_view_id' => :'Integer',
|
|
83
|
+
:'transaction' => :'Transaction',
|
|
84
|
+
:'transaction_currency_amount' => :'Float',
|
|
85
|
+
:'transaction_currency_value_amount' => :'Float',
|
|
86
|
+
:'version' => :'Integer'
|
|
87
|
+
}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Initializes the object
|
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
92
|
+
def initialize(attributes = {})
|
|
93
|
+
return unless attributes.is_a?(Hash)
|
|
94
|
+
|
|
95
|
+
# convert string to symbol for hash key
|
|
96
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
97
|
+
|
|
98
|
+
if attributes.has_key?(:'id')
|
|
99
|
+
self.id = attributes[:'id']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.has_key?(:'linkedSpaceId')
|
|
103
|
+
self.linked_space_id = attributes[:'linkedSpaceId']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.has_key?(:'linkedTransaction')
|
|
107
|
+
self.linked_transaction = attributes[:'linkedTransaction']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.has_key?(:'bankTransaction')
|
|
111
|
+
self.bank_transaction = attributes[:'bankTransaction']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.has_key?(:'completion')
|
|
115
|
+
self.completion = attributes[:'completion']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.has_key?(:'language')
|
|
119
|
+
self.language = attributes[:'language']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.has_key?(:'spaceViewId')
|
|
123
|
+
self.space_view_id = attributes[:'spaceViewId']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.has_key?(:'transaction')
|
|
127
|
+
self.transaction = attributes[:'transaction']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.has_key?(:'transactionCurrencyAmount')
|
|
131
|
+
self.transaction_currency_amount = attributes[:'transactionCurrencyAmount']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.has_key?(:'transactionCurrencyValueAmount')
|
|
135
|
+
self.transaction_currency_value_amount = attributes[:'transactionCurrencyValueAmount']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.has_key?(:'version')
|
|
139
|
+
self.version = attributes[:'version']
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
144
|
+
# @return Array for valid properties with the reasons
|
|
145
|
+
def list_invalid_properties
|
|
146
|
+
invalid_properties = Array.new
|
|
147
|
+
invalid_properties
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Check to see if the all the properties in the model are valid
|
|
151
|
+
# @return true if the model is valid
|
|
152
|
+
def valid?
|
|
153
|
+
true
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Checks equality by comparing each attribute.
|
|
157
|
+
# @param [Object] Object to be compared
|
|
158
|
+
def ==(o)
|
|
159
|
+
return true if self.equal?(o)
|
|
160
|
+
self.class == o.class &&
|
|
161
|
+
id == o.id &&
|
|
162
|
+
linked_space_id == o.linked_space_id &&
|
|
163
|
+
linked_transaction == o.linked_transaction &&
|
|
164
|
+
bank_transaction == o.bank_transaction &&
|
|
165
|
+
completion == o.completion &&
|
|
166
|
+
language == o.language &&
|
|
167
|
+
space_view_id == o.space_view_id &&
|
|
168
|
+
transaction == o.transaction &&
|
|
169
|
+
transaction_currency_amount == o.transaction_currency_amount &&
|
|
170
|
+
transaction_currency_value_amount == o.transaction_currency_value_amount &&
|
|
171
|
+
version == o.version
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# @see the `==` method
|
|
175
|
+
# @param [Object] Object to be compared
|
|
176
|
+
def eql?(o)
|
|
177
|
+
self == o
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Calculates hash code according to all attributes.
|
|
181
|
+
# @return [Fixnum] Hash code
|
|
182
|
+
def hash
|
|
183
|
+
[id, linked_space_id, linked_transaction, bank_transaction, completion, language, space_view_id, transaction, transaction_currency_amount, transaction_currency_value_amount, version].hash
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Builds the object from hash
|
|
187
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
188
|
+
# @return [Object] Returns the model itself
|
|
189
|
+
def build_from_hash(attributes)
|
|
190
|
+
return nil unless attributes.is_a?(Hash)
|
|
191
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
192
|
+
if type =~ /\AArray<(.*)>/i
|
|
193
|
+
# check to ensure the input is an array given that the attribute
|
|
194
|
+
# is documented as an array but the input is not
|
|
195
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
196
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
197
|
+
end
|
|
198
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
199
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
200
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
self
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Deserializes the data based on type
|
|
207
|
+
# @param string type Data type
|
|
208
|
+
# @param string value Value to be deserialized
|
|
209
|
+
# @return [Object] Deserialized data
|
|
210
|
+
def _deserialize(type, value)
|
|
211
|
+
case type.to_sym
|
|
212
|
+
when :DateTime
|
|
213
|
+
DateTime.parse(value)
|
|
214
|
+
when :Date
|
|
215
|
+
Date.parse(value)
|
|
216
|
+
when :String
|
|
217
|
+
value.to_s
|
|
218
|
+
when :Integer
|
|
219
|
+
value.to_i
|
|
220
|
+
when :Float
|
|
221
|
+
value.to_f
|
|
222
|
+
when :BOOLEAN
|
|
223
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
224
|
+
true
|
|
225
|
+
else
|
|
226
|
+
false
|
|
227
|
+
end
|
|
228
|
+
when :Object
|
|
229
|
+
# generic object (usually a Hash), return directly
|
|
230
|
+
value
|
|
231
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
232
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
233
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
234
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
235
|
+
k_type = Regexp.last_match[:k_type]
|
|
236
|
+
v_type = Regexp.last_match[:v_type]
|
|
237
|
+
{}.tap do |hash|
|
|
238
|
+
value.each do |k, v|
|
|
239
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
else # model
|
|
243
|
+
temp_model = Wallee.const_get(type).new
|
|
244
|
+
temp_model.build_from_hash(value)
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# Returns the string representation of the object
|
|
249
|
+
# @return [String] String presentation of the object
|
|
250
|
+
def to_s
|
|
251
|
+
to_hash.to_s
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
255
|
+
# @return [Hash] Returns the object in the form of hash
|
|
256
|
+
def to_body
|
|
257
|
+
to_hash
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Returns the object in the form of hash
|
|
261
|
+
# @return [Hash] Returns the object in the form of hash
|
|
262
|
+
def to_hash
|
|
263
|
+
hash = {}
|
|
264
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
265
|
+
value = self.send(attr)
|
|
266
|
+
next if value.nil?
|
|
267
|
+
hash[param] = _to_hash(value)
|
|
268
|
+
end
|
|
269
|
+
hash
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Outputs non-array value in the form of hash
|
|
273
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
274
|
+
# @param [Object] value Any valid value
|
|
275
|
+
# @return [Hash] Returns the value in the form of hash
|
|
276
|
+
def _to_hash(value)
|
|
277
|
+
if value.is_a?(Array)
|
|
278
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
279
|
+
elsif value.is_a?(Hash)
|
|
280
|
+
{}.tap do |hash|
|
|
281
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
282
|
+
end
|
|
283
|
+
elsif value.respond_to? :to_hash
|
|
284
|
+
value.to_hash
|
|
285
|
+
else
|
|
286
|
+
value
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
end
|
|
291
|
+
end
|