=begin The WhiteLabelName API allows an easy interaction with the WhiteLabelName 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 WhiteLabelMachineName # class TransactionCompletion # 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 # The amount which is captured. The amount represents sum of line items including taxes. attr_accessor :amount # The base line items on which the completion is applied on. attr_accessor :base_line_items # attr_accessor :created_by # The created on date indicates the date on which the entity was stored into the database. attr_accessor :created_on # The external ID helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity. attr_accessor :external_id # attr_accessor :failed_on # attr_accessor :failure_reason # attr_accessor :invoice_merchant_reference # attr_accessor :labels # attr_accessor :language # Indicates if this is the last completion. After the last completion is created the transaction cannot be completed anymore. attr_accessor :last_completion # attr_accessor :line_item_version # The line items which are captured. attr_accessor :line_items # attr_accessor :mode # attr_accessor :next_update_on # attr_accessor :payment_information # 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 :processing_on # attr_accessor :processor_reference # attr_accessor :remaining_line_items # attr_accessor :space_view_id # attr_accessor :state # The statement descriptor explain charges or payments on bank statements. attr_accessor :statement_descriptor # attr_accessor :succeeded_on # The total sum of all taxes of line items. attr_accessor :tax_amount # attr_accessor :time_zone # attr_accessor :timeout_on # 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', :'amount' => :'amount', :'base_line_items' => :'baseLineItems', :'created_by' => :'createdBy', :'created_on' => :'createdOn', :'external_id' => :'externalId', :'failed_on' => :'failedOn', :'failure_reason' => :'failureReason', :'invoice_merchant_reference' => :'invoiceMerchantReference', :'labels' => :'labels', :'language' => :'language', :'last_completion' => :'lastCompletion', :'line_item_version' => :'lineItemVersion', :'line_items' => :'lineItems', :'mode' => :'mode', :'next_update_on' => :'nextUpdateOn', :'payment_information' => :'paymentInformation', :'planned_purge_date' => :'plannedPurgeDate', :'processing_on' => :'processingOn', :'processor_reference' => :'processorReference', :'remaining_line_items' => :'remainingLineItems', :'space_view_id' => :'spaceViewId', :'state' => :'state', :'statement_descriptor' => :'statementDescriptor', :'succeeded_on' => :'succeededOn', :'tax_amount' => :'taxAmount', :'time_zone' => :'timeZone', :'timeout_on' => :'timeoutOn', :'version' => :'version' } end # Attribute type mapping. def self.swagger_types { :'id' => :'Integer', :'linked_space_id' => :'Integer', :'linked_transaction' => :'Integer', :'amount' => :'Float', :'base_line_items' => :'Array', :'created_by' => :'Integer', :'created_on' => :'DateTime', :'external_id' => :'String', :'failed_on' => :'DateTime', :'failure_reason' => :'FailureReason', :'invoice_merchant_reference' => :'String', :'labels' => :'Array