import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { RFCDate } from "../../types/rfcdate.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { Address, Address$Outbound } from "./address.js";
import { Currency } from "./currency.js";
import { CustomField, CustomField$Outbound } from "./customfield.js";
import { LinkedCustomer } from "./linkedcustomer.js";
import { LinkedCustomerInput, LinkedCustomerInput$Outbound } from "./linkedcustomerinput.js";
import { LinkedTrackingCategory, LinkedTrackingCategory$Outbound } from "./linkedtrackingcategory.js";
import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js";
import { QuoteLineItem, QuoteLineItemInput, QuoteLineItemInput$Outbound } from "./quotelineitem.js";
/**
 * Quote status
 */
export declare const QuoteStatus: {
    readonly Draft: "draft";
    readonly Sent: "sent";
    readonly Accepted: "accepted";
    readonly Rejected: "rejected";
    readonly Expired: "expired";
    readonly Converted: "converted";
    readonly Void: "void";
    readonly Deleted: "deleted";
};
/**
 * Quote status
 */
export type QuoteStatus = ClosedEnum<typeof QuoteStatus>;
export type Quote = {
    /**
     * A unique identifier for an object.
     */
    id?: string | undefined;
    /**
     * The third-party API ID of original entity
     */
    downstreamId?: string | null | undefined;
    /**
     * Quote number.
     */
    number?: string | null | undefined;
    /**
     * The customer this entity is linked to.
     */
    customer?: LinkedCustomer | null | undefined;
    /**
     * The unique identifier for the invoice.
     */
    invoiceId?: string | undefined;
    /**
     * The unique identifier for the sales order.
     */
    salesOrderId?: string | null | undefined;
    /**
     * The company ID the transaction belongs to
     */
    companyId?: string | null | undefined;
    /**
     * The ID of the department
     */
    departmentId?: string | null | undefined;
    /**
     * The unique identifier for the linked project.
     */
    projectId?: string | undefined;
    /**
     * Date quote was issued - YYYY-MM-DD.
     */
    quoteDate?: RFCDate | null | undefined;
    /**
     * The date until which the quote is valid - YYYY-MM-DD.
     */
    expiryDate?: RFCDate | null | undefined;
    /**
     * Terms of the quote.
     */
    terms?: string | null | undefined;
    /**
     * Optional reference identifier for the transaction.
     */
    reference?: string | null | undefined;
    /**
     * Quote status
     */
    status?: QuoteStatus | null | undefined;
    /**
     * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
     */
    currency?: Currency | null | undefined;
    /**
     * Currency Exchange Rate at the time entity was recorded/generated.
     */
    currencyRate?: number | null | undefined;
    /**
     * Amounts are including tax
     */
    taxInclusive?: boolean | null | undefined;
    /**
     * Sub-total amount, normally before tax.
     */
    subTotal?: number | null | undefined;
    /**
     * Total tax amount applied to this quote.
     */
    totalTax?: number | null | undefined;
    /**
     * Applicable tax id/code override if tax is not supplied on a line item basis.
     */
    taxCode?: string | null | undefined;
    /**
     * Discount percentage applied to this quote.
     */
    discountPercentage?: number | null | undefined;
    /**
     * Discount amount applied to this quote.
     */
    discountAmount?: number | null | undefined;
    /**
     * Total amount of quote, including tax.
     */
    total?: number | null | undefined;
    /**
     * Customer memo
     */
    customerMemo?: string | null | undefined;
    lineItems?: Array<QuoteLineItem> | undefined;
    billingAddress?: Address | undefined;
    shippingAddress?: Address | undefined;
    /**
     * A list of linked tracking categories.
     */
    trackingCategories?: Array<LinkedTrackingCategory | null> | null | undefined;
    /**
     * Optional quote template
     */
    templateId?: string | null | undefined;
    /**
     * URL link to a source document - shown as 'Go to [appName]' in the downstream app.
     */
    sourceDocumentUrl?: string | null | undefined;
    customFields?: Array<CustomField> | undefined;
    /**
     * 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.
     */
    rowVersion?: string | null | undefined;
    /**
     * The user who last updated the object.
     */
    updatedBy?: string | null | undefined;
    /**
     * The user who created the object.
     */
    createdBy?: string | null | undefined;
    /**
     * The date and time when the object was last updated.
     */
    updatedAt?: Date | null | undefined;
    /**
     * The date and time when the object was created.
     */
    createdAt?: Date | null | undefined;
    /**
     * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
     */
    passThrough?: Array<PassThroughBody> | undefined;
};
export type QuoteInput = {
    /**
     * Quote number.
     */
    number?: string | null | undefined;
    /**
     * The customer this entity is linked to.
     */
    customer?: LinkedCustomerInput | null | undefined;
    /**
     * The unique identifier for the sales order.
     */
    salesOrderId?: string | null | undefined;
    /**
     * The company ID the transaction belongs to
     */
    companyId?: string | null | undefined;
    /**
     * The ID of the department
     */
    departmentId?: string | null | undefined;
    /**
     * The unique identifier for the linked project.
     */
    projectId?: string | undefined;
    /**
     * Date quote was issued - YYYY-MM-DD.
     */
    quoteDate?: RFCDate | null | undefined;
    /**
     * The date until which the quote is valid - YYYY-MM-DD.
     */
    expiryDate?: RFCDate | null | undefined;
    /**
     * Terms of the quote.
     */
    terms?: string | null | undefined;
    /**
     * Optional reference identifier for the transaction.
     */
    reference?: string | null | undefined;
    /**
     * Quote status
     */
    status?: QuoteStatus | null | undefined;
    /**
     * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
     */
    currency?: Currency | null | undefined;
    /**
     * Currency Exchange Rate at the time entity was recorded/generated.
     */
    currencyRate?: number | null | undefined;
    /**
     * Amounts are including tax
     */
    taxInclusive?: boolean | null | undefined;
    /**
     * Sub-total amount, normally before tax.
     */
    subTotal?: number | null | undefined;
    /**
     * Total tax amount applied to this quote.
     */
    totalTax?: number | null | undefined;
    /**
     * Applicable tax id/code override if tax is not supplied on a line item basis.
     */
    taxCode?: string | null | undefined;
    /**
     * Discount percentage applied to this quote.
     */
    discountPercentage?: number | null | undefined;
    /**
     * Discount amount applied to this quote.
     */
    discountAmount?: number | null | undefined;
    /**
     * Total amount of quote, including tax.
     */
    total?: number | null | undefined;
    /**
     * Customer memo
     */
    customerMemo?: string | null | undefined;
    lineItems?: Array<QuoteLineItemInput> | undefined;
    billingAddress?: Address | undefined;
    shippingAddress?: Address | undefined;
    /**
     * A list of linked tracking categories.
     */
    trackingCategories?: Array<LinkedTrackingCategory | null> | null | undefined;
    /**
     * Optional quote template
     */
    templateId?: string | null | undefined;
    /**
     * URL link to a source document - shown as 'Go to [appName]' in the downstream app.
     */
    sourceDocumentUrl?: string | null | undefined;
    customFields?: Array<CustomField> | undefined;
    /**
     * 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.
     */
    rowVersion?: string | null | undefined;
    /**
     * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
     */
    passThrough?: Array<PassThroughBody> | undefined;
};
/** @internal */
export declare const QuoteStatus$inboundSchema: z.ZodNativeEnum<typeof QuoteStatus>;
/** @internal */
export declare const QuoteStatus$outboundSchema: z.ZodNativeEnum<typeof QuoteStatus>;
/** @internal */
export declare const Quote$inboundSchema: z.ZodType<Quote, z.ZodTypeDef, unknown>;
export declare function quoteFromJSON(jsonString: string): SafeParseResult<Quote, SDKValidationError>;
/** @internal */
export type QuoteInput$Outbound = {
    number?: string | null | undefined;
    customer?: LinkedCustomerInput$Outbound | null | undefined;
    sales_order_id?: string | null | undefined;
    company_id?: string | null | undefined;
    department_id?: string | null | undefined;
    project_id?: string | undefined;
    quote_date?: string | null | undefined;
    expiry_date?: string | null | undefined;
    terms?: string | null | undefined;
    reference?: string | null | undefined;
    status?: string | null | undefined;
    currency?: string | null | undefined;
    currency_rate?: number | null | undefined;
    tax_inclusive?: boolean | null | undefined;
    sub_total?: number | null | undefined;
    total_tax?: number | null | undefined;
    tax_code?: string | null | undefined;
    discount_percentage?: number | null | undefined;
    discount_amount?: number | null | undefined;
    total?: number | null | undefined;
    customer_memo?: string | null | undefined;
    line_items?: Array<QuoteLineItemInput$Outbound> | undefined;
    billing_address?: Address$Outbound | undefined;
    shipping_address?: Address$Outbound | undefined;
    tracking_categories?: Array<LinkedTrackingCategory$Outbound | null> | null | undefined;
    template_id?: string | null | undefined;
    source_document_url?: string | null | undefined;
    custom_fields?: Array<CustomField$Outbound> | undefined;
    row_version?: string | null | undefined;
    pass_through?: Array<PassThroughBody$Outbound> | undefined;
};
/** @internal */
export declare const QuoteInput$outboundSchema: z.ZodType<QuoteInput$Outbound, z.ZodTypeDef, QuoteInput>;
export declare function quoteInputToJSON(quoteInput: QuoteInput): string;
//# sourceMappingURL=quote.d.ts.map