postfinancecheckout-ruby-sdk 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +8 -0
- data/LICENSE +201 -0
- data/README.md +137 -0
- data/Rakefile +13 -0
- data/lib/.DS_Store +0 -0
- data/lib/postfinancecheckout-ruby-sdk.rb +392 -0
- data/lib/postfinancecheckout-ruby-sdk/api/account_service_api.rb +368 -0
- data/lib/postfinancecheckout-ruby-sdk/api/application_user_service_api.rb +368 -0
- data/lib/postfinancecheckout-ruby-sdk/api/bank_account_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/bank_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/charge_attempt_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_level_service_api.rb +276 -0
- data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_service_api.rb +348 -0
- data/lib/postfinancecheckout-ruby-sdk/api/condition_type_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/country_service_api.rb +81 -0
- data/lib/postfinancecheckout-ruby-sdk/api/country_state_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/currency_service_api.rb +81 -0
- data/lib/postfinancecheckout-ruby-sdk/api/customer_address_service_api.rb +460 -0
- data/lib/postfinancecheckout-ruby-sdk/api/customer_comment_service_api.rb +522 -0
- data/lib/postfinancecheckout-ruby-sdk/api/customer_service_api.rb +398 -0
- data/lib/postfinancecheckout-ruby-sdk/api/delivery_indication_service_api.rb +337 -0
- data/lib/postfinancecheckout-ruby-sdk/api/document_template_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/document_template_type_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/human_user_service_api.rb +425 -0
- data/lib/postfinancecheckout-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/label_description_group_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/label_description_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/language_service_api.rb +81 -0
- data/lib/postfinancecheckout-ruby-sdk/api/legal_organization_form_service_api.rb +197 -0
- data/lib/postfinancecheckout-ruby-sdk/api/manual_task_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_connector_configuration_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_connector_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_link_service_api.rb +398 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_method_configuration_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_method_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_processor_configuration_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_processor_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
- data/lib/postfinancecheckout-ruby-sdk/api/permission_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/refund_comment_service_api.rb +464 -0
- data/lib/postfinancecheckout-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/refund_service_api.rb +532 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_recurring_order_service_api.rb +274 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscriber_service_api.rb +275 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_product_service_api.rb +337 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_service_api.rb +466 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +337 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/api/space_service_api.rb +368 -0
- data/lib/postfinancecheckout-ruby-sdk/api/static_value_service_api.rb +139 -0
- data/lib/postfinancecheckout-ruby-sdk/api/token_service_api.rb +650 -0
- data/lib/postfinancecheckout-ruby-sdk/api/token_version_service_api.rb +276 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_comment_service_api.rb +464 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_completion_service_api.rb +463 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_iframe_service_api.rb +91 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_invoice_comment_service_api.rb +464 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_invoice_service_api.rb +600 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_lightbox_service_api.rb +91 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +86 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_payment_page_service_api.rb +91 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_service_api.rb +1210 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_terminal_service_api.rb +161 -0
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_void_service_api.rb +339 -0
- data/lib/postfinancecheckout-ruby-sdk/api/user_account_role_service_api.rb +219 -0
- data/lib/postfinancecheckout-ruby-sdk/api/user_space_role_service_api.rb +216 -0
- data/lib/postfinancecheckout-ruby-sdk/api/webhook_listener_service_api.rb +398 -0
- data/lib/postfinancecheckout-ruby-sdk/api/webhook_url_service_api.rb +398 -0
- data/lib/postfinancecheckout-ruby-sdk/api_client.rb +405 -0
- data/lib/postfinancecheckout-ruby-sdk/api_error.rb +43 -0
- data/lib/postfinancecheckout-ruby-sdk/configuration.rb +140 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_account_update.rb +234 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_application_user_update.rb +225 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_active.rb +312 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_address_active.rb +200 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_comment_active.rb +205 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_human_user_update.rb +320 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_payment_link_update.rb +309 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_refund_comment_active.rb +205 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_space_update.rb +286 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_token_update.rb +270 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_comment_active.rb +205 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +205 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_pending.rb +486 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_webhook_listener_update.rb +237 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_webhook_url_update.rb +249 -0
- data/lib/postfinancecheckout-ruby-sdk/models/account.rb +375 -0
- data/lib/postfinancecheckout-ruby-sdk/models/account_create.rb +260 -0
- data/lib/postfinancecheckout-ruby-sdk/models/account_state.rb +39 -0
- data/lib/postfinancecheckout-ruby-sdk/models/account_type.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/account_update.rb +265 -0
- data/lib/postfinancecheckout-ruby-sdk/models/address.rb +606 -0
- data/lib/postfinancecheckout-ruby-sdk/models/address_create.rb +606 -0
- data/lib/postfinancecheckout-ruby-sdk/models/application_user.rb +286 -0
- data/lib/postfinancecheckout-ruby-sdk/models/application_user_create.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/application_user_create_with_mac_key.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/application_user_update.rb +256 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account.rb +291 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account_environment.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account_state.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account_type.rb +227 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction.rb +387 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_source.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_state.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_type.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge.rb +331 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt.rb +468 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_environment.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_bank_transaction.rb +291 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow.rb +263 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level.rb +311 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_configuration.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_configuration_type.rb +227 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_payment_link.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_type.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/client_error.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/client_error_type.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/completion_line_item.rb +226 -0
- data/lib/postfinancecheckout-ruby-sdk/models/completion_line_item_create.rb +245 -0
- data/lib/postfinancecheckout-ruby-sdk/models/condition.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/models/condition_type.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/connector_invocation.rb +271 -0
- data/lib/postfinancecheckout-ruby-sdk/models/connector_invocation_stage.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/creation_entity_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/criteria_operator.rb +45 -0
- data/lib/postfinancecheckout-ruby-sdk/models/currency_bank_account.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer.rb +353 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_active.rb +343 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address.rb +261 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address_active.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address_create.rb +216 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address_type.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_comment.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_comment_active.rb +236 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_comment_create.rb +221 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_create.rb +313 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_postal_address.rb +606 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_postal_address_create.rb +606 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customers_presence.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/data_collection_type.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/database_translated_string.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/database_translated_string_item.rb +226 -0
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication.rb +321 -0
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication_decision_reason.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication_state.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/document_template.rb +306 -0
- data/lib/postfinancecheckout-ruby-sdk/models/document_template_type.rb +235 -0
- data/lib/postfinancecheckout-ruby-sdk/models/document_template_type_group.rb +203 -0
- data/lib/postfinancecheckout-ruby-sdk/models/entity_export_request.rb +208 -0
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query.rb +233 -0
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query_filter.rb +238 -0
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query_filter_type.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query_order_by.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query_order_by_type.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/environment.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/failure_category.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/failure_reason.rb +237 -0
- data/lib/postfinancecheckout-ruby-sdk/models/feature.rb +277 -0
- data/lib/postfinancecheckout-ruby-sdk/models/feature_category.rb +225 -0
- data/lib/postfinancecheckout-ruby-sdk/models/gender.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/human_user.rb +361 -0
- data/lib/postfinancecheckout-ruby-sdk/models/human_user_create.rb +331 -0
- data/lib/postfinancecheckout-ruby-sdk/models/human_user_update.rb +351 -0
- data/lib/postfinancecheckout-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor.rb +267 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_category.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_group.rb +225 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_type.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/legal_organization_form.rb +235 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item.rb +449 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_attribute.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_attribute_create.rb +249 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_create.rb +372 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_reduction.rb +226 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_reduction_create.rb +245 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_type.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/localized_string.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task.rb +283 -0
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_action.rb +223 -0
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_action_style.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_type.rb +227 -0
- data/lib/postfinancecheckout-ruby-sdk/models/one_click_payment_mode.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_adjustment.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_adjustment_type.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector.rb +321 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_configuration.rb +342 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_feature.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_contract.rb +331 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_contract_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_contract_type.rb +225 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_information_hash.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_information_hash_type.rb +203 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link.rb +390 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_active.rb +350 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_create.rb +345 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_protection_mode.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_update.rb +340 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method.rb +261 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_brand.rb +245 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_configuration.rb +370 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_primary_risk_taker.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_processor.rb +271 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_processor_configuration.rb +276 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal.rb +306 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_address.rb +396 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_state.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_version.rb +323 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_version_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_state.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version.rb +281 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_type.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/models/permission.rb +299 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund.rb +567 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_bank_transaction.rb +281 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_comment.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_comment_active.rb +236 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_comment_create.rb +221 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_create.rb +306 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_state.rb +39 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_type.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rendered_document.rb +223 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rendered_terminal_receipt.rb +223 -0
- data/lib/postfinancecheckout-ruby-sdk/models/resource_path.rb +275 -0
- data/lib/postfinancecheckout-ruby-sdk/models/resource_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_address_format.rb +227 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_address_format_field.rb +43 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_country.rb +243 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_country_state.rb +221 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_currency.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_language.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/role.rb +263 -0
- data/lib/postfinancecheckout-ruby-sdk/models/role_state.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/sales_channel.rb +245 -0
- data/lib/postfinancecheckout-ruby-sdk/models/scope.rb +350 -0
- data/lib/postfinancecheckout-ruby-sdk/models/server_error.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration.rb +470 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration_subscription_app_version.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order.rb +351 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order_state.rb +39 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber.rb +281 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription.rb +375 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_address.rb +546 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_creation_request.rb +363 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +271 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_model_tax_line.rb +201 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product.rb +471 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_create.rb +366 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_update.rb +351 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_state.rb +39 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension.rb +311 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_create.rb +226 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_initiator.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_state.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_type.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_update_request.rb +233 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version.rb +463 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_item.rb +233 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_weekday.rb +40 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_tax_line.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_transaction.rb +301 -0
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_transaction_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space.rb +407 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space_address.rb +416 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space_address_create.rb +416 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space_create.rb +302 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space_update.rb +317 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space_view.rb +275 -0
- data/lib/postfinancecheckout-ruby-sdk/models/static_value.rb +227 -0
- data/lib/postfinancecheckout-ruby-sdk/models/tax.rb +225 -0
- data/lib/postfinancecheckout-ruby-sdk/models/tax_create.rb +239 -0
- data/lib/postfinancecheckout-ruby-sdk/models/tenant_database.rb +226 -0
- data/lib/postfinancecheckout-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
- data/lib/postfinancecheckout-ruby-sdk/models/terminal_receipt_format.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token.rb +341 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_create.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_update.rb +301 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_version.rb +445 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_version_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_version_type.rb +225 -0
- data/lib/postfinancecheckout-ruby-sdk/models/tokenization_mode.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction.rb +1011 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_aware_entity.rb +211 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment_active.rb +236 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment_create.rb +221 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion.rb +528 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_mode.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_request.rb +291 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_state.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_create.rb +596 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_environment_selection_strategy.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_group.rb +276 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_group_state.rb +36 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice.rb +452 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment_active.rb +236 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment_create.rb +221 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_replacement.rb +296 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_state.rb +40 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_update_request.rb +208 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_version.rb +313 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_pending.rb +517 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_state.rb +43 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_user_interface_type.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_void.rb +373 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_void_mode.rb +35 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_void_state.rb +37 -0
- data/lib/postfinancecheckout-ruby-sdk/models/two_factor_authentication_type.rb +235 -0
- data/lib/postfinancecheckout-ruby-sdk/models/user.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/user_account_role.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/user_space_role.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/user_type.rb +38 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_identity.rb +256 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener.rb +308 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_create.rb +278 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_entity.rb +213 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_update.rb +268 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_url.rb +300 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_url_create.rb +250 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_url_update.rb +280 -0
- data/lib/postfinancecheckout-ruby-sdk/version.rb +20 -0
- data/postfinancecheckout-ruby-sdk.gemspec +44 -0
- data/test/condition_type_service_test.rb +22 -0
- data/test/transaction_create_service_test.rb +89 -0
- data/test/transaction_payment_page_service_test.rb +91 -0
- metadata +469 -0
@@ -0,0 +1,606 @@
|
|
1
|
+
=begin
|
2
|
+
The PostFinance Checkout API allows an easy interaction with the PostFinance Checkout web service.
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
|
16
|
+
=end
|
17
|
+
|
18
|
+
require 'date'
|
19
|
+
|
20
|
+
module PostFinanceCheckout
|
21
|
+
#
|
22
|
+
class CustomerPostalAddressCreate
|
23
|
+
#
|
24
|
+
attr_accessor :city
|
25
|
+
|
26
|
+
#
|
27
|
+
attr_accessor :commercial_register_number
|
28
|
+
|
29
|
+
#
|
30
|
+
attr_accessor :country
|
31
|
+
|
32
|
+
#
|
33
|
+
attr_accessor :date_of_birth
|
34
|
+
|
35
|
+
#
|
36
|
+
attr_accessor :dependent_locality
|
37
|
+
|
38
|
+
#
|
39
|
+
attr_accessor :email_address
|
40
|
+
|
41
|
+
#
|
42
|
+
attr_accessor :family_name
|
43
|
+
|
44
|
+
#
|
45
|
+
attr_accessor :gender
|
46
|
+
|
47
|
+
#
|
48
|
+
attr_accessor :given_name
|
49
|
+
|
50
|
+
#
|
51
|
+
attr_accessor :legal_organization_form
|
52
|
+
|
53
|
+
#
|
54
|
+
attr_accessor :mobile_phone_number
|
55
|
+
|
56
|
+
#
|
57
|
+
attr_accessor :organization_name
|
58
|
+
|
59
|
+
#
|
60
|
+
attr_accessor :phone_number
|
61
|
+
|
62
|
+
#
|
63
|
+
attr_accessor :postal_state
|
64
|
+
|
65
|
+
#
|
66
|
+
attr_accessor :postcode
|
67
|
+
|
68
|
+
#
|
69
|
+
attr_accessor :sales_tax_number
|
70
|
+
|
71
|
+
#
|
72
|
+
attr_accessor :salutation
|
73
|
+
|
74
|
+
#
|
75
|
+
attr_accessor :social_security_number
|
76
|
+
|
77
|
+
# The sorting code identifies the post office at which the post box is located in.
|
78
|
+
attr_accessor :sorting_code
|
79
|
+
|
80
|
+
#
|
81
|
+
attr_accessor :street
|
82
|
+
|
83
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
84
|
+
def self.attribute_map
|
85
|
+
{
|
86
|
+
:'city' => :'city',
|
87
|
+
:'commercial_register_number' => :'commercialRegisterNumber',
|
88
|
+
:'country' => :'country',
|
89
|
+
:'date_of_birth' => :'dateOfBirth',
|
90
|
+
:'dependent_locality' => :'dependentLocality',
|
91
|
+
:'email_address' => :'emailAddress',
|
92
|
+
:'family_name' => :'familyName',
|
93
|
+
:'gender' => :'gender',
|
94
|
+
:'given_name' => :'givenName',
|
95
|
+
:'legal_organization_form' => :'legalOrganizationForm',
|
96
|
+
:'mobile_phone_number' => :'mobilePhoneNumber',
|
97
|
+
:'organization_name' => :'organizationName',
|
98
|
+
:'phone_number' => :'phoneNumber',
|
99
|
+
:'postal_state' => :'postalState',
|
100
|
+
:'postcode' => :'postcode',
|
101
|
+
:'sales_tax_number' => :'salesTaxNumber',
|
102
|
+
:'salutation' => :'salutation',
|
103
|
+
:'social_security_number' => :'socialSecurityNumber',
|
104
|
+
:'sorting_code' => :'sortingCode',
|
105
|
+
:'street' => :'street'
|
106
|
+
}
|
107
|
+
end
|
108
|
+
|
109
|
+
# Attribute type mapping.
|
110
|
+
def self.swagger_types
|
111
|
+
{
|
112
|
+
:'city' => :'String',
|
113
|
+
:'commercial_register_number' => :'String',
|
114
|
+
:'country' => :'String',
|
115
|
+
:'date_of_birth' => :'Date',
|
116
|
+
:'dependent_locality' => :'String',
|
117
|
+
:'email_address' => :'String',
|
118
|
+
:'family_name' => :'String',
|
119
|
+
:'gender' => :'Gender',
|
120
|
+
:'given_name' => :'String',
|
121
|
+
:'legal_organization_form' => :'Integer',
|
122
|
+
:'mobile_phone_number' => :'String',
|
123
|
+
:'organization_name' => :'String',
|
124
|
+
:'phone_number' => :'String',
|
125
|
+
:'postal_state' => :'String',
|
126
|
+
:'postcode' => :'String',
|
127
|
+
:'sales_tax_number' => :'String',
|
128
|
+
:'salutation' => :'String',
|
129
|
+
:'social_security_number' => :'String',
|
130
|
+
:'sorting_code' => :'String',
|
131
|
+
:'street' => :'String'
|
132
|
+
}
|
133
|
+
end
|
134
|
+
|
135
|
+
# Initializes the object
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
137
|
+
def initialize(attributes = {})
|
138
|
+
return unless attributes.is_a?(Hash)
|
139
|
+
|
140
|
+
# convert string to symbol for hash key
|
141
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
142
|
+
|
143
|
+
if attributes.has_key?(:'city')
|
144
|
+
self.city = attributes[:'city']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.has_key?(:'commercialRegisterNumber')
|
148
|
+
self.commercial_register_number = attributes[:'commercialRegisterNumber']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.has_key?(:'country')
|
152
|
+
self.country = attributes[:'country']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.has_key?(:'dateOfBirth')
|
156
|
+
self.date_of_birth = attributes[:'dateOfBirth']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'dependentLocality')
|
160
|
+
self.dependent_locality = attributes[:'dependentLocality']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.has_key?(:'emailAddress')
|
164
|
+
self.email_address = attributes[:'emailAddress']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.has_key?(:'familyName')
|
168
|
+
self.family_name = attributes[:'familyName']
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes.has_key?(:'gender')
|
172
|
+
self.gender = attributes[:'gender']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.has_key?(:'givenName')
|
176
|
+
self.given_name = attributes[:'givenName']
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.has_key?(:'legalOrganizationForm')
|
180
|
+
self.legal_organization_form = attributes[:'legalOrganizationForm']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.has_key?(:'mobilePhoneNumber')
|
184
|
+
self.mobile_phone_number = attributes[:'mobilePhoneNumber']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.has_key?(:'organizationName')
|
188
|
+
self.organization_name = attributes[:'organizationName']
|
189
|
+
end
|
190
|
+
|
191
|
+
if attributes.has_key?(:'phoneNumber')
|
192
|
+
self.phone_number = attributes[:'phoneNumber']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.has_key?(:'postalState')
|
196
|
+
self.postal_state = attributes[:'postalState']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.has_key?(:'postcode')
|
200
|
+
self.postcode = attributes[:'postcode']
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.has_key?(:'salesTaxNumber')
|
204
|
+
self.sales_tax_number = attributes[:'salesTaxNumber']
|
205
|
+
end
|
206
|
+
|
207
|
+
if attributes.has_key?(:'salutation')
|
208
|
+
self.salutation = attributes[:'salutation']
|
209
|
+
end
|
210
|
+
|
211
|
+
if attributes.has_key?(:'socialSecurityNumber')
|
212
|
+
self.social_security_number = attributes[:'socialSecurityNumber']
|
213
|
+
end
|
214
|
+
|
215
|
+
if attributes.has_key?(:'sortingCode')
|
216
|
+
self.sorting_code = attributes[:'sortingCode']
|
217
|
+
end
|
218
|
+
|
219
|
+
if attributes.has_key?(:'street')
|
220
|
+
self.street = attributes[:'street']
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
225
|
+
# @return Array for valid properties with the reasons
|
226
|
+
def list_invalid_properties
|
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
|
+
|
288
|
+
invalid_properties
|
289
|
+
end
|
290
|
+
|
291
|
+
# Check to see if the all the properties in the model are valid
|
292
|
+
# @return true if the model is valid
|
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
|
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
|
460
|
+
end
|
461
|
+
|
462
|
+
# Checks equality by comparing each attribute.
|
463
|
+
# @param [Object] Object to be compared
|
464
|
+
def ==(o)
|
465
|
+
return true if self.equal?(o)
|
466
|
+
self.class == o.class &&
|
467
|
+
city == o.city &&
|
468
|
+
commercial_register_number == o.commercial_register_number &&
|
469
|
+
country == o.country &&
|
470
|
+
date_of_birth == o.date_of_birth &&
|
471
|
+
dependent_locality == o.dependent_locality &&
|
472
|
+
email_address == o.email_address &&
|
473
|
+
family_name == o.family_name &&
|
474
|
+
gender == o.gender &&
|
475
|
+
given_name == o.given_name &&
|
476
|
+
legal_organization_form == o.legal_organization_form &&
|
477
|
+
mobile_phone_number == o.mobile_phone_number &&
|
478
|
+
organization_name == o.organization_name &&
|
479
|
+
phone_number == o.phone_number &&
|
480
|
+
postal_state == o.postal_state &&
|
481
|
+
postcode == o.postcode &&
|
482
|
+
sales_tax_number == o.sales_tax_number &&
|
483
|
+
salutation == o.salutation &&
|
484
|
+
social_security_number == o.social_security_number &&
|
485
|
+
sorting_code == o.sorting_code &&
|
486
|
+
street == o.street
|
487
|
+
end
|
488
|
+
|
489
|
+
# @see the `==` method
|
490
|
+
# @param [Object] Object to be compared
|
491
|
+
def eql?(o)
|
492
|
+
self == o
|
493
|
+
end
|
494
|
+
|
495
|
+
# Calculates hash code according to all attributes.
|
496
|
+
# @return [Fixnum] Hash code
|
497
|
+
def hash
|
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
|
499
|
+
end
|
500
|
+
|
501
|
+
# Builds the object from hash
|
502
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
503
|
+
# @return [Object] Returns the model itself
|
504
|
+
def build_from_hash(attributes)
|
505
|
+
return nil unless attributes.is_a?(Hash)
|
506
|
+
self.class.swagger_types.each_pair do |key, type|
|
507
|
+
if type =~ /\AArray<(.*)>/i
|
508
|
+
# check to ensure the input is an array given that the attribute
|
509
|
+
# is documented as an array but the input is not
|
510
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
511
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
512
|
+
end
|
513
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
514
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
515
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
516
|
+
end
|
517
|
+
|
518
|
+
self
|
519
|
+
end
|
520
|
+
|
521
|
+
# Deserializes the data based on type
|
522
|
+
# @param string type Data type
|
523
|
+
# @param string value Value to be deserialized
|
524
|
+
# @return [Object] Deserialized data
|
525
|
+
def _deserialize(type, value)
|
526
|
+
case type.to_sym
|
527
|
+
when :DateTime
|
528
|
+
DateTime.parse(value)
|
529
|
+
when :Date
|
530
|
+
Date.parse(value)
|
531
|
+
when :String
|
532
|
+
value.to_s
|
533
|
+
when :Integer
|
534
|
+
value.to_i
|
535
|
+
when :Float
|
536
|
+
value.to_f
|
537
|
+
when :BOOLEAN
|
538
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
539
|
+
true
|
540
|
+
else
|
541
|
+
false
|
542
|
+
end
|
543
|
+
when :Object
|
544
|
+
# generic object (usually a Hash), return directly
|
545
|
+
value
|
546
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
547
|
+
inner_type = Regexp.last_match[:inner_type]
|
548
|
+
value.map { |v| _deserialize(inner_type, v) }
|
549
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
550
|
+
k_type = Regexp.last_match[:k_type]
|
551
|
+
v_type = Regexp.last_match[:v_type]
|
552
|
+
{}.tap do |hash|
|
553
|
+
value.each do |k, v|
|
554
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
555
|
+
end
|
556
|
+
end
|
557
|
+
else # model
|
558
|
+
temp_model = PostFinanceCheckout.const_get(type).new
|
559
|
+
temp_model.build_from_hash(value)
|
560
|
+
end
|
561
|
+
end
|
562
|
+
|
563
|
+
# Returns the string representation of the object
|
564
|
+
# @return [String] String presentation of the object
|
565
|
+
def to_s
|
566
|
+
to_hash.to_s
|
567
|
+
end
|
568
|
+
|
569
|
+
# to_body is an alias to to_hash (backward compatibility)
|
570
|
+
# @return [Hash] Returns the object in the form of hash
|
571
|
+
def to_body
|
572
|
+
to_hash
|
573
|
+
end
|
574
|
+
|
575
|
+
# Returns the object in the form of hash
|
576
|
+
# @return [Hash] Returns the object in the form of hash
|
577
|
+
def to_hash
|
578
|
+
hash = {}
|
579
|
+
self.class.attribute_map.each_pair do |attr, param|
|
580
|
+
value = self.send(attr)
|
581
|
+
next if value.nil?
|
582
|
+
hash[param] = _to_hash(value)
|
583
|
+
end
|
584
|
+
hash
|
585
|
+
end
|
586
|
+
|
587
|
+
# Outputs non-array value in the form of hash
|
588
|
+
# For object, use to_hash. Otherwise, just return the value
|
589
|
+
# @param [Object] value Any valid value
|
590
|
+
# @return [Hash] Returns the value in the form of hash
|
591
|
+
def _to_hash(value)
|
592
|
+
if value.is_a?(Array)
|
593
|
+
value.compact.map{ |v| _to_hash(v) }
|
594
|
+
elsif value.is_a?(Hash)
|
595
|
+
{}.tap do |hash|
|
596
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
597
|
+
end
|
598
|
+
elsif value.respond_to? :to_hash
|
599
|
+
value.to_hash
|
600
|
+
else
|
601
|
+
value
|
602
|
+
end
|
603
|
+
end
|
604
|
+
|
605
|
+
end
|
606
|
+
end
|