import { AccountingInvoiceItemsAddRequest } from "@apideck/unify/models/operations";
import { RFCDate } from "@apideck/unify/types";
let value: AccountingInvoiceItemsAddRequest = {
serviceId: "salesforce",
invoiceItem: {
name: "Model Y",
description:
"Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.",
code: "120-C",
sold: true,
purchased: true,
tracked: true,
taxable: true,
inventoryDate: new RFCDate("2020-10-30"),
type: "inventory",
salesDetails: {
unitPrice: 27500.5,
unitOfMeasure: "pc.",
taxInclusive: true,
taxRate: {
id: "123456",
rate: 10,
},
},
purchaseDetails: {
unitPrice: 27500.5,
unitOfMeasure: "pc.",
taxInclusive: true,
taxRate: {
id: "123456",
rate: 10,
},
},
quantity: 1,
unitPrice: 27500.5,
assetAccount: {
id: "123456",
nominalCode: "N091",
code: "453",
},
incomeAccount: {
id: "123456",
nominalCode: "N091",
code: "453",
},
expenseAccount: {
id: "123456",
nominalCode: "N091",
code: "453",
},
trackingCategories: [
{
id: "123456",
name: "New York",
},
],
active: true,
rowVersion: "1-12345",
passThrough: [
{
serviceId: "<id>",
extendPaths: [
{
path: "$.nested.property",
value: {
"TaxClassificationRef": {
"value": "EUC-99990201-V1-00020000",
},
},
},
],
},
],
},
};