@financeable/aggregation 0.8.0 → 0.8.3
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/README.md +1 -0
- package/docs/sdks/applications/README.md +2 -2
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/commercialsecuredloanassetattributes.d.ts +164 -18
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/commercialsecuredloanassetattributes.js +163 -13
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -1
- package/models/components/commercialsecuredloantypeofsale.d.ts +40 -0
- package/models/components/commercialsecuredloantypeofsale.d.ts.map +1 -0
- package/models/components/commercialsecuredloantypeofsale.js +64 -0
- package/models/components/commercialsecuredloantypeofsale.js.map +1 -0
- package/models/components/consumersecuredloanassetattributes.d.ts +164 -18
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +163 -13
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +199 -21
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +192 -25
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredloantypeofsale.d.ts +40 -0
- package/models/components/consumersecuredloantypeofsale.d.ts.map +1 -0
- package/models/components/consumersecuredloantypeofsale.js +64 -0
- package/models/components/consumersecuredloantypeofsale.js.map +1 -0
- package/models/components/customerattributes.d.ts +3 -0
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +3 -0
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/expenseattributes.d.ts +38 -0
- package/models/components/expenseattributes.d.ts.map +1 -0
- package/models/components/expenseattributes.js +78 -0
- package/models/components/expenseattributes.js.map +1 -0
- package/models/components/expensefrequency.d.ts +31 -0
- package/models/components/expensefrequency.d.ts.map +1 -0
- package/models/components/expensefrequency.js +61 -0
- package/models/components/expensefrequency.js.map +1 -0
- package/models/components/expensetype.d.ts +79 -0
- package/models/components/expensetype.d.ts.map +1 -0
- package/models/components/expensetype.js +78 -0
- package/models/components/expensetype.js.map +1 -0
- package/models/components/incomeattributes.d.ts +38 -0
- package/models/components/incomeattributes.d.ts.map +1 -0
- package/models/components/incomeattributes.js +78 -0
- package/models/components/incomeattributes.js.map +1 -0
- package/models/components/incomefrequency.d.ts +34 -0
- package/models/components/incomefrequency.d.ts.map +1 -0
- package/models/components/incomefrequency.js +62 -0
- package/models/components/incomefrequency.js.map +1 -0
- package/models/components/incometype.d.ts +49 -0
- package/models/components/incometype.d.ts.map +1 -0
- package/models/components/incometype.js +68 -0
- package/models/components/incometype.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/commercialsecuredloanassetattributes.ts +347 -30
- package/src/models/components/commercialsecuredloantypeofsale.ts +39 -0
- package/src/models/components/consumersecuredloanassetattributes.ts +474 -30
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +436 -35
- package/src/models/components/consumersecuredloantypeofsale.ts +39 -0
- package/src/models/components/customerattributes.ts +10 -0
- package/src/models/components/expenseattributes.ts +94 -0
- package/src/models/components/expensefrequency.ts +34 -0
- package/src/models/components/expensetype.ts +48 -0
- package/src/models/components/incomeattributes.ts +94 -0
- package/src/models/components/incomefrequency.ts +35 -0
- package/src/models/components/incometype.ts +38 -0
- package/src/models/components/index.ts +8 -0
|
@@ -12,6 +12,17 @@ import {
|
|
|
12
12
|
CommercialSecuredLoanAssetType$inboundSchema,
|
|
13
13
|
CommercialSecuredLoanAssetType$outboundSchema,
|
|
14
14
|
} from "./commercialsecuredloanassettype.js";
|
|
15
|
+
import {
|
|
16
|
+
CommercialSecuredLoanTypeOfSale,
|
|
17
|
+
CommercialSecuredLoanTypeOfSale$inboundSchema,
|
|
18
|
+
CommercialSecuredLoanTypeOfSale$outboundSchema,
|
|
19
|
+
} from "./commercialsecuredloantypeofsale.js";
|
|
20
|
+
import {
|
|
21
|
+
MonetaryQuantity,
|
|
22
|
+
MonetaryQuantity$inboundSchema,
|
|
23
|
+
MonetaryQuantity$Outbound,
|
|
24
|
+
MonetaryQuantity$outboundSchema,
|
|
25
|
+
} from "./monetaryquantity.js";
|
|
15
26
|
|
|
16
27
|
/**
|
|
17
28
|
* Condition of asset
|
|
@@ -26,6 +37,11 @@ export const Condition = {
|
|
|
26
37
|
*/
|
|
27
38
|
export type Condition = ClosedEnum<typeof Condition>;
|
|
28
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Value of asset as either MonetaryQuantity model (preferred) or floating point AUD dollars as string. The latter will be deprecated.
|
|
42
|
+
*/
|
|
43
|
+
export type AssetValue = MonetaryQuantity | string;
|
|
44
|
+
|
|
29
45
|
/**
|
|
30
46
|
* Registration state (or territory) of asset
|
|
31
47
|
*/
|
|
@@ -44,6 +60,31 @@ export const RegistrationState = {
|
|
|
44
60
|
*/
|
|
45
61
|
export type RegistrationState = ClosedEnum<typeof RegistrationState>;
|
|
46
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Type of sale. Must be a member of CommercialSecuredLoan.TypeOfSale, but will not throw for invalid string values (backwards-compatibility).
|
|
65
|
+
*/
|
|
66
|
+
export type TypeOfSale = string | CommercialSecuredLoanTypeOfSale;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Net asset value of asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
70
|
+
*/
|
|
71
|
+
export type NetAssetValue = MonetaryQuantity | string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Luxury GST, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
75
|
+
*/
|
|
76
|
+
export type LuxuryGst = MonetaryQuantity | string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Additional fees concerning the asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
80
|
+
*/
|
|
81
|
+
export type AdditionalFees = MonetaryQuantity | string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Additional taxes concerning the asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
85
|
+
*/
|
|
86
|
+
export type AdditionalTaxes = MonetaryQuantity | string;
|
|
87
|
+
|
|
47
88
|
/**
|
|
48
89
|
* Type of asset for secured commercial loans
|
|
49
90
|
*/
|
|
@@ -66,9 +107,9 @@ export type CommercialSecuredLoanAssetAttributes = {
|
|
|
66
107
|
*/
|
|
67
108
|
assetType: CommercialSecuredLoanAssetType;
|
|
68
109
|
/**
|
|
69
|
-
* Value of asset
|
|
110
|
+
* Value of asset as either MonetaryQuantity model (preferred) or floating point AUD dollars as string. The latter will be deprecated.
|
|
70
111
|
*/
|
|
71
|
-
assetValue
|
|
112
|
+
assetValue: MonetaryQuantity | string;
|
|
72
113
|
/**
|
|
73
114
|
* Make of asset
|
|
74
115
|
*/
|
|
@@ -118,33 +159,33 @@ export type CommercialSecuredLoanAssetAttributes = {
|
|
|
118
159
|
*/
|
|
119
160
|
privateSale?: boolean | undefined;
|
|
120
161
|
/**
|
|
121
|
-
* Type of sale
|
|
162
|
+
* Type of sale. Must be a member of CommercialSecuredLoan.TypeOfSale, but will not throw for invalid string values (backwards-compatibility).
|
|
122
163
|
*/
|
|
123
|
-
typeOfSale
|
|
164
|
+
typeOfSale: string | CommercialSecuredLoanTypeOfSale;
|
|
124
165
|
/**
|
|
125
166
|
* Description of asset
|
|
126
167
|
*/
|
|
127
168
|
description?: string | undefined;
|
|
128
169
|
/**
|
|
129
|
-
* Net asset value of asset, floating point value as string
|
|
170
|
+
* Net asset value of asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
130
171
|
*/
|
|
131
|
-
netAssetValue
|
|
172
|
+
netAssetValue: MonetaryQuantity | string;
|
|
132
173
|
/**
|
|
133
174
|
* Is this asset a luxury asset?
|
|
134
175
|
*/
|
|
135
176
|
isLuxury?: boolean | undefined;
|
|
136
177
|
/**
|
|
137
|
-
* Luxury GST, floating point value as string
|
|
178
|
+
* Luxury GST, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
138
179
|
*/
|
|
139
|
-
luxuryGst?: string | undefined;
|
|
180
|
+
luxuryGst?: MonetaryQuantity | string | undefined;
|
|
140
181
|
/**
|
|
141
|
-
* Additional fees concerning the asset, floating point value as string
|
|
182
|
+
* Additional fees concerning the asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
142
183
|
*/
|
|
143
|
-
additionalFees?: string | undefined;
|
|
184
|
+
additionalFees?: MonetaryQuantity | string | undefined;
|
|
144
185
|
/**
|
|
145
|
-
* Additional taxes concerning the asset, floating point value as string
|
|
186
|
+
* Additional taxes concerning the asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
146
187
|
*/
|
|
147
|
-
additionalTaxes?: string | undefined;
|
|
188
|
+
additionalTaxes?: MonetaryQuantity | string | undefined;
|
|
148
189
|
};
|
|
149
190
|
|
|
150
191
|
/** @internal */
|
|
@@ -166,6 +207,50 @@ export namespace Condition$ {
|
|
|
166
207
|
export const outboundSchema = Condition$outboundSchema;
|
|
167
208
|
}
|
|
168
209
|
|
|
210
|
+
/** @internal */
|
|
211
|
+
export const AssetValue$inboundSchema: z.ZodType<
|
|
212
|
+
AssetValue,
|
|
213
|
+
z.ZodTypeDef,
|
|
214
|
+
unknown
|
|
215
|
+
> = z.union([MonetaryQuantity$inboundSchema, z.string()]);
|
|
216
|
+
|
|
217
|
+
/** @internal */
|
|
218
|
+
export type AssetValue$Outbound = MonetaryQuantity$Outbound | string;
|
|
219
|
+
|
|
220
|
+
/** @internal */
|
|
221
|
+
export const AssetValue$outboundSchema: z.ZodType<
|
|
222
|
+
AssetValue$Outbound,
|
|
223
|
+
z.ZodTypeDef,
|
|
224
|
+
AssetValue
|
|
225
|
+
> = z.union([MonetaryQuantity$outboundSchema, z.string()]);
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @internal
|
|
229
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
230
|
+
*/
|
|
231
|
+
export namespace AssetValue$ {
|
|
232
|
+
/** @deprecated use `AssetValue$inboundSchema` instead. */
|
|
233
|
+
export const inboundSchema = AssetValue$inboundSchema;
|
|
234
|
+
/** @deprecated use `AssetValue$outboundSchema` instead. */
|
|
235
|
+
export const outboundSchema = AssetValue$outboundSchema;
|
|
236
|
+
/** @deprecated use `AssetValue$Outbound` instead. */
|
|
237
|
+
export type Outbound = AssetValue$Outbound;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export function assetValueToJSON(assetValue: AssetValue): string {
|
|
241
|
+
return JSON.stringify(AssetValue$outboundSchema.parse(assetValue));
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export function assetValueFromJSON(
|
|
245
|
+
jsonString: string,
|
|
246
|
+
): SafeParseResult<AssetValue, SDKValidationError> {
|
|
247
|
+
return safeParse(
|
|
248
|
+
jsonString,
|
|
249
|
+
(x) => AssetValue$inboundSchema.parse(JSON.parse(x)),
|
|
250
|
+
`Failed to parse 'AssetValue' from JSON`,
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
|
|
169
254
|
/** @internal */
|
|
170
255
|
export const RegistrationState$inboundSchema: z.ZodNativeEnum<
|
|
171
256
|
typeof RegistrationState
|
|
@@ -187,6 +272,228 @@ export namespace RegistrationState$ {
|
|
|
187
272
|
export const outboundSchema = RegistrationState$outboundSchema;
|
|
188
273
|
}
|
|
189
274
|
|
|
275
|
+
/** @internal */
|
|
276
|
+
export const TypeOfSale$inboundSchema: z.ZodType<
|
|
277
|
+
TypeOfSale,
|
|
278
|
+
z.ZodTypeDef,
|
|
279
|
+
unknown
|
|
280
|
+
> = z.union([z.string(), CommercialSecuredLoanTypeOfSale$inboundSchema]);
|
|
281
|
+
|
|
282
|
+
/** @internal */
|
|
283
|
+
export type TypeOfSale$Outbound = string | string;
|
|
284
|
+
|
|
285
|
+
/** @internal */
|
|
286
|
+
export const TypeOfSale$outboundSchema: z.ZodType<
|
|
287
|
+
TypeOfSale$Outbound,
|
|
288
|
+
z.ZodTypeDef,
|
|
289
|
+
TypeOfSale
|
|
290
|
+
> = z.union([z.string(), CommercialSecuredLoanTypeOfSale$outboundSchema]);
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* @internal
|
|
294
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
295
|
+
*/
|
|
296
|
+
export namespace TypeOfSale$ {
|
|
297
|
+
/** @deprecated use `TypeOfSale$inboundSchema` instead. */
|
|
298
|
+
export const inboundSchema = TypeOfSale$inboundSchema;
|
|
299
|
+
/** @deprecated use `TypeOfSale$outboundSchema` instead. */
|
|
300
|
+
export const outboundSchema = TypeOfSale$outboundSchema;
|
|
301
|
+
/** @deprecated use `TypeOfSale$Outbound` instead. */
|
|
302
|
+
export type Outbound = TypeOfSale$Outbound;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export function typeOfSaleToJSON(typeOfSale: TypeOfSale): string {
|
|
306
|
+
return JSON.stringify(TypeOfSale$outboundSchema.parse(typeOfSale));
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export function typeOfSaleFromJSON(
|
|
310
|
+
jsonString: string,
|
|
311
|
+
): SafeParseResult<TypeOfSale, SDKValidationError> {
|
|
312
|
+
return safeParse(
|
|
313
|
+
jsonString,
|
|
314
|
+
(x) => TypeOfSale$inboundSchema.parse(JSON.parse(x)),
|
|
315
|
+
`Failed to parse 'TypeOfSale' from JSON`,
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/** @internal */
|
|
320
|
+
export const NetAssetValue$inboundSchema: z.ZodType<
|
|
321
|
+
NetAssetValue,
|
|
322
|
+
z.ZodTypeDef,
|
|
323
|
+
unknown
|
|
324
|
+
> = z.union([MonetaryQuantity$inboundSchema, z.string()]);
|
|
325
|
+
|
|
326
|
+
/** @internal */
|
|
327
|
+
export type NetAssetValue$Outbound = MonetaryQuantity$Outbound | string;
|
|
328
|
+
|
|
329
|
+
/** @internal */
|
|
330
|
+
export const NetAssetValue$outboundSchema: z.ZodType<
|
|
331
|
+
NetAssetValue$Outbound,
|
|
332
|
+
z.ZodTypeDef,
|
|
333
|
+
NetAssetValue
|
|
334
|
+
> = z.union([MonetaryQuantity$outboundSchema, z.string()]);
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* @internal
|
|
338
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
339
|
+
*/
|
|
340
|
+
export namespace NetAssetValue$ {
|
|
341
|
+
/** @deprecated use `NetAssetValue$inboundSchema` instead. */
|
|
342
|
+
export const inboundSchema = NetAssetValue$inboundSchema;
|
|
343
|
+
/** @deprecated use `NetAssetValue$outboundSchema` instead. */
|
|
344
|
+
export const outboundSchema = NetAssetValue$outboundSchema;
|
|
345
|
+
/** @deprecated use `NetAssetValue$Outbound` instead. */
|
|
346
|
+
export type Outbound = NetAssetValue$Outbound;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export function netAssetValueToJSON(netAssetValue: NetAssetValue): string {
|
|
350
|
+
return JSON.stringify(NetAssetValue$outboundSchema.parse(netAssetValue));
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export function netAssetValueFromJSON(
|
|
354
|
+
jsonString: string,
|
|
355
|
+
): SafeParseResult<NetAssetValue, SDKValidationError> {
|
|
356
|
+
return safeParse(
|
|
357
|
+
jsonString,
|
|
358
|
+
(x) => NetAssetValue$inboundSchema.parse(JSON.parse(x)),
|
|
359
|
+
`Failed to parse 'NetAssetValue' from JSON`,
|
|
360
|
+
);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/** @internal */
|
|
364
|
+
export const LuxuryGst$inboundSchema: z.ZodType<
|
|
365
|
+
LuxuryGst,
|
|
366
|
+
z.ZodTypeDef,
|
|
367
|
+
unknown
|
|
368
|
+
> = z.union([MonetaryQuantity$inboundSchema, z.string()]);
|
|
369
|
+
|
|
370
|
+
/** @internal */
|
|
371
|
+
export type LuxuryGst$Outbound = MonetaryQuantity$Outbound | string;
|
|
372
|
+
|
|
373
|
+
/** @internal */
|
|
374
|
+
export const LuxuryGst$outboundSchema: z.ZodType<
|
|
375
|
+
LuxuryGst$Outbound,
|
|
376
|
+
z.ZodTypeDef,
|
|
377
|
+
LuxuryGst
|
|
378
|
+
> = z.union([MonetaryQuantity$outboundSchema, z.string()]);
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* @internal
|
|
382
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
383
|
+
*/
|
|
384
|
+
export namespace LuxuryGst$ {
|
|
385
|
+
/** @deprecated use `LuxuryGst$inboundSchema` instead. */
|
|
386
|
+
export const inboundSchema = LuxuryGst$inboundSchema;
|
|
387
|
+
/** @deprecated use `LuxuryGst$outboundSchema` instead. */
|
|
388
|
+
export const outboundSchema = LuxuryGst$outboundSchema;
|
|
389
|
+
/** @deprecated use `LuxuryGst$Outbound` instead. */
|
|
390
|
+
export type Outbound = LuxuryGst$Outbound;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export function luxuryGstToJSON(luxuryGst: LuxuryGst): string {
|
|
394
|
+
return JSON.stringify(LuxuryGst$outboundSchema.parse(luxuryGst));
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export function luxuryGstFromJSON(
|
|
398
|
+
jsonString: string,
|
|
399
|
+
): SafeParseResult<LuxuryGst, SDKValidationError> {
|
|
400
|
+
return safeParse(
|
|
401
|
+
jsonString,
|
|
402
|
+
(x) => LuxuryGst$inboundSchema.parse(JSON.parse(x)),
|
|
403
|
+
`Failed to parse 'LuxuryGst' from JSON`,
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/** @internal */
|
|
408
|
+
export const AdditionalFees$inboundSchema: z.ZodType<
|
|
409
|
+
AdditionalFees,
|
|
410
|
+
z.ZodTypeDef,
|
|
411
|
+
unknown
|
|
412
|
+
> = z.union([MonetaryQuantity$inboundSchema, z.string()]);
|
|
413
|
+
|
|
414
|
+
/** @internal */
|
|
415
|
+
export type AdditionalFees$Outbound = MonetaryQuantity$Outbound | string;
|
|
416
|
+
|
|
417
|
+
/** @internal */
|
|
418
|
+
export const AdditionalFees$outboundSchema: z.ZodType<
|
|
419
|
+
AdditionalFees$Outbound,
|
|
420
|
+
z.ZodTypeDef,
|
|
421
|
+
AdditionalFees
|
|
422
|
+
> = z.union([MonetaryQuantity$outboundSchema, z.string()]);
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @internal
|
|
426
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
427
|
+
*/
|
|
428
|
+
export namespace AdditionalFees$ {
|
|
429
|
+
/** @deprecated use `AdditionalFees$inboundSchema` instead. */
|
|
430
|
+
export const inboundSchema = AdditionalFees$inboundSchema;
|
|
431
|
+
/** @deprecated use `AdditionalFees$outboundSchema` instead. */
|
|
432
|
+
export const outboundSchema = AdditionalFees$outboundSchema;
|
|
433
|
+
/** @deprecated use `AdditionalFees$Outbound` instead. */
|
|
434
|
+
export type Outbound = AdditionalFees$Outbound;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export function additionalFeesToJSON(additionalFees: AdditionalFees): string {
|
|
438
|
+
return JSON.stringify(AdditionalFees$outboundSchema.parse(additionalFees));
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export function additionalFeesFromJSON(
|
|
442
|
+
jsonString: string,
|
|
443
|
+
): SafeParseResult<AdditionalFees, SDKValidationError> {
|
|
444
|
+
return safeParse(
|
|
445
|
+
jsonString,
|
|
446
|
+
(x) => AdditionalFees$inboundSchema.parse(JSON.parse(x)),
|
|
447
|
+
`Failed to parse 'AdditionalFees' from JSON`,
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/** @internal */
|
|
452
|
+
export const AdditionalTaxes$inboundSchema: z.ZodType<
|
|
453
|
+
AdditionalTaxes,
|
|
454
|
+
z.ZodTypeDef,
|
|
455
|
+
unknown
|
|
456
|
+
> = z.union([MonetaryQuantity$inboundSchema, z.string()]);
|
|
457
|
+
|
|
458
|
+
/** @internal */
|
|
459
|
+
export type AdditionalTaxes$Outbound = MonetaryQuantity$Outbound | string;
|
|
460
|
+
|
|
461
|
+
/** @internal */
|
|
462
|
+
export const AdditionalTaxes$outboundSchema: z.ZodType<
|
|
463
|
+
AdditionalTaxes$Outbound,
|
|
464
|
+
z.ZodTypeDef,
|
|
465
|
+
AdditionalTaxes
|
|
466
|
+
> = z.union([MonetaryQuantity$outboundSchema, z.string()]);
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* @internal
|
|
470
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
471
|
+
*/
|
|
472
|
+
export namespace AdditionalTaxes$ {
|
|
473
|
+
/** @deprecated use `AdditionalTaxes$inboundSchema` instead. */
|
|
474
|
+
export const inboundSchema = AdditionalTaxes$inboundSchema;
|
|
475
|
+
/** @deprecated use `AdditionalTaxes$outboundSchema` instead. */
|
|
476
|
+
export const outboundSchema = AdditionalTaxes$outboundSchema;
|
|
477
|
+
/** @deprecated use `AdditionalTaxes$Outbound` instead. */
|
|
478
|
+
export type Outbound = AdditionalTaxes$Outbound;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
export function additionalTaxesToJSON(
|
|
482
|
+
additionalTaxes: AdditionalTaxes,
|
|
483
|
+
): string {
|
|
484
|
+
return JSON.stringify(AdditionalTaxes$outboundSchema.parse(additionalTaxes));
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export function additionalTaxesFromJSON(
|
|
488
|
+
jsonString: string,
|
|
489
|
+
): SafeParseResult<AdditionalTaxes, SDKValidationError> {
|
|
490
|
+
return safeParse(
|
|
491
|
+
jsonString,
|
|
492
|
+
(x) => AdditionalTaxes$inboundSchema.parse(JSON.parse(x)),
|
|
493
|
+
`Failed to parse 'AdditionalTaxes' from JSON`,
|
|
494
|
+
);
|
|
495
|
+
}
|
|
496
|
+
|
|
190
497
|
/** @internal */
|
|
191
498
|
export const CommercialSecuredLoanAssetAttributes$inboundSchema: z.ZodType<
|
|
192
499
|
CommercialSecuredLoanAssetAttributes,
|
|
@@ -198,7 +505,7 @@ export const CommercialSecuredLoanAssetAttributes$inboundSchema: z.ZodType<
|
|
|
198
505
|
ageOfAssetAtEnd: z.number().int().optional(),
|
|
199
506
|
condition: Condition$inboundSchema.optional(),
|
|
200
507
|
assetType: CommercialSecuredLoanAssetType$inboundSchema,
|
|
201
|
-
assetValue: z.
|
|
508
|
+
assetValue: z.union([MonetaryQuantity$inboundSchema, z.string()]),
|
|
202
509
|
make: z.string().optional(),
|
|
203
510
|
assetModel: z.string().optional(),
|
|
204
511
|
registrationNumber: z.string().optional(),
|
|
@@ -211,13 +518,18 @@ export const CommercialSecuredLoanAssetAttributes$inboundSchema: z.ZodType<
|
|
|
211
518
|
supplierContactName: z.string().optional(),
|
|
212
519
|
supplierEmail: z.string().optional(),
|
|
213
520
|
privateSale: z.boolean().optional(),
|
|
214
|
-
typeOfSale: z.
|
|
521
|
+
typeOfSale: z.union([
|
|
522
|
+
z.string(),
|
|
523
|
+
CommercialSecuredLoanTypeOfSale$inboundSchema,
|
|
524
|
+
]),
|
|
215
525
|
description: z.string().optional(),
|
|
216
|
-
netAssetValue: z.
|
|
526
|
+
netAssetValue: z.union([MonetaryQuantity$inboundSchema, z.string()]),
|
|
217
527
|
isLuxury: z.boolean().optional(),
|
|
218
|
-
luxuryGst: z.string().optional(),
|
|
219
|
-
additionalFees: z.
|
|
220
|
-
|
|
528
|
+
luxuryGst: z.union([MonetaryQuantity$inboundSchema, z.string()]).optional(),
|
|
529
|
+
additionalFees: z.union([MonetaryQuantity$inboundSchema, z.string()])
|
|
530
|
+
.optional(),
|
|
531
|
+
additionalTaxes: z.union([MonetaryQuantity$inboundSchema, z.string()])
|
|
532
|
+
.optional(),
|
|
221
533
|
});
|
|
222
534
|
|
|
223
535
|
/** @internal */
|
|
@@ -227,7 +539,7 @@ export type CommercialSecuredLoanAssetAttributes$Outbound = {
|
|
|
227
539
|
ageOfAssetAtEnd?: number | undefined;
|
|
228
540
|
condition?: string | undefined;
|
|
229
541
|
assetType: string;
|
|
230
|
-
assetValue
|
|
542
|
+
assetValue: MonetaryQuantity$Outbound | string;
|
|
231
543
|
make?: string | undefined;
|
|
232
544
|
assetModel?: string | undefined;
|
|
233
545
|
registrationNumber?: string | undefined;
|
|
@@ -240,13 +552,13 @@ export type CommercialSecuredLoanAssetAttributes$Outbound = {
|
|
|
240
552
|
supplierContactName?: string | undefined;
|
|
241
553
|
supplierEmail?: string | undefined;
|
|
242
554
|
privateSale?: boolean | undefined;
|
|
243
|
-
typeOfSale
|
|
555
|
+
typeOfSale: string | string;
|
|
244
556
|
description?: string | undefined;
|
|
245
|
-
netAssetValue
|
|
557
|
+
netAssetValue: MonetaryQuantity$Outbound | string;
|
|
246
558
|
isLuxury?: boolean | undefined;
|
|
247
|
-
luxuryGst?: string | undefined;
|
|
248
|
-
additionalFees?: string | undefined;
|
|
249
|
-
additionalTaxes?: string | undefined;
|
|
559
|
+
luxuryGst?: MonetaryQuantity$Outbound | string | undefined;
|
|
560
|
+
additionalFees?: MonetaryQuantity$Outbound | string | undefined;
|
|
561
|
+
additionalTaxes?: MonetaryQuantity$Outbound | string | undefined;
|
|
250
562
|
};
|
|
251
563
|
|
|
252
564
|
/** @internal */
|
|
@@ -260,7 +572,7 @@ export const CommercialSecuredLoanAssetAttributes$outboundSchema: z.ZodType<
|
|
|
260
572
|
ageOfAssetAtEnd: z.number().int().optional(),
|
|
261
573
|
condition: Condition$outboundSchema.optional(),
|
|
262
574
|
assetType: CommercialSecuredLoanAssetType$outboundSchema,
|
|
263
|
-
assetValue: z.
|
|
575
|
+
assetValue: z.union([MonetaryQuantity$outboundSchema, z.string()]),
|
|
264
576
|
make: z.string().optional(),
|
|
265
577
|
assetModel: z.string().optional(),
|
|
266
578
|
registrationNumber: z.string().optional(),
|
|
@@ -273,13 +585,18 @@ export const CommercialSecuredLoanAssetAttributes$outboundSchema: z.ZodType<
|
|
|
273
585
|
supplierContactName: z.string().optional(),
|
|
274
586
|
supplierEmail: z.string().optional(),
|
|
275
587
|
privateSale: z.boolean().optional(),
|
|
276
|
-
typeOfSale: z.
|
|
588
|
+
typeOfSale: z.union([
|
|
589
|
+
z.string(),
|
|
590
|
+
CommercialSecuredLoanTypeOfSale$outboundSchema,
|
|
591
|
+
]),
|
|
277
592
|
description: z.string().optional(),
|
|
278
|
-
netAssetValue: z.
|
|
593
|
+
netAssetValue: z.union([MonetaryQuantity$outboundSchema, z.string()]),
|
|
279
594
|
isLuxury: z.boolean().optional(),
|
|
280
|
-
luxuryGst: z.string().optional(),
|
|
281
|
-
additionalFees: z.
|
|
282
|
-
|
|
595
|
+
luxuryGst: z.union([MonetaryQuantity$outboundSchema, z.string()]).optional(),
|
|
596
|
+
additionalFees: z.union([MonetaryQuantity$outboundSchema, z.string()])
|
|
597
|
+
.optional(),
|
|
598
|
+
additionalTaxes: z.union([MonetaryQuantity$outboundSchema, z.string()])
|
|
599
|
+
.optional(),
|
|
283
600
|
});
|
|
284
601
|
|
|
285
602
|
/**
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const CommercialSecuredLoanTypeOfSale = {
|
|
9
|
+
AuthorisedSeller: "AUTHORISED_SELLER",
|
|
10
|
+
AuthorisedElectricVehicleSeller: "AUTHORISED_ELECTRIC_VEHICLE_SELLER",
|
|
11
|
+
PrivateSale: "PRIVATE_SALE",
|
|
12
|
+
MidTermRefinance: "MID-TERM_REFINANCE",
|
|
13
|
+
BalloonOrResdiualRefinance: "BALLOON_OR_RESDIUAL_REFINANCE",
|
|
14
|
+
SaleAndBuybackOrEquity: "SALE_AND_BUYBACK_OR_EQUITY",
|
|
15
|
+
} as const;
|
|
16
|
+
export type CommercialSecuredLoanTypeOfSale = ClosedEnum<
|
|
17
|
+
typeof CommercialSecuredLoanTypeOfSale
|
|
18
|
+
>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const CommercialSecuredLoanTypeOfSale$inboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof CommercialSecuredLoanTypeOfSale
|
|
23
|
+
> = z.nativeEnum(CommercialSecuredLoanTypeOfSale);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const CommercialSecuredLoanTypeOfSale$outboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof CommercialSecuredLoanTypeOfSale
|
|
28
|
+
> = CommercialSecuredLoanTypeOfSale$inboundSchema;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export namespace CommercialSecuredLoanTypeOfSale$ {
|
|
35
|
+
/** @deprecated use `CommercialSecuredLoanTypeOfSale$inboundSchema` instead. */
|
|
36
|
+
export const inboundSchema = CommercialSecuredLoanTypeOfSale$inboundSchema;
|
|
37
|
+
/** @deprecated use `CommercialSecuredLoanTypeOfSale$outboundSchema` instead. */
|
|
38
|
+
export const outboundSchema = CommercialSecuredLoanTypeOfSale$outboundSchema;
|
|
39
|
+
}
|