=begin The PostFinance Checkout API allows an easy interaction with the PostFinance Checkout web service. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. =end require 'date' module PostFinanceCheckout # class ChargeAttempt # The ID is the primary key of the entity. The ID identifies the entity uniquely. attr_accessor :id # The linked space id holds the ID of the space to which the entity belongs to. attr_accessor :linked_space_id # attr_accessor :linked_transaction # attr_accessor :charge # attr_accessor :completion_behavior # attr_accessor :connector_configuration # The created on date indicates the date on which the entity was stored into the database. attr_accessor :created_on # The customers presence indicates which kind of customer interaction was used during the charge attempt. attr_accessor :customers_presence # attr_accessor :environment # attr_accessor :failed_on # attr_accessor :failure_reason # attr_accessor :initializing_token_version # attr_accessor :invocation # attr_accessor :labels # attr_accessor :language # attr_accessor :next_update_on # The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. attr_accessor :planned_purge_date # attr_accessor :redirection_url # attr_accessor :sales_channel # attr_accessor :space_view_id # attr_accessor :state # attr_accessor :succeeded_on # attr_accessor :terminal # attr_accessor :time_zone # attr_accessor :timeout_on # attr_accessor :token_version # The user failure message contains the message for the user in case the attempt failed. The message is localized into the language specified on the transaction. attr_accessor :user_failure_message # The version number indicates the version of the entity. The version is incremented whenever the entity is changed. attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', :'linked_space_id' => :'linkedSpaceId', :'linked_transaction' => :'linkedTransaction', :'charge' => :'charge', :'completion_behavior' => :'completionBehavior', :'connector_configuration' => :'connectorConfiguration', :'created_on' => :'createdOn', :'customers_presence' => :'customersPresence', :'environment' => :'environment', :'failed_on' => :'failedOn', :'failure_reason' => :'failureReason', :'initializing_token_version' => :'initializingTokenVersion', :'invocation' => :'invocation', :'labels' => :'labels', :'language' => :'language', :'next_update_on' => :'nextUpdateOn', :'planned_purge_date' => :'plannedPurgeDate', :'redirection_url' => :'redirectionUrl', :'sales_channel' => :'salesChannel', :'space_view_id' => :'spaceViewId', :'state' => :'state', :'succeeded_on' => :'succeededOn', :'terminal' => :'terminal', :'time_zone' => :'timeZone', :'timeout_on' => :'timeoutOn', :'token_version' => :'tokenVersion', :'user_failure_message' => :'userFailureMessage', :'version' => :'version' } end # Attribute type mapping. def self.swagger_types { :'id' => :'Integer', :'linked_space_id' => :'Integer', :'linked_transaction' => :'Integer', :'charge' => :'Charge', :'completion_behavior' => :'TransactionCompletionBehavior', :'connector_configuration' => :'PaymentConnectorConfiguration', :'created_on' => :'DateTime', :'customers_presence' => :'CustomersPresence', :'environment' => :'ChargeAttemptEnvironment', :'failed_on' => :'DateTime', :'failure_reason' => :'FailureReason', :'initializing_token_version' => :'BOOLEAN', :'invocation' => :'ConnectorInvocation', :'labels' => :'Array