@insurance-broker/api-client 1.28.0 → 1.31.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 +785 -3
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -4,6 +4,268 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export interface paths {
|
|
7
|
+
"/api/v1/obligations": {
|
|
8
|
+
parameters: {
|
|
9
|
+
query?: never;
|
|
10
|
+
header?: never;
|
|
11
|
+
path?: never;
|
|
12
|
+
cookie?: never;
|
|
13
|
+
};
|
|
14
|
+
get?: never;
|
|
15
|
+
put?: never;
|
|
16
|
+
/**
|
|
17
|
+
* Record what a customer owes against one of their policies
|
|
18
|
+
* @description PAY-002. Records an amount, a currency, a due date, the payer and the policy the money is owed against.
|
|
19
|
+
*
|
|
20
|
+
* The **currency is not a field**: it is copied from the policy's own premium, so the pair BR-008 requires travels from one source and a caller cannot invent one. The **amount is** a field, because an instalment is a fraction of a premium and no requirement lets this platform decide a payment schedule.
|
|
21
|
+
*
|
|
22
|
+
* The **payer is not a field** either. An obligation is owed by whoever owns the policy, so a customer identifier here could only ever agree or be wrong (ADR-0042 §3).
|
|
23
|
+
*
|
|
24
|
+
* A **due date in the past is accepted**: a book carried across from another system arrives already in arrears, and refusing that would make a migrated debt unrepresentable.
|
|
25
|
+
*/
|
|
26
|
+
post: operations["RaiseObligation"];
|
|
27
|
+
delete?: never;
|
|
28
|
+
options?: never;
|
|
29
|
+
head?: never;
|
|
30
|
+
patch?: never;
|
|
31
|
+
trace?: never;
|
|
32
|
+
};
|
|
33
|
+
"/api/v1/obligations/{id}": {
|
|
34
|
+
parameters: {
|
|
35
|
+
query?: never;
|
|
36
|
+
header?: never;
|
|
37
|
+
path?: never;
|
|
38
|
+
cookie?: never;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Read one obligation
|
|
42
|
+
* @description PAY-002. Another broker's obligation and another customer's are invisible here rather than refused: the tenant and owner query filters remove them before the read runs, so all three cases answer the same `404` (ADR-0008, ADR-0030).
|
|
43
|
+
*
|
|
44
|
+
* There is **no overdue field**. Whether an obligation is overdue is a comparison between its due date and the clock, and step 9.10's lists compute it at read time and return the day they measured against — ADR-0035 §4's rule, which forbids storing a status a date comparison answers.
|
|
45
|
+
*/
|
|
46
|
+
get: operations["GetObligation"];
|
|
47
|
+
put?: never;
|
|
48
|
+
post?: never;
|
|
49
|
+
delete?: never;
|
|
50
|
+
options?: never;
|
|
51
|
+
head?: never;
|
|
52
|
+
patch?: never;
|
|
53
|
+
trace?: never;
|
|
54
|
+
};
|
|
55
|
+
"/api/v1/obligations/{id}/cancellation": {
|
|
56
|
+
parameters: {
|
|
57
|
+
query?: never;
|
|
58
|
+
header?: never;
|
|
59
|
+
path?: never;
|
|
60
|
+
cookie?: never;
|
|
61
|
+
};
|
|
62
|
+
get?: never;
|
|
63
|
+
put?: never;
|
|
64
|
+
/**
|
|
65
|
+
* Withdraw an obligation raised in error
|
|
66
|
+
* @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.
|
|
67
|
+
*
|
|
68
|
+
* 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.
|
|
69
|
+
*/
|
|
70
|
+
post: operations["CancelObligation"];
|
|
71
|
+
delete?: never;
|
|
72
|
+
options?: never;
|
|
73
|
+
head?: never;
|
|
74
|
+
patch?: never;
|
|
75
|
+
trace?: never;
|
|
76
|
+
};
|
|
77
|
+
"/api/v1/invoices": {
|
|
78
|
+
parameters: {
|
|
79
|
+
query?: never;
|
|
80
|
+
header?: never;
|
|
81
|
+
path?: never;
|
|
82
|
+
cookie?: never;
|
|
83
|
+
};
|
|
84
|
+
get?: never;
|
|
85
|
+
put?: never;
|
|
86
|
+
/**
|
|
87
|
+
* Open a draft invoice against a policy
|
|
88
|
+
* @description ADR-0042 section 8. Opens an empty draft and pins the basis it was raised against: the premium, its currency and the cover period, copied once from the policy and never recomputed. A policy whose premium is later corrected does not silently change what a customer was invoiced.
|
|
89
|
+
*
|
|
90
|
+
* The **currency is not a field** — it is the policy's own, so BR-008's pair travels from one source. The **payer is not a field** either: an invoice is addressed to whoever owns the policy.
|
|
91
|
+
*
|
|
92
|
+
* A draft has **no total**. The total is fixed once, at issue, from the lines.
|
|
93
|
+
*/
|
|
94
|
+
post: operations["DraftInvoice"];
|
|
95
|
+
delete?: never;
|
|
96
|
+
options?: never;
|
|
97
|
+
head?: never;
|
|
98
|
+
patch?: never;
|
|
99
|
+
trace?: never;
|
|
100
|
+
};
|
|
101
|
+
"/api/v1/invoices/{id}/lines": {
|
|
102
|
+
parameters: {
|
|
103
|
+
query?: never;
|
|
104
|
+
header?: never;
|
|
105
|
+
path?: never;
|
|
106
|
+
cookie?: never;
|
|
107
|
+
};
|
|
108
|
+
get?: never;
|
|
109
|
+
put?: never;
|
|
110
|
+
/**
|
|
111
|
+
* Add one charge to a draft invoice
|
|
112
|
+
* @description BR-008's tax and fee components, without this platform naming a tax. **A tax or a fee is a line with a kind**, and the kind is the broker's own word: this platform declares no vocabulary for it.
|
|
113
|
+
*
|
|
114
|
+
* There is **no currency field**. A line is in its invoice's currency or it does not exist, and that is held by a four-column foreign key rather than by this handler.
|
|
115
|
+
*
|
|
116
|
+
* There is **no ordinal field**. The position is derived from the lines already present.
|
|
117
|
+
*
|
|
118
|
+
* Refused once the invoice is issued: issue is a one-way door.
|
|
119
|
+
*/
|
|
120
|
+
post: operations["AddInvoiceLine"];
|
|
121
|
+
delete?: never;
|
|
122
|
+
options?: never;
|
|
123
|
+
head?: never;
|
|
124
|
+
patch?: never;
|
|
125
|
+
trace?: never;
|
|
126
|
+
};
|
|
127
|
+
"/api/v1/invoices/{id}/issuance": {
|
|
128
|
+
parameters: {
|
|
129
|
+
query?: never;
|
|
130
|
+
header?: never;
|
|
131
|
+
path?: never;
|
|
132
|
+
cookie?: never;
|
|
133
|
+
};
|
|
134
|
+
get?: never;
|
|
135
|
+
put?: never;
|
|
136
|
+
/**
|
|
137
|
+
* Issue a draft, which fixes its total and closes it
|
|
138
|
+
* @description **The one-way door** (ADR-0042 section 8, BR-010). Issuing sums the lines, stores the total and stamps the instant. After this no route changes a figure on the invoice, and a correction is a credit note — a record of its own, with its own lines — rather than an edit.
|
|
139
|
+
*
|
|
140
|
+
* 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.
|
|
141
|
+
*
|
|
142
|
+
* Issuing twice is a `409`, and it is not retryable: the invoice is already issued and reading it back is the resolution.
|
|
143
|
+
*/
|
|
144
|
+
post: operations["IssueInvoice"];
|
|
145
|
+
delete?: never;
|
|
146
|
+
options?: never;
|
|
147
|
+
head?: never;
|
|
148
|
+
patch?: never;
|
|
149
|
+
trace?: never;
|
|
150
|
+
};
|
|
151
|
+
"/api/v1/invoices/{id}/discarding": {
|
|
152
|
+
parameters: {
|
|
153
|
+
query?: never;
|
|
154
|
+
header?: never;
|
|
155
|
+
path?: never;
|
|
156
|
+
cookie?: never;
|
|
157
|
+
};
|
|
158
|
+
get?: never;
|
|
159
|
+
put?: never;
|
|
160
|
+
/**
|
|
161
|
+
* Abandon a draft that should never have been raised
|
|
162
|
+
* @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.
|
|
163
|
+
*
|
|
164
|
+
* Discarding starts the record's retention clock (ADR-0038 section 2), so it is refused a second time rather than silently re-stamped.
|
|
165
|
+
*/
|
|
166
|
+
post: operations["DiscardInvoice"];
|
|
167
|
+
delete?: never;
|
|
168
|
+
options?: never;
|
|
169
|
+
head?: never;
|
|
170
|
+
patch?: never;
|
|
171
|
+
trace?: never;
|
|
172
|
+
};
|
|
173
|
+
"/api/v1/invoices/{id}": {
|
|
174
|
+
parameters: {
|
|
175
|
+
query?: never;
|
|
176
|
+
header?: never;
|
|
177
|
+
path?: never;
|
|
178
|
+
cookie?: never;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Read one invoice with its lines
|
|
182
|
+
* @description Another broker's invoice and another customer's are invisible here rather than refused: the tenant and owner query filters remove them before the read runs, so all three cases answer the same `404` (ADR-0008, ADR-0030).
|
|
183
|
+
*
|
|
184
|
+
* The **lines come with the invoice**, because an invoice without its lines is a total with nothing behind it.
|
|
185
|
+
*
|
|
186
|
+
* There is **no balance and no amount paid**: nothing has been paid against anything until payments exist, so either field would be an unreachable zero a reader would take for a fact.
|
|
187
|
+
*/
|
|
188
|
+
get: operations["GetInvoice"];
|
|
189
|
+
put?: never;
|
|
190
|
+
post?: never;
|
|
191
|
+
delete?: never;
|
|
192
|
+
options?: never;
|
|
193
|
+
head?: never;
|
|
194
|
+
patch?: never;
|
|
195
|
+
trace?: never;
|
|
196
|
+
};
|
|
197
|
+
"/api/v1/obligations/{id}/payments": {
|
|
198
|
+
parameters: {
|
|
199
|
+
query?: never;
|
|
200
|
+
header?: never;
|
|
201
|
+
path?: never;
|
|
202
|
+
cookie?: never;
|
|
203
|
+
};
|
|
204
|
+
get?: never;
|
|
205
|
+
put?: never;
|
|
206
|
+
/**
|
|
207
|
+
* Record money that arrived against this charge
|
|
208
|
+
* @description PAY-001, ADR-0042 sections 4 and 5. Records that money arrived somewhere else. **The platform never asserts that it did**: under `ExternalRecordOnly` there is no gateway, nothing is collected here, and every payment carries the source it came through and the reference that source gave it.
|
|
209
|
+
*
|
|
210
|
+
* **Those two fields are the idempotency key.** `(tenant, source, externalReference)` is unique, so the same money cannot be recorded twice — not because a handler checks, but because the row is unrepresentable (BR-009). There is deliberately **no `idempotencyKey` field**: a caller-invented key answers "is this the same request", and only "is this the same money" has A8's answer in it.
|
|
211
|
+
*
|
|
212
|
+
* **A refusal is recorded, not merely returned.** Every attempt is written before the posting is tried, so a refused duplicate is findable in the reconciliation history read below.
|
|
213
|
+
*
|
|
214
|
+
* 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.
|
|
215
|
+
*/
|
|
216
|
+
post: operations["RecordPayment"];
|
|
217
|
+
delete?: never;
|
|
218
|
+
options?: never;
|
|
219
|
+
head?: never;
|
|
220
|
+
patch?: never;
|
|
221
|
+
trace?: never;
|
|
222
|
+
};
|
|
223
|
+
"/api/v1/obligations/{id}/payment-attempts": {
|
|
224
|
+
parameters: {
|
|
225
|
+
query?: never;
|
|
226
|
+
header?: never;
|
|
227
|
+
path?: never;
|
|
228
|
+
cookie?: never;
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* The reconciliation history for this charge
|
|
232
|
+
* @description **A8's second half**: a duplicate posting must be *visible* in reconciliation history and not merely refused. One row per attempt — what arrived, from where, with which reference, at what instant, and by which subject — stamped with what the platform decided.
|
|
233
|
+
*
|
|
234
|
+
* An `outcome` of `null` is a real state and not missing data: the attempt is written before the posting is tried, so it means a posting in flight, or a process that died between the two. That case is exactly what this read exists to surface.
|
|
235
|
+
*
|
|
236
|
+
* `existingAmount` appears on one outcome only — a refusal because that reference is already recorded for a **different** figure. Both amounts survive and neither overwrites the other (BR-010).
|
|
237
|
+
*/
|
|
238
|
+
get: operations["ReadPaymentAttempts"];
|
|
239
|
+
put?: never;
|
|
240
|
+
post?: never;
|
|
241
|
+
delete?: never;
|
|
242
|
+
options?: never;
|
|
243
|
+
head?: never;
|
|
244
|
+
patch?: never;
|
|
245
|
+
trace?: never;
|
|
246
|
+
};
|
|
247
|
+
"/api/v1/payments/{id}": {
|
|
248
|
+
parameters: {
|
|
249
|
+
query?: never;
|
|
250
|
+
header?: never;
|
|
251
|
+
path?: never;
|
|
252
|
+
cookie?: never;
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* Read one payment
|
|
256
|
+
* @description Another broker's payment and another customer's are invisible here rather than refused: the tenant and owner query filters remove them before the read runs, so all three cases answer the same `404` (ADR-0008, ADR-0030).
|
|
257
|
+
*
|
|
258
|
+
* There is **no approval field**: approval is a separate recorded act and arrives in step 9.6, so a field here would be an unreachable `false` a reader would take for a fact.
|
|
259
|
+
*/
|
|
260
|
+
get: operations["GetPayment"];
|
|
261
|
+
put?: never;
|
|
262
|
+
post?: never;
|
|
263
|
+
delete?: never;
|
|
264
|
+
options?: never;
|
|
265
|
+
head?: never;
|
|
266
|
+
patch?: never;
|
|
267
|
+
trace?: never;
|
|
268
|
+
};
|
|
7
269
|
"/api/v1/insurers": {
|
|
8
270
|
parameters: {
|
|
9
271
|
query?: never;
|
|
@@ -3396,6 +3658,12 @@ export interface components {
|
|
|
3396
3658
|
phone: null | string;
|
|
3397
3659
|
website: null | string;
|
|
3398
3660
|
};
|
|
3661
|
+
AddInvoiceLineRequest: {
|
|
3662
|
+
kind: string;
|
|
3663
|
+
description: string;
|
|
3664
|
+
/** Format: double */
|
|
3665
|
+
amount: number | string;
|
|
3666
|
+
};
|
|
3399
3667
|
AddProductCategoryRequest: {
|
|
3400
3668
|
key: null | string;
|
|
3401
3669
|
name: null | string;
|
|
@@ -3833,6 +4101,10 @@ export interface components {
|
|
|
3833
4101
|
retiredAtUtc: null | string;
|
|
3834
4102
|
retiredBySubjectId: null | string;
|
|
3835
4103
|
};
|
|
4104
|
+
DraftInvoiceRequest: {
|
|
4105
|
+
/** Format: uuid */
|
|
4106
|
+
policyId: string;
|
|
4107
|
+
};
|
|
3836
4108
|
EmergencyContactDetailsResponse: {
|
|
3837
4109
|
providerName: string;
|
|
3838
4110
|
contactDetail: string;
|
|
@@ -4131,6 +4403,44 @@ export interface components {
|
|
|
4131
4403
|
email: null | string;
|
|
4132
4404
|
role: null | string;
|
|
4133
4405
|
};
|
|
4406
|
+
InvoiceLineResponse: {
|
|
4407
|
+
/** Format: uuid */
|
|
4408
|
+
id: string;
|
|
4409
|
+
/** Format: int32 */
|
|
4410
|
+
ordinal: number | string;
|
|
4411
|
+
kind: string;
|
|
4412
|
+
description: string;
|
|
4413
|
+
/** Format: double */
|
|
4414
|
+
amount: number | string;
|
|
4415
|
+
currency: string;
|
|
4416
|
+
};
|
|
4417
|
+
InvoiceResponse: {
|
|
4418
|
+
/** Format: uuid */
|
|
4419
|
+
id: string;
|
|
4420
|
+
/** Format: uuid */
|
|
4421
|
+
customerId: string;
|
|
4422
|
+
/** Format: uuid */
|
|
4423
|
+
policyId: string;
|
|
4424
|
+
/** Format: uuid */
|
|
4425
|
+
productId: string;
|
|
4426
|
+
/** Format: double */
|
|
4427
|
+
premiumAmount: number | string;
|
|
4428
|
+
currency: string;
|
|
4429
|
+
/** Format: date */
|
|
4430
|
+
coverStart: null | string;
|
|
4431
|
+
/** Format: date */
|
|
4432
|
+
coverEnd: null | string;
|
|
4433
|
+
status: string;
|
|
4434
|
+
/** Format: date-time */
|
|
4435
|
+
draftedAtUtc: string;
|
|
4436
|
+
/** Format: date-time */
|
|
4437
|
+
issuedAtUtc: null | string;
|
|
4438
|
+
/** Format: double */
|
|
4439
|
+
totalAmount: null | number | string;
|
|
4440
|
+
/** Format: date-time */
|
|
4441
|
+
retentionAnchorAtUtc: null | string;
|
|
4442
|
+
lines: components["schemas"]["InvoiceLineResponse"][];
|
|
4443
|
+
};
|
|
4134
4444
|
IssuedCustomerInvitationResponse: {
|
|
4135
4445
|
/** Format: uuid */
|
|
4136
4446
|
id: string;
|
|
@@ -4199,6 +4509,27 @@ export interface components {
|
|
|
4199
4509
|
/** Format: date */
|
|
4200
4510
|
incidentOn: string;
|
|
4201
4511
|
};
|
|
4512
|
+
ObligationResponse: {
|
|
4513
|
+
/** Format: uuid */
|
|
4514
|
+
id: string;
|
|
4515
|
+
/** Format: uuid */
|
|
4516
|
+
customerId: string;
|
|
4517
|
+
/** Format: uuid */
|
|
4518
|
+
policyId: string;
|
|
4519
|
+
/** Format: uuid */
|
|
4520
|
+
productId: string;
|
|
4521
|
+
/** Format: double */
|
|
4522
|
+
amount: number | string;
|
|
4523
|
+
currency: string;
|
|
4524
|
+
/** Format: date */
|
|
4525
|
+
dueOn: string;
|
|
4526
|
+
description: string;
|
|
4527
|
+
status: string;
|
|
4528
|
+
/** Format: date-time */
|
|
4529
|
+
raisedAtUtc: string;
|
|
4530
|
+
/** Format: date-time */
|
|
4531
|
+
retentionAnchorAtUtc: null | string;
|
|
4532
|
+
};
|
|
4202
4533
|
OfferedFormResponse: {
|
|
4203
4534
|
/** Format: uuid */
|
|
4204
4535
|
id: string;
|
|
@@ -4284,9 +4615,47 @@ export interface components {
|
|
|
4284
4615
|
/** Format: date-time */
|
|
4285
4616
|
acceptedAtUtc: null | string;
|
|
4286
4617
|
};
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4618
|
+
PaymentAttemptResponse: {
|
|
4619
|
+
/** Format: uuid */
|
|
4620
|
+
id: string;
|
|
4621
|
+
/** Format: uuid */
|
|
4622
|
+
obligationId: string;
|
|
4623
|
+
/** Format: double */
|
|
4624
|
+
amount: number | string;
|
|
4625
|
+
currency: string;
|
|
4626
|
+
source: string;
|
|
4627
|
+
externalReference: string;
|
|
4628
|
+
attemptedBySubjectId: string;
|
|
4629
|
+
/** Format: date-time */
|
|
4630
|
+
attemptedAtUtc: string;
|
|
4631
|
+
outcome: null | string;
|
|
4632
|
+
/** Format: date-time */
|
|
4633
|
+
concludedAtUtc: null | string;
|
|
4634
|
+
/** Format: uuid */
|
|
4635
|
+
paymentId: null | string;
|
|
4636
|
+
/** Format: double */
|
|
4637
|
+
existingAmount: null | number | string;
|
|
4638
|
+
};
|
|
4639
|
+
PaymentResponse: {
|
|
4640
|
+
/** Format: uuid */
|
|
4641
|
+
id: string;
|
|
4642
|
+
/** Format: uuid */
|
|
4643
|
+
obligationId: string;
|
|
4644
|
+
/** Format: uuid */
|
|
4645
|
+
customerId: string;
|
|
4646
|
+
/** Format: double */
|
|
4647
|
+
amount: number | string;
|
|
4648
|
+
currency: string;
|
|
4649
|
+
source: string;
|
|
4650
|
+
externalReference: string;
|
|
4651
|
+
status: string;
|
|
4652
|
+
recordedBySubjectId: string;
|
|
4653
|
+
/** Format: date-time */
|
|
4654
|
+
postedAtUtc: string;
|
|
4655
|
+
};
|
|
4656
|
+
PlaceLegalHoldRequest: {
|
|
4657
|
+
moduleName: null | string;
|
|
4658
|
+
entityType: null | string;
|
|
4290
4659
|
entityId: null | string;
|
|
4291
4660
|
trigger: null | string;
|
|
4292
4661
|
reason: null | string;
|
|
@@ -4621,6 +4990,15 @@ export interface components {
|
|
|
4621
4990
|
awaitedFrom: string;
|
|
4622
4991
|
description: string;
|
|
4623
4992
|
};
|
|
4993
|
+
RaiseObligationRequest: {
|
|
4994
|
+
/** Format: uuid */
|
|
4995
|
+
policyId: string;
|
|
4996
|
+
/** Format: double */
|
|
4997
|
+
amount: number | string;
|
|
4998
|
+
/** Format: date */
|
|
4999
|
+
dueOn: string;
|
|
5000
|
+
description: string;
|
|
5001
|
+
};
|
|
4624
5002
|
RaiseOutstandingItemRequest: {
|
|
4625
5003
|
awaitedFrom: null | string;
|
|
4626
5004
|
description: null | string;
|
|
@@ -4664,6 +5042,12 @@ export interface components {
|
|
|
4664
5042
|
/** Format: date */
|
|
4665
5043
|
submittedOn: string;
|
|
4666
5044
|
};
|
|
5045
|
+
RecordPaymentRequest: {
|
|
5046
|
+
/** Format: double */
|
|
5047
|
+
amount: number | string;
|
|
5048
|
+
source: string;
|
|
5049
|
+
externalReference: string;
|
|
5050
|
+
};
|
|
4667
5051
|
RecordRenewalCustomerInformationRequest: {
|
|
4668
5052
|
/** Format: uuid */
|
|
4669
5053
|
formSubmissionId: null | string;
|
|
@@ -5031,6 +5415,404 @@ export interface components {
|
|
|
5031
5415
|
}
|
|
5032
5416
|
export type $defs = Record<string, never>;
|
|
5033
5417
|
export interface operations {
|
|
5418
|
+
RaiseObligation: {
|
|
5419
|
+
parameters: {
|
|
5420
|
+
query?: never;
|
|
5421
|
+
header?: never;
|
|
5422
|
+
path?: never;
|
|
5423
|
+
cookie?: never;
|
|
5424
|
+
};
|
|
5425
|
+
requestBody: {
|
|
5426
|
+
content: {
|
|
5427
|
+
"application/json": components["schemas"]["RaiseObligationRequest"];
|
|
5428
|
+
};
|
|
5429
|
+
};
|
|
5430
|
+
responses: {
|
|
5431
|
+
/** @description Created */
|
|
5432
|
+
201: {
|
|
5433
|
+
headers: {
|
|
5434
|
+
[name: string]: unknown;
|
|
5435
|
+
};
|
|
5436
|
+
content: {
|
|
5437
|
+
"application/json": components["schemas"]["ObligationResponse"];
|
|
5438
|
+
};
|
|
5439
|
+
};
|
|
5440
|
+
/** @description Bad Request */
|
|
5441
|
+
400: {
|
|
5442
|
+
headers: {
|
|
5443
|
+
[name: string]: unknown;
|
|
5444
|
+
};
|
|
5445
|
+
content: {
|
|
5446
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
5447
|
+
};
|
|
5448
|
+
};
|
|
5449
|
+
};
|
|
5450
|
+
};
|
|
5451
|
+
GetObligation: {
|
|
5452
|
+
parameters: {
|
|
5453
|
+
query?: never;
|
|
5454
|
+
header?: never;
|
|
5455
|
+
path: {
|
|
5456
|
+
id: string;
|
|
5457
|
+
};
|
|
5458
|
+
cookie?: never;
|
|
5459
|
+
};
|
|
5460
|
+
requestBody?: never;
|
|
5461
|
+
responses: {
|
|
5462
|
+
/** @description OK */
|
|
5463
|
+
200: {
|
|
5464
|
+
headers: {
|
|
5465
|
+
[name: string]: unknown;
|
|
5466
|
+
};
|
|
5467
|
+
content: {
|
|
5468
|
+
"application/json": components["schemas"]["ObligationResponse"];
|
|
5469
|
+
};
|
|
5470
|
+
};
|
|
5471
|
+
/** @description Not Found */
|
|
5472
|
+
404: {
|
|
5473
|
+
headers: {
|
|
5474
|
+
[name: string]: unknown;
|
|
5475
|
+
};
|
|
5476
|
+
content?: never;
|
|
5477
|
+
};
|
|
5478
|
+
};
|
|
5479
|
+
};
|
|
5480
|
+
CancelObligation: {
|
|
5481
|
+
parameters: {
|
|
5482
|
+
query?: never;
|
|
5483
|
+
header?: never;
|
|
5484
|
+
path: {
|
|
5485
|
+
id: string;
|
|
5486
|
+
};
|
|
5487
|
+
cookie?: never;
|
|
5488
|
+
};
|
|
5489
|
+
requestBody?: never;
|
|
5490
|
+
responses: {
|
|
5491
|
+
/** @description OK */
|
|
5492
|
+
200: {
|
|
5493
|
+
headers: {
|
|
5494
|
+
[name: string]: unknown;
|
|
5495
|
+
};
|
|
5496
|
+
content: {
|
|
5497
|
+
"application/json": components["schemas"]["ObligationResponse"];
|
|
5498
|
+
};
|
|
5499
|
+
};
|
|
5500
|
+
/** @description Not Found */
|
|
5501
|
+
404: {
|
|
5502
|
+
headers: {
|
|
5503
|
+
[name: string]: unknown;
|
|
5504
|
+
};
|
|
5505
|
+
content?: never;
|
|
5506
|
+
};
|
|
5507
|
+
/** @description Conflict */
|
|
5508
|
+
409: {
|
|
5509
|
+
headers: {
|
|
5510
|
+
[name: string]: unknown;
|
|
5511
|
+
};
|
|
5512
|
+
content: {
|
|
5513
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
5514
|
+
};
|
|
5515
|
+
};
|
|
5516
|
+
};
|
|
5517
|
+
};
|
|
5518
|
+
DraftInvoice: {
|
|
5519
|
+
parameters: {
|
|
5520
|
+
query?: never;
|
|
5521
|
+
header?: never;
|
|
5522
|
+
path?: never;
|
|
5523
|
+
cookie?: never;
|
|
5524
|
+
};
|
|
5525
|
+
requestBody: {
|
|
5526
|
+
content: {
|
|
5527
|
+
"application/json": components["schemas"]["DraftInvoiceRequest"];
|
|
5528
|
+
};
|
|
5529
|
+
};
|
|
5530
|
+
responses: {
|
|
5531
|
+
/** @description Created */
|
|
5532
|
+
201: {
|
|
5533
|
+
headers: {
|
|
5534
|
+
[name: string]: unknown;
|
|
5535
|
+
};
|
|
5536
|
+
content: {
|
|
5537
|
+
"application/json": components["schemas"]["InvoiceResponse"];
|
|
5538
|
+
};
|
|
5539
|
+
};
|
|
5540
|
+
/** @description Bad Request */
|
|
5541
|
+
400: {
|
|
5542
|
+
headers: {
|
|
5543
|
+
[name: string]: unknown;
|
|
5544
|
+
};
|
|
5545
|
+
content: {
|
|
5546
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
5547
|
+
};
|
|
5548
|
+
};
|
|
5549
|
+
};
|
|
5550
|
+
};
|
|
5551
|
+
AddInvoiceLine: {
|
|
5552
|
+
parameters: {
|
|
5553
|
+
query?: never;
|
|
5554
|
+
header?: never;
|
|
5555
|
+
path: {
|
|
5556
|
+
id: string;
|
|
5557
|
+
};
|
|
5558
|
+
cookie?: never;
|
|
5559
|
+
};
|
|
5560
|
+
requestBody: {
|
|
5561
|
+
content: {
|
|
5562
|
+
"application/json": components["schemas"]["AddInvoiceLineRequest"];
|
|
5563
|
+
};
|
|
5564
|
+
};
|
|
5565
|
+
responses: {
|
|
5566
|
+
/** @description OK */
|
|
5567
|
+
200: {
|
|
5568
|
+
headers: {
|
|
5569
|
+
[name: string]: unknown;
|
|
5570
|
+
};
|
|
5571
|
+
content: {
|
|
5572
|
+
"application/json": components["schemas"]["InvoiceResponse"];
|
|
5573
|
+
};
|
|
5574
|
+
};
|
|
5575
|
+
/** @description Bad Request */
|
|
5576
|
+
400: {
|
|
5577
|
+
headers: {
|
|
5578
|
+
[name: string]: unknown;
|
|
5579
|
+
};
|
|
5580
|
+
content: {
|
|
5581
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
5582
|
+
};
|
|
5583
|
+
};
|
|
5584
|
+
/** @description Not Found */
|
|
5585
|
+
404: {
|
|
5586
|
+
headers: {
|
|
5587
|
+
[name: string]: unknown;
|
|
5588
|
+
};
|
|
5589
|
+
content?: never;
|
|
5590
|
+
};
|
|
5591
|
+
/** @description Conflict */
|
|
5592
|
+
409: {
|
|
5593
|
+
headers: {
|
|
5594
|
+
[name: string]: unknown;
|
|
5595
|
+
};
|
|
5596
|
+
content: {
|
|
5597
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
5598
|
+
};
|
|
5599
|
+
};
|
|
5600
|
+
};
|
|
5601
|
+
};
|
|
5602
|
+
IssueInvoice: {
|
|
5603
|
+
parameters: {
|
|
5604
|
+
query?: never;
|
|
5605
|
+
header?: never;
|
|
5606
|
+
path: {
|
|
5607
|
+
id: string;
|
|
5608
|
+
};
|
|
5609
|
+
cookie?: never;
|
|
5610
|
+
};
|
|
5611
|
+
requestBody?: never;
|
|
5612
|
+
responses: {
|
|
5613
|
+
/** @description OK */
|
|
5614
|
+
200: {
|
|
5615
|
+
headers: {
|
|
5616
|
+
[name: string]: unknown;
|
|
5617
|
+
};
|
|
5618
|
+
content: {
|
|
5619
|
+
"application/json": components["schemas"]["InvoiceResponse"];
|
|
5620
|
+
};
|
|
5621
|
+
};
|
|
5622
|
+
/** @description Not Found */
|
|
5623
|
+
404: {
|
|
5624
|
+
headers: {
|
|
5625
|
+
[name: string]: unknown;
|
|
5626
|
+
};
|
|
5627
|
+
content?: never;
|
|
5628
|
+
};
|
|
5629
|
+
/** @description Conflict */
|
|
5630
|
+
409: {
|
|
5631
|
+
headers: {
|
|
5632
|
+
[name: string]: unknown;
|
|
5633
|
+
};
|
|
5634
|
+
content: {
|
|
5635
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
5636
|
+
};
|
|
5637
|
+
};
|
|
5638
|
+
};
|
|
5639
|
+
};
|
|
5640
|
+
DiscardInvoice: {
|
|
5641
|
+
parameters: {
|
|
5642
|
+
query?: never;
|
|
5643
|
+
header?: never;
|
|
5644
|
+
path: {
|
|
5645
|
+
id: string;
|
|
5646
|
+
};
|
|
5647
|
+
cookie?: never;
|
|
5648
|
+
};
|
|
5649
|
+
requestBody?: never;
|
|
5650
|
+
responses: {
|
|
5651
|
+
/** @description OK */
|
|
5652
|
+
200: {
|
|
5653
|
+
headers: {
|
|
5654
|
+
[name: string]: unknown;
|
|
5655
|
+
};
|
|
5656
|
+
content: {
|
|
5657
|
+
"application/json": components["schemas"]["InvoiceResponse"];
|
|
5658
|
+
};
|
|
5659
|
+
};
|
|
5660
|
+
/** @description Not Found */
|
|
5661
|
+
404: {
|
|
5662
|
+
headers: {
|
|
5663
|
+
[name: string]: unknown;
|
|
5664
|
+
};
|
|
5665
|
+
content?: never;
|
|
5666
|
+
};
|
|
5667
|
+
/** @description Conflict */
|
|
5668
|
+
409: {
|
|
5669
|
+
headers: {
|
|
5670
|
+
[name: string]: unknown;
|
|
5671
|
+
};
|
|
5672
|
+
content: {
|
|
5673
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
5674
|
+
};
|
|
5675
|
+
};
|
|
5676
|
+
};
|
|
5677
|
+
};
|
|
5678
|
+
GetInvoice: {
|
|
5679
|
+
parameters: {
|
|
5680
|
+
query?: never;
|
|
5681
|
+
header?: never;
|
|
5682
|
+
path: {
|
|
5683
|
+
id: string;
|
|
5684
|
+
};
|
|
5685
|
+
cookie?: never;
|
|
5686
|
+
};
|
|
5687
|
+
requestBody?: never;
|
|
5688
|
+
responses: {
|
|
5689
|
+
/** @description OK */
|
|
5690
|
+
200: {
|
|
5691
|
+
headers: {
|
|
5692
|
+
[name: string]: unknown;
|
|
5693
|
+
};
|
|
5694
|
+
content: {
|
|
5695
|
+
"application/json": components["schemas"]["InvoiceResponse"];
|
|
5696
|
+
};
|
|
5697
|
+
};
|
|
5698
|
+
/** @description Not Found */
|
|
5699
|
+
404: {
|
|
5700
|
+
headers: {
|
|
5701
|
+
[name: string]: unknown;
|
|
5702
|
+
};
|
|
5703
|
+
content?: never;
|
|
5704
|
+
};
|
|
5705
|
+
};
|
|
5706
|
+
};
|
|
5707
|
+
RecordPayment: {
|
|
5708
|
+
parameters: {
|
|
5709
|
+
query?: never;
|
|
5710
|
+
header?: never;
|
|
5711
|
+
path: {
|
|
5712
|
+
id: string;
|
|
5713
|
+
};
|
|
5714
|
+
cookie?: never;
|
|
5715
|
+
};
|
|
5716
|
+
requestBody: {
|
|
5717
|
+
content: {
|
|
5718
|
+
"application/json": components["schemas"]["RecordPaymentRequest"];
|
|
5719
|
+
};
|
|
5720
|
+
};
|
|
5721
|
+
responses: {
|
|
5722
|
+
/** @description Created */
|
|
5723
|
+
201: {
|
|
5724
|
+
headers: {
|
|
5725
|
+
[name: string]: unknown;
|
|
5726
|
+
};
|
|
5727
|
+
content: {
|
|
5728
|
+
"application/json": components["schemas"]["PaymentResponse"];
|
|
5729
|
+
};
|
|
5730
|
+
};
|
|
5731
|
+
/** @description Bad Request */
|
|
5732
|
+
400: {
|
|
5733
|
+
headers: {
|
|
5734
|
+
[name: string]: unknown;
|
|
5735
|
+
};
|
|
5736
|
+
content: {
|
|
5737
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
5738
|
+
};
|
|
5739
|
+
};
|
|
5740
|
+
/** @description Not Found */
|
|
5741
|
+
404: {
|
|
5742
|
+
headers: {
|
|
5743
|
+
[name: string]: unknown;
|
|
5744
|
+
};
|
|
5745
|
+
content?: never;
|
|
5746
|
+
};
|
|
5747
|
+
/** @description Conflict */
|
|
5748
|
+
409: {
|
|
5749
|
+
headers: {
|
|
5750
|
+
[name: string]: unknown;
|
|
5751
|
+
};
|
|
5752
|
+
content: {
|
|
5753
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
5754
|
+
};
|
|
5755
|
+
};
|
|
5756
|
+
};
|
|
5757
|
+
};
|
|
5758
|
+
ReadPaymentAttempts: {
|
|
5759
|
+
parameters: {
|
|
5760
|
+
query?: never;
|
|
5761
|
+
header?: never;
|
|
5762
|
+
path: {
|
|
5763
|
+
id: string;
|
|
5764
|
+
};
|
|
5765
|
+
cookie?: never;
|
|
5766
|
+
};
|
|
5767
|
+
requestBody?: never;
|
|
5768
|
+
responses: {
|
|
5769
|
+
/** @description OK */
|
|
5770
|
+
200: {
|
|
5771
|
+
headers: {
|
|
5772
|
+
[name: string]: unknown;
|
|
5773
|
+
};
|
|
5774
|
+
content: {
|
|
5775
|
+
"application/json": components["schemas"]["PaymentAttemptResponse"][];
|
|
5776
|
+
};
|
|
5777
|
+
};
|
|
5778
|
+
/** @description Not Found */
|
|
5779
|
+
404: {
|
|
5780
|
+
headers: {
|
|
5781
|
+
[name: string]: unknown;
|
|
5782
|
+
};
|
|
5783
|
+
content?: never;
|
|
5784
|
+
};
|
|
5785
|
+
};
|
|
5786
|
+
};
|
|
5787
|
+
GetPayment: {
|
|
5788
|
+
parameters: {
|
|
5789
|
+
query?: never;
|
|
5790
|
+
header?: never;
|
|
5791
|
+
path: {
|
|
5792
|
+
id: string;
|
|
5793
|
+
};
|
|
5794
|
+
cookie?: never;
|
|
5795
|
+
};
|
|
5796
|
+
requestBody?: never;
|
|
5797
|
+
responses: {
|
|
5798
|
+
/** @description OK */
|
|
5799
|
+
200: {
|
|
5800
|
+
headers: {
|
|
5801
|
+
[name: string]: unknown;
|
|
5802
|
+
};
|
|
5803
|
+
content: {
|
|
5804
|
+
"application/json": components["schemas"]["PaymentResponse"];
|
|
5805
|
+
};
|
|
5806
|
+
};
|
|
5807
|
+
/** @description Not Found */
|
|
5808
|
+
404: {
|
|
5809
|
+
headers: {
|
|
5810
|
+
[name: string]: unknown;
|
|
5811
|
+
};
|
|
5812
|
+
content?: never;
|
|
5813
|
+
};
|
|
5814
|
+
};
|
|
5815
|
+
};
|
|
5034
5816
|
ListInsurers: {
|
|
5035
5817
|
parameters: {
|
|
5036
5818
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.31.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,
|