import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { AllocationInput, AllocationInput$Outbound } from "./allocation.js"; import { BillCreditNoteLineItemInput, BillCreditNoteLineItemInput$Outbound } from "./billcreditnotelineiteminput.js"; import { Currency } from "./currency.js"; import { CustomField, CustomField$Outbound } from "./customfield.js"; import { LinkedDepartmentInput, LinkedDepartmentInput$Outbound } from "./linkeddepartmentinput.js"; import { LinkedLedgerAccount, LinkedLedgerAccount$Outbound } from "./linkedledgeraccount.js"; import { LinkedLocationInput, LinkedLocationInput$Outbound } from "./linkedlocationinput.js"; import { LinkedSubsidiaryInput, LinkedSubsidiaryInput$Outbound } from "./linkedsubsidiaryinput.js"; import { LinkedSupplierInput, LinkedSupplierInput$Outbound } from "./linkedsupplierinput.js"; import { LinkedTrackingCategory, LinkedTrackingCategory$Outbound } from "./linkedtrackingcategory.js"; import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js"; /** * Status of bill credit notes */ export declare const BillCreditNoteCreateInputBillCreditNoteStatus: { readonly Draft: "draft"; readonly Authorised: "authorised"; readonly Posted: "posted"; readonly PartiallyPaid: "partially_paid"; readonly Paid: "paid"; readonly Voided: "voided"; readonly Deleted: "deleted"; }; /** * Status of bill credit notes */ export type BillCreditNoteCreateInputBillCreditNoteStatus = OpenEnum; /** * The type of credit note. A bill credit note is always an accounts payable (supplier-side) credit. */ export declare const BillCreditNoteCreateInputBillCreditNoteType: { readonly AccountsPayableCredit: "accounts_payable_credit"; }; /** * The type of credit note. A bill credit note is always an accounts payable (supplier-side) credit. */ export type BillCreditNoteCreateInputBillCreditNoteType = OpenEnum; /** * The writable shape of BillCreditNote for a batch create. Identical to [BillCreditNote](the model returned on reads) with the read-only properties removed — the same properties the single-record create endpoint rejects, so a batched record and a single-record create accept exactly the same body. */ export type BillCreditNoteCreateInput = { /** * Bill credit note number. */ number?: string | null | undefined; /** * The supplier this entity is linked to. */ supplier?: LinkedSupplierInput | null | undefined; subsidiary?: LinkedSubsidiaryInput | null | undefined; location?: LinkedLocationInput | null | undefined; department?: LinkedDepartmentInput | 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; /** * Amount of transaction */ totalAmount?: number | undefined; /** * Total tax amount applied to this bill credit note. */ totalTax?: number | null | undefined; /** * Applicable tax id/code override if tax is not supplied on a line item basis. */ taxCode?: string | null | undefined; /** * The balance reflecting any payments made against the transaction. */ balance?: number | null | undefined; /** * Indicates the total credit amount still available to apply towards the payment. */ remainingCredit?: number | null | undefined; /** * Status of bill credit notes */ status?: BillCreditNoteCreateInputBillCreditNoteStatus | undefined; /** * Optional reference message ie: Debit remittance detail. */ reference?: string | null | undefined; /** * Date bill credit note issued - YYYY:MM::DDThh:mm:ss.sTZD */ dateIssued?: Date | undefined; /** * Date bill credit note paid - YYYY:MM::DDThh:mm:ss.sTZD */ datePaid?: Date | null | undefined; /** * The type of credit note. A bill credit note is always an accounts payable (supplier-side) credit. */ type?: BillCreditNoteCreateInputBillCreditNoteType | undefined; account?: LinkedLedgerAccount | null | undefined; lineItems?: Array | undefined; allocations?: Array | undefined; /** * Optional note to be associated with the bill credit note. */ note?: string | null | undefined; /** * Optional terms to be associated with the bill credit note. */ terms?: string | null | undefined; /** * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; customFields?: Array | 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 | undefined; }; /** @internal */ export declare const BillCreditNoteCreateInputBillCreditNoteStatus$outboundSchema: z.ZodType; /** @internal */ export declare const BillCreditNoteCreateInputBillCreditNoteType$outboundSchema: z.ZodType; /** @internal */ export type BillCreditNoteCreateInput$Outbound = { number?: string | null | undefined; supplier?: LinkedSupplierInput$Outbound | null | undefined; subsidiary?: LinkedSubsidiaryInput$Outbound | null | undefined; location?: LinkedLocationInput$Outbound | null | undefined; department?: LinkedDepartmentInput$Outbound | null | undefined; currency?: string | null | undefined; currency_rate?: number | null | undefined; tax_inclusive?: boolean | null | undefined; sub_total?: number | null | undefined; total_amount?: number | undefined; total_tax?: number | null | undefined; tax_code?: string | null | undefined; balance?: number | null | undefined; remaining_credit?: number | null | undefined; status?: string | undefined; reference?: string | null | undefined; date_issued?: string | undefined; date_paid?: string | null | undefined; type?: string | undefined; account?: LinkedLedgerAccount$Outbound | null | undefined; line_items?: Array | undefined; allocations?: Array | undefined; note?: string | null | undefined; terms?: string | null | undefined; tracking_categories?: Array | null | undefined; custom_fields?: Array | undefined; row_version?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const BillCreditNoteCreateInput$outboundSchema: z.ZodType; export declare function billCreditNoteCreateInputToJSON(billCreditNoteCreateInput: BillCreditNoteCreateInput): string; //# sourceMappingURL=billcreditnotecreateinput.d.ts.map