@insurance-broker/api-client 1.33.0 → 1.34.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 +83 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -74,6 +74,34 @@ export interface paths {
|
|
|
74
74
|
patch?: never;
|
|
75
75
|
trace?: never;
|
|
76
76
|
};
|
|
77
|
+
"/api/v1/obligations/{id}/write-off": {
|
|
78
|
+
parameters: {
|
|
79
|
+
query?: never;
|
|
80
|
+
header?: never;
|
|
81
|
+
path?: never;
|
|
82
|
+
cookie?: never;
|
|
83
|
+
};
|
|
84
|
+
get?: never;
|
|
85
|
+
put?: never;
|
|
86
|
+
/**
|
|
87
|
+
* Forgive a debt that will not be collected
|
|
88
|
+
* @description PAY-002, and ADR-0042 section 12's anchoring event. Records that a **real** debt will not be collected, with the reason on the record.
|
|
89
|
+
*
|
|
90
|
+
* **This is not a cancellation.** Cancelling says the charge should never have existed; writing off says it should have been paid and will not be. A broker asking "how much did we forgive" needs the two apart, so they are separate acts with separate audit actions.
|
|
91
|
+
*
|
|
92
|
+
* **The reason is required and is the broker's own words.** This platform declares no vocabulary of write-off reasons, because why a debt is forgiven is a broker's collections policy rather than a platform's.
|
|
93
|
+
*
|
|
94
|
+
* **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.
|
|
95
|
+
*
|
|
96
|
+
* 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.
|
|
97
|
+
*/
|
|
98
|
+
post: operations["WriteOffObligation"];
|
|
99
|
+
delete?: never;
|
|
100
|
+
options?: never;
|
|
101
|
+
head?: never;
|
|
102
|
+
patch?: never;
|
|
103
|
+
trace?: never;
|
|
104
|
+
};
|
|
77
105
|
"/api/v1/invoices": {
|
|
78
106
|
parameters: {
|
|
79
107
|
query?: never;
|
|
@@ -4641,6 +4669,7 @@ export interface components {
|
|
|
4641
4669
|
raisedAtUtc: string;
|
|
4642
4670
|
/** Format: date-time */
|
|
4643
4671
|
retentionAnchorAtUtc: null | string;
|
|
4672
|
+
writeOffReason: null | string;
|
|
4644
4673
|
};
|
|
4645
4674
|
OfferedFormResponse: {
|
|
4646
4675
|
/** Format: uuid */
|
|
@@ -5551,6 +5580,9 @@ export interface components {
|
|
|
5551
5580
|
WriteClaimNoteRequest: {
|
|
5552
5581
|
body: string;
|
|
5553
5582
|
};
|
|
5583
|
+
WriteOffObligationRequest: {
|
|
5584
|
+
reason: string;
|
|
5585
|
+
};
|
|
5554
5586
|
};
|
|
5555
5587
|
responses: never;
|
|
5556
5588
|
parameters: never;
|
|
@@ -5660,6 +5692,57 @@ export interface operations {
|
|
|
5660
5692
|
};
|
|
5661
5693
|
};
|
|
5662
5694
|
};
|
|
5695
|
+
WriteOffObligation: {
|
|
5696
|
+
parameters: {
|
|
5697
|
+
query?: never;
|
|
5698
|
+
header?: never;
|
|
5699
|
+
path: {
|
|
5700
|
+
id: string;
|
|
5701
|
+
};
|
|
5702
|
+
cookie?: never;
|
|
5703
|
+
};
|
|
5704
|
+
requestBody: {
|
|
5705
|
+
content: {
|
|
5706
|
+
"application/json": components["schemas"]["WriteOffObligationRequest"];
|
|
5707
|
+
};
|
|
5708
|
+
};
|
|
5709
|
+
responses: {
|
|
5710
|
+
/** @description OK */
|
|
5711
|
+
200: {
|
|
5712
|
+
headers: {
|
|
5713
|
+
[name: string]: unknown;
|
|
5714
|
+
};
|
|
5715
|
+
content: {
|
|
5716
|
+
"application/json": components["schemas"]["ObligationResponse"];
|
|
5717
|
+
};
|
|
5718
|
+
};
|
|
5719
|
+
/** @description Bad Request */
|
|
5720
|
+
400: {
|
|
5721
|
+
headers: {
|
|
5722
|
+
[name: string]: unknown;
|
|
5723
|
+
};
|
|
5724
|
+
content: {
|
|
5725
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
5726
|
+
};
|
|
5727
|
+
};
|
|
5728
|
+
/** @description Not Found */
|
|
5729
|
+
404: {
|
|
5730
|
+
headers: {
|
|
5731
|
+
[name: string]: unknown;
|
|
5732
|
+
};
|
|
5733
|
+
content?: never;
|
|
5734
|
+
};
|
|
5735
|
+
/** @description Conflict */
|
|
5736
|
+
409: {
|
|
5737
|
+
headers: {
|
|
5738
|
+
[name: string]: unknown;
|
|
5739
|
+
};
|
|
5740
|
+
content: {
|
|
5741
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
5742
|
+
};
|
|
5743
|
+
};
|
|
5744
|
+
};
|
|
5745
|
+
};
|
|
5663
5746
|
DraftInvoice: {
|
|
5664
5747
|
parameters: {
|
|
5665
5748
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.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,
|