wallee-ruby-sdk 1.0.1 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile +1 -1
- data/LICENSE +1 -1
- data/README.md +107 -34
- data/lib/wallee-ruby-sdk.rb +260 -99
- data/lib/wallee-ruby-sdk/{services → api}/account_service_api.rb +37 -41
- data/lib/wallee-ruby-sdk/{services → api}/application_user_service_api.rb +37 -41
- data/lib/wallee-ruby-sdk/api/card_processing_service_api.rb +172 -0
- data/lib/wallee-ruby-sdk/{services → api}/charge_attempt_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/{services → api}/charge_flow_level_service_api.rb +31 -35
- data/lib/wallee-ruby-sdk/{services → api}/charge_flow_service_api.rb +42 -46
- data/lib/wallee-ruby-sdk/{services → api}/condition_type_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/country_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/{services → api}/country_state_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/currency_service_api.rb +7 -11
- 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 +796 -0
- data/lib/wallee-ruby-sdk/api/debt_collector_configuration_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/debt_collector_service_api.rb +139 -0
- data/lib/wallee-ruby-sdk/{services → api}/delivery_indication_service_api.rb +40 -44
- data/lib/wallee-ruby-sdk/{services → api}/document_template_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/document_template_type_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/human_user_service_api.rb +94 -41
- data/lib/wallee-ruby-sdk/{services → api}/installment_payment_service_api.rb +33 -37
- data/lib/wallee-ruby-sdk/{services → api}/installment_payment_slice_service_api.rb +23 -27
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_calculation_service_api.rb +9 -13
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_configuration_service_api.rb +23 -27
- data/lib/wallee-ruby-sdk/{services → api}/installment_plan_slice_configuration_service_api.rb +23 -27
- data/lib/wallee-ruby-sdk/{services → api}/label_description_group_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/label_description_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/language_service_api.rb +7 -11
- data/lib/wallee-ruby-sdk/api/legal_organization_form_service_api.rb +197 -0
- data/lib/wallee-ruby-sdk/{services → api}/manual_task_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/api/mertic_usage_service_api.rb +96 -0
- data/lib/wallee-ruby-sdk/{services → api}/payment_connector_configuration_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/payment_connector_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services/token_service_api.rb → api/payment_link_service_api.rb} +68 -72
- data/lib/wallee-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
- data/lib/wallee-ruby-sdk/{services → api}/payment_method_configuration_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/payment_method_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/payment_processor_configuration_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/{services → api}/payment_processor_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services/email_template_service_api.rb → api/payment_terminal_service_api.rb} +36 -40
- data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +99 -0
- data/lib/wallee-ruby-sdk/{services → api}/permission_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/api/refund_comment_service_api.rb +464 -0
- data/lib/wallee-ruby-sdk/{services → api}/refund_service_api.rb +125 -61
- 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 +466 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +337 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/{services → api}/space_service_api.rb +37 -41
- data/lib/wallee-ruby-sdk/{services → api}/static_value_service_api.rb +15 -19
- data/lib/wallee-ruby-sdk/{services → api}/subscriber_service_api.rb +46 -50
- data/lib/wallee-ruby-sdk/api/subscription_affiliate_service_api.rb +398 -0
- data/lib/wallee-ruby-sdk/{services → api}/subscription_charge_service_api.rb +38 -42
- data/lib/wallee-ruby-sdk/{services → api}/subscription_ledger_entry_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_metric_usage_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_period_bill_service_api.rb +28 -32
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_group_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_component_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_fee_tier_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_metered_fee_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_period_fee_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_retirement_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_service_api.rb +36 -40
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_setup_fee_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_retirement_service_api.rb +29 -33
- data/lib/wallee-ruby-sdk/{services → api}/subscription_product_version_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/subscription_service_api.rb +245 -115
- data/lib/wallee-ruby-sdk/{services → api}/subscription_suspension_service_api.rb +36 -40
- data/lib/wallee-ruby-sdk/{services → api}/subscription_version_service_api.rb +22 -26
- data/lib/wallee-ruby-sdk/api/token_service_api.rb +587 -0
- data/lib/wallee-ruby-sdk/{services → api}/token_version_service_api.rb +31 -35
- data/lib/wallee-ruby-sdk/api/transaction_comment_service_api.rb +464 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_completion_service_api.rb +164 -44
- data/lib/wallee-ruby-sdk/api/transaction_iframe_service_api.rb +91 -0
- data/lib/wallee-ruby-sdk/api/transaction_invoice_comment_service_api.rb +464 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_invoice_service_api.rb +186 -59
- 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 +86 -0
- data/lib/wallee-ruby-sdk/api/transaction_payment_page_service_api.rb +91 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_service_api.rb +273 -326
- data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +172 -0
- data/lib/wallee-ruby-sdk/{services → api}/transaction_void_service_api.rb +40 -44
- data/lib/wallee-ruby-sdk/{services → api}/user_account_role_service_api.rb +27 -31
- data/lib/wallee-ruby-sdk/{services → api}/user_space_role_service_api.rb +30 -34
- data/lib/wallee-ruby-sdk/{services → api}/webhook_listener_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/{services → api}/webhook_url_service_api.rb +43 -47
- data/lib/wallee-ruby-sdk/api_client.rb +7 -7
- data/lib/wallee-ruby-sdk/api_error.rb +0 -4
- data/lib/wallee-ruby-sdk/configuration.rb +2 -6
- data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +40 -14
- data/lib/wallee-ruby-sdk/models/abstract_application_user_update.rb +31 -14
- 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 +262 -0
- data/lib/wallee-ruby-sdk/models/abstract_human_user_update.rb +87 -15
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +309 -0
- data/lib/wallee-ruby-sdk/models/abstract_refund_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
- data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +51 -15
- data/lib/wallee-ruby-sdk/models/abstract_subscriber_update.rb +51 -14
- data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +246 -0
- data/lib/wallee-ruby-sdk/models/abstract_subscription_metric_update.rb +5 -13
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +20 -13
- data/lib/wallee-ruby-sdk/models/abstract_token_update.rb +35 -13
- data/lib/wallee-ruby-sdk/models/abstract_transaction_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +205 -0
- data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +136 -16
- data/lib/wallee-ruby-sdk/models/abstract_webhook_listener_update.rb +43 -14
- data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +44 -13
- data/lib/wallee-ruby-sdk/models/account.rb +90 -13
- data/lib/wallee-ruby-sdk/models/account_create.rb +56 -14
- data/lib/wallee-ruby-sdk/models/account_state.rb +12 -20
- data/lib/wallee-ruby-sdk/models/account_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/account_update.rb +42 -15
- data/lib/wallee-ruby-sdk/models/address.rb +240 -22
- data/lib/wallee-ruby-sdk/models/address_create.rb +240 -22
- data/lib/wallee-ruby-sdk/models/application_user.rb +32 -14
- data/lib/wallee-ruby-sdk/models/application_user_create.rb +32 -14
- data/lib/wallee-ruby-sdk/models/application_user_create_with_mac_key.rb +31 -13
- data/lib/wallee-ruby-sdk/models/application_user_update.rb +33 -15
- data/lib/wallee-ruby-sdk/models/charge.rb +16 -13
- data/lib/wallee-ruby-sdk/models/charge_attempt.rb +61 -13
- data/lib/wallee-ruby-sdk/models/charge_attempt_environment.rb +8 -16
- data/lib/wallee-ruby-sdk/models/charge_attempt_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/charge_flow.rb +5 -12
- data/lib/wallee-ruby-sdk/models/charge_flow_level.rb +5 -12
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration.rb +20 -12
- data/lib/wallee-ruby-sdk/models/charge_flow_level_configuration_type.rb +20 -15
- 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 +9 -17
- data/lib/wallee-ruby-sdk/models/charge_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/charge_type.rb +10 -17
- data/lib/wallee-ruby-sdk/models/client_error.rb +5 -12
- data/lib/wallee-ruby-sdk/models/client_error_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/completion_line_item.rb +226 -0
- data/lib/wallee-ruby-sdk/models/completion_line_item_create.rb +245 -0
- data/lib/wallee-ruby-sdk/models/condition.rb +20 -12
- data/lib/wallee-ruby-sdk/models/condition_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/connector_invocation.rb +5 -12
- data/lib/wallee-ruby-sdk/models/connector_invocation_stage.rb +10 -18
- data/lib/wallee-ruby-sdk/models/creation_entity_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/criteria_operator.rb +18 -23
- 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/customer_address.rb +261 -0
- 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 +9 -17
- data/lib/wallee-ruby-sdk/models/data_collection_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/database_translated_string.rb +5 -12
- data/lib/wallee-ruby-sdk/models/database_translated_string_create.rb +5 -12
- data/lib/wallee-ruby-sdk/models/database_translated_string_item.rb +20 -12
- data/lib/wallee-ruby-sdk/models/database_translated_string_item_create.rb +21 -13
- data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +495 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +303 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +338 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +225 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +40 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +293 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +305 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +215 -0
- data/lib/wallee-ruby-sdk/models/debt_collector.rb +215 -0
- data/lib/wallee-ruby-sdk/models/{email_sender.rb → debt_collector_condition.rb} +34 -46
- data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +310 -0
- data/lib/wallee-ruby-sdk/models/delivery_indication.rb +16 -13
- data/lib/wallee-ruby-sdk/models/delivery_indication_decision_reason.rb +7 -14
- data/lib/wallee-ruby-sdk/models/delivery_indication_state.rb +10 -18
- data/lib/wallee-ruby-sdk/models/document_template.rb +41 -13
- data/lib/wallee-ruby-sdk/models/document_template_type.rb +18 -25
- data/lib/wallee-ruby-sdk/models/document_template_type_group.rb +203 -0
- data/lib/wallee-ruby-sdk/models/entity_export_request.rb +208 -0
- data/lib/wallee-ruby-sdk/models/entity_query.rb +6 -13
- data/lib/wallee-ruby-sdk/models/entity_query_filter.rb +6 -13
- data/lib/wallee-ruby-sdk/models/entity_query_filter_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +15 -12
- data/lib/wallee-ruby-sdk/models/entity_query_order_by_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/failure_category.rb +11 -19
- data/lib/wallee-ruby-sdk/models/failure_reason.rb +7 -14
- data/lib/wallee-ruby-sdk/models/feature.rb +18 -15
- data/lib/wallee-ruby-sdk/models/feature_category.rb +225 -0
- data/lib/wallee-ruby-sdk/models/gender.rb +8 -16
- data/lib/wallee-ruby-sdk/models/human_user.rb +107 -14
- data/lib/wallee-ruby-sdk/models/human_user_create.rb +86 -13
- data/lib/wallee-ruby-sdk/models/human_user_update.rb +88 -15
- data/lib/wallee-ruby-sdk/models/installment_calculated_plan.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_calculated_slice.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_payment.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_payment_slice.rb +5 -12
- data/lib/wallee-ruby-sdk/models/installment_payment_slice_state.rb +13 -21
- data/lib/wallee-ruby-sdk/models/installment_payment_state.rb +14 -22
- data/lib/wallee-ruby-sdk/models/installment_plan_configuration.rb +20 -12
- data/lib/wallee-ruby-sdk/models/installment_plan_slice_configuration.rb +5 -12
- data/lib/wallee-ruby-sdk/models/label.rb +5 -12
- data/lib/wallee-ruby-sdk/models/label_descriptor.rb +7 -14
- data/lib/wallee-ruby-sdk/models/label_descriptor_category.rb +8 -16
- data/lib/wallee-ruby-sdk/models/label_descriptor_group.rb +7 -14
- data/lib/wallee-ruby-sdk/models/label_descriptor_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/legal_organization_form.rb +5 -12
- data/lib/wallee-ruby-sdk/models/line_item.rb +121 -14
- data/lib/wallee-ruby-sdk/models/line_item_attribute.rb +35 -12
- data/lib/wallee-ruby-sdk/models/line_item_attribute_create.rb +45 -14
- data/lib/wallee-ruby-sdk/models/line_item_create.rb +84 -19
- data/lib/wallee-ruby-sdk/models/line_item_reduction.rb +20 -12
- data/lib/wallee-ruby-sdk/models/line_item_reduction_create.rb +27 -15
- data/lib/wallee-ruby-sdk/models/line_item_type.rb +10 -18
- data/lib/wallee-ruby-sdk/models/localized_string.rb +5 -12
- data/lib/wallee-ruby-sdk/models/manual_task.rb +5 -12
- data/lib/wallee-ruby-sdk/models/manual_task_action.rb +6 -13
- data/lib/wallee-ruby-sdk/models/manual_task_action_style.rb +9 -17
- data/lib/wallee-ruby-sdk/models/manual_task_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/manual_task_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/metric_usage.rb +225 -0
- data/lib/wallee-ruby-sdk/models/one_click_payment_mode.rb +9 -17
- data/lib/wallee-ruby-sdk/models/payment_connector.rb +30 -15
- data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +33 -13
- data/lib/wallee-ruby-sdk/models/payment_connector_feature.rb +5 -12
- data/lib/wallee-ruby-sdk/models/payment_contract.rb +355 -0
- data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{email_sender_type.rb → payment_contract_type.rb} +9 -16
- 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 +414 -0
- data/lib/wallee-ruby-sdk/models/payment_link_active.rb +350 -0
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +373 -0
- data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +35 -0
- data/lib/wallee-ruby-sdk/models/payment_link_update.rb +340 -0
- data/lib/wallee-ruby-sdk/models/payment_method.rb +20 -15
- data/lib/wallee-ruby-sdk/models/payment_method_brand.rb +7 -14
- data/lib/wallee-ruby-sdk/models/payment_method_configuration.rb +22 -14
- data/lib/wallee-ruby-sdk/models/payment_primary_risk_taker.rb +9 -17
- data/lib/wallee-ruby-sdk/models/payment_processor.rb +10 -17
- data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +31 -13
- data/lib/wallee-ruby-sdk/models/{email_template.rb → payment_terminal.rb} +51 -79
- data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +456 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration.rb +266 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +313 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{space_address_setter.rb → payment_terminal_contact_address.rb} +105 -27
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +286 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version.rb +281 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/{attachment_resource.rb → payment_terminal_type.rb} +33 -28
- data/lib/wallee-ruby-sdk/models/permission.rb +20 -17
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount.rb +5 -12
- data/lib/wallee-ruby-sdk/models/persistable_currency_amount_update.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_fee_type.rb +9 -17
- data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_metered_tier_fee_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/product_metered_tier_pricing.rb +8 -16
- data/lib/wallee-ruby-sdk/models/product_period_fee.rb +16 -13
- data/lib/wallee-ruby-sdk/models/product_period_fee_update.rb +18 -15
- data/lib/wallee-ruby-sdk/models/product_setup_fee.rb +5 -12
- data/lib/wallee-ruby-sdk/models/product_setup_fee_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/refund.rb +130 -13
- data/lib/wallee-ruby-sdk/models/refund_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/refund_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/refund_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/refund_create.rb +67 -21
- data/lib/wallee-ruby-sdk/models/refund_state.rb +12 -19
- data/lib/wallee-ruby-sdk/models/refund_type.rb +10 -18
- data/lib/wallee-ruby-sdk/models/rendered_document.rb +5 -12
- data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +203 -0
- data/lib/wallee-ruby-sdk/models/resource_path.rb +29 -12
- data/lib/wallee-ruby-sdk/models/resource_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/rest_address_format.rb +227 -0
- data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +43 -0
- data/lib/wallee-ruby-sdk/models/rest_country.rb +16 -13
- data/lib/wallee-ruby-sdk/models/rest_country_state.rb +5 -12
- data/lib/wallee-ruby-sdk/models/rest_currency.rb +5 -12
- data/lib/wallee-ruby-sdk/models/rest_language.rb +5 -12
- data/lib/wallee-ruby-sdk/models/role.rb +16 -13
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +245 -0
- data/lib/wallee-ruby-sdk/models/scope.rb +61 -13
- data/lib/wallee-ruby-sdk/models/server_error.rb +5 -12
- data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration.rb +470 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration_subscription_app_version.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order.rb +351 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber.rb +281 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +365 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +546 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +353 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +261 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
- data/lib/wallee-ruby-sdk/models/{entity_reference.rb → shopify_subscription_model_tax_line.rb} +27 -14
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product.rb +471 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +366 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_update.rb +351 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_state.rb +39 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_suspension.rb +311 -0
- data/lib/wallee-ruby-sdk/models/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_addresses_request.rb +211 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +233 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +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/shopify_tax_line.rb +231 -0
- data/lib/wallee-ruby-sdk/models/shopify_transaction.rb +301 -0
- data/lib/wallee-ruby-sdk/models/shopify_transaction_state.rb +38 -0
- data/lib/wallee-ruby-sdk/models/space.rb +91 -14
- data/lib/wallee-ruby-sdk/models/space_address.rb +120 -22
- data/lib/wallee-ruby-sdk/models/space_address_create.rb +120 -22
- data/lib/wallee-ruby-sdk/models/space_create.rb +52 -15
- data/lib/wallee-ruby-sdk/models/space_reference.rb +5 -12
- data/lib/wallee-ruby-sdk/models/space_reference_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/space_update.rb +53 -16
- data/lib/wallee-ruby-sdk/models/space_view.rb +29 -12
- data/lib/wallee-ruby-sdk/models/static_value.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscriber.rb +51 -13
- data/lib/wallee-ruby-sdk/models/subscriber_active.rb +53 -15
- data/lib/wallee-ruby-sdk/models/subscriber_create.rb +52 -14
- data/lib/wallee-ruby-sdk/models/subscriber_update.rb +53 -15
- data/lib/wallee-ruby-sdk/models/subscription.rb +86 -13
- data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +355 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +333 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +355 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +355 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +277 -0
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +277 -0
- data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +27 -17
- data/lib/wallee-ruby-sdk/models/subscription_charge.rb +79 -13
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +71 -15
- data/lib/wallee-ruby-sdk/models/subscription_charge_processing_type.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_charge_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/subscription_charge_type.rb +8 -16
- 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 +22 -17
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +29 -12
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +38 -17
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/subscription_metric.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_metric_active.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_create.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_metric_usage_report_create.rb +24 -16
- data/lib/wallee-ruby-sdk/models/subscription_pending.rb +48 -15
- data/lib/wallee-ruby-sdk/models/subscription_period_bill.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_period_bill_state.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_product.rb +35 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +22 -14
- data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +36 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_component_group_update.rb +7 -14
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_component_reference_state.rb +10 -18
- data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +38 -15
- data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +40 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_retirement_create.rb +6 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +31 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +19 -16
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement.rb +5 -12
- data/lib/wallee-ruby-sdk/models/subscription_product_version_retirement_create.rb +6 -13
- data/lib/wallee-ruby-sdk/models/subscription_product_version_state.rb +11 -19
- data/lib/wallee-ruby-sdk/models/subscription_state.rb +14 -21
- data/lib/wallee-ruby-sdk/models/subscription_suspension.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_suspension_action.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_suspension_create.rb +23 -15
- data/lib/wallee-ruby-sdk/models/subscription_suspension_reason.rb +9 -17
- data/lib/wallee-ruby-sdk/models/subscription_suspension_running.rb +20 -12
- data/lib/wallee-ruby-sdk/models/subscription_suspension_state.rb +8 -16
- data/lib/wallee-ruby-sdk/models/subscription_update.rb +33 -15
- data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/subscription_version.rb +18 -13
- data/lib/wallee-ruby-sdk/models/subscription_version_state.rb +12 -20
- data/lib/wallee-ruby-sdk/models/tax.rb +29 -12
- data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
- data/lib/wallee-ruby-sdk/models/tax_class.rb +20 -12
- data/lib/wallee-ruby-sdk/models/tax_create.rb +35 -14
- data/lib/wallee-ruby-sdk/models/tenant_database.rb +20 -12
- data/lib/wallee-ruby-sdk/models/token.rb +59 -12
- data/lib/wallee-ruby-sdk/models/token_create.rb +64 -13
- data/lib/wallee-ruby-sdk/models/token_update.rb +37 -14
- data/lib/wallee-ruby-sdk/models/token_version.rb +78 -13
- data/lib/wallee-ruby-sdk/models/token_version_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/token_version_type.rb +7 -14
- data/lib/wallee-ruby-sdk/models/tokenization_mode.rb +37 -0
- data/lib/wallee-ruby-sdk/models/transaction.rb +291 -16
- data/lib/wallee-ruby-sdk/models/transaction_aware_entity.rb +5 -12
- data/lib/wallee-ruby-sdk/models/transaction_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/transaction_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/transaction_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion.rb +151 -13
- data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_mode.rb +9 -17
- data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +291 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_state.rb +11 -18
- data/lib/wallee-ruby-sdk/models/transaction_create.rb +200 -15
- data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_group.rb +20 -12
- data/lib/wallee-ruby-sdk/models/transaction_group_state.rb +9 -17
- data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +85 -13
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment.rb +296 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_active.rb +236 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_comment_create.rb +221 -0
- data/lib/wallee-ruby-sdk/models/transaction_invoice_replacement.rb +62 -16
- data/lib/wallee-ruby-sdk/models/transaction_invoice_state.rb +13 -21
- data/lib/wallee-ruby-sdk/models/transaction_line_item_update_request.rb +6 -13
- data/lib/wallee-ruby-sdk/models/transaction_line_item_version.rb +5 -12
- data/lib/wallee-ruby-sdk/models/transaction_pending.rb +137 -16
- data/lib/wallee-ruby-sdk/models/transaction_state.rb +16 -24
- data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +11 -17
- data/lib/wallee-ruby-sdk/models/transaction_void.rb +5 -12
- data/lib/wallee-ruby-sdk/models/transaction_void_mode.rb +8 -16
- data/lib/wallee-ruby-sdk/models/transaction_void_state.rb +10 -18
- data/lib/wallee-ruby-sdk/models/{email_template_type.rb → two_factor_authentication_type.rb} +18 -71
- data/lib/wallee-ruby-sdk/models/unencrypted_card_data.rb +284 -0
- data/lib/wallee-ruby-sdk/models/unencrypted_card_data_create.rb +293 -0
- data/lib/wallee-ruby-sdk/models/user.rb +5 -12
- data/lib/wallee-ruby-sdk/models/user_account_role.rb +5 -12
- data/lib/wallee-ruby-sdk/models/user_space_role.rb +5 -12
- data/lib/wallee-ruby-sdk/models/user_type.rb +11 -19
- data/lib/wallee-ruby-sdk/models/webhook_identity.rb +20 -12
- data/lib/wallee-ruby-sdk/models/webhook_listener.rb +20 -12
- data/lib/wallee-ruby-sdk/models/webhook_listener_create.rb +44 -41
- data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +7 -24
- data/lib/wallee-ruby-sdk/models/webhook_listener_update.rb +45 -15
- data/lib/wallee-ruby-sdk/models/webhook_url.rb +44 -12
- data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +44 -12
- data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +46 -14
- data/lib/wallee-ruby-sdk/version.rb +1 -5
- data/test/{transactioncreate.rb → transaction_create_service_test.rb} +2 -2
- data/test/transaction_payment_page_service_test.rb +91 -0
- data/wallee-ruby-sdk.gemspec +5 -8
- metadata +262 -87
- data/lib/wallee-ruby-sdk/services/email_sender_service_api.rb +0 -219
- data/lib/wallee-ruby-sdk/services/email_sender_type_service_api.rb +0 -143
- data/lib/wallee-ruby-sdk/services/email_template_type_service_api.rb +0 -143
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
Wallee API: 1.0.0
|
|
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
|
|
@@ -24,6 +20,9 @@ require 'date'
|
|
|
24
20
|
module Wallee
|
|
25
21
|
#
|
|
26
22
|
class AccountCreate
|
|
23
|
+
#
|
|
24
|
+
attr_accessor :last_modified_date
|
|
25
|
+
|
|
27
26
|
# The name of the account identifies the account within the administrative interface.
|
|
28
27
|
attr_accessor :name
|
|
29
28
|
|
|
@@ -33,22 +32,28 @@ module Wallee
|
|
|
33
32
|
# The account which is responsible for administering the account.
|
|
34
33
|
attr_accessor :parent_account
|
|
35
34
|
|
|
35
|
+
# This is the scope to which the account belongs to.
|
|
36
|
+
attr_accessor :scope
|
|
36
37
|
|
|
37
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
39
|
def self.attribute_map
|
|
39
40
|
{
|
|
41
|
+
:'last_modified_date' => :'lastModifiedDate',
|
|
40
42
|
:'name' => :'name',
|
|
41
43
|
:'subaccount_limit' => :'subaccountLimit',
|
|
42
|
-
:'parent_account' => :'parentAccount'
|
|
44
|
+
:'parent_account' => :'parentAccount',
|
|
45
|
+
:'scope' => :'scope'
|
|
43
46
|
}
|
|
44
47
|
end
|
|
45
48
|
|
|
46
49
|
# Attribute type mapping.
|
|
47
50
|
def self.swagger_types
|
|
48
51
|
{
|
|
52
|
+
:'last_modified_date' => :'DateTime',
|
|
49
53
|
:'name' => :'String',
|
|
50
54
|
:'subaccount_limit' => :'Integer',
|
|
51
|
-
:'parent_account' => :'Integer'
|
|
55
|
+
:'parent_account' => :'Integer',
|
|
56
|
+
:'scope' => :'Integer'
|
|
52
57
|
}
|
|
53
58
|
end
|
|
54
59
|
|
|
@@ -58,7 +63,11 @@ module Wallee
|
|
|
58
63
|
return unless attributes.is_a?(Hash)
|
|
59
64
|
|
|
60
65
|
# convert string to symbol for hash key
|
|
61
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'lastModifiedDate')
|
|
69
|
+
self.last_modified_date = attributes[:'lastModifiedDate']
|
|
70
|
+
end
|
|
62
71
|
|
|
63
72
|
if attributes.has_key?(:'name')
|
|
64
73
|
self.name = attributes[:'name']
|
|
@@ -72,19 +81,51 @@ module Wallee
|
|
|
72
81
|
self.parent_account = attributes[:'parentAccount']
|
|
73
82
|
end
|
|
74
83
|
|
|
84
|
+
if attributes.has_key?(:'scope')
|
|
85
|
+
self.scope = attributes[:'scope']
|
|
86
|
+
end
|
|
75
87
|
end
|
|
76
88
|
|
|
77
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
78
|
-
# @return Array for valid
|
|
90
|
+
# @return Array for valid properties with the reasons
|
|
79
91
|
def list_invalid_properties
|
|
80
92
|
invalid_properties = Array.new
|
|
81
|
-
|
|
93
|
+
if !@name.nil? && @name.to_s.length > 200
|
|
94
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 200.')
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if !@name.nil? && @name.to_s.length < 3
|
|
98
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if @scope.nil?
|
|
102
|
+
invalid_properties.push('invalid value for "scope", scope cannot be nil.')
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
invalid_properties
|
|
82
106
|
end
|
|
83
107
|
|
|
84
108
|
# Check to see if the all the properties in the model are valid
|
|
85
109
|
# @return true if the model is valid
|
|
86
110
|
def valid?
|
|
87
|
-
return
|
|
111
|
+
return false if !@name.nil? && @name.to_s.length > 200
|
|
112
|
+
return false if !@name.nil? && @name.to_s.length < 3
|
|
113
|
+
return false if @scope.nil?
|
|
114
|
+
true
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Custom attribute writer method with validation
|
|
118
|
+
# @param [Object] name Value to be assigned
|
|
119
|
+
def name=(name)
|
|
120
|
+
if !name.nil? && name.to_s.length > 200
|
|
121
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 200.'
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if !name.nil? && name.to_s.length < 3
|
|
125
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
@name = name
|
|
88
129
|
end
|
|
89
130
|
|
|
90
131
|
# Checks equality by comparing each attribute.
|
|
@@ -92,9 +133,11 @@ module Wallee
|
|
|
92
133
|
def ==(o)
|
|
93
134
|
return true if self.equal?(o)
|
|
94
135
|
self.class == o.class &&
|
|
136
|
+
last_modified_date == o.last_modified_date &&
|
|
95
137
|
name == o.name &&
|
|
96
138
|
subaccount_limit == o.subaccount_limit &&
|
|
97
|
-
parent_account == o.parent_account
|
|
139
|
+
parent_account == o.parent_account &&
|
|
140
|
+
scope == o.scope
|
|
98
141
|
end
|
|
99
142
|
|
|
100
143
|
# @see the `==` method
|
|
@@ -106,7 +149,7 @@ module Wallee
|
|
|
106
149
|
# Calculates hash code according to all attributes.
|
|
107
150
|
# @return [Fixnum] Hash code
|
|
108
151
|
def hash
|
|
109
|
-
[name, subaccount_limit, parent_account].hash
|
|
152
|
+
[last_modified_date, name, subaccount_limit, parent_account, scope].hash
|
|
110
153
|
end
|
|
111
154
|
|
|
112
155
|
# Builds the object from hash
|
|
@@ -116,7 +159,7 @@ module Wallee
|
|
|
116
159
|
return nil unless attributes.is_a?(Hash)
|
|
117
160
|
self.class.swagger_types.each_pair do |key, type|
|
|
118
161
|
if type =~ /\AArray<(.*)>/i
|
|
119
|
-
# check to ensure the input is an array given that the
|
|
162
|
+
# check to ensure the input is an array given that the attribute
|
|
120
163
|
# is documented as an array but the input is not
|
|
121
164
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
122
165
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
@@ -214,5 +257,4 @@ module Wallee
|
|
|
214
257
|
end
|
|
215
258
|
|
|
216
259
|
end
|
|
217
|
-
|
|
218
260
|
end
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
Wallee API: 1.0.0
|
|
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
|
|
@@ -24,24 +20,20 @@ require 'date'
|
|
|
24
20
|
module Wallee
|
|
25
21
|
class AccountState
|
|
26
22
|
|
|
27
|
-
CREATE =
|
|
28
|
-
RESTRICTED_ACTIVE =
|
|
29
|
-
ACTIVE =
|
|
30
|
-
INACTIVE =
|
|
31
|
-
DELETING =
|
|
32
|
-
DELETED =
|
|
33
|
-
|
|
34
|
-
# Builds the
|
|
35
|
-
# @param [
|
|
36
|
-
# @return [
|
|
23
|
+
CREATE = 'CREATE'.freeze
|
|
24
|
+
RESTRICTED_ACTIVE = 'RESTRICTED_ACTIVE'.freeze
|
|
25
|
+
ACTIVE = 'ACTIVE'.freeze
|
|
26
|
+
INACTIVE = 'INACTIVE'.freeze
|
|
27
|
+
DELETING = 'DELETING'.freeze
|
|
28
|
+
DELETED = 'DELETED'.freeze
|
|
29
|
+
|
|
30
|
+
# Builds the enum from string
|
|
31
|
+
# @param [String] The enum value in the form of the string
|
|
32
|
+
# @return [String] The enum value
|
|
37
33
|
def build_from_hash(value)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
raise "Invalid ENUM value #{value} for class #AccountState" if consantValues.empty?
|
|
41
|
-
|
|
34
|
+
constantValues = AccountState.constants.select { |c| AccountState::const_get(c) == value }
|
|
35
|
+
raise "Invalid ENUM value #{value} for class #AccountState" if constantValues.empty?
|
|
42
36
|
value
|
|
43
|
-
|
|
44
37
|
end
|
|
45
38
|
end
|
|
46
|
-
|
|
47
39
|
end
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
Wallee API: 1.0.0
|
|
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
|
|
@@ -24,21 +20,17 @@ require 'date'
|
|
|
24
20
|
module Wallee
|
|
25
21
|
class AccountType
|
|
26
22
|
|
|
27
|
-
MASTER =
|
|
28
|
-
REGULAR =
|
|
29
|
-
SUBACCOUNT =
|
|
30
|
-
|
|
31
|
-
# Builds the
|
|
32
|
-
# @param [
|
|
33
|
-
# @return [
|
|
23
|
+
MASTER = 'MASTER'.freeze
|
|
24
|
+
REGULAR = 'REGULAR'.freeze
|
|
25
|
+
SUBACCOUNT = 'SUBACCOUNT'.freeze
|
|
26
|
+
|
|
27
|
+
# Builds the enum from string
|
|
28
|
+
# @param [String] The enum value in the form of the string
|
|
29
|
+
# @return [String] The enum value
|
|
34
30
|
def build_from_hash(value)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
raise "Invalid ENUM value #{value} for class #AccountType" if consantValues.empty?
|
|
38
|
-
|
|
31
|
+
constantValues = AccountType.constants.select { |c| AccountType::const_get(c) == value }
|
|
32
|
+
raise "Invalid ENUM value #{value} for class #AccountType" if constantValues.empty?
|
|
39
33
|
value
|
|
40
|
-
|
|
41
34
|
end
|
|
42
35
|
end
|
|
43
|
-
|
|
44
36
|
end
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
Wallee API: 1.0.0
|
|
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
|
|
@@ -24,6 +20,9 @@ require 'date'
|
|
|
24
20
|
module Wallee
|
|
25
21
|
#
|
|
26
22
|
class AccountUpdate
|
|
23
|
+
#
|
|
24
|
+
attr_accessor :last_modified_date
|
|
25
|
+
|
|
27
26
|
# The name of the account identifies the account within the administrative interface.
|
|
28
27
|
attr_accessor :name
|
|
29
28
|
|
|
@@ -36,10 +35,10 @@ module Wallee
|
|
|
36
35
|
# The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
|
|
37
36
|
attr_accessor :version
|
|
38
37
|
|
|
39
|
-
|
|
40
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
39
|
def self.attribute_map
|
|
42
40
|
{
|
|
41
|
+
:'last_modified_date' => :'lastModifiedDate',
|
|
43
42
|
:'name' => :'name',
|
|
44
43
|
:'subaccount_limit' => :'subaccountLimit',
|
|
45
44
|
:'id' => :'id',
|
|
@@ -50,6 +49,7 @@ module Wallee
|
|
|
50
49
|
# Attribute type mapping.
|
|
51
50
|
def self.swagger_types
|
|
52
51
|
{
|
|
52
|
+
:'last_modified_date' => :'DateTime',
|
|
53
53
|
:'name' => :'String',
|
|
54
54
|
:'subaccount_limit' => :'Integer',
|
|
55
55
|
:'id' => :'Integer',
|
|
@@ -63,7 +63,11 @@ module Wallee
|
|
|
63
63
|
return unless attributes.is_a?(Hash)
|
|
64
64
|
|
|
65
65
|
# convert string to symbol for hash key
|
|
66
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'lastModifiedDate')
|
|
69
|
+
self.last_modified_date = attributes[:'lastModifiedDate']
|
|
70
|
+
end
|
|
67
71
|
|
|
68
72
|
if attributes.has_key?(:'name')
|
|
69
73
|
self.name = attributes[:'name']
|
|
@@ -80,30 +84,53 @@ module Wallee
|
|
|
80
84
|
if attributes.has_key?(:'version')
|
|
81
85
|
self.version = attributes[:'version']
|
|
82
86
|
end
|
|
83
|
-
|
|
84
87
|
end
|
|
85
88
|
|
|
86
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
|
-
# @return Array for valid
|
|
90
|
+
# @return Array for valid properties with the reasons
|
|
88
91
|
def list_invalid_properties
|
|
89
92
|
invalid_properties = Array.new
|
|
93
|
+
if !@name.nil? && @name.to_s.length > 200
|
|
94
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 200.')
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if !@name.nil? && @name.to_s.length < 3
|
|
98
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
|
99
|
+
end
|
|
100
|
+
|
|
90
101
|
if @id.nil?
|
|
91
|
-
invalid_properties.push(
|
|
102
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
92
103
|
end
|
|
93
104
|
|
|
94
105
|
if @version.nil?
|
|
95
|
-
invalid_properties.push(
|
|
106
|
+
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
|
96
107
|
end
|
|
97
108
|
|
|
98
|
-
|
|
109
|
+
invalid_properties
|
|
99
110
|
end
|
|
100
111
|
|
|
101
112
|
# Check to see if the all the properties in the model are valid
|
|
102
113
|
# @return true if the model is valid
|
|
103
114
|
def valid?
|
|
115
|
+
return false if !@name.nil? && @name.to_s.length > 200
|
|
116
|
+
return false if !@name.nil? && @name.to_s.length < 3
|
|
104
117
|
return false if @id.nil?
|
|
105
118
|
return false if @version.nil?
|
|
106
|
-
|
|
119
|
+
true
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Custom attribute writer method with validation
|
|
123
|
+
# @param [Object] name Value to be assigned
|
|
124
|
+
def name=(name)
|
|
125
|
+
if !name.nil? && name.to_s.length > 200
|
|
126
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 200.'
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if !name.nil? && name.to_s.length < 3
|
|
130
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
@name = name
|
|
107
134
|
end
|
|
108
135
|
|
|
109
136
|
# Checks equality by comparing each attribute.
|
|
@@ -111,6 +138,7 @@ module Wallee
|
|
|
111
138
|
def ==(o)
|
|
112
139
|
return true if self.equal?(o)
|
|
113
140
|
self.class == o.class &&
|
|
141
|
+
last_modified_date == o.last_modified_date &&
|
|
114
142
|
name == o.name &&
|
|
115
143
|
subaccount_limit == o.subaccount_limit &&
|
|
116
144
|
id == o.id &&
|
|
@@ -126,7 +154,7 @@ module Wallee
|
|
|
126
154
|
# Calculates hash code according to all attributes.
|
|
127
155
|
# @return [Fixnum] Hash code
|
|
128
156
|
def hash
|
|
129
|
-
[name, subaccount_limit, id, version].hash
|
|
157
|
+
[last_modified_date, name, subaccount_limit, id, version].hash
|
|
130
158
|
end
|
|
131
159
|
|
|
132
160
|
# Builds the object from hash
|
|
@@ -136,7 +164,7 @@ module Wallee
|
|
|
136
164
|
return nil unless attributes.is_a?(Hash)
|
|
137
165
|
self.class.swagger_types.each_pair do |key, type|
|
|
138
166
|
if type =~ /\AArray<(.*)>/i
|
|
139
|
-
# check to ensure the input is an array given that the
|
|
167
|
+
# check to ensure the input is an array given that the attribute
|
|
140
168
|
# is documented as an array but the input is not
|
|
141
169
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
142
170
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
@@ -234,5 +262,4 @@ module Wallee
|
|
|
234
262
|
end
|
|
235
263
|
|
|
236
264
|
end
|
|
237
|
-
|
|
238
265
|
end
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
Wallee API: 1.0.0
|
|
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
|
|
@@ -84,7 +80,6 @@ module Wallee
|
|
|
84
80
|
#
|
|
85
81
|
attr_accessor :street
|
|
86
82
|
|
|
87
|
-
|
|
88
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
89
84
|
def self.attribute_map
|
|
90
85
|
{
|
|
@@ -101,8 +96,8 @@ module Wallee
|
|
|
101
96
|
:'mobile_phone_number' => :'mobilePhoneNumber',
|
|
102
97
|
:'organization_name' => :'organizationName',
|
|
103
98
|
:'phone_number' => :'phoneNumber',
|
|
104
|
-
:'post_code' => :'postCode',
|
|
105
99
|
:'postal_state' => :'postalState',
|
|
100
|
+
:'postcode' => :'postcode',
|
|
106
101
|
:'sales_tax_number' => :'salesTaxNumber',
|
|
107
102
|
:'salutation' => :'salutation',
|
|
108
103
|
:'social_security_number' => :'socialSecurityNumber',
|
|
@@ -127,8 +122,8 @@ module Wallee
|
|
|
127
122
|
:'mobile_phone_number' => :'String',
|
|
128
123
|
:'organization_name' => :'String',
|
|
129
124
|
:'phone_number' => :'String',
|
|
130
|
-
:'post_code' => :'String',
|
|
131
125
|
:'postal_state' => :'String',
|
|
126
|
+
:'postcode' => :'String',
|
|
132
127
|
:'sales_tax_number' => :'String',
|
|
133
128
|
:'salutation' => :'String',
|
|
134
129
|
:'social_security_number' => :'String',
|
|
@@ -143,7 +138,7 @@ module Wallee
|
|
|
143
138
|
return unless attributes.is_a?(Hash)
|
|
144
139
|
|
|
145
140
|
# convert string to symbol for hash key
|
|
146
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
141
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
147
142
|
|
|
148
143
|
if attributes.has_key?(:'city')
|
|
149
144
|
self.city = attributes[:'city']
|
|
@@ -197,14 +192,14 @@ module Wallee
|
|
|
197
192
|
self.phone_number = attributes[:'phoneNumber']
|
|
198
193
|
end
|
|
199
194
|
|
|
200
|
-
if attributes.has_key?(:'postCode')
|
|
201
|
-
self.post_code = attributes[:'postCode']
|
|
202
|
-
end
|
|
203
|
-
|
|
204
195
|
if attributes.has_key?(:'postalState')
|
|
205
196
|
self.postal_state = attributes[:'postalState']
|
|
206
197
|
end
|
|
207
198
|
|
|
199
|
+
if attributes.has_key?(:'postcode')
|
|
200
|
+
self.postcode = attributes[:'postcode']
|
|
201
|
+
end
|
|
202
|
+
|
|
208
203
|
if attributes.has_key?(:'salesTaxNumber')
|
|
209
204
|
self.sales_tax_number = attributes[:'salesTaxNumber']
|
|
210
205
|
end
|
|
@@ -224,20 +219,244 @@ module Wallee
|
|
|
224
219
|
if attributes.has_key?(:'street')
|
|
225
220
|
self.street = attributes[:'street']
|
|
226
221
|
end
|
|
227
|
-
|
|
228
222
|
end
|
|
229
223
|
|
|
230
224
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
231
|
-
# @return Array for valid
|
|
225
|
+
# @return Array for valid properties with the reasons
|
|
232
226
|
def list_invalid_properties
|
|
233
227
|
invalid_properties = Array.new
|
|
234
|
-
|
|
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
|
+
|
|
288
|
+
invalid_properties
|
|
235
289
|
end
|
|
236
290
|
|
|
237
291
|
# Check to see if the all the properties in the model are valid
|
|
238
292
|
# @return true if the model is valid
|
|
239
293
|
def valid?
|
|
240
|
-
return
|
|
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
|
|
309
|
+
true
|
|
310
|
+
end
|
|
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
|
|
241
460
|
end
|
|
242
461
|
|
|
243
462
|
# Checks equality by comparing each attribute.
|
|
@@ -258,8 +477,8 @@ module Wallee
|
|
|
258
477
|
mobile_phone_number == o.mobile_phone_number &&
|
|
259
478
|
organization_name == o.organization_name &&
|
|
260
479
|
phone_number == o.phone_number &&
|
|
261
|
-
post_code == o.post_code &&
|
|
262
480
|
postal_state == o.postal_state &&
|
|
481
|
+
postcode == o.postcode &&
|
|
263
482
|
sales_tax_number == o.sales_tax_number &&
|
|
264
483
|
salutation == o.salutation &&
|
|
265
484
|
social_security_number == o.social_security_number &&
|
|
@@ -276,7 +495,7 @@ module Wallee
|
|
|
276
495
|
# Calculates hash code according to all attributes.
|
|
277
496
|
# @return [Fixnum] Hash code
|
|
278
497
|
def hash
|
|
279
|
-
[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
|
|
280
499
|
end
|
|
281
500
|
|
|
282
501
|
# Builds the object from hash
|
|
@@ -286,7 +505,7 @@ module Wallee
|
|
|
286
505
|
return nil unless attributes.is_a?(Hash)
|
|
287
506
|
self.class.swagger_types.each_pair do |key, type|
|
|
288
507
|
if type =~ /\AArray<(.*)>/i
|
|
289
|
-
# check to ensure the input is an array given that the
|
|
508
|
+
# check to ensure the input is an array given that the attribute
|
|
290
509
|
# is documented as an array but the input is not
|
|
291
510
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
292
511
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
@@ -384,5 +603,4 @@ module Wallee
|
|
|
384
603
|
end
|
|
385
604
|
|
|
386
605
|
end
|
|
387
|
-
|
|
388
606
|
end
|