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
|
@@ -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
|
|
@@ -86,15 +82,30 @@ module Wallee
|
|
|
86
82
|
# @return Array for valid properties with the reasons
|
|
87
83
|
def list_invalid_properties
|
|
88
84
|
invalid_properties = Array.new
|
|
85
|
+
if !@name.nil? && @name.to_s.length > 50
|
|
86
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
|
|
87
|
+
end
|
|
88
|
+
|
|
89
89
|
invalid_properties
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
# Check to see if the all the properties in the model are valid
|
|
93
93
|
# @return true if the model is valid
|
|
94
94
|
def valid?
|
|
95
|
+
return false if !@name.nil? && @name.to_s.length > 50
|
|
95
96
|
true
|
|
96
97
|
end
|
|
97
98
|
|
|
99
|
+
# Custom attribute writer method with validation
|
|
100
|
+
# @param [Object] name Value to be assigned
|
|
101
|
+
def name=(name)
|
|
102
|
+
if !name.nil? && name.to_s.length > 50
|
|
103
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 50.'
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
@name = name
|
|
107
|
+
end
|
|
108
|
+
|
|
98
109
|
# Checks equality by comparing each attribute.
|
|
99
110
|
# @param [Object] Object to be compared
|
|
100
111
|
def ==(o)
|
|
@@ -125,7 +136,7 @@ module Wallee
|
|
|
125
136
|
return nil unless attributes.is_a?(Hash)
|
|
126
137
|
self.class.swagger_types.each_pair do |key, type|
|
|
127
138
|
if type =~ /\AArray<(.*)>/i
|
|
128
|
-
# check to ensure the input is an array given that the
|
|
139
|
+
# check to ensure the input is an array given that the attribute
|
|
129
140
|
# is documented as an array but the input is not
|
|
130
141
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
131
142
|
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
|
|
@@ -75,15 +71,30 @@ module Wallee
|
|
|
75
71
|
# @return Array for valid properties with the reasons
|
|
76
72
|
def list_invalid_properties
|
|
77
73
|
invalid_properties = Array.new
|
|
74
|
+
if !@name.nil? && @name.to_s.length > 50
|
|
75
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
|
|
76
|
+
end
|
|
77
|
+
|
|
78
78
|
invalid_properties
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
# Check to see if the all the properties in the model are valid
|
|
82
82
|
# @return true if the model is valid
|
|
83
83
|
def valid?
|
|
84
|
+
return false if !@name.nil? && @name.to_s.length > 50
|
|
84
85
|
true
|
|
85
86
|
end
|
|
86
87
|
|
|
88
|
+
# Custom attribute writer method with validation
|
|
89
|
+
# @param [Object] name Value to be assigned
|
|
90
|
+
def name=(name)
|
|
91
|
+
if !name.nil? && name.to_s.length > 50
|
|
92
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 50.'
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
@name = name
|
|
96
|
+
end
|
|
97
|
+
|
|
87
98
|
# Checks equality by comparing each attribute.
|
|
88
99
|
# @param [Object] Object to be compared
|
|
89
100
|
def ==(o)
|
|
@@ -113,7 +124,7 @@ module Wallee
|
|
|
113
124
|
return nil unless attributes.is_a?(Hash)
|
|
114
125
|
self.class.swagger_types.each_pair do |key, type|
|
|
115
126
|
if type =~ /\AArray<(.*)>/i
|
|
116
|
-
# check to ensure the input is an array given that the
|
|
127
|
+
# check to ensure the input is an array given that the attribute
|
|
117
128
|
# is documented as an array but the input is not
|
|
118
129
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
119
130
|
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
|
|
@@ -30,6 +26,12 @@ module Wallee
|
|
|
30
26
|
# This property is true when all accounts in the hierarchy are active or restricted active.
|
|
31
27
|
attr_accessor :active_or_restricted_active
|
|
32
28
|
|
|
29
|
+
# The ID of a user that deleted this entity.
|
|
30
|
+
attr_accessor :deleted_by
|
|
31
|
+
|
|
32
|
+
# The date and time when this entity was deleted.
|
|
33
|
+
attr_accessor :deleted_on
|
|
34
|
+
|
|
33
35
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
|
34
36
|
attr_accessor :id
|
|
35
37
|
|
|
@@ -65,6 +67,8 @@ module Wallee
|
|
|
65
67
|
{
|
|
66
68
|
:'active' => :'active',
|
|
67
69
|
:'active_or_restricted_active' => :'activeOrRestrictedActive',
|
|
70
|
+
:'deleted_by' => :'deletedBy',
|
|
71
|
+
:'deleted_on' => :'deletedOn',
|
|
68
72
|
:'id' => :'id',
|
|
69
73
|
:'name' => :'name',
|
|
70
74
|
:'parent_account' => :'parentAccount',
|
|
@@ -83,6 +87,8 @@ module Wallee
|
|
|
83
87
|
{
|
|
84
88
|
:'active' => :'BOOLEAN',
|
|
85
89
|
:'active_or_restricted_active' => :'BOOLEAN',
|
|
90
|
+
:'deleted_by' => :'Integer',
|
|
91
|
+
:'deleted_on' => :'DateTime',
|
|
86
92
|
:'id' => :'Integer',
|
|
87
93
|
:'name' => :'String',
|
|
88
94
|
:'parent_account' => :'Account',
|
|
@@ -112,6 +118,14 @@ module Wallee
|
|
|
112
118
|
self.active_or_restricted_active = attributes[:'activeOrRestrictedActive']
|
|
113
119
|
end
|
|
114
120
|
|
|
121
|
+
if attributes.has_key?(:'deletedBy')
|
|
122
|
+
self.deleted_by = attributes[:'deletedBy']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.has_key?(:'deletedOn')
|
|
126
|
+
self.deleted_on = attributes[:'deletedOn']
|
|
127
|
+
end
|
|
128
|
+
|
|
115
129
|
if attributes.has_key?(:'id')
|
|
116
130
|
self.id = attributes[:'id']
|
|
117
131
|
end
|
|
@@ -157,15 +171,39 @@ module Wallee
|
|
|
157
171
|
# @return Array for valid properties with the reasons
|
|
158
172
|
def list_invalid_properties
|
|
159
173
|
invalid_properties = Array.new
|
|
174
|
+
if !@name.nil? && @name.to_s.length > 200
|
|
175
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 200.')
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if !@name.nil? && @name.to_s.length < 3
|
|
179
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
|
180
|
+
end
|
|
181
|
+
|
|
160
182
|
invalid_properties
|
|
161
183
|
end
|
|
162
184
|
|
|
163
185
|
# Check to see if the all the properties in the model are valid
|
|
164
186
|
# @return true if the model is valid
|
|
165
187
|
def valid?
|
|
188
|
+
return false if !@name.nil? && @name.to_s.length > 200
|
|
189
|
+
return false if !@name.nil? && @name.to_s.length < 3
|
|
166
190
|
true
|
|
167
191
|
end
|
|
168
192
|
|
|
193
|
+
# Custom attribute writer method with validation
|
|
194
|
+
# @param [Object] name Value to be assigned
|
|
195
|
+
def name=(name)
|
|
196
|
+
if !name.nil? && name.to_s.length > 200
|
|
197
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 200.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if !name.nil? && name.to_s.length < 3
|
|
201
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
@name = name
|
|
205
|
+
end
|
|
206
|
+
|
|
169
207
|
# Checks equality by comparing each attribute.
|
|
170
208
|
# @param [Object] Object to be compared
|
|
171
209
|
def ==(o)
|
|
@@ -173,6 +211,8 @@ module Wallee
|
|
|
173
211
|
self.class == o.class &&
|
|
174
212
|
active == o.active &&
|
|
175
213
|
active_or_restricted_active == o.active_or_restricted_active &&
|
|
214
|
+
deleted_by == o.deleted_by &&
|
|
215
|
+
deleted_on == o.deleted_on &&
|
|
176
216
|
id == o.id &&
|
|
177
217
|
name == o.name &&
|
|
178
218
|
parent_account == o.parent_account &&
|
|
@@ -194,7 +234,7 @@ module Wallee
|
|
|
194
234
|
# Calculates hash code according to all attributes.
|
|
195
235
|
# @return [Fixnum] Hash code
|
|
196
236
|
def hash
|
|
197
|
-
[active, active_or_restricted_active, id, name, parent_account, planned_purge_date, restricted_active, scope, state, subaccount_limit, type, version].hash
|
|
237
|
+
[active, active_or_restricted_active, deleted_by, deleted_on, id, name, parent_account, planned_purge_date, restricted_active, scope, state, subaccount_limit, type, version].hash
|
|
198
238
|
end
|
|
199
239
|
|
|
200
240
|
# Builds the object from hash
|
|
@@ -204,7 +244,7 @@ module Wallee
|
|
|
204
244
|
return nil unless attributes.is_a?(Hash)
|
|
205
245
|
self.class.swagger_types.each_pair do |key, type|
|
|
206
246
|
if type =~ /\AArray<(.*)>/i
|
|
207
|
-
# check to ensure the input is an array given that the
|
|
247
|
+
# check to ensure the input is an array given that the attribute
|
|
208
248
|
# is documented as an array but the input is not
|
|
209
249
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
210
250
|
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
|
|
@@ -85,6 +81,14 @@ module Wallee
|
|
|
85
81
|
# @return Array for valid properties with the reasons
|
|
86
82
|
def list_invalid_properties
|
|
87
83
|
invalid_properties = Array.new
|
|
84
|
+
if !@name.nil? && @name.to_s.length > 200
|
|
85
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 200.')
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if !@name.nil? && @name.to_s.length < 3
|
|
89
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
|
90
|
+
end
|
|
91
|
+
|
|
88
92
|
if @scope.nil?
|
|
89
93
|
invalid_properties.push('invalid value for "scope", scope cannot be nil.')
|
|
90
94
|
end
|
|
@@ -95,10 +99,26 @@ module Wallee
|
|
|
95
99
|
# Check to see if the all the properties in the model are valid
|
|
96
100
|
# @return true if the model is valid
|
|
97
101
|
def valid?
|
|
102
|
+
return false if !@name.nil? && @name.to_s.length > 200
|
|
103
|
+
return false if !@name.nil? && @name.to_s.length < 3
|
|
98
104
|
return false if @scope.nil?
|
|
99
105
|
true
|
|
100
106
|
end
|
|
101
107
|
|
|
108
|
+
# Custom attribute writer method with validation
|
|
109
|
+
# @param [Object] name Value to be assigned
|
|
110
|
+
def name=(name)
|
|
111
|
+
if !name.nil? && name.to_s.length > 200
|
|
112
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 200.'
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if !name.nil? && name.to_s.length < 3
|
|
116
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
@name = name
|
|
120
|
+
end
|
|
121
|
+
|
|
102
122
|
# Checks equality by comparing each attribute.
|
|
103
123
|
# @param [Object] Object to be compared
|
|
104
124
|
def ==(o)
|
|
@@ -129,7 +149,7 @@ module Wallee
|
|
|
129
149
|
return nil unless attributes.is_a?(Hash)
|
|
130
150
|
self.class.swagger_types.each_pair do |key, type|
|
|
131
151
|
if type =~ /\AArray<(.*)>/i
|
|
132
|
-
# check to ensure the input is an array given that the
|
|
152
|
+
# check to ensure the input is an array given that the attribute
|
|
133
153
|
# is documented as an array but the input is not
|
|
134
154
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
135
155
|
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
|
|
@@ -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
|
|
@@ -85,6 +81,14 @@ module Wallee
|
|
|
85
81
|
# @return Array for valid properties with the reasons
|
|
86
82
|
def list_invalid_properties
|
|
87
83
|
invalid_properties = Array.new
|
|
84
|
+
if !@name.nil? && @name.to_s.length > 200
|
|
85
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 200.')
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if !@name.nil? && @name.to_s.length < 3
|
|
89
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
|
90
|
+
end
|
|
91
|
+
|
|
88
92
|
if @id.nil?
|
|
89
93
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
90
94
|
end
|
|
@@ -99,11 +103,27 @@ module Wallee
|
|
|
99
103
|
# Check to see if the all the properties in the model are valid
|
|
100
104
|
# @return true if the model is valid
|
|
101
105
|
def valid?
|
|
106
|
+
return false if !@name.nil? && @name.to_s.length > 200
|
|
107
|
+
return false if !@name.nil? && @name.to_s.length < 3
|
|
102
108
|
return false if @id.nil?
|
|
103
109
|
return false if @version.nil?
|
|
104
110
|
true
|
|
105
111
|
end
|
|
106
112
|
|
|
113
|
+
# Custom attribute writer method with validation
|
|
114
|
+
# @param [Object] name Value to be assigned
|
|
115
|
+
def name=(name)
|
|
116
|
+
if !name.nil? && name.to_s.length > 200
|
|
117
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 200.'
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if !name.nil? && name.to_s.length < 3
|
|
121
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
@name = name
|
|
125
|
+
end
|
|
126
|
+
|
|
107
127
|
# Checks equality by comparing each attribute.
|
|
108
128
|
# @param [Object] Object to be compared
|
|
109
129
|
def ==(o)
|
|
@@ -134,7 +154,7 @@ module Wallee
|
|
|
134
154
|
return nil unless attributes.is_a?(Hash)
|
|
135
155
|
self.class.swagger_types.each_pair do |key, type|
|
|
136
156
|
if type =~ /\AArray<(.*)>/i
|
|
137
|
-
# check to ensure the input is an array given that the
|
|
157
|
+
# check to ensure the input is an array given that the attribute
|
|
138
158
|
# is documented as an array but the input is not
|
|
139
159
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
140
160
|
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
|
|
@@ -64,10 +60,10 @@ module Wallee
|
|
|
64
60
|
attr_accessor :phone_number
|
|
65
61
|
|
|
66
62
|
#
|
|
67
|
-
attr_accessor :
|
|
63
|
+
attr_accessor :postal_state
|
|
68
64
|
|
|
69
65
|
#
|
|
70
|
-
attr_accessor :
|
|
66
|
+
attr_accessor :postcode
|
|
71
67
|
|
|
72
68
|
#
|
|
73
69
|
attr_accessor :sales_tax_number
|
|
@@ -100,8 +96,8 @@ module Wallee
|
|
|
100
96
|
:'mobile_phone_number' => :'mobilePhoneNumber',
|
|
101
97
|
:'organization_name' => :'organizationName',
|
|
102
98
|
:'phone_number' => :'phoneNumber',
|
|
103
|
-
:'post_code' => :'postCode',
|
|
104
99
|
:'postal_state' => :'postalState',
|
|
100
|
+
:'postcode' => :'postcode',
|
|
105
101
|
:'sales_tax_number' => :'salesTaxNumber',
|
|
106
102
|
:'salutation' => :'salutation',
|
|
107
103
|
:'social_security_number' => :'socialSecurityNumber',
|
|
@@ -126,8 +122,8 @@ module Wallee
|
|
|
126
122
|
:'mobile_phone_number' => :'String',
|
|
127
123
|
:'organization_name' => :'String',
|
|
128
124
|
:'phone_number' => :'String',
|
|
129
|
-
:'post_code' => :'String',
|
|
130
125
|
:'postal_state' => :'String',
|
|
126
|
+
:'postcode' => :'String',
|
|
131
127
|
:'sales_tax_number' => :'String',
|
|
132
128
|
:'salutation' => :'String',
|
|
133
129
|
:'social_security_number' => :'String',
|
|
@@ -196,14 +192,14 @@ module Wallee
|
|
|
196
192
|
self.phone_number = attributes[:'phoneNumber']
|
|
197
193
|
end
|
|
198
194
|
|
|
199
|
-
if attributes.has_key?(:'postCode')
|
|
200
|
-
self.post_code = attributes[:'postCode']
|
|
201
|
-
end
|
|
202
|
-
|
|
203
195
|
if attributes.has_key?(:'postalState')
|
|
204
196
|
self.postal_state = attributes[:'postalState']
|
|
205
197
|
end
|
|
206
198
|
|
|
199
|
+
if attributes.has_key?(:'postcode')
|
|
200
|
+
self.postcode = attributes[:'postcode']
|
|
201
|
+
end
|
|
202
|
+
|
|
207
203
|
if attributes.has_key?(:'salesTaxNumber')
|
|
208
204
|
self.sales_tax_number = attributes[:'salesTaxNumber']
|
|
209
205
|
end
|
|
@@ -229,15 +225,240 @@ module Wallee
|
|
|
229
225
|
# @return Array for valid properties with the reasons
|
|
230
226
|
def list_invalid_properties
|
|
231
227
|
invalid_properties = Array.new
|
|
228
|
+
if !@city.nil? && @city.to_s.length > 100
|
|
229
|
+
invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 100.')
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if !@commercial_register_number.nil? && @commercial_register_number.to_s.length > 100
|
|
233
|
+
invalid_properties.push('invalid value for "commercial_register_number", the character length must be smaller than or equal to 100.')
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if !@dependent_locality.nil? && @dependent_locality.to_s.length > 100
|
|
237
|
+
invalid_properties.push('invalid value for "dependent_locality", the character length must be smaller than or equal to 100.')
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if !@email_address.nil? && @email_address.to_s.length > 254
|
|
241
|
+
invalid_properties.push('invalid value for "email_address", the character length must be smaller than or equal to 254.')
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if !@family_name.nil? && @family_name.to_s.length > 100
|
|
245
|
+
invalid_properties.push('invalid value for "family_name", the character length must be smaller than or equal to 100.')
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if !@given_name.nil? && @given_name.to_s.length > 100
|
|
249
|
+
invalid_properties.push('invalid value for "given_name", the character length must be smaller than or equal to 100.')
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
if !@mobile_phone_number.nil? && @mobile_phone_number.to_s.length > 100
|
|
253
|
+
invalid_properties.push('invalid value for "mobile_phone_number", the character length must be smaller than or equal to 100.')
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
if !@organization_name.nil? && @organization_name.to_s.length > 100
|
|
257
|
+
invalid_properties.push('invalid value for "organization_name", the character length must be smaller than or equal to 100.')
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
if !@phone_number.nil? && @phone_number.to_s.length > 100
|
|
261
|
+
invalid_properties.push('invalid value for "phone_number", the character length must be smaller than or equal to 100.')
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
if !@postcode.nil? && @postcode.to_s.length > 40
|
|
265
|
+
invalid_properties.push('invalid value for "postcode", the character length must be smaller than or equal to 40.')
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
if !@sales_tax_number.nil? && @sales_tax_number.to_s.length > 100
|
|
269
|
+
invalid_properties.push('invalid value for "sales_tax_number", the character length must be smaller than or equal to 100.')
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if !@salutation.nil? && @salutation.to_s.length > 20
|
|
273
|
+
invalid_properties.push('invalid value for "salutation", the character length must be smaller than or equal to 20.')
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if !@social_security_number.nil? && @social_security_number.to_s.length > 100
|
|
277
|
+
invalid_properties.push('invalid value for "social_security_number", the character length must be smaller than or equal to 100.')
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if !@sorting_code.nil? && @sorting_code.to_s.length > 100
|
|
281
|
+
invalid_properties.push('invalid value for "sorting_code", the character length must be smaller than or equal to 100.')
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if !@street.nil? && @street.to_s.length > 300
|
|
285
|
+
invalid_properties.push('invalid value for "street", the character length must be smaller than or equal to 300.')
|
|
286
|
+
end
|
|
287
|
+
|
|
232
288
|
invalid_properties
|
|
233
289
|
end
|
|
234
290
|
|
|
235
291
|
# Check to see if the all the properties in the model are valid
|
|
236
292
|
# @return true if the model is valid
|
|
237
293
|
def valid?
|
|
294
|
+
return false if !@city.nil? && @city.to_s.length > 100
|
|
295
|
+
return false if !@commercial_register_number.nil? && @commercial_register_number.to_s.length > 100
|
|
296
|
+
return false if !@dependent_locality.nil? && @dependent_locality.to_s.length > 100
|
|
297
|
+
return false if !@email_address.nil? && @email_address.to_s.length > 254
|
|
298
|
+
return false if !@family_name.nil? && @family_name.to_s.length > 100
|
|
299
|
+
return false if !@given_name.nil? && @given_name.to_s.length > 100
|
|
300
|
+
return false if !@mobile_phone_number.nil? && @mobile_phone_number.to_s.length > 100
|
|
301
|
+
return false if !@organization_name.nil? && @organization_name.to_s.length > 100
|
|
302
|
+
return false if !@phone_number.nil? && @phone_number.to_s.length > 100
|
|
303
|
+
return false if !@postcode.nil? && @postcode.to_s.length > 40
|
|
304
|
+
return false if !@sales_tax_number.nil? && @sales_tax_number.to_s.length > 100
|
|
305
|
+
return false if !@salutation.nil? && @salutation.to_s.length > 20
|
|
306
|
+
return false if !@social_security_number.nil? && @social_security_number.to_s.length > 100
|
|
307
|
+
return false if !@sorting_code.nil? && @sorting_code.to_s.length > 100
|
|
308
|
+
return false if !@street.nil? && @street.to_s.length > 300
|
|
238
309
|
true
|
|
239
310
|
end
|
|
240
311
|
|
|
312
|
+
# Custom attribute writer method with validation
|
|
313
|
+
# @param [Object] city Value to be assigned
|
|
314
|
+
def city=(city)
|
|
315
|
+
if !city.nil? && city.to_s.length > 100
|
|
316
|
+
fail ArgumentError, 'invalid value for "city", the character length must be smaller than or equal to 100.'
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
@city = city
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Custom attribute writer method with validation
|
|
323
|
+
# @param [Object] commercial_register_number Value to be assigned
|
|
324
|
+
def commercial_register_number=(commercial_register_number)
|
|
325
|
+
if !commercial_register_number.nil? && commercial_register_number.to_s.length > 100
|
|
326
|
+
fail ArgumentError, 'invalid value for "commercial_register_number", the character length must be smaller than or equal to 100.'
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
@commercial_register_number = commercial_register_number
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Custom attribute writer method with validation
|
|
333
|
+
# @param [Object] dependent_locality Value to be assigned
|
|
334
|
+
def dependent_locality=(dependent_locality)
|
|
335
|
+
if !dependent_locality.nil? && dependent_locality.to_s.length > 100
|
|
336
|
+
fail ArgumentError, 'invalid value for "dependent_locality", the character length must be smaller than or equal to 100.'
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
@dependent_locality = dependent_locality
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Custom attribute writer method with validation
|
|
343
|
+
# @param [Object] email_address Value to be assigned
|
|
344
|
+
def email_address=(email_address)
|
|
345
|
+
if !email_address.nil? && email_address.to_s.length > 254
|
|
346
|
+
fail ArgumentError, 'invalid value for "email_address", the character length must be smaller than or equal to 254.'
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
@email_address = email_address
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Custom attribute writer method with validation
|
|
353
|
+
# @param [Object] family_name Value to be assigned
|
|
354
|
+
def family_name=(family_name)
|
|
355
|
+
if !family_name.nil? && family_name.to_s.length > 100
|
|
356
|
+
fail ArgumentError, 'invalid value for "family_name", the character length must be smaller than or equal to 100.'
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
@family_name = family_name
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Custom attribute writer method with validation
|
|
363
|
+
# @param [Object] given_name Value to be assigned
|
|
364
|
+
def given_name=(given_name)
|
|
365
|
+
if !given_name.nil? && given_name.to_s.length > 100
|
|
366
|
+
fail ArgumentError, 'invalid value for "given_name", the character length must be smaller than or equal to 100.'
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
@given_name = given_name
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
# Custom attribute writer method with validation
|
|
373
|
+
# @param [Object] mobile_phone_number Value to be assigned
|
|
374
|
+
def mobile_phone_number=(mobile_phone_number)
|
|
375
|
+
if !mobile_phone_number.nil? && mobile_phone_number.to_s.length > 100
|
|
376
|
+
fail ArgumentError, 'invalid value for "mobile_phone_number", the character length must be smaller than or equal to 100.'
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
@mobile_phone_number = mobile_phone_number
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
# Custom attribute writer method with validation
|
|
383
|
+
# @param [Object] organization_name Value to be assigned
|
|
384
|
+
def organization_name=(organization_name)
|
|
385
|
+
if !organization_name.nil? && organization_name.to_s.length > 100
|
|
386
|
+
fail ArgumentError, 'invalid value for "organization_name", the character length must be smaller than or equal to 100.'
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
@organization_name = organization_name
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
# Custom attribute writer method with validation
|
|
393
|
+
# @param [Object] phone_number Value to be assigned
|
|
394
|
+
def phone_number=(phone_number)
|
|
395
|
+
if !phone_number.nil? && phone_number.to_s.length > 100
|
|
396
|
+
fail ArgumentError, 'invalid value for "phone_number", the character length must be smaller than or equal to 100.'
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
@phone_number = phone_number
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
# Custom attribute writer method with validation
|
|
403
|
+
# @param [Object] postcode Value to be assigned
|
|
404
|
+
def postcode=(postcode)
|
|
405
|
+
if !postcode.nil? && postcode.to_s.length > 40
|
|
406
|
+
fail ArgumentError, 'invalid value for "postcode", the character length must be smaller than or equal to 40.'
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
@postcode = postcode
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
# Custom attribute writer method with validation
|
|
413
|
+
# @param [Object] sales_tax_number Value to be assigned
|
|
414
|
+
def sales_tax_number=(sales_tax_number)
|
|
415
|
+
if !sales_tax_number.nil? && sales_tax_number.to_s.length > 100
|
|
416
|
+
fail ArgumentError, 'invalid value for "sales_tax_number", the character length must be smaller than or equal to 100.'
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
@sales_tax_number = sales_tax_number
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
# Custom attribute writer method with validation
|
|
423
|
+
# @param [Object] salutation Value to be assigned
|
|
424
|
+
def salutation=(salutation)
|
|
425
|
+
if !salutation.nil? && salutation.to_s.length > 20
|
|
426
|
+
fail ArgumentError, 'invalid value for "salutation", the character length must be smaller than or equal to 20.'
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
@salutation = salutation
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
# Custom attribute writer method with validation
|
|
433
|
+
# @param [Object] social_security_number Value to be assigned
|
|
434
|
+
def social_security_number=(social_security_number)
|
|
435
|
+
if !social_security_number.nil? && social_security_number.to_s.length > 100
|
|
436
|
+
fail ArgumentError, 'invalid value for "social_security_number", the character length must be smaller than or equal to 100.'
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
@social_security_number = social_security_number
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
# Custom attribute writer method with validation
|
|
443
|
+
# @param [Object] sorting_code Value to be assigned
|
|
444
|
+
def sorting_code=(sorting_code)
|
|
445
|
+
if !sorting_code.nil? && sorting_code.to_s.length > 100
|
|
446
|
+
fail ArgumentError, 'invalid value for "sorting_code", the character length must be smaller than or equal to 100.'
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
@sorting_code = sorting_code
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# Custom attribute writer method with validation
|
|
453
|
+
# @param [Object] street Value to be assigned
|
|
454
|
+
def street=(street)
|
|
455
|
+
if !street.nil? && street.to_s.length > 300
|
|
456
|
+
fail ArgumentError, 'invalid value for "street", the character length must be smaller than or equal to 300.'
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
@street = street
|
|
460
|
+
end
|
|
461
|
+
|
|
241
462
|
# Checks equality by comparing each attribute.
|
|
242
463
|
# @param [Object] Object to be compared
|
|
243
464
|
def ==(o)
|
|
@@ -256,8 +477,8 @@ module Wallee
|
|
|
256
477
|
mobile_phone_number == o.mobile_phone_number &&
|
|
257
478
|
organization_name == o.organization_name &&
|
|
258
479
|
phone_number == o.phone_number &&
|
|
259
|
-
post_code == o.post_code &&
|
|
260
480
|
postal_state == o.postal_state &&
|
|
481
|
+
postcode == o.postcode &&
|
|
261
482
|
sales_tax_number == o.sales_tax_number &&
|
|
262
483
|
salutation == o.salutation &&
|
|
263
484
|
social_security_number == o.social_security_number &&
|
|
@@ -274,7 +495,7 @@ module Wallee
|
|
|
274
495
|
# Calculates hash code according to all attributes.
|
|
275
496
|
# @return [Fixnum] Hash code
|
|
276
497
|
def hash
|
|
277
|
-
[city, commercial_register_number, country, date_of_birth, dependent_locality, email_address, family_name, gender, given_name, legal_organization_form, mobile_phone_number, organization_name, phone_number,
|
|
498
|
+
[city, commercial_register_number, country, date_of_birth, dependent_locality, email_address, family_name, gender, given_name, legal_organization_form, mobile_phone_number, organization_name, phone_number, postal_state, postcode, sales_tax_number, salutation, social_security_number, sorting_code, street].hash
|
|
278
499
|
end
|
|
279
500
|
|
|
280
501
|
# Builds the object from hash
|
|
@@ -284,7 +505,7 @@ module Wallee
|
|
|
284
505
|
return nil unless attributes.is_a?(Hash)
|
|
285
506
|
self.class.swagger_types.each_pair do |key, type|
|
|
286
507
|
if type =~ /\AArray<(.*)>/i
|
|
287
|
-
# check to ensure the input is an array given that the
|
|
508
|
+
# check to ensure the input is an array given that the attribute
|
|
288
509
|
# is documented as an array but the input is not
|
|
289
510
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
290
511
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|