@apideck/unify 0.29.4 → 0.29.6
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/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/job.d.ts +2 -2
- package/models/components/job.d.ts.map +1 -1
- package/models/components/job.js +2 -2
- package/models/components/job.js.map +1 -1
- package/models/components/jobstatus.d.ts +12 -0
- package/models/components/jobstatus.d.ts.map +1 -1
- package/models/components/jobstatus.js +4 -0
- package/models/components/jobstatus.js.map +1 -1
- package/models/components/linkedtaxdetail.d.ts +47 -0
- package/models/components/linkedtaxdetail.d.ts.map +1 -0
- package/models/components/linkedtaxdetail.js +86 -0
- package/models/components/linkedtaxdetail.js.map +1 -0
- package/models/components/linkedtaxstatusdetail.d.ts +37 -0
- package/models/components/linkedtaxstatusdetail.d.ts.map +1 -0
- package/models/components/linkedtaxstatusdetail.js +80 -0
- package/models/components/linkedtaxstatusdetail.js.map +1 -0
- package/models/components/supplier.d.ts +40 -0
- package/models/components/supplier.d.ts.map +1 -1
- package/models/components/supplier.js +46 -0
- package/models/components/supplier.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +2 -0
- package/src/models/components/job.ts +4 -4
- package/src/models/components/jobstatus.ts +4 -0
- package/src/models/components/linkedtaxdetail.ts +99 -0
- package/src/models/components/linkedtaxstatusdetail.ts +85 -0
- package/src/models/components/supplier.ts +94 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type LinkedTaxDetail = {
|
|
12
|
+
/**
|
|
13
|
+
* The type of tax.
|
|
14
|
+
*/
|
|
15
|
+
type?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The number of the tax.
|
|
18
|
+
*/
|
|
19
|
+
number?: string | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the tax is a transaction tax.
|
|
22
|
+
*/
|
|
23
|
+
isTransactionTax?: boolean | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the tax is a primary tax.
|
|
26
|
+
*/
|
|
27
|
+
isPrimaryTax?: boolean | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const LinkedTaxDetail$inboundSchema: z.ZodType<
|
|
32
|
+
LinkedTaxDetail,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
type: z.string().optional(),
|
|
37
|
+
number: z.nullable(z.string()).optional(),
|
|
38
|
+
is_transaction_tax: z.boolean().optional(),
|
|
39
|
+
is_primary_tax: z.boolean().optional(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"is_transaction_tax": "isTransactionTax",
|
|
43
|
+
"is_primary_tax": "isPrimaryTax",
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type LinkedTaxDetail$Outbound = {
|
|
49
|
+
type?: string | undefined;
|
|
50
|
+
number?: string | null | undefined;
|
|
51
|
+
is_transaction_tax?: boolean | undefined;
|
|
52
|
+
is_primary_tax?: boolean | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const LinkedTaxDetail$outboundSchema: z.ZodType<
|
|
57
|
+
LinkedTaxDetail$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
LinkedTaxDetail
|
|
60
|
+
> = z.object({
|
|
61
|
+
type: z.string().optional(),
|
|
62
|
+
number: z.nullable(z.string()).optional(),
|
|
63
|
+
isTransactionTax: z.boolean().optional(),
|
|
64
|
+
isPrimaryTax: z.boolean().optional(),
|
|
65
|
+
}).transform((v) => {
|
|
66
|
+
return remap$(v, {
|
|
67
|
+
isTransactionTax: "is_transaction_tax",
|
|
68
|
+
isPrimaryTax: "is_primary_tax",
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
export namespace LinkedTaxDetail$ {
|
|
77
|
+
/** @deprecated use `LinkedTaxDetail$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema = LinkedTaxDetail$inboundSchema;
|
|
79
|
+
/** @deprecated use `LinkedTaxDetail$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema = LinkedTaxDetail$outboundSchema;
|
|
81
|
+
/** @deprecated use `LinkedTaxDetail$Outbound` instead. */
|
|
82
|
+
export type Outbound = LinkedTaxDetail$Outbound;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function linkedTaxDetailToJSON(
|
|
86
|
+
linkedTaxDetail: LinkedTaxDetail,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(LinkedTaxDetail$outboundSchema.parse(linkedTaxDetail));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function linkedTaxDetailFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<LinkedTaxDetail, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => LinkedTaxDetail$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'LinkedTaxDetail' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type LinkedTaxStatusDetail = {
|
|
12
|
+
/**
|
|
13
|
+
* The country of the tax status.
|
|
14
|
+
*/
|
|
15
|
+
country?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The transaction tax status.
|
|
18
|
+
*/
|
|
19
|
+
transactionTaxStatus?: string | null | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const LinkedTaxStatusDetail$inboundSchema: z.ZodType<
|
|
24
|
+
LinkedTaxStatusDetail,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
country: z.string().optional(),
|
|
29
|
+
transaction_tax_status: z.nullable(z.string()).optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"transaction_tax_status": "transactionTaxStatus",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type LinkedTaxStatusDetail$Outbound = {
|
|
38
|
+
country?: string | undefined;
|
|
39
|
+
transaction_tax_status?: string | null | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const LinkedTaxStatusDetail$outboundSchema: z.ZodType<
|
|
44
|
+
LinkedTaxStatusDetail$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
LinkedTaxStatusDetail
|
|
47
|
+
> = z.object({
|
|
48
|
+
country: z.string().optional(),
|
|
49
|
+
transactionTaxStatus: z.nullable(z.string()).optional(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
transactionTaxStatus: "transaction_tax_status",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export namespace LinkedTaxStatusDetail$ {
|
|
61
|
+
/** @deprecated use `LinkedTaxStatusDetail$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = LinkedTaxStatusDetail$inboundSchema;
|
|
63
|
+
/** @deprecated use `LinkedTaxStatusDetail$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema = LinkedTaxStatusDetail$outboundSchema;
|
|
65
|
+
/** @deprecated use `LinkedTaxStatusDetail$Outbound` instead. */
|
|
66
|
+
export type Outbound = LinkedTaxStatusDetail$Outbound;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function linkedTaxStatusDetailToJSON(
|
|
70
|
+
linkedTaxStatusDetail: LinkedTaxStatusDetail,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
LinkedTaxStatusDetail$outboundSchema.parse(linkedTaxStatusDetail),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function linkedTaxStatusDetailFromJSON(
|
|
78
|
+
jsonString: string,
|
|
79
|
+
): SafeParseResult<LinkedTaxStatusDetail, SDKValidationError> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) => LinkedTaxStatusDetail$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
+
`Failed to parse 'LinkedTaxStatusDetail' from JSON`,
|
|
84
|
+
);
|
|
85
|
+
}
|
|
@@ -49,6 +49,12 @@ import {
|
|
|
49
49
|
LinkedLedgerAccountInput$Outbound,
|
|
50
50
|
LinkedLedgerAccountInput$outboundSchema,
|
|
51
51
|
} from "./linkedledgeraccountinput.js";
|
|
52
|
+
import {
|
|
53
|
+
LinkedTaxDetail,
|
|
54
|
+
LinkedTaxDetail$inboundSchema,
|
|
55
|
+
LinkedTaxDetail$Outbound,
|
|
56
|
+
LinkedTaxDetail$outboundSchema,
|
|
57
|
+
} from "./linkedtaxdetail.js";
|
|
52
58
|
import {
|
|
53
59
|
LinkedTaxRate,
|
|
54
60
|
LinkedTaxRate$inboundSchema,
|
|
@@ -61,6 +67,12 @@ import {
|
|
|
61
67
|
LinkedTaxRateInput$Outbound,
|
|
62
68
|
LinkedTaxRateInput$outboundSchema,
|
|
63
69
|
} from "./linkedtaxrateinput.js";
|
|
70
|
+
import {
|
|
71
|
+
LinkedTaxStatusDetail,
|
|
72
|
+
LinkedTaxStatusDetail$inboundSchema,
|
|
73
|
+
LinkedTaxStatusDetail$Outbound,
|
|
74
|
+
LinkedTaxStatusDetail$outboundSchema,
|
|
75
|
+
} from "./linkedtaxstatusdetail.js";
|
|
64
76
|
import {
|
|
65
77
|
PassThroughBody,
|
|
66
78
|
PassThroughBody$inboundSchema,
|
|
@@ -177,11 +189,21 @@ export type Supplier = {
|
|
|
177
189
|
* The channel through which the transaction is processed.
|
|
178
190
|
*/
|
|
179
191
|
channel?: string | null | undefined;
|
|
192
|
+
/**
|
|
193
|
+
* Method of issuance of the purchase order for the supplier
|
|
194
|
+
*/
|
|
195
|
+
issuedMethod?: string | null | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* Email address of the person who issued the purchase order for the supplier
|
|
198
|
+
*/
|
|
199
|
+
issuedEmail?: string | null | undefined;
|
|
180
200
|
/**
|
|
181
201
|
* When custom mappings are configured on the resource, the result is included here.
|
|
182
202
|
*/
|
|
183
203
|
customMappings?: { [k: string]: any } | null | undefined;
|
|
184
204
|
customFields?: Array<CustomField> | undefined;
|
|
205
|
+
taxDetails?: Array<LinkedTaxDetail | null> | undefined;
|
|
206
|
+
taxStatusDetails?: Array<LinkedTaxStatusDetail | null> | undefined;
|
|
185
207
|
/**
|
|
186
208
|
* The user who last updated the object.
|
|
187
209
|
*/
|
|
@@ -210,6 +232,10 @@ export type Supplier = {
|
|
|
210
232
|
* The subsidiary the supplier belongs to.
|
|
211
233
|
*/
|
|
212
234
|
subsidiaryId?: string | undefined;
|
|
235
|
+
/**
|
|
236
|
+
* The integration system the supplier belongs to.
|
|
237
|
+
*/
|
|
238
|
+
integrationSystemId?: string | undefined;
|
|
213
239
|
};
|
|
214
240
|
|
|
215
241
|
export type SupplierInput = {
|
|
@@ -286,7 +312,17 @@ export type SupplierInput = {
|
|
|
286
312
|
* The channel through which the transaction is processed.
|
|
287
313
|
*/
|
|
288
314
|
channel?: string | null | undefined;
|
|
315
|
+
/**
|
|
316
|
+
* Method of issuance of the purchase order for the supplier
|
|
317
|
+
*/
|
|
318
|
+
issuedMethod?: string | null | undefined;
|
|
319
|
+
/**
|
|
320
|
+
* Email address of the person who issued the purchase order for the supplier
|
|
321
|
+
*/
|
|
322
|
+
issuedEmail?: string | null | undefined;
|
|
289
323
|
customFields?: Array<CustomField> | undefined;
|
|
324
|
+
taxDetails?: Array<LinkedTaxDetail | null> | undefined;
|
|
325
|
+
taxStatusDetails?: Array<LinkedTaxStatusDetail | null> | undefined;
|
|
290
326
|
/**
|
|
291
327
|
* 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.
|
|
292
328
|
*/
|
|
@@ -299,6 +335,10 @@ export type SupplierInput = {
|
|
|
299
335
|
* The subsidiary the supplier belongs to.
|
|
300
336
|
*/
|
|
301
337
|
subsidiaryId?: string | undefined;
|
|
338
|
+
/**
|
|
339
|
+
* The integration system the supplier belongs to.
|
|
340
|
+
*/
|
|
341
|
+
integrationSystemId?: string | undefined;
|
|
302
342
|
};
|
|
303
343
|
|
|
304
344
|
/** @internal */
|
|
@@ -355,8 +395,13 @@ export const Supplier$inboundSchema: z.ZodType<
|
|
|
355
395
|
payment_method: z.nullable(z.string()).optional(),
|
|
356
396
|
terms: z.nullable(z.string()).optional(),
|
|
357
397
|
channel: z.nullable(z.string()).optional(),
|
|
398
|
+
issued_method: z.nullable(z.string()).optional(),
|
|
399
|
+
issued_email: z.nullable(z.string()).optional(),
|
|
358
400
|
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
359
401
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
402
|
+
tax_details: z.array(z.nullable(LinkedTaxDetail$inboundSchema)).optional(),
|
|
403
|
+
tax_status_details: z.array(z.nullable(LinkedTaxStatusDetail$inboundSchema))
|
|
404
|
+
.optional(),
|
|
360
405
|
updated_by: z.nullable(z.string()).optional(),
|
|
361
406
|
created_by: z.nullable(z.string()).optional(),
|
|
362
407
|
updated_at: z.nullable(
|
|
@@ -368,6 +413,7 @@ export const Supplier$inboundSchema: z.ZodType<
|
|
|
368
413
|
row_version: z.nullable(z.string()).optional(),
|
|
369
414
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
370
415
|
subsidiary_id: z.string().optional(),
|
|
416
|
+
integration_system_id: z.string().optional(),
|
|
371
417
|
}).transform((v) => {
|
|
372
418
|
return remap$(v, {
|
|
373
419
|
"downstream_id": "downstreamId",
|
|
@@ -384,8 +430,12 @@ export const Supplier$inboundSchema: z.ZodType<
|
|
|
384
430
|
"tax_rate": "taxRate",
|
|
385
431
|
"tax_number": "taxNumber",
|
|
386
432
|
"payment_method": "paymentMethod",
|
|
433
|
+
"issued_method": "issuedMethod",
|
|
434
|
+
"issued_email": "issuedEmail",
|
|
387
435
|
"custom_mappings": "customMappings",
|
|
388
436
|
"custom_fields": "customFields",
|
|
437
|
+
"tax_details": "taxDetails",
|
|
438
|
+
"tax_status_details": "taxStatusDetails",
|
|
389
439
|
"updated_by": "updatedBy",
|
|
390
440
|
"created_by": "createdBy",
|
|
391
441
|
"updated_at": "updatedAt",
|
|
@@ -393,6 +443,7 @@ export const Supplier$inboundSchema: z.ZodType<
|
|
|
393
443
|
"row_version": "rowVersion",
|
|
394
444
|
"pass_through": "passThrough",
|
|
395
445
|
"subsidiary_id": "subsidiaryId",
|
|
446
|
+
"integration_system_id": "integrationSystemId",
|
|
396
447
|
});
|
|
397
448
|
});
|
|
398
449
|
|
|
@@ -425,8 +476,12 @@ export type Supplier$Outbound = {
|
|
|
425
476
|
payment_method?: string | null | undefined;
|
|
426
477
|
terms?: string | null | undefined;
|
|
427
478
|
channel?: string | null | undefined;
|
|
479
|
+
issued_method?: string | null | undefined;
|
|
480
|
+
issued_email?: string | null | undefined;
|
|
428
481
|
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
429
482
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
483
|
+
tax_details?: Array<LinkedTaxDetail$Outbound | null> | undefined;
|
|
484
|
+
tax_status_details?: Array<LinkedTaxStatusDetail$Outbound | null> | undefined;
|
|
430
485
|
updated_by?: string | null | undefined;
|
|
431
486
|
created_by?: string | null | undefined;
|
|
432
487
|
updated_at?: string | null | undefined;
|
|
@@ -434,6 +489,7 @@ export type Supplier$Outbound = {
|
|
|
434
489
|
row_version?: string | null | undefined;
|
|
435
490
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
436
491
|
subsidiary_id?: string | undefined;
|
|
492
|
+
integration_system_id?: string | undefined;
|
|
437
493
|
};
|
|
438
494
|
|
|
439
495
|
/** @internal */
|
|
@@ -469,8 +525,13 @@ export const Supplier$outboundSchema: z.ZodType<
|
|
|
469
525
|
paymentMethod: z.nullable(z.string()).optional(),
|
|
470
526
|
terms: z.nullable(z.string()).optional(),
|
|
471
527
|
channel: z.nullable(z.string()).optional(),
|
|
528
|
+
issuedMethod: z.nullable(z.string()).optional(),
|
|
529
|
+
issuedEmail: z.nullable(z.string()).optional(),
|
|
472
530
|
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
473
531
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
532
|
+
taxDetails: z.array(z.nullable(LinkedTaxDetail$outboundSchema)).optional(),
|
|
533
|
+
taxStatusDetails: z.array(z.nullable(LinkedTaxStatusDetail$outboundSchema))
|
|
534
|
+
.optional(),
|
|
474
535
|
updatedBy: z.nullable(z.string()).optional(),
|
|
475
536
|
createdBy: z.nullable(z.string()).optional(),
|
|
476
537
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -478,6 +539,7 @@ export const Supplier$outboundSchema: z.ZodType<
|
|
|
478
539
|
rowVersion: z.nullable(z.string()).optional(),
|
|
479
540
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
480
541
|
subsidiaryId: z.string().optional(),
|
|
542
|
+
integrationSystemId: z.string().optional(),
|
|
481
543
|
}).transform((v) => {
|
|
482
544
|
return remap$(v, {
|
|
483
545
|
downstreamId: "downstream_id",
|
|
@@ -494,8 +556,12 @@ export const Supplier$outboundSchema: z.ZodType<
|
|
|
494
556
|
taxRate: "tax_rate",
|
|
495
557
|
taxNumber: "tax_number",
|
|
496
558
|
paymentMethod: "payment_method",
|
|
559
|
+
issuedMethod: "issued_method",
|
|
560
|
+
issuedEmail: "issued_email",
|
|
497
561
|
customMappings: "custom_mappings",
|
|
498
562
|
customFields: "custom_fields",
|
|
563
|
+
taxDetails: "tax_details",
|
|
564
|
+
taxStatusDetails: "tax_status_details",
|
|
499
565
|
updatedBy: "updated_by",
|
|
500
566
|
createdBy: "created_by",
|
|
501
567
|
updatedAt: "updated_at",
|
|
@@ -503,6 +569,7 @@ export const Supplier$outboundSchema: z.ZodType<
|
|
|
503
569
|
rowVersion: "row_version",
|
|
504
570
|
passThrough: "pass_through",
|
|
505
571
|
subsidiaryId: "subsidiary_id",
|
|
572
|
+
integrationSystemId: "integration_system_id",
|
|
506
573
|
});
|
|
507
574
|
});
|
|
508
575
|
|
|
@@ -564,10 +631,16 @@ export const SupplierInput$inboundSchema: z.ZodType<
|
|
|
564
631
|
payment_method: z.nullable(z.string()).optional(),
|
|
565
632
|
terms: z.nullable(z.string()).optional(),
|
|
566
633
|
channel: z.nullable(z.string()).optional(),
|
|
634
|
+
issued_method: z.nullable(z.string()).optional(),
|
|
635
|
+
issued_email: z.nullable(z.string()).optional(),
|
|
567
636
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
637
|
+
tax_details: z.array(z.nullable(LinkedTaxDetail$inboundSchema)).optional(),
|
|
638
|
+
tax_status_details: z.array(z.nullable(LinkedTaxStatusDetail$inboundSchema))
|
|
639
|
+
.optional(),
|
|
568
640
|
row_version: z.nullable(z.string()).optional(),
|
|
569
641
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
570
642
|
subsidiary_id: z.string().optional(),
|
|
643
|
+
integration_system_id: z.string().optional(),
|
|
571
644
|
}).transform((v) => {
|
|
572
645
|
return remap$(v, {
|
|
573
646
|
"display_id": "displayId",
|
|
@@ -583,10 +656,15 @@ export const SupplierInput$inboundSchema: z.ZodType<
|
|
|
583
656
|
"tax_rate": "taxRate",
|
|
584
657
|
"tax_number": "taxNumber",
|
|
585
658
|
"payment_method": "paymentMethod",
|
|
659
|
+
"issued_method": "issuedMethod",
|
|
660
|
+
"issued_email": "issuedEmail",
|
|
586
661
|
"custom_fields": "customFields",
|
|
662
|
+
"tax_details": "taxDetails",
|
|
663
|
+
"tax_status_details": "taxStatusDetails",
|
|
587
664
|
"row_version": "rowVersion",
|
|
588
665
|
"pass_through": "passThrough",
|
|
589
666
|
"subsidiary_id": "subsidiaryId",
|
|
667
|
+
"integration_system_id": "integrationSystemId",
|
|
590
668
|
});
|
|
591
669
|
});
|
|
592
670
|
|
|
@@ -617,10 +695,15 @@ export type SupplierInput$Outbound = {
|
|
|
617
695
|
payment_method?: string | null | undefined;
|
|
618
696
|
terms?: string | null | undefined;
|
|
619
697
|
channel?: string | null | undefined;
|
|
698
|
+
issued_method?: string | null | undefined;
|
|
699
|
+
issued_email?: string | null | undefined;
|
|
620
700
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
701
|
+
tax_details?: Array<LinkedTaxDetail$Outbound | null> | undefined;
|
|
702
|
+
tax_status_details?: Array<LinkedTaxStatusDetail$Outbound | null> | undefined;
|
|
621
703
|
row_version?: string | null | undefined;
|
|
622
704
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
623
705
|
subsidiary_id?: string | undefined;
|
|
706
|
+
integration_system_id?: string | undefined;
|
|
624
707
|
};
|
|
625
708
|
|
|
626
709
|
/** @internal */
|
|
@@ -654,10 +737,16 @@ export const SupplierInput$outboundSchema: z.ZodType<
|
|
|
654
737
|
paymentMethod: z.nullable(z.string()).optional(),
|
|
655
738
|
terms: z.nullable(z.string()).optional(),
|
|
656
739
|
channel: z.nullable(z.string()).optional(),
|
|
740
|
+
issuedMethod: z.nullable(z.string()).optional(),
|
|
741
|
+
issuedEmail: z.nullable(z.string()).optional(),
|
|
657
742
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
743
|
+
taxDetails: z.array(z.nullable(LinkedTaxDetail$outboundSchema)).optional(),
|
|
744
|
+
taxStatusDetails: z.array(z.nullable(LinkedTaxStatusDetail$outboundSchema))
|
|
745
|
+
.optional(),
|
|
658
746
|
rowVersion: z.nullable(z.string()).optional(),
|
|
659
747
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
660
748
|
subsidiaryId: z.string().optional(),
|
|
749
|
+
integrationSystemId: z.string().optional(),
|
|
661
750
|
}).transform((v) => {
|
|
662
751
|
return remap$(v, {
|
|
663
752
|
displayId: "display_id",
|
|
@@ -673,10 +762,15 @@ export const SupplierInput$outboundSchema: z.ZodType<
|
|
|
673
762
|
taxRate: "tax_rate",
|
|
674
763
|
taxNumber: "tax_number",
|
|
675
764
|
paymentMethod: "payment_method",
|
|
765
|
+
issuedMethod: "issued_method",
|
|
766
|
+
issuedEmail: "issued_email",
|
|
676
767
|
customFields: "custom_fields",
|
|
768
|
+
taxDetails: "tax_details",
|
|
769
|
+
taxStatusDetails: "tax_status_details",
|
|
677
770
|
rowVersion: "row_version",
|
|
678
771
|
passThrough: "pass_through",
|
|
679
772
|
subsidiaryId: "subsidiary_id",
|
|
773
|
+
integrationSystemId: "integration_system_id",
|
|
680
774
|
});
|
|
681
775
|
});
|
|
682
776
|
|