wallee-ruby-sdk 2.0.1 → 2.2.3
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 +71 -9
- 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/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_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_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/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/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/permission_service_api.rb +11 -15
- data/lib/wallee-ruby-sdk/api/refund_comment_service_api.rb +49 -53
- 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 +213 -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 +342 -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/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 +41 -45
- 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 +110 -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 +48 -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 +172 -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/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 +2 -4
- data/lib/wallee-ruby-sdk/api_error.rb +0 -4
- data/lib/wallee-ruby-sdk/configuration.rb +0 -4
- data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +25 -5
- 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 +16 -5
- data/lib/wallee-ruby-sdk/models/abstract_refund_comment_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/abstract_shopify_subscription_product_active.rb +330 -0
- data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +25 -5
- 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 +16 -5
- 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 +61 -5
- data/lib/wallee-ruby-sdk/models/abstract_webhook_listener_update.rb +16 -5
- data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +16 -5
- data/lib/wallee-ruby-sdk/models/account.rb +46 -6
- data/lib/wallee-ruby-sdk/models/account_create.rb +25 -5
- 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 +25 -5
- 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/charge.rb +1 -5
- data/lib/wallee-ruby-sdk/models/charge_attempt.rb +27 -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_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/customer.rb +353 -0
- data/lib/wallee-ruby-sdk/models/customer_active.rb +343 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_device.rb → customer_address.rb} +42 -56
- 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 +1 -5
- data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +1 -5
- 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/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/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_connector.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +16 -5
- data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +1 -5
- data/lib/wallee-ruby-sdk/models/payment_contract.rb +25 -5
- 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 +40 -5
- data/lib/wallee-ruby-sdk/models/payment_link_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +44 -5
- data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_link_update.rb +16 -5
- 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 +17 -16
- data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +146 -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 +1 -5
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_terminal_contact_address.rb +396 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +27 -6
- 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_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/payment_terminal_type.rb +5 -21
- data/lib/wallee-ruby-sdk/models/permission.rb +1 -5
- 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/refund.rb +76 -6
- 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_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 +203 -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 +1 -5
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +215 -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_integration.rb +428 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration_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_reference.rb → shopify_subscriber.rb} +41 -25
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +321 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +606 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_edit_model_item.rb +233 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_edit_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_active.rb +361 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +371 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_device_state.rb → shopify_subscription_product_state.rb} +8 -11
- 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/shopify_subscription_suspension_create.rb +226 -0
- 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_request.rb +303 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +453 -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/{payment_terminal_device_model.rb → shopify_transaction.rb} +64 -50
- data/lib/wallee-ruby-sdk/models/shopify_transaction_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/space.rb +46 -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 +25 -5
- 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 +25 -5
- 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 +46 -5
- data/lib/wallee-ruby-sdk/models/subscriber_active.rb +46 -5
- data/lib/wallee-ruby-sdk/models/subscriber_create.rb +46 -5
- data/lib/wallee-ruby-sdk/models/subscriber_update.rb +46 -5
- data/lib/wallee-ruby-sdk/models/subscription.rb +52 -6
- data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +73 -5
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +86 -5
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +73 -5
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +73 -5
- 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 +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +16 -5
- 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 +14 -6
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +25 -5
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +29 -5
- 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 +31 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +32 -6
- 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 +32 -6
- data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +35 -5
- 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 +16 -5
- data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +1 -5
- 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_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_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/token.rb +55 -5
- data/lib/wallee-ruby-sdk/models/token_create.rb +59 -5
- 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/transaction.rb +126 -6
- 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 +25 -5
- data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +29 -5
- data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +0 -4
- data/lib/wallee-ruby-sdk/models/transaction_create.rb +96 -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 +61 -5
- 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/unencrypted_card_data.rb +64 -5
- data/lib/wallee-ruby-sdk/models/unencrypted_card_data_create.rb +68 -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/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 +16 -5
- data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +16 -5
- data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +16 -5
- data/lib/wallee-ruby-sdk/version.rb +1 -5
- data/test/transaction_create_service_test.rb +2 -2
- data/test/transaction_payment_page_service_test.rb +3 -3
- data/wallee-ruby-sdk.gemspec +1 -5
- metadata +77 -11
|
@@ -0,0 +1,215 @@
|
|
|
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 SalesChannel
|
|
23
|
+
#
|
|
24
|
+
attr_accessor :description
|
|
25
|
+
|
|
26
|
+
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
|
27
|
+
attr_accessor :id
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
attr_accessor :name
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
def self.attribute_map
|
|
34
|
+
{
|
|
35
|
+
:'description' => :'description',
|
|
36
|
+
:'id' => :'id',
|
|
37
|
+
:'name' => :'name'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
def self.swagger_types
|
|
43
|
+
{
|
|
44
|
+
:'description' => :'Hash<String, String>',
|
|
45
|
+
:'id' => :'Integer',
|
|
46
|
+
:'name' => :'Hash<String, String>'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
return unless attributes.is_a?(Hash)
|
|
54
|
+
|
|
55
|
+
# convert string to symbol for hash key
|
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
57
|
+
|
|
58
|
+
if attributes.has_key?(:'description')
|
|
59
|
+
if (value = attributes[:'description']).is_a?(Hash)
|
|
60
|
+
self.description = value
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
if attributes.has_key?(:'id')
|
|
65
|
+
self.id = attributes[:'id']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'name')
|
|
69
|
+
if (value = attributes[:'name']).is_a?(Hash)
|
|
70
|
+
self.name = value
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
76
|
+
# @return Array for valid properties with the reasons
|
|
77
|
+
def list_invalid_properties
|
|
78
|
+
invalid_properties = Array.new
|
|
79
|
+
invalid_properties
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Check to see if the all the properties in the model are valid
|
|
83
|
+
# @return true if the model is valid
|
|
84
|
+
def valid?
|
|
85
|
+
true
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param [Object] Object to be compared
|
|
90
|
+
def ==(o)
|
|
91
|
+
return true if self.equal?(o)
|
|
92
|
+
self.class == o.class &&
|
|
93
|
+
description == o.description &&
|
|
94
|
+
id == o.id &&
|
|
95
|
+
name == o.name
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# @see the `==` method
|
|
99
|
+
# @param [Object] Object to be compared
|
|
100
|
+
def eql?(o)
|
|
101
|
+
self == o
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Calculates hash code according to all attributes.
|
|
105
|
+
# @return [Fixnum] Hash code
|
|
106
|
+
def hash
|
|
107
|
+
[description, id, name].hash
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Builds the object from hash
|
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
112
|
+
# @return [Object] Returns the model itself
|
|
113
|
+
def build_from_hash(attributes)
|
|
114
|
+
return nil unless attributes.is_a?(Hash)
|
|
115
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
116
|
+
if type =~ /\AArray<(.*)>/i
|
|
117
|
+
# check to ensure the input is an array given that the attribute
|
|
118
|
+
# is documented as an array but the input is not
|
|
119
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
120
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
121
|
+
end
|
|
122
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
123
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
124
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
self
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Deserializes the data based on type
|
|
131
|
+
# @param string type Data type
|
|
132
|
+
# @param string value Value to be deserialized
|
|
133
|
+
# @return [Object] Deserialized data
|
|
134
|
+
def _deserialize(type, value)
|
|
135
|
+
case type.to_sym
|
|
136
|
+
when :DateTime
|
|
137
|
+
DateTime.parse(value)
|
|
138
|
+
when :Date
|
|
139
|
+
Date.parse(value)
|
|
140
|
+
when :String
|
|
141
|
+
value.to_s
|
|
142
|
+
when :Integer
|
|
143
|
+
value.to_i
|
|
144
|
+
when :Float
|
|
145
|
+
value.to_f
|
|
146
|
+
when :BOOLEAN
|
|
147
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
148
|
+
true
|
|
149
|
+
else
|
|
150
|
+
false
|
|
151
|
+
end
|
|
152
|
+
when :Object
|
|
153
|
+
# generic object (usually a Hash), return directly
|
|
154
|
+
value
|
|
155
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
156
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
157
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
158
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
159
|
+
k_type = Regexp.last_match[:k_type]
|
|
160
|
+
v_type = Regexp.last_match[:v_type]
|
|
161
|
+
{}.tap do |hash|
|
|
162
|
+
value.each do |k, v|
|
|
163
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
else # model
|
|
167
|
+
temp_model = Wallee.const_get(type).new
|
|
168
|
+
temp_model.build_from_hash(value)
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Returns the string representation of the object
|
|
173
|
+
# @return [String] String presentation of the object
|
|
174
|
+
def to_s
|
|
175
|
+
to_hash.to_s
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
|
180
|
+
def to_body
|
|
181
|
+
to_hash
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Returns the object in the form of hash
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
def to_hash
|
|
187
|
+
hash = {}
|
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
189
|
+
value = self.send(attr)
|
|
190
|
+
next if value.nil?
|
|
191
|
+
hash[param] = _to_hash(value)
|
|
192
|
+
end
|
|
193
|
+
hash
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Outputs non-array value in the form of hash
|
|
197
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
198
|
+
# @param [Object] value Any valid value
|
|
199
|
+
# @return [Hash] Returns the value in the form of hash
|
|
200
|
+
def _to_hash(value)
|
|
201
|
+
if value.is_a?(Array)
|
|
202
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
203
|
+
elsif value.is_a?(Hash)
|
|
204
|
+
{}.tap do |hash|
|
|
205
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
206
|
+
end
|
|
207
|
+
elsif value.respond_to? :to_hash
|
|
208
|
+
value.to_hash
|
|
209
|
+
else
|
|
210
|
+
value
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
end
|
|
215
|
+
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
|
|
@@ -33,6 +29,9 @@ module Wallee
|
|
|
33
29
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
|
34
30
|
attr_accessor :id
|
|
35
31
|
|
|
32
|
+
#
|
|
33
|
+
attr_accessor :machine_name
|
|
34
|
+
|
|
36
35
|
# The name of the scope is shown to the user where the user should select a scope.
|
|
37
36
|
attr_accessor :name
|
|
38
37
|
|
|
@@ -63,6 +62,7 @@ module Wallee
|
|
|
63
62
|
:'domain_name' => :'domainName',
|
|
64
63
|
:'features' => :'features',
|
|
65
64
|
:'id' => :'id',
|
|
65
|
+
:'machine_name' => :'machineName',
|
|
66
66
|
:'name' => :'name',
|
|
67
67
|
:'planned_purge_date' => :'plannedPurgeDate',
|
|
68
68
|
:'port' => :'port',
|
|
@@ -80,6 +80,7 @@ module Wallee
|
|
|
80
80
|
:'domain_name' => :'String',
|
|
81
81
|
:'features' => :'Array<Feature>',
|
|
82
82
|
:'id' => :'Integer',
|
|
83
|
+
:'machine_name' => :'String',
|
|
83
84
|
:'name' => :'String',
|
|
84
85
|
:'planned_purge_date' => :'DateTime',
|
|
85
86
|
:'port' => :'Integer',
|
|
@@ -113,6 +114,10 @@ module Wallee
|
|
|
113
114
|
self.id = attributes[:'id']
|
|
114
115
|
end
|
|
115
116
|
|
|
117
|
+
if attributes.has_key?(:'machineName')
|
|
118
|
+
self.machine_name = attributes[:'machineName']
|
|
119
|
+
end
|
|
120
|
+
|
|
116
121
|
if attributes.has_key?(:'name')
|
|
117
122
|
self.name = attributes[:'name']
|
|
118
123
|
end
|
|
@@ -152,15 +157,60 @@ module Wallee
|
|
|
152
157
|
# @return Array for valid properties with the reasons
|
|
153
158
|
def list_invalid_properties
|
|
154
159
|
invalid_properties = Array.new
|
|
160
|
+
if !@domain_name.nil? && @domain_name.to_s.length > 40
|
|
161
|
+
invalid_properties.push('invalid value for "domain_name", the character length must be smaller than or equal to 40.')
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if !@machine_name.nil? && @machine_name.to_s.length > 50
|
|
165
|
+
invalid_properties.push('invalid value for "machine_name", the character length must be smaller than or equal to 50.')
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if !@name.nil? && @name.to_s.length > 50
|
|
169
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
|
|
170
|
+
end
|
|
171
|
+
|
|
155
172
|
invalid_properties
|
|
156
173
|
end
|
|
157
174
|
|
|
158
175
|
# Check to see if the all the properties in the model are valid
|
|
159
176
|
# @return true if the model is valid
|
|
160
177
|
def valid?
|
|
178
|
+
return false if !@domain_name.nil? && @domain_name.to_s.length > 40
|
|
179
|
+
return false if !@machine_name.nil? && @machine_name.to_s.length > 50
|
|
180
|
+
return false if !@name.nil? && @name.to_s.length > 50
|
|
161
181
|
true
|
|
162
182
|
end
|
|
163
183
|
|
|
184
|
+
# Custom attribute writer method with validation
|
|
185
|
+
# @param [Object] domain_name Value to be assigned
|
|
186
|
+
def domain_name=(domain_name)
|
|
187
|
+
if !domain_name.nil? && domain_name.to_s.length > 40
|
|
188
|
+
fail ArgumentError, 'invalid value for "domain_name", the character length must be smaller than or equal to 40.'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
@domain_name = domain_name
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Custom attribute writer method with validation
|
|
195
|
+
# @param [Object] machine_name Value to be assigned
|
|
196
|
+
def machine_name=(machine_name)
|
|
197
|
+
if !machine_name.nil? && machine_name.to_s.length > 50
|
|
198
|
+
fail ArgumentError, 'invalid value for "machine_name", the character length must be smaller than or equal to 50.'
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
@machine_name = machine_name
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Custom attribute writer method with validation
|
|
205
|
+
# @param [Object] name Value to be assigned
|
|
206
|
+
def name=(name)
|
|
207
|
+
if !name.nil? && name.to_s.length > 50
|
|
208
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 50.'
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
@name = name
|
|
212
|
+
end
|
|
213
|
+
|
|
164
214
|
# Checks equality by comparing each attribute.
|
|
165
215
|
# @param [Object] Object to be compared
|
|
166
216
|
def ==(o)
|
|
@@ -169,6 +219,7 @@ module Wallee
|
|
|
169
219
|
domain_name == o.domain_name &&
|
|
170
220
|
features == o.features &&
|
|
171
221
|
id == o.id &&
|
|
222
|
+
machine_name == o.machine_name &&
|
|
172
223
|
name == o.name &&
|
|
173
224
|
planned_purge_date == o.planned_purge_date &&
|
|
174
225
|
port == o.port &&
|
|
@@ -188,7 +239,7 @@ module Wallee
|
|
|
188
239
|
# Calculates hash code according to all attributes.
|
|
189
240
|
# @return [Fixnum] Hash code
|
|
190
241
|
def hash
|
|
191
|
-
[domain_name, features, id, name, planned_purge_date, port, ssl_active, state, themes, url, version].hash
|
|
242
|
+
[domain_name, features, id, machine_name, name, planned_purge_date, port, ssl_active, state, themes, url, version].hash
|
|
192
243
|
end
|
|
193
244
|
|
|
194
245
|
# Builds the object from hash
|
|
@@ -198,7 +249,7 @@ module Wallee
|
|
|
198
249
|
return nil unless attributes.is_a?(Hash)
|
|
199
250
|
self.class.swagger_types.each_pair do |key, type|
|
|
200
251
|
if type =~ /\AArray<(.*)>/i
|
|
201
|
-
# check to ensure the input is an array given that the
|
|
252
|
+
# check to ensure the input is an array given that the attribute
|
|
202
253
|
# is documented as an array but the input is not
|
|
203
254
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
204
255
|
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
|
|
@@ -114,7 +110,7 @@ module Wallee
|
|
|
114
110
|
return nil unless attributes.is_a?(Hash)
|
|
115
111
|
self.class.swagger_types.each_pair do |key, type|
|
|
116
112
|
if type =~ /\AArray<(.*)>/i
|
|
117
|
-
# check to ensure the input is an array given that the
|
|
113
|
+
# check to ensure the input is an array given that the attribute
|
|
118
114
|
# is documented as an array but the input is not
|
|
119
115
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
120
116
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
@@ -0,0 +1,428 @@
|
|
|
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
|
+
# A Shopify Integration allows to connect a Shopify shop.
|
|
22
|
+
class ShopifyIntegration
|
|
23
|
+
#
|
|
24
|
+
attr_accessor :allow_invoice_download
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
attr_accessor :allowed_payment_method_configurations
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
attr_accessor :app_version
|
|
31
|
+
|
|
32
|
+
#
|
|
33
|
+
attr_accessor :currency
|
|
34
|
+
|
|
35
|
+
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
|
36
|
+
attr_accessor :id
|
|
37
|
+
|
|
38
|
+
#
|
|
39
|
+
attr_accessor :installed
|
|
40
|
+
|
|
41
|
+
# Enabling the integrated payment form will embed the payment form in the Shopify shop. The app needs to be installed for this to be possible.
|
|
42
|
+
attr_accessor :integrated_payment_form_enabled
|
|
43
|
+
|
|
44
|
+
# The checkout language forces a specific language in the checkout. Without a checkout language the browser setting of the buyer is used to determine the language.
|
|
45
|
+
attr_accessor :language
|
|
46
|
+
|
|
47
|
+
# The login name is used to link a specific Shopify payment gateway to this integration.This login name is to be filled into the appropriate field in the shops payment gateway configuration.
|
|
48
|
+
attr_accessor :login_name
|
|
49
|
+
|
|
50
|
+
# The integration name is used internally to identify a specific integration.For example the name is used withinsearch fields and hence it should be distinct and descriptive.
|
|
51
|
+
attr_accessor :name
|
|
52
|
+
|
|
53
|
+
# The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
|
|
54
|
+
attr_accessor :planned_purge_date
|
|
55
|
+
|
|
56
|
+
# Define the path of the proxy URL. This only needs to be changed if the apps proxy URL is overwritten in the Shopify store.
|
|
57
|
+
attr_accessor :proxy_path
|
|
58
|
+
|
|
59
|
+
#
|
|
60
|
+
attr_accessor :replace_payment_method_image
|
|
61
|
+
|
|
62
|
+
# The store address is used to link a specific Shopify shop to this integration. This is the name used in the Shopifys admin URL: [storeAddress].myshopify.com
|
|
63
|
+
attr_accessor :shop_name
|
|
64
|
+
|
|
65
|
+
#
|
|
66
|
+
attr_accessor :show_payment_information
|
|
67
|
+
|
|
68
|
+
#
|
|
69
|
+
attr_accessor :show_subscription_information
|
|
70
|
+
|
|
71
|
+
#
|
|
72
|
+
attr_accessor :space_id
|
|
73
|
+
|
|
74
|
+
#
|
|
75
|
+
attr_accessor :space_view_id
|
|
76
|
+
|
|
77
|
+
#
|
|
78
|
+
attr_accessor :state
|
|
79
|
+
|
|
80
|
+
# The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
|
|
81
|
+
attr_accessor :version
|
|
82
|
+
|
|
83
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
84
|
+
def self.attribute_map
|
|
85
|
+
{
|
|
86
|
+
:'allow_invoice_download' => :'allowInvoiceDownload',
|
|
87
|
+
:'allowed_payment_method_configurations' => :'allowedPaymentMethodConfigurations',
|
|
88
|
+
:'app_version' => :'appVersion',
|
|
89
|
+
:'currency' => :'currency',
|
|
90
|
+
:'id' => :'id',
|
|
91
|
+
:'installed' => :'installed',
|
|
92
|
+
:'integrated_payment_form_enabled' => :'integratedPaymentFormEnabled',
|
|
93
|
+
:'language' => :'language',
|
|
94
|
+
:'login_name' => :'loginName',
|
|
95
|
+
:'name' => :'name',
|
|
96
|
+
:'planned_purge_date' => :'plannedPurgeDate',
|
|
97
|
+
:'proxy_path' => :'proxyPath',
|
|
98
|
+
:'replace_payment_method_image' => :'replacePaymentMethodImage',
|
|
99
|
+
:'shop_name' => :'shopName',
|
|
100
|
+
:'show_payment_information' => :'showPaymentInformation',
|
|
101
|
+
:'show_subscription_information' => :'showSubscriptionInformation',
|
|
102
|
+
:'space_id' => :'spaceId',
|
|
103
|
+
:'space_view_id' => :'spaceViewId',
|
|
104
|
+
:'state' => :'state',
|
|
105
|
+
:'version' => :'version'
|
|
106
|
+
}
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Attribute type mapping.
|
|
110
|
+
def self.swagger_types
|
|
111
|
+
{
|
|
112
|
+
:'allow_invoice_download' => :'BOOLEAN',
|
|
113
|
+
:'allowed_payment_method_configurations' => :'Array<PaymentMethodConfiguration>',
|
|
114
|
+
:'app_version' => :'ShopifyIntegrationAppVersion',
|
|
115
|
+
:'currency' => :'String',
|
|
116
|
+
:'id' => :'Integer',
|
|
117
|
+
:'installed' => :'BOOLEAN',
|
|
118
|
+
:'integrated_payment_form_enabled' => :'BOOLEAN',
|
|
119
|
+
:'language' => :'String',
|
|
120
|
+
:'login_name' => :'String',
|
|
121
|
+
:'name' => :'String',
|
|
122
|
+
:'planned_purge_date' => :'DateTime',
|
|
123
|
+
:'proxy_path' => :'String',
|
|
124
|
+
:'replace_payment_method_image' => :'BOOLEAN',
|
|
125
|
+
:'shop_name' => :'String',
|
|
126
|
+
:'show_payment_information' => :'BOOLEAN',
|
|
127
|
+
:'show_subscription_information' => :'BOOLEAN',
|
|
128
|
+
:'space_id' => :'Integer',
|
|
129
|
+
:'space_view_id' => :'Integer',
|
|
130
|
+
:'state' => :'CreationEntityState',
|
|
131
|
+
:'version' => :'Integer'
|
|
132
|
+
}
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Initializes the object
|
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
137
|
+
def initialize(attributes = {})
|
|
138
|
+
return unless attributes.is_a?(Hash)
|
|
139
|
+
|
|
140
|
+
# convert string to symbol for hash key
|
|
141
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
142
|
+
|
|
143
|
+
if attributes.has_key?(:'allowInvoiceDownload')
|
|
144
|
+
self.allow_invoice_download = attributes[:'allowInvoiceDownload']
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.has_key?(:'allowedPaymentMethodConfigurations')
|
|
148
|
+
if (value = attributes[:'allowedPaymentMethodConfigurations']).is_a?(Array)
|
|
149
|
+
self.allowed_payment_method_configurations = value
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.has_key?(:'appVersion')
|
|
154
|
+
self.app_version = attributes[:'appVersion']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.has_key?(:'currency')
|
|
158
|
+
self.currency = attributes[:'currency']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.has_key?(:'id')
|
|
162
|
+
self.id = attributes[:'id']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.has_key?(:'installed')
|
|
166
|
+
self.installed = attributes[:'installed']
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if attributes.has_key?(:'integratedPaymentFormEnabled')
|
|
170
|
+
self.integrated_payment_form_enabled = attributes[:'integratedPaymentFormEnabled']
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
if attributes.has_key?(:'language')
|
|
174
|
+
self.language = attributes[:'language']
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
if attributes.has_key?(:'loginName')
|
|
178
|
+
self.login_name = attributes[:'loginName']
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
if attributes.has_key?(:'name')
|
|
182
|
+
self.name = attributes[:'name']
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
if attributes.has_key?(:'plannedPurgeDate')
|
|
186
|
+
self.planned_purge_date = attributes[:'plannedPurgeDate']
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
if attributes.has_key?(:'proxyPath')
|
|
190
|
+
self.proxy_path = attributes[:'proxyPath']
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if attributes.has_key?(:'replacePaymentMethodImage')
|
|
194
|
+
self.replace_payment_method_image = attributes[:'replacePaymentMethodImage']
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
if attributes.has_key?(:'shopName')
|
|
198
|
+
self.shop_name = attributes[:'shopName']
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
if attributes.has_key?(:'showPaymentInformation')
|
|
202
|
+
self.show_payment_information = attributes[:'showPaymentInformation']
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if attributes.has_key?(:'showSubscriptionInformation')
|
|
206
|
+
self.show_subscription_information = attributes[:'showSubscriptionInformation']
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.has_key?(:'spaceId')
|
|
210
|
+
self.space_id = attributes[:'spaceId']
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.has_key?(:'spaceViewId')
|
|
214
|
+
self.space_view_id = attributes[:'spaceViewId']
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if attributes.has_key?(:'state')
|
|
218
|
+
self.state = attributes[:'state']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.has_key?(:'version')
|
|
222
|
+
self.version = attributes[:'version']
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
227
|
+
# @return Array for valid properties with the reasons
|
|
228
|
+
def list_invalid_properties
|
|
229
|
+
invalid_properties = Array.new
|
|
230
|
+
if !@login_name.nil? && @login_name.to_s.length > 100
|
|
231
|
+
invalid_properties.push('invalid value for "login_name", the character length must be smaller than or equal to 100.')
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if !@name.nil? && @name.to_s.length > 100
|
|
235
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if !@shop_name.nil? && @shop_name.to_s.length > 100
|
|
239
|
+
invalid_properties.push('invalid value for "shop_name", the character length must be smaller than or equal to 100.')
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
invalid_properties
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Check to see if the all the properties in the model are valid
|
|
246
|
+
# @return true if the model is valid
|
|
247
|
+
def valid?
|
|
248
|
+
return false if !@login_name.nil? && @login_name.to_s.length > 100
|
|
249
|
+
return false if !@name.nil? && @name.to_s.length > 100
|
|
250
|
+
return false if !@shop_name.nil? && @shop_name.to_s.length > 100
|
|
251
|
+
true
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Custom attribute writer method with validation
|
|
255
|
+
# @param [Object] login_name Value to be assigned
|
|
256
|
+
def login_name=(login_name)
|
|
257
|
+
if !login_name.nil? && login_name.to_s.length > 100
|
|
258
|
+
fail ArgumentError, 'invalid value for "login_name", the character length must be smaller than or equal to 100.'
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
@login_name = login_name
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# Custom attribute writer method with validation
|
|
265
|
+
# @param [Object] name Value to be assigned
|
|
266
|
+
def name=(name)
|
|
267
|
+
if !name.nil? && name.to_s.length > 100
|
|
268
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
@name = name
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Custom attribute writer method with validation
|
|
275
|
+
# @param [Object] shop_name Value to be assigned
|
|
276
|
+
def shop_name=(shop_name)
|
|
277
|
+
if !shop_name.nil? && shop_name.to_s.length > 100
|
|
278
|
+
fail ArgumentError, 'invalid value for "shop_name", the character length must be smaller than or equal to 100.'
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
@shop_name = shop_name
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# Checks equality by comparing each attribute.
|
|
285
|
+
# @param [Object] Object to be compared
|
|
286
|
+
def ==(o)
|
|
287
|
+
return true if self.equal?(o)
|
|
288
|
+
self.class == o.class &&
|
|
289
|
+
allow_invoice_download == o.allow_invoice_download &&
|
|
290
|
+
allowed_payment_method_configurations == o.allowed_payment_method_configurations &&
|
|
291
|
+
app_version == o.app_version &&
|
|
292
|
+
currency == o.currency &&
|
|
293
|
+
id == o.id &&
|
|
294
|
+
installed == o.installed &&
|
|
295
|
+
integrated_payment_form_enabled == o.integrated_payment_form_enabled &&
|
|
296
|
+
language == o.language &&
|
|
297
|
+
login_name == o.login_name &&
|
|
298
|
+
name == o.name &&
|
|
299
|
+
planned_purge_date == o.planned_purge_date &&
|
|
300
|
+
proxy_path == o.proxy_path &&
|
|
301
|
+
replace_payment_method_image == o.replace_payment_method_image &&
|
|
302
|
+
shop_name == o.shop_name &&
|
|
303
|
+
show_payment_information == o.show_payment_information &&
|
|
304
|
+
show_subscription_information == o.show_subscription_information &&
|
|
305
|
+
space_id == o.space_id &&
|
|
306
|
+
space_view_id == o.space_view_id &&
|
|
307
|
+
state == o.state &&
|
|
308
|
+
version == o.version
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# @see the `==` method
|
|
312
|
+
# @param [Object] Object to be compared
|
|
313
|
+
def eql?(o)
|
|
314
|
+
self == o
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# Calculates hash code according to all attributes.
|
|
318
|
+
# @return [Fixnum] Hash code
|
|
319
|
+
def hash
|
|
320
|
+
[allow_invoice_download, allowed_payment_method_configurations, app_version, currency, id, installed, integrated_payment_form_enabled, language, login_name, name, planned_purge_date, proxy_path, replace_payment_method_image, shop_name, show_payment_information, show_subscription_information, space_id, space_view_id, state, version].hash
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# Builds the object from hash
|
|
324
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
325
|
+
# @return [Object] Returns the model itself
|
|
326
|
+
def build_from_hash(attributes)
|
|
327
|
+
return nil unless attributes.is_a?(Hash)
|
|
328
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
329
|
+
if type =~ /\AArray<(.*)>/i
|
|
330
|
+
# check to ensure the input is an array given that the attribute
|
|
331
|
+
# is documented as an array but the input is not
|
|
332
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
333
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
334
|
+
end
|
|
335
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
336
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
337
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
self
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Deserializes the data based on type
|
|
344
|
+
# @param string type Data type
|
|
345
|
+
# @param string value Value to be deserialized
|
|
346
|
+
# @return [Object] Deserialized data
|
|
347
|
+
def _deserialize(type, value)
|
|
348
|
+
case type.to_sym
|
|
349
|
+
when :DateTime
|
|
350
|
+
DateTime.parse(value)
|
|
351
|
+
when :Date
|
|
352
|
+
Date.parse(value)
|
|
353
|
+
when :String
|
|
354
|
+
value.to_s
|
|
355
|
+
when :Integer
|
|
356
|
+
value.to_i
|
|
357
|
+
when :Float
|
|
358
|
+
value.to_f
|
|
359
|
+
when :BOOLEAN
|
|
360
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
361
|
+
true
|
|
362
|
+
else
|
|
363
|
+
false
|
|
364
|
+
end
|
|
365
|
+
when :Object
|
|
366
|
+
# generic object (usually a Hash), return directly
|
|
367
|
+
value
|
|
368
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
369
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
370
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
371
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
372
|
+
k_type = Regexp.last_match[:k_type]
|
|
373
|
+
v_type = Regexp.last_match[:v_type]
|
|
374
|
+
{}.tap do |hash|
|
|
375
|
+
value.each do |k, v|
|
|
376
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
377
|
+
end
|
|
378
|
+
end
|
|
379
|
+
else # model
|
|
380
|
+
temp_model = Wallee.const_get(type).new
|
|
381
|
+
temp_model.build_from_hash(value)
|
|
382
|
+
end
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
# Returns the string representation of the object
|
|
386
|
+
# @return [String] String presentation of the object
|
|
387
|
+
def to_s
|
|
388
|
+
to_hash.to_s
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
392
|
+
# @return [Hash] Returns the object in the form of hash
|
|
393
|
+
def to_body
|
|
394
|
+
to_hash
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# Returns the object in the form of hash
|
|
398
|
+
# @return [Hash] Returns the object in the form of hash
|
|
399
|
+
def to_hash
|
|
400
|
+
hash = {}
|
|
401
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
402
|
+
value = self.send(attr)
|
|
403
|
+
next if value.nil?
|
|
404
|
+
hash[param] = _to_hash(value)
|
|
405
|
+
end
|
|
406
|
+
hash
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# Outputs non-array value in the form of hash
|
|
410
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
411
|
+
# @param [Object] value Any valid value
|
|
412
|
+
# @return [Hash] Returns the value in the form of hash
|
|
413
|
+
def _to_hash(value)
|
|
414
|
+
if value.is_a?(Array)
|
|
415
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
416
|
+
elsif value.is_a?(Hash)
|
|
417
|
+
{}.tap do |hash|
|
|
418
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
419
|
+
end
|
|
420
|
+
elsif value.respond_to? :to_hash
|
|
421
|
+
value.to_hash
|
|
422
|
+
else
|
|
423
|
+
value
|
|
424
|
+
end
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
end
|
|
428
|
+
end
|