@insurance-broker/api-client 5.3.0 → 5.6.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 +254 -68
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -879,13 +879,13 @@ export interface paths {
879
879
  * Say which payment method the payments with a free-text source came through
880
880
  * @description #568. Every payment of this broker whose `source` is exactly the given text (after trimming, case as typed) and that names no payment method is given this method. Customers then see the method's label for those payments as `sourceLabel`. **The stored `source` is not changed**, and no amount or reference is.
881
881
  *
882
- * **A payment is never moved between methods.** Payments with this source that already name this method are counted in `alreadyMapped`, and those naming another method in `mappedToAnotherMethod`; neither is changed.
882
+ * **A mapping never moves a payment between methods.** Payments with this source that already name this method are counted in `alreadyMapped`, and those naming another method in `mappedToAnotherMethod`; neither is changed.
883
883
  *
884
884
  * **A payment whose reference the method already holds is skipped** and listed in `skipped` with the payment that holds it, because mapping it would put the same reference against the method twice. The method holds a reference through a payment recorded against it, one mapped to it, or a free-text payment typed exactly as its code: the last is cautious, because such a payment is in the method's duplicate space under §5's index. `skippedCount` is the full count and `skipped` lists at most 200, earliest first. The rest are still mapped.
885
885
  *
886
886
  * **Idempotent.** Repeating the request maps nothing more and answers `mapped: 0`. Only payments that exist when the request runs are mapped: a payment recorded later with the same text is not, until the mapping is requested again.
887
887
  *
888
- * **A mapping cannot be undone yet** (#588): check the source and the method before sending it.
888
+ * **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`.
889
889
  *
890
890
  * A retired method is `409`. A statement already produced keeps the wording it was produced with. A `409` can also be the platform's concurrency conflict, with `retryable: true`, when another write changed one of the payments while it was being mapped.
891
891
  */
@@ -896,6 +896,56 @@ export interface paths {
896
896
  patch?: never;
897
897
  trace?: never;
898
898
  };
899
+ "/api/v1/payment-methods/{id}/source-mappings/removal": {
900
+ parameters: {
901
+ query?: never;
902
+ header?: never;
903
+ path?: never;
904
+ cookie?: never;
905
+ };
906
+ get?: never;
907
+ put?: never;
908
+ /**
909
+ * Undo a mapping: show the payments with a free-text source as typed again
910
+ * @description #588. Every payment of this broker whose `source` is exactly the given text (after trimming, case as typed) and that **a mapping** gave this method goes back to naming no method. Customers see the source as typed again, and the source returns to `GET /payment-methods/free-text-sources`. No amount, source or reference changes.
911
+ *
912
+ * **A payment recorded against this method is never changed**: its method is part of what was recorded. Such payments with this text (possible only when the text is the method's own code) are counted in `recordedAgainstMethod`. A payment recorded against the wrong method is corrected by a reversal. A payment that names this method through a mapping not marked as one (made by an API instance from before #588, possible only when the text is not the method's code) is counted in `notYetCorrectable` and left alone: map the source to this method again, which marks it, and then undo.
913
+ *
914
+ * **Idempotent.** Repeating the request answers `unmapped: 0` and records nothing. A retired method can be unmapped from. A statement already produced keeps the wording it was produced with. A `409` is the platform's concurrency conflict, with `retryable: true`, when another write changed one of the payments while this ran.
915
+ */
916
+ post: operations["UnmapFreeTextPaymentSource"];
917
+ delete?: never;
918
+ options?: never;
919
+ head?: never;
920
+ patch?: never;
921
+ trace?: never;
922
+ };
923
+ "/api/v1/payment-methods/{id}/source-mappings/correction": {
924
+ parameters: {
925
+ query?: never;
926
+ header?: never;
927
+ path?: never;
928
+ cookie?: never;
929
+ };
930
+ get?: never;
931
+ put?: never;
932
+ /**
933
+ * Correct a mapping: say the payments with a free-text source came through another method
934
+ * @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.
935
+ *
936
+ * `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`. The method in the route may be retired.
937
+ *
938
+ * **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.
939
+ *
940
+ * **Idempotent.** Repeating the request answers `remapped: 0` and records nothing. 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 this ran, or something other than this API's recording route wrote a payment against the target method between this request's read and its save. Send it again; a retry reports any collision.
941
+ */
942
+ post: operations["RemapFreeTextPaymentSource"];
943
+ delete?: never;
944
+ options?: never;
945
+ head?: never;
946
+ patch?: never;
947
+ trace?: never;
948
+ };
899
949
  "/api/v1/insurers": {
900
950
  parameters: {
901
951
  query?: never;
@@ -6328,7 +6378,7 @@ export interface components {
6328
6378
  fileName: string;
6329
6379
  contentType: string;
6330
6380
  /** Format: int64 */
6331
- sizeBytes: number | string;
6381
+ sizeBytes: number;
6332
6382
  contentSha256: string;
6333
6383
  /** Format: date-time */
6334
6384
  uploadedAtUtc: string;
@@ -6487,10 +6537,10 @@ export interface components {
6487
6537
  /** Format: uuid */
6488
6538
  productId: string;
6489
6539
  /** Format: int32 */
6490
- versionNumber: number | string;
6540
+ versionNumber: number;
6491
6541
  status: string;
6492
6542
  /** Format: int32 */
6493
- bodySchemaVersion: number | string;
6543
+ bodySchemaVersion: number;
6494
6544
  contentHash: null | string;
6495
6545
  /** Format: date-time */
6496
6546
  createdAtUtc: string;
@@ -6554,7 +6604,7 @@ export interface components {
6554
6604
  /** Format: uuid */
6555
6605
  id: string;
6556
6606
  /** Format: int32 */
6557
- ordinal: number | string;
6607
+ ordinal: number;
6558
6608
  kind: string;
6559
6609
  description: string;
6560
6610
  /** Format: double */
@@ -6665,14 +6715,14 @@ export interface components {
6665
6715
  /** Format: uuid */
6666
6716
  definitionVersionId: string;
6667
6717
  /** Format: int32 */
6668
- versionNumber: number | string;
6718
+ versionNumber: number;
6669
6719
  versionStatus: components["schemas"]["FormVersionStatus"];
6670
6720
  status: components["schemas"]["SubmissionStatus"];
6671
6721
  /** Format: date */
6672
6722
  evaluatedAsOf: string;
6673
6723
  contentHashVerified: boolean;
6674
6724
  /** Format: int32 */
6675
- answersSchemaVersion: number | string;
6725
+ answersSchemaVersion: number;
6676
6726
  /** Format: date-time */
6677
6727
  createdAtUtc: string;
6678
6728
  /** Format: date-time */
@@ -6683,7 +6733,7 @@ export interface components {
6683
6733
  /** Format: uuid */
6684
6734
  liveVersionId: null | string;
6685
6735
  /** Format: int32 */
6686
- liveVersionNumber: null | number | string;
6736
+ liveVersionNumber: null | number;
6687
6737
  answers: components["schemas"]["CustomerSubmittedAnswerResponse"][];
6688
6738
  evidence: components["schemas"]["SubmittedEvidenceResponse"][];
6689
6739
  isSatisfied: boolean;
@@ -6770,7 +6820,7 @@ export interface components {
6770
6820
  fileName: string;
6771
6821
  contentType: string;
6772
6822
  /** Format: int64 */
6773
- sizeBytes: number | string;
6823
+ sizeBytes: number;
6774
6824
  contentSha256: string;
6775
6825
  /** Format: date-time */
6776
6826
  uploadedAtUtc: string;
@@ -6848,9 +6898,9 @@ export interface components {
6848
6898
  /** Format: uuid */
6849
6899
  presentationVersionId: string;
6850
6900
  /** Format: int32 */
6851
- versionNumber: number | string;
6901
+ versionNumber: number;
6852
6902
  /** Format: int32 */
6853
- bodySchemaVersion: number | string;
6903
+ bodySchemaVersion: number;
6854
6904
  body: string;
6855
6905
  /** Format: date */
6856
6906
  pricedAsOf: string;
@@ -6867,7 +6917,7 @@ export interface components {
6867
6917
  /** Format: uuid */
6868
6918
  presentationVersionId: null | string;
6869
6919
  /** Format: int32 */
6870
- versionNumber: null | number | string;
6920
+ versionNumber: null | number;
6871
6921
  /** Format: date */
6872
6922
  asOf: string;
6873
6923
  currency: null | string;
@@ -7003,7 +7053,7 @@ export interface components {
7003
7053
  fileName: string;
7004
7054
  contentType: string;
7005
7055
  /** Format: int64 */
7006
- sizeBytes: number | string;
7056
+ sizeBytes: number;
7007
7057
  contentSha256: string;
7008
7058
  /** Format: date-time */
7009
7059
  uploadedAtUtc: string;
@@ -7032,7 +7082,7 @@ export interface components {
7032
7082
  name: string;
7033
7083
  description: null | string;
7034
7084
  /** Format: int32 */
7035
- sortOrder: number | string;
7085
+ sortOrder: number;
7036
7086
  };
7037
7087
  DeadLetterPage: {
7038
7088
  items: components["schemas"]["DeadLetterResponse"][];
@@ -7051,7 +7101,7 @@ export interface components {
7051
7101
  messageId: null | string;
7052
7102
  tenantKey: null | string;
7053
7103
  /** Format: int32 */
7054
- attempts: number | string;
7104
+ attempts: number;
7055
7105
  cause: string;
7056
7106
  error: string;
7057
7107
  /** Format: date-time */
@@ -7108,9 +7158,9 @@ export interface components {
7108
7158
  /** Format: uuid */
7109
7159
  versionId: string;
7110
7160
  /** Format: int32 */
7111
- versionNumber: number | string;
7161
+ versionNumber: number;
7112
7162
  /** Format: int32 */
7113
- bodySchemaVersion: number | string;
7163
+ bodySchemaVersion: number;
7114
7164
  /** Format: date-time */
7115
7165
  createdAtUtc: string;
7116
7166
  createdBySubjectId: string;
@@ -7131,7 +7181,7 @@ export interface components {
7131
7181
  draft: null | components["schemas"]["DocumentTemplateVersionResponse"];
7132
7182
  published: null | components["schemas"]["DocumentTemplateVersionResponse"];
7133
7183
  /** Format: int32 */
7134
- versionCount: number | string;
7184
+ versionCount: number;
7135
7185
  };
7136
7186
  DocumentTemplateVersionBodyResponse: {
7137
7187
  version: components["schemas"]["DocumentTemplateVersionResponse"];
@@ -7141,10 +7191,10 @@ export interface components {
7141
7191
  /** Format: uuid */
7142
7192
  id: string;
7143
7193
  /** Format: int32 */
7144
- versionNumber: number | string;
7194
+ versionNumber: number;
7145
7195
  status: string;
7146
7196
  /** Format: int32 */
7147
- bodySchemaVersion: number | string;
7197
+ bodySchemaVersion: number;
7148
7198
  contentHash: null | string;
7149
7199
  /** Format: date-time */
7150
7200
  createdAtUtc: string;
@@ -7171,7 +7221,7 @@ export interface components {
7171
7221
  name: string;
7172
7222
  description: null | string;
7173
7223
  /** Format: int32 */
7174
- sortOrder: number | string;
7224
+ sortOrder: number;
7175
7225
  /** Format: uuid */
7176
7226
  productId: null | string;
7177
7227
  platform: components["schemas"]["EmergencyContactDetailsResponse"];
@@ -7211,9 +7261,9 @@ export interface components {
7211
7261
  view: string;
7212
7262
  format: string;
7213
7263
  /** Format: int32 */
7214
- rowCount: number | string;
7264
+ rowCount: number;
7215
7265
  /** Format: int64 */
7216
- byteCount: number | string;
7266
+ byteCount: number;
7217
7267
  contentSha256: string;
7218
7268
  /** Format: uuid */
7219
7269
  customerId: null | string;
@@ -7406,7 +7456,7 @@ export interface components {
7406
7456
  draft: null | components["schemas"]["FormVersionResponse"];
7407
7457
  published: null | components["schemas"]["FormVersionResponse"];
7408
7458
  /** Format: int32 */
7409
- versionCount: number | string;
7459
+ versionCount: number;
7410
7460
  };
7411
7461
  /** @enum {string} */
7412
7462
  FormKind: "Quote" | "Claim";
@@ -7424,14 +7474,14 @@ export interface components {
7424
7474
  /** Format: uuid */
7425
7475
  definitionVersionId: string;
7426
7476
  /** Format: int32 */
7427
- versionNumber: number | string;
7477
+ versionNumber: number;
7428
7478
  versionStatus: components["schemas"]["FormVersionStatus"];
7429
7479
  status: components["schemas"]["SubmissionStatus"];
7430
7480
  /** Format: date */
7431
7481
  evaluatedAsOf: string;
7432
7482
  contentHashVerified: boolean;
7433
7483
  /** Format: int32 */
7434
- answersSchemaVersion: number | string;
7484
+ answersSchemaVersion: number;
7435
7485
  /** Format: date-time */
7436
7486
  createdAtUtc: string;
7437
7487
  createdBySubjectId: string;
@@ -7444,7 +7494,7 @@ export interface components {
7444
7494
  /** Format: uuid */
7445
7495
  liveVersionId: null | string;
7446
7496
  /** Format: int32 */
7447
- liveVersionNumber: null | number | string;
7497
+ liveVersionNumber: null | number;
7448
7498
  answers: components["schemas"]["SubmittedAnswerResponse"][];
7449
7499
  evidence: components["schemas"]["SubmittedEvidenceResponse"][];
7450
7500
  isSatisfied: boolean;
@@ -7466,10 +7516,10 @@ export interface components {
7466
7516
  /** Format: uuid */
7467
7517
  id: string;
7468
7518
  /** Format: int32 */
7469
- versionNumber: number | string;
7519
+ versionNumber: number;
7470
7520
  status: components["schemas"]["FormVersionStatus"];
7471
7521
  /** Format: int32 */
7472
- bodySchemaVersion: number | string;
7522
+ bodySchemaVersion: number;
7473
7523
  contentHash: null | string;
7474
7524
  /** Format: date-time */
7475
7525
  createdAtUtc: string;
@@ -7486,7 +7536,7 @@ export interface components {
7486
7536
  FreeTextPaymentSourceResponse: {
7487
7537
  source: string;
7488
7538
  /** Format: int32 */
7489
- payments: number | string;
7539
+ payments: number;
7490
7540
  };
7491
7541
  FreeTextPaymentSourcesResponse: {
7492
7542
  sources: components["schemas"]["FreeTextPaymentSourceResponse"][];
@@ -7513,7 +7563,7 @@ export interface components {
7513
7563
  type?: null | string;
7514
7564
  title?: null | string;
7515
7565
  /** Format: int32 */
7516
- status?: null | number | string;
7566
+ status?: null | number;
7517
7567
  detail?: null | string;
7518
7568
  instance?: null | string;
7519
7569
  errors?: {
@@ -7650,12 +7700,14 @@ export interface components {
7650
7700
  email: null | string;
7651
7701
  phone: null | string;
7652
7702
  website: null | string;
7653
- status: string;
7703
+ status: components["schemas"]["InsurerStatus"];
7654
7704
  /** Format: date-time */
7655
7705
  createdAtUtc: string;
7656
7706
  /** Format: date-time */
7657
7707
  updatedAtUtc: string;
7658
7708
  };
7709
+ /** @enum {string} */
7710
+ InsurerStatus: "Active" | "Suspended";
7659
7711
  InsurerSubmissionResponse: {
7660
7712
  /** Format: uuid */
7661
7713
  id: string;
@@ -7691,7 +7743,7 @@ export interface components {
7691
7743
  /** Format: uuid */
7692
7744
  id: string;
7693
7745
  /** Format: int32 */
7694
- ordinal: number | string;
7746
+ ordinal: number;
7695
7747
  kind: string;
7696
7748
  description: string;
7697
7749
  /** Format: double */
@@ -7761,11 +7813,11 @@ export interface components {
7761
7813
  to: null | string;
7762
7814
  source: null | string;
7763
7815
  /** Format: int32 */
7764
- arrived: number | string;
7816
+ arrived: number;
7765
7817
  /** Format: int32 */
7766
- unassigned: number | string;
7818
+ unassigned: number;
7767
7819
  /** Format: int32 */
7768
- assigned: number | string;
7820
+ assigned: number;
7769
7821
  bySource: components["schemas"]["LeadFunnelSourceRow"][];
7770
7822
  /** Format: date-time */
7771
7823
  asAtUtc: null | string;
@@ -7791,11 +7843,11 @@ export interface components {
7791
7843
  LeadFunnelSourceRow: {
7792
7844
  source: string;
7793
7845
  /** Format: int32 */
7794
- arrived: number | string;
7846
+ arrived: number;
7795
7847
  /** Format: int32 */
7796
- unassigned: number | string;
7848
+ unassigned: number;
7797
7849
  /** Format: int32 */
7798
- assigned: number | string;
7850
+ assigned: number;
7799
7851
  };
7800
7852
  LeadResponse: {
7801
7853
  /** Format: uuid */
@@ -7837,7 +7889,7 @@ export interface components {
7837
7889
  id: string;
7838
7890
  kind: string;
7839
7891
  /** Format: int32 */
7840
- version: number | string;
7892
+ version: number;
7841
7893
  body: string;
7842
7894
  /** Format: date-time */
7843
7895
  publishedAtUtc: string;
@@ -7952,7 +8004,7 @@ export interface components {
7952
8004
  name: string;
7953
8005
  kind: components["schemas"]["FormKind"];
7954
8006
  /** Format: int32 */
7955
- publishedVersionNumber: number | string;
8007
+ publishedVersionNumber: number;
7956
8008
  };
7957
8009
  OfferedLineOfBusinessResponse: {
7958
8010
  /** Format: uuid */
@@ -7961,7 +8013,7 @@ export interface components {
7961
8013
  name: string;
7962
8014
  description: null | string;
7963
8015
  /** Format: int32 */
7964
- sortOrder: number | string;
8016
+ sortOrder: number;
7965
8017
  };
7966
8018
  OfferedProductResponse: {
7967
8019
  /** Format: uuid */
@@ -8027,11 +8079,11 @@ export interface components {
8027
8079
  tenantId: string;
8028
8080
  eventType: string;
8029
8081
  /** Format: int32 */
8030
- eventVersion: number | string;
8082
+ eventVersion: number;
8031
8083
  /** Format: date-time */
8032
8084
  occurredAtUtc: string;
8033
8085
  /** Format: int32 */
8034
- attempts: number | string;
8086
+ attempts: number;
8035
8087
  lastError: null | string;
8036
8088
  /** Format: date-time */
8037
8089
  nextAttemptAtUtc: null | string;
@@ -8046,7 +8098,7 @@ export interface components {
8046
8098
  tenantKey: null | string;
8047
8099
  eventType: string;
8048
8100
  /** Format: int32 */
8049
- attempts: number | string;
8101
+ attempts: number;
8050
8102
  };
8051
8103
  OverrideEntitlementRequest: {
8052
8104
  featureKey: null | string;
@@ -8114,7 +8166,7 @@ export interface components {
8114
8166
  fileName: string;
8115
8167
  contentType: string;
8116
8168
  /** Format: int64 */
8117
- sizeBytes: number | string;
8169
+ sizeBytes: number;
8118
8170
  contentSha256: string;
8119
8171
  /** Format: date-time */
8120
8172
  uploadedAtUtc: string;
@@ -8198,15 +8250,39 @@ export interface components {
8198
8250
  paymentMethodId: string;
8199
8251
  source: string;
8200
8252
  /** Format: int32 */
8201
- mapped: number | string;
8253
+ mapped: number;
8202
8254
  /** Format: int32 */
8203
- alreadyMapped: number | string;
8255
+ alreadyMapped: number;
8204
8256
  /** Format: int32 */
8205
- mappedToAnotherMethod: number | string;
8257
+ mappedToAnotherMethod: number;
8206
8258
  /** Format: int32 */
8207
- skippedCount: number | string;
8259
+ skippedCount: number;
8208
8260
  skipped: components["schemas"]["SkippedPaymentResponse"][];
8209
8261
  };
8262
+ PaymentSourceRemappingResponse: {
8263
+ /** Format: uuid */
8264
+ fromPaymentMethodId: string;
8265
+ /** Format: uuid */
8266
+ paymentMethodId: string;
8267
+ source: string;
8268
+ /** Format: int32 */
8269
+ remapped: number;
8270
+ /** Format: int32 */
8271
+ recordedAgainstMethod: number;
8272
+ /** Format: int32 */
8273
+ notYetCorrectable: number;
8274
+ };
8275
+ PaymentSourceUnmappingResponse: {
8276
+ /** Format: uuid */
8277
+ paymentMethodId: string;
8278
+ source: string;
8279
+ /** Format: int32 */
8280
+ unmapped: number;
8281
+ /** Format: int32 */
8282
+ recordedAgainstMethod: number;
8283
+ /** Format: int32 */
8284
+ notYetCorrectable: number;
8285
+ };
8210
8286
  PaymentSummaryResponse: {
8211
8287
  /** Format: uuid */
8212
8288
  id: string;
@@ -8306,7 +8382,7 @@ export interface components {
8306
8382
  description: null | string;
8307
8383
  isPubliclyAvailable: boolean;
8308
8384
  /** Format: int32 */
8309
- sortOrder: number | string;
8385
+ sortOrder: number;
8310
8386
  features: components["schemas"]["PlatformPlanFeatureResponse"][];
8311
8387
  };
8312
8388
  PolicyDocumentDownloadLinkResponse: {
@@ -8327,7 +8403,7 @@ export interface components {
8327
8403
  fileName: string;
8328
8404
  contentType: string;
8329
8405
  /** Format: int64 */
8330
- sizeBytes: number | string;
8406
+ sizeBytes: number;
8331
8407
  contentSha256: string;
8332
8408
  /** Format: date-time */
8333
8409
  uploadedAtUtc: string;
@@ -8450,10 +8526,10 @@ export interface components {
8450
8526
  /** Format: uuid */
8451
8527
  customerId: null | string;
8452
8528
  /** Format: int32 */
8453
- versionNumber: number | string;
8529
+ versionNumber: number;
8454
8530
  status: string;
8455
8531
  /** Format: int32 */
8456
- bodySchemaVersion: number | string;
8532
+ bodySchemaVersion: number;
8457
8533
  contentHash: null | string;
8458
8534
  /** Format: date */
8459
8535
  pricedAsOf: string;
@@ -8476,7 +8552,7 @@ export interface components {
8476
8552
  type?: null | string;
8477
8553
  title?: null | string;
8478
8554
  /** Format: int32 */
8479
- status?: null | number | string;
8555
+ status?: null | number;
8480
8556
  detail?: null | string;
8481
8557
  instance?: null | string;
8482
8558
  };
@@ -8496,13 +8572,13 @@ export interface components {
8496
8572
  name: string;
8497
8573
  description: null | string;
8498
8574
  /** Format: int32 */
8499
- sortOrder: number | string;
8575
+ sortOrder: number;
8500
8576
  /** Format: date-time */
8501
8577
  createdAtUtc: string;
8502
8578
  /** Format: date-time */
8503
8579
  updatedAtUtc: string;
8504
8580
  /** Format: int32 */
8505
- productCount: number | string;
8581
+ productCount: number;
8506
8582
  };
8507
8583
  ProductInsurerResponse: {
8508
8584
  /** Format: uuid */
@@ -8624,7 +8700,7 @@ export interface components {
8624
8700
  /** Format: uuid */
8625
8701
  insurerRequestId: string;
8626
8702
  /** Format: int32 */
8627
- optionCount: number | string;
8703
+ optionCount: number;
8628
8704
  /** Format: date-time */
8629
8705
  importedAtUtc: string;
8630
8706
  importedBySubjectId: string;
@@ -8873,6 +8949,11 @@ export interface components {
8873
8949
  ReleaseLegalHoldRequest: {
8874
8950
  releaseReason: null | string;
8875
8951
  };
8952
+ RemapPaymentSourceRequest: {
8953
+ source: string;
8954
+ /** Format: uuid */
8955
+ paymentMethodId: string;
8956
+ };
8876
8957
  RenameFormDefinitionRequest: {
8877
8958
  name: null | string;
8878
8959
  };
@@ -8972,21 +9053,21 @@ export interface components {
8972
9053
  description: null | string;
8973
9054
  platformAction: string;
8974
9055
  /** Format: int32 */
8975
- sortOrder: number | string;
9056
+ sortOrder: number;
8976
9057
  /** Format: uuid */
8977
9058
  productId: null | string;
8978
9059
  /** Format: int32 */
8979
- defaultLeadDays: number | string;
9060
+ defaultLeadDays: number;
8980
9061
  /** Format: int32 */
8981
- minimumLeadDays: number | string;
9062
+ minimumLeadDays: number;
8982
9063
  /** Format: int32 */
8983
- maximumLeadDays: number | string;
9064
+ maximumLeadDays: number;
8984
9065
  /** Format: int32 */
8985
- tenantLeadDays: null | number | string;
9066
+ tenantLeadDays: null | number;
8986
9067
  /** Format: int32 */
8987
- productLeadDays: null | number | string;
9068
+ productLeadDays: null | number;
8988
9069
  /** Format: int32 */
8989
- leadDays: number | string;
9070
+ leadDays: number;
8990
9071
  source: string;
8991
9072
  /** Format: date-time */
8992
9073
  changedAtUtc: null | string;
@@ -9037,7 +9118,7 @@ export interface components {
9037
9118
  };
9038
9119
  RetentionPeriodResponse: {
9039
9120
  /** Format: int32 */
9040
- amount: number | string;
9121
+ amount: number;
9041
9122
  unit: string;
9042
9123
  };
9043
9124
  RetentionScheduleEntryResponse: {
@@ -9307,7 +9388,7 @@ export interface components {
9307
9388
  fileName: string;
9308
9389
  contentType: string;
9309
9390
  /** Format: int64 */
9310
- sizeBytes: number | string;
9391
+ sizeBytes: number;
9311
9392
  contentSha256: string;
9312
9393
  /** Format: date-time */
9313
9394
  uploadedAtUtc: string;
@@ -9509,6 +9590,9 @@ export interface components {
9509
9590
  /** @description The reason. One, because the caller named one submission; still an array. */
9510
9591
  violations: components["schemas"]["RenewalConfirmationViolationResponse"][];
9511
9592
  };
9593
+ UnmapPaymentSourceRequest: {
9594
+ source: string;
9595
+ };
9512
9596
  /** @description RFC 9457 problem answered when a policy cannot be opened because the quote request it names has no acceptance behind it (ADR-0028). Go back to the quote; nothing about this request will help. */
9513
9597
  UnplaceableQuoteProblem: {
9514
9598
  /**
@@ -11224,6 +11308,108 @@ export interface operations {
11224
11308
  };
11225
11309
  };
11226
11310
  };
11311
+ UnmapFreeTextPaymentSource: {
11312
+ parameters: {
11313
+ query?: never;
11314
+ header?: never;
11315
+ path: {
11316
+ id: string;
11317
+ };
11318
+ cookie?: never;
11319
+ };
11320
+ requestBody: {
11321
+ content: {
11322
+ "application/json": components["schemas"]["UnmapPaymentSourceRequest"];
11323
+ };
11324
+ };
11325
+ responses: {
11326
+ /** @description OK */
11327
+ 200: {
11328
+ headers: {
11329
+ [name: string]: unknown;
11330
+ };
11331
+ content: {
11332
+ "application/json": components["schemas"]["PaymentSourceUnmappingResponse"];
11333
+ };
11334
+ };
11335
+ /** @description Bad Request */
11336
+ 400: {
11337
+ headers: {
11338
+ [name: string]: unknown;
11339
+ };
11340
+ content: {
11341
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
11342
+ };
11343
+ };
11344
+ /** @description Not Found */
11345
+ 404: {
11346
+ headers: {
11347
+ [name: string]: unknown;
11348
+ };
11349
+ content?: never;
11350
+ };
11351
+ /** @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. */
11352
+ 409: {
11353
+ headers: {
11354
+ [name: string]: unknown;
11355
+ };
11356
+ content: {
11357
+ "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
11358
+ };
11359
+ };
11360
+ };
11361
+ };
11362
+ RemapFreeTextPaymentSource: {
11363
+ parameters: {
11364
+ query?: never;
11365
+ header?: never;
11366
+ path: {
11367
+ id: string;
11368
+ };
11369
+ cookie?: never;
11370
+ };
11371
+ requestBody: {
11372
+ content: {
11373
+ "application/json": components["schemas"]["RemapPaymentSourceRequest"];
11374
+ };
11375
+ };
11376
+ responses: {
11377
+ /** @description OK */
11378
+ 200: {
11379
+ headers: {
11380
+ [name: string]: unknown;
11381
+ };
11382
+ content: {
11383
+ "application/json": components["schemas"]["PaymentSourceRemappingResponse"];
11384
+ };
11385
+ };
11386
+ /** @description Bad Request */
11387
+ 400: {
11388
+ headers: {
11389
+ [name: string]: unknown;
11390
+ };
11391
+ content: {
11392
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
11393
+ };
11394
+ };
11395
+ /** @description Not Found */
11396
+ 404: {
11397
+ headers: {
11398
+ [name: string]: unknown;
11399
+ };
11400
+ content?: never;
11401
+ };
11402
+ /** @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. */
11403
+ 409: {
11404
+ headers: {
11405
+ [name: string]: unknown;
11406
+ };
11407
+ content: {
11408
+ "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
11409
+ };
11410
+ };
11411
+ };
11412
+ };
11227
11413
  ListInsurers: {
11228
11414
  parameters: {
11229
11415
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "5.3.0",
3
+ "version": "5.6.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,