@apideck/unify 0.29.8 → 0.29.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/docs/sdks/bankaccounts/README.md +564 -0
- package/examples/accountingTaxRatesList.example.ts +1 -1
- package/examples/package-lock.json +1 -1
- package/funcs/accountingBankAccountsCreate.d.ts +18 -0
- package/funcs/accountingBankAccountsCreate.d.ts.map +1 -0
- package/funcs/accountingBankAccountsCreate.js +139 -0
- package/funcs/accountingBankAccountsCreate.js.map +1 -0
- package/funcs/accountingBankAccountsDelete.d.ts +18 -0
- package/funcs/accountingBankAccountsDelete.d.ts.map +1 -0
- package/funcs/accountingBankAccountsDelete.js +142 -0
- package/funcs/accountingBankAccountsDelete.js.map +1 -0
- package/funcs/accountingBankAccountsGet.d.ts +18 -0
- package/funcs/accountingBankAccountsGet.d.ts.map +1 -0
- package/funcs/accountingBankAccountsGet.js +143 -0
- package/funcs/accountingBankAccountsGet.js.map +1 -0
- package/funcs/accountingBankAccountsList.d.ts +21 -0
- package/funcs/accountingBankAccountsList.d.ts.map +1 -0
- package/funcs/accountingBankAccountsList.js +168 -0
- package/funcs/accountingBankAccountsList.js.map +1 -0
- package/funcs/accountingBankAccountsUpdate.d.ts +18 -0
- package/funcs/accountingBankAccountsUpdate.d.ts.map +1 -0
- package/funcs/accountingBankAccountsUpdate.js +145 -0
- package/funcs/accountingBankAccountsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/accountingbankaccount.d.ts +348 -0
- package/models/components/accountingbankaccount.d.ts.map +1 -0
- package/models/components/accountingbankaccount.js +298 -0
- package/models/components/accountingbankaccount.js.map +1 -0
- package/models/components/bankaccountsfilter.d.ts +72 -0
- package/models/components/bankaccountsfilter.d.ts.map +1 -0
- package/models/components/bankaccountsfilter.js +94 -0
- package/models/components/bankaccountsfilter.js.map +1 -0
- package/models/components/bankaccountssort.d.ts +70 -0
- package/models/components/bankaccountssort.d.ts.map +1 -0
- package/models/components/bankaccountssort.js +95 -0
- package/models/components/bankaccountssort.js.map +1 -0
- package/models/components/createbankaccountresponse.d.ts +61 -0
- package/models/components/createbankaccountresponse.d.ts.map +1 -0
- package/models/components/createbankaccountresponse.js +89 -0
- package/models/components/createbankaccountresponse.js.map +1 -0
- package/models/components/deletebankaccountresponse.d.ts +61 -0
- package/models/components/deletebankaccountresponse.d.ts.map +1 -0
- package/models/components/deletebankaccountresponse.js +89 -0
- package/models/components/deletebankaccountresponse.js.map +1 -0
- package/models/components/getbankaccountresponse.d.ts +58 -0
- package/models/components/getbankaccountresponse.d.ts.map +1 -0
- package/models/components/getbankaccountresponse.js +89 -0
- package/models/components/getbankaccountresponse.js.map +1 -0
- package/models/components/getbankaccountsresponse.d.ts +70 -0
- package/models/components/getbankaccountsresponse.d.ts.map +1 -0
- package/models/components/getbankaccountsresponse.js +95 -0
- package/models/components/getbankaccountsresponse.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/logsfilter.d.ts +8 -0
- package/models/components/logsfilter.d.ts.map +1 -1
- package/models/components/logsfilter.js +4 -0
- package/models/components/logsfilter.js.map +1 -1
- package/models/components/updatebankaccountresponse.d.ts +61 -0
- package/models/components/updatebankaccountresponse.d.ts.map +1 -0
- package/models/components/updatebankaccountresponse.js +89 -0
- package/models/components/updatebankaccountresponse.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/accountingbankaccountsadd.d.ts +118 -0
- package/models/operations/accountingbankaccountsadd.d.ts.map +1 -0
- package/models/operations/accountingbankaccountsadd.js +163 -0
- package/models/operations/accountingbankaccountsadd.js.map +1 -0
- package/models/operations/accountingbankaccountsall.d.ts +150 -0
- package/models/operations/accountingbankaccountsall.d.ts.map +1 -0
- package/models/operations/accountingbankaccountsall.js +173 -0
- package/models/operations/accountingbankaccountsall.js.map +1 -0
- package/models/operations/accountingbankaccountsdelete.d.ts +121 -0
- package/models/operations/accountingbankaccountsdelete.d.ts.map +1 -0
- package/models/operations/accountingbankaccountsdelete.js +155 -0
- package/models/operations/accountingbankaccountsdelete.js.map +1 -0
- package/models/operations/accountingbankaccountsone.d.ts +126 -0
- package/models/operations/accountingbankaccountsone.d.ts.map +1 -0
- package/models/operations/accountingbankaccountsone.js +157 -0
- package/models/operations/accountingbankaccountsone.js.map +1 -0
- package/models/operations/accountingbankaccountsupdate.d.ts +123 -0
- package/models/operations/accountingbankaccountsupdate.d.ts.map +1 -0
- package/models/operations/accountingbankaccountsupdate.js +165 -0
- package/models/operations/accountingbankaccountsupdate.js.map +1 -0
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/accounting.d.ts +3 -0
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +4 -0
- package/sdk/accounting.js.map +1 -1
- package/sdk/bankaccounts.d.ts +43 -0
- package/sdk/bankaccounts.d.ts.map +1 -0
- package/sdk/bankaccounts.js +63 -0
- package/sdk/bankaccounts.js.map +1 -0
- package/src/__tests__/bankaccounts.test.ts +293 -0
- package/src/funcs/accountingBankAccountsCreate.ts +225 -0
- package/src/funcs/accountingBankAccountsDelete.ts +231 -0
- package/src/funcs/accountingBankAccountsGet.ts +230 -0
- package/src/funcs/accountingBankAccountsList.ts +303 -0
- package/src/funcs/accountingBankAccountsUpdate.ts +234 -0
- package/src/lib/config.ts +4 -4
- package/src/models/components/accountingbankaccount.ts +576 -0
- package/src/models/components/bankaccountsfilter.ts +113 -0
- package/src/models/components/bankaccountssort.ts +113 -0
- package/src/models/components/createbankaccountresponse.ts +122 -0
- package/src/models/components/deletebankaccountresponse.ts +122 -0
- package/src/models/components/getbankaccountresponse.ts +119 -0
- package/src/models/components/getbankaccountsresponse.ts +145 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/logsfilter.ts +12 -0
- package/src/models/components/updatebankaccountresponse.ts +122 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/accountingbankaccountsadd.ts +271 -0
- package/src/models/operations/accountingbankaccountsall.ts +309 -0
- package/src/models/operations/accountingbankaccountsdelete.ts +274 -0
- package/src/models/operations/accountingbankaccountsone.ts +273 -0
- package/src/models/operations/accountingbankaccountsupdate.ts +286 -0
- package/src/models/operations/index.ts +5 -0
- package/src/sdk/accounting.ts +6 -0
- package/src/sdk/bankaccounts.ts +105 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { Currency } from "./currency.js";
|
|
6
|
+
import { CustomField, CustomField$Outbound } from "./customfield.js";
|
|
7
|
+
/**
|
|
8
|
+
* The type of bank account
|
|
9
|
+
*/
|
|
10
|
+
export declare const AccountingBankAccountAccountType: {
|
|
11
|
+
readonly Checking: "checking";
|
|
12
|
+
readonly Savings: "savings";
|
|
13
|
+
readonly CreditCard: "credit_card";
|
|
14
|
+
readonly MoneyMarket: "money_market";
|
|
15
|
+
readonly LineOfCredit: "line_of_credit";
|
|
16
|
+
readonly Other: "other";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The type of bank account
|
|
20
|
+
*/
|
|
21
|
+
export type AccountingBankAccountAccountType = ClosedEnum<typeof AccountingBankAccountAccountType>;
|
|
22
|
+
/**
|
|
23
|
+
* The status of the bank account
|
|
24
|
+
*/
|
|
25
|
+
export declare const AccountingBankAccountStatus: {
|
|
26
|
+
readonly Active: "active";
|
|
27
|
+
readonly Inactive: "inactive";
|
|
28
|
+
readonly Closed: "closed";
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* The status of the bank account
|
|
32
|
+
*/
|
|
33
|
+
export type AccountingBankAccountStatus = ClosedEnum<typeof AccountingBankAccountStatus>;
|
|
34
|
+
export type AccountingBankAccount = {
|
|
35
|
+
/**
|
|
36
|
+
* A unique identifier for an object.
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* Display ID for the bank account
|
|
41
|
+
*/
|
|
42
|
+
displayId?: string | null | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The name of the bank account as it appears in the accounting system
|
|
45
|
+
*/
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* The bank account number
|
|
49
|
+
*/
|
|
50
|
+
accountNumber?: string | null | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* The type of bank account
|
|
53
|
+
*/
|
|
54
|
+
accountType?: AccountingBankAccountAccountType | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the bank or financial institution
|
|
57
|
+
*/
|
|
58
|
+
bankName?: string | null | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
|
|
61
|
+
*/
|
|
62
|
+
currency?: Currency | null | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* The current balance of the bank account
|
|
65
|
+
*/
|
|
66
|
+
balance?: number | null | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* The available balance (considering pending transactions and overdraft)
|
|
69
|
+
*/
|
|
70
|
+
availableBalance?: number | null | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* The overdraft limit for the account
|
|
73
|
+
*/
|
|
74
|
+
overdraftLimit?: number | null | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Bank routing number (US)
|
|
77
|
+
*/
|
|
78
|
+
routingNumber?: string | null | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* International Bank Account Number
|
|
81
|
+
*/
|
|
82
|
+
iban?: string | null | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Bank Identifier Code / SWIFT Code
|
|
85
|
+
*/
|
|
86
|
+
bic?: string | null | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Bank State Branch number (Australia/New Zealand)
|
|
89
|
+
*/
|
|
90
|
+
bsbNumber?: string | null | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Bank branch identifier
|
|
93
|
+
*/
|
|
94
|
+
branchIdentifier?: string | null | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Bank code assigned by central bank
|
|
97
|
+
*/
|
|
98
|
+
bankCode?: string | null | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Country code according to ISO 3166-1 alpha-2.
|
|
101
|
+
*/
|
|
102
|
+
country?: string | null | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* The status of the bank account
|
|
105
|
+
*/
|
|
106
|
+
status?: AccountingBankAccountStatus | null | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Description or notes about the bank account
|
|
109
|
+
*/
|
|
110
|
+
description?: string | null | undefined;
|
|
111
|
+
customFields?: Array<CustomField> | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* When custom mappings are configured on the resource, the result is included here.
|
|
114
|
+
*/
|
|
115
|
+
customMappings?: {
|
|
116
|
+
[k: string]: any;
|
|
117
|
+
} | null | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* The date and time when the object was created.
|
|
120
|
+
*/
|
|
121
|
+
createdAt?: Date | null | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* The date and time when the object was last updated.
|
|
124
|
+
*/
|
|
125
|
+
updatedAt?: Date | null | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* The user who created the object.
|
|
128
|
+
*/
|
|
129
|
+
createdBy?: string | null | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* The user who last updated the object.
|
|
132
|
+
*/
|
|
133
|
+
updatedBy?: string | null | undefined;
|
|
134
|
+
};
|
|
135
|
+
export type AccountingBankAccountInput = {
|
|
136
|
+
/**
|
|
137
|
+
* Display ID for the bank account
|
|
138
|
+
*/
|
|
139
|
+
displayId?: string | null | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* The name of the bank account as it appears in the accounting system
|
|
142
|
+
*/
|
|
143
|
+
name?: string | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* The bank account number
|
|
146
|
+
*/
|
|
147
|
+
accountNumber?: string | null | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* The type of bank account
|
|
150
|
+
*/
|
|
151
|
+
accountType?: AccountingBankAccountAccountType | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* The name of the bank or financial institution
|
|
154
|
+
*/
|
|
155
|
+
bankName?: string | null | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
|
|
158
|
+
*/
|
|
159
|
+
currency?: Currency | null | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* The current balance of the bank account
|
|
162
|
+
*/
|
|
163
|
+
balance?: number | null | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* The available balance (considering pending transactions and overdraft)
|
|
166
|
+
*/
|
|
167
|
+
availableBalance?: number | null | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* The overdraft limit for the account
|
|
170
|
+
*/
|
|
171
|
+
overdraftLimit?: number | null | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* Bank routing number (US)
|
|
174
|
+
*/
|
|
175
|
+
routingNumber?: string | null | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* International Bank Account Number
|
|
178
|
+
*/
|
|
179
|
+
iban?: string | null | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* Bank Identifier Code / SWIFT Code
|
|
182
|
+
*/
|
|
183
|
+
bic?: string | null | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* Bank State Branch number (Australia/New Zealand)
|
|
186
|
+
*/
|
|
187
|
+
bsbNumber?: string | null | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* Bank branch identifier
|
|
190
|
+
*/
|
|
191
|
+
branchIdentifier?: string | null | undefined;
|
|
192
|
+
/**
|
|
193
|
+
* Bank code assigned by central bank
|
|
194
|
+
*/
|
|
195
|
+
bankCode?: string | null | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* Country code according to ISO 3166-1 alpha-2.
|
|
198
|
+
*/
|
|
199
|
+
country?: string | null | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* The status of the bank account
|
|
202
|
+
*/
|
|
203
|
+
status?: AccountingBankAccountStatus | null | undefined;
|
|
204
|
+
/**
|
|
205
|
+
* Description or notes about the bank account
|
|
206
|
+
*/
|
|
207
|
+
description?: string | null | undefined;
|
|
208
|
+
customFields?: Array<CustomField> | undefined;
|
|
209
|
+
};
|
|
210
|
+
/** @internal */
|
|
211
|
+
export declare const AccountingBankAccountAccountType$inboundSchema: z.ZodNativeEnum<typeof AccountingBankAccountAccountType>;
|
|
212
|
+
/** @internal */
|
|
213
|
+
export declare const AccountingBankAccountAccountType$outboundSchema: z.ZodNativeEnum<typeof AccountingBankAccountAccountType>;
|
|
214
|
+
/**
|
|
215
|
+
* @internal
|
|
216
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
217
|
+
*/
|
|
218
|
+
export declare namespace AccountingBankAccountAccountType$ {
|
|
219
|
+
/** @deprecated use `AccountingBankAccountAccountType$inboundSchema` instead. */
|
|
220
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
221
|
+
readonly Checking: "checking";
|
|
222
|
+
readonly Savings: "savings";
|
|
223
|
+
readonly CreditCard: "credit_card";
|
|
224
|
+
readonly MoneyMarket: "money_market";
|
|
225
|
+
readonly LineOfCredit: "line_of_credit";
|
|
226
|
+
readonly Other: "other";
|
|
227
|
+
}>;
|
|
228
|
+
/** @deprecated use `AccountingBankAccountAccountType$outboundSchema` instead. */
|
|
229
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
230
|
+
readonly Checking: "checking";
|
|
231
|
+
readonly Savings: "savings";
|
|
232
|
+
readonly CreditCard: "credit_card";
|
|
233
|
+
readonly MoneyMarket: "money_market";
|
|
234
|
+
readonly LineOfCredit: "line_of_credit";
|
|
235
|
+
readonly Other: "other";
|
|
236
|
+
}>;
|
|
237
|
+
}
|
|
238
|
+
/** @internal */
|
|
239
|
+
export declare const AccountingBankAccountStatus$inboundSchema: z.ZodNativeEnum<typeof AccountingBankAccountStatus>;
|
|
240
|
+
/** @internal */
|
|
241
|
+
export declare const AccountingBankAccountStatus$outboundSchema: z.ZodNativeEnum<typeof AccountingBankAccountStatus>;
|
|
242
|
+
/**
|
|
243
|
+
* @internal
|
|
244
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
245
|
+
*/
|
|
246
|
+
export declare namespace AccountingBankAccountStatus$ {
|
|
247
|
+
/** @deprecated use `AccountingBankAccountStatus$inboundSchema` instead. */
|
|
248
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
249
|
+
readonly Active: "active";
|
|
250
|
+
readonly Inactive: "inactive";
|
|
251
|
+
readonly Closed: "closed";
|
|
252
|
+
}>;
|
|
253
|
+
/** @deprecated use `AccountingBankAccountStatus$outboundSchema` instead. */
|
|
254
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
255
|
+
readonly Active: "active";
|
|
256
|
+
readonly Inactive: "inactive";
|
|
257
|
+
readonly Closed: "closed";
|
|
258
|
+
}>;
|
|
259
|
+
}
|
|
260
|
+
/** @internal */
|
|
261
|
+
export declare const AccountingBankAccount$inboundSchema: z.ZodType<AccountingBankAccount, z.ZodTypeDef, unknown>;
|
|
262
|
+
/** @internal */
|
|
263
|
+
export type AccountingBankAccount$Outbound = {
|
|
264
|
+
id: string;
|
|
265
|
+
display_id?: string | null | undefined;
|
|
266
|
+
name?: string | undefined;
|
|
267
|
+
account_number?: string | null | undefined;
|
|
268
|
+
account_type?: string | undefined;
|
|
269
|
+
bank_name?: string | null | undefined;
|
|
270
|
+
currency?: string | null | undefined;
|
|
271
|
+
balance?: number | null | undefined;
|
|
272
|
+
available_balance?: number | null | undefined;
|
|
273
|
+
overdraft_limit?: number | null | undefined;
|
|
274
|
+
routing_number?: string | null | undefined;
|
|
275
|
+
iban?: string | null | undefined;
|
|
276
|
+
bic?: string | null | undefined;
|
|
277
|
+
bsb_number?: string | null | undefined;
|
|
278
|
+
branch_identifier?: string | null | undefined;
|
|
279
|
+
bank_code?: string | null | undefined;
|
|
280
|
+
country?: string | null | undefined;
|
|
281
|
+
status?: string | null | undefined;
|
|
282
|
+
description?: string | null | undefined;
|
|
283
|
+
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
284
|
+
custom_mappings?: {
|
|
285
|
+
[k: string]: any;
|
|
286
|
+
} | null | undefined;
|
|
287
|
+
created_at?: string | null | undefined;
|
|
288
|
+
updated_at?: string | null | undefined;
|
|
289
|
+
created_by?: string | null | undefined;
|
|
290
|
+
updated_by?: string | null | undefined;
|
|
291
|
+
};
|
|
292
|
+
/** @internal */
|
|
293
|
+
export declare const AccountingBankAccount$outboundSchema: z.ZodType<AccountingBankAccount$Outbound, z.ZodTypeDef, AccountingBankAccount>;
|
|
294
|
+
/**
|
|
295
|
+
* @internal
|
|
296
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
297
|
+
*/
|
|
298
|
+
export declare namespace AccountingBankAccount$ {
|
|
299
|
+
/** @deprecated use `AccountingBankAccount$inboundSchema` instead. */
|
|
300
|
+
const inboundSchema: z.ZodType<AccountingBankAccount, z.ZodTypeDef, unknown>;
|
|
301
|
+
/** @deprecated use `AccountingBankAccount$outboundSchema` instead. */
|
|
302
|
+
const outboundSchema: z.ZodType<AccountingBankAccount$Outbound, z.ZodTypeDef, AccountingBankAccount>;
|
|
303
|
+
/** @deprecated use `AccountingBankAccount$Outbound` instead. */
|
|
304
|
+
type Outbound = AccountingBankAccount$Outbound;
|
|
305
|
+
}
|
|
306
|
+
export declare function accountingBankAccountToJSON(accountingBankAccount: AccountingBankAccount): string;
|
|
307
|
+
export declare function accountingBankAccountFromJSON(jsonString: string): SafeParseResult<AccountingBankAccount, SDKValidationError>;
|
|
308
|
+
/** @internal */
|
|
309
|
+
export declare const AccountingBankAccountInput$inboundSchema: z.ZodType<AccountingBankAccountInput, z.ZodTypeDef, unknown>;
|
|
310
|
+
/** @internal */
|
|
311
|
+
export type AccountingBankAccountInput$Outbound = {
|
|
312
|
+
display_id?: string | null | undefined;
|
|
313
|
+
name?: string | undefined;
|
|
314
|
+
account_number?: string | null | undefined;
|
|
315
|
+
account_type?: string | undefined;
|
|
316
|
+
bank_name?: string | null | undefined;
|
|
317
|
+
currency?: string | null | undefined;
|
|
318
|
+
balance?: number | null | undefined;
|
|
319
|
+
available_balance?: number | null | undefined;
|
|
320
|
+
overdraft_limit?: number | null | undefined;
|
|
321
|
+
routing_number?: string | null | undefined;
|
|
322
|
+
iban?: string | null | undefined;
|
|
323
|
+
bic?: string | null | undefined;
|
|
324
|
+
bsb_number?: string | null | undefined;
|
|
325
|
+
branch_identifier?: string | null | undefined;
|
|
326
|
+
bank_code?: string | null | undefined;
|
|
327
|
+
country?: string | null | undefined;
|
|
328
|
+
status?: string | null | undefined;
|
|
329
|
+
description?: string | null | undefined;
|
|
330
|
+
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
331
|
+
};
|
|
332
|
+
/** @internal */
|
|
333
|
+
export declare const AccountingBankAccountInput$outboundSchema: z.ZodType<AccountingBankAccountInput$Outbound, z.ZodTypeDef, AccountingBankAccountInput>;
|
|
334
|
+
/**
|
|
335
|
+
* @internal
|
|
336
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
337
|
+
*/
|
|
338
|
+
export declare namespace AccountingBankAccountInput$ {
|
|
339
|
+
/** @deprecated use `AccountingBankAccountInput$inboundSchema` instead. */
|
|
340
|
+
const inboundSchema: z.ZodType<AccountingBankAccountInput, z.ZodTypeDef, unknown>;
|
|
341
|
+
/** @deprecated use `AccountingBankAccountInput$outboundSchema` instead. */
|
|
342
|
+
const outboundSchema: z.ZodType<AccountingBankAccountInput$Outbound, z.ZodTypeDef, AccountingBankAccountInput>;
|
|
343
|
+
/** @deprecated use `AccountingBankAccountInput$Outbound` instead. */
|
|
344
|
+
type Outbound = AccountingBankAccountInput$Outbound;
|
|
345
|
+
}
|
|
346
|
+
export declare function accountingBankAccountInputToJSON(accountingBankAccountInput: AccountingBankAccountInput): string;
|
|
347
|
+
export declare function accountingBankAccountInputFromJSON(jsonString: string): SafeParseResult<AccountingBankAccountInput, SDKValidationError>;
|
|
348
|
+
//# sourceMappingURL=accountingbankaccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingbankaccount.d.ts","sourceRoot":"","sources":["../../src/models/components/accountingbankaccount.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,QAAQ,EAGT,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;;CAOnC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,gCAAgC,CACxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;CAI9B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,EA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,EAAE,KAAK,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAmC1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AccountingBankAccountInput$ = exports.AccountingBankAccountInput$outboundSchema = exports.AccountingBankAccountInput$inboundSchema = exports.AccountingBankAccount$ = exports.AccountingBankAccount$outboundSchema = exports.AccountingBankAccount$inboundSchema = exports.AccountingBankAccountStatus$ = exports.AccountingBankAccountStatus$outboundSchema = exports.AccountingBankAccountStatus$inboundSchema = exports.AccountingBankAccountAccountType$ = exports.AccountingBankAccountAccountType$outboundSchema = exports.AccountingBankAccountAccountType$inboundSchema = exports.AccountingBankAccountStatus = exports.AccountingBankAccountAccountType = void 0;
|
|
40
|
+
exports.accountingBankAccountToJSON = accountingBankAccountToJSON;
|
|
41
|
+
exports.accountingBankAccountFromJSON = accountingBankAccountFromJSON;
|
|
42
|
+
exports.accountingBankAccountInputToJSON = accountingBankAccountInputToJSON;
|
|
43
|
+
exports.accountingBankAccountInputFromJSON = accountingBankAccountInputFromJSON;
|
|
44
|
+
const z = __importStar(require("zod"));
|
|
45
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
const currency_js_1 = require("./currency.js");
|
|
48
|
+
const customfield_js_1 = require("./customfield.js");
|
|
49
|
+
/**
|
|
50
|
+
* The type of bank account
|
|
51
|
+
*/
|
|
52
|
+
exports.AccountingBankAccountAccountType = {
|
|
53
|
+
Checking: "checking",
|
|
54
|
+
Savings: "savings",
|
|
55
|
+
CreditCard: "credit_card",
|
|
56
|
+
MoneyMarket: "money_market",
|
|
57
|
+
LineOfCredit: "line_of_credit",
|
|
58
|
+
Other: "other",
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* The status of the bank account
|
|
62
|
+
*/
|
|
63
|
+
exports.AccountingBankAccountStatus = {
|
|
64
|
+
Active: "active",
|
|
65
|
+
Inactive: "inactive",
|
|
66
|
+
Closed: "closed",
|
|
67
|
+
};
|
|
68
|
+
/** @internal */
|
|
69
|
+
exports.AccountingBankAccountAccountType$inboundSchema = z.nativeEnum(exports.AccountingBankAccountAccountType);
|
|
70
|
+
/** @internal */
|
|
71
|
+
exports.AccountingBankAccountAccountType$outboundSchema = exports.AccountingBankAccountAccountType$inboundSchema;
|
|
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
|
+
var AccountingBankAccountAccountType$;
|
|
77
|
+
(function (AccountingBankAccountAccountType$) {
|
|
78
|
+
/** @deprecated use `AccountingBankAccountAccountType$inboundSchema` instead. */
|
|
79
|
+
AccountingBankAccountAccountType$.inboundSchema = exports.AccountingBankAccountAccountType$inboundSchema;
|
|
80
|
+
/** @deprecated use `AccountingBankAccountAccountType$outboundSchema` instead. */
|
|
81
|
+
AccountingBankAccountAccountType$.outboundSchema = exports.AccountingBankAccountAccountType$outboundSchema;
|
|
82
|
+
})(AccountingBankAccountAccountType$ || (exports.AccountingBankAccountAccountType$ = AccountingBankAccountAccountType$ = {}));
|
|
83
|
+
/** @internal */
|
|
84
|
+
exports.AccountingBankAccountStatus$inboundSchema = z.nativeEnum(exports.AccountingBankAccountStatus);
|
|
85
|
+
/** @internal */
|
|
86
|
+
exports.AccountingBankAccountStatus$outboundSchema = exports.AccountingBankAccountStatus$inboundSchema;
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
+
*/
|
|
91
|
+
var AccountingBankAccountStatus$;
|
|
92
|
+
(function (AccountingBankAccountStatus$) {
|
|
93
|
+
/** @deprecated use `AccountingBankAccountStatus$inboundSchema` instead. */
|
|
94
|
+
AccountingBankAccountStatus$.inboundSchema = exports.AccountingBankAccountStatus$inboundSchema;
|
|
95
|
+
/** @deprecated use `AccountingBankAccountStatus$outboundSchema` instead. */
|
|
96
|
+
AccountingBankAccountStatus$.outboundSchema = exports.AccountingBankAccountStatus$outboundSchema;
|
|
97
|
+
})(AccountingBankAccountStatus$ || (exports.AccountingBankAccountStatus$ = AccountingBankAccountStatus$ = {}));
|
|
98
|
+
/** @internal */
|
|
99
|
+
exports.AccountingBankAccount$inboundSchema = z.object({
|
|
100
|
+
id: z.string(),
|
|
101
|
+
display_id: z.nullable(z.string()).optional(),
|
|
102
|
+
name: z.string().optional(),
|
|
103
|
+
account_number: z.nullable(z.string()).optional(),
|
|
104
|
+
account_type: exports.AccountingBankAccountAccountType$inboundSchema.optional(),
|
|
105
|
+
bank_name: z.nullable(z.string()).optional(),
|
|
106
|
+
currency: z.nullable(currency_js_1.Currency$inboundSchema).optional(),
|
|
107
|
+
balance: z.nullable(z.number()).optional(),
|
|
108
|
+
available_balance: z.nullable(z.number()).optional(),
|
|
109
|
+
overdraft_limit: z.nullable(z.number()).optional(),
|
|
110
|
+
routing_number: z.nullable(z.string()).optional(),
|
|
111
|
+
iban: z.nullable(z.string()).optional(),
|
|
112
|
+
bic: z.nullable(z.string()).optional(),
|
|
113
|
+
bsb_number: z.nullable(z.string()).optional(),
|
|
114
|
+
branch_identifier: z.nullable(z.string()).optional(),
|
|
115
|
+
bank_code: z.nullable(z.string()).optional(),
|
|
116
|
+
country: z.nullable(z.string()).optional(),
|
|
117
|
+
status: z.nullable(exports.AccountingBankAccountStatus$inboundSchema).optional(),
|
|
118
|
+
description: z.nullable(z.string()).optional(),
|
|
119
|
+
custom_fields: z.array(customfield_js_1.CustomField$inboundSchema).optional(),
|
|
120
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
121
|
+
created_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
|
|
122
|
+
updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
|
|
123
|
+
created_by: z.nullable(z.string()).optional(),
|
|
124
|
+
updated_by: z.nullable(z.string()).optional(),
|
|
125
|
+
}).transform((v) => {
|
|
126
|
+
return (0, primitives_js_1.remap)(v, {
|
|
127
|
+
"display_id": "displayId",
|
|
128
|
+
"account_number": "accountNumber",
|
|
129
|
+
"account_type": "accountType",
|
|
130
|
+
"bank_name": "bankName",
|
|
131
|
+
"available_balance": "availableBalance",
|
|
132
|
+
"overdraft_limit": "overdraftLimit",
|
|
133
|
+
"routing_number": "routingNumber",
|
|
134
|
+
"bsb_number": "bsbNumber",
|
|
135
|
+
"branch_identifier": "branchIdentifier",
|
|
136
|
+
"bank_code": "bankCode",
|
|
137
|
+
"custom_fields": "customFields",
|
|
138
|
+
"custom_mappings": "customMappings",
|
|
139
|
+
"created_at": "createdAt",
|
|
140
|
+
"updated_at": "updatedAt",
|
|
141
|
+
"created_by": "createdBy",
|
|
142
|
+
"updated_by": "updatedBy",
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
/** @internal */
|
|
146
|
+
exports.AccountingBankAccount$outboundSchema = z.object({
|
|
147
|
+
id: z.string(),
|
|
148
|
+
displayId: z.nullable(z.string()).optional(),
|
|
149
|
+
name: z.string().optional(),
|
|
150
|
+
accountNumber: z.nullable(z.string()).optional(),
|
|
151
|
+
accountType: exports.AccountingBankAccountAccountType$outboundSchema.optional(),
|
|
152
|
+
bankName: z.nullable(z.string()).optional(),
|
|
153
|
+
currency: z.nullable(currency_js_1.Currency$outboundSchema).optional(),
|
|
154
|
+
balance: z.nullable(z.number()).optional(),
|
|
155
|
+
availableBalance: z.nullable(z.number()).optional(),
|
|
156
|
+
overdraftLimit: z.nullable(z.number()).optional(),
|
|
157
|
+
routingNumber: z.nullable(z.string()).optional(),
|
|
158
|
+
iban: z.nullable(z.string()).optional(),
|
|
159
|
+
bic: z.nullable(z.string()).optional(),
|
|
160
|
+
bsbNumber: z.nullable(z.string()).optional(),
|
|
161
|
+
branchIdentifier: z.nullable(z.string()).optional(),
|
|
162
|
+
bankCode: z.nullable(z.string()).optional(),
|
|
163
|
+
country: z.nullable(z.string()).optional(),
|
|
164
|
+
status: z.nullable(exports.AccountingBankAccountStatus$outboundSchema).optional(),
|
|
165
|
+
description: z.nullable(z.string()).optional(),
|
|
166
|
+
customFields: z.array(customfield_js_1.CustomField$outboundSchema).optional(),
|
|
167
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
168
|
+
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
169
|
+
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
170
|
+
createdBy: z.nullable(z.string()).optional(),
|
|
171
|
+
updatedBy: z.nullable(z.string()).optional(),
|
|
172
|
+
}).transform((v) => {
|
|
173
|
+
return (0, primitives_js_1.remap)(v, {
|
|
174
|
+
displayId: "display_id",
|
|
175
|
+
accountNumber: "account_number",
|
|
176
|
+
accountType: "account_type",
|
|
177
|
+
bankName: "bank_name",
|
|
178
|
+
availableBalance: "available_balance",
|
|
179
|
+
overdraftLimit: "overdraft_limit",
|
|
180
|
+
routingNumber: "routing_number",
|
|
181
|
+
bsbNumber: "bsb_number",
|
|
182
|
+
branchIdentifier: "branch_identifier",
|
|
183
|
+
bankCode: "bank_code",
|
|
184
|
+
customFields: "custom_fields",
|
|
185
|
+
customMappings: "custom_mappings",
|
|
186
|
+
createdAt: "created_at",
|
|
187
|
+
updatedAt: "updated_at",
|
|
188
|
+
createdBy: "created_by",
|
|
189
|
+
updatedBy: "updated_by",
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
/**
|
|
193
|
+
* @internal
|
|
194
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
195
|
+
*/
|
|
196
|
+
var AccountingBankAccount$;
|
|
197
|
+
(function (AccountingBankAccount$) {
|
|
198
|
+
/** @deprecated use `AccountingBankAccount$inboundSchema` instead. */
|
|
199
|
+
AccountingBankAccount$.inboundSchema = exports.AccountingBankAccount$inboundSchema;
|
|
200
|
+
/** @deprecated use `AccountingBankAccount$outboundSchema` instead. */
|
|
201
|
+
AccountingBankAccount$.outboundSchema = exports.AccountingBankAccount$outboundSchema;
|
|
202
|
+
})(AccountingBankAccount$ || (exports.AccountingBankAccount$ = AccountingBankAccount$ = {}));
|
|
203
|
+
function accountingBankAccountToJSON(accountingBankAccount) {
|
|
204
|
+
return JSON.stringify(exports.AccountingBankAccount$outboundSchema.parse(accountingBankAccount));
|
|
205
|
+
}
|
|
206
|
+
function accountingBankAccountFromJSON(jsonString) {
|
|
207
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountingBankAccount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountingBankAccount' from JSON`);
|
|
208
|
+
}
|
|
209
|
+
/** @internal */
|
|
210
|
+
exports.AccountingBankAccountInput$inboundSchema = z.object({
|
|
211
|
+
display_id: z.nullable(z.string()).optional(),
|
|
212
|
+
name: z.string().optional(),
|
|
213
|
+
account_number: z.nullable(z.string()).optional(),
|
|
214
|
+
account_type: exports.AccountingBankAccountAccountType$inboundSchema.optional(),
|
|
215
|
+
bank_name: z.nullable(z.string()).optional(),
|
|
216
|
+
currency: z.nullable(currency_js_1.Currency$inboundSchema).optional(),
|
|
217
|
+
balance: z.nullable(z.number()).optional(),
|
|
218
|
+
available_balance: z.nullable(z.number()).optional(),
|
|
219
|
+
overdraft_limit: z.nullable(z.number()).optional(),
|
|
220
|
+
routing_number: z.nullable(z.string()).optional(),
|
|
221
|
+
iban: z.nullable(z.string()).optional(),
|
|
222
|
+
bic: z.nullable(z.string()).optional(),
|
|
223
|
+
bsb_number: z.nullable(z.string()).optional(),
|
|
224
|
+
branch_identifier: z.nullable(z.string()).optional(),
|
|
225
|
+
bank_code: z.nullable(z.string()).optional(),
|
|
226
|
+
country: z.nullable(z.string()).optional(),
|
|
227
|
+
status: z.nullable(exports.AccountingBankAccountStatus$inboundSchema).optional(),
|
|
228
|
+
description: z.nullable(z.string()).optional(),
|
|
229
|
+
custom_fields: z.array(customfield_js_1.CustomField$inboundSchema).optional(),
|
|
230
|
+
}).transform((v) => {
|
|
231
|
+
return (0, primitives_js_1.remap)(v, {
|
|
232
|
+
"display_id": "displayId",
|
|
233
|
+
"account_number": "accountNumber",
|
|
234
|
+
"account_type": "accountType",
|
|
235
|
+
"bank_name": "bankName",
|
|
236
|
+
"available_balance": "availableBalance",
|
|
237
|
+
"overdraft_limit": "overdraftLimit",
|
|
238
|
+
"routing_number": "routingNumber",
|
|
239
|
+
"bsb_number": "bsbNumber",
|
|
240
|
+
"branch_identifier": "branchIdentifier",
|
|
241
|
+
"bank_code": "bankCode",
|
|
242
|
+
"custom_fields": "customFields",
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
/** @internal */
|
|
246
|
+
exports.AccountingBankAccountInput$outboundSchema = z.object({
|
|
247
|
+
displayId: z.nullable(z.string()).optional(),
|
|
248
|
+
name: z.string().optional(),
|
|
249
|
+
accountNumber: z.nullable(z.string()).optional(),
|
|
250
|
+
accountType: exports.AccountingBankAccountAccountType$outboundSchema.optional(),
|
|
251
|
+
bankName: z.nullable(z.string()).optional(),
|
|
252
|
+
currency: z.nullable(currency_js_1.Currency$outboundSchema).optional(),
|
|
253
|
+
balance: z.nullable(z.number()).optional(),
|
|
254
|
+
availableBalance: z.nullable(z.number()).optional(),
|
|
255
|
+
overdraftLimit: z.nullable(z.number()).optional(),
|
|
256
|
+
routingNumber: z.nullable(z.string()).optional(),
|
|
257
|
+
iban: z.nullable(z.string()).optional(),
|
|
258
|
+
bic: z.nullable(z.string()).optional(),
|
|
259
|
+
bsbNumber: z.nullable(z.string()).optional(),
|
|
260
|
+
branchIdentifier: z.nullable(z.string()).optional(),
|
|
261
|
+
bankCode: z.nullable(z.string()).optional(),
|
|
262
|
+
country: z.nullable(z.string()).optional(),
|
|
263
|
+
status: z.nullable(exports.AccountingBankAccountStatus$outboundSchema).optional(),
|
|
264
|
+
description: z.nullable(z.string()).optional(),
|
|
265
|
+
customFields: z.array(customfield_js_1.CustomField$outboundSchema).optional(),
|
|
266
|
+
}).transform((v) => {
|
|
267
|
+
return (0, primitives_js_1.remap)(v, {
|
|
268
|
+
displayId: "display_id",
|
|
269
|
+
accountNumber: "account_number",
|
|
270
|
+
accountType: "account_type",
|
|
271
|
+
bankName: "bank_name",
|
|
272
|
+
availableBalance: "available_balance",
|
|
273
|
+
overdraftLimit: "overdraft_limit",
|
|
274
|
+
routingNumber: "routing_number",
|
|
275
|
+
bsbNumber: "bsb_number",
|
|
276
|
+
branchIdentifier: "branch_identifier",
|
|
277
|
+
bankCode: "bank_code",
|
|
278
|
+
customFields: "custom_fields",
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
/**
|
|
282
|
+
* @internal
|
|
283
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
284
|
+
*/
|
|
285
|
+
var AccountingBankAccountInput$;
|
|
286
|
+
(function (AccountingBankAccountInput$) {
|
|
287
|
+
/** @deprecated use `AccountingBankAccountInput$inboundSchema` instead. */
|
|
288
|
+
AccountingBankAccountInput$.inboundSchema = exports.AccountingBankAccountInput$inboundSchema;
|
|
289
|
+
/** @deprecated use `AccountingBankAccountInput$outboundSchema` instead. */
|
|
290
|
+
AccountingBankAccountInput$.outboundSchema = exports.AccountingBankAccountInput$outboundSchema;
|
|
291
|
+
})(AccountingBankAccountInput$ || (exports.AccountingBankAccountInput$ = AccountingBankAccountInput$ = {}));
|
|
292
|
+
function accountingBankAccountInputToJSON(accountingBankAccountInput) {
|
|
293
|
+
return JSON.stringify(exports.AccountingBankAccountInput$outboundSchema.parse(accountingBankAccountInput));
|
|
294
|
+
}
|
|
295
|
+
function accountingBankAccountInputFromJSON(jsonString) {
|
|
296
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountingBankAccountInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountingBankAccountInput' from JSON`);
|
|
297
|
+
}
|
|
298
|
+
//# sourceMappingURL=accountingbankaccount.js.map
|