@insurance-broker/api-client 1.34.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schema.d.ts +651 -20
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -176,6 +176,40 @@ export interface paths {
|
|
|
176
176
|
patch?: never;
|
|
177
177
|
trace?: never;
|
|
178
178
|
};
|
|
179
|
+
"/api/v1/invoices/{id}/credit-notes": {
|
|
180
|
+
parameters: {
|
|
181
|
+
query?: never;
|
|
182
|
+
header?: never;
|
|
183
|
+
path?: never;
|
|
184
|
+
cookie?: never;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* The corrections issued against an invoice
|
|
188
|
+
* @description Oldest first, each with its lines. **The invoice's own figures are unchanged by any of them** - what a customer was demanded and what has since been credited are two separate records, which is what BR-010 asks for.
|
|
189
|
+
*
|
|
190
|
+
* There is no paging: an invoice's corrections are a handful of records by nature.
|
|
191
|
+
*/
|
|
192
|
+
get: operations["ListCreditNotes"];
|
|
193
|
+
put?: never;
|
|
194
|
+
/**
|
|
195
|
+
* Correct an issued invoice with a credit note
|
|
196
|
+
* @description BR-010 and ADR-0042 section 8. **A correction to an issued invoice is a new record and never an edit** - "a separate record referencing the invoice it corrects, with its own lines and its own document. Never an edit, never a negative line on the original."
|
|
197
|
+
*
|
|
198
|
+
* **It arrives complete.** Unlike an invoice there is no draft and no route to add a line: a correction is a decision already taken, so it is immutable from the moment it is written.
|
|
199
|
+
*
|
|
200
|
+
* **Every amount is positive.** A credit is carried by the *kind* of record rather than by the sign of a number, so the original invoice's figures are untouched and byte-identical afterwards.
|
|
201
|
+
*
|
|
202
|
+
* **It may not credit more than the invoice demanded**, counting what earlier credit notes already credit. Crediting past the demand is a payment out rather than a correction, and a refund is its own record (WRK-004, Phase 2).
|
|
203
|
+
*
|
|
204
|
+
* Refused against a **draft** invoice: a draft was never demanded of anybody, so it is discarded rather than credited.
|
|
205
|
+
*/
|
|
206
|
+
post: operations["IssueCreditNote"];
|
|
207
|
+
delete?: never;
|
|
208
|
+
options?: never;
|
|
209
|
+
head?: never;
|
|
210
|
+
patch?: never;
|
|
211
|
+
trace?: never;
|
|
212
|
+
};
|
|
179
213
|
"/api/v1/invoices/{id}/discarding": {
|
|
180
214
|
parameters: {
|
|
181
215
|
query?: never;
|
|
@@ -348,6 +382,38 @@ export interface paths {
|
|
|
348
382
|
patch?: never;
|
|
349
383
|
trace?: never;
|
|
350
384
|
};
|
|
385
|
+
"/api/v1/payments/{id}/reversal": {
|
|
386
|
+
parameters: {
|
|
387
|
+
query?: never;
|
|
388
|
+
header?: never;
|
|
389
|
+
path?: never;
|
|
390
|
+
cookie?: never;
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* The reversal against a payment, if there is one
|
|
394
|
+
* @description `404` when the payment has not been reversed, which is the ordinary case — a reversal is a correction and most payments never need one.
|
|
395
|
+
*
|
|
396
|
+
* **At most one exists**, which a unique index guarantees rather than a handler, so this route answers a single record and never a list.
|
|
397
|
+
*/
|
|
398
|
+
get: operations["GetPaymentReversal"];
|
|
399
|
+
put?: never;
|
|
400
|
+
/**
|
|
401
|
+
* Record that a payment's money did not arrive after all
|
|
402
|
+
* @description BR-010 and ADR-0042 section 8. **A posted payment is never edited** — a mistake is a reversal record and the original stays. That is also what keeps the phase's exit criterion safe: if a posting could be edited its external reference could be edited, and the unique index would stop guaranteeing that the same money cannot be recorded twice.
|
|
403
|
+
*
|
|
404
|
+
* **It reverses the whole payment.** There is no amount to supply: a partial reversal would be a way to edit a figure by degrees, and money that arrived for the wrong amount was already refused at recording.
|
|
405
|
+
*
|
|
406
|
+
* **Once per payment.** A second attempt is a `409` and is not retryable — a unique index refuses it, so a race and an ordinary re-run read identically.
|
|
407
|
+
*
|
|
408
|
+
* **It does not re-open the charge the payment settled**, and that is deliberate rather than an oversight. A retention anchor once stamped is never moved (ADR-0038), and `Settled` records that the payments covered the debt at a knowable instant — which stayed true of that instant. What a broker owes after a reversal is collected by raising the charge again, which leaves both facts on the ledger instead of one row that has quietly changed its mind. The reversal appears in the payment's own history, which is the read a finance officer explains a payment from.
|
|
409
|
+
*/
|
|
410
|
+
post: operations["ReversePayment"];
|
|
411
|
+
delete?: never;
|
|
412
|
+
options?: never;
|
|
413
|
+
head?: never;
|
|
414
|
+
patch?: never;
|
|
415
|
+
trace?: never;
|
|
416
|
+
};
|
|
351
417
|
"/api/v1/payments/{id}/evidence/{evidenceId}/content": {
|
|
352
418
|
parameters: {
|
|
353
419
|
query?: never;
|
|
@@ -406,6 +472,122 @@ export interface paths {
|
|
|
406
472
|
patch?: never;
|
|
407
473
|
trace?: never;
|
|
408
474
|
};
|
|
475
|
+
"/api/v1/statements": {
|
|
476
|
+
parameters: {
|
|
477
|
+
query?: never;
|
|
478
|
+
header?: never;
|
|
479
|
+
path?: never;
|
|
480
|
+
cookie?: never;
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* List the statements this broker has produced
|
|
484
|
+
* @description Newest period first, paged by cursor. A `customerId` narrows the list to one customer.
|
|
485
|
+
*
|
|
486
|
+
* **`customerId` is a filter and never an authorisation.** The broker whose statements these are comes from the session; naming a customer here selects among this broker's own rows and can reach nobody else's.
|
|
487
|
+
*
|
|
488
|
+
* Rows carry what each statement covers and not its figures: computing every statement's balance to render one page would make a list cost what a year of reading costs.
|
|
489
|
+
*/
|
|
490
|
+
get: operations["ListStatements"];
|
|
491
|
+
put?: never;
|
|
492
|
+
/**
|
|
493
|
+
* Produce a statement of account for a customer
|
|
494
|
+
* @description PAY-011. Records that a statement was produced for one customer, in one currency, over one period that has already finished, and answers its charges, payments, allocations and balances.
|
|
495
|
+
*
|
|
496
|
+
* **The period must have ended.** A statement's figures are computed from the ledger rather than stored, so one covering a day that is still running would answer differently every time it was read - and a statement of account that changes after it has been sent is worse than none.
|
|
497
|
+
*
|
|
498
|
+
* **One currency per statement.** A charge carries its own currency, and a balance in two of them is not a number. A customer owing in two currencies gets two statements.
|
|
499
|
+
*
|
|
500
|
+
* **Nothing about money is stored on the row.** There is no balance column: every figure is derived from the obligations and payments the statement renders, bounded by its period and by the instant it was produced.
|
|
501
|
+
*/
|
|
502
|
+
post: operations["ProduceStatement"];
|
|
503
|
+
delete?: never;
|
|
504
|
+
options?: never;
|
|
505
|
+
head?: never;
|
|
506
|
+
patch?: never;
|
|
507
|
+
trace?: never;
|
|
508
|
+
};
|
|
509
|
+
"/api/v1/statements/{id}": {
|
|
510
|
+
parameters: {
|
|
511
|
+
query?: never;
|
|
512
|
+
header?: never;
|
|
513
|
+
path?: never;
|
|
514
|
+
cookie?: never;
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* Read one statement, with its lines and figures
|
|
518
|
+
* @description PAY-011's whole sentence: the charges raised in the period, the payments recorded against them, which charge each payment went to, and the balance at either end of it.
|
|
519
|
+
*
|
|
520
|
+
* **`closingBalance` is `openingBalance` plus `charged` less `paid`**, and `charged` is the sum of the `amountOwed` column, so the statement reconciles against its own lines.
|
|
521
|
+
*
|
|
522
|
+
* **Each charge carries `amountOwed` beside `amount`, and the two differ when the charge has concluded.** A charge still outstanding, or one settled by payments on this statement, is owed in full. A charge the broker **cancelled** is owed nothing - it should never have existed, so money paid against it leaves the customer in credit. A charge the broker **wrote off** is owed what was actually paid against it, because a write-off forgives the remainder and never the part that arrived.
|
|
523
|
+
*
|
|
524
|
+
* **Every figure is measured as at `producedAtUtc`.** A charge cancelled or written off after this statement was produced still shows what it was owed at the time, so `status` and `amountOwed` can disagree - and that pair is the record rather than a contradiction. A payment reversed afterwards still stands here for the same reason.
|
|
525
|
+
*/
|
|
526
|
+
get: operations["GetStatement"];
|
|
527
|
+
put?: never;
|
|
528
|
+
post?: never;
|
|
529
|
+
delete?: never;
|
|
530
|
+
options?: never;
|
|
531
|
+
head?: never;
|
|
532
|
+
patch?: never;
|
|
533
|
+
trace?: never;
|
|
534
|
+
};
|
|
535
|
+
"/api/v1/customer/statements": {
|
|
536
|
+
parameters: {
|
|
537
|
+
query?: never;
|
|
538
|
+
header?: never;
|
|
539
|
+
path?: never;
|
|
540
|
+
cookie?: never;
|
|
541
|
+
};
|
|
542
|
+
/**
|
|
543
|
+
* List the statements of account your broker has produced for you
|
|
544
|
+
* @description PAY-011. Every statement of yours, newest period first, paged by cursor.
|
|
545
|
+
*
|
|
546
|
+
* **You are not named in the request.** There is no customer field and no broker field: the list is whoever is signed in, resolved from the session. Another person's statements are not in it - not filtered out of it, but absent, because a statement that is not yours is not visible to this route at all.
|
|
547
|
+
*
|
|
548
|
+
* Each row says what the statement covers and when it was produced. Its charges, payments and balances are on its own route.
|
|
549
|
+
*
|
|
550
|
+
* **A statement per currency.** A charge carries its own currency and a balance in two of them is not a number, so if you are billed in more than one you have a statement in each.
|
|
551
|
+
*/
|
|
552
|
+
get: operations["ListOwnStatements"];
|
|
553
|
+
put?: never;
|
|
554
|
+
post?: never;
|
|
555
|
+
delete?: never;
|
|
556
|
+
options?: never;
|
|
557
|
+
head?: never;
|
|
558
|
+
patch?: never;
|
|
559
|
+
trace?: never;
|
|
560
|
+
};
|
|
561
|
+
"/api/v1/customer/statements/{id}": {
|
|
562
|
+
parameters: {
|
|
563
|
+
query?: never;
|
|
564
|
+
header?: never;
|
|
565
|
+
path?: never;
|
|
566
|
+
cookie?: never;
|
|
567
|
+
};
|
|
568
|
+
/**
|
|
569
|
+
* Read one of your own statements of account
|
|
570
|
+
* @description PAY-011. What was charged in the period, what you paid, which charge each payment went to, the policies the charges relate to, and what was owed at either end of it.
|
|
571
|
+
*
|
|
572
|
+
* **The balance is worked out from your broker's ledger rather than stored**, and it is measured as at the moment the statement was produced: a charge raised or a payment recorded afterwards is on a later statement, never added to this one. So this answer is the same today as the day it was sent to you.
|
|
573
|
+
*
|
|
574
|
+
* **`closingBalance` is `openingBalance` plus `charged` less `paid`**, and `charged` is the sum of the `amountOwed` column, so you can add the charges up and arrive at the total.
|
|
575
|
+
*
|
|
576
|
+
* **Each charge shows `amountOwed` as well as `amount`.** A charge still owed, or one your payments have settled, is owed in full. A charge your broker **cancelled** is owed nothing, so anything you paid against it counts in your favour. A charge your broker **wrote off** is owed only what you had already paid - the rest was forgiven, and neither of you owes it.
|
|
577
|
+
*
|
|
578
|
+
* A payment that was reversed is listed and does not reduce what is owed, because it happened.
|
|
579
|
+
*
|
|
580
|
+
* A statement that is not yours and one that does not exist are the same answer, because a statement belonging to somebody else is not visible here at all.
|
|
581
|
+
*/
|
|
582
|
+
get: operations["GetOwnStatement"];
|
|
583
|
+
put?: never;
|
|
584
|
+
post?: never;
|
|
585
|
+
delete?: never;
|
|
586
|
+
options?: never;
|
|
587
|
+
head?: never;
|
|
588
|
+
patch?: never;
|
|
589
|
+
trace?: never;
|
|
590
|
+
};
|
|
409
591
|
"/api/v1/insurers": {
|
|
410
592
|
parameters: {
|
|
411
593
|
query?: never;
|
|
@@ -4067,6 +4249,38 @@ export interface components {
|
|
|
4067
4249
|
name: null | string;
|
|
4068
4250
|
registrationNumber: null | string;
|
|
4069
4251
|
};
|
|
4252
|
+
CreditNoteLineRequest: {
|
|
4253
|
+
kind: string;
|
|
4254
|
+
description: string;
|
|
4255
|
+
/** Format: double */
|
|
4256
|
+
amount: number | string;
|
|
4257
|
+
};
|
|
4258
|
+
CreditNoteLineResponse: {
|
|
4259
|
+
/** Format: uuid */
|
|
4260
|
+
id: string;
|
|
4261
|
+
/** Format: int32 */
|
|
4262
|
+
ordinal: number | string;
|
|
4263
|
+
kind: string;
|
|
4264
|
+
description: string;
|
|
4265
|
+
/** Format: double */
|
|
4266
|
+
amount: number | string;
|
|
4267
|
+
};
|
|
4268
|
+
CreditNoteResponse: {
|
|
4269
|
+
/** Format: uuid */
|
|
4270
|
+
id: string;
|
|
4271
|
+
/** Format: uuid */
|
|
4272
|
+
invoiceId: string;
|
|
4273
|
+
/** Format: uuid */
|
|
4274
|
+
customerId: string;
|
|
4275
|
+
/** Format: double */
|
|
4276
|
+
totalAmount: number | string;
|
|
4277
|
+
currency: string;
|
|
4278
|
+
reason: string;
|
|
4279
|
+
/** Format: date-time */
|
|
4280
|
+
issuedAtUtc: string;
|
|
4281
|
+
issuedBySubjectId: string;
|
|
4282
|
+
lines: components["schemas"]["CreditNoteLineResponse"][];
|
|
4283
|
+
};
|
|
4070
4284
|
CustomerClaimPage: {
|
|
4071
4285
|
items: components["schemas"]["ClaimResponse"][];
|
|
4072
4286
|
nextCursor: null | string;
|
|
@@ -4581,6 +4795,10 @@ export interface components {
|
|
|
4581
4795
|
retentionAnchorAtUtc: null | string;
|
|
4582
4796
|
lines: components["schemas"]["InvoiceLineResponse"][];
|
|
4583
4797
|
};
|
|
4798
|
+
IssueCreditNoteRequest: {
|
|
4799
|
+
reason: string;
|
|
4800
|
+
lines: components["schemas"]["CreditNoteLineRequest"][];
|
|
4801
|
+
};
|
|
4584
4802
|
IssuedCustomerInvitationResponse: {
|
|
4585
4803
|
/** Format: uuid */
|
|
4586
4804
|
id: string;
|
|
@@ -4827,6 +5045,19 @@ export interface components {
|
|
|
4827
5045
|
/** Format: date-time */
|
|
4828
5046
|
approvedAtUtc: null | string;
|
|
4829
5047
|
};
|
|
5048
|
+
PaymentReversalResponse: {
|
|
5049
|
+
/** Format: uuid */
|
|
5050
|
+
id: string;
|
|
5051
|
+
/** Format: uuid */
|
|
5052
|
+
paymentId: string;
|
|
5053
|
+
/** Format: double */
|
|
5054
|
+
amount: number | string;
|
|
5055
|
+
currency: string;
|
|
5056
|
+
reason: string;
|
|
5057
|
+
/** Format: date-time */
|
|
5058
|
+
reversedAtUtc: string;
|
|
5059
|
+
reversedBySubjectId: string;
|
|
5060
|
+
};
|
|
4830
5061
|
PlaceLegalHoldRequest: {
|
|
4831
5062
|
moduleName: null | string;
|
|
4832
5063
|
entityType: null | string;
|
|
@@ -4980,6 +5211,15 @@ export interface components {
|
|
|
4980
5211
|
detail?: null | string;
|
|
4981
5212
|
instance?: null | string;
|
|
4982
5213
|
};
|
|
5214
|
+
ProduceStatementRequest: {
|
|
5215
|
+
/** Format: uuid */
|
|
5216
|
+
customerId: string;
|
|
5217
|
+
currency: string;
|
|
5218
|
+
/** Format: date */
|
|
5219
|
+
periodStart: string;
|
|
5220
|
+
/** Format: date */
|
|
5221
|
+
periodEnd: string;
|
|
5222
|
+
};
|
|
4983
5223
|
ProductCategoryResponse: {
|
|
4984
5224
|
/** Format: uuid */
|
|
4985
5225
|
id: string;
|
|
@@ -5406,6 +5646,9 @@ export interface components {
|
|
|
5406
5646
|
updatedAtUtc: null | string;
|
|
5407
5647
|
setBySubjectId: null | string;
|
|
5408
5648
|
};
|
|
5649
|
+
ReversePaymentRequest: {
|
|
5650
|
+
reason: string;
|
|
5651
|
+
};
|
|
5409
5652
|
ReviseComparisonSchemaBodyRequest: {
|
|
5410
5653
|
body: null | string;
|
|
5411
5654
|
/** Format: int32 */
|
|
@@ -5479,6 +5722,78 @@ export interface components {
|
|
|
5479
5722
|
quoteRequestId: null | string;
|
|
5480
5723
|
options: null | components["schemas"]["PresentedOptionRequest"][];
|
|
5481
5724
|
};
|
|
5725
|
+
StatementChargeResponse: {
|
|
5726
|
+
/** Format: uuid */
|
|
5727
|
+
obligationId: string;
|
|
5728
|
+
/** Format: uuid */
|
|
5729
|
+
policyId: string;
|
|
5730
|
+
/** Format: uuid */
|
|
5731
|
+
productId: string;
|
|
5732
|
+
description: string;
|
|
5733
|
+
/** Format: double */
|
|
5734
|
+
amount: number | string;
|
|
5735
|
+
/** Format: double */
|
|
5736
|
+
amountOwed: number | string;
|
|
5737
|
+
/** Format: date */
|
|
5738
|
+
dueOn: string;
|
|
5739
|
+
/** Format: date-time */
|
|
5740
|
+
raisedAtUtc: string;
|
|
5741
|
+
status: string;
|
|
5742
|
+
};
|
|
5743
|
+
StatementPage: {
|
|
5744
|
+
items: components["schemas"]["StatementSummaryResponse"][];
|
|
5745
|
+
nextCursor: null | string;
|
|
5746
|
+
};
|
|
5747
|
+
StatementPaymentResponse: {
|
|
5748
|
+
/** Format: uuid */
|
|
5749
|
+
paymentId: string;
|
|
5750
|
+
/** Format: uuid */
|
|
5751
|
+
obligationId: string;
|
|
5752
|
+
/** Format: double */
|
|
5753
|
+
amount: number | string;
|
|
5754
|
+
source: string;
|
|
5755
|
+
externalReference: string;
|
|
5756
|
+
/** Format: date-time */
|
|
5757
|
+
postedAtUtc: string;
|
|
5758
|
+
isReversed: boolean;
|
|
5759
|
+
};
|
|
5760
|
+
StatementResponse: {
|
|
5761
|
+
/** Format: uuid */
|
|
5762
|
+
id: string;
|
|
5763
|
+
/** Format: uuid */
|
|
5764
|
+
customerId: string;
|
|
5765
|
+
currency: string;
|
|
5766
|
+
/** Format: date */
|
|
5767
|
+
periodStart: string;
|
|
5768
|
+
/** Format: date */
|
|
5769
|
+
periodEnd: string;
|
|
5770
|
+
/** Format: date-time */
|
|
5771
|
+
producedAtUtc: string;
|
|
5772
|
+
/** Format: double */
|
|
5773
|
+
openingBalance: number | string;
|
|
5774
|
+
/** Format: double */
|
|
5775
|
+
charged: number | string;
|
|
5776
|
+
/** Format: double */
|
|
5777
|
+
paid: number | string;
|
|
5778
|
+
/** Format: double */
|
|
5779
|
+
closingBalance: number | string;
|
|
5780
|
+
policyIds: string[];
|
|
5781
|
+
charges: components["schemas"]["StatementChargeResponse"][];
|
|
5782
|
+
payments: components["schemas"]["StatementPaymentResponse"][];
|
|
5783
|
+
};
|
|
5784
|
+
StatementSummaryResponse: {
|
|
5785
|
+
/** Format: uuid */
|
|
5786
|
+
id: string;
|
|
5787
|
+
/** Format: uuid */
|
|
5788
|
+
customerId: string;
|
|
5789
|
+
currency: string;
|
|
5790
|
+
/** Format: date */
|
|
5791
|
+
periodStart: string;
|
|
5792
|
+
/** Format: date */
|
|
5793
|
+
periodEnd: string;
|
|
5794
|
+
/** Format: date-time */
|
|
5795
|
+
producedAtUtc: string;
|
|
5796
|
+
};
|
|
5482
5797
|
SubmissionAttachmentDownloadLinkResponse: {
|
|
5483
5798
|
url: string;
|
|
5484
5799
|
/** Format: date-time */
|
|
@@ -5865,7 +6180,7 @@ export interface operations {
|
|
|
5865
6180
|
};
|
|
5866
6181
|
};
|
|
5867
6182
|
};
|
|
5868
|
-
|
|
6183
|
+
ListCreditNotes: {
|
|
5869
6184
|
parameters: {
|
|
5870
6185
|
query?: never;
|
|
5871
6186
|
header?: never;
|
|
@@ -5882,7 +6197,7 @@ export interface operations {
|
|
|
5882
6197
|
[name: string]: unknown;
|
|
5883
6198
|
};
|
|
5884
6199
|
content: {
|
|
5885
|
-
"application/json": components["schemas"]["
|
|
6200
|
+
"application/json": components["schemas"]["CreditNoteResponse"][];
|
|
5886
6201
|
};
|
|
5887
6202
|
};
|
|
5888
6203
|
/** @description Not Found */
|
|
@@ -5892,18 +6207,9 @@ export interface operations {
|
|
|
5892
6207
|
};
|
|
5893
6208
|
content?: never;
|
|
5894
6209
|
};
|
|
5895
|
-
/** @description Conflict */
|
|
5896
|
-
409: {
|
|
5897
|
-
headers: {
|
|
5898
|
-
[name: string]: unknown;
|
|
5899
|
-
};
|
|
5900
|
-
content: {
|
|
5901
|
-
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
5902
|
-
};
|
|
5903
|
-
};
|
|
5904
6210
|
};
|
|
5905
6211
|
};
|
|
5906
|
-
|
|
6212
|
+
IssueCreditNote: {
|
|
5907
6213
|
parameters: {
|
|
5908
6214
|
query?: never;
|
|
5909
6215
|
header?: never;
|
|
@@ -5912,15 +6218,28 @@ export interface operations {
|
|
|
5912
6218
|
};
|
|
5913
6219
|
cookie?: never;
|
|
5914
6220
|
};
|
|
5915
|
-
requestBody
|
|
6221
|
+
requestBody: {
|
|
6222
|
+
content: {
|
|
6223
|
+
"application/json": components["schemas"]["IssueCreditNoteRequest"];
|
|
6224
|
+
};
|
|
6225
|
+
};
|
|
5916
6226
|
responses: {
|
|
5917
|
-
/** @description
|
|
5918
|
-
|
|
6227
|
+
/** @description Created */
|
|
6228
|
+
201: {
|
|
5919
6229
|
headers: {
|
|
5920
6230
|
[name: string]: unknown;
|
|
5921
6231
|
};
|
|
5922
6232
|
content: {
|
|
5923
|
-
"application/json": components["schemas"]["
|
|
6233
|
+
"application/json": components["schemas"]["CreditNoteResponse"];
|
|
6234
|
+
};
|
|
6235
|
+
};
|
|
6236
|
+
/** @description Bad Request */
|
|
6237
|
+
400: {
|
|
6238
|
+
headers: {
|
|
6239
|
+
[name: string]: unknown;
|
|
6240
|
+
};
|
|
6241
|
+
content: {
|
|
6242
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
5924
6243
|
};
|
|
5925
6244
|
};
|
|
5926
6245
|
/** @description Not Found */
|
|
@@ -5930,10 +6249,86 @@ export interface operations {
|
|
|
5930
6249
|
};
|
|
5931
6250
|
content?: never;
|
|
5932
6251
|
};
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
6252
|
+
/** @description Conflict */
|
|
6253
|
+
409: {
|
|
6254
|
+
headers: {
|
|
6255
|
+
[name: string]: unknown;
|
|
6256
|
+
};
|
|
6257
|
+
content: {
|
|
6258
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
6259
|
+
};
|
|
6260
|
+
};
|
|
6261
|
+
};
|
|
6262
|
+
};
|
|
6263
|
+
DiscardInvoice: {
|
|
6264
|
+
parameters: {
|
|
6265
|
+
query?: never;
|
|
6266
|
+
header?: never;
|
|
6267
|
+
path: {
|
|
6268
|
+
id: string;
|
|
6269
|
+
};
|
|
6270
|
+
cookie?: never;
|
|
6271
|
+
};
|
|
6272
|
+
requestBody?: never;
|
|
6273
|
+
responses: {
|
|
6274
|
+
/** @description OK */
|
|
6275
|
+
200: {
|
|
6276
|
+
headers: {
|
|
6277
|
+
[name: string]: unknown;
|
|
6278
|
+
};
|
|
6279
|
+
content: {
|
|
6280
|
+
"application/json": components["schemas"]["InvoiceResponse"];
|
|
6281
|
+
};
|
|
6282
|
+
};
|
|
6283
|
+
/** @description Not Found */
|
|
6284
|
+
404: {
|
|
6285
|
+
headers: {
|
|
6286
|
+
[name: string]: unknown;
|
|
6287
|
+
};
|
|
6288
|
+
content?: never;
|
|
6289
|
+
};
|
|
6290
|
+
/** @description Conflict */
|
|
6291
|
+
409: {
|
|
6292
|
+
headers: {
|
|
6293
|
+
[name: string]: unknown;
|
|
6294
|
+
};
|
|
6295
|
+
content: {
|
|
6296
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
6297
|
+
};
|
|
6298
|
+
};
|
|
6299
|
+
};
|
|
6300
|
+
};
|
|
6301
|
+
GetInvoice: {
|
|
6302
|
+
parameters: {
|
|
6303
|
+
query?: never;
|
|
6304
|
+
header?: never;
|
|
6305
|
+
path: {
|
|
6306
|
+
id: string;
|
|
6307
|
+
};
|
|
6308
|
+
cookie?: never;
|
|
6309
|
+
};
|
|
6310
|
+
requestBody?: never;
|
|
6311
|
+
responses: {
|
|
6312
|
+
/** @description OK */
|
|
6313
|
+
200: {
|
|
6314
|
+
headers: {
|
|
6315
|
+
[name: string]: unknown;
|
|
6316
|
+
};
|
|
6317
|
+
content: {
|
|
6318
|
+
"application/json": components["schemas"]["InvoiceResponse"];
|
|
6319
|
+
};
|
|
6320
|
+
};
|
|
6321
|
+
/** @description Not Found */
|
|
6322
|
+
404: {
|
|
6323
|
+
headers: {
|
|
6324
|
+
[name: string]: unknown;
|
|
6325
|
+
};
|
|
6326
|
+
content?: never;
|
|
6327
|
+
};
|
|
6328
|
+
};
|
|
6329
|
+
};
|
|
6330
|
+
RecordPayment: {
|
|
6331
|
+
parameters: {
|
|
5937
6332
|
query?: never;
|
|
5938
6333
|
header?: never;
|
|
5939
6334
|
path: {
|
|
@@ -6108,6 +6503,86 @@ export interface operations {
|
|
|
6108
6503
|
};
|
|
6109
6504
|
};
|
|
6110
6505
|
};
|
|
6506
|
+
GetPaymentReversal: {
|
|
6507
|
+
parameters: {
|
|
6508
|
+
query?: never;
|
|
6509
|
+
header?: never;
|
|
6510
|
+
path: {
|
|
6511
|
+
id: string;
|
|
6512
|
+
};
|
|
6513
|
+
cookie?: never;
|
|
6514
|
+
};
|
|
6515
|
+
requestBody?: never;
|
|
6516
|
+
responses: {
|
|
6517
|
+
/** @description OK */
|
|
6518
|
+
200: {
|
|
6519
|
+
headers: {
|
|
6520
|
+
[name: string]: unknown;
|
|
6521
|
+
};
|
|
6522
|
+
content: {
|
|
6523
|
+
"application/json": components["schemas"]["PaymentReversalResponse"];
|
|
6524
|
+
};
|
|
6525
|
+
};
|
|
6526
|
+
/** @description Not Found */
|
|
6527
|
+
404: {
|
|
6528
|
+
headers: {
|
|
6529
|
+
[name: string]: unknown;
|
|
6530
|
+
};
|
|
6531
|
+
content?: never;
|
|
6532
|
+
};
|
|
6533
|
+
};
|
|
6534
|
+
};
|
|
6535
|
+
ReversePayment: {
|
|
6536
|
+
parameters: {
|
|
6537
|
+
query?: never;
|
|
6538
|
+
header?: never;
|
|
6539
|
+
path: {
|
|
6540
|
+
id: string;
|
|
6541
|
+
};
|
|
6542
|
+
cookie?: never;
|
|
6543
|
+
};
|
|
6544
|
+
requestBody: {
|
|
6545
|
+
content: {
|
|
6546
|
+
"application/json": components["schemas"]["ReversePaymentRequest"];
|
|
6547
|
+
};
|
|
6548
|
+
};
|
|
6549
|
+
responses: {
|
|
6550
|
+
/** @description Created */
|
|
6551
|
+
201: {
|
|
6552
|
+
headers: {
|
|
6553
|
+
[name: string]: unknown;
|
|
6554
|
+
};
|
|
6555
|
+
content: {
|
|
6556
|
+
"application/json": components["schemas"]["PaymentReversalResponse"];
|
|
6557
|
+
};
|
|
6558
|
+
};
|
|
6559
|
+
/** @description Bad Request */
|
|
6560
|
+
400: {
|
|
6561
|
+
headers: {
|
|
6562
|
+
[name: string]: unknown;
|
|
6563
|
+
};
|
|
6564
|
+
content: {
|
|
6565
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
6566
|
+
};
|
|
6567
|
+
};
|
|
6568
|
+
/** @description Not Found */
|
|
6569
|
+
404: {
|
|
6570
|
+
headers: {
|
|
6571
|
+
[name: string]: unknown;
|
|
6572
|
+
};
|
|
6573
|
+
content?: never;
|
|
6574
|
+
};
|
|
6575
|
+
/** @description Conflict */
|
|
6576
|
+
409: {
|
|
6577
|
+
headers: {
|
|
6578
|
+
[name: string]: unknown;
|
|
6579
|
+
};
|
|
6580
|
+
content: {
|
|
6581
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
6582
|
+
};
|
|
6583
|
+
};
|
|
6584
|
+
};
|
|
6585
|
+
};
|
|
6111
6586
|
DownloadPaymentEvidence: {
|
|
6112
6587
|
parameters: {
|
|
6113
6588
|
query?: never;
|
|
@@ -6227,6 +6702,162 @@ export interface operations {
|
|
|
6227
6702
|
};
|
|
6228
6703
|
};
|
|
6229
6704
|
};
|
|
6705
|
+
ListStatements: {
|
|
6706
|
+
parameters: {
|
|
6707
|
+
query?: {
|
|
6708
|
+
customerId?: string;
|
|
6709
|
+
cursor?: string;
|
|
6710
|
+
limit?: number | string;
|
|
6711
|
+
};
|
|
6712
|
+
header?: never;
|
|
6713
|
+
path?: never;
|
|
6714
|
+
cookie?: never;
|
|
6715
|
+
};
|
|
6716
|
+
requestBody?: never;
|
|
6717
|
+
responses: {
|
|
6718
|
+
/** @description OK */
|
|
6719
|
+
200: {
|
|
6720
|
+
headers: {
|
|
6721
|
+
[name: string]: unknown;
|
|
6722
|
+
};
|
|
6723
|
+
content: {
|
|
6724
|
+
"application/json": components["schemas"]["StatementPage"];
|
|
6725
|
+
};
|
|
6726
|
+
};
|
|
6727
|
+
/** @description Bad Request */
|
|
6728
|
+
400: {
|
|
6729
|
+
headers: {
|
|
6730
|
+
[name: string]: unknown;
|
|
6731
|
+
};
|
|
6732
|
+
content: {
|
|
6733
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
6734
|
+
};
|
|
6735
|
+
};
|
|
6736
|
+
};
|
|
6737
|
+
};
|
|
6738
|
+
ProduceStatement: {
|
|
6739
|
+
parameters: {
|
|
6740
|
+
query?: never;
|
|
6741
|
+
header?: never;
|
|
6742
|
+
path?: never;
|
|
6743
|
+
cookie?: never;
|
|
6744
|
+
};
|
|
6745
|
+
requestBody: {
|
|
6746
|
+
content: {
|
|
6747
|
+
"application/json": components["schemas"]["ProduceStatementRequest"];
|
|
6748
|
+
};
|
|
6749
|
+
};
|
|
6750
|
+
responses: {
|
|
6751
|
+
/** @description Created */
|
|
6752
|
+
201: {
|
|
6753
|
+
headers: {
|
|
6754
|
+
[name: string]: unknown;
|
|
6755
|
+
};
|
|
6756
|
+
content: {
|
|
6757
|
+
"application/json": components["schemas"]["StatementResponse"];
|
|
6758
|
+
};
|
|
6759
|
+
};
|
|
6760
|
+
/** @description Bad Request */
|
|
6761
|
+
400: {
|
|
6762
|
+
headers: {
|
|
6763
|
+
[name: string]: unknown;
|
|
6764
|
+
};
|
|
6765
|
+
content: {
|
|
6766
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
6767
|
+
};
|
|
6768
|
+
};
|
|
6769
|
+
};
|
|
6770
|
+
};
|
|
6771
|
+
GetStatement: {
|
|
6772
|
+
parameters: {
|
|
6773
|
+
query?: never;
|
|
6774
|
+
header?: never;
|
|
6775
|
+
path: {
|
|
6776
|
+
id: string;
|
|
6777
|
+
};
|
|
6778
|
+
cookie?: never;
|
|
6779
|
+
};
|
|
6780
|
+
requestBody?: never;
|
|
6781
|
+
responses: {
|
|
6782
|
+
/** @description OK */
|
|
6783
|
+
200: {
|
|
6784
|
+
headers: {
|
|
6785
|
+
[name: string]: unknown;
|
|
6786
|
+
};
|
|
6787
|
+
content: {
|
|
6788
|
+
"application/json": components["schemas"]["StatementResponse"];
|
|
6789
|
+
};
|
|
6790
|
+
};
|
|
6791
|
+
/** @description Not Found */
|
|
6792
|
+
404: {
|
|
6793
|
+
headers: {
|
|
6794
|
+
[name: string]: unknown;
|
|
6795
|
+
};
|
|
6796
|
+
content?: never;
|
|
6797
|
+
};
|
|
6798
|
+
};
|
|
6799
|
+
};
|
|
6800
|
+
ListOwnStatements: {
|
|
6801
|
+
parameters: {
|
|
6802
|
+
query?: {
|
|
6803
|
+
cursor?: string;
|
|
6804
|
+
limit?: number | string;
|
|
6805
|
+
};
|
|
6806
|
+
header?: never;
|
|
6807
|
+
path?: never;
|
|
6808
|
+
cookie?: never;
|
|
6809
|
+
};
|
|
6810
|
+
requestBody?: never;
|
|
6811
|
+
responses: {
|
|
6812
|
+
/** @description OK */
|
|
6813
|
+
200: {
|
|
6814
|
+
headers: {
|
|
6815
|
+
[name: string]: unknown;
|
|
6816
|
+
};
|
|
6817
|
+
content: {
|
|
6818
|
+
"application/json": components["schemas"]["StatementPage"];
|
|
6819
|
+
};
|
|
6820
|
+
};
|
|
6821
|
+
/** @description Bad Request */
|
|
6822
|
+
400: {
|
|
6823
|
+
headers: {
|
|
6824
|
+
[name: string]: unknown;
|
|
6825
|
+
};
|
|
6826
|
+
content: {
|
|
6827
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
6828
|
+
};
|
|
6829
|
+
};
|
|
6830
|
+
};
|
|
6831
|
+
};
|
|
6832
|
+
GetOwnStatement: {
|
|
6833
|
+
parameters: {
|
|
6834
|
+
query?: never;
|
|
6835
|
+
header?: never;
|
|
6836
|
+
path: {
|
|
6837
|
+
id: string;
|
|
6838
|
+
};
|
|
6839
|
+
cookie?: never;
|
|
6840
|
+
};
|
|
6841
|
+
requestBody?: never;
|
|
6842
|
+
responses: {
|
|
6843
|
+
/** @description OK */
|
|
6844
|
+
200: {
|
|
6845
|
+
headers: {
|
|
6846
|
+
[name: string]: unknown;
|
|
6847
|
+
};
|
|
6848
|
+
content: {
|
|
6849
|
+
"application/json": components["schemas"]["StatementResponse"];
|
|
6850
|
+
};
|
|
6851
|
+
};
|
|
6852
|
+
/** @description Not Found */
|
|
6853
|
+
404: {
|
|
6854
|
+
headers: {
|
|
6855
|
+
[name: string]: unknown;
|
|
6856
|
+
};
|
|
6857
|
+
content?: never;
|
|
6858
|
+
};
|
|
6859
|
+
};
|
|
6860
|
+
};
|
|
6230
6861
|
ListInsurers: {
|
|
6231
6862
|
parameters: {
|
|
6232
6863
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.0",
|
|
4
4
|
"description": "Generated TypeScript client for the Insurance Broker Platform API. Do not edit by hand: regenerate with scripts/update-api-contract.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|