=begin Wallee API: 1.0.0 The wallee API allows an easy interaction with the wallee 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 Wallee # The debt collection case represents a try to collect the money from the debtor. class DebtCollectionCase # The amount is the total amount of the not paid items. The amount cannot be change once the case is reviewed. attr_accessor :amount # The billing address of the case identifies the debtor. attr_accessor :billing_address # The closed on date indicates when the case is closed on. attr_accessor :closed_on # The collector configuration determines how the debt collection case is processed. attr_accessor :collector_configuration # The contract date is the date on which the contract with the debtor was signed on. attr_accessor :contract_date # The created on date indicates the date on which the entity was stored into the database. attr_accessor :created_on # The creator references the user which has created the debt collection case. attr_accessor :creator # The currency defines the billing currency of the debt collection case. attr_accessor :currency # The due date indicates the date on which the amount receivable was due. This date has to be always in the past. attr_accessor :due_date # The environment in which this case will be processed. There must be a debt collector configuration present which supports the chosen environment. attr_accessor :environment # 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 # The failed on date indicates when the case is failed on. attr_accessor :failed_on # attr_accessor :failure_reason # The ID is the primary key of the entity. The ID identifies the entity uniquely. attr_accessor :id # attr_accessor :labels # The language indicates the language to be used in the communication with the debtor. attr_accessor :language # The line items of the debt collection case will be shown on documents sent to the debtor and the total of them makes up total amount to collect. attr_accessor :line_items # The linked space id holds the ID of the space to which the entity belongs to. attr_accessor :linked_space_id # attr_accessor :next_attempt_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 # The processing started on date indicates the date on which the processing of the case started on. attr_accessor :processing_started_on # attr_accessor :processing_timeout_on # The case reference is used in the communication with the debtor. It should be unique and it should be linkable with the source of the debt collection case. attr_accessor :reference # attr_accessor :review_started_on # The reviewed on date indicates when the review of the case was conducted on. attr_accessor :reviewed_on # The reviewer references the user which has reviewed the case. attr_accessor :reviewer # The source of the debt collection case indicates the origin of the amount receivable. attr_accessor :source # The source entity ID points to the object which is the origin of the debt collection case. This ID is only set when the case was triggered by an internal process. attr_accessor :source_entity_id # attr_accessor :space_view_id # attr_accessor :state # 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 { :'amount' => :'amount', :'billing_address' => :'billingAddress', :'closed_on' => :'closedOn', :'collector_configuration' => :'collectorConfiguration', :'contract_date' => :'contractDate', :'created_on' => :'createdOn', :'creator' => :'creator', :'currency' => :'currency', :'due_date' => :'dueDate', :'environment' => :'environment', :'external_id' => :'externalId', :'failed_on' => :'failedOn', :'failure_reason' => :'failureReason', :'id' => :'id', :'labels' => :'labels', :'language' => :'language', :'line_items' => :'lineItems', :'linked_space_id' => :'linkedSpaceId', :'next_attempt_on' => :'nextAttemptOn', :'planned_purge_date' => :'plannedPurgeDate', :'processing_started_on' => :'processingStartedOn', :'processing_timeout_on' => :'processingTimeoutOn', :'reference' => :'reference', :'review_started_on' => :'reviewStartedOn', :'reviewed_on' => :'reviewedOn', :'reviewer' => :'reviewer', :'source' => :'source', :'source_entity_id' => :'sourceEntityId', :'space_view_id' => :'spaceViewId', :'state' => :'state', :'version' => :'version' } end # Attribute type mapping. def self.swagger_types { :'amount' => :'Float', :'billing_address' => :'Address', :'closed_on' => :'DateTime', :'collector_configuration' => :'DebtCollectorConfiguration', :'contract_date' => :'DateTime', :'created_on' => :'DateTime', :'creator' => :'Integer', :'currency' => :'String', :'due_date' => :'DateTime', :'environment' => :'DebtCollectionEnvironment', :'external_id' => :'String', :'failed_on' => :'DateTime', :'failure_reason' => :'FailureReason', :'id' => :'Integer', :'labels' => :'Array