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,296 @@
|
|
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 ApplicationUserCreateWithMacKey
|
23
|
+
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
24
|
+
attr_accessor :id
|
25
|
+
|
26
|
+
# The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
|
27
|
+
attr_accessor :planned_purge_date
|
28
|
+
|
29
|
+
# The scope to which the user belongs to.
|
30
|
+
attr_accessor :scope
|
31
|
+
|
32
|
+
#
|
33
|
+
attr_accessor :state
|
34
|
+
|
35
|
+
#
|
36
|
+
attr_accessor :user_type
|
37
|
+
|
38
|
+
# The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
|
39
|
+
attr_accessor :version
|
40
|
+
|
41
|
+
# The user name is used to identify the application user in administrative interfaces.
|
42
|
+
attr_accessor :name
|
43
|
+
|
44
|
+
# The account that this user is associated with. The account owner will be able to manage this user.
|
45
|
+
attr_accessor :primary_account
|
46
|
+
|
47
|
+
# The request limit defines the maximum number of API request accepted within 2 minutes. This limit can only be changed with special privileges.
|
48
|
+
attr_accessor :request_limit
|
49
|
+
|
50
|
+
#
|
51
|
+
attr_accessor :mac_key
|
52
|
+
|
53
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
54
|
+
def self.attribute_map
|
55
|
+
{
|
56
|
+
:'id' => :'id',
|
57
|
+
:'planned_purge_date' => :'plannedPurgeDate',
|
58
|
+
:'scope' => :'scope',
|
59
|
+
:'state' => :'state',
|
60
|
+
:'user_type' => :'userType',
|
61
|
+
:'version' => :'version',
|
62
|
+
:'name' => :'name',
|
63
|
+
:'primary_account' => :'primaryAccount',
|
64
|
+
:'request_limit' => :'requestLimit',
|
65
|
+
:'mac_key' => :'macKey'
|
66
|
+
}
|
67
|
+
end
|
68
|
+
|
69
|
+
# Attribute type mapping.
|
70
|
+
def self.swagger_types
|
71
|
+
{
|
72
|
+
:'id' => :'Integer',
|
73
|
+
:'planned_purge_date' => :'DateTime',
|
74
|
+
:'scope' => :'Scope',
|
75
|
+
:'state' => :'CreationEntityState',
|
76
|
+
:'user_type' => :'UserType',
|
77
|
+
:'version' => :'Integer',
|
78
|
+
:'name' => :'String',
|
79
|
+
:'primary_account' => :'Account',
|
80
|
+
:'request_limit' => :'Integer',
|
81
|
+
:'mac_key' => :'String'
|
82
|
+
}
|
83
|
+
end
|
84
|
+
|
85
|
+
# Initializes the object
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
+
def initialize(attributes = {})
|
88
|
+
return unless attributes.is_a?(Hash)
|
89
|
+
|
90
|
+
# convert string to symbol for hash key
|
91
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
92
|
+
|
93
|
+
if attributes.has_key?(:'id')
|
94
|
+
self.id = attributes[:'id']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.has_key?(:'plannedPurgeDate')
|
98
|
+
self.planned_purge_date = attributes[:'plannedPurgeDate']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.has_key?(:'scope')
|
102
|
+
self.scope = attributes[:'scope']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.has_key?(:'state')
|
106
|
+
self.state = attributes[:'state']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.has_key?(:'userType')
|
110
|
+
self.user_type = attributes[:'userType']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.has_key?(:'version')
|
114
|
+
self.version = attributes[:'version']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.has_key?(:'name')
|
118
|
+
self.name = attributes[:'name']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.has_key?(:'primaryAccount')
|
122
|
+
self.primary_account = attributes[:'primaryAccount']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.has_key?(:'requestLimit')
|
126
|
+
self.request_limit = attributes[:'requestLimit']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.has_key?(:'macKey')
|
130
|
+
self.mac_key = attributes[:'macKey']
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
135
|
+
# @return Array for valid properties with the reasons
|
136
|
+
def list_invalid_properties
|
137
|
+
invalid_properties = Array.new
|
138
|
+
if !@name.nil? && @name.to_s.length > 256
|
139
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 256.')
|
140
|
+
end
|
141
|
+
|
142
|
+
invalid_properties
|
143
|
+
end
|
144
|
+
|
145
|
+
# Check to see if the all the properties in the model are valid
|
146
|
+
# @return true if the model is valid
|
147
|
+
def valid?
|
148
|
+
return false if !@name.nil? && @name.to_s.length > 256
|
149
|
+
true
|
150
|
+
end
|
151
|
+
|
152
|
+
# Custom attribute writer method with validation
|
153
|
+
# @param [Object] name Value to be assigned
|
154
|
+
def name=(name)
|
155
|
+
if !name.nil? && name.to_s.length > 256
|
156
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 256.'
|
157
|
+
end
|
158
|
+
|
159
|
+
@name = name
|
160
|
+
end
|
161
|
+
|
162
|
+
# Checks equality by comparing each attribute.
|
163
|
+
# @param [Object] Object to be compared
|
164
|
+
def ==(o)
|
165
|
+
return true if self.equal?(o)
|
166
|
+
self.class == o.class &&
|
167
|
+
id == o.id &&
|
168
|
+
planned_purge_date == o.planned_purge_date &&
|
169
|
+
scope == o.scope &&
|
170
|
+
state == o.state &&
|
171
|
+
user_type == o.user_type &&
|
172
|
+
version == o.version &&
|
173
|
+
name == o.name &&
|
174
|
+
primary_account == o.primary_account &&
|
175
|
+
request_limit == o.request_limit &&
|
176
|
+
mac_key == o.mac_key
|
177
|
+
end
|
178
|
+
|
179
|
+
# @see the `==` method
|
180
|
+
# @param [Object] Object to be compared
|
181
|
+
def eql?(o)
|
182
|
+
self == o
|
183
|
+
end
|
184
|
+
|
185
|
+
# Calculates hash code according to all attributes.
|
186
|
+
# @return [Fixnum] Hash code
|
187
|
+
def hash
|
188
|
+
[id, planned_purge_date, scope, state, user_type, version, name, primary_account, request_limit, mac_key].hash
|
189
|
+
end
|
190
|
+
|
191
|
+
# Builds the object from hash
|
192
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
193
|
+
# @return [Object] Returns the model itself
|
194
|
+
def build_from_hash(attributes)
|
195
|
+
return nil unless attributes.is_a?(Hash)
|
196
|
+
self.class.swagger_types.each_pair do |key, type|
|
197
|
+
if type =~ /\AArray<(.*)>/i
|
198
|
+
# check to ensure the input is an array given that the attribute
|
199
|
+
# is documented as an array but the input is not
|
200
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
201
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
202
|
+
end
|
203
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
204
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
205
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
206
|
+
end
|
207
|
+
|
208
|
+
self
|
209
|
+
end
|
210
|
+
|
211
|
+
# Deserializes the data based on type
|
212
|
+
# @param string type Data type
|
213
|
+
# @param string value Value to be deserialized
|
214
|
+
# @return [Object] Deserialized data
|
215
|
+
def _deserialize(type, value)
|
216
|
+
case type.to_sym
|
217
|
+
when :DateTime
|
218
|
+
DateTime.parse(value)
|
219
|
+
when :Date
|
220
|
+
Date.parse(value)
|
221
|
+
when :String
|
222
|
+
value.to_s
|
223
|
+
when :Integer
|
224
|
+
value.to_i
|
225
|
+
when :Float
|
226
|
+
value.to_f
|
227
|
+
when :BOOLEAN
|
228
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
229
|
+
true
|
230
|
+
else
|
231
|
+
false
|
232
|
+
end
|
233
|
+
when :Object
|
234
|
+
# generic object (usually a Hash), return directly
|
235
|
+
value
|
236
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
237
|
+
inner_type = Regexp.last_match[:inner_type]
|
238
|
+
value.map { |v| _deserialize(inner_type, v) }
|
239
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
240
|
+
k_type = Regexp.last_match[:k_type]
|
241
|
+
v_type = Regexp.last_match[:v_type]
|
242
|
+
{}.tap do |hash|
|
243
|
+
value.each do |k, v|
|
244
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
245
|
+
end
|
246
|
+
end
|
247
|
+
else # model
|
248
|
+
temp_model = PostFinanceCheckout.const_get(type).new
|
249
|
+
temp_model.build_from_hash(value)
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
# Returns the string representation of the object
|
254
|
+
# @return [String] String presentation of the object
|
255
|
+
def to_s
|
256
|
+
to_hash.to_s
|
257
|
+
end
|
258
|
+
|
259
|
+
# to_body is an alias to to_hash (backward compatibility)
|
260
|
+
# @return [Hash] Returns the object in the form of hash
|
261
|
+
def to_body
|
262
|
+
to_hash
|
263
|
+
end
|
264
|
+
|
265
|
+
# Returns the object in the form of hash
|
266
|
+
# @return [Hash] Returns the object in the form of hash
|
267
|
+
def to_hash
|
268
|
+
hash = {}
|
269
|
+
self.class.attribute_map.each_pair do |attr, param|
|
270
|
+
value = self.send(attr)
|
271
|
+
next if value.nil?
|
272
|
+
hash[param] = _to_hash(value)
|
273
|
+
end
|
274
|
+
hash
|
275
|
+
end
|
276
|
+
|
277
|
+
# Outputs non-array value in the form of hash
|
278
|
+
# For object, use to_hash. Otherwise, just return the value
|
279
|
+
# @param [Object] value Any valid value
|
280
|
+
# @return [Hash] Returns the value in the form of hash
|
281
|
+
def _to_hash(value)
|
282
|
+
if value.is_a?(Array)
|
283
|
+
value.compact.map{ |v| _to_hash(v) }
|
284
|
+
elsif value.is_a?(Hash)
|
285
|
+
{}.tap do |hash|
|
286
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
287
|
+
end
|
288
|
+
elsif value.respond_to? :to_hash
|
289
|
+
value.to_hash
|
290
|
+
else
|
291
|
+
value
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
end
|
296
|
+
end
|
@@ -0,0 +1,256 @@
|
|
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 ApplicationUserUpdate
|
23
|
+
# The user name is used to identify the application user in administrative interfaces.
|
24
|
+
attr_accessor :name
|
25
|
+
|
26
|
+
# The request limit defines the maximum number of API request accepted within 2 minutes. This limit can only be changed with special privileges.
|
27
|
+
attr_accessor :request_limit
|
28
|
+
|
29
|
+
#
|
30
|
+
attr_accessor :state
|
31
|
+
|
32
|
+
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
33
|
+
attr_accessor :id
|
34
|
+
|
35
|
+
# The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
|
36
|
+
attr_accessor :version
|
37
|
+
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
+
def self.attribute_map
|
40
|
+
{
|
41
|
+
:'name' => :'name',
|
42
|
+
:'request_limit' => :'requestLimit',
|
43
|
+
:'state' => :'state',
|
44
|
+
:'id' => :'id',
|
45
|
+
:'version' => :'version'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
def self.swagger_types
|
51
|
+
{
|
52
|
+
:'name' => :'String',
|
53
|
+
:'request_limit' => :'Integer',
|
54
|
+
:'state' => :'CreationEntityState',
|
55
|
+
:'id' => :'Integer',
|
56
|
+
:'version' => :'Integer'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
62
|
+
def initialize(attributes = {})
|
63
|
+
return unless attributes.is_a?(Hash)
|
64
|
+
|
65
|
+
# convert string to symbol for hash key
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
67
|
+
|
68
|
+
if attributes.has_key?(:'name')
|
69
|
+
self.name = attributes[:'name']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'requestLimit')
|
73
|
+
self.request_limit = attributes[:'requestLimit']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'state')
|
77
|
+
self.state = attributes[:'state']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.has_key?(:'id')
|
81
|
+
self.id = attributes[:'id']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'version')
|
85
|
+
self.version = attributes[:'version']
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
90
|
+
# @return Array for valid properties with the reasons
|
91
|
+
def list_invalid_properties
|
92
|
+
invalid_properties = Array.new
|
93
|
+
if !@name.nil? && @name.to_s.length > 256
|
94
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 256.')
|
95
|
+
end
|
96
|
+
|
97
|
+
if @id.nil?
|
98
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
99
|
+
end
|
100
|
+
|
101
|
+
if @version.nil?
|
102
|
+
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
103
|
+
end
|
104
|
+
|
105
|
+
invalid_properties
|
106
|
+
end
|
107
|
+
|
108
|
+
# Check to see if the all the properties in the model are valid
|
109
|
+
# @return true if the model is valid
|
110
|
+
def valid?
|
111
|
+
return false if !@name.nil? && @name.to_s.length > 256
|
112
|
+
return false if @id.nil?
|
113
|
+
return false if @version.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 > 256
|
121
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 256.'
|
122
|
+
end
|
123
|
+
|
124
|
+
@name = name
|
125
|
+
end
|
126
|
+
|
127
|
+
# Checks equality by comparing each attribute.
|
128
|
+
# @param [Object] Object to be compared
|
129
|
+
def ==(o)
|
130
|
+
return true if self.equal?(o)
|
131
|
+
self.class == o.class &&
|
132
|
+
name == o.name &&
|
133
|
+
request_limit == o.request_limit &&
|
134
|
+
state == o.state &&
|
135
|
+
id == o.id &&
|
136
|
+
version == o.version
|
137
|
+
end
|
138
|
+
|
139
|
+
# @see the `==` method
|
140
|
+
# @param [Object] Object to be compared
|
141
|
+
def eql?(o)
|
142
|
+
self == o
|
143
|
+
end
|
144
|
+
|
145
|
+
# Calculates hash code according to all attributes.
|
146
|
+
# @return [Fixnum] Hash code
|
147
|
+
def hash
|
148
|
+
[name, request_limit, state, id, version].hash
|
149
|
+
end
|
150
|
+
|
151
|
+
# Builds the object from hash
|
152
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
153
|
+
# @return [Object] Returns the model itself
|
154
|
+
def build_from_hash(attributes)
|
155
|
+
return nil unless attributes.is_a?(Hash)
|
156
|
+
self.class.swagger_types.each_pair do |key, type|
|
157
|
+
if type =~ /\AArray<(.*)>/i
|
158
|
+
# check to ensure the input is an array given that the attribute
|
159
|
+
# is documented as an array but the input is not
|
160
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
161
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
162
|
+
end
|
163
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
164
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
165
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
166
|
+
end
|
167
|
+
|
168
|
+
self
|
169
|
+
end
|
170
|
+
|
171
|
+
# Deserializes the data based on type
|
172
|
+
# @param string type Data type
|
173
|
+
# @param string value Value to be deserialized
|
174
|
+
# @return [Object] Deserialized data
|
175
|
+
def _deserialize(type, value)
|
176
|
+
case type.to_sym
|
177
|
+
when :DateTime
|
178
|
+
DateTime.parse(value)
|
179
|
+
when :Date
|
180
|
+
Date.parse(value)
|
181
|
+
when :String
|
182
|
+
value.to_s
|
183
|
+
when :Integer
|
184
|
+
value.to_i
|
185
|
+
when :Float
|
186
|
+
value.to_f
|
187
|
+
when :BOOLEAN
|
188
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
189
|
+
true
|
190
|
+
else
|
191
|
+
false
|
192
|
+
end
|
193
|
+
when :Object
|
194
|
+
# generic object (usually a Hash), return directly
|
195
|
+
value
|
196
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
197
|
+
inner_type = Regexp.last_match[:inner_type]
|
198
|
+
value.map { |v| _deserialize(inner_type, v) }
|
199
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
200
|
+
k_type = Regexp.last_match[:k_type]
|
201
|
+
v_type = Regexp.last_match[:v_type]
|
202
|
+
{}.tap do |hash|
|
203
|
+
value.each do |k, v|
|
204
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
else # model
|
208
|
+
temp_model = PostFinanceCheckout.const_get(type).new
|
209
|
+
temp_model.build_from_hash(value)
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
# Returns the string representation of the object
|
214
|
+
# @return [String] String presentation of the object
|
215
|
+
def to_s
|
216
|
+
to_hash.to_s
|
217
|
+
end
|
218
|
+
|
219
|
+
# to_body is an alias to to_hash (backward compatibility)
|
220
|
+
# @return [Hash] Returns the object in the form of hash
|
221
|
+
def to_body
|
222
|
+
to_hash
|
223
|
+
end
|
224
|
+
|
225
|
+
# Returns the object in the form of hash
|
226
|
+
# @return [Hash] Returns the object in the form of hash
|
227
|
+
def to_hash
|
228
|
+
hash = {}
|
229
|
+
self.class.attribute_map.each_pair do |attr, param|
|
230
|
+
value = self.send(attr)
|
231
|
+
next if value.nil?
|
232
|
+
hash[param] = _to_hash(value)
|
233
|
+
end
|
234
|
+
hash
|
235
|
+
end
|
236
|
+
|
237
|
+
# Outputs non-array value in the form of hash
|
238
|
+
# For object, use to_hash. Otherwise, just return the value
|
239
|
+
# @param [Object] value Any valid value
|
240
|
+
# @return [Hash] Returns the value in the form of hash
|
241
|
+
def _to_hash(value)
|
242
|
+
if value.is_a?(Array)
|
243
|
+
value.compact.map{ |v| _to_hash(v) }
|
244
|
+
elsif value.is_a?(Hash)
|
245
|
+
{}.tap do |hash|
|
246
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
247
|
+
end
|
248
|
+
elsif value.respond_to? :to_hash
|
249
|
+
value.to_hash
|
250
|
+
else
|
251
|
+
value
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
end
|
256
|
+
end
|