@salesforce/lds-adapters-industries-insuranceclaim 1.451.0-dev6 → 1.451.0-dev8

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.
@@ -72,7 +72,7 @@ function createLink(ref) {
72
72
  };
73
73
  }
74
74
 
75
- function validate$e(obj, path = 'ErrorDetail') {
75
+ function validate$f(obj, path = 'ErrorDetail') {
76
76
  const v_error = (() => {
77
77
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
78
78
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -93,7 +93,7 @@ function validate$e(obj, path = 'ErrorDetail') {
93
93
 
94
94
  const TTL$9 = 1000;
95
95
  const VERSION$9 = "5913e1c0d676a648498b82658ebb40ee";
96
- function validate$d(obj, path = 'CreateClaimCoveragePaymentDetailRep') {
96
+ function validate$e(obj, path = 'CreateClaimCoveragePaymentDetailRep') {
97
97
  const v_error = (() => {
98
98
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
99
99
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -117,7 +117,7 @@ function validate$d(obj, path = 'CreateClaimCoveragePaymentDetailRep') {
117
117
  for (let i = 0; i < obj_errors.length; i++) {
118
118
  const obj_errors_item = obj_errors[i];
119
119
  const path_errors_item = path_errors + '[' + i + ']';
120
- const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
120
+ const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
121
121
  if (referencepath_errors_itemValidationError !== null) {
122
122
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
123
123
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -183,7 +183,7 @@ function equals$9(existing, incoming) {
183
183
  }
184
184
  const ingest$9 = function CreateClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
185
185
  if (process.env.NODE_ENV !== 'production') {
186
- const validateError = validate$d(input);
186
+ const validateError = validate$e(input);
187
187
  if (validateError !== null) {
188
188
  throw validateError;
189
189
  }
@@ -306,7 +306,7 @@ const CreateClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
306
306
 
307
307
  const TTL$8 = 1000;
308
308
  const VERSION$8 = "e6579a325e2cbcb97d0337721986bce5";
309
- function validate$c(obj, path = 'EditClaimCoveragePaymentDetailRep') {
309
+ function validate$d(obj, path = 'EditClaimCoveragePaymentDetailRep') {
310
310
  const v_error = (() => {
311
311
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
312
312
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -330,7 +330,7 @@ function validate$c(obj, path = 'EditClaimCoveragePaymentDetailRep') {
330
330
  for (let i = 0; i < obj_errors.length; i++) {
331
331
  const obj_errors_item = obj_errors[i];
332
332
  const path_errors_item = path_errors + '[' + i + ']';
333
- const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
333
+ const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
334
334
  if (referencepath_errors_itemValidationError !== null) {
335
335
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
336
336
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -389,7 +389,7 @@ function equals$8(existing, incoming) {
389
389
  }
390
390
  const ingest$8 = function EditClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
391
391
  if (process.env.NODE_ENV !== 'production') {
392
- const validateError = validate$c(input);
392
+ const validateError = validate$d(input);
393
393
  if (validateError !== null) {
394
394
  throw validateError;
395
395
  }
@@ -513,7 +513,7 @@ const EditClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
513
513
 
514
514
  const TTL$7 = 1000;
515
515
  const VERSION$7 = "0fe1cd8410cf5ab954b0ee6bea965e0d";
516
- function validate$b(obj, path = 'CancelClaimCoveragePaymentDetailRep') {
516
+ function validate$c(obj, path = 'CancelClaimCoveragePaymentDetailRep') {
517
517
  const v_error = (() => {
518
518
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
519
519
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -527,7 +527,7 @@ function validate$b(obj, path = 'CancelClaimCoveragePaymentDetailRep') {
527
527
  for (let i = 0; i < obj_errors.length; i++) {
528
528
  const obj_errors_item = obj_errors[i];
529
529
  const path_errors_item = path_errors + '[' + i + ']';
530
- const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
530
+ const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
531
531
  if (referencepath_errors_itemValidationError !== null) {
532
532
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
533
533
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -579,7 +579,7 @@ function equals$7(existing, incoming) {
579
579
  }
580
580
  const ingest$7 = function CancelClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
581
581
  if (process.env.NODE_ENV !== 'production') {
582
- const validateError = validate$b(input);
582
+ const validateError = validate$c(input);
583
583
  if (validateError !== null) {
584
584
  throw validateError;
585
585
  }
@@ -693,7 +693,7 @@ const CancelClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
693
693
 
694
694
  const TTL$6 = 1000;
695
695
  const VERSION$6 = "c336a66ea51f6cee0b4b062fb1e2dbe0";
696
- function validate$a(obj, path = 'DeleteClaimCoveragePaymentDetailRep') {
696
+ function validate$b(obj, path = 'DeleteClaimCoveragePaymentDetailRep') {
697
697
  const v_error = (() => {
698
698
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
699
699
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -707,7 +707,7 @@ function validate$a(obj, path = 'DeleteClaimCoveragePaymentDetailRep') {
707
707
  for (let i = 0; i < obj_errors.length; i++) {
708
708
  const obj_errors_item = obj_errors[i];
709
709
  const path_errors_item = path_errors + '[' + i + ']';
710
- const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
710
+ const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
711
711
  if (referencepath_errors_itemValidationError !== null) {
712
712
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
713
713
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -759,7 +759,7 @@ function equals$6(existing, incoming) {
759
759
  }
760
760
  const ingest$6 = function DeleteClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
761
761
  if (process.env.NODE_ENV !== 'production') {
762
- const validateError = validate$a(input);
762
+ const validateError = validate$b(input);
763
763
  if (validateError !== null) {
764
764
  throw validateError;
765
765
  }
@@ -871,6 +871,29 @@ const DeleteClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
871
871
  };
872
872
  };
873
873
 
874
+ function validate$a(obj, path = 'PayClaimCoveragePaymentDetailOptionsInputRep') {
875
+ const v_error = (() => {
876
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
877
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
878
+ }
879
+ if (obj.shouldCheckFinancialAuthority !== undefined) {
880
+ const obj_shouldCheckFinancialAuthority = obj.shouldCheckFinancialAuthority;
881
+ const path_shouldCheckFinancialAuthority = path + '.shouldCheckFinancialAuthority';
882
+ if (typeof obj_shouldCheckFinancialAuthority !== 'boolean') {
883
+ return new TypeError('Expected "boolean" but received "' + typeof obj_shouldCheckFinancialAuthority + '" (at "' + path_shouldCheckFinancialAuthority + '")');
884
+ }
885
+ }
886
+ if (obj.shouldVerifyReserveLimit !== undefined) {
887
+ const obj_shouldVerifyReserveLimit = obj.shouldVerifyReserveLimit;
888
+ const path_shouldVerifyReserveLimit = path + '.shouldVerifyReserveLimit';
889
+ if (typeof obj_shouldVerifyReserveLimit !== 'boolean') {
890
+ return new TypeError('Expected "boolean" but received "' + typeof obj_shouldVerifyReserveLimit + '" (at "' + path_shouldVerifyReserveLimit + '")');
891
+ }
892
+ }
893
+ })();
894
+ return v_error === undefined ? null : v_error;
895
+ }
896
+
874
897
  const TTL$5 = 1000;
875
898
  const VERSION$5 = "26f532bc435ef87da6dbec0fd3c0d947";
876
899
  function validate$9(obj, path = 'PayClaimCoveragePaymentDetailRep') {
@@ -901,7 +924,7 @@ function validate$9(obj, path = 'PayClaimCoveragePaymentDetailRep') {
901
924
  for (let i = 0; i < obj_errors.length; i++) {
902
925
  const obj_errors_item = obj_errors[i];
903
926
  const path_errors_item = path_errors + '[' + i + ']';
904
- const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
927
+ const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
905
928
  if (referencepath_errors_itemValidationError !== null) {
906
929
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
907
930
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1032,7 +1055,7 @@ function createResourceRequest$5(config) {
1032
1055
  baseUri: '/services/data/v68.0',
1033
1056
  basePath: '/connect/insurance/claims/' + config.urlParams.claimId + '/coverages/' + config.urlParams.coverageId + '/payment-details/' + config.urlParams.paymentDetailId + '/pay',
1034
1057
  method: 'post',
1035
- body: null,
1058
+ body: config.body,
1036
1059
  urlParams: config.urlParams,
1037
1060
  queryParams: {},
1038
1061
  headers,
@@ -1045,12 +1068,18 @@ const PayClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
1045
1068
  generateParamConfigMetadata('paymentDetailId', true, 0 /* UrlParameter */, 0 /* String */),
1046
1069
  generateParamConfigMetadata('claimId', true, 0 /* UrlParameter */, 0 /* String */),
1047
1070
  generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
1071
+ generateParamConfigMetadata('options', false, 2 /* Body */, 4 /* Unsupported */),
1048
1072
  ];
1049
1073
  const PayClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1050
1074
  const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1051
1075
  function typeCheckConfig$5(untrustedConfig) {
1052
1076
  const config = {};
1053
1077
  typeCheckConfig$a(untrustedConfig, config, PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1078
+ const untrustedConfig_options = untrustedConfig.options;
1079
+ const referencePayClaimCoveragePaymentDetailOptionsInputRepValidationError = validate$a(untrustedConfig_options);
1080
+ if (referencePayClaimCoveragePaymentDetailOptionsInputRepValidationError === null) {
1081
+ config.options = untrustedConfig_options;
1082
+ }
1054
1083
  return config;
1055
1084
  }
1056
1085
  function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
@@ -1125,7 +1154,7 @@ function validate$8(obj, path = 'PayExGratiaClaimCvrPaymentDetailRep') {
1125
1154
  for (let i = 0; i < obj_errors.length; i++) {
1126
1155
  const obj_errors_item = obj_errors[i];
1127
1156
  const path_errors_item = path_errors + '[' + i + ']';
1128
- const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
1157
+ const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
1129
1158
  if (referencepath_errors_itemValidationError !== null) {
1130
1159
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
1131
1160
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1294,12 +1323,18 @@ const PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata = [
1294
1323
  generateParamConfigMetadata('claimId', true, 0 /* UrlParameter */, 0 /* String */),
1295
1324
  generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
1296
1325
  generateParamConfigMetadata('reason', false, 2 /* Body */, 0 /* String */),
1326
+ generateParamConfigMetadata('options', false, 2 /* Body */, 4 /* Unsupported */),
1297
1327
  ];
1298
1328
  const PayExGratiaClaimCvrPaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
1299
1329
  const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
1300
1330
  function typeCheckConfig$4(untrustedConfig) {
1301
1331
  const config = {};
1302
1332
  typeCheckConfig$a(untrustedConfig, config, PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
1333
+ const untrustedConfig_options = untrustedConfig.options;
1334
+ const referencePayClaimCoveragePaymentDetailOptionsInputRepValidationError = validate$a(untrustedConfig_options);
1335
+ if (referencePayClaimCoveragePaymentDetailOptionsInputRepValidationError === null) {
1336
+ config.options = untrustedConfig_options;
1337
+ }
1303
1338
  return config;
1304
1339
  }
1305
1340
  function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
@@ -1503,7 +1538,7 @@ function validate$5(obj, path = 'CalculateAdjustmentsRepresentation') {
1503
1538
  for (let i = 0; i < obj_errors.length; i++) {
1504
1539
  const obj_errors_item = obj_errors[i];
1505
1540
  const path_errors_item = path_errors + '[' + i + ']';
1506
- const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
1541
+ const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
1507
1542
  if (referencepath_errors_itemValidationError !== null) {
1508
1543
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
1509
1544
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1718,7 +1753,7 @@ function validate$3(obj, path = 'BulkPayClaimCoveragePaymentDetailRep') {
1718
1753
  for (let i = 0; i < obj_errors.length; i++) {
1719
1754
  const obj_errors_item = obj_errors[i];
1720
1755
  const path_errors_item = path_errors + '[' + i + ']';
1721
- const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
1756
+ const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
1722
1757
  if (referencepath_errors_itemValidationError !== null) {
1723
1758
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
1724
1759
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2080,7 +2115,7 @@ function validate$1(obj, path = 'InsPolicyLmtCalcStandingRepresentation') {
2080
2115
  for (let i = 0; i < obj_errors.length; i++) {
2081
2116
  const obj_errors_item = obj_errors[i];
2082
2117
  const path_errors_item = path_errors + '[' + i + ']';
2083
- const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
2118
+ const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
2084
2119
  if (referencepath_errors_itemValidationError !== null) {
2085
2120
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
2086
2121
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2277,7 +2312,7 @@ function validate(obj, path = 'VerifyPolicyCoverageRepresentation') {
2277
2312
  for (let i = 0; i < obj_errors.length; i++) {
2278
2313
  const obj_errors_item = obj_errors[i];
2279
2314
  const path_errors_item = path_errors + '[' + i + ']';
2280
- const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
2315
+ const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
2281
2316
  if (referencepath_errors_itemValidationError !== null) {
2282
2317
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
2283
2318
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1,5 +1,6 @@
1
1
  import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
2
  import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { PayClaimCoveragePaymentDetailOptionsInputRep as types_PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep } from '../types/PayClaimCoveragePaymentDetailOptionsInputRep';
3
4
  import { ResourceRequestConfig as resources_postConnectInsuranceClaimsCoveragesPaymentDetailsPayByPaymentDetailIdAndClaimIdAndCoverageId_ResourceRequestConfig } from '../resources/postConnectInsuranceClaimsCoveragesPaymentDetailsPayByPaymentDetailIdAndClaimIdAndCoverageId';
4
5
  import { PayClaimCoveragePaymentDetailRep as types_PayClaimCoveragePaymentDetailRep_PayClaimCoveragePaymentDetailRep } from '../types/PayClaimCoveragePaymentDetailRep';
5
6
  export declare const adapterName = "PayClaimCoveragePaymentDetail";
@@ -9,6 +10,7 @@ export interface PayClaimCoveragePaymentDetailConfig {
9
10
  paymentDetailId: string;
10
11
  claimId: string;
11
12
  coverageId: string;
13
+ options?: types_PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep;
12
14
  }
13
15
  export declare const createResourceParams: (config: PayClaimCoveragePaymentDetailConfig) => resources_postConnectInsuranceClaimsCoveragesPaymentDetailsPayByPaymentDetailIdAndClaimIdAndCoverageId_ResourceRequestConfig;
14
16
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PayClaimCoveragePaymentDetailConfig>): adapter$45$utils_Untrusted<PayClaimCoveragePaymentDetailConfig>;
@@ -1,5 +1,6 @@
1
1
  import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
2
  import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { PayClaimCoveragePaymentDetailOptionsInputRep as types_PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep } from '../types/PayClaimCoveragePaymentDetailOptionsInputRep';
3
4
  import { ResourceRequestConfig as resources_postConnectInsuranceClaimsCoveragesPaymentDetailsPayExGratiaByPaymentDetailIdAndClaimIdAndCoverageId_ResourceRequestConfig } from '../resources/postConnectInsuranceClaimsCoveragesPaymentDetailsPayExGratiaByPaymentDetailIdAndClaimIdAndCoverageId';
4
5
  import { PayExGratiaClaimCvrPaymentDetailRep as types_PayExGratiaClaimCvrPaymentDetailRep_PayExGratiaClaimCvrPaymentDetailRep } from '../types/PayExGratiaClaimCvrPaymentDetailRep';
5
6
  export declare const adapterName = "PayExGratiaClaimCvrPaymentDetail";
@@ -10,6 +11,7 @@ export interface PayExGratiaClaimCvrPaymentDetailConfig {
10
11
  claimId: string;
11
12
  coverageId: string;
12
13
  reason?: string;
14
+ options?: types_PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep;
13
15
  }
14
16
  export declare const createResourceParams: (config: PayExGratiaClaimCvrPaymentDetailConfig) => resources_postConnectInsuranceClaimsCoveragesPaymentDetailsPayExGratiaByPaymentDetailIdAndClaimIdAndCoverageId_ResourceRequestConfig;
15
17
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PayExGratiaClaimCvrPaymentDetailConfig>): adapter$45$utils_Untrusted<PayExGratiaClaimCvrPaymentDetailConfig>;
@@ -1,3 +1,4 @@
1
+ import { PayClaimCoveragePaymentDetailOptionsInputRep as types_PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep } from '../types/PayClaimCoveragePaymentDetailOptionsInputRep';
1
2
  import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
3
  import { PayClaimCoveragePaymentDetailRep as types_PayClaimCoveragePaymentDetailRep_PayClaimCoveragePaymentDetailRep } from '../types/PayClaimCoveragePaymentDetailRep';
3
4
  export interface ResourceRequestConfig {
@@ -6,6 +7,9 @@ export interface ResourceRequestConfig {
6
7
  claimId: string;
7
8
  coverageId: string;
8
9
  };
10
+ body: {
11
+ options?: types_PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep;
12
+ };
9
13
  }
10
14
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
11
15
  export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_PayClaimCoveragePaymentDetailRep_PayClaimCoveragePaymentDetailRep): void;
@@ -1,3 +1,4 @@
1
+ import { PayClaimCoveragePaymentDetailOptionsInputRep as types_PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep } from '../types/PayClaimCoveragePaymentDetailOptionsInputRep';
1
2
  import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
3
  import { PayExGratiaClaimCvrPaymentDetailRep as types_PayExGratiaClaimCvrPaymentDetailRep_PayExGratiaClaimCvrPaymentDetailRep } from '../types/PayExGratiaClaimCvrPaymentDetailRep';
3
4
  export interface ResourceRequestConfig {
@@ -8,6 +9,7 @@ export interface ResourceRequestConfig {
8
9
  };
9
10
  body: {
10
11
  reason?: string;
12
+ options?: types_PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep;
11
13
  };
12
14
  }
13
15
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -0,0 +1,28 @@
1
+ import { PayClaimCoveragePaymentDetailOptionsInputRep as PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep } from './PayClaimCoveragePaymentDetailOptionsInputRep';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "e099d2f54611fee5668b3c2c5ee8abc7";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: PayClaimCoveragePaymentDetailInputRepresentation, existing: PayClaimCoveragePaymentDetailInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PayClaimCoveragePaymentDetailInputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: PayClaimCoveragePaymentDetailInputRepresentationNormalized, incoming: PayClaimCoveragePaymentDetailInputRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PayClaimCoveragePaymentDetailInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Input representation for paying a claim coverage payment detail. Wraps the optional pre-payment check toggles in a nested options object.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface PayClaimCoveragePaymentDetailInputRepresentationNormalized {
18
+ options?: PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep;
19
+ }
20
+ /**
21
+ * Input representation for paying a claim coverage payment detail. Wraps the optional pre-payment check toggles in a nested options object.
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface PayClaimCoveragePaymentDetailInputRepresentation {
27
+ options?: PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep;
28
+ }
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "c12d66be93f265898f0b732af328d0a3";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: PayClaimCoveragePaymentDetailOptionsInputRep, existing: PayClaimCoveragePaymentDetailOptionsInputRepNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PayClaimCoveragePaymentDetailOptionsInputRepNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: PayClaimCoveragePaymentDetailOptionsInputRepNormalized, incoming: PayClaimCoveragePaymentDetailOptionsInputRepNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PayClaimCoveragePaymentDetailOptionsInputRep, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Optional toggles that control which pre-payment checks run before paying a claim coverage payment detail.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface PayClaimCoveragePaymentDetailOptionsInputRepNormalized {
17
+ /** Indicates whether the user financial authority (UFA) check should run before payment. Defaults to false (check skipped). */
18
+ shouldCheckFinancialAuthority?: boolean;
19
+ /** Indicates whether the reserve-limit check should run before payment. Defaults to false (check skipped). */
20
+ shouldVerifyReserveLimit?: boolean;
21
+ }
22
+ /**
23
+ * Optional toggles that control which pre-payment checks run before paying a claim coverage payment detail.
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface PayClaimCoveragePaymentDetailOptionsInputRep {
29
+ shouldCheckFinancialAuthority?: boolean;
30
+ shouldVerifyReserveLimit?: boolean;
31
+ }
@@ -1,5 +1,6 @@
1
+ import { PayClaimCoveragePaymentDetailOptionsInputRep as PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep } from './PayClaimCoveragePaymentDetailOptionsInputRep';
1
2
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "3fc3ab94a2837e3fa93a8c6bf7fad486";
3
+ export declare const VERSION = "612e2735287bc9c3693cb7feac05d3c5";
3
4
  export declare function validate(obj: any, path?: string): TypeError | null;
4
5
  export declare const RepresentationType: string;
5
6
  export declare function normalize(input: PayExGratiaClaimCvrPaymentDetailInputRep, existing: PayExGratiaClaimCvrPaymentDetailInputRepNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PayExGratiaClaimCvrPaymentDetailInputRepNormalized;
@@ -14,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
15
  * (none)
15
16
  */
16
17
  export interface PayExGratiaClaimCvrPaymentDetailInputRepNormalized {
18
+ /** Optional toggles that control which pre-payment checks run. */
19
+ options?: PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep;
17
20
  /** Reason for the ex gratia payment. */
18
21
  reason?: string;
19
22
  }
@@ -24,5 +27,6 @@ export interface PayExGratiaClaimCvrPaymentDetailInputRepNormalized {
24
27
  * (none)
25
28
  */
26
29
  export interface PayExGratiaClaimCvrPaymentDetailInputRep {
30
+ options?: PayClaimCoveragePaymentDetailOptionsInputRep_PayClaimCoveragePaymentDetailOptionsInputRep;
27
31
  reason?: string;
28
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-insuranceclaim",
3
- "version": "1.451.0-dev6",
3
+ "version": "1.451.0-dev8",
4
4
  "description": "APIs for Insurance Claims",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/industries-insuranceclaim.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.451.0-dev6"
43
+ "@salesforce/lds-bindings": "^1.451.0-dev8"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.451.0-dev6"
46
+ "@salesforce/lds-compiler-plugins": "^1.451.0-dev8"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -81,7 +81,7 @@ function createLink(ref) {
81
81
  };
82
82
  }
83
83
 
84
- function validate$e(obj, path = 'RecordIdsInput') {
84
+ function validate$f(obj, path = 'RecordIdsInput') {
85
85
  const v_error = (() => {
86
86
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
87
87
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -102,7 +102,7 @@ function validate$e(obj, path = 'RecordIdsInput') {
102
102
  return v_error === undefined ? null : v_error;
103
103
  }
104
104
 
105
- function validate$d(obj, path = 'ErrorDetail') {
105
+ function validate$e(obj, path = 'ErrorDetail') {
106
106
  const v_error = (() => {
107
107
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
108
108
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -123,7 +123,7 @@ function validate$d(obj, path = 'ErrorDetail') {
123
123
 
124
124
  const TTL$9 = 1000;
125
125
  const VERSION$9 = "ab08207178652bf5acf6509cd2d3fdbc";
126
- function validate$c(obj, path = 'BulkPayClaimCoveragePaymentDetailRep') {
126
+ function validate$d(obj, path = 'BulkPayClaimCoveragePaymentDetailRep') {
127
127
  const v_error = (() => {
128
128
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
129
129
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -137,7 +137,7 @@ function validate$c(obj, path = 'BulkPayClaimCoveragePaymentDetailRep') {
137
137
  for (let i = 0; i < obj_errors.length; i++) {
138
138
  const obj_errors_item = obj_errors[i];
139
139
  const path_errors_item = path_errors + '[' + i + ']';
140
- const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
140
+ const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
141
141
  if (referencepath_errors_itemValidationError !== null) {
142
142
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
143
143
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -189,7 +189,7 @@ function equals$9(existing, incoming) {
189
189
  }
190
190
  const ingest$9 = function BulkPayClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
191
191
  if (process.env.NODE_ENV !== 'production') {
192
- const validateError = validate$c(input);
192
+ const validateError = validate$d(input);
193
193
  if (validateError !== null) {
194
194
  throw validateError;
195
195
  }
@@ -255,7 +255,7 @@ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(BulkPayClaim
255
255
  function typeCheckConfig$9(untrustedConfig) {
256
256
  const config = {};
257
257
  const untrustedConfig_recordIds = untrustedConfig.recordIds;
258
- const referenceRecordIdsInputValidationError = validate$e(untrustedConfig_recordIds);
258
+ const referenceRecordIdsInputValidationError = validate$f(untrustedConfig_recordIds);
259
259
  if (referenceRecordIdsInputValidationError === null) {
260
260
  config.recordIds = untrustedConfig_recordIds;
261
261
  }
@@ -303,7 +303,7 @@ const BulkPayClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
303
303
  };
304
304
  };
305
305
 
306
- function validate$b(obj, path = 'ClaimCovPaymentAdjDetailsRep') {
306
+ function validate$c(obj, path = 'ClaimCovPaymentAdjDetailsRep') {
307
307
  const v_error = (() => {
308
308
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
309
309
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -326,7 +326,7 @@ function validate$b(obj, path = 'ClaimCovPaymentAdjDetailsRep') {
326
326
  return v_error === undefined ? null : v_error;
327
327
  }
328
328
 
329
- function validate$a(obj, path = 'InsPolicyLimitTrackingDetailsRep') {
329
+ function validate$b(obj, path = 'InsPolicyLimitTrackingDetailsRep') {
330
330
  const v_error = (() => {
331
331
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
332
332
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -417,7 +417,7 @@ function validate$a(obj, path = 'InsPolicyLimitTrackingDetailsRep') {
417
417
 
418
418
  const TTL$8 = 1000;
419
419
  const VERSION$8 = "cb555dac128f300b8ecb7f878bff8049";
420
- function validate$9(obj, path = 'CalculateAdjustmentsRepresentation') {
420
+ function validate$a(obj, path = 'CalculateAdjustmentsRepresentation') {
421
421
  const v_error = (() => {
422
422
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
423
423
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -445,7 +445,7 @@ function validate$9(obj, path = 'CalculateAdjustmentsRepresentation') {
445
445
  for (let i = 0; i < obj_claimCovPaymentAdjustments.length; i++) {
446
446
  const obj_claimCovPaymentAdjustments_item = obj_claimCovPaymentAdjustments[i];
447
447
  const path_claimCovPaymentAdjustments_item = path_claimCovPaymentAdjustments + '[' + i + ']';
448
- const referencepath_claimCovPaymentAdjustments_itemValidationError = validate$b(obj_claimCovPaymentAdjustments_item, path_claimCovPaymentAdjustments_item);
448
+ const referencepath_claimCovPaymentAdjustments_itemValidationError = validate$c(obj_claimCovPaymentAdjustments_item, path_claimCovPaymentAdjustments_item);
449
449
  if (referencepath_claimCovPaymentAdjustments_itemValidationError !== null) {
450
450
  let message = 'Object doesn\'t match ClaimCovPaymentAdjDetailsRep (at "' + path_claimCovPaymentAdjustments_item + '")\n';
451
451
  message += referencepath_claimCovPaymentAdjustments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -462,7 +462,7 @@ function validate$9(obj, path = 'CalculateAdjustmentsRepresentation') {
462
462
  for (let i = 0; i < obj_errors.length; i++) {
463
463
  const obj_errors_item = obj_errors[i];
464
464
  const path_errors_item = path_errors + '[' + i + ']';
465
- const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
465
+ const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
466
466
  if (referencepath_errors_itemValidationError !== null) {
467
467
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
468
468
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -479,7 +479,7 @@ function validate$9(obj, path = 'CalculateAdjustmentsRepresentation') {
479
479
  for (let i = 0; i < obj_insPolicyLimitTrackings.length; i++) {
480
480
  const obj_insPolicyLimitTrackings_item = obj_insPolicyLimitTrackings[i];
481
481
  const path_insPolicyLimitTrackings_item = path_insPolicyLimitTrackings + '[' + i + ']';
482
- const referencepath_insPolicyLimitTrackings_itemValidationError = validate$a(obj_insPolicyLimitTrackings_item, path_insPolicyLimitTrackings_item);
482
+ const referencepath_insPolicyLimitTrackings_itemValidationError = validate$b(obj_insPolicyLimitTrackings_item, path_insPolicyLimitTrackings_item);
483
483
  if (referencepath_insPolicyLimitTrackings_itemValidationError !== null) {
484
484
  let message = 'Object doesn\'t match InsPolicyLimitTrackingDetailsRep (at "' + path_insPolicyLimitTrackings_item + '")\n';
485
485
  message += referencepath_insPolicyLimitTrackings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -524,7 +524,7 @@ function equals$8(existing, incoming) {
524
524
  }
525
525
  const ingest$8 = function CalculateAdjustmentsRepresentationIngest(input, path, luvio, store, timestamp) {
526
526
  if (process.env.NODE_ENV !== 'production') {
527
- const validateError = validate$9(input);
527
+ const validateError = validate$a(input);
528
528
  if (validateError !== null) {
529
529
  throw validateError;
530
530
  }
@@ -642,7 +642,7 @@ const CalculateAdjustmentsAdapterFactory = (luvio) => {
642
642
 
643
643
  const TTL$7 = 1000;
644
644
  const VERSION$7 = "0fe1cd8410cf5ab954b0ee6bea965e0d";
645
- function validate$8(obj, path = 'CancelClaimCoveragePaymentDetailRep') {
645
+ function validate$9(obj, path = 'CancelClaimCoveragePaymentDetailRep') {
646
646
  const v_error = (() => {
647
647
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
648
648
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -656,7 +656,7 @@ function validate$8(obj, path = 'CancelClaimCoveragePaymentDetailRep') {
656
656
  for (let i = 0; i < obj_errors.length; i++) {
657
657
  const obj_errors_item = obj_errors[i];
658
658
  const path_errors_item = path_errors + '[' + i + ']';
659
- const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
659
+ const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
660
660
  if (referencepath_errors_itemValidationError !== null) {
661
661
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
662
662
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -708,7 +708,7 @@ function equals$7(existing, incoming) {
708
708
  }
709
709
  const ingest$7 = function CancelClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
710
710
  if (process.env.NODE_ENV !== 'production') {
711
- const validateError = validate$8(input);
711
+ const validateError = validate$9(input);
712
712
  if (validateError !== null) {
713
713
  throw validateError;
714
714
  }
@@ -822,7 +822,7 @@ const CancelClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
822
822
 
823
823
  const TTL$6 = 1000;
824
824
  const VERSION$6 = "5913e1c0d676a648498b82658ebb40ee";
825
- function validate$7(obj, path = 'CreateClaimCoveragePaymentDetailRep') {
825
+ function validate$8(obj, path = 'CreateClaimCoveragePaymentDetailRep') {
826
826
  const v_error = (() => {
827
827
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
828
828
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -846,7 +846,7 @@ function validate$7(obj, path = 'CreateClaimCoveragePaymentDetailRep') {
846
846
  for (let i = 0; i < obj_errors.length; i++) {
847
847
  const obj_errors_item = obj_errors[i];
848
848
  const path_errors_item = path_errors + '[' + i + ']';
849
- const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
849
+ const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
850
850
  if (referencepath_errors_itemValidationError !== null) {
851
851
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
852
852
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -912,7 +912,7 @@ function equals$6(existing, incoming) {
912
912
  }
913
913
  const ingest$6 = function CreateClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
914
914
  if (process.env.NODE_ENV !== 'production') {
915
- const validateError = validate$7(input);
915
+ const validateError = validate$8(input);
916
916
  if (validateError !== null) {
917
917
  throw validateError;
918
918
  }
@@ -1035,7 +1035,7 @@ const CreateClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
1035
1035
 
1036
1036
  const TTL$5 = 1000;
1037
1037
  const VERSION$5 = "c336a66ea51f6cee0b4b062fb1e2dbe0";
1038
- function validate$6(obj, path = 'DeleteClaimCoveragePaymentDetailRep') {
1038
+ function validate$7(obj, path = 'DeleteClaimCoveragePaymentDetailRep') {
1039
1039
  const v_error = (() => {
1040
1040
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1041
1041
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1049,7 +1049,7 @@ function validate$6(obj, path = 'DeleteClaimCoveragePaymentDetailRep') {
1049
1049
  for (let i = 0; i < obj_errors.length; i++) {
1050
1050
  const obj_errors_item = obj_errors[i];
1051
1051
  const path_errors_item = path_errors + '[' + i + ']';
1052
- const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
1052
+ const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
1053
1053
  if (referencepath_errors_itemValidationError !== null) {
1054
1054
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
1055
1055
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1101,7 +1101,7 @@ function equals$5(existing, incoming) {
1101
1101
  }
1102
1102
  const ingest$5 = function DeleteClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
1103
1103
  if (process.env.NODE_ENV !== 'production') {
1104
- const validateError = validate$6(input);
1104
+ const validateError = validate$7(input);
1105
1105
  if (validateError !== null) {
1106
1106
  throw validateError;
1107
1107
  }
@@ -1215,7 +1215,7 @@ const DeleteClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
1215
1215
 
1216
1216
  const TTL$4 = 1000;
1217
1217
  const VERSION$4 = "e6579a325e2cbcb97d0337721986bce5";
1218
- function validate$5(obj, path = 'EditClaimCoveragePaymentDetailRep') {
1218
+ function validate$6(obj, path = 'EditClaimCoveragePaymentDetailRep') {
1219
1219
  const v_error = (() => {
1220
1220
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1221
1221
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1239,7 +1239,7 @@ function validate$5(obj, path = 'EditClaimCoveragePaymentDetailRep') {
1239
1239
  for (let i = 0; i < obj_errors.length; i++) {
1240
1240
  const obj_errors_item = obj_errors[i];
1241
1241
  const path_errors_item = path_errors + '[' + i + ']';
1242
- const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
1242
+ const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
1243
1243
  if (referencepath_errors_itemValidationError !== null) {
1244
1244
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
1245
1245
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1298,7 +1298,7 @@ function equals$4(existing, incoming) {
1298
1298
  }
1299
1299
  const ingest$4 = function EditClaimCoveragePaymentDetailRepIngest(input, path, luvio, store, timestamp) {
1300
1300
  if (process.env.NODE_ENV !== 'production') {
1301
- const validateError = validate$5(input);
1301
+ const validateError = validate$6(input);
1302
1302
  if (validateError !== null) {
1303
1303
  throw validateError;
1304
1304
  }
@@ -1420,6 +1420,29 @@ const EditClaimCoveragePaymentDetailAdapterFactory = (luvio) => {
1420
1420
  };
1421
1421
  };
1422
1422
 
1423
+ function validate$5(obj, path = 'PayClaimCoveragePaymentDetailOptionsInputRep') {
1424
+ const v_error = (() => {
1425
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1426
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1427
+ }
1428
+ if (obj.shouldCheckFinancialAuthority !== undefined) {
1429
+ const obj_shouldCheckFinancialAuthority = obj.shouldCheckFinancialAuthority;
1430
+ const path_shouldCheckFinancialAuthority = path + '.shouldCheckFinancialAuthority';
1431
+ if (typeof obj_shouldCheckFinancialAuthority !== 'boolean') {
1432
+ return new TypeError('Expected "boolean" but received "' + typeof obj_shouldCheckFinancialAuthority + '" (at "' + path_shouldCheckFinancialAuthority + '")');
1433
+ }
1434
+ }
1435
+ if (obj.shouldVerifyReserveLimit !== undefined) {
1436
+ const obj_shouldVerifyReserveLimit = obj.shouldVerifyReserveLimit;
1437
+ const path_shouldVerifyReserveLimit = path + '.shouldVerifyReserveLimit';
1438
+ if (typeof obj_shouldVerifyReserveLimit !== 'boolean') {
1439
+ return new TypeError('Expected "boolean" but received "' + typeof obj_shouldVerifyReserveLimit + '" (at "' + path_shouldVerifyReserveLimit + '")');
1440
+ }
1441
+ }
1442
+ })();
1443
+ return v_error === undefined ? null : v_error;
1444
+ }
1445
+
1423
1446
  const TTL$3 = 1000;
1424
1447
  const VERSION$3 = "26f532bc435ef87da6dbec0fd3c0d947";
1425
1448
  function validate$4(obj, path = 'PayClaimCoveragePaymentDetailRep') {
@@ -1450,7 +1473,7 @@ function validate$4(obj, path = 'PayClaimCoveragePaymentDetailRep') {
1450
1473
  for (let i = 0; i < obj_errors.length; i++) {
1451
1474
  const obj_errors_item = obj_errors[i];
1452
1475
  const path_errors_item = path_errors + '[' + i + ']';
1453
- const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
1476
+ const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
1454
1477
  if (referencepath_errors_itemValidationError !== null) {
1455
1478
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
1456
1479
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1581,7 +1604,7 @@ function createResourceRequest$3(config) {
1581
1604
  baseUri: '/services/data/v68.0',
1582
1605
  basePath: '/connect/insurance/claims/' + config.urlParams.claimId + '/coverages/' + config.urlParams.coverageId + '/payment-details/' + config.urlParams.paymentDetailId + '/pay',
1583
1606
  method: 'post',
1584
- body: null,
1607
+ body: config.body,
1585
1608
  urlParams: config.urlParams,
1586
1609
  queryParams: {},
1587
1610
  headers,
@@ -1594,12 +1617,18 @@ const PayClaimCoveragePaymentDetail_ConfigPropertyMetadata = [
1594
1617
  generateParamConfigMetadata('paymentDetailId', true, 0 /* UrlParameter */, 0 /* String */),
1595
1618
  generateParamConfigMetadata('claimId', true, 0 /* UrlParameter */, 0 /* String */),
1596
1619
  generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
1620
+ generateParamConfigMetadata('options', false, 2 /* Body */, 4 /* Unsupported */),
1597
1621
  ];
1598
1622
  const PayClaimCoveragePaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1599
1623
  const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1600
1624
  function typeCheckConfig$3(untrustedConfig) {
1601
1625
  const config = {};
1602
1626
  typeCheckConfig$a(untrustedConfig, config, PayClaimCoveragePaymentDetail_ConfigPropertyMetadata);
1627
+ const untrustedConfig_options = untrustedConfig.options;
1628
+ const referencePayClaimCoveragePaymentDetailOptionsInputRepValidationError = validate$5(untrustedConfig_options);
1629
+ if (referencePayClaimCoveragePaymentDetailOptionsInputRepValidationError === null) {
1630
+ config.options = untrustedConfig_options;
1631
+ }
1603
1632
  return config;
1604
1633
  }
1605
1634
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -1674,7 +1703,7 @@ function validate$3(obj, path = 'PayExGratiaClaimCvrPaymentDetailRep') {
1674
1703
  for (let i = 0; i < obj_errors.length; i++) {
1675
1704
  const obj_errors_item = obj_errors[i];
1676
1705
  const path_errors_item = path_errors + '[' + i + ']';
1677
- const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
1706
+ const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
1678
1707
  if (referencepath_errors_itemValidationError !== null) {
1679
1708
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
1680
1709
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1843,12 +1872,18 @@ const PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata = [
1843
1872
  generateParamConfigMetadata('claimId', true, 0 /* UrlParameter */, 0 /* String */),
1844
1873
  generateParamConfigMetadata('coverageId', true, 0 /* UrlParameter */, 0 /* String */),
1845
1874
  generateParamConfigMetadata('reason', false, 2 /* Body */, 0 /* String */),
1875
+ generateParamConfigMetadata('options', false, 2 /* Body */, 4 /* Unsupported */),
1846
1876
  ];
1847
1877
  const PayExGratiaClaimCvrPaymentDetail_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
1848
1878
  const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
1849
1879
  function typeCheckConfig$2(untrustedConfig) {
1850
1880
  const config = {};
1851
1881
  typeCheckConfig$a(untrustedConfig, config, PayExGratiaClaimCvrPaymentDetail_ConfigPropertyMetadata);
1882
+ const untrustedConfig_options = untrustedConfig.options;
1883
+ const referencePayClaimCoveragePaymentDetailOptionsInputRepValidationError = validate$5(untrustedConfig_options);
1884
+ if (referencePayClaimCoveragePaymentDetailOptionsInputRepValidationError === null) {
1885
+ config.options = untrustedConfig_options;
1886
+ }
1852
1887
  return config;
1853
1888
  }
1854
1889
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -2089,7 +2124,7 @@ function validate$1(obj, path = 'InsPolicyLmtCalcStandingRepresentation') {
2089
2124
  for (let i = 0; i < obj_errors.length; i++) {
2090
2125
  const obj_errors_item = obj_errors[i];
2091
2126
  const path_errors_item = path_errors + '[' + i + ']';
2092
- const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
2127
+ const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
2093
2128
  if (referencepath_errors_itemValidationError !== null) {
2094
2129
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
2095
2130
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2286,7 +2321,7 @@ function validate(obj, path = 'VerifyPolicyCoverageRepresentation') {
2286
2321
  for (let i = 0; i < obj_errors.length; i++) {
2287
2322
  const obj_errors_item = obj_errors[i];
2288
2323
  const path_errors_item = path_errors + '[' + i + ']';
2289
- const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
2324
+ const referencepath_errors_itemValidationError = validate$e(obj_errors_item, path_errors_item);
2290
2325
  if (referencepath_errors_itemValidationError !== null) {
2291
2326
  let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
2292
2327
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2492,4 +2527,4 @@ withDefaultLuvio((luvio) => {
2492
2527
  });
2493
2528
 
2494
2529
  export { BulkPayClaimCoveragePaymentDetail, CalculateAdjustments, CancelClaimCoveragePaymentDetail, CreateClaimCoveragePaymentDetail, DeleteClaimCoveragePaymentDetail, EditClaimCoveragePaymentDetail, PayClaimCoveragePaymentDetail, PayExGratiaClaimCvrPaymentDetail, PolicyLimitStandingCalculation, postVerifyPolicyCoverage };
2495
- // version: 1.451.0-dev6-6ec7cea03f
2530
+ // version: 1.451.0-dev8-96df37bcf3
package/src/raml/api.raml CHANGED
@@ -486,6 +486,26 @@ types:
486
486
  isSuccess:
487
487
  type: boolean
488
488
  description: Indicates whether the policy coverage is valid for the date on which the incident occurred.
489
+ PayClaimCoveragePaymentDetailInputRepresentation:
490
+ description: Input representation for paying a claim coverage payment detail. Wraps the optional pre-payment check toggles in a nested options object.
491
+ type: object
492
+ properties:
493
+ options:
494
+ description: Optional toggles that control which pre-payment checks run.
495
+ type: PayClaimCoveragePaymentDetailOptionsInputRep
496
+ required: false
497
+ PayClaimCoveragePaymentDetailOptionsInputRep:
498
+ description: Optional toggles that control which pre-payment checks run before paying a claim coverage payment detail.
499
+ type: object
500
+ properties:
501
+ shouldCheckFinancialAuthority:
502
+ description: Indicates whether the user financial authority (UFA) check should run before payment. Defaults to false (check skipped).
503
+ type: boolean
504
+ required: false
505
+ shouldVerifyReserveLimit:
506
+ description: Indicates whether the reserve-limit check should run before payment. Defaults to false (check skipped).
507
+ type: boolean
508
+ required: false
489
509
  PayClaimCoveragePaymentDetailRep:
490
510
  description: Output representation for the payment of the claim coverage payment detail record.
491
511
  type: object
@@ -545,6 +565,10 @@ types:
545
565
  description: Reason for the ex gratia payment.
546
566
  type: string
547
567
  required: false
568
+ options:
569
+ description: Optional toggles that control which pre-payment checks run.
570
+ type: PayClaimCoveragePaymentDetailOptionsInputRep
571
+ required: false
548
572
  PayExGratiaClaimCvrPaymentDetailRep:
549
573
  description: Output representation for the details of the ex gratia payment that's made for the claim coverage payment detail
550
574
  type: object
@@ -828,6 +852,10 @@ types:
828
852
  body:
829
853
  application/json:
830
854
  type: PayClaimCoveragePaymentDetailRep
855
+ body:
856
+ application/json:
857
+ type: PayClaimCoveragePaymentDetailInputRepresentation
858
+ (oas-body-name): PayClaimCoveragePaymentDetailInput
831
859
  uriParameters:
832
860
  paymentDetailId:
833
861
  description: Unique Id to represent a claim coverage payment details