/**
 * Apideck
 * The Apideck OpenAPI Spec: SDK Optimized
 *
 * The version of the OpenAPI document: 10.13.0
 * Contact: support@apideck.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import { Allocation } from './Allocation';
import { Currency } from './Currency';
import { CustomField } from './CustomField';
import { DeprecatedLinkedSupplier } from './DeprecatedLinkedSupplier';
import { LinkedCustomer } from './LinkedCustomer';
import { LinkedLedgerAccount } from './LinkedLedgerAccount';
import { LinkedTrackingCategories } from './LinkedTrackingCategories';
import { PassThroughBody } from './PassThroughBody';
import { PaymentStatus } from './PaymentStatus';
import { PaymentType } from './PaymentType';
/**
 *
 * @export
 * @interface Payment
 */
export interface Payment {
    /**
     * A unique identifier for an object.
     * @type {string}
     * @memberof Payment
     */
    readonly id: string;
    /**
     * The total amount of the transaction or record
     * @type {number}
     * @memberof Payment
     */
    total_amount: number | null;
    /**
     * The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD
     * @type {Date}
     * @memberof Payment
     */
    transaction_date: Date | null;
    /**
     * The third-party API ID of original entity
     * @type {string}
     * @memberof Payment
     */
    readonly downstream_id?: string | null;
    /**
     *
     * @type {Currency}
     * @memberof Payment
     */
    currency?: Currency | null;
    /**
     * Currency Exchange Rate at the time entity was recorded/generated.
     * @type {number}
     * @memberof Payment
     */
    currency_rate?: number | null;
    /**
     * Optional transaction reference message ie: Debit remittance detail.
     * @type {string}
     * @memberof Payment
     */
    reference?: string | null;
    /**
     * Payment method used for the transaction, such as cash, credit card, bank transfer, or check
     * @type {string}
     * @memberof Payment
     */
    payment_method?: string | null;
    /**
     * Optional reference message returned by payment method on processing
     * @type {string}
     * @memberof Payment
     */
    payment_method_reference?: string | null;
    /**
     * A unique identifier for an object.
     * @type {string}
     * @memberof Payment
     */
    payment_method_id?: string | null;
    /**
     * Type of accounts receivable account.
     * @type {string}
     * @memberof Payment
     */
    accounts_receivable_account_type?: string | null;
    /**
     * Unique identifier for the account to allocate payment to.
     * @type {string}
     * @memberof Payment
     */
    accounts_receivable_account_id?: string | null;
    /**
     *
     * @type {LinkedLedgerAccount}
     * @memberof Payment
     */
    account?: LinkedLedgerAccount | null;
    /**
     *
     * @type {LinkedCustomer}
     * @memberof Payment
     */
    customer?: LinkedCustomer | null;
    /**
     *
     * @type {DeprecatedLinkedSupplier}
     * @memberof Payment
     */
    supplier?: DeprecatedLinkedSupplier | null;
    /**
     * The company or subsidiary id the transaction belongs to
     * @type {string}
     * @memberof Payment
     */
    company_id?: string | null;
    /**
     * Indicates if the transaction has been reconciled.
     * @type {boolean}
     * @memberof Payment
     */
    reconciled?: boolean | null;
    /**
     *
     * @type {PaymentStatus}
     * @memberof Payment
     */
    status?: PaymentStatus;
    /**
     *
     * @type {PaymentType}
     * @memberof Payment
     */
    type?: PaymentType;
    /**
     *
     * @type {Array<Allocation>}
     * @memberof Payment
     */
    allocations?: Array<Allocation>;
    /**
     * Note associated with the transaction
     * @type {string}
     * @memberof Payment
     */
    note?: string | null;
    /**
     * Number associated with the transaction
     * @type {string}
     * @memberof Payment
     */
    number?: string | null;
    /**
     *
     * @type {LinkedTrackingCategories}
     * @memberof Payment
     */
    tracking_categories?: LinkedTrackingCategories | null;
    /**
     *
     * @type {Array<CustomField>}
     * @memberof Payment
     */
    custom_fields?: Array<CustomField>;
    /**
     * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
     * @type {string}
     * @memberof Payment
     */
    row_version?: string | null;
    /**
     * Id to be displayed.
     * @type {string}
     * @memberof Payment
     */
    display_id?: string | null;
    /**
     * When custom mappings are configured on the resource, the result is included here.
     * @type {object}
     * @memberof Payment
     */
    readonly custom_mappings?: object | null;
    /**
     * The user who last updated the object.
     * @type {string}
     * @memberof Payment
     */
    readonly updated_by?: string | null;
    /**
     * The user who created the object.
     * @type {string}
     * @memberof Payment
     */
    readonly created_by?: string | null;
    /**
     * The date and time when the object was created.
     * @type {Date}
     * @memberof Payment
     */
    readonly created_at?: Date | null;
    /**
     * The date and time when the object was last updated.
     * @type {Date}
     * @memberof Payment
     */
    readonly updated_at?: Date | null;
    /**
     *
     * @type {PassThroughBody}
     * @memberof Payment
     */
    pass_through?: PassThroughBody;
}
export declare function PaymentFromJSON(json: any): Payment;
export declare function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Payment;
export declare function PaymentToJSON(value?: Payment | null): any;
