@financeable/aggregation 0.9.1 → 0.10.0
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/docs/sdks/applications/README.md +1 -0
- package/docs/sdks/oauthtoken/README.md +1 -0
- package/docs/sdks/supportingdocuments/README.md +1 -0
- package/examples/README.md +31 -0
- package/examples/applicationsCreate.example.ts +179 -0
- package/examples/package-lock.json +610 -0
- package/examples/package.json +18 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/addressattributes.d.ts +30 -30
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +24 -24
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/badrequesterror.d.ts +15 -15
- package/models/components/badrequesterror.d.ts.map +1 -1
- package/models/components/badrequesterror.js.map +1 -1
- package/models/components/commercialapplicationjsonapirelationships.d.ts +84 -84
- package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -1
- package/models/components/commercialapplicationjsonapirelationships.js +47 -47
- package/models/components/commercialapplicationjsonapirelationships.js.map +1 -1
- package/models/components/commercialsecuredapplicationpayload.d.ts +27 -27
- package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
- package/models/components/commercialsecuredapplicationpayload.js.map +1 -1
- package/models/components/commercialsecuredapplicationresource.d.ts +36 -36
- package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -1
- package/models/components/commercialsecuredapplicationresource.js.map +1 -1
- package/models/components/commercialsecuredloanassetattributes.d.ts +66 -66
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/commercialsecuredloanassetattributes.js +26 -24
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +150 -150
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +92 -92
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/consumerapplicationjsonapirelationships.d.ts +62 -62
- package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -1
- package/models/components/consumerapplicationjsonapirelationships.js +32 -32
- package/models/components/consumerapplicationjsonapirelationships.js.map +1 -1
- package/models/components/consumersecuredapplicationpayload.d.ts +27 -27
- package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -1
- package/models/components/consumersecuredapplicationpayload.js.map +1 -1
- package/models/components/consumersecuredapplicationresource.d.ts +36 -36
- package/models/components/consumersecuredapplicationresource.d.ts.map +1 -1
- package/models/components/consumersecuredapplicationresource.js.map +1 -1
- package/models/components/consumersecuredloanassetattributes.d.ts +78 -78
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +41 -39
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +172 -172
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +107 -107
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/createsupportingdocumentsresponse.d.ts +16 -16
- package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -1
- package/models/components/createsupportingdocumentsresponse.js.map +1 -1
- package/models/components/customerassetattributes.d.ts +2 -2
- package/models/components/customerassetattributes.d.ts.map +1 -1
- package/models/components/customerassetattributes.js +2 -2
- package/models/components/customerassetattributes.js.map +1 -1
- package/models/components/customerattributes.d.ts +10 -10
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +10 -10
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/customerliabilityattributes.d.ts +2 -2
- package/models/components/customerliabilityattributes.d.ts.map +1 -1
- package/models/components/customerliabilityattributes.js +2 -2
- package/models/components/customerliabilityattributes.js.map +1 -1
- package/models/components/entityattributes.d.ts +4 -4
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +4 -4
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/expenseattributes.d.ts +2 -2
- package/models/components/expenseattributes.d.ts.map +1 -1
- package/models/components/expenseattributes.js +2 -2
- package/models/components/expenseattributes.js.map +1 -1
- package/models/components/forbiddenerror.d.ts +15 -15
- package/models/components/forbiddenerror.d.ts.map +1 -1
- package/models/components/forbiddenerror.js.map +1 -1
- package/models/components/incomeattributes.d.ts +2 -2
- package/models/components/incomeattributes.d.ts.map +1 -1
- package/models/components/incomeattributes.js +2 -2
- package/models/components/incomeattributes.js.map +1 -1
- package/models/components/monetaryquantity.d.ts +11 -11
- package/models/components/monetaryquantity.d.ts.map +1 -1
- package/models/components/monetaryquantity.js.map +1 -1
- package/models/components/percentagequantity.d.ts +7 -7
- package/models/components/percentagequantity.d.ts.map +1 -1
- package/models/components/percentagequantity.js.map +1 -1
- package/models/components/relationshipresourcenotfound.d.ts +12 -12
- package/models/components/relationshipresourcenotfound.d.ts.map +1 -1
- package/models/components/relationshipresourcenotfound.js.map +1 -1
- package/models/components/resourcenotfound.d.ts +15 -15
- package/models/components/resourcenotfound.d.ts.map +1 -1
- package/models/components/resourcenotfound.js.map +1 -1
- package/models/components/supportingdocumentrelationships.d.ts +106 -106
- package/models/components/supportingdocumentrelationships.d.ts.map +1 -1
- package/models/components/supportingdocumentrelationships.js +63 -63
- package/models/components/supportingdocumentrelationships.js.map +1 -1
- package/models/components/supportingdocumentresource.d.ts +11 -11
- package/models/components/supportingdocumentresource.d.ts.map +1 -1
- package/models/components/supportingdocumentresource.js.map +1 -1
- package/models/components/tokenrequest.d.ts +18 -18
- package/models/components/tokenrequest.d.ts.map +1 -1
- package/models/components/tokenrequest.js.map +1 -1
- package/models/operations/createapplication.d.ts +154 -154
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +109 -109
- package/models/operations/createapplication.js.map +1 -1
- package/package.json +4 -5
- package/src/lib/config.ts +3 -3
- package/src/models/components/addressattributes.ts +55 -55
- package/src/models/components/badrequesterror.ts +14 -14
- package/src/models/components/commercialapplicationjsonapirelationships.ts +117 -117
- package/src/models/components/commercialsecuredapplicationpayload.ts +27 -27
- package/src/models/components/commercialsecuredapplicationresource.ts +46 -46
- package/src/models/components/commercialsecuredloanassetattributes.ts +63 -61
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +243 -243
- package/src/models/components/consumerapplicationjsonapirelationships.ts +83 -83
- package/src/models/components/consumersecuredapplicationpayload.ts +27 -27
- package/src/models/components/consumersecuredapplicationresource.ts +47 -47
- package/src/models/components/consumersecuredloanassetattributes.ts +98 -96
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +279 -279
- package/src/models/components/createsupportingdocumentsresponse.ts +16 -16
- package/src/models/components/customerassetattributes.ts +4 -4
- package/src/models/components/customerattributes.ts +20 -20
- package/src/models/components/customerliabilityattributes.ts +4 -4
- package/src/models/components/entityattributes.ts +8 -8
- package/src/models/components/expenseattributes.ts +4 -4
- package/src/models/components/forbiddenerror.ts +14 -14
- package/src/models/components/incomeattributes.ts +4 -4
- package/src/models/components/monetaryquantity.ts +12 -12
- package/src/models/components/percentagequantity.ts +8 -8
- package/src/models/components/relationshipresourcenotfound.ts +11 -11
- package/src/models/components/resourcenotfound.ts +14 -14
- package/src/models/components/supportingdocumentrelationships.ts +129 -129
- package/src/models/components/supportingdocumentresource.ts +8 -8
- package/src/models/components/tokenrequest.ts +19 -19
- package/src/models/operations/createapplication.ts +204 -204
|
@@ -21,6 +21,89 @@ export type ConsumerApplicationJsonApiRelationshipsType = ClosedEnum<
|
|
|
21
21
|
typeof ConsumerApplicationJsonApiRelationshipsType
|
|
22
22
|
>;
|
|
23
23
|
|
|
24
|
+
export const ConsumerApplicationJsonApiRelationshipsCustomersType = {
|
|
25
|
+
Customers: "customers",
|
|
26
|
+
} as const;
|
|
27
|
+
export type ConsumerApplicationJsonApiRelationshipsCustomersType = ClosedEnum<
|
|
28
|
+
typeof ConsumerApplicationJsonApiRelationshipsCustomersType
|
|
29
|
+
>;
|
|
30
|
+
|
|
31
|
+
export const ConsumerApplicationJsonApiRelationshipsAssetType = {
|
|
32
|
+
Assets: "assets",
|
|
33
|
+
} as const;
|
|
34
|
+
export type ConsumerApplicationJsonApiRelationshipsAssetType = ClosedEnum<
|
|
35
|
+
typeof ConsumerApplicationJsonApiRelationshipsAssetType
|
|
36
|
+
>;
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ConsumerApplicationJsonApiRelationshipsType$inboundSchema:
|
|
40
|
+
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsType> = z
|
|
41
|
+
.nativeEnum(ConsumerApplicationJsonApiRelationshipsType);
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const ConsumerApplicationJsonApiRelationshipsType$outboundSchema:
|
|
45
|
+
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsType> =
|
|
46
|
+
ConsumerApplicationJsonApiRelationshipsType$inboundSchema;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
+
*/
|
|
52
|
+
export namespace ConsumerApplicationJsonApiRelationshipsType$ {
|
|
53
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsType$inboundSchema` instead. */
|
|
54
|
+
export const inboundSchema =
|
|
55
|
+
ConsumerApplicationJsonApiRelationshipsType$inboundSchema;
|
|
56
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsType$outboundSchema` instead. */
|
|
57
|
+
export const outboundSchema =
|
|
58
|
+
ConsumerApplicationJsonApiRelationshipsType$outboundSchema;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema:
|
|
63
|
+
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsCustomersType> =
|
|
64
|
+
z.nativeEnum(ConsumerApplicationJsonApiRelationshipsCustomersType);
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema:
|
|
68
|
+
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsCustomersType> =
|
|
69
|
+
ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
+
*/
|
|
75
|
+
export namespace ConsumerApplicationJsonApiRelationshipsCustomersType$ {
|
|
76
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema` instead. */
|
|
77
|
+
export const inboundSchema =
|
|
78
|
+
ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema;
|
|
79
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema =
|
|
81
|
+
ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema:
|
|
86
|
+
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsAssetType> = z
|
|
87
|
+
.nativeEnum(ConsumerApplicationJsonApiRelationshipsAssetType);
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema:
|
|
91
|
+
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsAssetType> =
|
|
92
|
+
ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
97
|
+
*/
|
|
98
|
+
export namespace ConsumerApplicationJsonApiRelationshipsAssetType$ {
|
|
99
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema` instead. */
|
|
100
|
+
export const inboundSchema =
|
|
101
|
+
ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema;
|
|
102
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema` instead. */
|
|
103
|
+
export const outboundSchema =
|
|
104
|
+
ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema;
|
|
105
|
+
}
|
|
106
|
+
|
|
24
107
|
export type ConsumerApplicationJsonApiRelationshipsData = {
|
|
25
108
|
type: ConsumerApplicationJsonApiRelationshipsType;
|
|
26
109
|
id: string;
|
|
@@ -32,13 +115,6 @@ export type ConsumerApplicationJsonApiRelationshipsLoanDetails = {
|
|
|
32
115
|
meta?: { [k: string]: any } | undefined;
|
|
33
116
|
};
|
|
34
117
|
|
|
35
|
-
export const ConsumerApplicationJsonApiRelationshipsCustomersType = {
|
|
36
|
-
Customers: "customers",
|
|
37
|
-
} as const;
|
|
38
|
-
export type ConsumerApplicationJsonApiRelationshipsCustomersType = ClosedEnum<
|
|
39
|
-
typeof ConsumerApplicationJsonApiRelationshipsCustomersType
|
|
40
|
-
>;
|
|
41
|
-
|
|
42
118
|
export type ConsumerApplicationJsonApiRelationshipsCustomersData = {
|
|
43
119
|
type: ConsumerApplicationJsonApiRelationshipsCustomersType;
|
|
44
120
|
id: string;
|
|
@@ -50,13 +126,6 @@ export type ConsumerApplicationJsonApiRelationshipsCustomers = {
|
|
|
50
126
|
meta?: { [k: string]: any } | undefined;
|
|
51
127
|
};
|
|
52
128
|
|
|
53
|
-
export const ConsumerApplicationJsonApiRelationshipsAssetType = {
|
|
54
|
-
Assets: "assets",
|
|
55
|
-
} as const;
|
|
56
|
-
export type ConsumerApplicationJsonApiRelationshipsAssetType = ClosedEnum<
|
|
57
|
-
typeof ConsumerApplicationJsonApiRelationshipsAssetType
|
|
58
|
-
>;
|
|
59
|
-
|
|
60
129
|
export type ConsumerApplicationJsonApiRelationshipsAssetData = {
|
|
61
130
|
type: ConsumerApplicationJsonApiRelationshipsAssetType;
|
|
62
131
|
id: string;
|
|
@@ -77,29 +146,6 @@ export type ConsumerApplicationJsonApiRelationships = {
|
|
|
77
146
|
asset?: ConsumerApplicationJsonApiRelationshipsAsset | undefined;
|
|
78
147
|
};
|
|
79
148
|
|
|
80
|
-
/** @internal */
|
|
81
|
-
export const ConsumerApplicationJsonApiRelationshipsType$inboundSchema:
|
|
82
|
-
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsType> = z
|
|
83
|
-
.nativeEnum(ConsumerApplicationJsonApiRelationshipsType);
|
|
84
|
-
|
|
85
|
-
/** @internal */
|
|
86
|
-
export const ConsumerApplicationJsonApiRelationshipsType$outboundSchema:
|
|
87
|
-
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsType> =
|
|
88
|
-
ConsumerApplicationJsonApiRelationshipsType$inboundSchema;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
-
*/
|
|
94
|
-
export namespace ConsumerApplicationJsonApiRelationshipsType$ {
|
|
95
|
-
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsType$inboundSchema` instead. */
|
|
96
|
-
export const inboundSchema =
|
|
97
|
-
ConsumerApplicationJsonApiRelationshipsType$inboundSchema;
|
|
98
|
-
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsType$outboundSchema` instead. */
|
|
99
|
-
export const outboundSchema =
|
|
100
|
-
ConsumerApplicationJsonApiRelationshipsType$outboundSchema;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
149
|
/** @internal */
|
|
104
150
|
export const ConsumerApplicationJsonApiRelationshipsData$inboundSchema:
|
|
105
151
|
z.ZodType<
|
|
@@ -248,29 +294,6 @@ export function consumerApplicationJsonApiRelationshipsLoanDetailsFromJSON(
|
|
|
248
294
|
);
|
|
249
295
|
}
|
|
250
296
|
|
|
251
|
-
/** @internal */
|
|
252
|
-
export const ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema:
|
|
253
|
-
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsCustomersType> =
|
|
254
|
-
z.nativeEnum(ConsumerApplicationJsonApiRelationshipsCustomersType);
|
|
255
|
-
|
|
256
|
-
/** @internal */
|
|
257
|
-
export const ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema:
|
|
258
|
-
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsCustomersType> =
|
|
259
|
-
ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* @internal
|
|
263
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
264
|
-
*/
|
|
265
|
-
export namespace ConsumerApplicationJsonApiRelationshipsCustomersType$ {
|
|
266
|
-
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema` instead. */
|
|
267
|
-
export const inboundSchema =
|
|
268
|
-
ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema;
|
|
269
|
-
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema` instead. */
|
|
270
|
-
export const outboundSchema =
|
|
271
|
-
ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
297
|
/** @internal */
|
|
275
298
|
export const ConsumerApplicationJsonApiRelationshipsCustomersData$inboundSchema:
|
|
276
299
|
z.ZodType<
|
|
@@ -424,29 +447,6 @@ export function consumerApplicationJsonApiRelationshipsCustomersFromJSON(
|
|
|
424
447
|
);
|
|
425
448
|
}
|
|
426
449
|
|
|
427
|
-
/** @internal */
|
|
428
|
-
export const ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema:
|
|
429
|
-
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsAssetType> = z
|
|
430
|
-
.nativeEnum(ConsumerApplicationJsonApiRelationshipsAssetType);
|
|
431
|
-
|
|
432
|
-
/** @internal */
|
|
433
|
-
export const ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema:
|
|
434
|
-
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsAssetType> =
|
|
435
|
-
ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema;
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* @internal
|
|
439
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
440
|
-
*/
|
|
441
|
-
export namespace ConsumerApplicationJsonApiRelationshipsAssetType$ {
|
|
442
|
-
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema` instead. */
|
|
443
|
-
export const inboundSchema =
|
|
444
|
-
ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema;
|
|
445
|
-
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema` instead. */
|
|
446
|
-
export const outboundSchema =
|
|
447
|
-
ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
450
|
/** @internal */
|
|
451
451
|
export const ConsumerApplicationJsonApiRelationshipsAssetData$inboundSchema:
|
|
452
452
|
z.ZodType<
|
|
@@ -53,33 +53,6 @@ export type ConsumerSecuredApplicationPayloadApplicationType = ClosedEnum<
|
|
|
53
53
|
typeof ConsumerSecuredApplicationPayloadApplicationType
|
|
54
54
|
>;
|
|
55
55
|
|
|
56
|
-
/**
|
|
57
|
-
* Application resource attributes
|
|
58
|
-
*/
|
|
59
|
-
export type ConsumerSecuredApplicationPayloadAttributes = {
|
|
60
|
-
/**
|
|
61
|
-
* Type of the loan application
|
|
62
|
-
*/
|
|
63
|
-
applicationType: ConsumerSecuredApplicationPayloadApplicationType;
|
|
64
|
-
/**
|
|
65
|
-
* Email address of the broker to be associated with this application.
|
|
66
|
-
*/
|
|
67
|
-
associatedBrokerEmail: string;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export type ConsumerSecuredApplicationPayload = {
|
|
71
|
-
type: ConsumerSecuredApplicationPayloadType;
|
|
72
|
-
/**
|
|
73
|
-
* Application resource attributes
|
|
74
|
-
*/
|
|
75
|
-
attributes: ConsumerSecuredApplicationPayloadAttributes;
|
|
76
|
-
relationships?:
|
|
77
|
-
| ConsumerSecuredLoanConsumerApplicationRelationships
|
|
78
|
-
| undefined;
|
|
79
|
-
links?: { [k: string]: LinkObject } | undefined;
|
|
80
|
-
meta?: { [k: string]: any } | undefined;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
56
|
/** @internal */
|
|
84
57
|
export const ConsumerSecuredApplicationPayloadType$inboundSchema:
|
|
85
58
|
z.ZodNativeEnum<typeof ConsumerSecuredApplicationPayloadType> = z.nativeEnum(
|
|
@@ -127,6 +100,33 @@ export namespace ConsumerSecuredApplicationPayloadApplicationType$ {
|
|
|
127
100
|
ConsumerSecuredApplicationPayloadApplicationType$outboundSchema;
|
|
128
101
|
}
|
|
129
102
|
|
|
103
|
+
/**
|
|
104
|
+
* Application resource attributes
|
|
105
|
+
*/
|
|
106
|
+
export type ConsumerSecuredApplicationPayloadAttributes = {
|
|
107
|
+
/**
|
|
108
|
+
* Type of the loan application
|
|
109
|
+
*/
|
|
110
|
+
applicationType: ConsumerSecuredApplicationPayloadApplicationType;
|
|
111
|
+
/**
|
|
112
|
+
* Email address of the broker to be associated with this application.
|
|
113
|
+
*/
|
|
114
|
+
associatedBrokerEmail: string;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export type ConsumerSecuredApplicationPayload = {
|
|
118
|
+
type: ConsumerSecuredApplicationPayloadType;
|
|
119
|
+
/**
|
|
120
|
+
* Application resource attributes
|
|
121
|
+
*/
|
|
122
|
+
attributes: ConsumerSecuredApplicationPayloadAttributes;
|
|
123
|
+
relationships?:
|
|
124
|
+
| ConsumerSecuredLoanConsumerApplicationRelationships
|
|
125
|
+
| undefined;
|
|
126
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
127
|
+
meta?: { [k: string]: any } | undefined;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
130
|
/** @internal */
|
|
131
131
|
export const ConsumerSecuredApplicationPayloadAttributes$inboundSchema:
|
|
132
132
|
z.ZodType<
|
|
@@ -45,6 +45,53 @@ export type ConsumerSecuredApplicationResourceApplicationType = ClosedEnum<
|
|
|
45
45
|
typeof ConsumerSecuredApplicationResourceApplicationType
|
|
46
46
|
>;
|
|
47
47
|
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const ConsumerSecuredApplicationResourceType$inboundSchema:
|
|
50
|
+
z.ZodNativeEnum<typeof ConsumerSecuredApplicationResourceType> = z.nativeEnum(
|
|
51
|
+
ConsumerSecuredApplicationResourceType,
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const ConsumerSecuredApplicationResourceType$outboundSchema:
|
|
56
|
+
z.ZodNativeEnum<typeof ConsumerSecuredApplicationResourceType> =
|
|
57
|
+
ConsumerSecuredApplicationResourceType$inboundSchema;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export namespace ConsumerSecuredApplicationResourceType$ {
|
|
64
|
+
/** @deprecated use `ConsumerSecuredApplicationResourceType$inboundSchema` instead. */
|
|
65
|
+
export const inboundSchema =
|
|
66
|
+
ConsumerSecuredApplicationResourceType$inboundSchema;
|
|
67
|
+
/** @deprecated use `ConsumerSecuredApplicationResourceType$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema =
|
|
69
|
+
ConsumerSecuredApplicationResourceType$outboundSchema;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const ConsumerSecuredApplicationResourceApplicationType$inboundSchema:
|
|
74
|
+
z.ZodNativeEnum<typeof ConsumerSecuredApplicationResourceApplicationType> = z
|
|
75
|
+
.nativeEnum(ConsumerSecuredApplicationResourceApplicationType);
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const ConsumerSecuredApplicationResourceApplicationType$outboundSchema:
|
|
79
|
+
z.ZodNativeEnum<typeof ConsumerSecuredApplicationResourceApplicationType> =
|
|
80
|
+
ConsumerSecuredApplicationResourceApplicationType$inboundSchema;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
+
*/
|
|
86
|
+
export namespace ConsumerSecuredApplicationResourceApplicationType$ {
|
|
87
|
+
/** @deprecated use `ConsumerSecuredApplicationResourceApplicationType$inboundSchema` instead. */
|
|
88
|
+
export const inboundSchema =
|
|
89
|
+
ConsumerSecuredApplicationResourceApplicationType$inboundSchema;
|
|
90
|
+
/** @deprecated use `ConsumerSecuredApplicationResourceApplicationType$outboundSchema` instead. */
|
|
91
|
+
export const outboundSchema =
|
|
92
|
+
ConsumerSecuredApplicationResourceApplicationType$outboundSchema;
|
|
93
|
+
}
|
|
94
|
+
|
|
48
95
|
/**
|
|
49
96
|
* Application resource attributes
|
|
50
97
|
*/
|
|
@@ -93,53 +140,6 @@ export type ConsumerSecuredApplicationResource = {
|
|
|
93
140
|
meta?: { [k: string]: any } | undefined;
|
|
94
141
|
};
|
|
95
142
|
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const ConsumerSecuredApplicationResourceType$inboundSchema:
|
|
98
|
-
z.ZodNativeEnum<typeof ConsumerSecuredApplicationResourceType> = z.nativeEnum(
|
|
99
|
-
ConsumerSecuredApplicationResourceType,
|
|
100
|
-
);
|
|
101
|
-
|
|
102
|
-
/** @internal */
|
|
103
|
-
export const ConsumerSecuredApplicationResourceType$outboundSchema:
|
|
104
|
-
z.ZodNativeEnum<typeof ConsumerSecuredApplicationResourceType> =
|
|
105
|
-
ConsumerSecuredApplicationResourceType$inboundSchema;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @internal
|
|
109
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
110
|
-
*/
|
|
111
|
-
export namespace ConsumerSecuredApplicationResourceType$ {
|
|
112
|
-
/** @deprecated use `ConsumerSecuredApplicationResourceType$inboundSchema` instead. */
|
|
113
|
-
export const inboundSchema =
|
|
114
|
-
ConsumerSecuredApplicationResourceType$inboundSchema;
|
|
115
|
-
/** @deprecated use `ConsumerSecuredApplicationResourceType$outboundSchema` instead. */
|
|
116
|
-
export const outboundSchema =
|
|
117
|
-
ConsumerSecuredApplicationResourceType$outboundSchema;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/** @internal */
|
|
121
|
-
export const ConsumerSecuredApplicationResourceApplicationType$inboundSchema:
|
|
122
|
-
z.ZodNativeEnum<typeof ConsumerSecuredApplicationResourceApplicationType> = z
|
|
123
|
-
.nativeEnum(ConsumerSecuredApplicationResourceApplicationType);
|
|
124
|
-
|
|
125
|
-
/** @internal */
|
|
126
|
-
export const ConsumerSecuredApplicationResourceApplicationType$outboundSchema:
|
|
127
|
-
z.ZodNativeEnum<typeof ConsumerSecuredApplicationResourceApplicationType> =
|
|
128
|
-
ConsumerSecuredApplicationResourceApplicationType$inboundSchema;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @internal
|
|
132
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
133
|
-
*/
|
|
134
|
-
export namespace ConsumerSecuredApplicationResourceApplicationType$ {
|
|
135
|
-
/** @deprecated use `ConsumerSecuredApplicationResourceApplicationType$inboundSchema` instead. */
|
|
136
|
-
export const inboundSchema =
|
|
137
|
-
ConsumerSecuredApplicationResourceApplicationType$inboundSchema;
|
|
138
|
-
/** @deprecated use `ConsumerSecuredApplicationResourceApplicationType$outboundSchema` instead. */
|
|
139
|
-
export const outboundSchema =
|
|
140
|
-
ConsumerSecuredApplicationResourceApplicationType$outboundSchema;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
143
|
/** @internal */
|
|
144
144
|
export const ConsumerSecuredApplicationResourceAttributes$inboundSchema:
|
|
145
145
|
z.ZodType<
|
|
@@ -39,13 +39,6 @@ export type ConsumerSecuredLoanAssetAttributesCondition = ClosedEnum<
|
|
|
39
39
|
typeof ConsumerSecuredLoanAssetAttributesCondition
|
|
40
40
|
>;
|
|
41
41
|
|
|
42
|
-
/**
|
|
43
|
-
* Value of asset as either MonetaryQuantity model (preferred) or floating point AUD dollars as string. The latter will be deprecated.
|
|
44
|
-
*/
|
|
45
|
-
export type ConsumerSecuredLoanAssetAttributesAssetValue =
|
|
46
|
-
| MonetaryQuantity
|
|
47
|
-
| string;
|
|
48
|
-
|
|
49
42
|
/**
|
|
50
43
|
* Registration state (or territory) of asset
|
|
51
44
|
*/
|
|
@@ -66,6 +59,59 @@ export type ConsumerSecuredLoanAssetAttributesRegistrationState = ClosedEnum<
|
|
|
66
59
|
typeof ConsumerSecuredLoanAssetAttributesRegistrationState
|
|
67
60
|
>;
|
|
68
61
|
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const ConsumerSecuredLoanAssetAttributesCondition$inboundSchema:
|
|
64
|
+
z.ZodNativeEnum<typeof ConsumerSecuredLoanAssetAttributesCondition> = z
|
|
65
|
+
.nativeEnum(ConsumerSecuredLoanAssetAttributesCondition);
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const ConsumerSecuredLoanAssetAttributesCondition$outboundSchema:
|
|
69
|
+
z.ZodNativeEnum<typeof ConsumerSecuredLoanAssetAttributesCondition> =
|
|
70
|
+
ConsumerSecuredLoanAssetAttributesCondition$inboundSchema;
|
|
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 ConsumerSecuredLoanAssetAttributesCondition$ {
|
|
77
|
+
/** @deprecated use `ConsumerSecuredLoanAssetAttributesCondition$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema =
|
|
79
|
+
ConsumerSecuredLoanAssetAttributesCondition$inboundSchema;
|
|
80
|
+
/** @deprecated use `ConsumerSecuredLoanAssetAttributesCondition$outboundSchema` instead. */
|
|
81
|
+
export const outboundSchema =
|
|
82
|
+
ConsumerSecuredLoanAssetAttributesCondition$outboundSchema;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const ConsumerSecuredLoanAssetAttributesRegistrationState$inboundSchema:
|
|
87
|
+
z.ZodNativeEnum<typeof ConsumerSecuredLoanAssetAttributesRegistrationState> =
|
|
88
|
+
z.nativeEnum(ConsumerSecuredLoanAssetAttributesRegistrationState);
|
|
89
|
+
|
|
90
|
+
/** @internal */
|
|
91
|
+
export const ConsumerSecuredLoanAssetAttributesRegistrationState$outboundSchema:
|
|
92
|
+
z.ZodNativeEnum<typeof ConsumerSecuredLoanAssetAttributesRegistrationState> =
|
|
93
|
+
ConsumerSecuredLoanAssetAttributesRegistrationState$inboundSchema;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
+
*/
|
|
99
|
+
export namespace ConsumerSecuredLoanAssetAttributesRegistrationState$ {
|
|
100
|
+
/** @deprecated use `ConsumerSecuredLoanAssetAttributesRegistrationState$inboundSchema` instead. */
|
|
101
|
+
export const inboundSchema =
|
|
102
|
+
ConsumerSecuredLoanAssetAttributesRegistrationState$inboundSchema;
|
|
103
|
+
/** @deprecated use `ConsumerSecuredLoanAssetAttributesRegistrationState$outboundSchema` instead. */
|
|
104
|
+
export const outboundSchema =
|
|
105
|
+
ConsumerSecuredLoanAssetAttributesRegistrationState$outboundSchema;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Value of asset as either MonetaryQuantity model (preferred) or floating point AUD dollars as string. The latter will be deprecated.
|
|
110
|
+
*/
|
|
111
|
+
export type ConsumerSecuredLoanAssetAttributesAssetValue =
|
|
112
|
+
| MonetaryQuantity
|
|
113
|
+
| string;
|
|
114
|
+
|
|
69
115
|
/**
|
|
70
116
|
* Type of sale. Must be a member of ConsumerSecuredLoan.TypeOfSale, but will not throw for invalid string values (backwards-compatibility).
|
|
71
117
|
*/
|
|
@@ -109,23 +155,23 @@ export type ConsumerSecuredLoanAssetAttributes = {
|
|
|
109
155
|
/**
|
|
110
156
|
* Current age of asset as number (integer) of years
|
|
111
157
|
*/
|
|
112
|
-
ageOfAsset
|
|
158
|
+
ageOfAsset?: number | undefined;
|
|
113
159
|
/**
|
|
114
160
|
* Age of asset at the end of the loan term, in years
|
|
115
161
|
*/
|
|
116
|
-
ageOfAssetAtEnd
|
|
162
|
+
ageOfAssetAtEnd?: number | undefined;
|
|
117
163
|
/**
|
|
118
164
|
* Condition of asset
|
|
119
165
|
*/
|
|
120
|
-
condition
|
|
166
|
+
condition?: ConsumerSecuredLoanAssetAttributesCondition | undefined;
|
|
121
167
|
/**
|
|
122
168
|
* Type of asset for secured consumer loans
|
|
123
169
|
*/
|
|
124
|
-
assetType
|
|
170
|
+
assetType?: ConsumerSecuredLoanAssetType | undefined;
|
|
125
171
|
/**
|
|
126
172
|
* Value of asset as either MonetaryQuantity model (preferred) or floating point AUD dollars as string. The latter will be deprecated.
|
|
127
173
|
*/
|
|
128
|
-
assetValue
|
|
174
|
+
assetValue?: MonetaryQuantity | string | undefined;
|
|
129
175
|
/**
|
|
130
176
|
* Make of asset
|
|
131
177
|
*/
|
|
@@ -175,23 +221,23 @@ export type ConsumerSecuredLoanAssetAttributes = {
|
|
|
175
221
|
/**
|
|
176
222
|
* Is this asset obtained via private sale?
|
|
177
223
|
*/
|
|
178
|
-
privateSale
|
|
224
|
+
privateSale?: boolean | undefined;
|
|
179
225
|
/**
|
|
180
226
|
* Type of sale. Must be a member of ConsumerSecuredLoan.TypeOfSale, but will not throw for invalid string values (backwards-compatibility).
|
|
181
227
|
*/
|
|
182
|
-
typeOfSale
|
|
228
|
+
typeOfSale?: string | ConsumerSecuredLoanTypeOfSale | undefined;
|
|
183
229
|
/**
|
|
184
230
|
* Description of asset
|
|
185
231
|
*/
|
|
186
|
-
description
|
|
232
|
+
description?: string | undefined;
|
|
187
233
|
/**
|
|
188
234
|
* Net asset value of asset, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
189
235
|
*/
|
|
190
|
-
netAssetValue
|
|
236
|
+
netAssetValue?: MonetaryQuantity | string | undefined;
|
|
191
237
|
/**
|
|
192
238
|
* Is this asset a luxury asset?
|
|
193
239
|
*/
|
|
194
|
-
isLuxury
|
|
240
|
+
isLuxury?: boolean | undefined;
|
|
195
241
|
/**
|
|
196
242
|
* Luxury GST, provided as either MonetaryQuantity (preferred) or floating point dollar value as string (latter will be deprecated)
|
|
197
243
|
*/
|
|
@@ -206,29 +252,6 @@ export type ConsumerSecuredLoanAssetAttributes = {
|
|
|
206
252
|
additionalTaxes?: MonetaryQuantity | string | undefined;
|
|
207
253
|
};
|
|
208
254
|
|
|
209
|
-
/** @internal */
|
|
210
|
-
export const ConsumerSecuredLoanAssetAttributesCondition$inboundSchema:
|
|
211
|
-
z.ZodNativeEnum<typeof ConsumerSecuredLoanAssetAttributesCondition> = z
|
|
212
|
-
.nativeEnum(ConsumerSecuredLoanAssetAttributesCondition);
|
|
213
|
-
|
|
214
|
-
/** @internal */
|
|
215
|
-
export const ConsumerSecuredLoanAssetAttributesCondition$outboundSchema:
|
|
216
|
-
z.ZodNativeEnum<typeof ConsumerSecuredLoanAssetAttributesCondition> =
|
|
217
|
-
ConsumerSecuredLoanAssetAttributesCondition$inboundSchema;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* @internal
|
|
221
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
222
|
-
*/
|
|
223
|
-
export namespace ConsumerSecuredLoanAssetAttributesCondition$ {
|
|
224
|
-
/** @deprecated use `ConsumerSecuredLoanAssetAttributesCondition$inboundSchema` instead. */
|
|
225
|
-
export const inboundSchema =
|
|
226
|
-
ConsumerSecuredLoanAssetAttributesCondition$inboundSchema;
|
|
227
|
-
/** @deprecated use `ConsumerSecuredLoanAssetAttributesCondition$outboundSchema` instead. */
|
|
228
|
-
export const outboundSchema =
|
|
229
|
-
ConsumerSecuredLoanAssetAttributesCondition$outboundSchema;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
255
|
/** @internal */
|
|
233
256
|
export const ConsumerSecuredLoanAssetAttributesAssetValue$inboundSchema:
|
|
234
257
|
z.ZodType<
|
|
@@ -292,29 +315,6 @@ export function consumerSecuredLoanAssetAttributesAssetValueFromJSON(
|
|
|
292
315
|
);
|
|
293
316
|
}
|
|
294
317
|
|
|
295
|
-
/** @internal */
|
|
296
|
-
export const ConsumerSecuredLoanAssetAttributesRegistrationState$inboundSchema:
|
|
297
|
-
z.ZodNativeEnum<typeof ConsumerSecuredLoanAssetAttributesRegistrationState> =
|
|
298
|
-
z.nativeEnum(ConsumerSecuredLoanAssetAttributesRegistrationState);
|
|
299
|
-
|
|
300
|
-
/** @internal */
|
|
301
|
-
export const ConsumerSecuredLoanAssetAttributesRegistrationState$outboundSchema:
|
|
302
|
-
z.ZodNativeEnum<typeof ConsumerSecuredLoanAssetAttributesRegistrationState> =
|
|
303
|
-
ConsumerSecuredLoanAssetAttributesRegistrationState$inboundSchema;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* @internal
|
|
307
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
308
|
-
*/
|
|
309
|
-
export namespace ConsumerSecuredLoanAssetAttributesRegistrationState$ {
|
|
310
|
-
/** @deprecated use `ConsumerSecuredLoanAssetAttributesRegistrationState$inboundSchema` instead. */
|
|
311
|
-
export const inboundSchema =
|
|
312
|
-
ConsumerSecuredLoanAssetAttributesRegistrationState$inboundSchema;
|
|
313
|
-
/** @deprecated use `ConsumerSecuredLoanAssetAttributesRegistrationState$outboundSchema` instead. */
|
|
314
|
-
export const outboundSchema =
|
|
315
|
-
ConsumerSecuredLoanAssetAttributesRegistrationState$outboundSchema;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
318
|
/** @internal */
|
|
319
319
|
export const ConsumerSecuredLoanAssetAttributesTypeOfSale$inboundSchema:
|
|
320
320
|
z.ZodType<
|
|
@@ -640,11 +640,12 @@ export const ConsumerSecuredLoanAssetAttributes$inboundSchema: z.ZodType<
|
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
642
|
id: z.string().optional(),
|
|
643
|
-
ageOfAsset: z.number().int(),
|
|
644
|
-
ageOfAssetAtEnd: z.number().int(),
|
|
645
|
-
condition: ConsumerSecuredLoanAssetAttributesCondition$inboundSchema
|
|
646
|
-
|
|
647
|
-
|
|
643
|
+
ageOfAsset: z.number().int().optional(),
|
|
644
|
+
ageOfAssetAtEnd: z.number().int().optional(),
|
|
645
|
+
condition: ConsumerSecuredLoanAssetAttributesCondition$inboundSchema
|
|
646
|
+
.optional(),
|
|
647
|
+
assetType: ConsumerSecuredLoanAssetType$inboundSchema.optional(),
|
|
648
|
+
assetValue: z.union([MonetaryQuantity$inboundSchema, z.string()]).optional(),
|
|
648
649
|
make: z.string().optional(),
|
|
649
650
|
assetModel: z.string().optional(),
|
|
650
651
|
registrationNumber: z.string().optional(),
|
|
@@ -658,14 +659,13 @@ export const ConsumerSecuredLoanAssetAttributes$inboundSchema: z.ZodType<
|
|
|
658
659
|
supplierPhone: z.string().optional(),
|
|
659
660
|
supplierContactName: z.string().optional(),
|
|
660
661
|
supplierEmail: z.string().optional(),
|
|
661
|
-
privateSale: z.boolean(),
|
|
662
|
-
typeOfSale: z.union([
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
])
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
isLuxury: z.boolean(),
|
|
662
|
+
privateSale: z.boolean().optional(),
|
|
663
|
+
typeOfSale: z.union([z.string(), ConsumerSecuredLoanTypeOfSale$inboundSchema])
|
|
664
|
+
.optional(),
|
|
665
|
+
description: z.string().optional(),
|
|
666
|
+
netAssetValue: z.union([MonetaryQuantity$inboundSchema, z.string()])
|
|
667
|
+
.optional(),
|
|
668
|
+
isLuxury: z.boolean().optional(),
|
|
669
669
|
luxuryGst: z.union([MonetaryQuantity$inboundSchema, z.string()]).optional(),
|
|
670
670
|
additionalFees: z.union([MonetaryQuantity$inboundSchema, z.string()])
|
|
671
671
|
.optional(),
|
|
@@ -676,11 +676,11 @@ export const ConsumerSecuredLoanAssetAttributes$inboundSchema: z.ZodType<
|
|
|
676
676
|
/** @internal */
|
|
677
677
|
export type ConsumerSecuredLoanAssetAttributes$Outbound = {
|
|
678
678
|
id?: string | undefined;
|
|
679
|
-
ageOfAsset
|
|
680
|
-
ageOfAssetAtEnd
|
|
681
|
-
condition
|
|
682
|
-
assetType
|
|
683
|
-
assetValue
|
|
679
|
+
ageOfAsset?: number | undefined;
|
|
680
|
+
ageOfAssetAtEnd?: number | undefined;
|
|
681
|
+
condition?: string | undefined;
|
|
682
|
+
assetType?: string | undefined;
|
|
683
|
+
assetValue?: MonetaryQuantity$Outbound | string | undefined;
|
|
684
684
|
make?: string | undefined;
|
|
685
685
|
assetModel?: string | undefined;
|
|
686
686
|
registrationNumber?: string | undefined;
|
|
@@ -692,11 +692,11 @@ export type ConsumerSecuredLoanAssetAttributes$Outbound = {
|
|
|
692
692
|
supplierPhone?: string | undefined;
|
|
693
693
|
supplierContactName?: string | undefined;
|
|
694
694
|
supplierEmail?: string | undefined;
|
|
695
|
-
privateSale
|
|
696
|
-
typeOfSale
|
|
697
|
-
description
|
|
698
|
-
netAssetValue
|
|
699
|
-
isLuxury
|
|
695
|
+
privateSale?: boolean | undefined;
|
|
696
|
+
typeOfSale?: string | string | undefined;
|
|
697
|
+
description?: string | undefined;
|
|
698
|
+
netAssetValue?: MonetaryQuantity$Outbound | string | undefined;
|
|
699
|
+
isLuxury?: boolean | undefined;
|
|
700
700
|
luxuryGst?: MonetaryQuantity$Outbound | string | undefined;
|
|
701
701
|
additionalFees?: MonetaryQuantity$Outbound | string | undefined;
|
|
702
702
|
additionalTaxes?: MonetaryQuantity$Outbound | string | undefined;
|
|
@@ -709,11 +709,12 @@ export const ConsumerSecuredLoanAssetAttributes$outboundSchema: z.ZodType<
|
|
|
709
709
|
ConsumerSecuredLoanAssetAttributes
|
|
710
710
|
> = z.object({
|
|
711
711
|
id: z.string().optional(),
|
|
712
|
-
ageOfAsset: z.number().int(),
|
|
713
|
-
ageOfAssetAtEnd: z.number().int(),
|
|
714
|
-
condition: ConsumerSecuredLoanAssetAttributesCondition$outboundSchema
|
|
715
|
-
|
|
716
|
-
|
|
712
|
+
ageOfAsset: z.number().int().optional(),
|
|
713
|
+
ageOfAssetAtEnd: z.number().int().optional(),
|
|
714
|
+
condition: ConsumerSecuredLoanAssetAttributesCondition$outboundSchema
|
|
715
|
+
.optional(),
|
|
716
|
+
assetType: ConsumerSecuredLoanAssetType$outboundSchema.optional(),
|
|
717
|
+
assetValue: z.union([MonetaryQuantity$outboundSchema, z.string()]).optional(),
|
|
717
718
|
make: z.string().optional(),
|
|
718
719
|
assetModel: z.string().optional(),
|
|
719
720
|
registrationNumber: z.string().optional(),
|
|
@@ -727,14 +728,15 @@ export const ConsumerSecuredLoanAssetAttributes$outboundSchema: z.ZodType<
|
|
|
727
728
|
supplierPhone: z.string().optional(),
|
|
728
729
|
supplierContactName: z.string().optional(),
|
|
729
730
|
supplierEmail: z.string().optional(),
|
|
730
|
-
privateSale: z.boolean(),
|
|
731
|
+
privateSale: z.boolean().optional(),
|
|
731
732
|
typeOfSale: z.union([
|
|
732
733
|
z.string(),
|
|
733
734
|
ConsumerSecuredLoanTypeOfSale$outboundSchema,
|
|
734
|
-
]),
|
|
735
|
-
description: z.string(),
|
|
736
|
-
netAssetValue: z.union([MonetaryQuantity$outboundSchema, z.string()])
|
|
737
|
-
|
|
735
|
+
]).optional(),
|
|
736
|
+
description: z.string().optional(),
|
|
737
|
+
netAssetValue: z.union([MonetaryQuantity$outboundSchema, z.string()])
|
|
738
|
+
.optional(),
|
|
739
|
+
isLuxury: z.boolean().optional(),
|
|
738
740
|
luxuryGst: z.union([MonetaryQuantity$outboundSchema, z.string()]).optional(),
|
|
739
741
|
additionalFees: z.union([MonetaryQuantity$outboundSchema, z.string()])
|
|
740
742
|
.optional(),
|