import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Currency } from "./currency.js"; import { CustomField, CustomField$Outbound } from "./customfield.js"; import { LinkedLedgerAccount, LinkedLedgerAccount$Outbound } from "./linkedledgeraccount.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"; import { PaymentStatus } from "./paymentstatus.js"; /** * Type of payment */ export declare const BillPaymentUpdateInputBillPaymentType: { readonly AccountsPayableCredit: "accounts_payable_credit"; readonly AccountsPayableOverpayment: "accounts_payable_overpayment"; readonly AccountsPayablePrepayment: "accounts_payable_prepayment"; readonly AccountsPayable: "accounts_payable"; }; /** * Type of payment */ export type BillPaymentUpdateInputBillPaymentType = OpenEnum; /** * Type of entity this payment should be attributed to. */ export declare const BillPaymentUpdateInputAllocationType: { readonly Bill: "bill"; readonly Expense: "expense"; readonly CreditMemo: "credit_memo"; readonly OverPayment: "over_payment"; readonly PrePayment: "pre_payment"; readonly JournalEntry: "journal_entry"; readonly Other: "other"; }; /** * Type of entity this payment should be attributed to. */ export type BillPaymentUpdateInputAllocationType = OpenEnum; export type BillPaymentUpdateInputAllocations = { /** * A unique identifier for an object. */ id?: string | null | undefined; /** * Type of entity this payment should be attributed to. */ type?: BillPaymentUpdateInputAllocationType | undefined; /** * Amount of payment that should be attributed to this allocation. If null, the total_amount will be used. */ amount?: number | null | undefined; /** * Unique identifier of the allocation */ allocationId?: string | undefined; }; /** * The writable shape of BillPayment for a single-record update. Identical to the model with the read-only properties removed and no required properties, because PATCH is partial and the API already validates it that way. */ export type BillPaymentUpdateInput = { /** * 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; /** * The total amount of the transaction or record */ totalAmount?: number | null | undefined; /** * Optional transaction reference message ie: Debit remittance detail. */ reference?: string | null | undefined; /** * Payment method used for the transaction, such as cash, credit card, bank transfer, or check */ paymentMethod?: string | null | undefined; /** * Optional reference message returned by payment method on processing */ paymentMethodReference?: string | null | undefined; /** * A unique identifier for an object. */ paymentMethodId?: string | null | undefined; account?: LinkedLedgerAccount | null | undefined; /** * The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD */ transactionDate?: Date | null | undefined; /** * The supplier this entity is linked to. */ supplier?: LinkedSupplierInput | null | undefined; /** * The company ID the transaction belongs to */ companyId?: string | null | undefined; subsidiary?: LinkedSubsidiaryInput | null | undefined; /** * Indicates if the transaction has been reconciled. */ reconciled?: boolean | null | undefined; /** * Status of payment */ status?: PaymentStatus | undefined; /** * Type of payment */ type?: BillPaymentUpdateInputBillPaymentType | undefined; allocations?: Array | undefined; /** * Note associated with the transaction */ note?: string | null | undefined; /** * Number associated with the transaction */ number?: 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; /** * Id to be displayed. */ displayId?: 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 BillPaymentUpdateInputBillPaymentType$outboundSchema: z.ZodType; /** @internal */ export declare const BillPaymentUpdateInputAllocationType$outboundSchema: z.ZodType; /** @internal */ export type BillPaymentUpdateInputAllocations$Outbound = { id?: string | null | undefined; type?: string | undefined; amount?: number | null | undefined; allocation_id?: string | undefined; }; /** @internal */ export declare const BillPaymentUpdateInputAllocations$outboundSchema: z.ZodType; export declare function billPaymentUpdateInputAllocationsToJSON(billPaymentUpdateInputAllocations: BillPaymentUpdateInputAllocations): string; /** @internal */ export type BillPaymentUpdateInput$Outbound = { currency?: string | null | undefined; currency_rate?: number | null | undefined; total_amount?: number | null | undefined; reference?: string | null | undefined; payment_method?: string | null | undefined; payment_method_reference?: string | null | undefined; payment_method_id?: string | null | undefined; account?: LinkedLedgerAccount$Outbound | null | undefined; transaction_date?: string | null | undefined; supplier?: LinkedSupplierInput$Outbound | null | undefined; company_id?: string | null | undefined; subsidiary?: LinkedSubsidiaryInput$Outbound | null | undefined; reconciled?: boolean | null | undefined; status?: string | undefined; type?: string | undefined; allocations?: Array | undefined; note?: string | null | undefined; number?: string | null | undefined; tracking_categories?: Array | null | undefined; custom_fields?: Array | undefined; row_version?: string | null | undefined; display_id?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const BillPaymentUpdateInput$outboundSchema: z.ZodType; export declare function billPaymentUpdateInputToJSON(billPaymentUpdateInput: BillPaymentUpdateInput): string; //# sourceMappingURL=billpaymentupdateinput.d.ts.map