@insurance-broker/api-client 5.29.0 → 5.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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +113 -1
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -6120,7 +6120,7 @@ export interface paths {
6120
6120
  * Takes exactly one option on exactly one presented version. Terminal.
6121
6121
  * @description Accepts one option on the version that is presented now. Accepting is terminal: the quote request is settled and no further decision is recorded on it.
6122
6122
  *
6123
- * **An option whose premium is above the approval limit the acting member's role carries is a `409` typed `urn:brokerplatform:problem:acceptance-above-approval-limit`** (#197, #630). The limit is the broker's configuration, not the caller's permission, so retrying never helps: a member whose role carries a higher limit accepts it, or the caller accepts a smaller option. The other `409`s — a second acceptance, an option whose price has lapsed, a superseded version, a lost update — say which in their `detail`.
6123
+ * **An option whose premium is above the approval limit the acting member's role carries is a `409` typed `urn:brokerplatform:problem:acceptance-above-approval-limit`** (#197, #630). The limit is the broker's configuration, not the caller's permission, so retrying never helps: a member whose role carries a higher limit accepts it, or the caller accepts a smaller option. The same type answers an option priced in a currency the acting member's role has no limit in, at a broker that has chosen to refuse such a currency (#422). The other `409`s — a second acceptance, an option whose price has lapsed, a superseded version, a lost update — say which in their `detail`.
6124
6124
  */
6125
6125
  post: operations["AcceptCustomerQuote"];
6126
6126
  delete?: never;
@@ -6203,6 +6203,30 @@ export interface paths {
6203
6203
  patch?: never;
6204
6204
  trace?: never;
6205
6205
  };
6206
+ "/api/v1/acceptance-approval-limits/settings": {
6207
+ parameters: {
6208
+ query?: never;
6209
+ header?: never;
6210
+ path?: never;
6211
+ cookie?: never;
6212
+ };
6213
+ /**
6214
+ * What a currency with no ceiling means at this broker
6215
+ * @description Whether a member of a customer organisation whose role has a ceiling in some currency, but none in the currency a premium is quoted in, may accept it (Unlimited, the default) or is refused (Refused). A role with no ceiling in any currency is never refused by this setting, and a broker with no ceilings at all is unaffected by it. Answered whether or not it has been set; the updated members are null while the default applies.
6216
+ */
6217
+ get: operations["ReadAcceptanceApprovalSettings"];
6218
+ /**
6219
+ * Choose what a currency with no ceiling means at this broker
6220
+ * @description Sets currencyWithoutACeiling to Unlimited or Refused. Refused takes effect on the next acceptance: a member acting for an organisation whose role has a ceiling in another currency, and none in the premium's, is refused with the same 409 an acceptance above a ceiling receives. Unlimited restores the default.
6221
+ */
6222
+ put: operations["SetAcceptanceApprovalSettings"];
6223
+ post?: never;
6224
+ delete?: never;
6225
+ options?: never;
6226
+ head?: never;
6227
+ patch?: never;
6228
+ trace?: never;
6229
+ };
6206
6230
  "/api/v1/acceptance-approval-limits/{role}/{currency}": {
6207
6231
  parameters: {
6208
6232
  query?: never;
@@ -6716,6 +6740,12 @@ export interface components {
6716
6740
  updatedAtUtc: string;
6717
6741
  setBySubjectId: string;
6718
6742
  };
6743
+ AcceptanceApprovalSettingsResponse: {
6744
+ currencyWithoutACeiling: string;
6745
+ /** Format: date-time */
6746
+ updatedAtUtc: null | string;
6747
+ updatedBySubjectId: null | string;
6748
+ };
6719
6749
  AcceptQuoteRequest: {
6720
6750
  /** Format: uuid */
6721
6751
  presentationVersionId: null | string;
@@ -7084,6 +7114,7 @@ export interface components {
7084
7114
  status: string;
7085
7115
  source: string;
7086
7116
  expired: boolean;
7117
+ totalPayable: components["schemas"]["TotalPayableResponse"];
7087
7118
  };
7088
7119
  ComparedValueResponse: {
7089
7120
  /** Format: uuid */
@@ -9456,6 +9487,7 @@ export interface components {
9456
9487
  valueKind: null | string;
9457
9488
  value: string;
9458
9489
  readAsDeclared: boolean;
9490
+ notApplicable: boolean;
9459
9491
  };
9460
9492
  QuoteOptionDetailResponse: {
9461
9493
  option: components["schemas"]["QuoteOptionResponse"];
@@ -10049,6 +10081,9 @@ export interface components {
10049
10081
  /** Format: double */
10050
10082
  maximumAmount: null | number | string;
10051
10083
  };
10084
+ SetAcceptanceApprovalSettingsRequest: {
10085
+ currencyWithoutACeiling: null | string;
10086
+ };
10052
10087
  SetEmergencyContactRequest: {
10053
10088
  providerName: null | string;
10054
10089
  contactDetail: null | string;
@@ -10346,6 +10381,21 @@ export interface components {
10346
10381
  primaryDomain: null | string;
10347
10382
  plan: null | components["schemas"]["PlanResponse"];
10348
10383
  };
10384
+ TotalPayablePartResponse: {
10385
+ key: string;
10386
+ label: string;
10387
+ state: string;
10388
+ /** Format: double */
10389
+ amount: null | number | string;
10390
+ };
10391
+ TotalPayableResponse: {
10392
+ /** Format: double */
10393
+ amount: null | number | string;
10394
+ complete: boolean;
10395
+ /** Format: double */
10396
+ premiumAmount: number | string;
10397
+ parts: components["schemas"]["TotalPayablePartResponse"][];
10398
+ };
10349
10399
  /** @description RFC 9457 problem answered when quote options cannot be captured, imported, compared or presented against the product's published comparison schema (ADR-0028). The title says which act was refused; the move is to change the answers or publish a comparison schema that declares them. */
10350
10400
  UncapturableQuoteOptionProblem: {
10351
10401
  /**
@@ -25575,6 +25625,68 @@ export interface operations {
25575
25625
  };
25576
25626
  };
25577
25627
  };
25628
+ ReadAcceptanceApprovalSettings: {
25629
+ parameters: {
25630
+ query?: never;
25631
+ header?: never;
25632
+ path?: never;
25633
+ cookie?: never;
25634
+ };
25635
+ requestBody?: never;
25636
+ responses: {
25637
+ /** @description OK */
25638
+ 200: {
25639
+ headers: {
25640
+ [name: string]: unknown;
25641
+ };
25642
+ content: {
25643
+ "application/json": components["schemas"]["AcceptanceApprovalSettingsResponse"];
25644
+ };
25645
+ };
25646
+ };
25647
+ };
25648
+ SetAcceptanceApprovalSettings: {
25649
+ parameters: {
25650
+ query?: never;
25651
+ header?: never;
25652
+ path?: never;
25653
+ cookie?: never;
25654
+ };
25655
+ requestBody: {
25656
+ content: {
25657
+ "application/json": components["schemas"]["SetAcceptanceApprovalSettingsRequest"];
25658
+ };
25659
+ };
25660
+ responses: {
25661
+ /** @description OK */
25662
+ 200: {
25663
+ headers: {
25664
+ [name: string]: unknown;
25665
+ };
25666
+ content: {
25667
+ "application/json": components["schemas"]["AcceptanceApprovalSettingsResponse"];
25668
+ };
25669
+ };
25670
+ /** @description Bad Request */
25671
+ 400: {
25672
+ headers: {
25673
+ [name: string]: unknown;
25674
+ };
25675
+ content: {
25676
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
25677
+ };
25678
+ };
25679
+ /** @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. */
25680
+ 409: {
25681
+ headers: {
25682
+ [name: string]: unknown;
25683
+ };
25684
+ content: {
25685
+ "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
25686
+ };
25687
+ };
25688
+ };
25689
+ };
25578
25690
  SetAcceptanceApprovalLimit: {
25579
25691
  parameters: {
25580
25692
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "5.29.0",
3
+ "version": "5.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,