@energycap/energycap-sdk-angular 8.2605.176-develop-20260615-1340 → 8.2605.178-develop-20260618-1929

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.
@@ -10350,6 +10350,22 @@ class BillImportRuleService {
10350
10350
  }
10351
10351
  return false;
10352
10352
  }
10353
+ /**
10354
+ * Check whether or not a bill can be reprocessed via the rules engine
10355
+ *
10356
+ * @param billId The bill to check the reprocess-ability of
10357
+ */
10358
+ canReprocessBill(billId, extraHttpRequestParams, extraHttpRequestHeaders) {
10359
+ return this.canReprocessBillWithHttpInfo(billId, extraHttpRequestParams, extraHttpRequestHeaders)
10360
+ .pipe(map((response) => {
10361
+ if (response.status === 204) {
10362
+ return undefined;
10363
+ }
10364
+ else {
10365
+ return response.body;
10366
+ }
10367
+ }));
10368
+ }
10353
10369
  /**
10354
10370
  * Creates a new bill import rule with optional vendor or account scope
10355
10371
  * Use this endpoint to create a new import rule. Scope is determined by the optional vendorId or accountId in the request body. At most one scope entity can be provided. If none are provided, the rule is global (customer-level).
@@ -10466,6 +10482,22 @@ class BillImportRuleService {
10466
10482
  }
10467
10483
  }));
10468
10484
  }
10485
+ /**
10486
+ * Reprocesses a bill. This will rerun all appliciable rules against a bill. The bill is re-imported, any edits will be lost. Requires both BillProcessingRules:Manage and BillsAndBatches:Edit permission
10487
+ *
10488
+ * @param billId The bill to reprocess
10489
+ */
10490
+ reprocessBill(billId, extraHttpRequestParams, extraHttpRequestHeaders) {
10491
+ return this.reprocessBillWithHttpInfo(billId, extraHttpRequestParams, extraHttpRequestHeaders)
10492
+ .pipe(map((response) => {
10493
+ if (response.status === 204) {
10494
+ return undefined;
10495
+ }
10496
+ else {
10497
+ return response.body;
10498
+ }
10499
+ }));
10500
+ }
10469
10501
  /**
10470
10502
  * Tests an existing import rule against an existing bill in the system
10471
10503
  * Use this endpoint to preview how a saved rule would transform an existing bill. Does not modify the bill — the test is read-only.
@@ -10533,6 +10565,58 @@ class BillImportRuleService {
10533
10565
  }
10534
10566
  }));
10535
10567
  }
10568
+ /**
10569
+ * Check whether or not a bill can be reprocessed via the rules engine
10570
+ *
10571
+ * @param billId The bill to check the reprocess-ability of
10572
+ */
10573
+ canReprocessBillWithHttpInfo(billId, extraHttpRequestParams, extraHttpRequestHeaders) {
10574
+ const path = this.basePath + '/api/v202604/billImportRule/reprocess/bill/${billId}/canReprocess'
10575
+ .replace('${' + 'billId' + '}', String(billId));
10576
+ let queryParameters;
10577
+ if (extraHttpRequestParams) {
10578
+ if (typeof extraHttpRequestParams.search === 'string') {
10579
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
10580
+ }
10581
+ else {
10582
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
10583
+ }
10584
+ }
10585
+ else {
10586
+ queryParameters = new HttpParams();
10587
+ }
10588
+ let headers = new HttpHeaders();
10589
+ this.defaultHeaders.keys().forEach(key => {
10590
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
10591
+ });
10592
+ if (extraHttpRequestHeaders) {
10593
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
10594
+ headers = headers.set(key, value);
10595
+ });
10596
+ }
10597
+ // verify required parameter 'billId' is not null or undefined
10598
+ if (billId === null || billId === undefined) {
10599
+ throw new Error('Required parameter billId was null or undefined when calling canReprocessBill.');
10600
+ }
10601
+ // to determine the Accept header
10602
+ let produces = [
10603
+ 'application/json'
10604
+ ];
10605
+ if (this.configuration.apiKeys["Authorization"]) {
10606
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
10607
+ }
10608
+ if (this.configuration.apiKeys["ECI-PUBLIC-DASHBOARD-KEY"]) {
10609
+ headers = headers.set('ECI-PUBLIC-DASHBOARD-KEY', this.configuration.apiKeys["ECI-PUBLIC-DASHBOARD-KEY"]);
10610
+ }
10611
+ const consumes = [];
10612
+ let requestOptions = {
10613
+ headers: headers,
10614
+ params: queryParameters,
10615
+ withCredentials: this.configuration.withCredentials,
10616
+ observe: 'response'
10617
+ };
10618
+ return this.http.request(RequestMethod$2V.Get, path, requestOptions);
10619
+ }
10536
10620
  /**
10537
10621
  * Creates a new bill import rule with optional vendor or account scope
10538
10622
  * Use this endpoint to create a new import rule. Scope is determined by the optional vendorId or accountId in the request body. At most one scope entity can be provided. If none are provided, the rule is global (customer-level).
@@ -10908,6 +10992,58 @@ class BillImportRuleService {
10908
10992
  };
10909
10993
  return this.http.request(RequestMethod$2V.Get, path, requestOptions);
10910
10994
  }
10995
+ /**
10996
+ * Reprocesses a bill. This will rerun all appliciable rules against a bill. The bill is re-imported, any edits will be lost. Requires both BillProcessingRules:Manage and BillsAndBatches:Edit permission
10997
+ *
10998
+ * @param billId The bill to reprocess
10999
+ */
11000
+ reprocessBillWithHttpInfo(billId, extraHttpRequestParams, extraHttpRequestHeaders) {
11001
+ const path = this.basePath + '/api/v202604/billImportRule/reprocess/bill/${billId}'
11002
+ .replace('${' + 'billId' + '}', String(billId));
11003
+ let queryParameters;
11004
+ if (extraHttpRequestParams) {
11005
+ if (typeof extraHttpRequestParams.search === 'string') {
11006
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
11007
+ }
11008
+ else {
11009
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
11010
+ }
11011
+ }
11012
+ else {
11013
+ queryParameters = new HttpParams();
11014
+ }
11015
+ let headers = new HttpHeaders();
11016
+ this.defaultHeaders.keys().forEach(key => {
11017
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
11018
+ });
11019
+ if (extraHttpRequestHeaders) {
11020
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
11021
+ headers = headers.set(key, value);
11022
+ });
11023
+ }
11024
+ // verify required parameter 'billId' is not null or undefined
11025
+ if (billId === null || billId === undefined) {
11026
+ throw new Error('Required parameter billId was null or undefined when calling reprocessBill.');
11027
+ }
11028
+ // to determine the Accept header
11029
+ let produces = [
11030
+ 'application/json'
11031
+ ];
11032
+ if (this.configuration.apiKeys["Authorization"]) {
11033
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
11034
+ }
11035
+ if (this.configuration.apiKeys["ECI-PUBLIC-DASHBOARD-KEY"]) {
11036
+ headers = headers.set('ECI-PUBLIC-DASHBOARD-KEY', this.configuration.apiKeys["ECI-PUBLIC-DASHBOARD-KEY"]);
11037
+ }
11038
+ const consumes = [];
11039
+ let requestOptions = {
11040
+ headers: headers,
11041
+ params: queryParameters,
11042
+ withCredentials: this.configuration.withCredentials,
11043
+ observe: 'response'
11044
+ };
11045
+ return this.http.request(RequestMethod$2V.Put, path, requestOptions);
11046
+ }
10911
11047
  /**
10912
11048
  * Tests an existing import rule against an existing bill in the system
10913
11049
  * Use this endpoint to preview how a saved rule would transform an existing bill. Does not modify the bill — the test is read-only.
@@ -84799,6 +84935,22 @@ class SpanClasspropertyinfoPermissionPermissionsBillProcessingRulesManagespanSer
84799
84935
  }
84800
84936
  return false;
84801
84937
  }
84938
+ /**
84939
+ * Check whether or not a bill can be reprocessed via the rules engine
84940
+ *
84941
+ * @param billId The bill to check the reprocess-ability of
84942
+ */
84943
+ canReprocessBill(billId, extraHttpRequestParams, extraHttpRequestHeaders) {
84944
+ return this.canReprocessBillWithHttpInfo(billId, extraHttpRequestParams, extraHttpRequestHeaders)
84945
+ .pipe(map((response) => {
84946
+ if (response.status === 204) {
84947
+ return undefined;
84948
+ }
84949
+ else {
84950
+ return response.body;
84951
+ }
84952
+ }));
84953
+ }
84802
84954
  /**
84803
84955
  * Creates a new bill import rule with optional vendor or account scope
84804
84956
  * Use this endpoint to create a new import rule. Scope is determined by the optional vendorId or accountId in the request body. At most one scope entity can be provided. If none are provided, the rule is global (customer-level).
@@ -84864,6 +85016,22 @@ class SpanClasspropertyinfoPermissionPermissionsBillProcessingRulesManagespanSer
84864
85016
  }
84865
85017
  }));
84866
85018
  }
85019
+ /**
85020
+ * Reprocesses a bill. This will rerun all appliciable rules against a bill. The bill is re-imported, any edits will be lost. Requires both BillProcessingRules:Manage and BillsAndBatches:Edit permission
85021
+ *
85022
+ * @param billId The bill to reprocess
85023
+ */
85024
+ reprocessBill(billId, extraHttpRequestParams, extraHttpRequestHeaders) {
85025
+ return this.reprocessBillWithHttpInfo(billId, extraHttpRequestParams, extraHttpRequestHeaders)
85026
+ .pipe(map((response) => {
85027
+ if (response.status === 204) {
85028
+ return undefined;
85029
+ }
85030
+ else {
85031
+ return response.body;
85032
+ }
85033
+ }));
85034
+ }
84867
85035
  /**
84868
85036
  * Tests an existing import rule against an existing bill in the system
84869
85037
  * Use this endpoint to preview how a saved rule would transform an existing bill. Does not modify the bill — the test is read-only.
@@ -84931,6 +85099,58 @@ class SpanClasspropertyinfoPermissionPermissionsBillProcessingRulesManagespanSer
84931
85099
  }
84932
85100
  }));
84933
85101
  }
85102
+ /**
85103
+ * Check whether or not a bill can be reprocessed via the rules engine
85104
+ *
85105
+ * @param billId The bill to check the reprocess-ability of
85106
+ */
85107
+ canReprocessBillWithHttpInfo(billId, extraHttpRequestParams, extraHttpRequestHeaders) {
85108
+ const path = this.basePath + '/api/v202604/billImportRule/reprocess/bill/${billId}/canReprocess'
85109
+ .replace('${' + 'billId' + '}', String(billId));
85110
+ let queryParameters;
85111
+ if (extraHttpRequestParams) {
85112
+ if (typeof extraHttpRequestParams.search === 'string') {
85113
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
85114
+ }
85115
+ else {
85116
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
85117
+ }
85118
+ }
85119
+ else {
85120
+ queryParameters = new HttpParams();
85121
+ }
85122
+ let headers = new HttpHeaders();
85123
+ this.defaultHeaders.keys().forEach(key => {
85124
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
85125
+ });
85126
+ if (extraHttpRequestHeaders) {
85127
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
85128
+ headers = headers.set(key, value);
85129
+ });
85130
+ }
85131
+ // verify required parameter 'billId' is not null or undefined
85132
+ if (billId === null || billId === undefined) {
85133
+ throw new Error('Required parameter billId was null or undefined when calling canReprocessBill.');
85134
+ }
85135
+ // to determine the Accept header
85136
+ let produces = [
85137
+ 'application/json'
85138
+ ];
85139
+ if (this.configuration.apiKeys["Authorization"]) {
85140
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
85141
+ }
85142
+ if (this.configuration.apiKeys["ECI-PUBLIC-DASHBOARD-KEY"]) {
85143
+ headers = headers.set('ECI-PUBLIC-DASHBOARD-KEY', this.configuration.apiKeys["ECI-PUBLIC-DASHBOARD-KEY"]);
85144
+ }
85145
+ const consumes = [];
85146
+ let requestOptions = {
85147
+ headers: headers,
85148
+ params: queryParameters,
85149
+ withCredentials: this.configuration.withCredentials,
85150
+ observe: 'response'
85151
+ };
85152
+ return this.http.request(RequestMethod$1l.Get, path, requestOptions);
85153
+ }
84934
85154
  /**
84935
85155
  * Creates a new bill import rule with optional vendor or account scope
84936
85156
  * Use this endpoint to create a new import rule. Scope is determined by the optional vendorId or accountId in the request body. At most one scope entity can be provided. If none are provided, the rule is global (customer-level).
@@ -85140,6 +85360,58 @@ class SpanClasspropertyinfoPermissionPermissionsBillProcessingRulesManagespanSer
85140
85360
  };
85141
85361
  return this.http.request(RequestMethod$1l.Post, path, requestOptions);
85142
85362
  }
85363
+ /**
85364
+ * Reprocesses a bill. This will rerun all appliciable rules against a bill. The bill is re-imported, any edits will be lost. Requires both BillProcessingRules:Manage and BillsAndBatches:Edit permission
85365
+ *
85366
+ * @param billId The bill to reprocess
85367
+ */
85368
+ reprocessBillWithHttpInfo(billId, extraHttpRequestParams, extraHttpRequestHeaders) {
85369
+ const path = this.basePath + '/api/v202604/billImportRule/reprocess/bill/${billId}'
85370
+ .replace('${' + 'billId' + '}', String(billId));
85371
+ let queryParameters;
85372
+ if (extraHttpRequestParams) {
85373
+ if (typeof extraHttpRequestParams.search === 'string') {
85374
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
85375
+ }
85376
+ else {
85377
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
85378
+ }
85379
+ }
85380
+ else {
85381
+ queryParameters = new HttpParams();
85382
+ }
85383
+ let headers = new HttpHeaders();
85384
+ this.defaultHeaders.keys().forEach(key => {
85385
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
85386
+ });
85387
+ if (extraHttpRequestHeaders) {
85388
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
85389
+ headers = headers.set(key, value);
85390
+ });
85391
+ }
85392
+ // verify required parameter 'billId' is not null or undefined
85393
+ if (billId === null || billId === undefined) {
85394
+ throw new Error('Required parameter billId was null or undefined when calling reprocessBill.');
85395
+ }
85396
+ // to determine the Accept header
85397
+ let produces = [
85398
+ 'application/json'
85399
+ ];
85400
+ if (this.configuration.apiKeys["Authorization"]) {
85401
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
85402
+ }
85403
+ if (this.configuration.apiKeys["ECI-PUBLIC-DASHBOARD-KEY"]) {
85404
+ headers = headers.set('ECI-PUBLIC-DASHBOARD-KEY', this.configuration.apiKeys["ECI-PUBLIC-DASHBOARD-KEY"]);
85405
+ }
85406
+ const consumes = [];
85407
+ let requestOptions = {
85408
+ headers: headers,
85409
+ params: queryParameters,
85410
+ withCredentials: this.configuration.withCredentials,
85411
+ observe: 'response'
85412
+ };
85413
+ return this.http.request(RequestMethod$1l.Put, path, requestOptions);
85414
+ }
85143
85415
  /**
85144
85416
  * Tests an existing import rule against an existing bill in the system
85145
85417
  * Use this endpoint to preview how a saved rule would transform an existing bill. Does not modify the bill — the test is read-only.
@@ -88343,6 +88615,22 @@ class SpanClasspropertyinfoPermissionPermissionsBillsAndBatchesEditspanService {
88343
88615
  }
88344
88616
  }));
88345
88617
  }
88618
+ /**
88619
+ * Reprocesses a bill. This will rerun all appliciable rules against a bill. The bill is re-imported, any edits will be lost. Requires both BillProcessingRules:Manage and BillsAndBatches:Edit permission
88620
+ *
88621
+ * @param billId The bill to reprocess
88622
+ */
88623
+ reprocessBill(billId, extraHttpRequestParams, extraHttpRequestHeaders) {
88624
+ return this.reprocessBillWithHttpInfo(billId, extraHttpRequestParams, extraHttpRequestHeaders)
88625
+ .pipe(map((response) => {
88626
+ if (response.status === 204) {
88627
+ return undefined;
88628
+ }
88629
+ else {
88630
+ return response.body;
88631
+ }
88632
+ }));
88633
+ }
88346
88634
  /**
88347
88635
  * Reverses all bills on an account bill list
88348
88636
  *
@@ -89442,6 +89730,58 @@ class SpanClasspropertyinfoPermissionPermissionsBillsAndBatchesEditspanService {
89442
89730
  };
89443
89731
  return this.http.request(RequestMethod$1f.Put, path, requestOptions);
89444
89732
  }
89733
+ /**
89734
+ * Reprocesses a bill. This will rerun all appliciable rules against a bill. The bill is re-imported, any edits will be lost. Requires both BillProcessingRules:Manage and BillsAndBatches:Edit permission
89735
+ *
89736
+ * @param billId The bill to reprocess
89737
+ */
89738
+ reprocessBillWithHttpInfo(billId, extraHttpRequestParams, extraHttpRequestHeaders) {
89739
+ const path = this.basePath + '/api/v202604/billImportRule/reprocess/bill/${billId}'
89740
+ .replace('${' + 'billId' + '}', String(billId));
89741
+ let queryParameters;
89742
+ if (extraHttpRequestParams) {
89743
+ if (typeof extraHttpRequestParams.search === 'string') {
89744
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
89745
+ }
89746
+ else {
89747
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
89748
+ }
89749
+ }
89750
+ else {
89751
+ queryParameters = new HttpParams();
89752
+ }
89753
+ let headers = new HttpHeaders();
89754
+ this.defaultHeaders.keys().forEach(key => {
89755
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
89756
+ });
89757
+ if (extraHttpRequestHeaders) {
89758
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
89759
+ headers = headers.set(key, value);
89760
+ });
89761
+ }
89762
+ // verify required parameter 'billId' is not null or undefined
89763
+ if (billId === null || billId === undefined) {
89764
+ throw new Error('Required parameter billId was null or undefined when calling reprocessBill.');
89765
+ }
89766
+ // to determine the Accept header
89767
+ let produces = [
89768
+ 'application/json'
89769
+ ];
89770
+ if (this.configuration.apiKeys["Authorization"]) {
89771
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
89772
+ }
89773
+ if (this.configuration.apiKeys["ECI-PUBLIC-DASHBOARD-KEY"]) {
89774
+ headers = headers.set('ECI-PUBLIC-DASHBOARD-KEY', this.configuration.apiKeys["ECI-PUBLIC-DASHBOARD-KEY"]);
89775
+ }
89776
+ const consumes = [];
89777
+ let requestOptions = {
89778
+ headers: headers,
89779
+ params: queryParameters,
89780
+ withCredentials: this.configuration.withCredentials,
89781
+ observe: 'response'
89782
+ };
89783
+ return this.http.request(RequestMethod$1f.Put, path, requestOptions);
89784
+ }
89445
89785
  /**
89446
89786
  * Reverses all bills on an account bill list
89447
89787
  *
@@ -145015,11 +145355,11 @@ class BillImportRuleLogExecutionData {
145015
145355
  */
145016
145356
  class BillImportRuleLogResponse {
145017
145357
  /**
145018
- * A unique value used to identify a set of rules being executed for a bill
145358
+ * A unique value used to identify a set of rules being executed for a bill <span class='property-internal'>Required (defined)</span>
145019
145359
  */
145020
145360
  billProcessingHash;
145021
145361
  /**
145022
- * The set of rules executed for a bill
145362
+ * The set of rules executed for a bill <span class='property-internal'>Required (defined)</span>
145023
145363
  */
145024
145364
  executedRules;
145025
145365
  }