@insurance-broker/api-client 1.31.0 → 1.32.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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +65 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -266,6 +266,32 @@ export interface paths {
266
266
  patch?: never;
267
267
  trace?: never;
268
268
  };
269
+ "/api/v1/payments/{id}/events": {
270
+ parameters: {
271
+ query?: never;
272
+ header?: never;
273
+ path?: never;
274
+ cookie?: never;
275
+ };
276
+ /**
277
+ * What happened to this payment, and who said so
278
+ * @description ADR-0042 section 8's *"every payment's history is explainable"*. One row per thing that happened to this payment, in the order it happened, each naming the subject that caused it.
279
+ *
280
+ * **Append-only in the strong sense.** `UPDATE` and `DELETE` are revoked from the application role on this table, so a row here cannot be rewritten by a data fix or a restored backup - which is the half a convention cannot give.
281
+ *
282
+ * **It is not an event source.** The payment carries its own state and this explains how it got there; deriving the state by replaying these rows would be a second representation able to disagree with the first.
283
+ *
284
+ * A refusal row **names the attempt** it is about rather than repeating its figures. The amounts, the source and the reference are on that attempt, which the reconciliation history read returns.
285
+ */
286
+ get: operations["ReadPaymentHistory"];
287
+ put?: never;
288
+ post?: never;
289
+ delete?: never;
290
+ options?: never;
291
+ head?: never;
292
+ patch?: never;
293
+ trace?: never;
294
+ };
269
295
  "/api/v1/insurers": {
270
296
  parameters: {
271
297
  query?: never;
@@ -4636,6 +4662,16 @@ export interface components {
4636
4662
  /** Format: double */
4637
4663
  existingAmount: null | number | string;
4638
4664
  };
4665
+ PaymentEventResponse: {
4666
+ /** Format: uuid */
4667
+ id: string;
4668
+ kind: string;
4669
+ /** Format: date-time */
4670
+ occurredAtUtc: string;
4671
+ actorSubjectId: string;
4672
+ /** Format: uuid */
4673
+ paymentAttemptId: null | string;
4674
+ };
4639
4675
  PaymentResponse: {
4640
4676
  /** Format: uuid */
4641
4677
  id: string;
@@ -5813,6 +5849,35 @@ export interface operations {
5813
5849
  };
5814
5850
  };
5815
5851
  };
5852
+ ReadPaymentHistory: {
5853
+ parameters: {
5854
+ query?: never;
5855
+ header?: never;
5856
+ path: {
5857
+ id: string;
5858
+ };
5859
+ cookie?: never;
5860
+ };
5861
+ requestBody?: never;
5862
+ responses: {
5863
+ /** @description OK */
5864
+ 200: {
5865
+ headers: {
5866
+ [name: string]: unknown;
5867
+ };
5868
+ content: {
5869
+ "application/json": components["schemas"]["PaymentEventResponse"][];
5870
+ };
5871
+ };
5872
+ /** @description Not Found */
5873
+ 404: {
5874
+ headers: {
5875
+ [name: string]: unknown;
5876
+ };
5877
+ content?: never;
5878
+ };
5879
+ };
5880
+ };
5816
5881
  ListInsurers: {
5817
5882
  parameters: {
5818
5883
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.31.0",
3
+ "version": "1.32.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,