@financeable/aggregation 0.7.4 → 0.8.1
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +192 -14
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +186 -19
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredloanassetattributes.d.ts +136 -15
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +131 -11
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +370 -14
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +358 -20
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/currencycodeiso4217.d.ts +25 -0
- package/models/components/currencycodeiso4217.d.ts.map +1 -0
- package/models/components/currencycodeiso4217.js +59 -0
- package/models/components/currencycodeiso4217.js.map +1 -0
- package/models/components/customerassetattributes.d.ts +37 -0
- package/models/components/customerassetattributes.d.ts.map +1 -0
- package/models/components/customerassetattributes.js +77 -0
- package/models/components/customerassetattributes.js.map +1 -0
- package/models/components/customerassettype.d.ts +46 -0
- package/models/components/customerassettype.d.ts.map +1 -0
- package/models/components/customerassettype.js +66 -0
- package/models/components/customerassettype.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/customerliabilityattributes.d.ts +46 -0
- package/models/components/customerliabilityattributes.d.ts.map +1 -0
- package/models/components/customerliabilityattributes.js +88 -0
- package/models/components/customerliabilityattributes.js.map +1 -0
- package/models/components/customerliabilityrepaymentfrequency.d.ts +31 -0
- package/models/components/customerliabilityrepaymentfrequency.d.ts.map +1 -0
- package/models/components/customerliabilityrepaymentfrequency.js +61 -0
- package/models/components/customerliabilityrepaymentfrequency.js.map +1 -0
- package/models/components/customerliabilitytype.d.ts +40 -0
- package/models/components/customerliabilitytype.d.ts.map +1 -0
- package/models/components/customerliabilitytype.js +64 -0
- package/models/components/customerliabilitytype.js.map +1 -0
- 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 +14 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -0
- package/models/components/index.js.map +1 -1
- package/models/components/loandetailsattributes.d.ts +252 -30
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +266 -19
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/monetaryquantity.d.ts +63 -0
- package/models/components/monetaryquantity.d.ts.map +1 -0
- package/models/components/monetaryquantity.js +93 -0
- package/models/components/monetaryquantity.js.map +1 -0
- package/models/components/percentagequantity.d.ts +57 -0
- package/models/components/percentagequantity.d.ts.map +1 -0
- package/models/components/percentagequantity.js +89 -0
- package/models/components/percentagequantity.js.map +1 -0
- package/models/operations/createapplication.d.ts +102 -4
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +107 -1
- package/models/operations/createapplication.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +426 -25
- package/src/models/components/consumersecuredloanassetattributes.ts +282 -25
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +895 -40
- package/src/models/components/currencycodeiso4217.ts +32 -0
- package/src/models/components/customerassetattributes.ts +89 -0
- package/src/models/components/customerassettype.ts +39 -0
- package/src/models/components/customerattributes.ts +10 -0
- package/src/models/components/customerliabilityattributes.ts +114 -0
- package/src/models/components/customerliabilityrepaymentfrequency.ts +38 -0
- package/src/models/components/customerliabilitytype.ts +37 -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 +14 -0
- package/src/models/components/loandetailsattributes.ts +537 -48
- package/src/models/components/monetaryquantity.ts +110 -0
- package/src/models/components/percentagequantity.ts +102 -0
- package/src/models/operations/createapplication.ts +191 -3
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
ConsumerSecuredLoanAssetType$inboundSchema,
|
|
13
13
|
ConsumerSecuredLoanAssetType$outboundSchema,
|
|
14
14
|
} from "./consumersecuredloanassettype.js";
|
|
15
|
+
import {
|
|
16
|
+
MonetaryQuantity,
|
|
17
|
+
MonetaryQuantity$inboundSchema,
|
|
18
|
+
MonetaryQuantity$Outbound,
|
|
19
|
+
MonetaryQuantity$outboundSchema,
|
|
20
|
+
} from "./monetaryquantity.js";
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* Condition of asset
|
|
@@ -28,6 +34,11 @@ export type ConsumerSecuredLoanAssetAttributesCondition = ClosedEnum<
|
|
|
28
34
|
typeof ConsumerSecuredLoanAssetAttributesCondition
|
|
29
35
|
>;
|
|
30
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Value of asset as either MonetaryQuantity model (preferred) or floating point AUD dollars as string. The latter will be deprecated.
|
|
39
|
+
*/
|
|
40
|
+
export type AssetValue = MonetaryQuantity | string;
|
|
41
|
+
|
|
31
42
|
/**
|
|
32
43
|
* Registration state (or territory) of asset
|
|
33
44
|
*/
|
|
@@ -48,6 +59,26 @@ export type ConsumerSecuredLoanAssetAttributesRegistrationState = ClosedEnum<
|
|
|
48
59
|
typeof ConsumerSecuredLoanAssetAttributesRegistrationState
|
|
49
60
|
>;
|
|
50
61
|
|
|
62
|
+
/**
|
|
63
|
+
* Net asset value of asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
64
|
+
*/
|
|
65
|
+
export type NetAssetValue = MonetaryQuantity | string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Luxury GST, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
69
|
+
*/
|
|
70
|
+
export type LuxuryGst = MonetaryQuantity | string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Additional fees concerning the asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
74
|
+
*/
|
|
75
|
+
export type AdditionalFees = MonetaryQuantity | string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Additional taxes concerning the asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
79
|
+
*/
|
|
80
|
+
export type AdditionalTaxes = MonetaryQuantity | string;
|
|
81
|
+
|
|
51
82
|
/**
|
|
52
83
|
* The asset to be obtained by the customer, using the proposed loan financing.
|
|
53
84
|
*/
|
|
@@ -70,9 +101,9 @@ export type ConsumerSecuredLoanAssetAttributes = {
|
|
|
70
101
|
*/
|
|
71
102
|
assetType: ConsumerSecuredLoanAssetType;
|
|
72
103
|
/**
|
|
73
|
-
* Value of asset
|
|
104
|
+
* Value of asset as either MonetaryQuantity model (preferred) or floating point AUD dollars as string. The latter will be deprecated.
|
|
74
105
|
*/
|
|
75
|
-
assetValue: string;
|
|
106
|
+
assetValue: MonetaryQuantity | string;
|
|
76
107
|
/**
|
|
77
108
|
* Make of asset
|
|
78
109
|
*/
|
|
@@ -132,25 +163,25 @@ export type ConsumerSecuredLoanAssetAttributes = {
|
|
|
132
163
|
*/
|
|
133
164
|
description: string;
|
|
134
165
|
/**
|
|
135
|
-
* Net asset value of asset, floating point value as string
|
|
166
|
+
* Net asset value of asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
136
167
|
*/
|
|
137
|
-
netAssetValue: string;
|
|
168
|
+
netAssetValue: MonetaryQuantity | string;
|
|
138
169
|
/**
|
|
139
170
|
* Is this asset a luxury asset?
|
|
140
171
|
*/
|
|
141
172
|
isLuxury: boolean;
|
|
142
173
|
/**
|
|
143
|
-
* Luxury GST, floating point value as string
|
|
174
|
+
* Luxury GST, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
144
175
|
*/
|
|
145
|
-
luxuryGst?: string | undefined;
|
|
176
|
+
luxuryGst?: MonetaryQuantity | string | undefined;
|
|
146
177
|
/**
|
|
147
|
-
* Additional fees concerning the asset, floating point value as string
|
|
178
|
+
* Additional fees concerning the asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
148
179
|
*/
|
|
149
|
-
additionalFees?: string | undefined;
|
|
180
|
+
additionalFees?: MonetaryQuantity | string | undefined;
|
|
150
181
|
/**
|
|
151
|
-
* Additional taxes concerning the asset, floating point value as string
|
|
182
|
+
* Additional taxes concerning the asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
152
183
|
*/
|
|
153
|
-
additionalTaxes?: string | undefined;
|
|
184
|
+
additionalTaxes?: MonetaryQuantity | string | undefined;
|
|
154
185
|
};
|
|
155
186
|
|
|
156
187
|
/** @internal */
|
|
@@ -176,6 +207,50 @@ export namespace ConsumerSecuredLoanAssetAttributesCondition$ {
|
|
|
176
207
|
ConsumerSecuredLoanAssetAttributesCondition$outboundSchema;
|
|
177
208
|
}
|
|
178
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
|
+
|
|
179
254
|
/** @internal */
|
|
180
255
|
export const ConsumerSecuredLoanAssetAttributesRegistrationState$inboundSchema:
|
|
181
256
|
z.ZodNativeEnum<typeof ConsumerSecuredLoanAssetAttributesRegistrationState> =
|
|
@@ -199,6 +274,184 @@ export namespace ConsumerSecuredLoanAssetAttributesRegistrationState$ {
|
|
|
199
274
|
ConsumerSecuredLoanAssetAttributesRegistrationState$outboundSchema;
|
|
200
275
|
}
|
|
201
276
|
|
|
277
|
+
/** @internal */
|
|
278
|
+
export const NetAssetValue$inboundSchema: z.ZodType<
|
|
279
|
+
NetAssetValue,
|
|
280
|
+
z.ZodTypeDef,
|
|
281
|
+
unknown
|
|
282
|
+
> = z.union([MonetaryQuantity$inboundSchema, z.string()]);
|
|
283
|
+
|
|
284
|
+
/** @internal */
|
|
285
|
+
export type NetAssetValue$Outbound = MonetaryQuantity$Outbound | string;
|
|
286
|
+
|
|
287
|
+
/** @internal */
|
|
288
|
+
export const NetAssetValue$outboundSchema: z.ZodType<
|
|
289
|
+
NetAssetValue$Outbound,
|
|
290
|
+
z.ZodTypeDef,
|
|
291
|
+
NetAssetValue
|
|
292
|
+
> = z.union([MonetaryQuantity$outboundSchema, z.string()]);
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @internal
|
|
296
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
297
|
+
*/
|
|
298
|
+
export namespace NetAssetValue$ {
|
|
299
|
+
/** @deprecated use `NetAssetValue$inboundSchema` instead. */
|
|
300
|
+
export const inboundSchema = NetAssetValue$inboundSchema;
|
|
301
|
+
/** @deprecated use `NetAssetValue$outboundSchema` instead. */
|
|
302
|
+
export const outboundSchema = NetAssetValue$outboundSchema;
|
|
303
|
+
/** @deprecated use `NetAssetValue$Outbound` instead. */
|
|
304
|
+
export type Outbound = NetAssetValue$Outbound;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export function netAssetValueToJSON(netAssetValue: NetAssetValue): string {
|
|
308
|
+
return JSON.stringify(NetAssetValue$outboundSchema.parse(netAssetValue));
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export function netAssetValueFromJSON(
|
|
312
|
+
jsonString: string,
|
|
313
|
+
): SafeParseResult<NetAssetValue, SDKValidationError> {
|
|
314
|
+
return safeParse(
|
|
315
|
+
jsonString,
|
|
316
|
+
(x) => NetAssetValue$inboundSchema.parse(JSON.parse(x)),
|
|
317
|
+
`Failed to parse 'NetAssetValue' from JSON`,
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/** @internal */
|
|
322
|
+
export const LuxuryGst$inboundSchema: z.ZodType<
|
|
323
|
+
LuxuryGst,
|
|
324
|
+
z.ZodTypeDef,
|
|
325
|
+
unknown
|
|
326
|
+
> = z.union([MonetaryQuantity$inboundSchema, z.string()]);
|
|
327
|
+
|
|
328
|
+
/** @internal */
|
|
329
|
+
export type LuxuryGst$Outbound = MonetaryQuantity$Outbound | string;
|
|
330
|
+
|
|
331
|
+
/** @internal */
|
|
332
|
+
export const LuxuryGst$outboundSchema: z.ZodType<
|
|
333
|
+
LuxuryGst$Outbound,
|
|
334
|
+
z.ZodTypeDef,
|
|
335
|
+
LuxuryGst
|
|
336
|
+
> = z.union([MonetaryQuantity$outboundSchema, z.string()]);
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @internal
|
|
340
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
341
|
+
*/
|
|
342
|
+
export namespace LuxuryGst$ {
|
|
343
|
+
/** @deprecated use `LuxuryGst$inboundSchema` instead. */
|
|
344
|
+
export const inboundSchema = LuxuryGst$inboundSchema;
|
|
345
|
+
/** @deprecated use `LuxuryGst$outboundSchema` instead. */
|
|
346
|
+
export const outboundSchema = LuxuryGst$outboundSchema;
|
|
347
|
+
/** @deprecated use `LuxuryGst$Outbound` instead. */
|
|
348
|
+
export type Outbound = LuxuryGst$Outbound;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export function luxuryGstToJSON(luxuryGst: LuxuryGst): string {
|
|
352
|
+
return JSON.stringify(LuxuryGst$outboundSchema.parse(luxuryGst));
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export function luxuryGstFromJSON(
|
|
356
|
+
jsonString: string,
|
|
357
|
+
): SafeParseResult<LuxuryGst, SDKValidationError> {
|
|
358
|
+
return safeParse(
|
|
359
|
+
jsonString,
|
|
360
|
+
(x) => LuxuryGst$inboundSchema.parse(JSON.parse(x)),
|
|
361
|
+
`Failed to parse 'LuxuryGst' from JSON`,
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/** @internal */
|
|
366
|
+
export const AdditionalFees$inboundSchema: z.ZodType<
|
|
367
|
+
AdditionalFees,
|
|
368
|
+
z.ZodTypeDef,
|
|
369
|
+
unknown
|
|
370
|
+
> = z.union([MonetaryQuantity$inboundSchema, z.string()]);
|
|
371
|
+
|
|
372
|
+
/** @internal */
|
|
373
|
+
export type AdditionalFees$Outbound = MonetaryQuantity$Outbound | string;
|
|
374
|
+
|
|
375
|
+
/** @internal */
|
|
376
|
+
export const AdditionalFees$outboundSchema: z.ZodType<
|
|
377
|
+
AdditionalFees$Outbound,
|
|
378
|
+
z.ZodTypeDef,
|
|
379
|
+
AdditionalFees
|
|
380
|
+
> = z.union([MonetaryQuantity$outboundSchema, z.string()]);
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* @internal
|
|
384
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
385
|
+
*/
|
|
386
|
+
export namespace AdditionalFees$ {
|
|
387
|
+
/** @deprecated use `AdditionalFees$inboundSchema` instead. */
|
|
388
|
+
export const inboundSchema = AdditionalFees$inboundSchema;
|
|
389
|
+
/** @deprecated use `AdditionalFees$outboundSchema` instead. */
|
|
390
|
+
export const outboundSchema = AdditionalFees$outboundSchema;
|
|
391
|
+
/** @deprecated use `AdditionalFees$Outbound` instead. */
|
|
392
|
+
export type Outbound = AdditionalFees$Outbound;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export function additionalFeesToJSON(additionalFees: AdditionalFees): string {
|
|
396
|
+
return JSON.stringify(AdditionalFees$outboundSchema.parse(additionalFees));
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export function additionalFeesFromJSON(
|
|
400
|
+
jsonString: string,
|
|
401
|
+
): SafeParseResult<AdditionalFees, SDKValidationError> {
|
|
402
|
+
return safeParse(
|
|
403
|
+
jsonString,
|
|
404
|
+
(x) => AdditionalFees$inboundSchema.parse(JSON.parse(x)),
|
|
405
|
+
`Failed to parse 'AdditionalFees' from JSON`,
|
|
406
|
+
);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/** @internal */
|
|
410
|
+
export const AdditionalTaxes$inboundSchema: z.ZodType<
|
|
411
|
+
AdditionalTaxes,
|
|
412
|
+
z.ZodTypeDef,
|
|
413
|
+
unknown
|
|
414
|
+
> = z.union([MonetaryQuantity$inboundSchema, z.string()]);
|
|
415
|
+
|
|
416
|
+
/** @internal */
|
|
417
|
+
export type AdditionalTaxes$Outbound = MonetaryQuantity$Outbound | string;
|
|
418
|
+
|
|
419
|
+
/** @internal */
|
|
420
|
+
export const AdditionalTaxes$outboundSchema: z.ZodType<
|
|
421
|
+
AdditionalTaxes$Outbound,
|
|
422
|
+
z.ZodTypeDef,
|
|
423
|
+
AdditionalTaxes
|
|
424
|
+
> = z.union([MonetaryQuantity$outboundSchema, z.string()]);
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* @internal
|
|
428
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
429
|
+
*/
|
|
430
|
+
export namespace AdditionalTaxes$ {
|
|
431
|
+
/** @deprecated use `AdditionalTaxes$inboundSchema` instead. */
|
|
432
|
+
export const inboundSchema = AdditionalTaxes$inboundSchema;
|
|
433
|
+
/** @deprecated use `AdditionalTaxes$outboundSchema` instead. */
|
|
434
|
+
export const outboundSchema = AdditionalTaxes$outboundSchema;
|
|
435
|
+
/** @deprecated use `AdditionalTaxes$Outbound` instead. */
|
|
436
|
+
export type Outbound = AdditionalTaxes$Outbound;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export function additionalTaxesToJSON(
|
|
440
|
+
additionalTaxes: AdditionalTaxes,
|
|
441
|
+
): string {
|
|
442
|
+
return JSON.stringify(AdditionalTaxes$outboundSchema.parse(additionalTaxes));
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export function additionalTaxesFromJSON(
|
|
446
|
+
jsonString: string,
|
|
447
|
+
): SafeParseResult<AdditionalTaxes, SDKValidationError> {
|
|
448
|
+
return safeParse(
|
|
449
|
+
jsonString,
|
|
450
|
+
(x) => AdditionalTaxes$inboundSchema.parse(JSON.parse(x)),
|
|
451
|
+
`Failed to parse 'AdditionalTaxes' from JSON`,
|
|
452
|
+
);
|
|
453
|
+
}
|
|
454
|
+
|
|
202
455
|
/** @internal */
|
|
203
456
|
export const ConsumerSecuredLoanAssetAttributes$inboundSchema: z.ZodType<
|
|
204
457
|
ConsumerSecuredLoanAssetAttributes,
|
|
@@ -210,7 +463,7 @@ export const ConsumerSecuredLoanAssetAttributes$inboundSchema: z.ZodType<
|
|
|
210
463
|
ageOfAssetAtEnd: z.number().int(),
|
|
211
464
|
condition: ConsumerSecuredLoanAssetAttributesCondition$inboundSchema,
|
|
212
465
|
assetType: ConsumerSecuredLoanAssetType$inboundSchema,
|
|
213
|
-
assetValue: z.string(),
|
|
466
|
+
assetValue: z.union([MonetaryQuantity$inboundSchema, z.string()]),
|
|
214
467
|
make: z.string().optional(),
|
|
215
468
|
assetModel: z.string().optional(),
|
|
216
469
|
registrationNumber: z.string().optional(),
|
|
@@ -227,11 +480,13 @@ export const ConsumerSecuredLoanAssetAttributes$inboundSchema: z.ZodType<
|
|
|
227
480
|
privateSale: z.boolean(),
|
|
228
481
|
typeOfSale: z.string(),
|
|
229
482
|
description: z.string(),
|
|
230
|
-
netAssetValue: z.string(),
|
|
483
|
+
netAssetValue: z.union([MonetaryQuantity$inboundSchema, z.string()]),
|
|
231
484
|
isLuxury: z.boolean(),
|
|
232
|
-
luxuryGst: z.string().optional(),
|
|
233
|
-
additionalFees: z.
|
|
234
|
-
|
|
485
|
+
luxuryGst: z.union([MonetaryQuantity$inboundSchema, z.string()]).optional(),
|
|
486
|
+
additionalFees: z.union([MonetaryQuantity$inboundSchema, z.string()])
|
|
487
|
+
.optional(),
|
|
488
|
+
additionalTaxes: z.union([MonetaryQuantity$inboundSchema, z.string()])
|
|
489
|
+
.optional(),
|
|
235
490
|
});
|
|
236
491
|
|
|
237
492
|
/** @internal */
|
|
@@ -241,7 +496,7 @@ export type ConsumerSecuredLoanAssetAttributes$Outbound = {
|
|
|
241
496
|
ageOfAssetAtEnd: number;
|
|
242
497
|
condition: string;
|
|
243
498
|
assetType: string;
|
|
244
|
-
assetValue: string;
|
|
499
|
+
assetValue: MonetaryQuantity$Outbound | string;
|
|
245
500
|
make?: string | undefined;
|
|
246
501
|
assetModel?: string | undefined;
|
|
247
502
|
registrationNumber?: string | undefined;
|
|
@@ -256,11 +511,11 @@ export type ConsumerSecuredLoanAssetAttributes$Outbound = {
|
|
|
256
511
|
privateSale: boolean;
|
|
257
512
|
typeOfSale: string;
|
|
258
513
|
description: string;
|
|
259
|
-
netAssetValue: string;
|
|
514
|
+
netAssetValue: MonetaryQuantity$Outbound | string;
|
|
260
515
|
isLuxury: boolean;
|
|
261
|
-
luxuryGst?: string | undefined;
|
|
262
|
-
additionalFees?: string | undefined;
|
|
263
|
-
additionalTaxes?: string | undefined;
|
|
516
|
+
luxuryGst?: MonetaryQuantity$Outbound | string | undefined;
|
|
517
|
+
additionalFees?: MonetaryQuantity$Outbound | string | undefined;
|
|
518
|
+
additionalTaxes?: MonetaryQuantity$Outbound | string | undefined;
|
|
264
519
|
};
|
|
265
520
|
|
|
266
521
|
/** @internal */
|
|
@@ -274,7 +529,7 @@ export const ConsumerSecuredLoanAssetAttributes$outboundSchema: z.ZodType<
|
|
|
274
529
|
ageOfAssetAtEnd: z.number().int(),
|
|
275
530
|
condition: ConsumerSecuredLoanAssetAttributesCondition$outboundSchema,
|
|
276
531
|
assetType: ConsumerSecuredLoanAssetType$outboundSchema,
|
|
277
|
-
assetValue: z.string(),
|
|
532
|
+
assetValue: z.union([MonetaryQuantity$outboundSchema, z.string()]),
|
|
278
533
|
make: z.string().optional(),
|
|
279
534
|
assetModel: z.string().optional(),
|
|
280
535
|
registrationNumber: z.string().optional(),
|
|
@@ -291,11 +546,13 @@ export const ConsumerSecuredLoanAssetAttributes$outboundSchema: z.ZodType<
|
|
|
291
546
|
privateSale: z.boolean(),
|
|
292
547
|
typeOfSale: z.string(),
|
|
293
548
|
description: z.string(),
|
|
294
|
-
netAssetValue: z.string(),
|
|
549
|
+
netAssetValue: z.union([MonetaryQuantity$outboundSchema, z.string()]),
|
|
295
550
|
isLuxury: z.boolean(),
|
|
296
|
-
luxuryGst: z.string().optional(),
|
|
297
|
-
additionalFees: z.
|
|
298
|
-
|
|
551
|
+
luxuryGst: z.union([MonetaryQuantity$outboundSchema, z.string()]).optional(),
|
|
552
|
+
additionalFees: z.union([MonetaryQuantity$outboundSchema, z.string()])
|
|
553
|
+
.optional(),
|
|
554
|
+
additionalTaxes: z.union([MonetaryQuantity$outboundSchema, z.string()])
|
|
555
|
+
.optional(),
|
|
299
556
|
});
|
|
300
557
|
|
|
301
558
|
/**
|