@apideck/unify 0.41.5 → 0.41.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/funcs/webhookWebhooksCreate.d.ts +2 -0
- package/funcs/webhookWebhooksCreate.d.ts.map +1 -1
- package/funcs/webhookWebhooksCreate.js +2 -0
- package/funcs/webhookWebhooksCreate.js.map +1 -1
- package/funcs/webhookWebhooksUpdate.d.ts +2 -0
- package/funcs/webhookWebhooksUpdate.d.ts.map +1 -1
- package/funcs/webhookWebhooksUpdate.js +2 -0
- package/funcs/webhookWebhooksUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/bill.d.ts +5 -0
- package/models/components/bill.d.ts.map +1 -1
- package/models/components/bill.js +4 -0
- package/models/components/bill.js.map +1 -1
- package/models/components/billpayment.d.ts +5 -0
- package/models/components/billpayment.d.ts.map +1 -1
- package/models/components/billpayment.js +4 -0
- package/models/components/billpayment.js.map +1 -1
- package/models/components/createwebhookrequest.d.ts +1 -1
- package/models/components/creditnote.d.ts +5 -0
- package/models/components/creditnote.d.ts.map +1 -1
- package/models/components/creditnote.js +4 -0
- package/models/components/creditnote.js.map +1 -1
- package/models/components/creditnotesfilter.d.ts +7 -0
- package/models/components/creditnotesfilter.d.ts.map +1 -1
- package/models/components/creditnotesfilter.js +3 -0
- package/models/components/creditnotesfilter.js.map +1 -1
- package/models/components/invoice.d.ts +5 -0
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js +4 -0
- package/models/components/invoice.js.map +1 -1
- package/models/components/invoiceitemsfilter.d.ts +5 -0
- package/models/components/invoiceitemsfilter.d.ts.map +1 -1
- package/models/components/invoiceitemsfilter.js +1 -0
- package/models/components/invoiceitemsfilter.js.map +1 -1
- package/models/components/journalentry.d.ts +5 -0
- package/models/components/journalentry.d.ts.map +1 -1
- package/models/components/journalentry.js +4 -0
- package/models/components/journalentry.js.map +1 -1
- package/models/components/ledgeraccountsfilter.d.ts +18 -0
- package/models/components/ledgeraccountsfilter.d.ts.map +1 -1
- package/models/components/ledgeraccountsfilter.js +11 -1
- package/models/components/ledgeraccountsfilter.js.map +1 -1
- package/models/components/payment.d.ts +2 -0
- package/models/components/payment.d.ts.map +1 -1
- package/models/components/payment.js +2 -0
- package/models/components/payment.js.map +1 -1
- package/models/components/paymentinput.d.ts +3 -0
- package/models/components/paymentinput.d.ts.map +1 -1
- package/models/components/paymentinput.js +2 -0
- package/models/components/paymentinput.js.map +1 -1
- package/models/components/unifiedapiid.d.ts +1 -0
- package/models/components/unifiedapiid.d.ts.map +1 -1
- package/models/components/unifiedapiid.js +1 -0
- package/models/components/unifiedapiid.js.map +1 -1
- package/models/components/updatewebhookrequest.d.ts +1 -1
- package/models/components/webhook.d.ts +1 -1
- package/package.json +1 -1
- package/sdk/webhooks.d.ts +4 -0
- package/sdk/webhooks.d.ts.map +1 -1
- package/sdk/webhooks.js +4 -0
- package/sdk/webhooks.js.map +1 -1
- package/src/funcs/webhookWebhooksCreate.ts +2 -0
- package/src/funcs/webhookWebhooksUpdate.ts +2 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/bill.ts +14 -0
- package/src/models/components/billpayment.ts +14 -0
- package/src/models/components/createwebhookrequest.ts +1 -1
- package/src/models/components/creditnote.ts +14 -0
- package/src/models/components/creditnotesfilter.ts +10 -0
- package/src/models/components/invoice.ts +14 -0
- package/src/models/components/invoiceitemsfilter.ts +6 -0
- package/src/models/components/journalentry.ts +14 -0
- package/src/models/components/ledgeraccountsfilter.ts +27 -0
- package/src/models/components/payment.ts +6 -0
- package/src/models/components/paymentinput.ts +8 -0
- package/src/models/components/unifiedapiid.ts +1 -0
- package/src/models/components/updatewebhookrequest.ts +1 -1
- package/src/models/components/webhook.ts +1 -1
- package/src/sdk/webhooks.ts +4 -0
|
@@ -46,6 +46,7 @@ const customfield_js_1 = require("./customfield.js");
|
|
|
46
46
|
const deprecatedlinkedsupplierinput_js_1 = require("./deprecatedlinkedsupplierinput.js");
|
|
47
47
|
const linkedcustomerinput_js_1 = require("./linkedcustomerinput.js");
|
|
48
48
|
const linkedledgeraccount_js_1 = require("./linkedledgeraccount.js");
|
|
49
|
+
const linkedsubsidiaryinput_js_1 = require("./linkedsubsidiaryinput.js");
|
|
49
50
|
const linkedtrackingcategory_js_1 = require("./linkedtrackingcategory.js");
|
|
50
51
|
const passthroughbody_js_1 = require("./passthroughbody.js");
|
|
51
52
|
const paymentstatus_js_1 = require("./paymentstatus.js");
|
|
@@ -66,6 +67,7 @@ exports.PaymentInput$outboundSchema = z.object({
|
|
|
66
67
|
customer: z.nullable(linkedcustomerinput_js_1.LinkedCustomerInput$outboundSchema).optional(),
|
|
67
68
|
supplier: z.nullable(deprecatedlinkedsupplierinput_js_1.DeprecatedLinkedSupplierInput$outboundSchema).optional(),
|
|
68
69
|
companyId: z.nullable(z.string()).optional(),
|
|
70
|
+
subsidiary: z.nullable(linkedsubsidiaryinput_js_1.LinkedSubsidiaryInput$outboundSchema).optional(),
|
|
69
71
|
reconciled: z.nullable(z.boolean()).optional(),
|
|
70
72
|
status: paymentstatus_js_1.PaymentStatus$outboundSchema.optional(),
|
|
71
73
|
type: paymenttype_js_1.PaymentType$outboundSchema.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentinput.js","sourceRoot":"","sources":["../../src/models/components/paymentinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"paymentinput.js","sourceRoot":"","sources":["../../src/models/components/paymentinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8OH,gDAEC;AA9OD,0CAA4B;AAC5B,2DAA0D;AAC1D,mDAIyB;AACzB,+CAAkE;AAClE,qDAI0B;AAC1B,yFAI4C;AAC5C,qEAIkC;AAClC,qEAIkC;AACl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AAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,eAAe;QAC7B,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,gBAAgB;QAC/B,sBAAsB,EAAE,0BAA0B;QAClD,eAAe,EAAE,mBAAmB;QACpC,6BAA6B,EAAE,kCAAkC;QACjE,2BAA2B,EAAE,gCAAgC;QAC7D,eAAe,EAAE,kBAAkB;QACnC,SAAS,EAAE,YAAY;QACvB,kBAAkB,EAAE,qBAAqB;QACzC,YAAY,EAAE,eAAe;QAC7B,UAAU,EAAE,aAAa;QACzB,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,kBAAkB,CAAC,YAA0B;IAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,mCAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -25,6 +25,7 @@ export declare const UnifiedApiId: {
|
|
|
25
25
|
readonly Script: "script";
|
|
26
26
|
readonly Sms: "sms";
|
|
27
27
|
readonly Spreadsheet: "spreadsheet";
|
|
28
|
+
readonly SubscriptionAnalytics: "subscription-analytics";
|
|
28
29
|
readonly TeamMessaging: "team-messaging";
|
|
29
30
|
readonly IssueTracking: "issue-tracking";
|
|
30
31
|
readonly TimeRegistration: "time-registration";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unifiedapiid.d.ts","sourceRoot":"","sources":["../../src/models/components/unifiedapiid.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"unifiedapiid.d.ts","sourceRoot":"","sources":["../../src/models/components/unifiedapiid.ts"],"names":[],"mappings":"A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AK,EAAE,OAAO;IACd,aAAa,EAAE,gBAAgB;CACvB,CAAC;AAMX,gBAAgB;AACH,QAAA,0BAA0B,GAInC,SAAS,CAAC,aAAa,CAAC,oBAAY,CAAC,CAAC;AAC1C,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,SAAS,CAAC,cAAc,CAAC,oBAAY,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ export type UpdateWebhookRequest = {
|
|
|
11
11
|
*/
|
|
12
12
|
status?: Status | undefined;
|
|
13
13
|
/**
|
|
14
|
-
* The delivery url of the webhook endpoint.
|
|
14
|
+
* The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the delivery is recorded as failed.
|
|
15
15
|
*/
|
|
16
16
|
deliveryUrl?: string | undefined;
|
|
17
17
|
/**
|
|
@@ -37,7 +37,7 @@ export type Webhook = {
|
|
|
37
37
|
*/
|
|
38
38
|
disabledReason?: DisabledReason | undefined;
|
|
39
39
|
/**
|
|
40
|
-
* The delivery url of the webhook endpoint.
|
|
40
|
+
* The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the delivery is recorded as failed.
|
|
41
41
|
*/
|
|
42
42
|
deliveryUrl: string;
|
|
43
43
|
/**
|
package/package.json
CHANGED
package/sdk/webhooks.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export declare class Webhooks extends ClientSDK {
|
|
|
19
19
|
*
|
|
20
20
|
* **Delivery URL Validation**: The provided `delivery_url` will be validated synchronously by sending an HTTP POST request with an HMAC signature. If validation fails (network error, timeout, non-2xx response), the webhook will still be created but with `status: "disabled"` and `disabled_reason: "delivery_url_validation_failed"`.
|
|
21
21
|
*
|
|
22
|
+
* **Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly (HTTP 2xx) and defer work asynchronously.
|
|
23
|
+
*
|
|
22
24
|
* **Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the webhook is active.
|
|
23
25
|
*/
|
|
24
26
|
create(request: operations.WebhookWebhooksAddRequest, options?: RequestOptions): Promise<operations.WebhookWebhooksAddResponse>;
|
|
@@ -37,6 +39,8 @@ export declare class Webhooks extends ClientSDK {
|
|
|
37
39
|
*
|
|
38
40
|
* **Delivery URL Validation**: When updating the `delivery_url`, it will be validated synchronously by sending an HTTP POST request with an HMAC signature. If validation fails (network error, timeout, non-2xx response), the webhook will still be updated but with `status: "disabled"` and `disabled_reason: "delivery_url_validation_failed"`. Validation only occurs when the URL is changed.
|
|
39
41
|
*
|
|
42
|
+
* **Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly (HTTP 2xx) and defer work asynchronously.
|
|
43
|
+
*
|
|
40
44
|
* **Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the webhook is active.
|
|
41
45
|
*/
|
|
42
46
|
update(request: operations.WebhookWebhooksUpdateRequest, options?: RequestOptions): Promise<operations.WebhookWebhooksUpdateResponse>;
|
package/sdk/webhooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/sdk/webhooks.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,0BAA0B,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CACxE;IAQD
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/sdk/webhooks.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,0BAA0B,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CACxE;IAQD;;;;;;;;;;;OAWG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;;;;;;;;;;OAWG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAOrD"}
|
package/sdk/webhooks.js
CHANGED
|
@@ -30,6 +30,8 @@ class Webhooks extends sdks_js_1.ClientSDK {
|
|
|
30
30
|
*
|
|
31
31
|
* **Delivery URL Validation**: The provided `delivery_url` will be validated synchronously by sending an HTTP POST request with an HMAC signature. If validation fails (network error, timeout, non-2xx response), the webhook will still be created but with `status: "disabled"` and `disabled_reason: "delivery_url_validation_failed"`.
|
|
32
32
|
*
|
|
33
|
+
* **Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly (HTTP 2xx) and defer work asynchronously.
|
|
34
|
+
*
|
|
33
35
|
* **Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the webhook is active.
|
|
34
36
|
*/
|
|
35
37
|
async create(request, options) {
|
|
@@ -52,6 +54,8 @@ class Webhooks extends sdks_js_1.ClientSDK {
|
|
|
52
54
|
*
|
|
53
55
|
* **Delivery URL Validation**: When updating the `delivery_url`, it will be validated synchronously by sending an HTTP POST request with an HMAC signature. If validation fails (network error, timeout, non-2xx response), the webhook will still be updated but with `status: "disabled"` and `disabled_reason: "delivery_url_validation_failed"`. Validation only occurs when the URL is changed.
|
|
54
56
|
*
|
|
57
|
+
* **Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly (HTTP 2xx) and defer work asynchronously.
|
|
58
|
+
*
|
|
55
59
|
* **Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the webhook is active.
|
|
56
60
|
*/
|
|
57
61
|
async update(request, options) {
|
package/sdk/webhooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/sdk/webhooks.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,gFAA0E;AAC1E,0EAAoE;AACpE,4EAAsE;AACtE,gFAA0E;AAC1E,4CAA2D;AAE3D,0CAA6C;AAC7C,0DAA4E;AAE5E,MAAa,QAAS,SAAQ,mBAAS;IACrC;;;;;OAKG;I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AqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAnGD,4BAmGC"}
|
|
@@ -34,6 +34,8 @@ import { Result } from "../types/fp.js";
|
|
|
34
34
|
*
|
|
35
35
|
* **Delivery URL Validation**: The provided `delivery_url` will be validated synchronously by sending an HTTP POST request with an HMAC signature. If validation fails (network error, timeout, non-2xx response), the webhook will still be created but with `status: "disabled"` and `disabled_reason: "delivery_url_validation_failed"`.
|
|
36
36
|
*
|
|
37
|
+
* **Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly (HTTP 2xx) and defer work asynchronously.
|
|
38
|
+
*
|
|
37
39
|
* **Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the webhook is active.
|
|
38
40
|
*/
|
|
39
41
|
export function webhookWebhooksCreate(
|
|
@@ -34,6 +34,8 @@ import { Result } from "../types/fp.js";
|
|
|
34
34
|
*
|
|
35
35
|
* **Delivery URL Validation**: When updating the `delivery_url`, it will be validated synchronously by sending an HTTP POST request with an HMAC signature. If validation fails (network error, timeout, non-2xx response), the webhook will still be updated but with `status: "disabled"` and `disabled_reason: "delivery_url_validation_failed"`. Validation only occurs when the URL is changed.
|
|
36
36
|
*
|
|
37
|
+
* **Delivery Timeout**: Each delivery attempt has a hard 60-second timeout. Endpoints that do not respond within 60 seconds are recorded as failed deliveries (`success: false`, `status_code: 0` on the event log) and follow the standard retry policy. Endpoints should acknowledge requests quickly (HTTP 2xx) and defer work asynchronously.
|
|
38
|
+
*
|
|
37
39
|
* **Important**: Always check the `status` and `disabled_reason` fields in the response to ensure the webhook is active.
|
|
38
40
|
*/
|
|
39
41
|
export function webhookWebhooksUpdate(
|
package/src/lib/config.ts
CHANGED
|
@@ -67,8 +67,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
67
67
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
|
-
openapiDocVersion: "10.24.
|
|
71
|
-
sdkVersion: "0.41.
|
|
70
|
+
openapiDocVersion: "10.24.37",
|
|
71
|
+
sdkVersion: "0.41.7",
|
|
72
72
|
genVersion: "2.882.0",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 0.41.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 0.41.7 2.882.0 10.24.37 @apideck/unify",
|
|
74
74
|
} as const;
|
|
@@ -51,6 +51,15 @@ import {
|
|
|
51
51
|
LinkedPaymentAllocations$Outbound,
|
|
52
52
|
LinkedPaymentAllocations$outboundSchema,
|
|
53
53
|
} from "./linkedpaymentallocations.js";
|
|
54
|
+
import {
|
|
55
|
+
LinkedSubsidiary,
|
|
56
|
+
LinkedSubsidiary$inboundSchema,
|
|
57
|
+
} from "./linkedsubsidiary.js";
|
|
58
|
+
import {
|
|
59
|
+
LinkedSubsidiaryInput,
|
|
60
|
+
LinkedSubsidiaryInput$Outbound,
|
|
61
|
+
LinkedSubsidiaryInput$outboundSchema,
|
|
62
|
+
} from "./linkedsubsidiaryinput.js";
|
|
54
63
|
import {
|
|
55
64
|
LinkedSupplier,
|
|
56
65
|
LinkedSupplier$inboundSchema,
|
|
@@ -131,6 +140,7 @@ export type Bill = {
|
|
|
131
140
|
* The company ID the transaction belongs to
|
|
132
141
|
*/
|
|
133
142
|
companyId?: string | null | undefined;
|
|
143
|
+
subsidiary?: LinkedSubsidiary | null | undefined;
|
|
134
144
|
/**
|
|
135
145
|
* The ID of the location
|
|
136
146
|
*/
|
|
@@ -319,6 +329,7 @@ export type BillInput = {
|
|
|
319
329
|
* The company ID the transaction belongs to
|
|
320
330
|
*/
|
|
321
331
|
companyId?: string | null | undefined;
|
|
332
|
+
subsidiary?: LinkedSubsidiaryInput | null | undefined;
|
|
322
333
|
/**
|
|
323
334
|
* The ID of the location
|
|
324
335
|
*/
|
|
@@ -505,6 +516,7 @@ export const Bill$inboundSchema: z.ZodType<Bill, z.ZodTypeDef, unknown> = z
|
|
|
505
516
|
bill_number: z.nullable(types.string()).optional(),
|
|
506
517
|
supplier: z.nullable(LinkedSupplier$inboundSchema).optional(),
|
|
507
518
|
company_id: z.nullable(types.string()).optional(),
|
|
519
|
+
subsidiary: z.nullable(LinkedSubsidiary$inboundSchema).optional(),
|
|
508
520
|
location_id: z.nullable(types.string()).optional(),
|
|
509
521
|
department_id: z.nullable(types.string()).optional(),
|
|
510
522
|
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
@@ -617,6 +629,7 @@ export type BillInput$Outbound = {
|
|
|
617
629
|
bill_number?: string | null | undefined;
|
|
618
630
|
supplier?: LinkedSupplierInput$Outbound | null | undefined;
|
|
619
631
|
company_id?: string | null | undefined;
|
|
632
|
+
subsidiary?: LinkedSubsidiaryInput$Outbound | null | undefined;
|
|
620
633
|
location_id?: string | null | undefined;
|
|
621
634
|
department_id?: string | null | undefined;
|
|
622
635
|
currency?: string | null | undefined;
|
|
@@ -676,6 +689,7 @@ export const BillInput$outboundSchema: z.ZodType<
|
|
|
676
689
|
billNumber: z.nullable(z.string()).optional(),
|
|
677
690
|
supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(),
|
|
678
691
|
companyId: z.nullable(z.string()).optional(),
|
|
692
|
+
subsidiary: z.nullable(LinkedSubsidiaryInput$outboundSchema).optional(),
|
|
679
693
|
locationId: z.nullable(z.string()).optional(),
|
|
680
694
|
departmentId: z.nullable(z.string()).optional(),
|
|
681
695
|
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
@@ -27,6 +27,15 @@ import {
|
|
|
27
27
|
LinkedLedgerAccount$Outbound,
|
|
28
28
|
LinkedLedgerAccount$outboundSchema,
|
|
29
29
|
} from "./linkedledgeraccount.js";
|
|
30
|
+
import {
|
|
31
|
+
LinkedSubsidiary,
|
|
32
|
+
LinkedSubsidiary$inboundSchema,
|
|
33
|
+
} from "./linkedsubsidiary.js";
|
|
34
|
+
import {
|
|
35
|
+
LinkedSubsidiaryInput,
|
|
36
|
+
LinkedSubsidiaryInput$Outbound,
|
|
37
|
+
LinkedSubsidiaryInput$outboundSchema,
|
|
38
|
+
} from "./linkedsubsidiaryinput.js";
|
|
30
39
|
import {
|
|
31
40
|
LinkedSupplier,
|
|
32
41
|
LinkedSupplier$inboundSchema,
|
|
@@ -157,6 +166,7 @@ export type BillPayment = {
|
|
|
157
166
|
* The company ID the transaction belongs to
|
|
158
167
|
*/
|
|
159
168
|
companyId?: string | null | undefined;
|
|
169
|
+
subsidiary?: LinkedSubsidiary | null | undefined;
|
|
160
170
|
/**
|
|
161
171
|
* Indicates if the transaction has been reconciled.
|
|
162
172
|
*/
|
|
@@ -278,6 +288,7 @@ export type BillPaymentInput = {
|
|
|
278
288
|
* The company ID the transaction belongs to
|
|
279
289
|
*/
|
|
280
290
|
companyId?: string | null | undefined;
|
|
291
|
+
subsidiary?: LinkedSubsidiaryInput | null | undefined;
|
|
281
292
|
/**
|
|
282
293
|
* Indicates if the transaction has been reconciled.
|
|
283
294
|
*/
|
|
@@ -390,6 +401,7 @@ export const BillPayment$inboundSchema: z.ZodType<
|
|
|
390
401
|
transaction_date: types.nullable(types.date()),
|
|
391
402
|
supplier: z.nullable(LinkedSupplier$inboundSchema).optional(),
|
|
392
403
|
company_id: z.nullable(types.string()).optional(),
|
|
404
|
+
subsidiary: z.nullable(LinkedSubsidiary$inboundSchema).optional(),
|
|
393
405
|
reconciled: z.nullable(types.boolean()).optional(),
|
|
394
406
|
status: types.optional(PaymentStatus$inboundSchema),
|
|
395
407
|
type: types.optional(BillPaymentType$inboundSchema),
|
|
@@ -486,6 +498,7 @@ export type BillPaymentInput$Outbound = {
|
|
|
486
498
|
transaction_date: string | null;
|
|
487
499
|
supplier?: LinkedSupplierInput$Outbound | null | undefined;
|
|
488
500
|
company_id?: string | null | undefined;
|
|
501
|
+
subsidiary?: LinkedSubsidiaryInput$Outbound | null | undefined;
|
|
489
502
|
reconciled?: boolean | null | undefined;
|
|
490
503
|
status?: string | undefined;
|
|
491
504
|
type?: string | undefined;
|
|
@@ -519,6 +532,7 @@ export const BillPaymentInput$outboundSchema: z.ZodType<
|
|
|
519
532
|
transactionDate: z.nullable(z.date().transform(v => v.toISOString())),
|
|
520
533
|
supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(),
|
|
521
534
|
companyId: z.nullable(z.string()).optional(),
|
|
535
|
+
subsidiary: z.nullable(LinkedSubsidiaryInput$outboundSchema).optional(),
|
|
522
536
|
reconciled: z.nullable(z.boolean()).optional(),
|
|
523
537
|
status: PaymentStatus$outboundSchema.optional(),
|
|
524
538
|
type: BillPaymentType$outboundSchema.optional(),
|
|
@@ -25,7 +25,7 @@ export type CreateWebhookRequest = {
|
|
|
25
25
|
*/
|
|
26
26
|
status: Status;
|
|
27
27
|
/**
|
|
28
|
-
* The delivery url of the webhook endpoint.
|
|
28
|
+
* The delivery url of the webhook endpoint. The endpoint must respond within 60 seconds or the delivery is recorded as failed.
|
|
29
29
|
*/
|
|
30
30
|
deliveryUrl: string;
|
|
31
31
|
/**
|
|
@@ -56,6 +56,15 @@ import {
|
|
|
56
56
|
LinkedLedgerAccount$Outbound,
|
|
57
57
|
LinkedLedgerAccount$outboundSchema,
|
|
58
58
|
} from "./linkedledgeraccount.js";
|
|
59
|
+
import {
|
|
60
|
+
LinkedSubsidiary,
|
|
61
|
+
LinkedSubsidiary$inboundSchema,
|
|
62
|
+
} from "./linkedsubsidiary.js";
|
|
63
|
+
import {
|
|
64
|
+
LinkedSubsidiaryInput,
|
|
65
|
+
LinkedSubsidiaryInput$Outbound,
|
|
66
|
+
LinkedSubsidiaryInput$outboundSchema,
|
|
67
|
+
} from "./linkedsubsidiaryinput.js";
|
|
59
68
|
import {
|
|
60
69
|
LinkedTrackingCategory,
|
|
61
70
|
LinkedTrackingCategory$inboundSchema,
|
|
@@ -115,6 +124,7 @@ export type CreditNote = {
|
|
|
115
124
|
* The company ID the transaction belongs to
|
|
116
125
|
*/
|
|
117
126
|
companyId?: string | null | undefined;
|
|
127
|
+
subsidiary?: LinkedSubsidiary | null | undefined;
|
|
118
128
|
/**
|
|
119
129
|
* The ID of the location
|
|
120
130
|
*/
|
|
@@ -244,6 +254,7 @@ export type CreditNoteInput = {
|
|
|
244
254
|
* The company ID the transaction belongs to
|
|
245
255
|
*/
|
|
246
256
|
companyId?: string | null | undefined;
|
|
257
|
+
subsidiary?: LinkedSubsidiaryInput | null | undefined;
|
|
247
258
|
/**
|
|
248
259
|
* The ID of the location
|
|
249
260
|
*/
|
|
@@ -376,6 +387,7 @@ export const CreditNote$inboundSchema: z.ZodType<
|
|
|
376
387
|
number: z.nullable(types.string()).optional(),
|
|
377
388
|
customer: z.nullable(LinkedCustomer$inboundSchema).optional(),
|
|
378
389
|
company_id: z.nullable(types.string()).optional(),
|
|
390
|
+
subsidiary: z.nullable(LinkedSubsidiary$inboundSchema).optional(),
|
|
379
391
|
location_id: z.nullable(types.string()).optional(),
|
|
380
392
|
department_id: z.nullable(types.string()).optional(),
|
|
381
393
|
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
@@ -456,6 +468,7 @@ export type CreditNoteInput$Outbound = {
|
|
|
456
468
|
number?: string | null | undefined;
|
|
457
469
|
customer?: LinkedCustomerInput$Outbound | null | undefined;
|
|
458
470
|
company_id?: string | null | undefined;
|
|
471
|
+
subsidiary?: LinkedSubsidiaryInput$Outbound | null | undefined;
|
|
459
472
|
location_id?: string | null | undefined;
|
|
460
473
|
department_id?: string | null | undefined;
|
|
461
474
|
currency?: string | null | undefined;
|
|
@@ -498,6 +511,7 @@ export const CreditNoteInput$outboundSchema: z.ZodType<
|
|
|
498
511
|
number: z.nullable(z.string()).optional(),
|
|
499
512
|
customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(),
|
|
500
513
|
companyId: z.nullable(z.string()).optional(),
|
|
514
|
+
subsidiary: z.nullable(LinkedSubsidiaryInput$outboundSchema).optional(),
|
|
501
515
|
locationId: z.nullable(z.string()).optional(),
|
|
502
516
|
departmentId: z.nullable(z.string()).optional(),
|
|
503
517
|
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
@@ -11,12 +11,19 @@ export type CreditNotesFilter = {
|
|
|
11
11
|
*/
|
|
12
12
|
idSince?: string | undefined;
|
|
13
13
|
updatedSince?: Date | undefined;
|
|
14
|
+
createdSince?: Date | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Credit note number to search for
|
|
17
|
+
*/
|
|
18
|
+
number?: string | undefined;
|
|
14
19
|
};
|
|
15
20
|
|
|
16
21
|
/** @internal */
|
|
17
22
|
export type CreditNotesFilter$Outbound = {
|
|
18
23
|
id_since?: string | undefined;
|
|
19
24
|
updated_since?: string | undefined;
|
|
25
|
+
created_since?: string | undefined;
|
|
26
|
+
number?: string | undefined;
|
|
20
27
|
};
|
|
21
28
|
|
|
22
29
|
/** @internal */
|
|
@@ -27,10 +34,13 @@ export const CreditNotesFilter$outboundSchema: z.ZodType<
|
|
|
27
34
|
> = z.object({
|
|
28
35
|
idSince: z.string().optional(),
|
|
29
36
|
updatedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
37
|
+
createdSince: z.date().transform(v => v.toISOString()).optional(),
|
|
38
|
+
number: z.string().optional(),
|
|
30
39
|
}).transform((v) => {
|
|
31
40
|
return remap$(v, {
|
|
32
41
|
idSince: "id_since",
|
|
33
42
|
updatedSince: "updated_since",
|
|
43
|
+
createdSince: "created_since",
|
|
34
44
|
});
|
|
35
45
|
});
|
|
36
46
|
|
|
@@ -61,6 +61,15 @@ import {
|
|
|
61
61
|
LinkedLedgerAccount$Outbound,
|
|
62
62
|
LinkedLedgerAccount$outboundSchema,
|
|
63
63
|
} from "./linkedledgeraccount.js";
|
|
64
|
+
import {
|
|
65
|
+
LinkedSubsidiary,
|
|
66
|
+
LinkedSubsidiary$inboundSchema,
|
|
67
|
+
} from "./linkedsubsidiary.js";
|
|
68
|
+
import {
|
|
69
|
+
LinkedSubsidiaryInput,
|
|
70
|
+
LinkedSubsidiaryInput$Outbound,
|
|
71
|
+
LinkedSubsidiaryInput$outboundSchema,
|
|
72
|
+
} from "./linkedsubsidiaryinput.js";
|
|
64
73
|
import {
|
|
65
74
|
LinkedTrackingCategory,
|
|
66
75
|
LinkedTrackingCategory$inboundSchema,
|
|
@@ -154,6 +163,7 @@ export type Invoice = {
|
|
|
154
163
|
* The company ID the transaction belongs to
|
|
155
164
|
*/
|
|
156
165
|
companyId?: string | null | undefined;
|
|
166
|
+
subsidiary?: LinkedSubsidiary | null | undefined;
|
|
157
167
|
/**
|
|
158
168
|
* The ID of the location
|
|
159
169
|
*/
|
|
@@ -335,6 +345,7 @@ export type InvoiceInput = {
|
|
|
335
345
|
* The company ID the transaction belongs to
|
|
336
346
|
*/
|
|
337
347
|
companyId?: string | null | undefined;
|
|
348
|
+
subsidiary?: LinkedSubsidiaryInput | null | undefined;
|
|
338
349
|
/**
|
|
339
350
|
* The ID of the location
|
|
340
351
|
*/
|
|
@@ -564,6 +575,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
564
575
|
number: z.nullable(types.string()).optional(),
|
|
565
576
|
customer: z.nullable(LinkedCustomer$inboundSchema).optional(),
|
|
566
577
|
company_id: z.nullable(types.string()).optional(),
|
|
578
|
+
subsidiary: z.nullable(LinkedSubsidiary$inboundSchema).optional(),
|
|
567
579
|
location_id: z.nullable(types.string()).optional(),
|
|
568
580
|
department_id: z.nullable(types.string()).optional(),
|
|
569
581
|
invoice_date: z.nullable(types.date()).optional(),
|
|
@@ -674,6 +686,7 @@ export type InvoiceInput$Outbound = {
|
|
|
674
686
|
number?: string | null | undefined;
|
|
675
687
|
customer?: LinkedCustomerInput$Outbound | null | undefined;
|
|
676
688
|
company_id?: string | null | undefined;
|
|
689
|
+
subsidiary?: LinkedSubsidiaryInput$Outbound | null | undefined;
|
|
677
690
|
location_id?: string | null | undefined;
|
|
678
691
|
department_id?: string | null | undefined;
|
|
679
692
|
invoice_date?: string | null | undefined;
|
|
@@ -732,6 +745,7 @@ export const InvoiceInput$outboundSchema: z.ZodType<
|
|
|
732
745
|
number: z.nullable(z.string()).optional(),
|
|
733
746
|
customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(),
|
|
734
747
|
companyId: z.nullable(z.string()).optional(),
|
|
748
|
+
subsidiary: z.nullable(LinkedSubsidiaryInput$outboundSchema).optional(),
|
|
735
749
|
locationId: z.nullable(z.string()).optional(),
|
|
736
750
|
departmentId: z.nullable(z.string()).optional(),
|
|
737
751
|
invoiceDate: z.nullable(
|
|
@@ -34,6 +34,10 @@ export type TransactionType = OpenEnum<typeof TransactionType>;
|
|
|
34
34
|
|
|
35
35
|
export type InvoiceItemsFilter = {
|
|
36
36
|
updatedSince?: Date | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Comma-separated list of invoice item IDs to filter by (e.g. `12345,67890`).
|
|
39
|
+
*/
|
|
40
|
+
ids?: string | undefined;
|
|
37
41
|
/**
|
|
38
42
|
* Name of Invoice Items to search for
|
|
39
43
|
*/
|
|
@@ -65,6 +69,7 @@ export const TransactionType$outboundSchema: z.ZodType<
|
|
|
65
69
|
/** @internal */
|
|
66
70
|
export type InvoiceItemsFilter$Outbound = {
|
|
67
71
|
updated_since?: string | undefined;
|
|
72
|
+
ids?: string | undefined;
|
|
68
73
|
name?: string | undefined;
|
|
69
74
|
type?: string | null | undefined;
|
|
70
75
|
transaction_type?: string | null | undefined;
|
|
@@ -77,6 +82,7 @@ export const InvoiceItemsFilter$outboundSchema: z.ZodType<
|
|
|
77
82
|
InvoiceItemsFilter
|
|
78
83
|
> = z.object({
|
|
79
84
|
updatedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
85
|
+
ids: z.string().optional(),
|
|
80
86
|
name: z.string().optional(),
|
|
81
87
|
type: z.nullable(InvoiceItemType$outboundSchema).optional(),
|
|
82
88
|
transactionType: z.nullable(TransactionType$outboundSchema).optional(),
|
|
@@ -28,6 +28,15 @@ import {
|
|
|
28
28
|
JournalEntryLineItemInput$Outbound,
|
|
29
29
|
JournalEntryLineItemInput$outboundSchema,
|
|
30
30
|
} from "./journalentrylineitem.js";
|
|
31
|
+
import {
|
|
32
|
+
LinkedSubsidiary,
|
|
33
|
+
LinkedSubsidiary$inboundSchema,
|
|
34
|
+
} from "./linkedsubsidiary.js";
|
|
35
|
+
import {
|
|
36
|
+
LinkedSubsidiaryInput,
|
|
37
|
+
LinkedSubsidiaryInput$Outbound,
|
|
38
|
+
LinkedSubsidiaryInput$outboundSchema,
|
|
39
|
+
} from "./linkedsubsidiaryinput.js";
|
|
31
40
|
import {
|
|
32
41
|
LinkedTrackingCategory,
|
|
33
42
|
LinkedTrackingCategory$inboundSchema,
|
|
@@ -88,6 +97,7 @@ export type JournalEntry = {
|
|
|
88
97
|
* The company ID the transaction belongs to
|
|
89
98
|
*/
|
|
90
99
|
companyId?: string | null | undefined;
|
|
100
|
+
subsidiary?: LinkedSubsidiary | null | undefined;
|
|
91
101
|
/**
|
|
92
102
|
* Requires a minimum of 2 line items that sum to 0
|
|
93
103
|
*/
|
|
@@ -194,6 +204,7 @@ export type JournalEntryInput = {
|
|
|
194
204
|
* The company ID the transaction belongs to
|
|
195
205
|
*/
|
|
196
206
|
companyId?: string | null | undefined;
|
|
207
|
+
subsidiary?: LinkedSubsidiaryInput | null | undefined;
|
|
197
208
|
/**
|
|
198
209
|
* Requires a minimum of 2 line items that sum to 0
|
|
199
210
|
*/
|
|
@@ -285,6 +296,7 @@ export const JournalEntry$inboundSchema: z.ZodType<
|
|
|
285
296
|
currency_rate: z.nullable(types.number()).optional(),
|
|
286
297
|
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
287
298
|
company_id: z.nullable(types.string()).optional(),
|
|
299
|
+
subsidiary: z.nullable(LinkedSubsidiary$inboundSchema).optional(),
|
|
288
300
|
line_items: types.optional(z.array(JournalEntryLineItem$inboundSchema)),
|
|
289
301
|
status: z.nullable(JournalEntryStatus$inboundSchema).optional(),
|
|
290
302
|
memo: z.nullable(types.string()).optional(),
|
|
@@ -352,6 +364,7 @@ export type JournalEntryInput$Outbound = {
|
|
|
352
364
|
currency_rate?: number | null | undefined;
|
|
353
365
|
currency?: string | null | undefined;
|
|
354
366
|
company_id?: string | null | undefined;
|
|
367
|
+
subsidiary?: LinkedSubsidiaryInput$Outbound | null | undefined;
|
|
355
368
|
line_items?: Array<JournalEntryLineItemInput$Outbound> | undefined;
|
|
356
369
|
status?: string | null | undefined;
|
|
357
370
|
memo?: string | null | undefined;
|
|
@@ -384,6 +397,7 @@ export const JournalEntryInput$outboundSchema: z.ZodType<
|
|
|
384
397
|
currencyRate: z.nullable(z.number()).optional(),
|
|
385
398
|
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
386
399
|
companyId: z.nullable(z.string()).optional(),
|
|
400
|
+
subsidiary: z.nullable(LinkedSubsidiaryInput$outboundSchema).optional(),
|
|
387
401
|
lineItems: z.array(JournalEntryLineItemInput$outboundSchema).optional(),
|
|
388
402
|
status: z.nullable(JournalEntryStatus$outboundSchema).optional(),
|
|
389
403
|
memo: z.nullable(z.string()).optional(),
|
|
@@ -27,6 +27,20 @@ export const Classification = {
|
|
|
27
27
|
*/
|
|
28
28
|
export type Classification = OpenEnum<typeof Classification>;
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Filter by account status.
|
|
32
|
+
*/
|
|
33
|
+
export const LedgerAccountsFilterStatus = {
|
|
34
|
+
Active: "active",
|
|
35
|
+
Inactive: "inactive",
|
|
36
|
+
} as const;
|
|
37
|
+
/**
|
|
38
|
+
* Filter by account status.
|
|
39
|
+
*/
|
|
40
|
+
export type LedgerAccountsFilterStatus = OpenEnum<
|
|
41
|
+
typeof LedgerAccountsFilterStatus
|
|
42
|
+
>;
|
|
43
|
+
|
|
30
44
|
export type LedgerAccountsFilter = {
|
|
31
45
|
/**
|
|
32
46
|
* Filter by ledger account name
|
|
@@ -37,6 +51,10 @@ export type LedgerAccountsFilter = {
|
|
|
37
51
|
* Filter by account classification.
|
|
38
52
|
*/
|
|
39
53
|
classification?: Classification | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Filter by account status.
|
|
56
|
+
*/
|
|
57
|
+
status?: LedgerAccountsFilterStatus | undefined;
|
|
40
58
|
};
|
|
41
59
|
|
|
42
60
|
/** @internal */
|
|
@@ -46,11 +64,19 @@ export const Classification$outboundSchema: z.ZodType<
|
|
|
46
64
|
Classification
|
|
47
65
|
> = openEnums.outboundSchema(Classification);
|
|
48
66
|
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const LedgerAccountsFilterStatus$outboundSchema: z.ZodType<
|
|
69
|
+
string,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
LedgerAccountsFilterStatus
|
|
72
|
+
> = openEnums.outboundSchema(LedgerAccountsFilterStatus);
|
|
73
|
+
|
|
49
74
|
/** @internal */
|
|
50
75
|
export type LedgerAccountsFilter$Outbound = {
|
|
51
76
|
name?: string | undefined;
|
|
52
77
|
updated_since?: string | undefined;
|
|
53
78
|
classification?: string | undefined;
|
|
79
|
+
status?: string | undefined;
|
|
54
80
|
};
|
|
55
81
|
|
|
56
82
|
/** @internal */
|
|
@@ -62,6 +88,7 @@ export const LedgerAccountsFilter$outboundSchema: z.ZodType<
|
|
|
62
88
|
name: z.string().optional(),
|
|
63
89
|
updatedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
64
90
|
classification: Classification$outboundSchema.optional(),
|
|
91
|
+
status: LedgerAccountsFilterStatus$outboundSchema.optional(),
|
|
65
92
|
}).transform((v) => {
|
|
66
93
|
return remap$(v, {
|
|
67
94
|
updatedSince: "updated_since",
|
|
@@ -23,6 +23,10 @@ import {
|
|
|
23
23
|
LinkedLedgerAccount,
|
|
24
24
|
LinkedLedgerAccount$inboundSchema,
|
|
25
25
|
} from "./linkedledgeraccount.js";
|
|
26
|
+
import {
|
|
27
|
+
LinkedSubsidiary,
|
|
28
|
+
LinkedSubsidiary$inboundSchema,
|
|
29
|
+
} from "./linkedsubsidiary.js";
|
|
26
30
|
import {
|
|
27
31
|
LinkedTrackingCategory,
|
|
28
32
|
LinkedTrackingCategory$inboundSchema,
|
|
@@ -102,6 +106,7 @@ export type Payment = {
|
|
|
102
106
|
* The company ID the transaction belongs to
|
|
103
107
|
*/
|
|
104
108
|
companyId?: string | null | undefined;
|
|
109
|
+
subsidiary?: LinkedSubsidiary | null | undefined;
|
|
105
110
|
/**
|
|
106
111
|
* Indicates if the transaction has been reconciled.
|
|
107
112
|
*/
|
|
@@ -181,6 +186,7 @@ export const Payment$inboundSchema: z.ZodType<Payment, z.ZodTypeDef, unknown> =
|
|
|
181
186
|
customer: z.nullable(LinkedCustomer$inboundSchema).optional(),
|
|
182
187
|
supplier: z.nullable(DeprecatedLinkedSupplier$inboundSchema).optional(),
|
|
183
188
|
company_id: z.nullable(types.string()).optional(),
|
|
189
|
+
subsidiary: z.nullable(LinkedSubsidiary$inboundSchema).optional(),
|
|
184
190
|
reconciled: z.nullable(types.boolean()).optional(),
|
|
185
191
|
status: types.optional(PaymentStatus$inboundSchema),
|
|
186
192
|
type: types.optional(PaymentType$inboundSchema),
|
|
@@ -30,6 +30,11 @@ import {
|
|
|
30
30
|
LinkedLedgerAccount$Outbound,
|
|
31
31
|
LinkedLedgerAccount$outboundSchema,
|
|
32
32
|
} from "./linkedledgeraccount.js";
|
|
33
|
+
import {
|
|
34
|
+
LinkedSubsidiaryInput,
|
|
35
|
+
LinkedSubsidiaryInput$Outbound,
|
|
36
|
+
LinkedSubsidiaryInput$outboundSchema,
|
|
37
|
+
} from "./linkedsubsidiaryinput.js";
|
|
33
38
|
import {
|
|
34
39
|
LinkedTrackingCategory,
|
|
35
40
|
LinkedTrackingCategory$Outbound,
|
|
@@ -106,6 +111,7 @@ export type PaymentInput = {
|
|
|
106
111
|
* The company ID the transaction belongs to
|
|
107
112
|
*/
|
|
108
113
|
companyId?: string | null | undefined;
|
|
114
|
+
subsidiary?: LinkedSubsidiaryInput | null | undefined;
|
|
109
115
|
/**
|
|
110
116
|
* Indicates if the transaction has been reconciled.
|
|
111
117
|
*/
|
|
@@ -162,6 +168,7 @@ export type PaymentInput$Outbound = {
|
|
|
162
168
|
customer?: LinkedCustomerInput$Outbound | null | undefined;
|
|
163
169
|
supplier?: DeprecatedLinkedSupplierInput$Outbound | null | undefined;
|
|
164
170
|
company_id?: string | null | undefined;
|
|
171
|
+
subsidiary?: LinkedSubsidiaryInput$Outbound | null | undefined;
|
|
165
172
|
reconciled?: boolean | null | undefined;
|
|
166
173
|
status?: string | undefined;
|
|
167
174
|
type?: string | undefined;
|
|
@@ -198,6 +205,7 @@ export const PaymentInput$outboundSchema: z.ZodType<
|
|
|
198
205
|
customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(),
|
|
199
206
|
supplier: z.nullable(DeprecatedLinkedSupplierInput$outboundSchema).optional(),
|
|
200
207
|
companyId: z.nullable(z.string()).optional(),
|
|
208
|
+
subsidiary: z.nullable(LinkedSubsidiaryInput$outboundSchema).optional(),
|
|
201
209
|
reconciled: z.nullable(z.boolean()).optional(),
|
|
202
210
|
status: PaymentStatus$outboundSchema.optional(),
|
|
203
211
|
type: PaymentType$outboundSchema.optional(),
|