@oatfi/oatfi-sdk-ts 0.11.63 → 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.
Files changed (206) hide show
  1. package/README.md +2 -0
  2. package/dist/commonjs/funcs/businessesSubmitSupplementalData.d.ts +18 -0
  3. package/dist/commonjs/funcs/businessesSubmitSupplementalData.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/businessesSubmitSupplementalData.js +135 -0
  5. package/dist/commonjs/funcs/businessesSubmitSupplementalData.js.map +1 -0
  6. package/dist/commonjs/lib/config.d.ts +2 -2
  7. package/dist/commonjs/lib/config.js +2 -2
  8. package/dist/commonjs/models/accountstatementlistresponse.d.ts +2 -5
  9. package/dist/commonjs/models/accountstatementlistresponse.d.ts.map +1 -1
  10. package/dist/commonjs/models/accountstatementlistresponse.js +3 -8
  11. package/dist/commonjs/models/accountstatementlistresponse.js.map +1 -1
  12. package/dist/commonjs/models/businessbalancedto.d.ts +2 -2
  13. package/dist/commonjs/models/businessbalancedto.d.ts.map +1 -1
  14. package/dist/commonjs/models/businessbalancedto.js +4 -2
  15. package/dist/commonjs/models/businessbalancedto.js.map +1 -1
  16. package/dist/commonjs/models/businessbalancesummarydto.d.ts +1 -1
  17. package/dist/commonjs/models/businessbalancesummarydto.d.ts.map +1 -1
  18. package/dist/commonjs/models/businessbalancesummarydto.js +2 -1
  19. package/dist/commonjs/models/businessbalancesummarydto.js.map +1 -1
  20. package/dist/commonjs/models/businesslistresponsedto.d.ts +2 -5
  21. package/dist/commonjs/models/businesslistresponsedto.d.ts.map +1 -1
  22. package/dist/commonjs/models/businesslistresponsedto.js +3 -8
  23. package/dist/commonjs/models/businesslistresponsedto.js.map +1 -1
  24. package/dist/commonjs/models/createoriginationofferdto.d.ts +8 -8
  25. package/dist/commonjs/models/createoriginationofferdto.d.ts.map +1 -1
  26. package/dist/commonjs/models/createoriginationofferdto.js +8 -5
  27. package/dist/commonjs/models/createoriginationofferdto.js.map +1 -1
  28. package/dist/commonjs/models/createsupplementaldatadto.d.ts +64 -0
  29. package/dist/commonjs/models/createsupplementaldatadto.d.ts.map +1 -0
  30. package/dist/commonjs/models/createsupplementaldatadto.js +86 -0
  31. package/dist/commonjs/models/createsupplementaldatadto.js.map +1 -0
  32. package/dist/commonjs/models/financialaccountdatadto.d.ts +2 -2
  33. package/dist/commonjs/models/financialaccountdatadto.d.ts.map +1 -1
  34. package/dist/commonjs/models/financialaccountdatadto.js +4 -2
  35. package/dist/commonjs/models/financialaccountdatadto.js.map +1 -1
  36. package/dist/commonjs/models/increaseaccountstatement.d.ts +49 -0
  37. package/dist/commonjs/models/increaseaccountstatement.d.ts.map +1 -0
  38. package/dist/commonjs/models/increaseaccountstatement.js +71 -0
  39. package/dist/commonjs/models/increaseaccountstatement.js.map +1 -0
  40. package/dist/commonjs/models/increasetransactiondto.d.ts +1 -1
  41. package/dist/commonjs/models/increasetransactiondto.d.ts.map +1 -1
  42. package/dist/commonjs/models/increasetransactiondto.js +2 -1
  43. package/dist/commonjs/models/increasetransactiondto.js.map +1 -1
  44. package/dist/commonjs/models/index.d.ts +3 -0
  45. package/dist/commonjs/models/index.d.ts.map +1 -1
  46. package/dist/commonjs/models/index.js +3 -0
  47. package/dist/commonjs/models/index.js.map +1 -1
  48. package/dist/commonjs/models/operations/businessescontrollercreatesupplementaldata.d.ts +23 -0
  49. package/dist/commonjs/models/operations/businessescontrollercreatesupplementaldata.d.ts.map +1 -0
  50. package/dist/commonjs/models/operations/businessescontrollercreatesupplementaldata.js +58 -0
  51. package/dist/commonjs/models/operations/businessescontrollercreatesupplementaldata.js.map +1 -0
  52. package/dist/commonjs/models/operations/index.d.ts +1 -0
  53. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  54. package/dist/commonjs/models/operations/index.js +1 -0
  55. package/dist/commonjs/models/operations/index.js.map +1 -1
  56. package/dist/commonjs/models/originationbalancedto.d.ts +1 -1
  57. package/dist/commonjs/models/originationbalancedto.d.ts.map +1 -1
  58. package/dist/commonjs/models/originationbalancedto.js +2 -2
  59. package/dist/commonjs/models/originationbalancedto.js.map +1 -1
  60. package/dist/commonjs/models/paymentintentresponsedto.d.ts +1 -1
  61. package/dist/commonjs/models/paymentintentresponsedto.d.ts.map +1 -1
  62. package/dist/commonjs/models/paymentintentresponsedto.js +2 -1
  63. package/dist/commonjs/models/paymentintentresponsedto.js.map +1 -1
  64. package/dist/commonjs/models/paymentraildatadto.d.ts +2 -2
  65. package/dist/commonjs/models/paymentraildatadto.d.ts.map +1 -1
  66. package/dist/commonjs/models/paymentraildatadto.js +4 -2
  67. package/dist/commonjs/models/paymentraildatadto.js.map +1 -1
  68. package/dist/commonjs/models/platformcomponentsdto.d.ts +1 -1
  69. package/dist/commonjs/models/platformcomponentsdto.d.ts.map +1 -1
  70. package/dist/commonjs/models/platformcomponentsdto.js +6 -1
  71. package/dist/commonjs/models/platformcomponentsdto.js.map +1 -1
  72. package/dist/commonjs/models/startunderwritingdto.d.ts +2 -2
  73. package/dist/commonjs/models/startunderwritingdto.d.ts.map +1 -1
  74. package/dist/commonjs/models/startunderwritingdto.js +6 -1
  75. package/dist/commonjs/models/startunderwritingdto.js.map +1 -1
  76. package/dist/commonjs/models/supplementaldataresponsedto.d.ts +87 -0
  77. package/dist/commonjs/models/supplementaldataresponsedto.d.ts.map +1 -0
  78. package/dist/commonjs/models/supplementaldataresponsedto.js +104 -0
  79. package/dist/commonjs/models/supplementaldataresponsedto.js.map +1 -0
  80. package/dist/commonjs/models/underwritingresponsedto.d.ts +2 -2
  81. package/dist/commonjs/models/underwritingresponsedto.d.ts.map +1 -1
  82. package/dist/commonjs/models/underwritingresponsedto.js +4 -2
  83. package/dist/commonjs/models/underwritingresponsedto.js.map +1 -1
  84. package/dist/commonjs/models/underwritingstatusdto.d.ts +2 -2
  85. package/dist/commonjs/models/underwritingstatusdto.d.ts.map +1 -1
  86. package/dist/commonjs/models/underwritingstatusdto.js +4 -2
  87. package/dist/commonjs/models/underwritingstatusdto.js.map +1 -1
  88. package/dist/commonjs/sdk/businesses.d.ts +7 -0
  89. package/dist/commonjs/sdk/businesses.d.ts.map +1 -1
  90. package/dist/commonjs/sdk/businesses.js +10 -0
  91. package/dist/commonjs/sdk/businesses.js.map +1 -1
  92. package/dist/esm/funcs/businessesSubmitSupplementalData.d.ts +18 -0
  93. package/dist/esm/funcs/businessesSubmitSupplementalData.d.ts.map +1 -0
  94. package/dist/esm/funcs/businessesSubmitSupplementalData.js +99 -0
  95. package/dist/esm/funcs/businessesSubmitSupplementalData.js.map +1 -0
  96. package/dist/esm/lib/config.d.ts +2 -2
  97. package/dist/esm/lib/config.js +2 -2
  98. package/dist/esm/models/accountstatementlistresponse.d.ts +2 -5
  99. package/dist/esm/models/accountstatementlistresponse.d.ts.map +1 -1
  100. package/dist/esm/models/accountstatementlistresponse.js +2 -6
  101. package/dist/esm/models/accountstatementlistresponse.js.map +1 -1
  102. package/dist/esm/models/businessbalancedto.d.ts +2 -2
  103. package/dist/esm/models/businessbalancedto.d.ts.map +1 -1
  104. package/dist/esm/models/businessbalancedto.js +4 -2
  105. package/dist/esm/models/businessbalancedto.js.map +1 -1
  106. package/dist/esm/models/businessbalancesummarydto.d.ts +1 -1
  107. package/dist/esm/models/businessbalancesummarydto.d.ts.map +1 -1
  108. package/dist/esm/models/businessbalancesummarydto.js +2 -1
  109. package/dist/esm/models/businessbalancesummarydto.js.map +1 -1
  110. package/dist/esm/models/businesslistresponsedto.d.ts +2 -5
  111. package/dist/esm/models/businesslistresponsedto.d.ts.map +1 -1
  112. package/dist/esm/models/businesslistresponsedto.js +2 -6
  113. package/dist/esm/models/businesslistresponsedto.js.map +1 -1
  114. package/dist/esm/models/createoriginationofferdto.d.ts +8 -8
  115. package/dist/esm/models/createoriginationofferdto.d.ts.map +1 -1
  116. package/dist/esm/models/createoriginationofferdto.js +8 -5
  117. package/dist/esm/models/createoriginationofferdto.js.map +1 -1
  118. package/dist/esm/models/createsupplementaldatadto.d.ts +64 -0
  119. package/dist/esm/models/createsupplementaldatadto.d.ts.map +1 -0
  120. package/dist/esm/models/createsupplementaldatadto.js +48 -0
  121. package/dist/esm/models/createsupplementaldatadto.js.map +1 -0
  122. package/dist/esm/models/financialaccountdatadto.d.ts +2 -2
  123. package/dist/esm/models/financialaccountdatadto.d.ts.map +1 -1
  124. package/dist/esm/models/financialaccountdatadto.js +4 -2
  125. package/dist/esm/models/financialaccountdatadto.js.map +1 -1
  126. package/dist/esm/models/increaseaccountstatement.d.ts +49 -0
  127. package/dist/esm/models/increaseaccountstatement.d.ts.map +1 -0
  128. package/dist/esm/models/increaseaccountstatement.js +34 -0
  129. package/dist/esm/models/increaseaccountstatement.js.map +1 -0
  130. package/dist/esm/models/increasetransactiondto.d.ts +1 -1
  131. package/dist/esm/models/increasetransactiondto.d.ts.map +1 -1
  132. package/dist/esm/models/increasetransactiondto.js +2 -1
  133. package/dist/esm/models/increasetransactiondto.js.map +1 -1
  134. package/dist/esm/models/index.d.ts +3 -0
  135. package/dist/esm/models/index.d.ts.map +1 -1
  136. package/dist/esm/models/index.js +3 -0
  137. package/dist/esm/models/index.js.map +1 -1
  138. package/dist/esm/models/operations/businessescontrollercreatesupplementaldata.d.ts +23 -0
  139. package/dist/esm/models/operations/businessescontrollercreatesupplementaldata.d.ts.map +1 -0
  140. package/dist/esm/models/operations/businessescontrollercreatesupplementaldata.js +21 -0
  141. package/dist/esm/models/operations/businessescontrollercreatesupplementaldata.js.map +1 -0
  142. package/dist/esm/models/operations/index.d.ts +1 -0
  143. package/dist/esm/models/operations/index.d.ts.map +1 -1
  144. package/dist/esm/models/operations/index.js +1 -0
  145. package/dist/esm/models/operations/index.js.map +1 -1
  146. package/dist/esm/models/originationbalancedto.d.ts +1 -1
  147. package/dist/esm/models/originationbalancedto.d.ts.map +1 -1
  148. package/dist/esm/models/originationbalancedto.js +2 -2
  149. package/dist/esm/models/originationbalancedto.js.map +1 -1
  150. package/dist/esm/models/paymentintentresponsedto.d.ts +1 -1
  151. package/dist/esm/models/paymentintentresponsedto.d.ts.map +1 -1
  152. package/dist/esm/models/paymentintentresponsedto.js +2 -1
  153. package/dist/esm/models/paymentintentresponsedto.js.map +1 -1
  154. package/dist/esm/models/paymentraildatadto.d.ts +2 -2
  155. package/dist/esm/models/paymentraildatadto.d.ts.map +1 -1
  156. package/dist/esm/models/paymentraildatadto.js +4 -2
  157. package/dist/esm/models/paymentraildatadto.js.map +1 -1
  158. package/dist/esm/models/platformcomponentsdto.d.ts +1 -1
  159. package/dist/esm/models/platformcomponentsdto.d.ts.map +1 -1
  160. package/dist/esm/models/platformcomponentsdto.js +6 -1
  161. package/dist/esm/models/platformcomponentsdto.js.map +1 -1
  162. package/dist/esm/models/startunderwritingdto.d.ts +2 -2
  163. package/dist/esm/models/startunderwritingdto.d.ts.map +1 -1
  164. package/dist/esm/models/startunderwritingdto.js +6 -1
  165. package/dist/esm/models/startunderwritingdto.js.map +1 -1
  166. package/dist/esm/models/supplementaldataresponsedto.d.ts +87 -0
  167. package/dist/esm/models/supplementaldataresponsedto.d.ts.map +1 -0
  168. package/dist/esm/models/supplementaldataresponsedto.js +67 -0
  169. package/dist/esm/models/supplementaldataresponsedto.js.map +1 -0
  170. package/dist/esm/models/underwritingresponsedto.d.ts +2 -2
  171. package/dist/esm/models/underwritingresponsedto.d.ts.map +1 -1
  172. package/dist/esm/models/underwritingresponsedto.js +4 -2
  173. package/dist/esm/models/underwritingresponsedto.js.map +1 -1
  174. package/dist/esm/models/underwritingstatusdto.d.ts +2 -2
  175. package/dist/esm/models/underwritingstatusdto.d.ts.map +1 -1
  176. package/dist/esm/models/underwritingstatusdto.js +4 -2
  177. package/dist/esm/models/underwritingstatusdto.js.map +1 -1
  178. package/dist/esm/sdk/businesses.d.ts +7 -0
  179. package/dist/esm/sdk/businesses.d.ts.map +1 -1
  180. package/dist/esm/sdk/businesses.js +10 -0
  181. package/dist/esm/sdk/businesses.js.map +1 -1
  182. package/jsr.json +1 -1
  183. package/package.json +1 -1
  184. package/src/funcs/businessesSubmitSupplementalData.ts +188 -0
  185. package/src/lib/config.ts +2 -2
  186. package/src/models/accountstatementlistresponse.ts +6 -21
  187. package/src/models/businessbalancedto.ts +6 -4
  188. package/src/models/businessbalancesummarydto.ts +3 -2
  189. package/src/models/businesslistresponsedto.ts +6 -21
  190. package/src/models/createoriginationofferdto.ts +16 -13
  191. package/src/models/createsupplementaldatadto.ts +107 -0
  192. package/src/models/financialaccountdatadto.ts +6 -4
  193. package/src/models/increaseaccountstatement.ts +91 -0
  194. package/src/models/increasetransactiondto.ts +3 -2
  195. package/src/models/index.ts +3 -0
  196. package/src/models/operations/businessescontrollercreatesupplementaldata.ts +54 -0
  197. package/src/models/operations/index.ts +1 -0
  198. package/src/models/originationbalancedto.ts +3 -3
  199. package/src/models/paymentintentresponsedto.ts +3 -2
  200. package/src/models/paymentraildatadto.ts +6 -4
  201. package/src/models/platformcomponentsdto.ts +7 -2
  202. package/src/models/startunderwritingdto.ts +8 -3
  203. package/src/models/supplementaldataresponsedto.ts +134 -0
  204. package/src/models/underwritingresponsedto.ts +6 -4
  205. package/src/models/underwritingstatusdto.ts +6 -4
  206. package/src/sdk/businesses.ts +18 -0
@@ -0,0 +1,91 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import * as types from "../types/primitives.js";
10
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
11
+
12
+ export type IncreaseAccountStatement = {
13
+ /**
14
+ * The ID of the account statement
15
+ */
16
+ id: string;
17
+ /**
18
+ * Type of the resource
19
+ */
20
+ object: string;
21
+ /**
22
+ * The ID of the account
23
+ */
24
+ accountId: string;
25
+ /**
26
+ * The date the account statement was created
27
+ */
28
+ createdAt: string;
29
+ /**
30
+ * The ID of the file
31
+ */
32
+ fileId: string;
33
+ /**
34
+ * The start date of the statement period
35
+ */
36
+ statementPeriodStart: string;
37
+ /**
38
+ * The end date of the statement period
39
+ */
40
+ statementPeriodEnd: string;
41
+ /**
42
+ * The starting balance of the account statement
43
+ */
44
+ startingBalance: number;
45
+ /**
46
+ * The ending balance of the account statement
47
+ */
48
+ endingBalance: number;
49
+ /**
50
+ * The type of the account statement
51
+ */
52
+ type: string;
53
+ };
54
+
55
+ /** @internal */
56
+ export const IncreaseAccountStatement$inboundSchema: z.ZodType<
57
+ IncreaseAccountStatement,
58
+ z.ZodTypeDef,
59
+ unknown
60
+ > = z.object({
61
+ id: types.string(),
62
+ object: types.string(),
63
+ account_id: types.string(),
64
+ created_at: types.string(),
65
+ file_id: types.string(),
66
+ statement_period_start: types.string(),
67
+ statement_period_end: types.string(),
68
+ starting_balance: types.number(),
69
+ ending_balance: types.number(),
70
+ type: types.string(),
71
+ }).transform((v) => {
72
+ return remap$(v, {
73
+ "account_id": "accountId",
74
+ "created_at": "createdAt",
75
+ "file_id": "fileId",
76
+ "statement_period_start": "statementPeriodStart",
77
+ "statement_period_end": "statementPeriodEnd",
78
+ "starting_balance": "startingBalance",
79
+ "ending_balance": "endingBalance",
80
+ });
81
+ });
82
+
83
+ export function increaseAccountStatementFromJSON(
84
+ jsonString: string,
85
+ ): SafeParseResult<IncreaseAccountStatement, SDKValidationError> {
86
+ return safeParse(
87
+ jsonString,
88
+ (x) => IncreaseAccountStatement$inboundSchema.parse(JSON.parse(x)),
89
+ `Failed to parse 'IncreaseAccountStatement' from JSON`,
90
+ );
91
+ }
@@ -29,7 +29,7 @@ export type IncreaseTransactionDto = {
29
29
  /**
30
30
  * Transaction ID from Increase
31
31
  */
32
- transaction: string;
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
- transaction: types.string(),
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",
@@ -49,6 +49,7 @@ export * from "./createplatformsettingsdto.js";
49
49
  export * from "./createportfoliodto.js";
50
50
  export * from "./createprogramdto.js";
51
51
  export * from "./createprogramsettingdto.js";
52
+ export * from "./createsupplementaldatadto.js";
52
53
  export * from "./customertype.js";
53
54
  export * from "./delaybatchtimeframedto.js";
54
55
  export * from "./delayfundingconfigdto.js";
@@ -75,6 +76,7 @@ export * from "./getvirtualaccountinformationresponsedto.js";
75
76
  export * from "./holdreleasebalanceupdaterequest.js";
76
77
  export * from "./holdresponsedto.js";
77
78
  export * from "./holdsettingsdto.js";
79
+ export * from "./increaseaccountstatement.js";
78
80
  export * from "./increasedatadto.js";
79
81
  export * from "./increasefilelink.js";
80
82
  export * from "./increasetransactiondto.js";
@@ -150,6 +152,7 @@ export * from "./spendcapacityenum.js";
150
152
  export * from "./startunderwritingdto.js";
151
153
  export * from "./statusruledto.js";
152
154
  export * from "./statusruleresponsedto.js";
155
+ export * from "./supplementaldataresponsedto.js";
153
156
  export * from "./termssettingsdto.js";
154
157
  export * from "./termssettingsrecipientdto.js";
155
158
  export * from "./transactionsettingsdto.js";
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import * as models from "../index.js";
8
+
9
+ export type BusinessesControllerCreateSupplementalDataRequest = {
10
+ /**
11
+ * The ID of the business
12
+ */
13
+ id: string;
14
+ /**
15
+ * Unique key for idempotency
16
+ */
17
+ idempotencyKey: string;
18
+ createSupplementalDataDto: models.CreateSupplementalDataDto;
19
+ };
20
+
21
+ /** @internal */
22
+ export type BusinessesControllerCreateSupplementalDataRequest$Outbound = {
23
+ id: string;
24
+ "Idempotency-Key": string;
25
+ CreateSupplementalDataDto: models.CreateSupplementalDataDto$Outbound;
26
+ };
27
+
28
+ /** @internal */
29
+ export const BusinessesControllerCreateSupplementalDataRequest$outboundSchema:
30
+ z.ZodType<
31
+ BusinessesControllerCreateSupplementalDataRequest$Outbound,
32
+ z.ZodTypeDef,
33
+ BusinessesControllerCreateSupplementalDataRequest
34
+ > = z.object({
35
+ id: z.string(),
36
+ idempotencyKey: z.string(),
37
+ createSupplementalDataDto: models.CreateSupplementalDataDto$outboundSchema,
38
+ }).transform((v) => {
39
+ return remap$(v, {
40
+ idempotencyKey: "Idempotency-Key",
41
+ createSupplementalDataDto: "CreateSupplementalDataDto",
42
+ });
43
+ });
44
+
45
+ export function businessesControllerCreateSupplementalDataRequestToJSON(
46
+ businessesControllerCreateSupplementalDataRequest:
47
+ BusinessesControllerCreateSupplementalDataRequest,
48
+ ): string {
49
+ return JSON.stringify(
50
+ BusinessesControllerCreateSupplementalDataRequest$outboundSchema.parse(
51
+ businessesControllerCreateSupplementalDataRequest,
52
+ ),
53
+ );
54
+ }
@@ -17,6 +17,7 @@ export * from "./applicationscontrollersubmitapplication.js";
17
17
  export * from "./applicationscontrollerupdate.js";
18
18
  export * from "./businessescontrollercreate.js";
19
19
  export * from "./businessescontrollercreatebulk.js";
20
+ export * from "./businessescontrollercreatesupplementaldata.js";
20
21
  export * from "./businessescontrollerfindall.js";
21
22
  export * from "./businessescontrollerfindone.js";
22
23
  export * from "./businessescontrollergetaccountholderinformation.js";
@@ -41,7 +41,7 @@ export type OriginationBalanceDto = {
41
41
  /**
42
42
  * Identifier for the associated payment intent
43
43
  */
44
- paymentIntent?: string | undefined;
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
- payment_intent: types.optional(types.string()),
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
- "payment_intent": "paymentIntent",
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
- platform?: string | undefined;
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
- platform: types.optional(types.string()),
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
- business?: string | undefined;
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
- business: types.optional(types.string()),
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
- business?: string | undefined;
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
- business: z.string().optional(),
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
- platform: string;
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
- platform: types.string(),
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
- program: string;
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
- program: string;
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
- program: z.string(),
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(
@@ -0,0 +1,134 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { ClosedEnum } from "../types/enums.js";
9
+ import { Result as SafeParseResult } from "../types/fp.js";
10
+ import * as types from "../types/primitives.js";
11
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
12
+
13
+ /**
14
+ * Data source
15
+ */
16
+ export const SupplementalDataResponseDtoSource = {
17
+ Plaid: "PLAID",
18
+ Codat: "CODAT",
19
+ TaktileResponse: "TAKTILE_RESPONSE",
20
+ TaktileRequest: "TAKTILE_REQUEST",
21
+ Transcredit: "TRANSCREDIT",
22
+ TranscreditScores: "TRANSCREDIT_SCORES",
23
+ Heron: "HERON",
24
+ HeronPdf: "HERON_PDF",
25
+ OpenBanking: "OPEN_BANKING",
26
+ Alloy: "ALLOY",
27
+ CodatBalanceSheet: "CODAT_BALANCE_SHEET",
28
+ CodatAccountBalance: "CODAT_ACCOUNT_BALANCE",
29
+ CodatBankingTransactions: "CODAT_BANKING_TRANSACTIONS",
30
+ CodatPl: "CODAT_PL",
31
+ CodatAgedCreditor: "CODAT_AGED_CREDITOR",
32
+ CodatAgedDebtor: "CODAT_AGED_DEBTOR",
33
+ QuickbooksBalanceSheet: "QUICKBOOKS_BALANCE_SHEET",
34
+ QuickbooksPl: "QUICKBOOKS_PL",
35
+ FinancialStatementMetrics: "FINANCIAL_STATEMENT_METRICS",
36
+ PdfBalanceSheet: "PDF_BALANCE_SHEET",
37
+ PdfProfitLoss: "PDF_PROFIT_LOSS",
38
+ StripeFinancialConnectionsBalance: "STRIPE_FINANCIAL_CONNECTIONS_BALANCE",
39
+ StripeFinancialConnectionsTransactions:
40
+ "STRIPE_FINANCIAL_CONNECTIONS_TRANSACTIONS",
41
+ } as const;
42
+ /**
43
+ * Data source
44
+ */
45
+ export type SupplementalDataResponseDtoSource = ClosedEnum<
46
+ typeof SupplementalDataResponseDtoSource
47
+ >;
48
+
49
+ /**
50
+ * Processing status
51
+ */
52
+ export const SupplementalDataResponseDtoStatus = {
53
+ Pending: "PENDING",
54
+ Success: "SUCCESS",
55
+ Error: "ERROR",
56
+ TimeOut: "TIME_OUT",
57
+ } as const;
58
+ /**
59
+ * Processing status
60
+ */
61
+ export type SupplementalDataResponseDtoStatus = ClosedEnum<
62
+ typeof SupplementalDataResponseDtoStatus
63
+ >;
64
+
65
+ export type SupplementalDataResponseDto = {
66
+ /**
67
+ * Unique identifier
68
+ */
69
+ id: string;
70
+ /**
71
+ * Object type
72
+ */
73
+ object: string;
74
+ /**
75
+ * Business ID
76
+ */
77
+ business: string;
78
+ /**
79
+ * Data source
80
+ */
81
+ source: SupplementalDataResponseDtoSource;
82
+ /**
83
+ * Processing status
84
+ */
85
+ status: SupplementalDataResponseDtoStatus;
86
+ /**
87
+ * Creation timestamp
88
+ */
89
+ createdAt: Date;
90
+ /**
91
+ * Last update timestamp
92
+ */
93
+ updatedAt: Date;
94
+ };
95
+
96
+ /** @internal */
97
+ export const SupplementalDataResponseDtoSource$inboundSchema: z.ZodNativeEnum<
98
+ typeof SupplementalDataResponseDtoSource
99
+ > = z.nativeEnum(SupplementalDataResponseDtoSource);
100
+
101
+ /** @internal */
102
+ export const SupplementalDataResponseDtoStatus$inboundSchema: z.ZodNativeEnum<
103
+ typeof SupplementalDataResponseDtoStatus
104
+ > = z.nativeEnum(SupplementalDataResponseDtoStatus);
105
+
106
+ /** @internal */
107
+ export const SupplementalDataResponseDto$inboundSchema: z.ZodType<
108
+ SupplementalDataResponseDto,
109
+ z.ZodTypeDef,
110
+ unknown
111
+ > = z.object({
112
+ id: types.string(),
113
+ object: types.string(),
114
+ business: types.string(),
115
+ source: SupplementalDataResponseDtoSource$inboundSchema,
116
+ status: SupplementalDataResponseDtoStatus$inboundSchema,
117
+ created_at: types.date(),
118
+ updated_at: types.date(),
119
+ }).transform((v) => {
120
+ return remap$(v, {
121
+ "created_at": "createdAt",
122
+ "updated_at": "updatedAt",
123
+ });
124
+ });
125
+
126
+ export function supplementalDataResponseDtoFromJSON(
127
+ jsonString: string,
128
+ ): SafeParseResult<SupplementalDataResponseDto, SDKValidationError> {
129
+ return safeParse(
130
+ jsonString,
131
+ (x) => SupplementalDataResponseDto$inboundSchema.parse(JSON.parse(x)),
132
+ `Failed to parse 'SupplementalDataResponseDto' from JSON`,
133
+ );
134
+ }
@@ -97,11 +97,11 @@ export type UnderwritingResponseDto = {
97
97
  /**
98
98
  * The ID of the business that was underwritten
99
99
  */
100
- business?: string | undefined;
100
+ businessId?: string | undefined;
101
101
  /**
102
102
  * The ID of the program used for underwriting
103
103
  */
104
- program?: string | undefined;
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
- business: types.optional(types.string()),
187
- program: types.optional(types.string()),
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
- business: string;
58
+ businessId: string;
59
59
  /**
60
60
  * The ID of the program
61
61
  */
62
- program: string;
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
- business: types.string(),
153
- program: types.string(),
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",
@@ -16,6 +16,7 @@ import { businessesGetVirtualAccountInformation } from "../funcs/businessesGetVi
16
16
  import { businessesList } from "../funcs/businessesList.js";
17
17
  import { businessesSearch } from "../funcs/businessesSearch.js";
18
18
  import { businessesStartUnderwriting } from "../funcs/businessesStartUnderwriting.js";
19
+ import { businessesSubmitSupplementalData } from "../funcs/businessesSubmitSupplementalData.js";
19
20
  import { businessesUpdate } from "../funcs/businessesUpdate.js";
20
21
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
21
22
  import * as models from "../models/index.js";
@@ -265,4 +266,21 @@ export class Businesses extends ClientSDK {
265
266
  options,
266
267
  ));
267
268
  }
269
+
270
+ /**
271
+ * Submit supplemental data for a business
272
+ *
273
+ * @remarks
274
+ * Provides supplemental data used for underwriting a business. Data is processed by source-specific handlers.
275
+ */
276
+ async submitSupplementalData(
277
+ request: operations.BusinessesControllerCreateSupplementalDataRequest,
278
+ options?: RequestOptions,
279
+ ): Promise<models.SupplementalDataResponseDto> {
280
+ return unwrapAsync(businessesSubmitSupplementalData(
281
+ this,
282
+ request,
283
+ options,
284
+ ));
285
+ }
268
286
  }