iptdevs-design-system 3.2.143 → 3.2.149

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.
@@ -1552,7 +1552,7 @@ class ParameterService extends IPTGeneralService {
1552
1552
  return this.http.get(serviceUrl);
1553
1553
  }
1554
1554
  getAllCampus() {
1555
- let serviceUrl = this.SERVICE_URL + 'get/banks/all';
1555
+ let serviceUrl = this.SERVICE_URL + 'get/campus/all';
1556
1556
  return this.http.get(serviceUrl);
1557
1557
  }
1558
1558
  getCampusByCode(codeCampu) {
@@ -4319,7 +4319,23 @@ class CommercialService extends IPTGeneralService {
4319
4319
  payCommissions(params) {
4320
4320
  const serviceUrl = this.SERVICE_URL + 'commissions/pay/cods';
4321
4321
  this.generateRequestParams(params);
4322
- return this.http.post(serviceUrl, params, this.httpOptions);
4322
+ //return this.http.post(serviceUrl, params, this.httpOptions);
4323
+ return this.http.post(serviceUrl, this.httpOptions);
4324
+ }
4325
+ rejectTransactionByCode(params) {
4326
+ const serviceUrl = this.SERVICE_URL + 'commissions/reject/transaction';
4327
+ this.generateRequestParams(params);
4328
+ return this.http.post(serviceUrl, this.httpOptions);
4329
+ }
4330
+ approveTransactionByCode(params) {
4331
+ const serviceUrl = this.SERVICE_URL + 'commissions/approve/transaction';
4332
+ this.generateRequestParams(params);
4333
+ return this.http.post(serviceUrl, this.httpOptions);
4334
+ }
4335
+ getTransactionCommissionsByCode(request) {
4336
+ const serviceUrl = this.SERVICE_URL + `get/commissions/by/transaction/code`;
4337
+ this.generateRequestParams(request);
4338
+ return this.http.get(serviceUrl, this.httpOptions);
4323
4339
  }
4324
4340
  payAdvisorBonuses(params) {
4325
4341
  const serviceUrl = this.SERVICE_URL + 'commissions/pay/bonuses';
@@ -4327,7 +4343,7 @@ class CommercialService extends IPTGeneralService {
4327
4343
  return this.http.post(serviceUrl, params, this.httpOptions);
4328
4344
  }
4329
4345
  updatePaymentAreaCommission(request, ruleCode) {
4330
- const serviceUrl = this.SERVICE_URL + `put/payment-area-commission/${ruleCode}`;
4346
+ const serviceUrl = this.SERVICE_URL + `put/update/payment-area-commission/${ruleCode}`;
4331
4347
  return this.http.put(serviceUrl, request, this.httpOptions);
4332
4348
  }
4333
4349
  getAllAreasWithCommissionRules(request) {
@@ -4350,6 +4366,11 @@ class CommercialService extends IPTGeneralService {
4350
4366
  this.generateRequestParams(request);
4351
4367
  return this.http.post(serviceUrl, this.httpOptions);
4352
4368
  }
4369
+ editConditionToRule(request) {
4370
+ const serviceUrl = this.SERVICE_URL + `put/edit/condition/rule`;
4371
+ this.generateRequestParams(request);
4372
+ return this.http.put(serviceUrl, this.httpOptions);
4373
+ }
4353
4374
  deleteConditionFromRule(request, conditionId) {
4354
4375
  const serviceUrl = this.SERVICE_URL + `delete/rule-condition/${conditionId}`;
4355
4376
  this.generateRequestParams(request);
@@ -8122,6 +8143,16 @@ class BudgetService extends IPTGeneralService {
8122
8143
  const serviceUrl = this.SERVICE_URL + 'validate/coupon/by/reference/' + reference;
8123
8144
  return this.http.get(serviceUrl);
8124
8145
  }
8146
+ getAllDiscountWithModalityBySegment(param) {
8147
+ let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all/with/modality/segment';
8148
+ this.generateRequestParams(param);
8149
+ return this.http.post(serviceUrl, this.httpOptions);
8150
+ }
8151
+ createDiscountWithSegment(param) {
8152
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create/with/segment';
8153
+ this.generateRequestParams(param);
8154
+ return this.http.post(serviceUrl, this.httpOptions);
8155
+ }
8125
8156
  }
8126
8157
  BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: BudgetService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
8127
8158
  BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: BudgetService, providedIn: 'root' });