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 { BankAccount, BankAccount$Outbound } from "./bankaccount.js";
import { Currency } from "./currency.js";
import { CustomField, CustomField$Outbound } from "./customfield.js";
import { InvoiceLineItem, InvoiceLineItemInput, InvoiceLineItemInput$Outbound } from "./invoicelineitem.js";
import { LinkedLedgerAccount, LinkedLedgerAccount$Outbound } from "./linkedledgeraccount.js";
import { LinkedSupplier } from "./linkedsupplier.js";
import { LinkedSupplierInput, LinkedSupplierInput$Outbound } from "./linkedsupplierinput.js";
import { LinkedTrackingCategory, LinkedTrackingCategory$Outbound } from "./linkedtrackingcategory.js";
import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js";
export declare const PurchaseOrderStatus: {
    readonly Draft: "draft";
    readonly Open: "open";
    readonly Closed: "closed";
    readonly Deleted: "deleted";
    readonly Billed: "billed";
    readonly Other: "other";
};
export type PurchaseOrderStatus = ClosedEnum<typeof PurchaseOrderStatus>;
/**
 * Type of amortization
 */
export declare const PurchaseOrderAmortizationType: {
    readonly Manual: "manual";
    readonly Receipt: "receipt";
    readonly Schedule: "schedule";
    readonly Other: "other";
};
/**
 * Type of amortization
 */
export type PurchaseOrderAmortizationType = ClosedEnum<typeof PurchaseOrderAmortizationType>;
export type PurchaseOrder = {
    /**
     * A unique identifier for an object.
     */
    id?: string | undefined;
    /**
     * The third-party API ID of original entity
     */
    downstreamId?: string | null | undefined;
    /**
     * Display ID of the purchase order
     */
    displayId?: string | null | undefined;
    /**
     * A PO Number uniquely identifies a purchase order and is generally defined by the buyer.
     */
    poNumber?: string | null | undefined;
    /**
     * Optional purchase order reference.
     */
    reference?: string | null | undefined;
    /**
     * The supplier this entity is linked to.
     */
    supplier?: LinkedSupplier | null | undefined;
    /**
     * The ID of the subsidiary
     */
    subsidiaryId?: string | null | undefined;
    /**
     * The company ID the transaction belongs to
     */
    companyId?: string | null | undefined;
    /**
     * The ID of the department
     */
    departmentId?: string | null | undefined;
    status?: PurchaseOrderStatus | null | undefined;
    /**
     * Date purchase order was issued - YYYY-MM-DD.
     */
    issuedDate?: RFCDate | null | undefined;
    /**
     * The date on which the purchase order is to be delivered - YYYY-MM-DD.
     */
    deliveryDate?: RFCDate | null | undefined;
    /**
     * The date on which the order is expected to arrive - YYYY-MM-DD.
     */
    expectedArrivalDate?: RFCDate | 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;
    /**
     * Sub-total amount, normally before tax.
     */
    subTotal?: number | null | undefined;
    /**
     * Total tax amount applied to this invoice.
     */
    totalTax?: number | null | undefined;
    /**
     * Total amount of invoice, including tax.
     */
    total?: number | null | undefined;
    /**
     * Amounts are including tax
     */
    taxInclusive?: boolean | null | undefined;
    lineItems?: Array<InvoiceLineItem> | undefined;
    billingAddress?: Address | undefined;
    shippingAddress?: Address | undefined;
    ledgerAccount?: LinkedLedgerAccount | null | undefined;
    /**
     * Optional purchase order template
     */
    templateId?: string | null | undefined;
    /**
     * Discount percentage applied to this transaction.
     */
    discountPercentage?: number | null | undefined;
    bankAccount?: BankAccount | undefined;
    /**
     * Indicates if accounting by row is used (true) or not (false). Accounting by row means that a separate ledger transaction is created for each row.
     */
    accountingByRow?: boolean | null | undefined;
    /**
     * The due date is the date on which a payment is scheduled to be received - YYYY-MM-DD.
     */
    dueDate?: RFCDate | null | undefined;
    /**
     * Payment method used for the transaction, such as cash, credit card, bank transfer, or check
     */
    paymentMethod?: string | null | undefined;
    /**
     * Terms of payment.
     */
    terms?: string | null | undefined;
    /**
     * Type of amortization
     */
    amortizationType?: PurchaseOrderAmortizationType | null | undefined;
    /**
     * Applicable tax id/code override if tax is not supplied on a line item basis.
     */
    taxCode?: string | null | undefined;
    /**
     * Method of tax calculation
     */
    taxMethod?: string | null | undefined;
    /**
     * Method of issuance of the purchase order
     */
    issuedMethod?: string | null | undefined;
    /**
     * Email address of the person who issued the purchase order
     */
    issuedEmail?: string | null | undefined;
    /**
     * The channel through which the transaction is processed.
     */
    channel?: string | null | undefined;
    /**
     * Message for the supplier. This text appears on the Purchase Order.
     */
    memo?: string | null | undefined;
    /**
     * Internal notes for the purchase order.
     */
    notes?: string | null | undefined;
    /**
     * A list of linked tracking categories.
     */
    trackingCategories?: Array<LinkedTrackingCategory | null> | null | undefined;
    /**
     * When custom mappings are configured on the resource, the result is included here.
     */
    customMappings?: {
        [k: string]: any;
    } | 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 PurchaseOrderInput = {
    /**
     * Display ID of the purchase order
     */
    displayId?: string | null | undefined;
    /**
     * A PO Number uniquely identifies a purchase order and is generally defined by the buyer.
     */
    poNumber?: string | null | undefined;
    /**
     * Optional purchase order reference.
     */
    reference?: string | null | undefined;
    /**
     * The supplier this entity is linked to.
     */
    supplier?: LinkedSupplierInput | null | undefined;
    /**
     * The ID of the subsidiary
     */
    subsidiaryId?: string | null | undefined;
    /**
     * The company ID the transaction belongs to
     */
    companyId?: string | null | undefined;
    /**
     * The ID of the department
     */
    departmentId?: string | null | undefined;
    status?: PurchaseOrderStatus | null | undefined;
    /**
     * Date purchase order was issued - YYYY-MM-DD.
     */
    issuedDate?: RFCDate | null | undefined;
    /**
     * The date on which the purchase order is to be delivered - YYYY-MM-DD.
     */
    deliveryDate?: RFCDate | null | undefined;
    /**
     * The date on which the order is expected to arrive - YYYY-MM-DD.
     */
    expectedArrivalDate?: RFCDate | 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;
    /**
     * Sub-total amount, normally before tax.
     */
    subTotal?: number | null | undefined;
    /**
     * Total tax amount applied to this invoice.
     */
    totalTax?: number | null | undefined;
    /**
     * Total amount of invoice, including tax.
     */
    total?: number | null | undefined;
    /**
     * Amounts are including tax
     */
    taxInclusive?: boolean | null | undefined;
    lineItems?: Array<InvoiceLineItemInput> | undefined;
    billingAddress?: Address | undefined;
    shippingAddress?: Address | undefined;
    ledgerAccount?: LinkedLedgerAccount | null | undefined;
    /**
     * Optional purchase order template
     */
    templateId?: string | null | undefined;
    /**
     * Discount percentage applied to this transaction.
     */
    discountPercentage?: number | null | undefined;
    bankAccount?: BankAccount | undefined;
    /**
     * Indicates if accounting by row is used (true) or not (false). Accounting by row means that a separate ledger transaction is created for each row.
     */
    accountingByRow?: boolean | null | undefined;
    /**
     * The due date is the date on which a payment is scheduled to be received - YYYY-MM-DD.
     */
    dueDate?: RFCDate | null | undefined;
    /**
     * Payment method used for the transaction, such as cash, credit card, bank transfer, or check
     */
    paymentMethod?: string | null | undefined;
    /**
     * Terms of payment.
     */
    terms?: string | null | undefined;
    /**
     * Type of amortization
     */
    amortizationType?: PurchaseOrderAmortizationType | null | undefined;
    /**
     * Applicable tax id/code override if tax is not supplied on a line item basis.
     */
    taxCode?: string | null | undefined;
    /**
     * Method of tax calculation
     */
    taxMethod?: string | null | undefined;
    /**
     * Method of issuance of the purchase order
     */
    issuedMethod?: string | null | undefined;
    /**
     * Email address of the person who issued the purchase order
     */
    issuedEmail?: string | null | undefined;
    /**
     * The channel through which the transaction is processed.
     */
    channel?: string | null | undefined;
    /**
     * Message for the supplier. This text appears on the Purchase Order.
     */
    memo?: string | null | undefined;
    /**
     * Internal notes for the purchase order.
     */
    notes?: string | null | undefined;
    /**
     * A list of linked tracking categories.
     */
    trackingCategories?: Array<LinkedTrackingCategory | null> | 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 PurchaseOrderStatus$inboundSchema: z.ZodNativeEnum<typeof PurchaseOrderStatus>;
/** @internal */
export declare const PurchaseOrderStatus$outboundSchema: z.ZodNativeEnum<typeof PurchaseOrderStatus>;
/** @internal */
export declare const PurchaseOrderAmortizationType$inboundSchema: z.ZodNativeEnum<typeof PurchaseOrderAmortizationType>;
/** @internal */
export declare const PurchaseOrderAmortizationType$outboundSchema: z.ZodNativeEnum<typeof PurchaseOrderAmortizationType>;
/** @internal */
export declare const PurchaseOrder$inboundSchema: z.ZodType<PurchaseOrder, z.ZodTypeDef, unknown>;
export declare function purchaseOrderFromJSON(jsonString: string): SafeParseResult<PurchaseOrder, SDKValidationError>;
/** @internal */
export type PurchaseOrderInput$Outbound = {
    display_id?: string | null | undefined;
    po_number?: string | null | undefined;
    reference?: string | null | undefined;
    supplier?: LinkedSupplierInput$Outbound | null | undefined;
    subsidiary_id?: string | null | undefined;
    company_id?: string | null | undefined;
    department_id?: string | null | undefined;
    status?: string | null | undefined;
    issued_date?: string | null | undefined;
    delivery_date?: string | null | undefined;
    expected_arrival_date?: string | null | undefined;
    currency?: string | null | undefined;
    currency_rate?: number | null | undefined;
    sub_total?: number | null | undefined;
    total_tax?: number | null | undefined;
    total?: number | null | undefined;
    tax_inclusive?: boolean | null | undefined;
    line_items?: Array<InvoiceLineItemInput$Outbound> | undefined;
    billing_address?: Address$Outbound | undefined;
    shipping_address?: Address$Outbound | undefined;
    ledger_account?: LinkedLedgerAccount$Outbound | null | undefined;
    template_id?: string | null | undefined;
    discount_percentage?: number | null | undefined;
    bank_account?: BankAccount$Outbound | undefined;
    accounting_by_row?: boolean | null | undefined;
    due_date?: string | null | undefined;
    payment_method?: string | null | undefined;
    terms?: string | null | undefined;
    amortization_type?: string | null | undefined;
    tax_code?: string | null | undefined;
    tax_method?: string | null | undefined;
    issued_method?: string | null | undefined;
    issued_email?: string | null | undefined;
    channel?: string | null | undefined;
    memo?: string | null | undefined;
    notes?: string | null | undefined;
    tracking_categories?: Array<LinkedTrackingCategory$Outbound | null> | null | undefined;
    custom_fields?: Array<CustomField$Outbound> | undefined;
    row_version?: string | null | undefined;
    pass_through?: Array<PassThroughBody$Outbound> | undefined;
};
/** @internal */
export declare const PurchaseOrderInput$outboundSchema: z.ZodType<PurchaseOrderInput$Outbound, z.ZodTypeDef, PurchaseOrderInput>;
export declare function purchaseOrderInputToJSON(purchaseOrderInput: PurchaseOrderInput): string;
//# sourceMappingURL=purchaseorder.d.ts.map