iptdevs-design-system 3.2.142 → 3.2.148

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.
@@ -4261,6 +4261,11 @@ class CommercialService extends IPTGeneralService {
4261
4261
  const options = { ...this.httpOptions, params: request };
4262
4262
  return this.http.get(serviceUrl, options);
4263
4263
  }
4264
+ getTransactionCommissionsByCode(request) {
4265
+ const serviceUrl = this.SERVICE_URL + `get/commissions/by/transaction/code/`;
4266
+ this.generateRequestParams(request);
4267
+ return this.http.get(serviceUrl, this.httpOptions);
4268
+ }
4264
4269
  createTypePayment(params) {
4265
4270
  const serviceUrl = this.SERVICE_URL + 'post/create/type/payment/commissions';
4266
4271
  this.generateRequestParams(params);
@@ -4321,13 +4326,23 @@ class CommercialService extends IPTGeneralService {
4321
4326
  this.generateRequestParams(params);
4322
4327
  return this.http.post(serviceUrl, params, this.httpOptions);
4323
4328
  }
4329
+ rejectTransactionByCode(params) {
4330
+ const serviceUrl = this.SERVICE_URL + 'commissions/pay/cods';
4331
+ this.generateRequestParams(params);
4332
+ return this.http.post(serviceUrl, params, this.httpOptions);
4333
+ }
4334
+ approveTransactionByCode(params) {
4335
+ const serviceUrl = this.SERVICE_URL + 'commissions/approve/transaction';
4336
+ this.generateRequestParams(params);
4337
+ return this.http.post(serviceUrl, params, this.httpOptions);
4338
+ }
4324
4339
  payAdvisorBonuses(params) {
4325
4340
  const serviceUrl = this.SERVICE_URL + 'commissions/pay/bonuses';
4326
4341
  this.generateRequestParams(params);
4327
4342
  return this.http.post(serviceUrl, params, this.httpOptions);
4328
4343
  }
4329
4344
  updatePaymentAreaCommission(request, ruleCode) {
4330
- const serviceUrl = this.SERVICE_URL + `put/payment-area-commission/${ruleCode}`;
4345
+ const serviceUrl = this.SERVICE_URL + `put/update/payment-area-commission/${ruleCode}`;
4331
4346
  return this.http.put(serviceUrl, request, this.httpOptions);
4332
4347
  }
4333
4348
  getAllAreasWithCommissionRules(request) {
@@ -4350,6 +4365,11 @@ class CommercialService extends IPTGeneralService {
4350
4365
  this.generateRequestParams(request);
4351
4366
  return this.http.post(serviceUrl, this.httpOptions);
4352
4367
  }
4368
+ editConditionToRule(request) {
4369
+ const serviceUrl = this.SERVICE_URL + `put/edit/condition/rule`;
4370
+ this.generateRequestParams(request);
4371
+ return this.http.put(serviceUrl, this.httpOptions);
4372
+ }
4353
4373
  deleteConditionFromRule(request, conditionId) {
4354
4374
  const serviceUrl = this.SERVICE_URL + `delete/rule-condition/${conditionId}`;
4355
4375
  this.generateRequestParams(request);
@@ -8118,6 +8138,20 @@ class BudgetService extends IPTGeneralService {
8118
8138
  this.generateRequestParams(param);
8119
8139
  return this.http.post(serviceUrl, this.httpOptions);
8120
8140
  }
8141
+ validateCouponByReference(reference) {
8142
+ const serviceUrl = this.SERVICE_URL + 'validate/coupon/by/reference/' + reference;
8143
+ return this.http.get(serviceUrl);
8144
+ }
8145
+ getAllDiscountWithModalityBySegment(param) {
8146
+ let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all/with/modality/segment';
8147
+ this.generateRequestParams(param);
8148
+ return this.http.post(serviceUrl, this.httpOptions);
8149
+ }
8150
+ createDiscountWithSegment(param) {
8151
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create/with/segment';
8152
+ this.generateRequestParams(param);
8153
+ return this.http.post(serviceUrl, this.httpOptions);
8154
+ }
8121
8155
  }
8122
8156
  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 });
8123
8157
  BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: BudgetService, providedIn: 'root' });