import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address } from "./address.js"; import { Currency } from "./currency.js"; import { CustomField } from "./customfield.js"; import { InvoiceLineItem } from "./invoicelineitem.js"; import { LinkedCustomer } from "./linkedcustomer.js"; import { LinkedDepartment } from "./linkeddepartment.js"; import { LinkedLedgerAccount } from "./linkedledgeraccount.js"; import { LinkedTrackingCategory } from "./linkedtrackingcategory.js"; import { PassThroughBody } from "./passthroughbody.js"; export type SalesReceipt = { /** * Unique identifier representing the sales receipt */ id: string; /** * Reference number for the sales receipt. */ number?: string | null | undefined; /** * The customer this entity is linked to. */ customer?: LinkedCustomer | 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; /** * Subtotal amount, normally before tax. */ subTotal?: number | null | undefined; /** * The total amount of the transaction or record */ totalAmount: number | null; /** * Total tax amount applied to this transaction. */ totalTax?: number | null | undefined; /** * The date of the sales receipt transaction - YYYY-MM-DDThh:mm:ss.sTZD */ transactionDate?: Date | 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; /** * Line items for itemized sales receipts. Used when the sales receipt includes product/service details with quantities and pricing. */ lineItems?: Array | 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 sales receipt. */ discountPercentage?: number | null | undefined; /** * Discount amount applied to this sales receipt. */ discountAmount?: number | null | undefined; /** * Optional note to be associated with the sales receipt. */ note?: string | null | undefined; /** * Customer memo */ customerMemo?: string | null | undefined; /** * Optional reference message for the sales receipt. */ reference?: string | null | undefined; billingAddress?: Address | undefined; shippingAddress?: Address | undefined; department?: LinkedDepartment | null | undefined; /** * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: { [k: string]: any; } | 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 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 | undefined; }; /** @internal */ export declare const SalesReceipt$inboundSchema: z.ZodType; export declare function salesReceiptFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=salesreceipt.d.ts.map