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,205 @@
|
|
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
|
+
class AbstractTransactionInvoiceCommentActive
|
22
|
+
#
|
23
|
+
attr_accessor :content
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'content' => :'content'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.swagger_types
|
34
|
+
{
|
35
|
+
:'content' => :'String'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
return unless attributes.is_a?(Hash)
|
43
|
+
|
44
|
+
# convert string to symbol for hash key
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
|
+
|
47
|
+
if attributes.has_key?(:'content')
|
48
|
+
self.content = attributes[:'content']
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
53
|
+
# @return Array for valid properties with the reasons
|
54
|
+
def list_invalid_properties
|
55
|
+
invalid_properties = Array.new
|
56
|
+
if !@content.nil? && @content.to_s.length > 262144
|
57
|
+
invalid_properties.push('invalid value for "content", the character length must be smaller than or equal to 262144.')
|
58
|
+
end
|
59
|
+
|
60
|
+
invalid_properties
|
61
|
+
end
|
62
|
+
|
63
|
+
# Check to see if the all the properties in the model are valid
|
64
|
+
# @return true if the model is valid
|
65
|
+
def valid?
|
66
|
+
return false if !@content.nil? && @content.to_s.length > 262144
|
67
|
+
true
|
68
|
+
end
|
69
|
+
|
70
|
+
# Custom attribute writer method with validation
|
71
|
+
# @param [Object] content Value to be assigned
|
72
|
+
def content=(content)
|
73
|
+
if !content.nil? && content.to_s.length > 262144
|
74
|
+
fail ArgumentError, 'invalid value for "content", the character length must be smaller than or equal to 262144.'
|
75
|
+
end
|
76
|
+
|
77
|
+
@content = content
|
78
|
+
end
|
79
|
+
|
80
|
+
# Checks equality by comparing each attribute.
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def ==(o)
|
83
|
+
return true if self.equal?(o)
|
84
|
+
self.class == o.class &&
|
85
|
+
content == o.content
|
86
|
+
end
|
87
|
+
|
88
|
+
# @see the `==` method
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def eql?(o)
|
91
|
+
self == o
|
92
|
+
end
|
93
|
+
|
94
|
+
# Calculates hash code according to all attributes.
|
95
|
+
# @return [Fixnum] Hash code
|
96
|
+
def hash
|
97
|
+
[content].hash
|
98
|
+
end
|
99
|
+
|
100
|
+
# Builds the object from hash
|
101
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
102
|
+
# @return [Object] Returns the model itself
|
103
|
+
def build_from_hash(attributes)
|
104
|
+
return nil unless attributes.is_a?(Hash)
|
105
|
+
self.class.swagger_types.each_pair do |key, type|
|
106
|
+
if type =~ /\AArray<(.*)>/i
|
107
|
+
# check to ensure the input is an array given that the attribute
|
108
|
+
# is documented as an array but the input is not
|
109
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
110
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
111
|
+
end
|
112
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
115
|
+
end
|
116
|
+
|
117
|
+
self
|
118
|
+
end
|
119
|
+
|
120
|
+
# Deserializes the data based on type
|
121
|
+
# @param string type Data type
|
122
|
+
# @param string value Value to be deserialized
|
123
|
+
# @return [Object] Deserialized data
|
124
|
+
def _deserialize(type, value)
|
125
|
+
case type.to_sym
|
126
|
+
when :DateTime
|
127
|
+
DateTime.parse(value)
|
128
|
+
when :Date
|
129
|
+
Date.parse(value)
|
130
|
+
when :String
|
131
|
+
value.to_s
|
132
|
+
when :Integer
|
133
|
+
value.to_i
|
134
|
+
when :Float
|
135
|
+
value.to_f
|
136
|
+
when :BOOLEAN
|
137
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
138
|
+
true
|
139
|
+
else
|
140
|
+
false
|
141
|
+
end
|
142
|
+
when :Object
|
143
|
+
# generic object (usually a Hash), return directly
|
144
|
+
value
|
145
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
146
|
+
inner_type = Regexp.last_match[:inner_type]
|
147
|
+
value.map { |v| _deserialize(inner_type, v) }
|
148
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
149
|
+
k_type = Regexp.last_match[:k_type]
|
150
|
+
v_type = Regexp.last_match[:v_type]
|
151
|
+
{}.tap do |hash|
|
152
|
+
value.each do |k, v|
|
153
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
else # model
|
157
|
+
temp_model = PostFinanceCheckout.const_get(type).new
|
158
|
+
temp_model.build_from_hash(value)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the string representation of the object
|
163
|
+
# @return [String] String presentation of the object
|
164
|
+
def to_s
|
165
|
+
to_hash.to_s
|
166
|
+
end
|
167
|
+
|
168
|
+
# to_body is an alias to to_hash (backward compatibility)
|
169
|
+
# @return [Hash] Returns the object in the form of hash
|
170
|
+
def to_body
|
171
|
+
to_hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Returns the object in the form of hash
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
176
|
+
def to_hash
|
177
|
+
hash = {}
|
178
|
+
self.class.attribute_map.each_pair do |attr, param|
|
179
|
+
value = self.send(attr)
|
180
|
+
next if value.nil?
|
181
|
+
hash[param] = _to_hash(value)
|
182
|
+
end
|
183
|
+
hash
|
184
|
+
end
|
185
|
+
|
186
|
+
# Outputs non-array value in the form of hash
|
187
|
+
# For object, use to_hash. Otherwise, just return the value
|
188
|
+
# @param [Object] value Any valid value
|
189
|
+
# @return [Hash] Returns the value in the form of hash
|
190
|
+
def _to_hash(value)
|
191
|
+
if value.is_a?(Array)
|
192
|
+
value.compact.map{ |v| _to_hash(v) }
|
193
|
+
elsif value.is_a?(Hash)
|
194
|
+
{}.tap do |hash|
|
195
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
196
|
+
end
|
197
|
+
elsif value.respond_to? :to_hash
|
198
|
+
value.to_hash
|
199
|
+
else
|
200
|
+
value
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
end
|
205
|
+
end
|
@@ -0,0 +1,486 @@
|
|
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
|
+
class AbstractTransactionPending
|
22
|
+
#
|
23
|
+
attr_accessor :allowed_payment_method_brands
|
24
|
+
|
25
|
+
#
|
26
|
+
attr_accessor :allowed_payment_method_configurations
|
27
|
+
|
28
|
+
#
|
29
|
+
attr_accessor :billing_address
|
30
|
+
|
31
|
+
# The completion behavior controls when the transaction is completed.
|
32
|
+
attr_accessor :completion_behavior
|
33
|
+
|
34
|
+
#
|
35
|
+
attr_accessor :currency
|
36
|
+
|
37
|
+
# The customer email address is the email address of the customer. If no email address is provided on the shipping or billing address this address is used.
|
38
|
+
attr_accessor :customer_email_address
|
39
|
+
|
40
|
+
#
|
41
|
+
attr_accessor :customer_id
|
42
|
+
|
43
|
+
# The user will be redirected to failed URL when the transaction could not be authorized or completed. In case no failed URL is specified a default failed page will be displayed.
|
44
|
+
attr_accessor :failed_url
|
45
|
+
|
46
|
+
#
|
47
|
+
attr_accessor :invoice_merchant_reference
|
48
|
+
|
49
|
+
#
|
50
|
+
attr_accessor :language
|
51
|
+
|
52
|
+
#
|
53
|
+
attr_accessor :line_items
|
54
|
+
|
55
|
+
#
|
56
|
+
attr_accessor :merchant_reference
|
57
|
+
|
58
|
+
# Meta data allow to store additional data along the object.
|
59
|
+
attr_accessor :meta_data
|
60
|
+
|
61
|
+
#
|
62
|
+
attr_accessor :shipping_address
|
63
|
+
|
64
|
+
#
|
65
|
+
attr_accessor :shipping_method
|
66
|
+
|
67
|
+
# The user will be redirected to success URL when the transaction could be authorized or completed. In case no success URL is specified a default success page will be displayed.
|
68
|
+
attr_accessor :success_url
|
69
|
+
|
70
|
+
# The time zone defines in which time zone the customer is located in. The time zone may affects how dates are formatted when interacting with the customer.
|
71
|
+
attr_accessor :time_zone
|
72
|
+
|
73
|
+
#
|
74
|
+
attr_accessor :token
|
75
|
+
|
76
|
+
# The tokenization mode controls if and how the tokenization of payment information is applied to the transaction.
|
77
|
+
attr_accessor :tokenization_mode
|
78
|
+
|
79
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
80
|
+
def self.attribute_map
|
81
|
+
{
|
82
|
+
:'allowed_payment_method_brands' => :'allowedPaymentMethodBrands',
|
83
|
+
:'allowed_payment_method_configurations' => :'allowedPaymentMethodConfigurations',
|
84
|
+
:'billing_address' => :'billingAddress',
|
85
|
+
:'completion_behavior' => :'completionBehavior',
|
86
|
+
:'currency' => :'currency',
|
87
|
+
:'customer_email_address' => :'customerEmailAddress',
|
88
|
+
:'customer_id' => :'customerId',
|
89
|
+
:'failed_url' => :'failedUrl',
|
90
|
+
:'invoice_merchant_reference' => :'invoiceMerchantReference',
|
91
|
+
:'language' => :'language',
|
92
|
+
:'line_items' => :'lineItems',
|
93
|
+
:'merchant_reference' => :'merchantReference',
|
94
|
+
:'meta_data' => :'metaData',
|
95
|
+
:'shipping_address' => :'shippingAddress',
|
96
|
+
:'shipping_method' => :'shippingMethod',
|
97
|
+
:'success_url' => :'successUrl',
|
98
|
+
:'time_zone' => :'timeZone',
|
99
|
+
:'token' => :'token',
|
100
|
+
:'tokenization_mode' => :'tokenizationMode'
|
101
|
+
}
|
102
|
+
end
|
103
|
+
|
104
|
+
# Attribute type mapping.
|
105
|
+
def self.swagger_types
|
106
|
+
{
|
107
|
+
:'allowed_payment_method_brands' => :'Array<PaymentMethodBrand>',
|
108
|
+
:'allowed_payment_method_configurations' => :'Array<Integer>',
|
109
|
+
:'billing_address' => :'AddressCreate',
|
110
|
+
:'completion_behavior' => :'TransactionCompletionBehavior',
|
111
|
+
:'currency' => :'String',
|
112
|
+
:'customer_email_address' => :'String',
|
113
|
+
:'customer_id' => :'String',
|
114
|
+
:'failed_url' => :'String',
|
115
|
+
:'invoice_merchant_reference' => :'String',
|
116
|
+
:'language' => :'String',
|
117
|
+
:'line_items' => :'Array<LineItemCreate>',
|
118
|
+
:'merchant_reference' => :'String',
|
119
|
+
:'meta_data' => :'Hash<String, String>',
|
120
|
+
:'shipping_address' => :'AddressCreate',
|
121
|
+
:'shipping_method' => :'String',
|
122
|
+
:'success_url' => :'String',
|
123
|
+
:'time_zone' => :'String',
|
124
|
+
:'token' => :'Integer',
|
125
|
+
:'tokenization_mode' => :'TokenizationMode'
|
126
|
+
}
|
127
|
+
end
|
128
|
+
|
129
|
+
# Initializes the object
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
131
|
+
def initialize(attributes = {})
|
132
|
+
return unless attributes.is_a?(Hash)
|
133
|
+
|
134
|
+
# convert string to symbol for hash key
|
135
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
136
|
+
|
137
|
+
if attributes.has_key?(:'allowedPaymentMethodBrands')
|
138
|
+
if (value = attributes[:'allowedPaymentMethodBrands']).is_a?(Array)
|
139
|
+
self.allowed_payment_method_brands = value
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.has_key?(:'allowedPaymentMethodConfigurations')
|
144
|
+
if (value = attributes[:'allowedPaymentMethodConfigurations']).is_a?(Array)
|
145
|
+
self.allowed_payment_method_configurations = value
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'billingAddress')
|
150
|
+
self.billing_address = attributes[:'billingAddress']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.has_key?(:'completionBehavior')
|
154
|
+
self.completion_behavior = attributes[:'completionBehavior']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.has_key?(:'currency')
|
158
|
+
self.currency = attributes[:'currency']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.has_key?(:'customerEmailAddress')
|
162
|
+
self.customer_email_address = attributes[:'customerEmailAddress']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.has_key?(:'customerId')
|
166
|
+
self.customer_id = attributes[:'customerId']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.has_key?(:'failedUrl')
|
170
|
+
self.failed_url = attributes[:'failedUrl']
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.has_key?(:'invoiceMerchantReference')
|
174
|
+
self.invoice_merchant_reference = attributes[:'invoiceMerchantReference']
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.has_key?(:'language')
|
178
|
+
self.language = attributes[:'language']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.has_key?(:'lineItems')
|
182
|
+
if (value = attributes[:'lineItems']).is_a?(Array)
|
183
|
+
self.line_items = value
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.has_key?(:'merchantReference')
|
188
|
+
self.merchant_reference = attributes[:'merchantReference']
|
189
|
+
end
|
190
|
+
|
191
|
+
if attributes.has_key?(:'metaData')
|
192
|
+
if (value = attributes[:'metaData']).is_a?(Hash)
|
193
|
+
self.meta_data = value
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
if attributes.has_key?(:'shippingAddress')
|
198
|
+
self.shipping_address = attributes[:'shippingAddress']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.has_key?(:'shippingMethod')
|
202
|
+
self.shipping_method = attributes[:'shippingMethod']
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes.has_key?(:'successUrl')
|
206
|
+
self.success_url = attributes[:'successUrl']
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes.has_key?(:'timeZone')
|
210
|
+
self.time_zone = attributes[:'timeZone']
|
211
|
+
end
|
212
|
+
|
213
|
+
if attributes.has_key?(:'token')
|
214
|
+
self.token = attributes[:'token']
|
215
|
+
end
|
216
|
+
|
217
|
+
if attributes.has_key?(:'tokenizationMode')
|
218
|
+
self.tokenization_mode = attributes[:'tokenizationMode']
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
223
|
+
# @return Array for valid properties with the reasons
|
224
|
+
def list_invalid_properties
|
225
|
+
invalid_properties = Array.new
|
226
|
+
if !@customer_email_address.nil? && @customer_email_address.to_s.length > 254
|
227
|
+
invalid_properties.push('invalid value for "customer_email_address", the character length must be smaller than or equal to 254.')
|
228
|
+
end
|
229
|
+
|
230
|
+
if !@failed_url.nil? && @failed_url.to_s.length > 1000
|
231
|
+
invalid_properties.push('invalid value for "failed_url", the character length must be smaller than or equal to 1000.')
|
232
|
+
end
|
233
|
+
|
234
|
+
if !@failed_url.nil? && @failed_url.to_s.length < 9
|
235
|
+
invalid_properties.push('invalid value for "failed_url", the character length must be great than or equal to 9.')
|
236
|
+
end
|
237
|
+
|
238
|
+
if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
|
239
|
+
invalid_properties.push('invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.')
|
240
|
+
end
|
241
|
+
|
242
|
+
if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
|
243
|
+
invalid_properties.push('invalid value for "merchant_reference", the character length must be smaller than or equal to 100.')
|
244
|
+
end
|
245
|
+
|
246
|
+
if !@shipping_method.nil? && @shipping_method.to_s.length > 200
|
247
|
+
invalid_properties.push('invalid value for "shipping_method", the character length must be smaller than or equal to 200.')
|
248
|
+
end
|
249
|
+
|
250
|
+
if !@success_url.nil? && @success_url.to_s.length > 1000
|
251
|
+
invalid_properties.push('invalid value for "success_url", the character length must be smaller than or equal to 1000.')
|
252
|
+
end
|
253
|
+
|
254
|
+
if !@success_url.nil? && @success_url.to_s.length < 9
|
255
|
+
invalid_properties.push('invalid value for "success_url", the character length must be great than or equal to 9.')
|
256
|
+
end
|
257
|
+
|
258
|
+
invalid_properties
|
259
|
+
end
|
260
|
+
|
261
|
+
# Check to see if the all the properties in the model are valid
|
262
|
+
# @return true if the model is valid
|
263
|
+
def valid?
|
264
|
+
return false if !@customer_email_address.nil? && @customer_email_address.to_s.length > 254
|
265
|
+
return false if !@failed_url.nil? && @failed_url.to_s.length > 1000
|
266
|
+
return false if !@failed_url.nil? && @failed_url.to_s.length < 9
|
267
|
+
return false if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
|
268
|
+
return false if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
|
269
|
+
return false if !@shipping_method.nil? && @shipping_method.to_s.length > 200
|
270
|
+
return false if !@success_url.nil? && @success_url.to_s.length > 1000
|
271
|
+
return false if !@success_url.nil? && @success_url.to_s.length < 9
|
272
|
+
true
|
273
|
+
end
|
274
|
+
|
275
|
+
# Custom attribute writer method with validation
|
276
|
+
# @param [Object] customer_email_address Value to be assigned
|
277
|
+
def customer_email_address=(customer_email_address)
|
278
|
+
if !customer_email_address.nil? && customer_email_address.to_s.length > 254
|
279
|
+
fail ArgumentError, 'invalid value for "customer_email_address", the character length must be smaller than or equal to 254.'
|
280
|
+
end
|
281
|
+
|
282
|
+
@customer_email_address = customer_email_address
|
283
|
+
end
|
284
|
+
|
285
|
+
# Custom attribute writer method with validation
|
286
|
+
# @param [Object] failed_url Value to be assigned
|
287
|
+
def failed_url=(failed_url)
|
288
|
+
if !failed_url.nil? && failed_url.to_s.length > 1000
|
289
|
+
fail ArgumentError, 'invalid value for "failed_url", the character length must be smaller than or equal to 1000.'
|
290
|
+
end
|
291
|
+
|
292
|
+
if !failed_url.nil? && failed_url.to_s.length < 9
|
293
|
+
fail ArgumentError, 'invalid value for "failed_url", the character length must be great than or equal to 9.'
|
294
|
+
end
|
295
|
+
|
296
|
+
@failed_url = failed_url
|
297
|
+
end
|
298
|
+
|
299
|
+
# Custom attribute writer method with validation
|
300
|
+
# @param [Object] invoice_merchant_reference Value to be assigned
|
301
|
+
def invoice_merchant_reference=(invoice_merchant_reference)
|
302
|
+
if !invoice_merchant_reference.nil? && invoice_merchant_reference.to_s.length > 100
|
303
|
+
fail ArgumentError, 'invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.'
|
304
|
+
end
|
305
|
+
|
306
|
+
@invoice_merchant_reference = invoice_merchant_reference
|
307
|
+
end
|
308
|
+
|
309
|
+
# Custom attribute writer method with validation
|
310
|
+
# @param [Object] merchant_reference Value to be assigned
|
311
|
+
def merchant_reference=(merchant_reference)
|
312
|
+
if !merchant_reference.nil? && merchant_reference.to_s.length > 100
|
313
|
+
fail ArgumentError, 'invalid value for "merchant_reference", the character length must be smaller than or equal to 100.'
|
314
|
+
end
|
315
|
+
|
316
|
+
@merchant_reference = merchant_reference
|
317
|
+
end
|
318
|
+
|
319
|
+
# Custom attribute writer method with validation
|
320
|
+
# @param [Object] shipping_method Value to be assigned
|
321
|
+
def shipping_method=(shipping_method)
|
322
|
+
if !shipping_method.nil? && shipping_method.to_s.length > 200
|
323
|
+
fail ArgumentError, 'invalid value for "shipping_method", the character length must be smaller than or equal to 200.'
|
324
|
+
end
|
325
|
+
|
326
|
+
@shipping_method = shipping_method
|
327
|
+
end
|
328
|
+
|
329
|
+
# Custom attribute writer method with validation
|
330
|
+
# @param [Object] success_url Value to be assigned
|
331
|
+
def success_url=(success_url)
|
332
|
+
if !success_url.nil? && success_url.to_s.length > 1000
|
333
|
+
fail ArgumentError, 'invalid value for "success_url", the character length must be smaller than or equal to 1000.'
|
334
|
+
end
|
335
|
+
|
336
|
+
if !success_url.nil? && success_url.to_s.length < 9
|
337
|
+
fail ArgumentError, 'invalid value for "success_url", the character length must be great than or equal to 9.'
|
338
|
+
end
|
339
|
+
|
340
|
+
@success_url = success_url
|
341
|
+
end
|
342
|
+
|
343
|
+
# Checks equality by comparing each attribute.
|
344
|
+
# @param [Object] Object to be compared
|
345
|
+
def ==(o)
|
346
|
+
return true if self.equal?(o)
|
347
|
+
self.class == o.class &&
|
348
|
+
allowed_payment_method_brands == o.allowed_payment_method_brands &&
|
349
|
+
allowed_payment_method_configurations == o.allowed_payment_method_configurations &&
|
350
|
+
billing_address == o.billing_address &&
|
351
|
+
completion_behavior == o.completion_behavior &&
|
352
|
+
currency == o.currency &&
|
353
|
+
customer_email_address == o.customer_email_address &&
|
354
|
+
customer_id == o.customer_id &&
|
355
|
+
failed_url == o.failed_url &&
|
356
|
+
invoice_merchant_reference == o.invoice_merchant_reference &&
|
357
|
+
language == o.language &&
|
358
|
+
line_items == o.line_items &&
|
359
|
+
merchant_reference == o.merchant_reference &&
|
360
|
+
meta_data == o.meta_data &&
|
361
|
+
shipping_address == o.shipping_address &&
|
362
|
+
shipping_method == o.shipping_method &&
|
363
|
+
success_url == o.success_url &&
|
364
|
+
time_zone == o.time_zone &&
|
365
|
+
token == o.token &&
|
366
|
+
tokenization_mode == o.tokenization_mode
|
367
|
+
end
|
368
|
+
|
369
|
+
# @see the `==` method
|
370
|
+
# @param [Object] Object to be compared
|
371
|
+
def eql?(o)
|
372
|
+
self == o
|
373
|
+
end
|
374
|
+
|
375
|
+
# Calculates hash code according to all attributes.
|
376
|
+
# @return [Fixnum] Hash code
|
377
|
+
def hash
|
378
|
+
[allowed_payment_method_brands, allowed_payment_method_configurations, billing_address, completion_behavior, currency, customer_email_address, customer_id, failed_url, invoice_merchant_reference, language, line_items, merchant_reference, meta_data, shipping_address, shipping_method, success_url, time_zone, token, tokenization_mode].hash
|
379
|
+
end
|
380
|
+
|
381
|
+
# Builds the object from hash
|
382
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
383
|
+
# @return [Object] Returns the model itself
|
384
|
+
def build_from_hash(attributes)
|
385
|
+
return nil unless attributes.is_a?(Hash)
|
386
|
+
self.class.swagger_types.each_pair do |key, type|
|
387
|
+
if type =~ /\AArray<(.*)>/i
|
388
|
+
# check to ensure the input is an array given that the attribute
|
389
|
+
# is documented as an array but the input is not
|
390
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
391
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
392
|
+
end
|
393
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
394
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
395
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
396
|
+
end
|
397
|
+
|
398
|
+
self
|
399
|
+
end
|
400
|
+
|
401
|
+
# Deserializes the data based on type
|
402
|
+
# @param string type Data type
|
403
|
+
# @param string value Value to be deserialized
|
404
|
+
# @return [Object] Deserialized data
|
405
|
+
def _deserialize(type, value)
|
406
|
+
case type.to_sym
|
407
|
+
when :DateTime
|
408
|
+
DateTime.parse(value)
|
409
|
+
when :Date
|
410
|
+
Date.parse(value)
|
411
|
+
when :String
|
412
|
+
value.to_s
|
413
|
+
when :Integer
|
414
|
+
value.to_i
|
415
|
+
when :Float
|
416
|
+
value.to_f
|
417
|
+
when :BOOLEAN
|
418
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
419
|
+
true
|
420
|
+
else
|
421
|
+
false
|
422
|
+
end
|
423
|
+
when :Object
|
424
|
+
# generic object (usually a Hash), return directly
|
425
|
+
value
|
426
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
427
|
+
inner_type = Regexp.last_match[:inner_type]
|
428
|
+
value.map { |v| _deserialize(inner_type, v) }
|
429
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
430
|
+
k_type = Regexp.last_match[:k_type]
|
431
|
+
v_type = Regexp.last_match[:v_type]
|
432
|
+
{}.tap do |hash|
|
433
|
+
value.each do |k, v|
|
434
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
435
|
+
end
|
436
|
+
end
|
437
|
+
else # model
|
438
|
+
temp_model = PostFinanceCheckout.const_get(type).new
|
439
|
+
temp_model.build_from_hash(value)
|
440
|
+
end
|
441
|
+
end
|
442
|
+
|
443
|
+
# Returns the string representation of the object
|
444
|
+
# @return [String] String presentation of the object
|
445
|
+
def to_s
|
446
|
+
to_hash.to_s
|
447
|
+
end
|
448
|
+
|
449
|
+
# to_body is an alias to to_hash (backward compatibility)
|
450
|
+
# @return [Hash] Returns the object in the form of hash
|
451
|
+
def to_body
|
452
|
+
to_hash
|
453
|
+
end
|
454
|
+
|
455
|
+
# Returns the object in the form of hash
|
456
|
+
# @return [Hash] Returns the object in the form of hash
|
457
|
+
def to_hash
|
458
|
+
hash = {}
|
459
|
+
self.class.attribute_map.each_pair do |attr, param|
|
460
|
+
value = self.send(attr)
|
461
|
+
next if value.nil?
|
462
|
+
hash[param] = _to_hash(value)
|
463
|
+
end
|
464
|
+
hash
|
465
|
+
end
|
466
|
+
|
467
|
+
# Outputs non-array value in the form of hash
|
468
|
+
# For object, use to_hash. Otherwise, just return the value
|
469
|
+
# @param [Object] value Any valid value
|
470
|
+
# @return [Hash] Returns the value in the form of hash
|
471
|
+
def _to_hash(value)
|
472
|
+
if value.is_a?(Array)
|
473
|
+
value.compact.map{ |v| _to_hash(v) }
|
474
|
+
elsif value.is_a?(Hash)
|
475
|
+
{}.tap do |hash|
|
476
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
477
|
+
end
|
478
|
+
elsif value.respond_to? :to_hash
|
479
|
+
value.to_hash
|
480
|
+
else
|
481
|
+
value
|
482
|
+
end
|
483
|
+
end
|
484
|
+
|
485
|
+
end
|
486
|
+
end
|