@insurance-broker/api-client 5.8.0 → 5.10.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 +65 -23
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface paths {
|
|
|
45
45
|
*
|
|
46
46
|
* **What a key does not do**: it assumes the retrying client owns it. Two people at two desks recording the same instalment invent two keys, and both charges are raised (ADR-0042 §19).
|
|
47
47
|
*
|
|
48
|
-
* **Two different things answer `409` here.** A key collision is settled — retrying it can only fail again —
|
|
48
|
+
* **Two different things answer `409` here.** A key collision is settled — retrying it can only fail again — carries no `retryable` marker, and is typed `urn:brokerplatform:problem:idempotency-key-reused` (#593). The group's concurrency conflict is the other one, `urn:brokerplatform:problem:concurrency-conflict`, and says it is retryable. Branch on the `type`, not on the status.
|
|
49
49
|
*/
|
|
50
50
|
post: operations["RaiseObligation"];
|
|
51
51
|
delete?: never;
|
|
@@ -91,7 +91,7 @@ export interface paths {
|
|
|
91
91
|
* Withdraw an obligation raised in error
|
|
92
92
|
* @description Records that the charge should never have existed. **This is not a write-off**: writing off records that a real debt will not be collected, which is a decision with money behind it and a reason attached, and it arrives in step 9.7. Collapsing the two would make "how much did this broker forgive" unanswerable.
|
|
93
93
|
*
|
|
94
|
-
* Cancelling starts the record's retention clock (ADR-0038 §2), so it is refused a second time rather than silently re-stamped — re-stamping would move the anchor of a record that concluded earlier.
|
|
94
|
+
* Cancelling starts the record's retention clock (ADR-0038 §2), so it is refused a second time rather than silently re-stamped — re-stamping would move the anchor of a record that concluded earlier. That refusal is `409` `urn:brokerplatform:problem:obligation-concluded` (#593), the type recording a payment against a concluded charge answers, and it is not retryable. A `409` can also be the platform's concurrency conflict, `urn:brokerplatform:problem:concurrency-conflict` with `retryable: true`.
|
|
95
95
|
*/
|
|
96
96
|
post: operations["CancelObligation"];
|
|
97
97
|
delete?: never;
|
|
@@ -119,7 +119,9 @@ export interface paths {
|
|
|
119
119
|
*
|
|
120
120
|
* **It is why an obligation nobody will chase is not kept for ever.** An unsettled charge has no retention anchor and is therefore kept (ADR-0038 section 2); writing one off is the event that starts its clock.
|
|
121
121
|
*
|
|
122
|
-
* Refused on a charge that has already concluded — a settled one was paid and a cancelled one was never owed — rather than silently re-stamping an anchor.
|
|
122
|
+
* Refused on a charge that has already concluded — a settled one was paid and a cancelled one was never owed — rather than silently re-stamping an anchor. That refusal is `409` `urn:brokerplatform:problem:obligation-concluded` (#593), and it is not retryable. A `409` can also be the platform's concurrency conflict, `urn:brokerplatform:problem:concurrency-conflict` with `retryable: true`.
|
|
123
|
+
*
|
|
124
|
+
* A missing or over-long reason is `400` on `Reason`, the member's own name, which is the platform's majority convention; WorkflowComms' device and preference routes are the known exception (#613). It was `reason` until client 5.10.0 (#593).
|
|
123
125
|
*/
|
|
124
126
|
post: operations["WriteOffObligation"];
|
|
125
127
|
delete?: never;
|
|
@@ -159,7 +161,7 @@ export interface paths {
|
|
|
159
161
|
*
|
|
160
162
|
* **A key is honoured for 30 days from the moment the invoice was written, and then stops being honoured** — after that the same key is one this platform has never seen. Mint a fresh key per intended invoice; do not recycle one.
|
|
161
163
|
*
|
|
162
|
-
* **The key collision `409` is settled**: retrying it can only fail again,
|
|
164
|
+
* **The key collision `409` is settled**: retrying it can only fail again, it carries no `retryable` marker, and it is typed `urn:brokerplatform:problem:idempotency-key-reused` (#593).
|
|
163
165
|
*/
|
|
164
166
|
post: operations["DraftInvoice"];
|
|
165
167
|
delete?: never;
|
|
@@ -185,7 +187,7 @@ export interface paths {
|
|
|
185
187
|
*
|
|
186
188
|
* There is **no ordinal field**. The position is derived from the lines already present.
|
|
187
189
|
*
|
|
188
|
-
* Refused once the invoice is issued: issue is a one-way door.
|
|
190
|
+
* Refused once the invoice is issued: issue is a one-way door. That refusal, and the same one for a discarded invoice, is `409` `urn:brokerplatform:problem:invoice-not-a-draft` (#593), which is not retryable. A `409` can also be the platform's concurrency conflict, `urn:brokerplatform:problem:concurrency-conflict` with `retryable: true`.
|
|
189
191
|
*/
|
|
190
192
|
post: operations["AddInvoiceLine"];
|
|
191
193
|
delete?: never;
|
|
@@ -210,6 +212,8 @@ export interface paths {
|
|
|
210
212
|
* An invoice with **no lines is refused**: that would be a demand for nothing. A broker charging nil says so with a zero-rated line.
|
|
211
213
|
*
|
|
212
214
|
* Issuing twice is a `409`, and it is not retryable: the invoice is already issued and reading it back is the resolution.
|
|
215
|
+
*
|
|
216
|
+
* **Each `409` carries a `type`** (#593): `urn:brokerplatform:problem:invoice-not-a-draft` (already issued or discarded; read it back), `urn:brokerplatform:problem:invoice-has-no-lines` (still a draft; add a line and issue again), and the platform's `urn:brokerplatform:problem:concurrency-conflict` with `retryable: true`.
|
|
213
217
|
*/
|
|
214
218
|
post: operations["IssueInvoice"];
|
|
215
219
|
delete?: never;
|
|
@@ -245,11 +249,15 @@ export interface paths {
|
|
|
245
249
|
*
|
|
246
250
|
* Refused against a **draft** invoice: a draft was never demanded of anybody, so it is discarded rather than credited.
|
|
247
251
|
*
|
|
252
|
+
* **Each `409` carries a `type`** (#593): `urn:brokerplatform:problem:invoice-not-issued` (a draft or a discarded invoice), `urn:brokerplatform:problem:credit-note-exceeds-invoice` (credit less, counting the notes already issued) and `urn:brokerplatform:problem:idempotency-key-reused`. None is retryable.
|
|
253
|
+
*
|
|
254
|
+
* **Validation keys are the members' own names** — `Reason`, `Lines`, `IdempotencyKey` — which is the platform's majority convention; WorkflowComms' device and preference routes are the known exception (#613). They were camel-cased until client 5.10.0 (#593).
|
|
255
|
+
*
|
|
248
256
|
* **A retried credit note without a key credits the customer twice**, so send one. **`idempotencyKey` is optional, and it is what makes a retry after a lost response safe.** Without one, every request writes a new credit note. With one, a repeat carrying a key already used **answers the original credit note with the same `201 Created` and the same `Location`** and writes nothing; a repeat carrying that key with a **different** invoice, reason or set of lines is a `409` and writes nothing. The key is trimmed, at most 200 characters, blank is no key, and it belongs to this broker alone.
|
|
249
257
|
*
|
|
250
258
|
* **A key is honoured for 30 days from the moment the credit note was written, and then stops being honoured** — after that the same key is one this platform has never seen. Mint a fresh key per intended credit note; do not recycle one.
|
|
251
259
|
*
|
|
252
|
-
* **The key collision `409` is settled**: retrying it can only fail again,
|
|
260
|
+
* **The key collision `409` is settled**: retrying it can only fail again, it carries no `retryable` marker, and it is typed `urn:brokerplatform:problem:idempotency-key-reused` (#593).
|
|
253
261
|
*/
|
|
254
262
|
post: operations["IssueCreditNote"];
|
|
255
263
|
delete?: never;
|
|
@@ -271,7 +279,7 @@ export interface paths {
|
|
|
271
279
|
* Abandon a draft that should never have been raised
|
|
272
280
|
* @description Records that this demand was never made — the customer never saw it and owes nothing on account of it. **Only a draft may be discarded.** An issued invoice that should not have been issued is corrected by a credit note, because the customer has seen the demand and BR-010 will not have it silently withdrawn.
|
|
273
281
|
*
|
|
274
|
-
* Discarding starts the record's retention clock (ADR-0038 section 2), so it is refused a second time rather than silently re-stamped.
|
|
282
|
+
* Discarding starts the record's retention clock (ADR-0038 section 2), so it is refused a second time rather than silently re-stamped. Refusing an invoice that is not a draft is `409` `urn:brokerplatform:problem:invoice-not-a-draft` (#593), which is not retryable. A `409` can also be the platform's concurrency conflict, `urn:brokerplatform:problem:concurrency-conflict` with `retryable: true`.
|
|
275
283
|
*/
|
|
276
284
|
post: operations["DiscardInvoice"];
|
|
277
285
|
delete?: never;
|
|
@@ -323,7 +331,9 @@ export interface paths {
|
|
|
323
331
|
*
|
|
324
332
|
* The currency is **not** a field: it is the obligation's, held by a foreign key rather than by this handler. Nil is refused — a payment of nothing is nothing having arrived.
|
|
325
333
|
*
|
|
326
|
-
* **Name a payment method or type a source, exactly one** (#530). `paymentMethodId` is one of this broker's active payment methods: its code becomes the payment's `source`, and customers see the method's label. `source` alone is free text, as before, and customers see it as typed. Both, neither, a retired method or another broker's method are refused with `400` and nothing is recorded.
|
|
334
|
+
* **Name a payment method or type a source, exactly one** (#530). `paymentMethodId` is one of this broker's active payment methods: its code becomes the payment's `source`, and customers see the method's label. `source` alone is free text, as before, and customers see it as typed. Both, neither, a retired method or another broker's method are refused with `400` and nothing is recorded. A typed source containing a control character is refused with `400` on `Source` (#601).
|
|
335
|
+
*
|
|
336
|
+
* **Each `409` carries a `type`** (#593): `urn:brokerplatform:problem:payment-already-recorded` (the same money is already recorded; the problem names the payment), `urn:brokerplatform:problem:payment-reference-amount-conflict` (that reference is recorded for a different amount), `urn:brokerplatform:problem:obligation-concluded` (the charge is settled, cancelled or written off, so nothing can be paid against it; nothing is recorded), and the platform's `urn:brokerplatform:problem:concurrency-conflict` with `retryable: true`. Only the last is worth retrying.
|
|
327
337
|
*/
|
|
328
338
|
post: operations["RecordPayment"];
|
|
329
339
|
delete?: never;
|
|
@@ -367,13 +377,15 @@ export interface paths {
|
|
|
367
377
|
* List the money this broker has recorded, most recent first
|
|
368
378
|
* @description PAY-005. The payments this broker has recorded, ordered by when they posted, paged by cursor. A `customerId` or an `obligationId` narrows the list.
|
|
369
379
|
*
|
|
380
|
+
* **`awaitingApproval=true` is the approver's queue** (#593): only payments nobody has approved yet, that have not been reversed, and that the caller did not record - so it holds what this caller can approve, because nobody may approve a payment they recorded. The caller is the session's subject, so another approver's queue holds the payments this caller recorded. A payment with no clean evidence is still listed. It combines with the other filters and pages the same way. `false` or absent is no filter. A reversed payment is not in the queue, because the money it records did not arrive.
|
|
381
|
+
*
|
|
370
382
|
* **There is no `asOf` here, unlike `GET /obligations`.** Nothing in this list's predicate reads the clock - a payment posted at an instant the row records - so a member reporting when the page was measured would read as a freshness guarantee while guaranteeing nothing.
|
|
371
383
|
*
|
|
372
384
|
* **A reversed payment stays on the list** and carries `reversed: true`. Money that arrived and was sent back is a fact a reconciliation has to see, and a reversal is its own record rather than an edit to this one (ADR-0042 section 8).
|
|
373
385
|
*
|
|
374
386
|
* **Rows carry no subject identifiers.** Who recorded a payment and who approved it is the separation-of-duties record and it is on the payment itself, so a page-sized read cannot enumerate a broker's finance staff.
|
|
375
387
|
*
|
|
376
|
-
* **`customerId` and `
|
|
388
|
+
* **`customerId`, `obligationId` and `awaitingApproval` are filters and never authorisation.** The broker whose payments these are comes from the session.
|
|
377
389
|
*/
|
|
378
390
|
get: operations["ListPayments"];
|
|
379
391
|
put?: never;
|
|
@@ -452,6 +464,10 @@ export interface paths {
|
|
|
452
464
|
* **Approval is an act and not a status.** The payment's status set is untouched: collapsing the two would make *"recorded but not yet approved"* and *"the money is definitely there"* the same value.
|
|
453
465
|
*
|
|
454
466
|
* There is no un-approval. A payment approved in error is corrected by a reversal, which is step 9.7's, for the reason BR-010 gives about every financially significant record.
|
|
467
|
+
*
|
|
468
|
+
* **A reversed payment cannot be approved** (#604): the reversal records that the money did not arrive, so there is nothing to take responsibility for.
|
|
469
|
+
*
|
|
470
|
+
* **Each `409` carries a `type`**: `urn:brokerplatform:problem:payment-already-approved`, `urn:brokerplatform:problem:payment-already-reversed`, `urn:brokerplatform:problem:payment-self-approval` (a colleague must approve it), `urn:brokerplatform:problem:payment-approval-unevidenced` (file evidence and wait for the scan), and the platform's `urn:brokerplatform:problem:concurrency-conflict` with `retryable: true`. Only the last is worth retrying as it stands.
|
|
455
471
|
*/
|
|
456
472
|
post: operations["ApprovePayment"];
|
|
457
473
|
delete?: never;
|
|
@@ -542,6 +558,8 @@ export interface paths {
|
|
|
542
558
|
* **The type is taken from the file's own bytes, never from the part header.** A part declaring one thing and holding another is refused rather than believed.
|
|
543
559
|
*
|
|
544
560
|
* **A payment cannot be approved until at least one of its files is `Clean`**, which is the other half of PAY-003 and the reason this route exists.
|
|
561
|
+
*
|
|
562
|
+
* **A reversed payment takes no evidence** (#593): the money it records did not arrive, so there is nothing left to approve. The answer is `409` `urn:brokerplatform:problem:payment-already-reversed`, the type reversing it again answers, and it is not retryable. The body is not read.
|
|
545
563
|
*/
|
|
546
564
|
post: operations["UploadPaymentEvidence"];
|
|
547
565
|
delete?: never;
|
|
@@ -581,7 +599,7 @@ export interface paths {
|
|
|
581
599
|
*
|
|
582
600
|
* **A key is honoured for 30 days from the moment the statement was produced, and then stops being honoured** — after that the same key is one this platform has never seen. Mint a fresh key per intended statement; do not recycle one.
|
|
583
601
|
*
|
|
584
|
-
* **The key collision `409` is settled**: retrying it can only fail again,
|
|
602
|
+
* **The key collision `409` is settled**: retrying it can only fail again, it carries no `retryable` marker, and it is typed `urn:brokerplatform:problem:idempotency-key-reused` (#593).
|
|
585
603
|
*/
|
|
586
604
|
post: operations["ProduceStatement"];
|
|
587
605
|
delete?: never;
|
|
@@ -805,7 +823,7 @@ export interface paths {
|
|
|
805
823
|
* Add a way this broker's customers pay
|
|
806
824
|
* @description #530. `code` is a stable identifier — lower-case letters, digits and hyphens, at most 40 characters — unique within this broker and never changed. `label` is what customers read, at most 80 characters, and can be changed later.
|
|
807
825
|
*
|
|
808
|
-
* **A code is never reused**, even after its method is retired, because payments recorded against the method carry it as their `source`. A code already taken is `409
|
|
826
|
+
* **A code is never reused**, even after its method is retired, because payments recorded against the method carry it as their `source`. A code already taken is `409` `urn:brokerplatform:problem:payment-method-code-taken` (#604), which is not retryable: choose another code.
|
|
809
827
|
*/
|
|
810
828
|
post: operations["CreatePaymentMethod"];
|
|
811
829
|
delete?: never;
|
|
@@ -867,7 +885,7 @@ export interface paths {
|
|
|
867
885
|
put?: never;
|
|
868
886
|
/**
|
|
869
887
|
* Stop a payment method being chosen for new payments
|
|
870
|
-
* @description #530. **One-way.** A retired method cannot be chosen when recording a payment, keeps labelling the payments already recorded against it, and keeps its code, which is never given to another method. Retiring one already retired is `409
|
|
888
|
+
* @description #530. **One-way.** A retired method cannot be chosen when recording a payment, keeps labelling the payments already recorded against it, and keeps its code, which is never given to another method. Retiring one already retired is `409` `urn:brokerplatform:problem:payment-method-retired` (#604), which is not retryable: the method is already retired. A `409` can also be the platform's concurrency conflict, `urn:brokerplatform:problem:concurrency-conflict` with `retryable: true`, when another write changed the method after it was read.
|
|
871
889
|
*/
|
|
872
890
|
post: operations["RetirePaymentMethod"];
|
|
873
891
|
delete?: never;
|
|
@@ -917,7 +935,9 @@ export interface paths {
|
|
|
917
935
|
*
|
|
918
936
|
* **A mapping can be undone** with `POST /payment-methods/{id}/source-mappings/removal`, or pointed at another method with `POST /payment-methods/{id}/source-mappings/correction` (#588). A payment with this source that names this method through a mapping not marked as one (made by an API instance from before #588) is marked by this request, so it can then be corrected; it is counted in `alreadyMapped`.
|
|
919
937
|
*
|
|
920
|
-
*
|
|
938
|
+
* **`skipped` lists payments only when the caller also holds `billing.payments.read`** (#602). Without it, `skipped` is empty and `skippedCount` still says how many were skipped: the entries name payments and their references, which is payment data. So **a `skippedCount` above zero with an empty `skipped` means the skipped payments are not shown to this caller**, not that the list was lost; with `billing.payments.read`, `skipped` is never empty while `skippedCount` is above zero.
|
|
939
|
+
*
|
|
940
|
+
* A retired method is `409` `urn:brokerplatform:problem:payment-method-retired`, which is not retryable: choose an active method. A statement already produced keeps the wording it was produced with. A `409` can also be the platform's concurrency conflict, `urn:brokerplatform:problem:concurrency-conflict` with `retryable: true`: another write changed one of the payments while it was being mapped, or a payment was recorded against the method under one of these payments' references while the mapping ran. Nothing was mapped; send it again, and a retry lists any payment it would now duplicate as skipped.
|
|
921
941
|
*/
|
|
922
942
|
post: operations["MapFreeTextPaymentSource"];
|
|
923
943
|
delete?: never;
|
|
@@ -963,7 +983,7 @@ export interface paths {
|
|
|
963
983
|
* Correct a mapping: say the payments with a free-text source came through another method
|
|
964
984
|
* @description #588. Every payment of this broker whose `source` is exactly the given text and that **a mapping** gave this method is given `paymentMethodId` instead, in one step. Customers then see that method's label. No amount, source or reference changes, and a payment recorded against this method is never moved (counted in `recordedAgainstMethod`). A payment mapped by an API instance from before #588 is counted in `notYetCorrectable` and left alone until the source is mapped to this method again.
|
|
965
985
|
*
|
|
966
|
-
* `paymentMethodId` must be another active method of this broker: the same method, an unknown or another broker's method is `400` on `PaymentMethodId`, and a retired one is `409
|
|
986
|
+
* `paymentMethodId` must be another active method of this broker: the same method, an unknown or another broker's method is `400` on `PaymentMethodId`, and a retired one is `409` `urn:brokerplatform:problem:payment-method-retired`, which is not retryable. The method in the route may be retired.
|
|
967
987
|
*
|
|
968
988
|
* **All or nothing.** If the target method already holds the reference of any of the payments (a payment recorded against it, one mapped to it, or a free-text payment typed exactly as its code), nothing is moved and the answer is `409` `urn:brokerplatform:problem:payment-source-remap-collision`, which is not retryable, with `collisionCount`. **`collisions` is present only when the caller also holds `billing.payments.read`**: up to 200 entries naming each payment, its reference and the payment holding it. Undo the mapping instead and map the source to the target: the mapping maps the rest and lists those it skips.
|
|
969
989
|
*
|
|
@@ -7801,7 +7821,7 @@ export interface components {
|
|
|
7801
7821
|
coverStart: null | string;
|
|
7802
7822
|
/** Format: date */
|
|
7803
7823
|
coverEnd: null | string;
|
|
7804
|
-
status:
|
|
7824
|
+
status: components["schemas"]["InvoiceStatus"];
|
|
7805
7825
|
/** Format: date-time */
|
|
7806
7826
|
draftedAtUtc: string;
|
|
7807
7827
|
/** Format: date-time */
|
|
@@ -7812,6 +7832,8 @@ export interface components {
|
|
|
7812
7832
|
retentionAnchorAtUtc: null | string;
|
|
7813
7833
|
lines: components["schemas"]["InvoiceLineResponse"][];
|
|
7814
7834
|
};
|
|
7835
|
+
/** @enum {string} */
|
|
7836
|
+
InvoiceStatus: "Draft" | "Issued" | "Discarded";
|
|
7815
7837
|
InvoiceSummaryResponse: {
|
|
7816
7838
|
/** Format: uuid */
|
|
7817
7839
|
id: string;
|
|
@@ -7828,7 +7850,7 @@ export interface components {
|
|
|
7828
7850
|
coverStart: null | string;
|
|
7829
7851
|
/** Format: date */
|
|
7830
7852
|
coverEnd: null | string;
|
|
7831
|
-
status:
|
|
7853
|
+
status: components["schemas"]["InvoiceStatus"];
|
|
7832
7854
|
/** Format: date-time */
|
|
7833
7855
|
draftedAtUtc: string;
|
|
7834
7856
|
/** Format: date-time */
|
|
@@ -8035,13 +8057,15 @@ export interface components {
|
|
|
8035
8057
|
/** Format: date */
|
|
8036
8058
|
dueOn: string;
|
|
8037
8059
|
description: string;
|
|
8038
|
-
status:
|
|
8060
|
+
status: components["schemas"]["ObligationStatus"];
|
|
8039
8061
|
/** Format: date-time */
|
|
8040
8062
|
raisedAtUtc: string;
|
|
8041
8063
|
/** Format: date-time */
|
|
8042
8064
|
retentionAnchorAtUtc: null | string;
|
|
8043
8065
|
writeOffReason: null | string;
|
|
8044
8066
|
};
|
|
8067
|
+
/** @enum {string} */
|
|
8068
|
+
ObligationStatus: "Outstanding" | "Cancelled" | "Settled" | "WrittenOff";
|
|
8045
8069
|
ObligationSummaryResponse: {
|
|
8046
8070
|
/** Format: uuid */
|
|
8047
8071
|
id: string;
|
|
@@ -8061,7 +8085,7 @@ export interface components {
|
|
|
8061
8085
|
/** Format: date */
|
|
8062
8086
|
dueOn: string;
|
|
8063
8087
|
description: string;
|
|
8064
|
-
status:
|
|
8088
|
+
status: components["schemas"]["ObligationStatus"];
|
|
8065
8089
|
};
|
|
8066
8090
|
OfferedFormResponse: {
|
|
8067
8091
|
/** Format: uuid */
|
|
@@ -8214,10 +8238,12 @@ export interface components {
|
|
|
8214
8238
|
/** Format: double */
|
|
8215
8239
|
existingAmount: null | number | string;
|
|
8216
8240
|
};
|
|
8241
|
+
/** @enum {string} */
|
|
8242
|
+
PaymentEventKind: "Recorded" | "DuplicateRefused" | "ConflictingAmountRefused" | "EvidenceAttached" | "Approved" | "Reversed";
|
|
8217
8243
|
PaymentEventResponse: {
|
|
8218
8244
|
/** Format: uuid */
|
|
8219
8245
|
id: string;
|
|
8220
|
-
kind:
|
|
8246
|
+
kind: components["schemas"]["PaymentEventKind"];
|
|
8221
8247
|
/** Format: date-time */
|
|
8222
8248
|
occurredAtUtc: string;
|
|
8223
8249
|
actorSubjectId: string;
|
|
@@ -8237,7 +8263,7 @@ export interface components {
|
|
|
8237
8263
|
/** Format: date-time */
|
|
8238
8264
|
uploadedAtUtc: string;
|
|
8239
8265
|
uploadedBySubjectId: string;
|
|
8240
|
-
scanVerdict:
|
|
8266
|
+
scanVerdict: components["schemas"]["ScanVerdict"];
|
|
8241
8267
|
/** Format: date-time */
|
|
8242
8268
|
scannedAtUtc: null | string;
|
|
8243
8269
|
};
|
|
@@ -8288,7 +8314,7 @@ export interface components {
|
|
|
8288
8314
|
currency: string;
|
|
8289
8315
|
source: string;
|
|
8290
8316
|
externalReference: string;
|
|
8291
|
-
status:
|
|
8317
|
+
status: components["schemas"]["PaymentStatus"];
|
|
8292
8318
|
recordedBySubjectId: string;
|
|
8293
8319
|
/** Format: date-time */
|
|
8294
8320
|
postedAtUtc: string;
|
|
@@ -8297,6 +8323,7 @@ export interface components {
|
|
|
8297
8323
|
approvedAtUtc: null | string;
|
|
8298
8324
|
/** Format: uuid */
|
|
8299
8325
|
paymentMethodId: null | string;
|
|
8326
|
+
paymentMethodWasMapped: boolean;
|
|
8300
8327
|
};
|
|
8301
8328
|
PaymentReversalResponse: {
|
|
8302
8329
|
/** Format: uuid */
|
|
@@ -8349,6 +8376,8 @@ export interface components {
|
|
|
8349
8376
|
/** Format: int32 */
|
|
8350
8377
|
notYetCorrectable: number;
|
|
8351
8378
|
};
|
|
8379
|
+
/** @enum {string} */
|
|
8380
|
+
PaymentStatus: "Posted";
|
|
8352
8381
|
PaymentSummaryResponse: {
|
|
8353
8382
|
/** Format: uuid */
|
|
8354
8383
|
id: string;
|
|
@@ -8361,7 +8390,7 @@ export interface components {
|
|
|
8361
8390
|
currency: string;
|
|
8362
8391
|
source: string;
|
|
8363
8392
|
externalReference: string;
|
|
8364
|
-
status:
|
|
8393
|
+
status: components["schemas"]["PaymentStatus"];
|
|
8365
8394
|
/** Format: date-time */
|
|
8366
8395
|
postedAtUtc: string;
|
|
8367
8396
|
/** Format: date-time */
|
|
@@ -8369,6 +8398,7 @@ export interface components {
|
|
|
8369
8398
|
reversed: boolean;
|
|
8370
8399
|
/** Format: uuid */
|
|
8371
8400
|
paymentMethodId: null | string;
|
|
8401
|
+
paymentMethodWasMapped: boolean;
|
|
8372
8402
|
};
|
|
8373
8403
|
PlacedMemberResponse: {
|
|
8374
8404
|
/** Format: uuid */
|
|
@@ -9276,6 +9306,8 @@ export interface components {
|
|
|
9276
9306
|
email: null | string;
|
|
9277
9307
|
phone: null | string;
|
|
9278
9308
|
};
|
|
9309
|
+
/** @enum {string} */
|
|
9310
|
+
ScanVerdict: "Quarantined" | "Clean" | "Infected" | "Unscannable";
|
|
9279
9311
|
ServiceLocationResponse: {
|
|
9280
9312
|
/** Format: uuid */
|
|
9281
9313
|
id: string;
|
|
@@ -9386,7 +9418,7 @@ export interface components {
|
|
|
9386
9418
|
dueOn: string;
|
|
9387
9419
|
/** Format: date-time */
|
|
9388
9420
|
raisedAtUtc: string;
|
|
9389
|
-
status:
|
|
9421
|
+
status: components["schemas"]["ObligationStatus"];
|
|
9390
9422
|
};
|
|
9391
9423
|
StatementPage: {
|
|
9392
9424
|
items: components["schemas"]["StatementSummaryResponse"][];
|
|
@@ -10488,6 +10520,7 @@ export interface operations {
|
|
|
10488
10520
|
query?: {
|
|
10489
10521
|
customerId?: string;
|
|
10490
10522
|
obligationId?: string;
|
|
10523
|
+
awaitingApproval?: boolean;
|
|
10491
10524
|
cursor?: string;
|
|
10492
10525
|
limit?: number | string;
|
|
10493
10526
|
};
|
|
@@ -10801,6 +10834,15 @@ export interface operations {
|
|
|
10801
10834
|
};
|
|
10802
10835
|
content?: never;
|
|
10803
10836
|
};
|
|
10837
|
+
/** @description Conflict. A type of urn:brokerplatform:problem:concurrency-conflict means someone else changed the record first and nothing was written: read it again and decide again. Any other type is a conflict this operation decided itself, and retrying it unchanged will not help. */
|
|
10838
|
+
409: {
|
|
10839
|
+
headers: {
|
|
10840
|
+
[name: string]: unknown;
|
|
10841
|
+
};
|
|
10842
|
+
content: {
|
|
10843
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
10844
|
+
};
|
|
10845
|
+
};
|
|
10804
10846
|
/** @description Payload Too Large */
|
|
10805
10847
|
413: {
|
|
10806
10848
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.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,
|