@financeable/aggregation 0.8.1 → 0.9.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.
Files changed (181) hide show
  1. package/FUNCTIONS.md +153 -36
  2. package/README.md +475 -94
  3. package/docs/sdks/applications/README.md +11 -17
  4. package/docs/sdks/oauthtoken/README.md +5 -9
  5. package/docs/sdks/supportingdocuments/README.md +9 -16
  6. package/funcs/applicationsCreate.d.ts +3 -3
  7. package/funcs/applicationsCreate.d.ts.map +1 -1
  8. package/funcs/applicationsCreate.js +4 -6
  9. package/funcs/applicationsCreate.js.map +1 -1
  10. package/funcs/oauthTokenGet.d.ts +3 -2
  11. package/funcs/oauthTokenGet.d.ts.map +1 -1
  12. package/funcs/oauthTokenGet.js +4 -2
  13. package/funcs/oauthTokenGet.js.map +1 -1
  14. package/funcs/supportingDocumentsCreate.d.ts +3 -3
  15. package/funcs/supportingDocumentsCreate.d.ts.map +1 -1
  16. package/funcs/supportingDocumentsCreate.js +5 -8
  17. package/funcs/supportingDocumentsCreate.js.map +1 -1
  18. package/hooks/types.d.ts +2 -0
  19. package/hooks/types.d.ts.map +1 -1
  20. package/index.d.ts +2 -0
  21. package/index.d.ts.map +1 -1
  22. package/index.js +3 -1
  23. package/index.js.map +1 -1
  24. package/jsr.json +1 -1
  25. package/lib/config.d.ts +7 -3
  26. package/lib/config.d.ts.map +1 -1
  27. package/lib/config.js +3 -3
  28. package/lib/config.js.map +1 -1
  29. package/lib/files.d.ts +5 -0
  30. package/lib/files.d.ts.map +1 -1
  31. package/lib/files.js +41 -0
  32. package/lib/files.js.map +1 -1
  33. package/lib/matchers.d.ts +3 -10
  34. package/lib/matchers.d.ts.map +1 -1
  35. package/lib/matchers.js +33 -31
  36. package/lib/matchers.js.map +1 -1
  37. package/lib/sdks.d.ts +1 -0
  38. package/lib/sdks.d.ts.map +1 -1
  39. package/lib/sdks.js +3 -3
  40. package/lib/sdks.js.map +1 -1
  41. package/lib/security.d.ts +2 -2
  42. package/lib/security.d.ts.map +1 -1
  43. package/models/components/addressattributes.d.ts +8 -8
  44. package/models/components/addressattributes.d.ts.map +1 -1
  45. package/models/components/addressattributes.js +14 -13
  46. package/models/components/addressattributes.js.map +1 -1
  47. package/models/components/badrequesterror.d.ts +24 -24
  48. package/models/components/badrequesterror.d.ts.map +1 -1
  49. package/models/components/badrequesterror.js +37 -38
  50. package/models/components/badrequesterror.js.map +1 -1
  51. package/models/components/commercialsecuredapplicationpayload.d.ts +8 -8
  52. package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
  53. package/models/components/commercialsecuredapplicationpayload.js +13 -14
  54. package/models/components/commercialsecuredapplicationpayload.js.map +1 -1
  55. package/models/components/commercialsecuredloanassetattributes.d.ts +164 -18
  56. package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
  57. package/models/components/commercialsecuredloanassetattributes.js +163 -13
  58. package/models/components/commercialsecuredloanassetattributes.js.map +1 -1
  59. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +90 -90
  60. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  61. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +116 -118
  62. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
  63. package/models/components/commercialsecuredloantypeofsale.d.ts +40 -0
  64. package/models/components/commercialsecuredloantypeofsale.d.ts.map +1 -0
  65. package/models/components/commercialsecuredloantypeofsale.js +64 -0
  66. package/models/components/commercialsecuredloantypeofsale.js.map +1 -0
  67. package/models/components/consumersecuredloanassetattributes.d.ts +93 -68
  68. package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
  69. package/models/components/consumersecuredloanassetattributes.js +108 -78
  70. package/models/components/consumersecuredloanassetattributes.js.map +1 -1
  71. package/models/components/consumersecuredloantypeofsale.d.ts +40 -0
  72. package/models/components/consumersecuredloantypeofsale.d.ts.map +1 -0
  73. package/models/components/consumersecuredloantypeofsale.js +64 -0
  74. package/models/components/consumersecuredloantypeofsale.js.map +1 -0
  75. package/models/components/customerattributes.d.ts +6 -0
  76. package/models/components/customerattributes.d.ts.map +1 -1
  77. package/models/components/customerattributes.js +3 -0
  78. package/models/components/customerattributes.js.map +1 -1
  79. package/models/components/forbiddenerror.d.ts +16 -16
  80. package/models/components/forbiddenerror.d.ts.map +1 -1
  81. package/models/components/forbiddenerror.js +25 -25
  82. package/models/components/forbiddenerror.js.map +1 -1
  83. package/models/components/index.d.ts +2 -0
  84. package/models/components/index.d.ts.map +1 -1
  85. package/models/components/index.js +2 -0
  86. package/models/components/index.js.map +1 -1
  87. package/models/components/loandetailsattributes.d.ts +8 -8
  88. package/models/components/loandetailsattributes.d.ts.map +1 -1
  89. package/models/components/loandetailsattributes.js +8 -8
  90. package/models/components/loandetailsattributes.js.map +1 -1
  91. package/models/components/supportingdocumentrelationships.d.ts +45 -45
  92. package/models/components/supportingdocumentrelationships.d.ts.map +1 -1
  93. package/models/components/supportingdocumentrelationships.js +54 -54
  94. package/models/components/supportingdocumentrelationships.js.map +1 -1
  95. package/models/components/supportingdocumentresource.d.ts +8 -8
  96. package/models/components/supportingdocumentresource.d.ts.map +1 -1
  97. package/models/components/supportingdocumentresource.js +13 -13
  98. package/models/components/supportingdocumentresource.js.map +1 -1
  99. package/models/errors/apierror.d.ts +8 -6
  100. package/models/errors/apierror.d.ts.map +1 -1
  101. package/models/errors/apierror.js +23 -10
  102. package/models/errors/apierror.js.map +1 -1
  103. package/models/errors/financeableerror.d.ts +19 -0
  104. package/models/errors/financeableerror.d.ts.map +1 -0
  105. package/models/errors/financeableerror.js +20 -0
  106. package/models/errors/financeableerror.js.map +1 -0
  107. package/models/errors/index.d.ts +1 -2
  108. package/models/errors/index.d.ts.map +1 -1
  109. package/models/errors/index.js +1 -2
  110. package/models/errors/index.js.map +1 -1
  111. package/models/errors/responsevalidationerror.d.ts +26 -0
  112. package/models/errors/responsevalidationerror.d.ts.map +1 -0
  113. package/models/errors/responsevalidationerror.js +66 -0
  114. package/models/errors/responsevalidationerror.js.map +1 -0
  115. package/models/errors/sdkvalidationerror.d.ts +1 -0
  116. package/models/errors/sdkvalidationerror.d.ts.map +1 -1
  117. package/models/errors/sdkvalidationerror.js +14 -0
  118. package/models/errors/sdkvalidationerror.js.map +1 -1
  119. package/models/operations/createapplication.d.ts +107 -30
  120. package/models/operations/createapplication.d.ts.map +1 -1
  121. package/models/operations/createapplication.js +125 -44
  122. package/models/operations/createapplication.js.map +1 -1
  123. package/models/operations/supportingdocumentscreate.d.ts +144 -0
  124. package/models/operations/supportingdocumentscreate.d.ts.map +1 -1
  125. package/models/operations/supportingdocumentscreate.js +186 -1
  126. package/models/operations/supportingdocumentscreate.js.map +1 -1
  127. package/package.json +1 -1
  128. package/sdk/applications.d.ts +1 -1
  129. package/sdk/applications.d.ts.map +1 -1
  130. package/sdk/sdk.d.ts +2 -2
  131. package/sdk/sdk.d.ts.map +1 -1
  132. package/sdk/sdk.js +3 -3
  133. package/sdk/sdk.js.map +1 -1
  134. package/sdk/supportingdocuments.d.ts +1 -1
  135. package/sdk/supportingdocuments.d.ts.map +1 -1
  136. package/src/funcs/applicationsCreate.ts +30 -40
  137. package/src/funcs/oauthTokenGet.ts +24 -20
  138. package/src/funcs/supportingDocumentsCreate.ts +31 -42
  139. package/src/hooks/types.ts +2 -0
  140. package/src/index.ts +2 -0
  141. package/src/lib/config.ts +7 -3
  142. package/src/lib/files.ts +42 -0
  143. package/src/lib/matchers.ts +44 -41
  144. package/src/lib/sdks.ts +10 -4
  145. package/src/lib/security.ts +2 -2
  146. package/src/models/components/addressattributes.ts +14 -18
  147. package/src/models/components/badrequesterror.ts +48 -44
  148. package/src/models/components/commercialsecuredapplicationpayload.ts +15 -20
  149. package/src/models/components/commercialsecuredloanassetattributes.ts +347 -30
  150. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +178 -238
  151. package/src/models/components/commercialsecuredloantypeofsale.ts +39 -0
  152. package/src/models/components/consumersecuredloanassetattributes.ts +318 -131
  153. package/src/models/components/consumersecuredloantypeofsale.ts +39 -0
  154. package/src/models/components/customerattributes.ts +12 -0
  155. package/src/models/components/forbiddenerror.ts +30 -32
  156. package/src/models/components/index.ts +2 -0
  157. package/src/models/components/loandetailsattributes.ts +16 -16
  158. package/src/models/components/supportingdocumentrelationships.ts +117 -82
  159. package/src/models/components/supportingdocumentresource.ts +18 -15
  160. package/src/models/errors/apierror.ts +29 -16
  161. package/src/models/errors/financeableerror.ts +35 -0
  162. package/src/models/errors/index.ts +1 -2
  163. package/src/models/errors/responsevalidationerror.ts +50 -0
  164. package/src/models/errors/sdkvalidationerror.ts +12 -0
  165. package/src/models/operations/createapplication.ts +299 -64
  166. package/src/models/operations/supportingdocumentscreate.ts +386 -0
  167. package/src/sdk/applications.ts +1 -1
  168. package/src/sdk/sdk.ts +7 -7
  169. package/src/sdk/supportingdocuments.ts +1 -1
  170. package/src/types/constdatetime.ts +1 -1
  171. package/types/constdatetime.js +1 -1
  172. package/models/errors/createapplication.d.ts +0 -73
  173. package/models/errors/createapplication.d.ts.map +0 -1
  174. package/models/errors/createapplication.js +0 -120
  175. package/models/errors/createapplication.js.map +0 -1
  176. package/models/errors/supportingdocumentscreate.d.ts +0 -143
  177. package/models/errors/supportingdocumentscreate.d.ts.map +0 -1
  178. package/models/errors/supportingdocumentscreate.js +0 -225
  179. package/models/errors/supportingdocumentscreate.js.map +0 -1
  180. package/src/models/errors/createapplication.ts +0 -149
  181. package/src/models/errors/supportingdocumentscreate.ts +0 -342
@@ -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 ConsumerSecuredLoanTypeOfSale = {
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 ConsumerSecuredLoanTypeOfSale = ClosedEnum<
17
+ typeof ConsumerSecuredLoanTypeOfSale
18
+ >;
19
+
20
+ /** @internal */
21
+ export const ConsumerSecuredLoanTypeOfSale$inboundSchema: z.ZodNativeEnum<
22
+ typeof ConsumerSecuredLoanTypeOfSale
23
+ > = z.nativeEnum(ConsumerSecuredLoanTypeOfSale);
24
+
25
+ /** @internal */
26
+ export const ConsumerSecuredLoanTypeOfSale$outboundSchema: z.ZodNativeEnum<
27
+ typeof ConsumerSecuredLoanTypeOfSale
28
+ > = ConsumerSecuredLoanTypeOfSale$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 ConsumerSecuredLoanTypeOfSale$ {
35
+ /** @deprecated use `ConsumerSecuredLoanTypeOfSale$inboundSchema` instead. */
36
+ export const inboundSchema = ConsumerSecuredLoanTypeOfSale$inboundSchema;
37
+ /** @deprecated use `ConsumerSecuredLoanTypeOfSale$outboundSchema` instead. */
38
+ export const outboundSchema = ConsumerSecuredLoanTypeOfSale$outboundSchema;
39
+ }
@@ -6,6 +6,11 @@ import * as z from "zod";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AustralianStatesAndTerritories,
11
+ AustralianStatesAndTerritories$inboundSchema,
12
+ AustralianStatesAndTerritories$outboundSchema,
13
+ } from "./australianstatesandterritories.js";
9
14
  import {
10
15
  CustomerIDType,
11
16
  CustomerIDType$inboundSchema,
@@ -71,6 +76,10 @@ export type CustomerAttributes = {
71
76
  * Type of ID, either drivers' license or passport
72
77
  */
73
78
  idType?: CustomerIDType | undefined;
79
+ /**
80
+ * THe state in which the ID was issued, currently limited to AUS states.
81
+ */
82
+ idState?: AustralianStatesAndTerritories | undefined;
74
83
  /**
75
84
  * Number of the ID
76
85
  */
@@ -107,6 +116,7 @@ export const CustomerAttributes$inboundSchema: z.ZodType<
107
116
  dateOfBirth: z.string(),
108
117
  idExpiryDate: z.string(),
109
118
  idType: CustomerIDType$inboundSchema.optional(),
119
+ idState: AustralianStatesAndTerritories$inboundSchema.optional(),
110
120
  idNumber: z.string().optional(),
111
121
  emailAddresses: z.array(z.string()).optional(),
112
122
  phoneNumbers: z.array(z.string()).optional(),
@@ -127,6 +137,7 @@ export type CustomerAttributes$Outbound = {
127
137
  dateOfBirth: string;
128
138
  idExpiryDate: string;
129
139
  idType?: string | undefined;
140
+ idState?: string | undefined;
130
141
  idNumber?: string | undefined;
131
142
  emailAddresses?: Array<string> | undefined;
132
143
  phoneNumbers?: Array<string> | undefined;
@@ -151,6 +162,7 @@ export const CustomerAttributes$outboundSchema: z.ZodType<
151
162
  dateOfBirth: z.string(),
152
163
  idExpiryDate: z.string(),
153
164
  idType: CustomerIDType$outboundSchema.optional(),
165
+ idState: AustralianStatesAndTerritories$outboundSchema.optional(),
154
166
  idNumber: z.string().optional(),
155
167
  emailAddresses: z.array(z.string()).optional(),
156
168
  phoneNumbers: z.array(z.string()).optional(),
@@ -25,22 +25,22 @@ export const ForbiddenErrorStatus = {
25
25
  } as const;
26
26
  export type ForbiddenErrorStatus = ClosedEnum<typeof ForbiddenErrorStatus>;
27
27
 
28
- export const ForbiddenErrorCode = {
28
+ export const Code = {
29
29
  Unauthorised: "Unauthorised",
30
30
  } as const;
31
- export type ForbiddenErrorCode = ClosedEnum<typeof ForbiddenErrorCode>;
31
+ export type Code = ClosedEnum<typeof Code>;
32
32
 
33
- export const ForbiddenErrorTitle = {
33
+ export const Title = {
34
34
  Unauthorised: "Unauthorised",
35
35
  } as const;
36
- export type ForbiddenErrorTitle = ClosedEnum<typeof ForbiddenErrorTitle>;
36
+ export type Title = ClosedEnum<typeof Title>;
37
37
 
38
38
  export type ForbiddenError = {
39
39
  id?: string | undefined;
40
40
  links?: APIErrorLinks | undefined;
41
41
  status: ForbiddenErrorStatus;
42
- code: ForbiddenErrorCode;
43
- title: ForbiddenErrorTitle;
42
+ code: Code;
43
+ title: Title;
44
44
  detail: string;
45
45
  /**
46
46
  * An object describing the source of the error from the request
@@ -71,45 +71,43 @@ export namespace ForbiddenErrorStatus$ {
71
71
  }
72
72
 
73
73
  /** @internal */
74
- export const ForbiddenErrorCode$inboundSchema: z.ZodNativeEnum<
75
- typeof ForbiddenErrorCode
76
- > = z.nativeEnum(ForbiddenErrorCode);
74
+ export const Code$inboundSchema: z.ZodNativeEnum<typeof Code> = z.nativeEnum(
75
+ Code,
76
+ );
77
77
 
78
78
  /** @internal */
79
- export const ForbiddenErrorCode$outboundSchema: z.ZodNativeEnum<
80
- typeof ForbiddenErrorCode
81
- > = ForbiddenErrorCode$inboundSchema;
79
+ export const Code$outboundSchema: z.ZodNativeEnum<typeof Code> =
80
+ Code$inboundSchema;
82
81
 
83
82
  /**
84
83
  * @internal
85
84
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
86
85
  */
87
- export namespace ForbiddenErrorCode$ {
88
- /** @deprecated use `ForbiddenErrorCode$inboundSchema` instead. */
89
- export const inboundSchema = ForbiddenErrorCode$inboundSchema;
90
- /** @deprecated use `ForbiddenErrorCode$outboundSchema` instead. */
91
- export const outboundSchema = ForbiddenErrorCode$outboundSchema;
86
+ export namespace Code$ {
87
+ /** @deprecated use `Code$inboundSchema` instead. */
88
+ export const inboundSchema = Code$inboundSchema;
89
+ /** @deprecated use `Code$outboundSchema` instead. */
90
+ export const outboundSchema = Code$outboundSchema;
92
91
  }
93
92
 
94
93
  /** @internal */
95
- export const ForbiddenErrorTitle$inboundSchema: z.ZodNativeEnum<
96
- typeof ForbiddenErrorTitle
97
- > = z.nativeEnum(ForbiddenErrorTitle);
94
+ export const Title$inboundSchema: z.ZodNativeEnum<typeof Title> = z.nativeEnum(
95
+ Title,
96
+ );
98
97
 
99
98
  /** @internal */
100
- export const ForbiddenErrorTitle$outboundSchema: z.ZodNativeEnum<
101
- typeof ForbiddenErrorTitle
102
- > = ForbiddenErrorTitle$inboundSchema;
99
+ export const Title$outboundSchema: z.ZodNativeEnum<typeof Title> =
100
+ Title$inboundSchema;
103
101
 
104
102
  /**
105
103
  * @internal
106
104
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
107
105
  */
108
- export namespace ForbiddenErrorTitle$ {
109
- /** @deprecated use `ForbiddenErrorTitle$inboundSchema` instead. */
110
- export const inboundSchema = ForbiddenErrorTitle$inboundSchema;
111
- /** @deprecated use `ForbiddenErrorTitle$outboundSchema` instead. */
112
- export const outboundSchema = ForbiddenErrorTitle$outboundSchema;
106
+ export namespace Title$ {
107
+ /** @deprecated use `Title$inboundSchema` instead. */
108
+ export const inboundSchema = Title$inboundSchema;
109
+ /** @deprecated use `Title$outboundSchema` instead. */
110
+ export const outboundSchema = Title$outboundSchema;
113
111
  }
114
112
 
115
113
  /** @internal */
@@ -121,8 +119,8 @@ export const ForbiddenError$inboundSchema: z.ZodType<
121
119
  id: z.string().optional(),
122
120
  links: APIErrorLinks$inboundSchema.optional(),
123
121
  status: ForbiddenErrorStatus$inboundSchema,
124
- code: ForbiddenErrorCode$inboundSchema,
125
- title: ForbiddenErrorTitle$inboundSchema,
122
+ code: Code$inboundSchema,
123
+ title: Title$inboundSchema,
126
124
  detail: z.string(),
127
125
  source: ErrorSource$inboundSchema.optional(),
128
126
  meta: z.record(z.any()).optional(),
@@ -149,8 +147,8 @@ export const ForbiddenError$outboundSchema: z.ZodType<
149
147
  id: z.string().optional(),
150
148
  links: APIErrorLinks$outboundSchema.optional(),
151
149
  status: ForbiddenErrorStatus$outboundSchema,
152
- code: ForbiddenErrorCode$outboundSchema,
153
- title: ForbiddenErrorTitle$outboundSchema,
150
+ code: Code$outboundSchema,
151
+ title: Title$outboundSchema,
154
152
  detail: z.string(),
155
153
  source: ErrorSource$outboundSchema.optional(),
156
154
  meta: z.record(z.any()).optional(),
@@ -14,12 +14,14 @@ export * from "./commercialsecuredapplicationresource.js";
14
14
  export * from "./commercialsecuredloanassetattributes.js";
15
15
  export * from "./commercialsecuredloanassettype.js";
16
16
  export * from "./commercialsecuredloancommercialapplicationrelationships.js";
17
+ export * from "./commercialsecuredloantypeofsale.js";
17
18
  export * from "./consumerapplicationjsonapirelationships.js";
18
19
  export * from "./consumersecuredapplicationpayload.js";
19
20
  export * from "./consumersecuredapplicationresource.js";
20
21
  export * from "./consumersecuredloanassetattributes.js";
21
22
  export * from "./consumersecuredloanassettype.js";
22
23
  export * from "./consumersecuredloanconsumerapplicationrelationships.js";
24
+ export * from "./consumersecuredloantypeofsale.js";
23
25
  export * from "./createsupportingdocumentsresponse.js";
24
26
  export * from "./currencycodeiso4217.js";
25
27
  export * from "./customerassetattributes.js";
@@ -37,12 +37,12 @@ export type LoanAmount = MonetaryQuantity | string;
37
37
  /**
38
38
  * Brokerage quantity as either BrokerageQuantity model (preferred) or floating point dollars as string. The latter will be deprecated. Only applicable to commercialSecured loans.
39
39
  */
40
- export type Brokerage = PercentageQuantity | MonetaryQuantity | string;
40
+ export type Brokerage = MonetaryQuantity | PercentageQuantity | string;
41
41
 
42
42
  /**
43
43
  * Balloon quantity as either BalloonQuantity model (preferred) or dollar integer as int32 (the latter will be deprecated)
44
44
  */
45
- export type Balloon = PercentageQuantity | MonetaryQuantity | number;
45
+ export type Balloon = MonetaryQuantity | PercentageQuantity | number;
46
46
 
47
47
  /**
48
48
  * Either MonetaryQuantity model (preferred) or floating point AUD dollars as string. The latter will be deprecated.
@@ -106,7 +106,7 @@ export type LoanDetailsAttributes = {
106
106
  /**
107
107
  * Brokerage quantity as either BrokerageQuantity model (preferred) or floating point dollars as string. The latter will be deprecated. Only applicable to commercialSecured loans.
108
108
  */
109
- brokerage?: PercentageQuantity | MonetaryQuantity | string | undefined;
109
+ brokerage?: MonetaryQuantity | PercentageQuantity | string | undefined;
110
110
  /**
111
111
  * Broker amount as floating point dollars string. Will be deprecated in the future, use brokerage instead. Only applicable to commercialSecured loans.
112
112
  *
@@ -116,7 +116,7 @@ export type LoanDetailsAttributes = {
116
116
  /**
117
117
  * Balloon quantity as either BalloonQuantity model (preferred) or dollar integer as int32 (the latter will be deprecated)
118
118
  */
119
- balloon?: PercentageQuantity | MonetaryQuantity | number | undefined;
119
+ balloon?: MonetaryQuantity | PercentageQuantity | number | undefined;
120
120
  /**
121
121
  * Balloon amount, floating point AUD dollars as string. Will be deprecated in the future, use balloon instead
122
122
  *
@@ -199,15 +199,15 @@ export const Brokerage$inboundSchema: z.ZodType<
199
199
  z.ZodTypeDef,
200
200
  unknown
201
201
  > = z.union([
202
- PercentageQuantity$inboundSchema,
203
202
  MonetaryQuantity$inboundSchema,
203
+ PercentageQuantity$inboundSchema,
204
204
  z.string(),
205
205
  ]);
206
206
 
207
207
  /** @internal */
208
208
  export type Brokerage$Outbound =
209
- | PercentageQuantity$Outbound
210
209
  | MonetaryQuantity$Outbound
210
+ | PercentageQuantity$Outbound
211
211
  | string;
212
212
 
213
213
  /** @internal */
@@ -216,8 +216,8 @@ export const Brokerage$outboundSchema: z.ZodType<
216
216
  z.ZodTypeDef,
217
217
  Brokerage
218
218
  > = z.union([
219
- PercentageQuantity$outboundSchema,
220
219
  MonetaryQuantity$outboundSchema,
220
+ PercentageQuantity$outboundSchema,
221
221
  z.string(),
222
222
  ]);
223
223
 
@@ -251,15 +251,15 @@ export function brokerageFromJSON(
251
251
  /** @internal */
252
252
  export const Balloon$inboundSchema: z.ZodType<Balloon, z.ZodTypeDef, unknown> =
253
253
  z.union([
254
- PercentageQuantity$inboundSchema,
255
254
  MonetaryQuantity$inboundSchema,
255
+ PercentageQuantity$inboundSchema,
256
256
  z.number().int(),
257
257
  ]);
258
258
 
259
259
  /** @internal */
260
260
  export type Balloon$Outbound =
261
- | PercentageQuantity$Outbound
262
261
  | MonetaryQuantity$Outbound
262
+ | PercentageQuantity$Outbound
263
263
  | number;
264
264
 
265
265
  /** @internal */
@@ -268,8 +268,8 @@ export const Balloon$outboundSchema: z.ZodType<
268
268
  z.ZodTypeDef,
269
269
  Balloon
270
270
  > = z.union([
271
- PercentageQuantity$outboundSchema,
272
271
  MonetaryQuantity$outboundSchema,
272
+ PercentageQuantity$outboundSchema,
273
273
  z.number().int(),
274
274
  ]);
275
275
 
@@ -563,14 +563,14 @@ export const LoanDetailsAttributes$inboundSchema: z.ZodType<
563
563
  purpose: z.string().optional(),
564
564
  term: z.number().int().optional(),
565
565
  brokerage: z.union([
566
- PercentageQuantity$inboundSchema,
567
566
  MonetaryQuantity$inboundSchema,
567
+ PercentageQuantity$inboundSchema,
568
568
  z.string(),
569
569
  ]).optional(),
570
570
  brokerageAmount: z.string().optional(),
571
571
  balloon: z.union([
572
- PercentageQuantity$inboundSchema,
573
572
  MonetaryQuantity$inboundSchema,
573
+ PercentageQuantity$inboundSchema,
574
574
  z.number().int(),
575
575
  ]).optional(),
576
576
  balloonAmount: z.string().optional(),
@@ -594,14 +594,14 @@ export type LoanDetailsAttributes$Outbound = {
594
594
  purpose?: string | undefined;
595
595
  term?: number | undefined;
596
596
  brokerage?:
597
- | PercentageQuantity$Outbound
598
597
  | MonetaryQuantity$Outbound
598
+ | PercentageQuantity$Outbound
599
599
  | string
600
600
  | undefined;
601
601
  brokerageAmount?: string | undefined;
602
602
  balloon?:
603
- | PercentageQuantity$Outbound
604
603
  | MonetaryQuantity$Outbound
604
+ | PercentageQuantity$Outbound
605
605
  | number
606
606
  | undefined;
607
607
  balloonAmount?: string | undefined;
@@ -627,14 +627,14 @@ export const LoanDetailsAttributes$outboundSchema: z.ZodType<
627
627
  purpose: z.string().optional(),
628
628
  term: z.number().int().optional(),
629
629
  brokerage: z.union([
630
- PercentageQuantity$outboundSchema,
631
630
  MonetaryQuantity$outboundSchema,
631
+ PercentageQuantity$outboundSchema,
632
632
  z.string(),
633
633
  ]).optional(),
634
634
  brokerageAmount: z.string().optional(),
635
635
  balloon: z.union([
636
- PercentageQuantity$outboundSchema,
637
636
  MonetaryQuantity$outboundSchema,
637
+ PercentageQuantity$outboundSchema,
638
638
  z.number().int(),
639
639
  ]).optional(),
640
640
  balloonAmount: z.string().optional(),