@oatfi/oatfi-sdk-ts 0.11.64 → 0.11.65
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/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/businessbalancedto.d.ts +2 -2
- package/dist/commonjs/models/businessbalancedto.d.ts.map +1 -1
- package/dist/commonjs/models/businessbalancedto.js +4 -2
- package/dist/commonjs/models/businessbalancedto.js.map +1 -1
- package/dist/commonjs/models/businessbalancesummarydto.d.ts +1 -1
- package/dist/commonjs/models/businessbalancesummarydto.d.ts.map +1 -1
- package/dist/commonjs/models/businessbalancesummarydto.js +2 -1
- package/dist/commonjs/models/businessbalancesummarydto.js.map +1 -1
- package/dist/commonjs/models/createoriginationofferdto.d.ts +8 -8
- package/dist/commonjs/models/createoriginationofferdto.d.ts.map +1 -1
- package/dist/commonjs/models/createoriginationofferdto.js +8 -5
- package/dist/commonjs/models/createoriginationofferdto.js.map +1 -1
- package/dist/commonjs/models/financialaccountdatadto.d.ts +2 -2
- package/dist/commonjs/models/financialaccountdatadto.d.ts.map +1 -1
- package/dist/commonjs/models/financialaccountdatadto.js +4 -2
- package/dist/commonjs/models/financialaccountdatadto.js.map +1 -1
- package/dist/commonjs/models/increasetransactiondto.d.ts +1 -1
- package/dist/commonjs/models/increasetransactiondto.d.ts.map +1 -1
- package/dist/commonjs/models/increasetransactiondto.js +2 -1
- package/dist/commonjs/models/increasetransactiondto.js.map +1 -1
- package/dist/commonjs/models/originationbalancedto.d.ts +1 -1
- package/dist/commonjs/models/originationbalancedto.d.ts.map +1 -1
- package/dist/commonjs/models/originationbalancedto.js +2 -2
- package/dist/commonjs/models/originationbalancedto.js.map +1 -1
- package/dist/commonjs/models/paymentintentresponsedto.d.ts +1 -1
- package/dist/commonjs/models/paymentintentresponsedto.d.ts.map +1 -1
- package/dist/commonjs/models/paymentintentresponsedto.js +2 -1
- package/dist/commonjs/models/paymentintentresponsedto.js.map +1 -1
- package/dist/commonjs/models/paymentraildatadto.d.ts +2 -2
- package/dist/commonjs/models/paymentraildatadto.d.ts.map +1 -1
- package/dist/commonjs/models/paymentraildatadto.js +4 -2
- package/dist/commonjs/models/paymentraildatadto.js.map +1 -1
- package/dist/commonjs/models/platformcomponentsdto.d.ts +1 -1
- package/dist/commonjs/models/platformcomponentsdto.d.ts.map +1 -1
- package/dist/commonjs/models/platformcomponentsdto.js +6 -1
- package/dist/commonjs/models/platformcomponentsdto.js.map +1 -1
- package/dist/commonjs/models/startunderwritingdto.d.ts +2 -2
- package/dist/commonjs/models/startunderwritingdto.d.ts.map +1 -1
- package/dist/commonjs/models/startunderwritingdto.js +6 -1
- package/dist/commonjs/models/startunderwritingdto.js.map +1 -1
- package/dist/commonjs/models/underwritingresponsedto.d.ts +2 -2
- package/dist/commonjs/models/underwritingresponsedto.d.ts.map +1 -1
- package/dist/commonjs/models/underwritingresponsedto.js +4 -2
- package/dist/commonjs/models/underwritingresponsedto.js.map +1 -1
- package/dist/commonjs/models/underwritingstatusdto.d.ts +2 -2
- package/dist/commonjs/models/underwritingstatusdto.d.ts.map +1 -1
- package/dist/commonjs/models/underwritingstatusdto.js +4 -2
- package/dist/commonjs/models/underwritingstatusdto.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/businessbalancedto.d.ts +2 -2
- package/dist/esm/models/businessbalancedto.d.ts.map +1 -1
- package/dist/esm/models/businessbalancedto.js +4 -2
- package/dist/esm/models/businessbalancedto.js.map +1 -1
- package/dist/esm/models/businessbalancesummarydto.d.ts +1 -1
- package/dist/esm/models/businessbalancesummarydto.d.ts.map +1 -1
- package/dist/esm/models/businessbalancesummarydto.js +2 -1
- package/dist/esm/models/businessbalancesummarydto.js.map +1 -1
- package/dist/esm/models/createoriginationofferdto.d.ts +8 -8
- package/dist/esm/models/createoriginationofferdto.d.ts.map +1 -1
- package/dist/esm/models/createoriginationofferdto.js +8 -5
- package/dist/esm/models/createoriginationofferdto.js.map +1 -1
- package/dist/esm/models/financialaccountdatadto.d.ts +2 -2
- package/dist/esm/models/financialaccountdatadto.d.ts.map +1 -1
- package/dist/esm/models/financialaccountdatadto.js +4 -2
- package/dist/esm/models/financialaccountdatadto.js.map +1 -1
- package/dist/esm/models/increasetransactiondto.d.ts +1 -1
- package/dist/esm/models/increasetransactiondto.d.ts.map +1 -1
- package/dist/esm/models/increasetransactiondto.js +2 -1
- package/dist/esm/models/increasetransactiondto.js.map +1 -1
- package/dist/esm/models/originationbalancedto.d.ts +1 -1
- package/dist/esm/models/originationbalancedto.d.ts.map +1 -1
- package/dist/esm/models/originationbalancedto.js +2 -2
- package/dist/esm/models/originationbalancedto.js.map +1 -1
- package/dist/esm/models/paymentintentresponsedto.d.ts +1 -1
- package/dist/esm/models/paymentintentresponsedto.d.ts.map +1 -1
- package/dist/esm/models/paymentintentresponsedto.js +2 -1
- package/dist/esm/models/paymentintentresponsedto.js.map +1 -1
- package/dist/esm/models/paymentraildatadto.d.ts +2 -2
- package/dist/esm/models/paymentraildatadto.d.ts.map +1 -1
- package/dist/esm/models/paymentraildatadto.js +4 -2
- package/dist/esm/models/paymentraildatadto.js.map +1 -1
- package/dist/esm/models/platformcomponentsdto.d.ts +1 -1
- package/dist/esm/models/platformcomponentsdto.d.ts.map +1 -1
- package/dist/esm/models/platformcomponentsdto.js +6 -1
- package/dist/esm/models/platformcomponentsdto.js.map +1 -1
- package/dist/esm/models/startunderwritingdto.d.ts +2 -2
- package/dist/esm/models/startunderwritingdto.d.ts.map +1 -1
- package/dist/esm/models/startunderwritingdto.js +6 -1
- package/dist/esm/models/startunderwritingdto.js.map +1 -1
- package/dist/esm/models/underwritingresponsedto.d.ts +2 -2
- package/dist/esm/models/underwritingresponsedto.d.ts.map +1 -1
- package/dist/esm/models/underwritingresponsedto.js +4 -2
- package/dist/esm/models/underwritingresponsedto.js.map +1 -1
- package/dist/esm/models/underwritingstatusdto.d.ts +2 -2
- package/dist/esm/models/underwritingstatusdto.d.ts.map +1 -1
- package/dist/esm/models/underwritingstatusdto.js +4 -2
- package/dist/esm/models/underwritingstatusdto.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/businessbalancedto.ts +6 -4
- package/src/models/businessbalancesummarydto.ts +3 -2
- package/src/models/createoriginationofferdto.ts +16 -13
- package/src/models/financialaccountdatadto.ts +6 -4
- package/src/models/increasetransactiondto.ts +3 -2
- package/src/models/originationbalancedto.ts +3 -3
- package/src/models/paymentintentresponsedto.ts +3 -2
- package/src/models/paymentraildatadto.ts +6 -4
- package/src/models/platformcomponentsdto.ts +7 -2
- package/src/models/startunderwritingdto.ts +8 -3
- package/src/models/underwritingresponsedto.ts +6 -4
- package/src/models/underwritingstatusdto.ts +6 -4
|
@@ -121,7 +121,7 @@ export type FinancialAccountDataDto = {
|
|
|
121
121
|
/**
|
|
122
122
|
* Business ID
|
|
123
123
|
*/
|
|
124
|
-
|
|
124
|
+
businessId?: string | undefined;
|
|
125
125
|
/**
|
|
126
126
|
* Lockbox Address
|
|
127
127
|
*/
|
|
@@ -288,7 +288,7 @@ export const FinancialAccountDataDto$inboundSchema: z.ZodType<
|
|
|
288
288
|
unit_account_id: types.optional(types.string()),
|
|
289
289
|
swift_code: types.optional(types.string()),
|
|
290
290
|
remittance_information: types.optional(types.string()),
|
|
291
|
-
|
|
291
|
+
business_id: types.optional(types.string()),
|
|
292
292
|
lockbox_address: types.optional(z.lazy(() => LockboxAddress$inboundSchema)),
|
|
293
293
|
account_number_id: types.optional(types.string()),
|
|
294
294
|
oatfi_account_number: types.optional(types.string()),
|
|
@@ -307,6 +307,7 @@ export const FinancialAccountDataDto$inboundSchema: z.ZodType<
|
|
|
307
307
|
"unit_account_id": "unitAccountId",
|
|
308
308
|
"swift_code": "swiftCode",
|
|
309
309
|
"remittance_information": "remittanceInformation",
|
|
310
|
+
"business_id": "businessId",
|
|
310
311
|
"lockbox_address": "lockboxAddress",
|
|
311
312
|
"account_number_id": "accountNumberId",
|
|
312
313
|
"oatfi_account_number": "oatfiAccountNumber",
|
|
@@ -327,7 +328,7 @@ export type FinancialAccountDataDto$Outbound = {
|
|
|
327
328
|
unit_account_id?: string | undefined;
|
|
328
329
|
swift_code?: string | undefined;
|
|
329
330
|
remittance_information?: string | undefined;
|
|
330
|
-
|
|
331
|
+
business_id?: string | undefined;
|
|
331
332
|
lockbox_address?: LockboxAddress$Outbound | undefined;
|
|
332
333
|
account_number_id?: string | undefined;
|
|
333
334
|
oatfi_account_number?: string | undefined;
|
|
@@ -354,7 +355,7 @@ export const FinancialAccountDataDto$outboundSchema: z.ZodType<
|
|
|
354
355
|
unitAccountId: z.string().optional(),
|
|
355
356
|
swiftCode: z.string().optional(),
|
|
356
357
|
remittanceInformation: z.string().optional(),
|
|
357
|
-
|
|
358
|
+
businessId: z.string().optional(),
|
|
358
359
|
lockboxAddress: z.lazy(() => LockboxAddress$outboundSchema).optional(),
|
|
359
360
|
accountNumberId: z.string().optional(),
|
|
360
361
|
oatfiAccountNumber: z.string().optional(),
|
|
@@ -373,6 +374,7 @@ export const FinancialAccountDataDto$outboundSchema: z.ZodType<
|
|
|
373
374
|
unitAccountId: "unit_account_id",
|
|
374
375
|
swiftCode: "swift_code",
|
|
375
376
|
remittanceInformation: "remittance_information",
|
|
377
|
+
businessId: "business_id",
|
|
376
378
|
lockboxAddress: "lockbox_address",
|
|
377
379
|
accountNumberId: "account_number_id",
|
|
378
380
|
oatfiAccountNumber: "oatfi_account_number",
|
|
@@ -29,7 +29,7 @@ export type IncreaseTransactionDto = {
|
|
|
29
29
|
/**
|
|
30
30
|
* Transaction ID from Increase
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
transactionId: string;
|
|
33
33
|
/**
|
|
34
34
|
* Current status of the transaction
|
|
35
35
|
*/
|
|
@@ -96,7 +96,7 @@ export const IncreaseTransactionDto$inboundSchema: z.ZodType<
|
|
|
96
96
|
> = z.object({
|
|
97
97
|
object: types.string(),
|
|
98
98
|
id: types.string(),
|
|
99
|
-
|
|
99
|
+
transaction_id: types.string(),
|
|
100
100
|
status: types.string(),
|
|
101
101
|
transaction_status: types.string(),
|
|
102
102
|
beneficiary_id: types.string(),
|
|
@@ -115,6 +115,7 @@ export const IncreaseTransactionDto$inboundSchema: z.ZodType<
|
|
|
115
115
|
),
|
|
116
116
|
}).transform((v) => {
|
|
117
117
|
return remap$(v, {
|
|
118
|
+
"transaction_id": "transactionId",
|
|
118
119
|
"transaction_status": "transactionStatus",
|
|
119
120
|
"beneficiary_id": "beneficiaryId",
|
|
120
121
|
"originator_id": "originatorId",
|
|
@@ -41,7 +41,7 @@ export type OriginationBalanceDto = {
|
|
|
41
41
|
/**
|
|
42
42
|
* Identifier for the associated payment intent
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
paymentIntentId?: string | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* Current status of the origination
|
|
47
47
|
*/
|
|
@@ -72,7 +72,7 @@ export const OriginationBalanceDto$inboundSchema: z.ZodType<
|
|
|
72
72
|
due_date: types.number(),
|
|
73
73
|
outstanding_balance: OutstandingBalanceDto$inboundSchema,
|
|
74
74
|
repaid_amount: types.number(),
|
|
75
|
-
|
|
75
|
+
payment_intent_id: types.optional(types.string()),
|
|
76
76
|
status: types.string(),
|
|
77
77
|
sub_status: types.string(),
|
|
78
78
|
next_installment_due_date: types.optional(types.number()),
|
|
@@ -83,7 +83,7 @@ export const OriginationBalanceDto$inboundSchema: z.ZodType<
|
|
|
83
83
|
"due_date": "dueDate",
|
|
84
84
|
"outstanding_balance": "outstandingBalance",
|
|
85
85
|
"repaid_amount": "repaidAmount",
|
|
86
|
-
"
|
|
86
|
+
"payment_intent_id": "paymentIntentId",
|
|
87
87
|
"sub_status": "subStatus",
|
|
88
88
|
"next_installment_due_date": "nextInstallmentDueDate",
|
|
89
89
|
"next_installment_amount": "nextInstallmentAmount",
|
|
@@ -44,7 +44,7 @@ export type PaymentIntentResponseDto = {
|
|
|
44
44
|
/**
|
|
45
45
|
* Identifier of the associated partner (platform in V2).
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
platformId?: string | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* Type of the payment intent.
|
|
50
50
|
*/
|
|
@@ -113,7 +113,7 @@ export const PaymentIntentResponseDto$inboundSchema: z.ZodType<
|
|
|
113
113
|
object: types.string(),
|
|
114
114
|
id: types.string(),
|
|
115
115
|
external_id: types.optional(types.string()),
|
|
116
|
-
|
|
116
|
+
platform_id: types.optional(types.string()),
|
|
117
117
|
type: types.optional(PaymentIntentResponseDtoType$inboundSchema),
|
|
118
118
|
created_date: types.optional(types.date()),
|
|
119
119
|
due_date: types.optional(types.date()),
|
|
@@ -130,6 +130,7 @@ export const PaymentIntentResponseDto$inboundSchema: z.ZodType<
|
|
|
130
130
|
}).transform((v) => {
|
|
131
131
|
return remap$(v, {
|
|
132
132
|
"external_id": "externalId",
|
|
133
|
+
"platform_id": "platformId",
|
|
133
134
|
"created_date": "createdDate",
|
|
134
135
|
"due_date": "dueDate",
|
|
135
136
|
"paid_on_date": "paidOnDate",
|
|
@@ -57,7 +57,7 @@ export type PaymentRailDataDto = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Business ID
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
businessId?: string | undefined;
|
|
61
61
|
/**
|
|
62
62
|
* Lockbox Address
|
|
63
63
|
*/
|
|
@@ -97,7 +97,7 @@ export const PaymentRailDataDto$inboundSchema: z.ZodType<
|
|
|
97
97
|
unit_account_id: types.optional(types.string()),
|
|
98
98
|
swift_code: types.optional(types.string()),
|
|
99
99
|
remittance_information: types.optional(types.string()),
|
|
100
|
-
|
|
100
|
+
business_id: types.optional(types.string()),
|
|
101
101
|
lockbox_address: types.optional(types.string()),
|
|
102
102
|
account_number_id: types.optional(types.string()),
|
|
103
103
|
oatfi_account_number: types.optional(types.string()),
|
|
@@ -116,6 +116,7 @@ export const PaymentRailDataDto$inboundSchema: z.ZodType<
|
|
|
116
116
|
"unit_account_id": "unitAccountId",
|
|
117
117
|
"swift_code": "swiftCode",
|
|
118
118
|
"remittance_information": "remittanceInformation",
|
|
119
|
+
"business_id": "businessId",
|
|
119
120
|
"lockbox_address": "lockboxAddress",
|
|
120
121
|
"account_number_id": "accountNumberId",
|
|
121
122
|
"oatfi_account_number": "oatfiAccountNumber",
|
|
@@ -136,7 +137,7 @@ export type PaymentRailDataDto$Outbound = {
|
|
|
136
137
|
unit_account_id?: string | undefined;
|
|
137
138
|
swift_code?: string | undefined;
|
|
138
139
|
remittance_information?: string | undefined;
|
|
139
|
-
|
|
140
|
+
business_id?: string | undefined;
|
|
140
141
|
lockbox_address?: string | undefined;
|
|
141
142
|
account_number_id?: string | undefined;
|
|
142
143
|
oatfi_account_number?: string | undefined;
|
|
@@ -161,7 +162,7 @@ export const PaymentRailDataDto$outboundSchema: z.ZodType<
|
|
|
161
162
|
unitAccountId: z.string().optional(),
|
|
162
163
|
swiftCode: z.string().optional(),
|
|
163
164
|
remittanceInformation: z.string().optional(),
|
|
164
|
-
|
|
165
|
+
businessId: z.string().optional(),
|
|
165
166
|
lockboxAddress: z.string().optional(),
|
|
166
167
|
accountNumberId: z.string().optional(),
|
|
167
168
|
oatfiAccountNumber: z.string().optional(),
|
|
@@ -180,6 +181,7 @@ export const PaymentRailDataDto$outboundSchema: z.ZodType<
|
|
|
180
181
|
unitAccountId: "unit_account_id",
|
|
181
182
|
swiftCode: "swift_code",
|
|
182
183
|
remittanceInformation: "remittance_information",
|
|
184
|
+
businessId: "business_id",
|
|
183
185
|
lockboxAddress: "lockbox_address",
|
|
184
186
|
accountNumberId: "account_number_id",
|
|
185
187
|
oatfiAccountNumber: "oatfi_account_number",
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
9
|
import * as types from "../types/primitives.js";
|
|
@@ -17,7 +18,7 @@ export type PlatformComponentsDto = {
|
|
|
17
18
|
/**
|
|
18
19
|
* Platform ID
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
+
platformId: string;
|
|
21
22
|
/**
|
|
22
23
|
* Resource type
|
|
23
24
|
*/
|
|
@@ -55,10 +56,14 @@ export const PlatformComponentsDto$inboundSchema: z.ZodType<
|
|
|
55
56
|
z.ZodTypeDef,
|
|
56
57
|
unknown
|
|
57
58
|
> = z.object({
|
|
58
|
-
|
|
59
|
+
platform_id: types.string(),
|
|
59
60
|
object: types.string(),
|
|
60
61
|
id: types.string(),
|
|
61
62
|
data: z.lazy(() => PlatformComponentsDtoData$inboundSchema),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
"platform_id": "platformId",
|
|
66
|
+
});
|
|
62
67
|
});
|
|
63
68
|
|
|
64
69
|
export function platformComponentsDtoFromJSON(
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
7
|
|
|
7
8
|
export type StartUnderwritingDto = {
|
|
8
9
|
/**
|
|
9
10
|
* The ID of the program to use for underwriting
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
+
programId: string;
|
|
12
13
|
/**
|
|
13
14
|
* Optional source identifier for the underwriting request
|
|
14
15
|
*/
|
|
@@ -17,7 +18,7 @@ export type StartUnderwritingDto = {
|
|
|
17
18
|
|
|
18
19
|
/** @internal */
|
|
19
20
|
export type StartUnderwritingDto$Outbound = {
|
|
20
|
-
|
|
21
|
+
program_id: string;
|
|
21
22
|
source?: string | undefined;
|
|
22
23
|
};
|
|
23
24
|
|
|
@@ -27,8 +28,12 @@ export const StartUnderwritingDto$outboundSchema: z.ZodType<
|
|
|
27
28
|
z.ZodTypeDef,
|
|
28
29
|
StartUnderwritingDto
|
|
29
30
|
> = z.object({
|
|
30
|
-
|
|
31
|
+
programId: z.string(),
|
|
31
32
|
source: z.string().optional(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
programId: "program_id",
|
|
36
|
+
});
|
|
32
37
|
});
|
|
33
38
|
|
|
34
39
|
export function startUnderwritingDtoToJSON(
|
|
@@ -97,11 +97,11 @@ export type UnderwritingResponseDto = {
|
|
|
97
97
|
/**
|
|
98
98
|
* The ID of the business that was underwritten
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
businessId?: string | undefined;
|
|
101
101
|
/**
|
|
102
102
|
* The ID of the program used for underwriting
|
|
103
103
|
*/
|
|
104
|
-
|
|
104
|
+
programId?: string | undefined;
|
|
105
105
|
/**
|
|
106
106
|
* The current status of the underwriting process
|
|
107
107
|
*/
|
|
@@ -183,8 +183,8 @@ export const UnderwritingResponseDto$inboundSchema: z.ZodType<
|
|
|
183
183
|
> = z.object({
|
|
184
184
|
object: types.string(),
|
|
185
185
|
id: types.string(),
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
business_id: types.optional(types.string()),
|
|
187
|
+
program_id: types.optional(types.string()),
|
|
188
188
|
status: types.optional(UnderwritingResponseDtoStatus$inboundSchema),
|
|
189
189
|
message: types.optional(types.string()),
|
|
190
190
|
credit_limit: types.optional(types.number()),
|
|
@@ -200,6 +200,8 @@ export const UnderwritingResponseDto$inboundSchema: z.ZodType<
|
|
|
200
200
|
updated_at: types.optional(types.string()),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
203
|
+
"business_id": "businessId",
|
|
204
|
+
"program_id": "programId",
|
|
203
205
|
"credit_limit": "creditLimit",
|
|
204
206
|
"available_to_accelerate": "availableToAccelerate",
|
|
205
207
|
"acceleration_fee": "accelerationFee",
|
|
@@ -55,11 +55,11 @@ export type UnderwritingStatusDto = {
|
|
|
55
55
|
/**
|
|
56
56
|
* The ID of the business
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
businessId: string;
|
|
59
59
|
/**
|
|
60
60
|
* The ID of the program
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
programId: string;
|
|
63
63
|
/**
|
|
64
64
|
* The current underwriting status
|
|
65
65
|
*/
|
|
@@ -149,8 +149,8 @@ export const UnderwritingStatusDto$inboundSchema: z.ZodType<
|
|
|
149
149
|
> = z.object({
|
|
150
150
|
id: types.string(),
|
|
151
151
|
object: types.string().default("underwriting_status"),
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
business_id: types.string(),
|
|
153
|
+
program_id: types.string(),
|
|
154
154
|
status: UnderwritingStatusDtoStatus$inboundSchema,
|
|
155
155
|
credit_limit: types.optional(types.number()),
|
|
156
156
|
shared_credit_limit: types.optional(types.number()),
|
|
@@ -163,6 +163,8 @@ export const UnderwritingStatusDto$inboundSchema: z.ZodType<
|
|
|
163
163
|
underwriting_terms_web_url: types.optional(types.string()),
|
|
164
164
|
}).transform((v) => {
|
|
165
165
|
return remap$(v, {
|
|
166
|
+
"business_id": "businessId",
|
|
167
|
+
"program_id": "programId",
|
|
166
168
|
"credit_limit": "creditLimit",
|
|
167
169
|
"shared_credit_limit": "sharedCreditLimit",
|
|
168
170
|
"kyb_decision": "kybDecision",
|