@tesouro/embedded-components-react 0.5.166 → 0.5.168

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.
@@ -28,6 +28,7 @@ type AddressOutput = {
28
28
  */
29
29
  state?: null | string;
30
30
  };
31
+ type AllowedCountries = 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'IC' | 'CV' | 'KY' | 'CF' | 'EA' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'AN' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'SS' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'BL' | 'BQ' | 'CW' | 'MF' | 'SX';
31
32
  /**
32
33
  * Output model representing a monetary amount in minor units alongside its ISO 4217 currency.
33
34
  */
@@ -42,129 +43,1338 @@ type AmountOutput = {
42
43
  */
43
44
  value: number | string;
44
45
  };
46
+ type AttachmentResponse = {
47
+ /**
48
+ * Unique ID of the file with file_type=attachment from /v1/files.
49
+ */
50
+ id: string;
51
+ /**
52
+ * Indicates whether the file would be included in the email.
53
+ */
54
+ include_in_email?: boolean;
55
+ /**
56
+ * MIME type of the file (e.g., 'application/pdf').
57
+ */
58
+ mimetype: string;
59
+ /**
60
+ * Original filename of the attachment.
61
+ */
62
+ name: string;
63
+ /**
64
+ * File size in bytes.
65
+ */
66
+ size: number;
67
+ /**
68
+ * URL to access the attachment file.
69
+ */
70
+ url: string;
71
+ };
72
+ type BankAccountHolderType = 'INDIVIDUAL' | 'BUSINESS';
73
+ type BankAccountSnapshot = {
74
+ account_holder_name?: string | null;
75
+ account_number?: string | null;
76
+ bank_name?: string | null;
77
+ routing_number?: string | null;
78
+ };
79
+ /**
80
+ * The status of a bank account.
81
+ */
82
+ type BankAccountStatus = 'ACTIVE' | 'CLOSED';
83
+ /**
84
+ * Output model for a bank account transfer account.
85
+ */
86
+ type BankAccountTransferAccountOutput = {
87
+ /**
88
+ * Unique identifier for the account.
89
+ */
90
+ id: string;
91
+ /**
92
+ * Nickname for the account.
93
+ */
94
+ nickname?: null | string;
95
+ };
96
+ /**
97
+ * Type of payment network used for bank account transfers.
98
+ */
99
+ type BankAccountTransferNetworkTypeDto = 'BOOK' | 'ACH' | 'RTP' | 'FED_NOW';
100
+ /**
101
+ * Response model for a bank account transfer.
102
+ */
103
+ type BankAccountTransferResponse = {
104
+ /**
105
+ * Unique identifier for the transfer.
106
+ */
107
+ id: string;
108
+ /**
109
+ * The amount transferred.
110
+ */
111
+ amount: AmountOutput;
112
+ /**
113
+ * The date of the transfer.
114
+ */
115
+ date: string;
116
+ /**
117
+ * The account the transfer is from.
118
+ */
119
+ fromAccount: BankAccountTransferAccountOutput;
120
+ /**
121
+ * The payment network the transfer was routed on.
122
+ */
123
+ network: BankAccountTransferNetworkTypeDto;
124
+ /**
125
+ * The caller-supplied reference from the money movement request that created this transfer,
126
+ * echoed back unchanged. Null when the request omitted one.
127
+ */
128
+ reference?: null | string;
129
+ /**
130
+ * The status of the transfer.
131
+ */
132
+ status: BankAccountTransferStatusDto;
133
+ /**
134
+ * The account the transfer is to.
135
+ */
136
+ toAccount: BankAccountTransferAccountOutput;
137
+ /**
138
+ * The type of transfer.
139
+ */
140
+ type: BankAccountTransferTypeDto;
141
+ };
142
+ /**
143
+ * Status of a bank account transfer operation.
144
+ */
145
+ type BankAccountTransferStatusDto = 'PENDING' | 'COMPLETED' | 'FAILED';
146
+ /**
147
+ * Type of bank account transfer operation.
148
+ */
149
+ type BankAccountTransferTypeDto = 'INTERNAL_TO_EXTERNAL' | 'EXTERNAL_TO_INTERNAL' | 'INTERNAL_TO_INTERNAL';
150
+ /**
151
+ * Response model for a bank account with balance information.
152
+ */
153
+ type BankAccountWithBalanceResponse = {
154
+ /**
155
+ * Unique identifier for the bank account.
156
+ */
157
+ id: string;
158
+ /**
159
+ * Masked account number.
160
+ */
161
+ accountNumber: string;
162
+ /**
163
+ * Current balance of the bank account in minor units (e.g. cents for USD).
164
+ */
165
+ balance: AmountOutput;
166
+ /**
167
+ * Reference identifier associated with the bank account.
168
+ */
169
+ bankAccountReference?: null | string;
170
+ /**
171
+ * The UTC timestamp when the bank account was created.
172
+ */
173
+ createdDateTime: string;
174
+ /**
175
+ * Registered legal or DBA name on the bank account.
176
+ */
177
+ nameOnAccount: string;
178
+ /**
179
+ * Nickname for the bank account.
180
+ */
181
+ nickname?: null | string;
182
+ /**
183
+ * Bank routing number.
184
+ */
185
+ routingNumber: string;
186
+ /**
187
+ * The status of the bank account.
188
+ */
189
+ status: BankAccountStatus;
190
+ };
191
+ /**
192
+ * The card network (brand) an issued card runs on, such as Visa or Mastercard.
193
+ */
194
+ type CardBrand = 'UNKNOWN' | 'VISA' | 'MASTERCARD' | 'DISCOVER' | 'AMERICAN_EXPRESS';
195
+ type CounterpartType = 'individual' | 'organization';
196
+ type CountryCode = 'AFG' | 'ALB' | 'DZA' | 'ASM' | 'ALA' | 'AND' | 'AGO' | 'AIA' | 'ATA' | 'ATG' | 'ARG' | 'ARM' | 'ABW' | 'AUS' | 'AUT' | 'AZE' | 'BHS' | 'BHR' | 'BGD' | 'BRB' | 'BLR' | 'BEL' | 'BLZ' | 'BEN' | 'BES' | 'BMU' | 'BTN' | 'BOL' | 'BIH' | 'BWA' | 'BVT' | 'BRA' | 'IOT' | 'BRN' | 'BGR' | 'BFA' | 'BDI' | 'CPV' | 'KHM' | 'CMR' | 'CAN' | 'CYM' | 'CAF' | 'TCD' | 'CHL' | 'CHN' | 'CXR' | 'CCK' | 'COL' | 'COM' | 'COD' | 'COG' | 'CIV' | 'COK' | 'CRI' | 'HRV' | 'CUB' | 'CUW' | 'CYP' | 'CZE' | 'DNK' | 'DJI' | 'DMA' | 'DOM' | 'ECU' | 'EGY' | 'SLV' | 'GNQ' | 'ERI' | 'EST' | 'SWZ' | 'ETH' | 'FLK' | 'FRO' | 'FJI' | 'FIN' | 'FRA' | 'GUF' | 'PYF' | 'ATF' | 'GAB' | 'GMB' | 'GEO' | 'DEU' | 'GHA' | 'GIB' | 'GRC' | 'GRL' | 'GRD' | 'GLP' | 'GUM' | 'GTM' | 'GGY' | 'GIN' | 'GNB' | 'GUY' | 'HTI' | 'HMD' | 'HND' | 'HKG' | 'HUN' | 'ISL' | 'IND' | 'IDN' | 'IRL' | 'IRN' | 'IRQ' | 'IMN' | 'ISR' | 'ITA' | 'JAM' | 'JPN' | 'JEY' | 'JOR' | 'KAZ' | 'KEN' | 'KIR' | 'KOR' | 'KWT' | 'KGZ' | 'LAO' | 'LVA' | 'LBN' | 'LSO' | 'LBR' | 'LBY' | 'LIE' | 'LTU' | 'LUX' | 'MDG' | 'MWI' | 'MYS' | 'MDV' | 'MLI' | 'MLT' | 'MHL' | 'MTQ' | 'MRT' | 'MUS' | 'MYT' | 'MEX' | 'FSM' | 'MDA' | 'MCO' | 'MNG' | 'MNE' | 'MSR' | 'MAR' | 'MOZ' | 'MMR' | 'NAM' | 'NRU' | 'NPL' | 'NLD' | 'NCL' | 'NZL' | 'NIC' | 'NER' | 'NGA' | 'NIU' | 'NFK' | 'MAC' | 'MKD' | 'MNP' | 'NOR' | 'OMN' | 'PAK' | 'PLW' | 'PSE' | 'PAN' | 'PNG' | 'PRY' | 'PER' | 'PHL' | 'PCN' | 'POL' | 'PRT' | 'PRI' | 'PRK' | 'QAT' | 'REU' | 'ROU' | 'RUS' | 'RWA' | 'BLM' | 'SHN' | 'KNA' | 'LCA' | 'MAF' | 'SPM' | 'VCT' | 'WSM' | 'SMR' | 'STP' | 'SAU' | 'SEN' | 'SRB' | 'SYC' | 'SLE' | 'SGP' | 'SXM' | 'SVK' | 'SVN' | 'SLB' | 'SOM' | 'ZAF' | 'SGS' | 'SSD' | 'ESP' | 'LKA' | 'SDN' | 'SUR' | 'SJM' | 'SWE' | 'SYR' | 'CHE' | 'TCA' | 'TWN' | 'TJK' | 'TZA' | 'THA' | 'TLS' | 'TGO' | 'TKL' | 'TON' | 'TTO' | 'TUN' | 'TUR' | 'TKM' | 'TUV' | 'UGA' | 'UKR' | 'UMI' | 'ARE' | 'GBR' | 'USA' | 'URY' | 'UZB' | 'VUT' | 'VAT' | 'VEN' | 'VIR' | 'VGB' | 'VNM' | 'WLF' | 'ESH' | 'YEM' | 'ZMB' | 'ZWE';
197
+ type CreditCardResponse = {
198
+ id: string;
199
+ cardLimit?: null | number | string;
200
+ cardStatus: CreditCardStatus;
201
+ cardType: CreditCardType;
202
+ cardholderName: string;
203
+ createdAt: string;
204
+ currentBalance: AmountOutput;
205
+ description?: null | string;
206
+ lastFourDigits: string;
207
+ nickname?: null | string;
208
+ updatedAt: string;
209
+ userId: string;
210
+ };
211
+ type CreditCardStatus = 'PENDING_ACTIVATION' | 'ACTIVE' | 'LOCKED' | 'CLOSED';
212
+ type CreditCardType = 'DIGITAL' | 'PHYSICAL';
213
+ type CreditNoteRenderingSettings = {
214
+ /**
215
+ * If set to `true`, the organization's bank account details will be displayed on the credit note PDF.
216
+ */
217
+ display_organization_bank_account?: boolean;
218
+ };
219
+ type CurrencyEnum = 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SOS' | 'SRD' | 'SSP' | 'SVC' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW';
220
+ type DebitCardCredentialsResponse = {
221
+ cvv: string;
222
+ expirationDate: string;
223
+ pan: string;
224
+ };
225
+ /**
226
+ * The detail view of a single debit card. Extends the fields returned by the list endpoint
227
+ * (DebitCardResponse).
228
+ */
229
+ type DebitCardDetailResponse = {
230
+ id: string;
231
+ bankAccountId: string;
232
+ /**
233
+ * The billing address the issuer holds for this card.
234
+ */
235
+ billingAddress: AddressOutput;
236
+ cardBrand: CardBrand;
237
+ cardStatus: DebitCardStatus;
238
+ cardType: DebitCardType;
239
+ cardholderName: string;
240
+ createdAt: string;
241
+ description?: null | string;
242
+ expirationDate: string;
243
+ lastFourDigits: string;
244
+ /**
245
+ * The MCC groups allowed on this card.
246
+ */
247
+ mccGroups: Array<MccGroupResponse>;
248
+ nickname?: null | string;
249
+ reference: string;
250
+ updatedAt: string;
251
+ userId: string;
252
+ /**
253
+ * Velocity controls scoped to this card. Single-purchase, daily, and monthly limits appear here as
254
+ * controls with a `TRANSACTION`, `DAY`, and `MONTH` window respectively.
255
+ */
256
+ velocityControls: Array<VelocityControlResponse>;
257
+ };
258
+ type DebitCardStatus = 'PENDING_ACTIVATION' | 'ACTIVE' | 'LOCKED' | 'CLOSED';
259
+ type DebitCardType = 'DIGITAL' | 'PHYSICAL';
260
+ type DeductionItem = {
261
+ /**
262
+ * The amount of the deduction in minor units(https://docs.monite.com/references/currencies#minor-units)
263
+ */
264
+ amount: number;
265
+ /**
266
+ * A note with additional information about this deduction
267
+ */
268
+ memo?: string | null;
269
+ /**
270
+ * Name or title of this deduction
271
+ */
272
+ name: string;
273
+ };
274
+ /**
275
+ * Who a disclosure binds, and therefore who can accept it. ENTITY binds the business itself: one
276
+ * authorized signer accepts on the company's behalf, and that acceptance covers every user of the
277
+ * organization. SIGNER is an authorized signer's own acknowledgement that they hold that authority,
278
+ * made by each signer for themselves. PERSON is an individual's own consent, which nobody can give
279
+ * on another person's behalf, so every user makes it for themselves, signer or not. Each is an
280
+ * independent version stream per bank organization, so a bank can have one version in force per
281
+ * scope at a time, and publishing into one stream leaves the others untouched.
282
+ */
283
+ type DisclosureAcceptanceScope = 'ENTITY' | 'SIGNER' | 'PERSON';
284
+ /**
285
+ * One acceptance scope's obligation, under the field names it had before the rename. Carries the
286
+ * same values as an entry of `disclosures`, and is removed with `capacities`.
287
+ */
288
+ type DisclosureCapacityStateDto = {
289
+ accepted: boolean;
290
+ canAccept: boolean;
291
+ /**
292
+ * Who this disclosure binds. The former name of `acceptanceScope`.
293
+ */
294
+ capacity: DisclosureAcceptanceScope;
295
+ documents: Array<DisclosureDocumentDto>;
296
+ graceDeadlineTsUtc?: null | string;
297
+ standing: DisclosureStanding;
298
+ version: string;
299
+ };
300
+ /**
301
+ * One document the caller is being asked to accept.
302
+ */
303
+ type DisclosureDocumentDto = {
304
+ /**
305
+ * Display name, as it should be shown to the user.
306
+ */
307
+ title: string;
308
+ /**
309
+ * Where the document is hosted. This service does not serve the file.
310
+ */
311
+ url: string;
312
+ };
313
+ /**
314
+ * One acceptance scope's obligation and where it leaves the caller.
315
+ */
316
+ type DisclosureDto = {
317
+ /**
318
+ * Who this disclosure binds, and so who can accept it.
319
+ */
320
+ acceptanceScope: DisclosureAcceptanceScope;
321
+ /**
322
+ * Whether the obligation is met. On the ENTITY scope this is the organization's execution,
323
+ * so it can be true for a caller who did nothing themselves.
324
+ */
325
+ accepted: boolean;
326
+ /**
327
+ * Whether this caller can accept it. The ENTITY and SIGNER scopes are a designated
328
+ * authorized signer's to accept; false on every scope when the read was made on an invitee's
329
+ * behalf rather than by the person themselves.
330
+ */
331
+ canAccept: boolean;
332
+ /**
333
+ * The disclosure in force for this scope. Submit it back when accepting.
334
+ */
335
+ disclosureId: string;
336
+ /**
337
+ * The documents making up this disclosure, in the order to present them.
338
+ */
339
+ documents: Array<DisclosureDocumentDto>;
340
+ /**
341
+ * When an unmet ENTITY obligation stops being tolerated. Only that scope runs a grace
342
+ * period, so this is null on the others, and null once the obligation is met.
343
+ */
344
+ graceDeadlineTsUtc?: null | string;
345
+ /**
346
+ * Clear, owed with time left, or owed with the consequence applying now.
347
+ */
348
+ standing: DisclosureStanding;
349
+ };
350
+ type DisclosureRequirement = 'NOT_REQUIRED' | 'REQUIRED';
351
+ /**
352
+ * Where a caller stands against one acceptance scope's obligation. Three states rather than a boolean
353
+ * because an unmet entity obligation runs a grace period before it restricts anything.
354
+ */
355
+ type DisclosureStanding = 'CLEAR' | 'IN_GRACE' | 'EXPIRED';
356
+ /**
357
+ * The disclosures in force for a caller, and whether they have accepted them.
358
+ */
359
+ type DisclosuresResponseDto = {
360
+ /**
361
+ * Whether this caller has accepted the PERSON disclosure above. False for an invitee, and
362
+ * false again for an existing user once a new version is published.
363
+ *
364
+ * Deprecated. Duplicates the PERSON entry of `disclosures`. Read that instead; this is removed once every client has moved.
365
+ *
366
+ * @deprecated
367
+ */
368
+ accepted: boolean;
369
+ /**
370
+ * The same entries under their former name and shape.
371
+ *
372
+ * Deprecated. Read `disclosures` instead. Removed once every client has moved.
373
+ *
374
+ * @deprecated
375
+ */
376
+ capacities?: Array<DisclosureCapacityStateDto>;
377
+ /**
378
+ * Every acceptance scope the caller's bank has a disclosure in force for, whether or not it
379
+ * falls on this caller, so a client can show what governs the organization. Whether an entry
380
+ * is this caller's to act on is carried by its `standing` and `canAccept`.
381
+ */
382
+ disclosures?: Array<DisclosureDto>;
383
+ /**
384
+ * The PERSON disclosure's documents, in the order to present them. Only that scope's:
385
+ * `disclosures` carries the documents of every scope in force.
386
+ *
387
+ * Deprecated. Duplicates the PERSON entry of `disclosures`. Read that instead; this is removed once every client has moved.
388
+ *
389
+ * @deprecated
390
+ */
391
+ documents: Array<DisclosureDocumentDto>;
392
+ /**
393
+ * Whether this caller's organization requires disclosures at all.
394
+ */
395
+ requirement: DisclosureRequirement;
396
+ /**
397
+ * The PERSON disclosure in force, or null if the caller's bank has published none. This and
398
+ * the two fields below describe that one scope; `disclosures` carries every scope.
399
+ *
400
+ * Deprecated. Duplicates the PERSON entry of `disclosures`. Read that instead; this is removed once every client has moved.
401
+ *
402
+ * @deprecated
403
+ */
404
+ version: null | string;
405
+ };
406
+ type Discount = {
407
+ /**
408
+ * The actual discount of the product in [minor units](https://docs.monite.com/references/currencies#minor-units) if type field equals amount, else in percent minor units
409
+ */
410
+ amount: number;
411
+ /**
412
+ * The field specifies whether to use product currency or %.
413
+ */
414
+ type: DiscountType;
415
+ };
416
+ type DiscountResponse = {
417
+ /**
418
+ * The actual discount of the product in [minor units](https://docs.monite.com/references/currencies#minor-units) if type field equals amount, else in percent minor units
419
+ */
420
+ amount: number;
421
+ /**
422
+ * The field specifies whether to use product currency or %.
423
+ */
424
+ type: DiscountType;
425
+ /**
426
+ * The monetary amount of the discount, in [minor units](https://docs.monite.com/references/currencies#minor-units). If the discount `type` is `amount`, this value is the same as the `amount` value. If `type` is `percentage`, the value is the calculated discount amount.
427
+ */
428
+ value?: number | null;
429
+ };
430
+ type DiscountType = 'amount' | 'percentage';
431
+ /**
432
+ * Rendering settings that control how different parts of the PDF documents are displayed.
433
+ * Includes common settings for all document types such as quotes, invoices, and credit notes and document
434
+ * type-specific settings that are defined in their respective objects.
435
+ */
436
+ type DocumentRenderingSettings = {
437
+ /**
438
+ * Credit note-specific rendering settings for PDF documents.
439
+ */
440
+ credit_note?: CreditNoteRenderingSettings;
441
+ /**
442
+ * If set to `true`, the line items table will be displayed on the quote PDF. Defaults to `true`.
443
+ */
444
+ display_line_items?: boolean;
445
+ /**
446
+ * If set to `true`, the organization's bank account details will be displayed on the PDF documents. Defaults to `true`.
447
+ */
448
+ display_organization_bank_account?: boolean;
449
+ /**
450
+ * Invoice-specific rendering settings for PDF documents.
451
+ */
452
+ invoice?: InvoiceRenderingSettings;
453
+ /**
454
+ * Settings for rendering line items in PDF documents.
455
+ */
456
+ line_items?: LineItemsRenderingSettings;
457
+ /**
458
+ * Quote-specific rendering settings for PDF documents.
459
+ */
460
+ quote?: QuoteRenderingSettings;
461
+ };
462
+ /**
463
+ * Response representing an external bank account.
464
+ */
465
+ type ExternalBankAccountResponse = {
466
+ /**
467
+ * Unique identifier for the external bank account.
468
+ */
469
+ id: string;
470
+ accountHolderType?: null | BankAccountHolderType;
471
+ /**
472
+ * Masked account number (last 4 digits visible).
473
+ */
474
+ accountNumber: string;
475
+ /**
476
+ * Status of the external bank account.
477
+ */
478
+ accountStatus: ExternalBankAccountStatusDto;
479
+ microDepositVerification?: null | MicroDepositVerificationResponse;
480
+ /**
481
+ * Name on the bank account.
482
+ */
483
+ nameOnAccount: string;
484
+ /**
485
+ * Nickname for the external bank account.
486
+ */
487
+ nickname: string;
488
+ /**
489
+ * Bank routing number (ABA number).
490
+ */
491
+ routingNumber: string;
492
+ /**
493
+ * Type of bank account (checking or savings).
494
+ */
495
+ type: ExternalBankAccountTypeDto;
496
+ /**
497
+ * Verification status of the external bank account.
498
+ */
499
+ verificationStatus: ExternalBankAccountVerificationStatusDto;
500
+ };
501
+ /**
502
+ * Status of an external bank account.
503
+ */
504
+ type ExternalBankAccountStatusDto = 'ACTIVE' | 'INACTIVE';
505
+ /**
506
+ * Type of external bank account.
507
+ */
508
+ type ExternalBankAccountTypeDto = 'CHECKING' | 'SAVINGS';
509
+ /**
510
+ * Verification status of an external bank account.
511
+ */
512
+ type ExternalBankAccountVerificationStatusDto = 'UNVERIFIED' | 'VERIFICATION_SENT' | 'VERIFIED' | 'FAILED';
513
+ type InlineTermDiscount = {
514
+ /**
515
+ * The discount percentage in minor units. E.g., 200 means 2%. 1050 means 10.5%.
516
+ */
517
+ discount: number;
518
+ end_date?: string | null;
519
+ /**
520
+ * The amount of days after the invoice issue date.
521
+ */
522
+ number_of_days?: number | null;
523
+ };
524
+ type InlineTermFinal = {
525
+ end_date?: string | null;
526
+ /**
527
+ * The amount of days after the invoice issue date.
528
+ */
529
+ number_of_days?: number | null;
530
+ };
531
+ type InvoiceRenderingSettings = {
532
+ /**
533
+ * If set to `true`, the organization's bank account details will be displayed on the invoice PDF.
534
+ */
535
+ display_organization_bank_account?: boolean;
536
+ };
537
+ type InvoiceResponsePayload = {
538
+ id: string;
539
+ /**
540
+ * Time at which the receivable was created. Timestamps follow the ISO 8601 standard.
541
+ */
542
+ created_at: string;
543
+ /**
544
+ * Time at which the receivable was last updated. Timestamps follow the ISO 8601 standard.
545
+ */
546
+ updated_at: string;
547
+ /**
548
+ * How much is left to be paid in [minor units](https://docs.monite.com/references/currencies#minor-units). Equal 0 if the Invoice is fully paid.
549
+ */
550
+ amount_due: number;
551
+ /**
552
+ * How much has been paid [minor units](https://docs.monite.com/references/currencies#minor-units)
553
+ */
554
+ amount_paid: number;
555
+ /**
556
+ * How much is left to be paid in in [minor units](https://docs.monite.com/references/currencies#minor-units), including payment_term discounts.
557
+ */
558
+ amount_to_pay?: number | null;
559
+ /**
560
+ * List of attachments to include with the receivable. Each attachment can be configured for email inclusion. If not provided, no attachments will be associated.
561
+ */
562
+ attachments?: Array<AttachmentResponse> | null;
563
+ bank_account_id?: string | null;
564
+ bank_account_snapshot?: BankAccountSnapshot | null;
565
+ bank_account_type?: string | null;
566
+ /**
567
+ * The unique ID of a previous document related to the receivable if applicable.
568
+ */
569
+ based_on?: string | null;
570
+ /**
571
+ * The unique document ID of a previous document related to the receivable if applicable.
572
+ */
573
+ based_on_document_id?: string | null;
574
+ /**
575
+ * Field with a comment for pay/partially/uncollectible info on this Invoice
576
+ */
577
+ comment?: string | null;
578
+ /**
579
+ * The commercial terms of the receivable (e.g. The products must be delivered in X days).
580
+ */
581
+ commercial_condition_description?: string | null;
582
+ /**
583
+ * Address of invoicing, need to state as a separate fields for some countries if it differs from address of a company.
584
+ */
585
+ counterpart_billing_address?: ReceivablesRepresentationOfCounterpartAddress | null;
586
+ /**
587
+ * Different types of companies for different countries, ex. GmbH, SAS, SNC, etc.
588
+ */
589
+ counterpart_business_type?: string | null;
590
+ /**
591
+ * Additional information about counterpart contacts.
592
+ */
593
+ counterpart_contact?: ReceivableCounterpartContact | null;
594
+ /**
595
+ * The external reference of the counterpart.
596
+ */
597
+ counterpart_external_reference?: string | null;
598
+ /**
599
+ * Unique ID of the counterpart.
600
+ */
601
+ counterpart_id: string;
602
+ /**
603
+ * A legal name of a counterpart it is an organization or first and last name if it is an individual
604
+ */
605
+ counterpart_name?: string | null;
606
+ /**
607
+ * Address where goods were shipped / where services were provided.
608
+ */
609
+ counterpart_shipping_address?: ReceivablesRepresentationOfCounterpartAddress | null;
610
+ /**
611
+ * The VAT/TAX ID of the counterpart.
612
+ */
613
+ counterpart_tax_id?: string | null;
614
+ /**
615
+ * The type of the counterpart.
616
+ */
617
+ counterpart_type: CounterpartType;
618
+ counterpart_vat_id?: ReceivableCounterpartVatIdResponse | null;
619
+ /**
620
+ * The currency used in the receivable.
621
+ */
622
+ currency: CurrencyEnum;
623
+ /**
624
+ * The amount of tax deducted in minor units
625
+ *
626
+ * @deprecated
627
+ */
628
+ deduction_amount?: number | null;
629
+ /**
630
+ * A note with additional information about a tax deduction
631
+ *
632
+ * @deprecated
633
+ */
634
+ deduction_memo?: string | null;
635
+ /**
636
+ * List of deductions applied to the receivable (maximum 10 deductions allowed)
637
+ */
638
+ deductions?: Array<DeductionItem> | null;
639
+ /**
640
+ * The discount for a receivable.
641
+ */
642
+ discount?: DiscountResponse | null;
643
+ /**
644
+ * Total price of the receivable with discounts before taxes [minor units](https://docs.monite.com/references/currencies#minor-units).
645
+ */
646
+ discounted_subtotal?: number | null;
647
+ /**
648
+ * The sequential code systematically assigned to invoices.
649
+ */
650
+ document_id?: string | null;
651
+ /**
652
+ * Settings for rendering documents in PDF format, including settings for line items and specific document types.
653
+ */
654
+ document_rendering?: DocumentRenderingSettings | null;
655
+ /**
656
+ * Optional field representing date until which invoice should be paid
657
+ */
658
+ due_date?: string | null;
659
+ entity: ReceivableEntityOrganization | ReceivableEntityIndividual;
660
+ entity_address: ReceivableEntityAddressSchema;
661
+ /**
662
+ * Deprecated. Always null; use `bank_account_snapshot` instead.
663
+ *
664
+ * @deprecated
665
+ */
666
+ entity_bank_account?: ReceivablesRepresentationOfEntityBankAccount | null;
667
+ /**
668
+ * The entity user who created this document.
669
+ */
670
+ entity_user_id?: string | null;
671
+ entity_vat_id?: ReceivableEntityVatIdResponse | null;
672
+ /**
673
+ * The language of the customer-facing PDF file (`file_url`). The value matches the counterpart's `language` at the time when this PDF file was generated.
674
+ */
675
+ file_language: LanguageCodeEnum;
676
+ /**
677
+ * The receivable's PDF URL in the counterpart's default language.
678
+ */
679
+ file_url?: string | null;
680
+ /**
681
+ * Optional text displayed below the line items table in the PDF.
682
+ */
683
+ footer?: string | null;
684
+ /**
685
+ * The date when the goods are shipped or the service is provided. Can be a current, past, or future date.
686
+ *
687
+ * Some countries require the fulfillment date in invoices for regulatory compliance. In this case, if the fulfillment date was not provided by the user, it is automatically set to the invoice issue date once the invoice gets issued.
688
+ *
689
+ * In countries where the fulfillment date is optional, Monite does not auto-assign it if it was omitted by the user.
690
+ */
691
+ fulfillment_date?: string | null;
692
+ /**
693
+ * Optional field for the issue of the entry.
694
+ */
695
+ issue_date?: string | null;
696
+ line_items: Array<ResponseItem>;
697
+ /**
698
+ * A note with additional information for a receivable.
699
+ */
700
+ memo?: string | null;
701
+ /**
702
+ * The language of the entity's copy of the PDF file (`original_file_url`). The value matches the entity's `language` at the time when this PDF file was generated.
703
+ */
704
+ original_file_language: LanguageCodeEnum;
705
+ /**
706
+ * The receivable's PDF URL in the entity's default language.
707
+ */
708
+ original_file_url?: string | null;
709
+ overdue_reminder_id?: string | null;
710
+ /**
711
+ * Date and time when the invoice was paid.
712
+ */
713
+ paid_at?: string | null;
714
+ /**
715
+ * Metadata for partner needs
716
+ */
717
+ partner_metadata?: {
718
+ [key: string]: unknown;
719
+ };
720
+ /**
721
+ * Link to the invoice's payment page. Either Monite's payment links or your custom payment links.
722
+ */
723
+ payment_page_url?: string | null;
724
+ payment_reminder_id?: string | null;
725
+ payment_terms?: PaymentTerms | null;
726
+ /**
727
+ * A project related to current receivable
728
+ */
729
+ project_id?: string | null;
730
+ /**
731
+ * Contain purchase order number.
732
+ */
733
+ purchase_order?: string | null;
734
+ /**
735
+ * Stores an unique ID of a recurrence if the receivable is in a recurring status
736
+ */
737
+ recurrence_id?: string | null;
738
+ /**
739
+ * Ids of documents that relate to invoice. I.e credit notes, proforma invoices, etc.
740
+ */
741
+ related_documents: RelatedDocuments;
742
+ /**
743
+ * The status of the receivable inside the receivable workflow.
744
+ */
745
+ status: ReceivablesStatusEnum;
746
+ /**
747
+ * The subtotal (excluding tax), in [minor units](https://docs.monite.com/references/currencies#minor-units).
748
+ */
749
+ subtotal?: number | null;
750
+ /**
751
+ * The subtotal including tax but without invoice discount, in [minor units](https://docs.monite.com/references/currencies#minor-units).
752
+ */
753
+ subtotal_after_tax?: number | null;
754
+ /**
755
+ * The list of tags for this receivable.
756
+ */
757
+ tags?: Array<TagReadSchema>;
758
+ /**
759
+ * Indicates whether the goods, materials, or services listed in the receivable are exempt from tax or not.
760
+ */
761
+ tax_exempt?: boolean | null;
762
+ /**
763
+ * The reason for the tax exemption, if applicable.
764
+ */
765
+ tax_exemption_rationale?: string | null;
766
+ /**
767
+ * Indicates whether the discount is applied to the tax-inclusive or tax-exclusive amount.
768
+ */
769
+ tax_inclusive_discount_mode?: VatModeEnum;
770
+ /**
771
+ * Defines whether the prices of products in receivable will already include tax or not.
772
+ */
773
+ tax_mode?: VatModeEnum;
774
+ /**
775
+ * Total price of the receivable in [minor units](https://docs.monite.com/references/currencies#minor-units). Calculated as a subtotal + total_tax_amount.
776
+ */
777
+ total_amount?: number;
778
+ /**
779
+ * The total price of the receivable in [minor units](https://docs.monite.com/references/currencies#minor-units), including tax and excluding all issued credit notes.
780
+ */
781
+ total_amount_with_credit_notes: number;
782
+ /**
783
+ * The total deduction amount of all deductions, in [minor units](https://docs.monite.com/references/currencies#minor-units).
784
+ */
785
+ total_deduction_amount?: number | null;
786
+ /**
787
+ * The total tax of all line items, in [minor units](https://docs.monite.com/references/currencies#minor-units).
788
+ */
789
+ total_tax_amount: number;
790
+ /**
791
+ * List of total tax amount for each tax rate, presented in receivable
792
+ */
793
+ total_tax_amounts?: Array<TotalTaxAmountItem> | null;
794
+ /**
795
+ * Total price of the receivable with tax withheld in minor units
796
+ */
797
+ total_withholding_tax?: number | null;
798
+ /**
799
+ * Trade name of the entity
800
+ */
801
+ trade_name?: string | null;
802
+ /**
803
+ * The type of the document uploaded.
804
+ */
805
+ type: 'invoice';
806
+ /**
807
+ * The amount of tax withheld in percent minor units
808
+ */
809
+ withholding_tax_rate?: number | null;
810
+ };
811
+ type LanguageCodeEnum = 'ab' | 'aa' | 'af' | 'ak' | 'sq' | 'am' | 'ar' | 'an' | 'hy' | 'av' | 'ae' | 'ay' | 'az' | 'bm' | 'ba' | 'eu' | 'be' | 'bn' | 'bi' | 'bs' | 'br' | 'bg' | 'my' | 'ca' | 'ch' | 'ce' | 'ny' | 'zh' | 'cu' | 'cv' | 'kw' | 'co' | 'cr' | 'hr' | 'cs' | 'da' | 'dv' | 'nl' | 'dz' | 'en' | 'eo' | 'et' | 'ee' | 'fo' | 'fj' | 'fi' | 'fr' | 'fy' | 'ff' | 'gd' | 'gl' | 'lg' | 'ka' | 'de' | 'el' | 'kl' | 'gn' | 'gu' | 'ht' | 'ha' | 'he' | 'hz' | 'hi' | 'ho' | 'hu' | 'io' | 'ig' | 'id' | 'ia' | 'ie' | 'iu' | 'ik' | 'ga' | 'it' | 'ja' | 'jv' | 'kn' | 'kr' | 'ks' | 'kk' | 'km' | 'ki' | 'rw' | 'ky' | 'kv' | 'kg' | 'ko' | 'kj' | 'ku' | 'lo' | 'la' | 'lv' | 'li' | 'ln' | 'lt' | 'lu' | 'lb' | 'mk' | 'mg' | 'ms' | 'ml' | 'mt' | 'gv' | 'mi' | 'mr' | 'mh' | 'mn' | 'na' | 'nv' | 'nd' | 'nr' | 'ng' | 'ne' | 'no' | 'nb' | 'nn' | 'ii' | 'oc' | 'oj' | 'om' | 'os' | 'pi' | 'ps' | 'fa' | 'pl' | 'pt' | 'pa' | 'qu' | 'ro' | 'rm' | 'rn' | 'ru' | 'se' | 'sm' | 'sg' | 'sa' | 'sc' | 'sr' | 'sn' | 'sd' | 'si' | 'sk' | 'sl' | 'so' | 'st' | 'es' | 'su' | 'sw' | 'ss' | 'sv' | 'tl' | 'ty' | 'tg' | 'ta' | 'tt' | 'te' | 'th' | 'bo' | 'ti' | 'to' | 'ts' | 'tn' | 'tr' | 'tk' | 'tw' | 'ug' | 'uk' | 'ur' | 'uz' | 've' | 'vi' | 'vo' | 'wa' | 'cy' | 'wo' | 'xh' | 'yi' | 'yo' | 'za' | 'zu';
812
+ type LineItemColumnSettings = {
813
+ display?: boolean;
814
+ /**
815
+ * Line item table column header to override Monite's default. If not set, the Monite's default will be used.
816
+ */
817
+ label?: string | null;
818
+ };
819
+ /**
820
+ * Extended settings for numeric columns in line items.
821
+ */
822
+ type LineItemNumericColumnSettings = {
823
+ display?: boolean;
824
+ /**
825
+ * Line item table column header to override Monite's default. If not set, the Monite's default will be used.
826
+ */
827
+ label?: string | null;
828
+ /**
829
+ * Number of decimal places to display for numeric values in this column.
830
+ */
831
+ precision?: number | null;
832
+ };
833
+ type LineItemProduct = {
834
+ /**
835
+ * Unique ID of the product.
836
+ */
837
+ id: string;
838
+ /**
839
+ * Unique identifier of the accounting tax rate object.
840
+ */
841
+ accounting_tax_rate_id?: string | null;
842
+ /**
843
+ * Description of the product.
844
+ */
845
+ description?: string | null;
846
+ /**
847
+ * A user-defined identifier of the product. For example, an internal product code or SKU (stock keeping unit). Client applications can use this field to map the products in Monite to an external product catalog.
848
+ */
849
+ external_reference?: string | null;
850
+ /**
851
+ * Indicates whether the product is inline
852
+ */
853
+ is_inline?: boolean;
854
+ ledger_account_id?: string | null;
855
+ measure_unit?: LineItemProductMeasureUnit | null;
856
+ /**
857
+ * Name of the product.
858
+ */
859
+ name: string;
860
+ price: Price;
861
+ price_after_tax: Price;
862
+ /**
863
+ * The smallest amount allowed for this product.
864
+ */
865
+ smallest_amount?: number | null;
866
+ tax_rate: LineItemProductTaxRate;
867
+ /**
868
+ * Specifies whether this offering is a product or service. This may affect the applicable tax rates.
869
+ */
870
+ type?: ProductServiceTypeEnum;
871
+ };
872
+ type LineItemProductMeasureUnit = {
873
+ id?: string | null;
874
+ description?: string | null;
875
+ name: string;
876
+ };
877
+ type LineItemProductTaxRate = {
878
+ /**
879
+ * Unique identifier of the tax rate object.
880
+ */
881
+ id?: string | null;
882
+ /**
883
+ * Sub-taxes included in the VAT.
884
+ */
885
+ components?: Array<VatRateComponent> | null;
886
+ /**
887
+ * Two-letter ISO country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
888
+ */
889
+ country: AllowedCountries;
890
+ /**
891
+ * Indicates whether this tax rate is defined by user.
892
+ */
893
+ is_custom?: boolean;
894
+ /**
895
+ * Display name of the tax rate.
896
+ */
897
+ name?: string | null;
898
+ /**
899
+ * Percent minor units. Example: 12.5% is 1250.
900
+ */
901
+ value: number;
902
+ };
903
+ type LineItemsRenderingSettings = {
904
+ /**
905
+ * Settings for the discount column in the line items table.
906
+ */
907
+ discount?: LineItemColumnSettings;
908
+ /**
909
+ * Settings for the measure unit column in the line items table.
910
+ */
911
+ measure_unit?: LineItemColumnSettings;
912
+ /**
913
+ * Settings for the name column in the line items table.
914
+ */
915
+ name?: LineItemColumnSettings;
916
+ /**
917
+ * Settings for the price column in the line items table.
918
+ */
919
+ price?: LineItemNumericColumnSettings;
920
+ /**
921
+ * Settings for the price after tax column in the line items table.
922
+ */
923
+ price_after_tax?: LineItemNumericColumnSettings;
924
+ /**
925
+ * Settings for the quantity column in the line items table.
926
+ */
927
+ quantity?: LineItemColumnSettings;
928
+ /**
929
+ * Settings for the tax rate column in the line items table.
930
+ */
931
+ tax_rate?: LineItemNumericColumnSettings;
932
+ /**
933
+ * Settings for the total price column in the line items table.
934
+ */
935
+ total_price?: LineItemNumericColumnSettings;
936
+ /**
937
+ * Settings for the total price after tax column in the line items table.
938
+ */
939
+ total_price_after_tax?: LineItemNumericColumnSettings;
940
+ /**
941
+ * Settings for the VAT amount column in the line items table.
942
+ */
943
+ vat_amount?: LineItemNumericColumnSettings;
944
+ };
945
+ /**
946
+ * A caller-managed Merchant Category Code group applied as an authorization control at the debit
947
+ * card issuer. Exactly one of Guid? MccGroupResponse.OrganizationId (organization-scoped) or
948
+ * Guid? MccGroupResponse.CardId (card-scoped) is set.
949
+ */
950
+ type MccGroupResponse = {
951
+ id: string;
952
+ active: boolean;
953
+ cardId?: null | string;
954
+ createdAt: string;
955
+ mccs: Array<string>;
956
+ name: string;
957
+ organizationId?: null | string;
958
+ updatedAt: string;
959
+ };
960
+ /**
961
+ * Whether submitted micro-deposit amounts matched the ones deposited.
962
+ */
963
+ type MicroDepositVerificationOutcomeDto = 'AMOUNTS_MATCHED' | 'AMOUNTS_DID_NOT_MATCH';
964
+ /**
965
+ * The outcome of a micro-deposit validation attempt and what is left of the bank's allowance.
966
+ */
967
+ type MicroDepositVerificationResponse = {
968
+ /**
969
+ * The maximum number of validation attempts this account's bank allows.
970
+ */
971
+ attemptsAllowed: number | string;
972
+ /**
973
+ * Validation attempts left after this one.
974
+ */
975
+ attemptsRemaining: number | string;
976
+ /**
977
+ * Whether another set of amounts would be accepted for this account.
978
+ */
979
+ canAttemptAgain: boolean;
980
+ /**
981
+ * Whether the bank's policy makes FAILED final. Banks that fail on the first incorrect attempt
982
+ * always report false; canAttemptAgain reports whether the allowance is spent.
983
+ */
984
+ isTerminal: boolean;
985
+ /**
986
+ * Whether the submitted amounts matched the ones deposited.
987
+ */
988
+ outcome: MicroDepositVerificationOutcomeDto;
989
+ };
990
+ type OrganizationType = 'BANK' | 'EMBEDDED' | 'PLATFORM' | 'TRANSACTOR' | 'VERTICAL_SOFTWARE_PROVIDER';
991
+ type PaymentTerms = {
992
+ id?: string | null;
993
+ /**
994
+ * Description of the payment term.
995
+ */
996
+ description?: string | null;
997
+ name?: string | null;
998
+ /**
999
+ * The first tier of the payment term. Represents the terms of the first early discount.
1000
+ */
1001
+ term_1?: InlineTermDiscount | null;
1002
+ /**
1003
+ * The second tier of the payment term. Defines the terms of the second early discount.
1004
+ */
1005
+ term_2?: InlineTermDiscount | null;
1006
+ /**
1007
+ * The final tier of the payment term. Defines the invoice due date.
1008
+ */
1009
+ term_final: InlineTermFinal;
1010
+ };
1011
+ type Price = {
1012
+ /**
1013
+ * The currency in which the price of the product is set.
1014
+ */
1015
+ currency: CurrencyEnum;
1016
+ /**
1017
+ * The actual price of the product.
1018
+ */
1019
+ value: number;
1020
+ };
1021
+ type ProductServiceTypeEnum = 'product' | 'service';
1022
+ type QuoteRenderingSettings = {
1023
+ /**
1024
+ * If set to `true`, the organization's bank account details will be displayed on the quote PDF.
1025
+ */
1026
+ display_organization_bank_account?: boolean;
1027
+ /**
1028
+ * If set to `true`, the signature field will be displayed on the quote PDF.
1029
+ */
1030
+ display_signature?: boolean;
1031
+ };
1032
+ type ReceivableCounterpartContact = {
1033
+ /**
1034
+ * The contact address of the counterpart
1035
+ */
1036
+ address?: ReceivablesRepresentationOfCounterpartAddress | null;
1037
+ /**
1038
+ * The contact email of the counterpart.
1039
+ */
1040
+ email?: string | null;
1041
+ /**
1042
+ * The first name of the counterpart contact.
1043
+ */
1044
+ first_name: string;
1045
+ /**
1046
+ * The last name of the counterpart contact.
1047
+ */
1048
+ last_name: string;
1049
+ /**
1050
+ * The contact phone number of the counterpart.
1051
+ */
1052
+ phone?: string | null;
1053
+ /**
1054
+ * The counterpart contact title (e.g. Dr., Mr., Mrs., Ms., etc).
1055
+ */
1056
+ title?: string | null;
1057
+ };
1058
+ type ReceivableCounterpartVatIdResponse = {
1059
+ id: string;
1060
+ counterpart_id: string;
1061
+ country?: AllowedCountries | null;
1062
+ type?: VatIdTypeEnum;
1063
+ value: string;
1064
+ };
45
1065
  /**
46
- * The status of a bank account.
1066
+ * A schema represents address info of the entity
47
1067
  */
48
- type BankAccountStatus = 'ACTIVE' | 'CLOSED';
1068
+ type ReceivableEntityAddressSchema = {
1069
+ /**
1070
+ * A city (a full name) where the entity is registered
1071
+ */
1072
+ city: string;
1073
+ /**
1074
+ * A country name (as ISO code) where the entity is registered
1075
+ */
1076
+ country?: AllowedCountries;
1077
+ /**
1078
+ * A street where the entity is registered
1079
+ */
1080
+ line1: string;
1081
+ /**
1082
+ * An alternative street used by the entity
1083
+ */
1084
+ line2?: string | null;
1085
+ /**
1086
+ * A postal code of the address where the entity is registered
1087
+ */
1088
+ postal_code: string;
1089
+ /**
1090
+ * A state in a country where the entity is registered
1091
+ */
1092
+ state?: string | null;
1093
+ };
49
1094
  /**
50
- * Response model for a bank account with balance information.
1095
+ * A Response schema for an entity of individual type
51
1096
  */
52
- type BankAccountWithBalanceResponse = {
1097
+ type ReceivableEntityIndividual = {
53
1098
  /**
54
- * Unique identifier for the bank account.
1099
+ * An email of the entity
55
1100
  */
56
- id: string;
1101
+ email?: string | null;
57
1102
  /**
58
- * Masked account number.
1103
+ * The first name of the entity issuing the receivable
59
1104
  */
60
- accountNumber: string;
1105
+ first_name: string;
61
1106
  /**
62
- * Current balance of the bank account in minor units (e.g. cents for USD).
1107
+ * The last name of the entity issuing the receivable
63
1108
  */
64
- balance: AmountOutput;
1109
+ last_name: string;
65
1110
  /**
66
- * Reference identifier associated with the bank account.
1111
+ * A link to the entity logo
67
1112
  */
68
- bankAccountReference?: null | string;
1113
+ logo?: string | null;
69
1114
  /**
70
- * The UTC timestamp when the bank account was created.
1115
+ * A phone number of the entity
71
1116
  */
72
- createdDateTime: string;
1117
+ phone?: string | null;
73
1118
  /**
74
- * Registered legal or DBA name on the bank account.
1119
+ * The registration authority of the entity
75
1120
  */
76
- nameOnAccount: string;
1121
+ registration_authority?: string | null;
77
1122
  /**
78
- * Nickname for the bank account.
1123
+ * The registration number of the entity
79
1124
  */
80
- nickname?: null | string;
1125
+ registration_number?: string | null;
81
1126
  /**
82
- * Bank routing number.
1127
+ * The Tax ID of the entity issuing the receivable
83
1128
  */
84
- routingNumber: string;
1129
+ tax_id?: string | null;
85
1130
  /**
86
- * The status of the bank account.
1131
+ * The entity type
87
1132
  */
88
- status: BankAccountStatus;
1133
+ type: 'individual';
1134
+ /**
1135
+ * A website of the entity
1136
+ */
1137
+ website?: string | null;
89
1138
  };
90
1139
  /**
91
- * The card network (brand) an issued card runs on, such as Visa or Mastercard.
1140
+ * A Response schema for an entity of organization type
92
1141
  */
93
- type CardBrand = 'UNKNOWN' | 'VISA' | 'MASTERCARD' | 'DISCOVER' | 'AMERICAN_EXPRESS';
94
- type CountryCode = 'AFG' | 'ALB' | 'DZA' | 'ASM' | 'ALA' | 'AND' | 'AGO' | 'AIA' | 'ATA' | 'ATG' | 'ARG' | 'ARM' | 'ABW' | 'AUS' | 'AUT' | 'AZE' | 'BHS' | 'BHR' | 'BGD' | 'BRB' | 'BLR' | 'BEL' | 'BLZ' | 'BEN' | 'BES' | 'BMU' | 'BTN' | 'BOL' | 'BIH' | 'BWA' | 'BVT' | 'BRA' | 'IOT' | 'BRN' | 'BGR' | 'BFA' | 'BDI' | 'CPV' | 'KHM' | 'CMR' | 'CAN' | 'CYM' | 'CAF' | 'TCD' | 'CHL' | 'CHN' | 'CXR' | 'CCK' | 'COL' | 'COM' | 'COD' | 'COG' | 'CIV' | 'COK' | 'CRI' | 'HRV' | 'CUB' | 'CUW' | 'CYP' | 'CZE' | 'DNK' | 'DJI' | 'DMA' | 'DOM' | 'ECU' | 'EGY' | 'SLV' | 'GNQ' | 'ERI' | 'EST' | 'SWZ' | 'ETH' | 'FLK' | 'FRO' | 'FJI' | 'FIN' | 'FRA' | 'GUF' | 'PYF' | 'ATF' | 'GAB' | 'GMB' | 'GEO' | 'DEU' | 'GHA' | 'GIB' | 'GRC' | 'GRL' | 'GRD' | 'GLP' | 'GUM' | 'GTM' | 'GGY' | 'GIN' | 'GNB' | 'GUY' | 'HTI' | 'HMD' | 'HND' | 'HKG' | 'HUN' | 'ISL' | 'IND' | 'IDN' | 'IRL' | 'IRN' | 'IRQ' | 'IMN' | 'ISR' | 'ITA' | 'JAM' | 'JPN' | 'JEY' | 'JOR' | 'KAZ' | 'KEN' | 'KIR' | 'KOR' | 'KWT' | 'KGZ' | 'LAO' | 'LVA' | 'LBN' | 'LSO' | 'LBR' | 'LBY' | 'LIE' | 'LTU' | 'LUX' | 'MDG' | 'MWI' | 'MYS' | 'MDV' | 'MLI' | 'MLT' | 'MHL' | 'MTQ' | 'MRT' | 'MUS' | 'MYT' | 'MEX' | 'FSM' | 'MDA' | 'MCO' | 'MNG' | 'MNE' | 'MSR' | 'MAR' | 'MOZ' | 'MMR' | 'NAM' | 'NRU' | 'NPL' | 'NLD' | 'NCL' | 'NZL' | 'NIC' | 'NER' | 'NGA' | 'NIU' | 'NFK' | 'MAC' | 'MKD' | 'MNP' | 'NOR' | 'OMN' | 'PAK' | 'PLW' | 'PSE' | 'PAN' | 'PNG' | 'PRY' | 'PER' | 'PHL' | 'PCN' | 'POL' | 'PRT' | 'PRI' | 'PRK' | 'QAT' | 'REU' | 'ROU' | 'RUS' | 'RWA' | 'BLM' | 'SHN' | 'KNA' | 'LCA' | 'MAF' | 'SPM' | 'VCT' | 'WSM' | 'SMR' | 'STP' | 'SAU' | 'SEN' | 'SRB' | 'SYC' | 'SLE' | 'SGP' | 'SXM' | 'SVK' | 'SVN' | 'SLB' | 'SOM' | 'ZAF' | 'SGS' | 'SSD' | 'ESP' | 'LKA' | 'SDN' | 'SUR' | 'SJM' | 'SWE' | 'SYR' | 'CHE' | 'TCA' | 'TWN' | 'TJK' | 'TZA' | 'THA' | 'TLS' | 'TGO' | 'TKL' | 'TON' | 'TTO' | 'TUN' | 'TUR' | 'TKM' | 'TUV' | 'UGA' | 'UKR' | 'UMI' | 'ARE' | 'GBR' | 'USA' | 'URY' | 'UZB' | 'VUT' | 'VAT' | 'VEN' | 'VIR' | 'VGB' | 'VNM' | 'WLF' | 'ESH' | 'YEM' | 'ZMB' | 'ZWE';
95
- type CreditCardResponse = {
1142
+ type ReceivableEntityOrganization = {
1143
+ /**
1144
+ * An email of the entity
1145
+ */
1146
+ email?: string | null;
1147
+ /**
1148
+ * A link to the entity logo
1149
+ */
1150
+ logo?: string | null;
1151
+ /**
1152
+ * The name of the entity issuing the receivable, when it is an organization.
1153
+ */
1154
+ name: string;
1155
+ /**
1156
+ * A phone number of the entity
1157
+ */
1158
+ phone?: string | null;
1159
+ /**
1160
+ * The registration authority of the entity
1161
+ */
1162
+ registration_authority?: string | null;
1163
+ /**
1164
+ * The registration number of the entity
1165
+ */
1166
+ registration_number?: string | null;
1167
+ /**
1168
+ * The Tax ID of the entity issuing the receivable
1169
+ */
1170
+ tax_id?: string | null;
1171
+ /**
1172
+ * The entity type
1173
+ */
1174
+ type: 'organization';
1175
+ /**
1176
+ * The VAT ID of the entity issuing the receivable, when it is an organization.
1177
+ */
1178
+ vat_id?: string | null;
1179
+ /**
1180
+ * A website of the entity
1181
+ */
1182
+ website?: string | null;
1183
+ };
1184
+ type ReceivableEntityVatIdResponse = {
96
1185
  id: string;
97
- cardLimit?: null | number | string;
98
- cardStatus: CreditCardStatus;
99
- cardType: CreditCardType;
100
- cardholderName: string;
101
- createdAt: string;
102
- currentBalance: AmountOutput;
103
- description?: null | string;
104
- lastFourDigits: string;
105
- nickname?: null | string;
106
- updatedAt: string;
107
- userId: string;
1186
+ country: AllowedCountries;
1187
+ entity_id: string;
1188
+ type?: VatIdTypeEnum;
1189
+ value: string;
108
1190
  };
109
- type CreditCardStatus = 'PENDING_ACTIVATION' | 'ACTIVE' | 'LOCKED' | 'CLOSED';
110
- type CreditCardType = 'DIGITAL' | 'PHYSICAL';
111
- type DebitCardCredentialsResponse = {
112
- cvv: string;
113
- expirationDate: string;
114
- pan: string;
1191
+ type ReceivablesRepresentationOfCounterpartAddress = {
1192
+ /**
1193
+ * Unique ID of the address in the system
1194
+ */
1195
+ id?: string | null;
1196
+ /**
1197
+ * City name.
1198
+ */
1199
+ city: string;
1200
+ /**
1201
+ * Two-letter ISO country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1202
+ */
1203
+ country: AllowedCountries;
1204
+ /**
1205
+ * Street address.
1206
+ */
1207
+ line1: string;
1208
+ /**
1209
+ * Additional address information (if any).
1210
+ */
1211
+ line2?: string | null;
1212
+ /**
1213
+ * ZIP or postal code.
1214
+ */
1215
+ postal_code: string;
1216
+ /**
1217
+ * State, region, province, or county.
1218
+ */
1219
+ state?: string | null;
1220
+ };
1221
+ type ReceivablesRepresentationOfEntityBankAccount = {
1222
+ /**
1223
+ * Unique ID of the entity bank account.
1224
+ */
1225
+ id?: string | null;
1226
+ /**
1227
+ * Account holder's name
1228
+ */
1229
+ account_holder_name?: string | null;
1230
+ /**
1231
+ * Account number (required if IBAN is not provided)
1232
+ */
1233
+ account_number?: string | null;
1234
+ /**
1235
+ * The name of the entity's bank account.
1236
+ */
1237
+ bank_name?: string | null;
1238
+ /**
1239
+ * The BIC of the entity's bank account.
1240
+ */
1241
+ bic?: string | null;
1242
+ /**
1243
+ * The IBAN of the entity's bank account.
1244
+ */
1245
+ iban?: string | null;
1246
+ /**
1247
+ * Routing number (US)
1248
+ */
1249
+ routing_number?: string | null;
1250
+ /**
1251
+ * Sort code (GB)
1252
+ */
1253
+ sort_code?: string | null;
115
1254
  };
116
1255
  /**
117
- * The detail view of a single debit card. Extends the fields returned by the list endpoint
118
- * (DebitCardResponse).
1256
+ * This Enum the results of combining two types of statuses from
1257
+ * QuoteStateEnum, CreditNoteStateEnum and InvoiceStateEnum. You shouldn't use
1258
+ * it in your scenarios if only for edge cases in workers, but ideally need to
1259
+ * remove this shared Enum.
119
1260
  */
120
- type DebitCardDetailResponse = {
1261
+ type ReceivablesStatusEnum = 'draft' | 'issued' | 'failed' | 'accepted' | 'expired' | 'declined' | 'recurring' | 'partially_paid' | 'paid' | 'overdue' | 'uncollectible' | 'canceled' | 'deleted';
1262
+ type RelatedDocuments = {
1263
+ credit_note_ids?: Array<string>;
1264
+ proforma_invoice_id?: string | null;
1265
+ };
1266
+ type ResponseItem = {
1267
+ /**
1268
+ * Unique identifier of the line item within the receivable.
1269
+ */
121
1270
  id: string;
122
- bankAccountId: string;
123
1271
  /**
124
- * The billing address the issuer holds for this card.
1272
+ * The discount for a product.
125
1273
  */
126
- billingAddress: AddressOutput;
127
- cardBrand: CardBrand;
128
- cardStatus: DebitCardStatus;
129
- cardType: DebitCardType;
130
- cardholderName: string;
131
- createdAt: string;
132
- description?: null | string;
133
- expirationDate: string;
134
- lastFourDigits: string;
1274
+ discount?: Discount | null;
1275
+ product: LineItemProduct;
135
1276
  /**
136
- * The MCC groups allowed on this card.
1277
+ * The quantity of each of the goods, materials, or services listed in the receivable.
137
1278
  */
138
- mccGroups: Array<MccGroupResponse>;
139
- nickname?: null | string;
140
- reference: string;
141
- updatedAt: string;
142
- userId: string;
1279
+ quantity: number;
143
1280
  /**
144
- * Velocity controls scoped to this card. Single-purchase, daily, and monthly limits appear here as
145
- * controls with a `TRANSACTION`, `DAY`, and `MONTH` window respectively.
1281
+ * Tax applicability status of the line item. Possible values:
1282
+ *
1283
+ * * `taxable` (default) - Standard tax behavior. Requires the tax rate to be specified.
1284
+ * * `exempt` - Line item is exempt from taxes. Exempt items are not included in total tax calculations.
1285
+ * * `non_taxable` - Line item is outside the tax scope entirely, cannot have tax rates.
146
1286
  */
147
- velocityControls: Array<VelocityControlResponse>;
1287
+ tax_status?: TaxStatusEnum;
1288
+ /**
1289
+ * Total of line_item after tax with applied line item discount in [minor units](https://docs.monite.com/references/currencies#minor-units).
1290
+ */
1291
+ total_after_tax: number;
1292
+ /**
1293
+ * Total of line_item before tax in [minor units](https://docs.monite.com/references/currencies#minor-units).
1294
+ */
1295
+ total_before_tax: number;
148
1296
  };
149
- type DebitCardStatus = 'PENDING_ACTIVATION' | 'ACTIVE' | 'LOCKED' | 'CLOSED';
150
- type DebitCardType = 'DIGITAL' | 'PHYSICAL';
151
- type DisclosureRequirement = 'NOT_REQUIRED' | 'REQUIRED';
1297
+ type TagCategory = 'document_type' | 'department' | 'project' | 'cost_center' | 'vendor_type' | 'payment_method' | 'approval_status';
152
1298
  /**
153
- * A caller-managed Merchant Category Code group applied as an authorization control at the debit
154
- * card issuer. Exactly one of Guid? MccGroupResponse.OrganizationId (organization-scoped) or
155
- * Guid? MccGroupResponse.CardId (card-scoped) is set.
1299
+ * Represents a user-defined tag that can be assigned to resources to filter them.
156
1300
  */
157
- type MccGroupResponse = {
1301
+ type TagReadSchema = {
1302
+ /**
1303
+ * A unique ID of this tag.
1304
+ */
158
1305
  id: string;
159
- active: boolean;
160
- cardId?: null | string;
161
- createdAt: string;
162
- mccs: Array<string>;
1306
+ /**
1307
+ * Date and time when the tag was created. Timestamps follow the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) standard.
1308
+ */
1309
+ created_at: string;
1310
+ /**
1311
+ * Date and time when the tag was last updated. Timestamps follow the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) standard.
1312
+ */
1313
+ updated_at: string;
1314
+ /**
1315
+ * The tag category.
1316
+ */
1317
+ category?: TagCategory | null;
1318
+ /**
1319
+ * ID of the user who created the tag.
1320
+ */
1321
+ created_by_entity_user_id?: string | null;
1322
+ /**
1323
+ * The tag description.
1324
+ */
1325
+ description?: string | null;
1326
+ /**
1327
+ * The tag name.
1328
+ */
163
1329
  name: string;
164
- organizationId?: null | string;
165
- updatedAt: string;
166
1330
  };
167
- type OrganizationType = 'BANK' | 'EMBEDDED' | 'PLATFORM' | 'TRANSACTOR' | 'VERTICAL_SOFTWARE_PROVIDER';
1331
+ type TaxStatusEnum = 'taxable' | 'exempt' | 'non_taxable';
1332
+ type TotalTaxAmountItem = {
1333
+ id?: string | null;
1334
+ /**
1335
+ * The total tax of all line items, in [minor units](https://docs.monite.com/references/currencies#minor-units).
1336
+ */
1337
+ amount: number;
1338
+ /**
1339
+ * Sub-taxes included in the VAT.
1340
+ */
1341
+ components?: Array<TotalTaxAmountItemComponent> | null;
1342
+ /**
1343
+ * Display name of the tax rate.
1344
+ */
1345
+ name?: string | null;
1346
+ /**
1347
+ * The amount on which this VAT is calculated, in [minor units](https://docs.monite.com/references/currencies#minor-units).
1348
+ */
1349
+ taxable_amount: number;
1350
+ /**
1351
+ * Percent minor units. Example: 12.5% is 1250.
1352
+ */
1353
+ value: number;
1354
+ };
1355
+ type TotalTaxAmountItemComponent = {
1356
+ /**
1357
+ * The total tax of all line items, in [minor units](https://docs.monite.com/references/currencies#minor-units).
1358
+ */
1359
+ amount: number;
1360
+ name: string;
1361
+ /**
1362
+ * Percent minor units. Example: 12.5% is 1250.
1363
+ */
1364
+ value: number;
1365
+ };
1366
+ type VatIdTypeEnum = 'ae_trn' | 'au_abn' | 'au_arn' | 'bg_uic' | 'br_cnpj' | 'br_cpf' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'ch_vat' | 'cl_tin' | 'es_cif' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'hk_br' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'kr_brn' | 'li_uid' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'no_vat' | 'nz_gst' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'th_vat' | 'tw_vat' | 'ua_vat' | 'us_ein' | 'za_vat' | 'unknown';
1367
+ type VatModeEnum = 'exclusive' | 'inclusive';
1368
+ type VatRateComponent = {
1369
+ /**
1370
+ * Display name of the Tax.
1371
+ */
1372
+ name: string;
1373
+ /**
1374
+ * Percent multiplied by a 100. Example: 12.125% is 1212.5. Will be rounded to 2 decimal places
1375
+ */
1376
+ value: number;
1377
+ };
168
1378
  /**
169
1379
  * A velocity control. Exactly one of Guid? VelocityControlResponse.OrganizationId (organization-scoped) or
170
1380
  * Guid? VelocityControlResponse.CardId (card-scoped) is set.
@@ -195,6 +1405,22 @@ type VelocityControlResponse = {
195
1405
  * `TRANSACTION` applies the limit per-transaction and therefore carries no usage limit.
196
1406
  */
197
1407
  type VelocityWindow = 'DAY' | 'LIFETIME' | 'MONTH' | 'TRANSACTION' | 'WEEK';
1408
+ /**
1409
+ * The outcome of a widget user accepting disclosures.
1410
+ */
1411
+ type WidgetDisclosureAcceptance = {
1412
+ /**
1413
+ * The requirement resolved for the user's organization while accepting, so the caller learns
1414
+ * whether an acceptance was recorded without resolving the settings chain again. NOT_REQUIRED
1415
+ * means nothing was written and nothing needed to be.
1416
+ */
1417
+ disclosureRequirement: DisclosureRequirement;
1418
+ /**
1419
+ * The user's status afterwards. ACTIVE for an invitee who was activated by the same operation,
1420
+ * and for an already-active user re-accepting a newly published version.
1421
+ */
1422
+ status: WidgetUserStatus;
1423
+ };
198
1424
  type WidgetInitResponse = {
199
1425
  bankName?: null | string;
200
1426
  /**
@@ -294,5 +1520,88 @@ declare const A_PENDING_DEBIT_CARD: DebitCardDetailResponse;
294
1520
  * a fixture whose id did not match would render the em-dash and look like a bug.
295
1521
  */
296
1522
  declare const A_BANK_ACCOUNT: BankAccountWithBalanceResponse;
1523
+ /**
1524
+ * An outside account that has finished micro-deposit verification, as
1525
+ * `GET /external-bank-accounts` returns it.
1526
+ *
1527
+ * `accountNumber` is masked because the API masks it — the widget prints the
1528
+ * field verbatim, so an unmasked value here would be the one fixture that
1529
+ * misrepresents what an integrator sees.
1530
+ *
1531
+ * `VERIFIED` is the end of the connect chain rather than its start, which makes
1532
+ * it the happy path: an account any earlier in the chain still owes the reader a
1533
+ * verification step. A story walking that chain spreads this into the earlier
1534
+ * statuses.
1535
+ */
1536
+ declare const AN_EXTERNAL_BANK_ACCOUNT: ExternalBankAccountResponse;
1537
+ /**
1538
+ * One completed book transfer out of {@link A_BANK_ACCOUNT}, as
1539
+ * `GET /bank-accounts/{id}/transfers` returns it.
1540
+ *
1541
+ * Both ends are `{ id, nickname }` and nothing more, which is the whole reason
1542
+ * the transfers list is a two-read screen: the id is resolved against the
1543
+ * accounts read for a masked number, and the nickname the transfer carries is
1544
+ * the fallback when it resolves against nothing. `toAccount` is deliberately an
1545
+ * account no other fixture serves, so the fixture exercises that fallback as it
1546
+ * stands; a story wanting both ends resolved re-points them by spreading.
1547
+ */
1548
+ declare const A_BANK_ACCOUNT_TRANSFER: BankAccountTransferResponse;
1549
+ /**
1550
+ * `GET /identity/v1/disclosures` for a caller who owes nothing, as every widget
1551
+ * that reads it wants it by default.
1552
+ *
1553
+ * It agrees with {@link A_WIDGET_INIT}, which also says nothing is owed: init
1554
+ * decides whether `WidgetProvider` replaces the widget with the acceptance
1555
+ * gate, and this read decides what the widget itself does about disclosures, so
1556
+ * a fixture disagreeing with init would put a story in a state the product
1557
+ * cannot be in. `documents` is empty because nothing renders them while
1558
+ * `requirement` is `NOT_REQUIRED`.
1559
+ */
1560
+ declare const NO_DISCLOSURES_OWED: DisclosuresResponseDto;
1561
+ /**
1562
+ * The same read for a caller who *does* owe an acceptance, with the documents
1563
+ * they owe it on.
1564
+ *
1565
+ * A second fixture for one operation rather than a speculative extra, on the
1566
+ * same grounds as {@link A_PENDING_CREDIT_CARD}: `AcceptDisclosuresWidget`
1567
+ * exists only to be shown to this caller, and {@link NO_DISCLOSURES_OWED}
1568
+ * cannot express them. It pairs with an init that owes an acceptance, which
1569
+ * each story spreads for itself.
1570
+ *
1571
+ * The titles and their order are the backend's, and the widget renders exactly
1572
+ * what it is given — there is no fixed four-slot mapping — so the four entries
1573
+ * here are a plausible program rather than a required shape. `example.test` is
1574
+ * reserved by RFC 6761 and resolves nowhere, which is what a public storybook
1575
+ * wants from a link a reader might click.
1576
+ */
1577
+ declare const A_DISCLOSURES_SET: DisclosuresResponseDto;
1578
+ /**
1579
+ * What `POST /api/widget-gateway/disclosure-acceptance` answers with.
1580
+ *
1581
+ * `status: 'ACTIVE'` because the same call activates an invitee, which is the
1582
+ * whole reason acceptance and activation are one transaction. Nothing renders
1583
+ * this body — the widget reads the outcome from the widget-init refresh it
1584
+ * kicks afterwards — so it is here to keep the write typed.
1585
+ */
1586
+ declare const A_DISCLOSURE_ACCEPTANCE: WidgetDisclosureAcceptance;
1587
+ /**
1588
+ * One outstanding invoice for {@link A_CUSTOMER_COUNTERPART}, as
1589
+ * `GET /finops/v1/receivables?type=invoice` returns it.
1590
+ *
1591
+ * Two cross-references are load-bearing rather than cosmetic:
1592
+ *
1593
+ * - `bank_account_id` is {@link A_BANK_ACCOUNT}'s, which is what makes it a
1594
+ * *trusted* deposit target. `resolveInvoiceBankAccount` then labels it from
1595
+ * that account's own fetched record, so a widget that resolved the id and the
1596
+ * label from different sources shows the disagreement instead of hiding it.
1597
+ * - `counterpart_id` is that counterpart's, so the invoice belongs to the
1598
+ * customer a picker selected. The endpoint filters on it server-side and a
1599
+ * mocked handler does not, so nothing enforces this but the fixture.
1600
+ *
1601
+ * `amount_due` rather than only `total_amount`: the picker shows what is still
1602
+ * owed, and a fixture where the two agree cannot tell the two readings apart.
1603
+ * `line_items` is empty because nothing in the deposit flow reads it.
1604
+ */
1605
+ declare const AN_OUTSTANDING_INVOICE: InvoiceResponsePayload;
297
1606
 
298
- export { A_BANK_ACCOUNT, A_CREDIT_CARD, A_DEBIT_CARD, A_DEBIT_CARD_CREDENTIALS, A_PENDING_CREDIT_CARD, A_PENDING_DEBIT_CARD, A_WIDGET_INIT };
1607
+ export { AN_EXTERNAL_BANK_ACCOUNT, AN_OUTSTANDING_INVOICE, A_BANK_ACCOUNT, A_BANK_ACCOUNT_TRANSFER, A_CREDIT_CARD, A_DEBIT_CARD, A_DEBIT_CARD_CREDENTIALS, A_DISCLOSURES_SET, A_DISCLOSURE_ACCEPTANCE, A_PENDING_CREDIT_CARD, A_PENDING_DEBIT_CARD, A_WIDGET_INIT, NO_DISCLOSURES_OWED };