iptdevs-design-system 3.2.143 → 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.
@@ -1211,6 +1211,7 @@ export interface IGetAllDiscountWithModalityRs {
1211
1211
  min_installments?: number | null;
1212
1212
  max_installments?: number | null;
1213
1213
  state?: number;
1214
+ coupon_segment?: number;
1214
1215
  description?: string;
1215
1216
  discount_type_code: number;
1216
1217
  discount_academic_plan?: IDiscountAcademicPlanRs[];
@@ -1233,4 +1234,26 @@ export interface IDiscountCourseModalityRs {
1233
1234
  code_discount?: number;
1234
1235
  status?: number;
1235
1236
  }
1237
+ export interface IGetAllDiscountWithModalityBySegmentRq {
1238
+ token: string;
1239
+ coupon_segment: number;
1240
+ }
1241
+ export interface ICreateDiscountWithSegmentRq {
1242
+ allow_partial_payment: number;
1243
+ course_modality: number[];
1244
+ description: string;
1245
+ discount_ref: string;
1246
+ discount_type: number;
1247
+ end_date: string;
1248
+ max_installments: number;
1249
+ min_installments: number;
1250
+ name: string;
1251
+ percentage: number;
1252
+ plan: number[];
1253
+ start_date: string;
1254
+ state: number;
1255
+ token: string;
1256
+ type: number;
1257
+ coupon_segment: number;
1258
+ }
1236
1259
  export {};
@@ -491,12 +491,15 @@ export interface IUpdateTypeUserCommissionRq {
491
491
  export interface IPaySelectedCommissionsRq {
492
492
  token: string;
493
493
  user_code: number;
494
- commissions_to_pay: {
495
- cod_code: number;
496
- commission_amount: number;
497
- motivo_detalle: string;
498
- rule_code_applied: number | null;
499
- }[];
494
+ commissions_to_pay: ICommissionsToPayRq[];
495
+ observation: string;
496
+ wallet: number;
497
+ }
498
+ export interface ICommissionsToPayRq {
499
+ cod_code: number;
500
+ commission_amount: number;
501
+ motivo_detalle: string;
502
+ rule_code_applied: number | null;
500
503
  }
501
504
  export interface IPayAdvisorBonusesRq {
502
505
  token: string;
@@ -514,3 +517,123 @@ export interface IManageSubordinateRq extends ITokenRq {
514
517
  export interface IDeleteTypeUserCommissionRq {
515
518
  token: string;
516
519
  }
520
+ export interface IConsultCommissionsByAdviserRs {
521
+ cods: ICommissionListRs[];
522
+ transactions: ITransactionRs[];
523
+ }
524
+ export interface ICommissionListRs {
525
+ adviser_code: number;
526
+ cod_code: number;
527
+ student_name: string;
528
+ cod_status_code: number;
529
+ cod_status_name: string;
530
+ cod_date: Date;
531
+ course_type_name: string;
532
+ agreement_code: number;
533
+ agreement_name: string | null;
534
+ commission_area_name: string | null;
535
+ plan_de_pago: string;
536
+ payment_type_name: string;
537
+ rule_code_applied: number | null;
538
+ rule_base_amount: number | string | null;
539
+ rule_conditions: null | string;
540
+ commission_status: number;
541
+ motivo_detalle: string;
542
+ commission_amount: number | string;
543
+ cod_price: number;
544
+ payments_ok: boolean;
545
+ existing_commission: boolean;
546
+ student_id_card: string | null;
547
+ payment_validation: PaymentValidation;
548
+ validation: Validation[];
549
+ }
550
+ export interface IExistingCommissionDataRs {
551
+ code: number;
552
+ transaction_code: number;
553
+ user_commission: number;
554
+ transaction_status: number;
555
+ amount: number;
556
+ cod_code: number;
557
+ payment_commissions: number;
558
+ created_at: Date;
559
+ updated_at: Date;
560
+ payment_area_commission?: PaymentAreaCommission;
561
+ }
562
+ export interface PaymentAreaCommission {
563
+ code: number;
564
+ type_payment: TypePayment;
565
+ area_course: number;
566
+ amount: string;
567
+ status: number;
568
+ created_at: Date;
569
+ updated_at: Date;
570
+ deleted_at: Date | null;
571
+ }
572
+ export interface TypePayment {
573
+ code: number;
574
+ name: string;
575
+ description: null;
576
+ type: string;
577
+ created_at: Date;
578
+ updated_at: Date;
579
+ deleted_at: Date | null;
580
+ }
581
+ export interface PaymentValidation {
582
+ enrollment_ok: boolean;
583
+ fee1_ok: boolean;
584
+ installments_paid: number;
585
+ payments_ok: boolean;
586
+ enrollment_paid: number;
587
+ enrollment_pending: number;
588
+ fee1_paid: number;
589
+ fee1_pending: number;
590
+ total_paid: number;
591
+ total_pending: number;
592
+ number_paid: number;
593
+ number_pending: number;
594
+ }
595
+ export interface Validation {
596
+ key: string;
597
+ operator: string;
598
+ value: string;
599
+ cod_value: number | string;
600
+ check: boolean;
601
+ message: string;
602
+ }
603
+ export interface ITransactionRs {
604
+ code: number;
605
+ payment_bill_code: number | null;
606
+ generated_by: IUserTransactionRs | null;
607
+ approved_by: IUserTransactionRs | null;
608
+ transaction_status: number;
609
+ observation: string;
610
+ start_transaction: Date;
611
+ end_transaction: Date | null;
612
+ deleted_at: Date | null;
613
+ updated_at: Date;
614
+ created_at: Date;
615
+ managed_commissions: IExistingCommissionDataRs[];
616
+ payment_bill: number | null;
617
+ }
618
+ export interface IUserTransactionRs {
619
+ code: number;
620
+ name: string;
621
+ }
622
+ export interface IGetCommissionsByTransactionCodeRq {
623
+ token: string;
624
+ transaction_code: number;
625
+ end_date?: string;
626
+ }
627
+ export interface ISelectTransactionCommissionRq {
628
+ token: string;
629
+ transaction_code: number;
630
+ observation: string;
631
+ }
632
+ export interface IEditConditionRuleRq {
633
+ token: string;
634
+ code: number;
635
+ rule_code: number;
636
+ condition_id: number;
637
+ operator: string;
638
+ value: string;
639
+ }
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, HttpResponse } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { getdiscountAllRq, DiscountRq, DiscountUpdateRq, IObtainAllCoursewallet, IAssignRequestRq, IObtainAvailableCourseRs, IGetCodByPaymentPlanRq, IUpdateAmountCodPaymentsRq, IParamsUpdateDateCodPaymentsRq, ICancelStudentReceiptRq, ICancelledReceiptByDateRq, IPaymentsReceivedByUserRq, IObtainCourseByCoodDiffParamRq, NameCommonExpenses, IObtainPaymentTranHistoryRq, IObtainStudentPaymentByDiffParamRq, InfoCashClosingRq, IcashClosingDateRq, IcashClosingRq, IpaymentBillEgressRq, IncomesAndEgressRq, IObatinDetailedIncomeByUserAndDateRq, SendEmailPayment, SendEmailPaymentCancellationRS, IPaymentCorrelativeRq, IObtainGatewayPaymentRecordRq, IUpdateEpaycoPaymentRq, IElectronicInvoiceRS, IAccountsBalanceRq, IGetFullPaymentInformationRq, IGetFullPaymentInformationRs, ISearchPaymentBillRq, ISearchPaymentBillRs, IGetSummaryByCoordinatorRq, IAddNewQuotaWithCommentsRq, IDeleteQuotaRecordWithCommentsRq, IModifyQuotaDataWithCommentsRq, IEditInstallmentAmounWithCommentsRq, ICoursePaymentRangeReportRq, ICoursePaymentRangeReportRs, IPreviewModifyPaymentPlanRq, ISaveModifiedPaymentPlanRq, IStudentsWithOverdueFeesByCoordinatorRq } from '../../models/budget/budget.model';
3
+ import { getdiscountAllRq, DiscountRq, DiscountUpdateRq, IObtainAllCoursewallet, IAssignRequestRq, IObtainAvailableCourseRs, IGetCodByPaymentPlanRq, IUpdateAmountCodPaymentsRq, IParamsUpdateDateCodPaymentsRq, ICancelStudentReceiptRq, ICancelledReceiptByDateRq, IPaymentsReceivedByUserRq, IObtainCourseByCoodDiffParamRq, NameCommonExpenses, IObtainPaymentTranHistoryRq, IObtainStudentPaymentByDiffParamRq, InfoCashClosingRq, IcashClosingDateRq, IcashClosingRq, IpaymentBillEgressRq, IncomesAndEgressRq, IObatinDetailedIncomeByUserAndDateRq, SendEmailPayment, SendEmailPaymentCancellationRS, IPaymentCorrelativeRq, IObtainGatewayPaymentRecordRq, IUpdateEpaycoPaymentRq, IElectronicInvoiceRS, IAccountsBalanceRq, IGetFullPaymentInformationRq, IGetFullPaymentInformationRs, ISearchPaymentBillRq, ISearchPaymentBillRs, IGetSummaryByCoordinatorRq, IAddNewQuotaWithCommentsRq, IDeleteQuotaRecordWithCommentsRq, IModifyQuotaDataWithCommentsRq, IEditInstallmentAmounWithCommentsRq, ICoursePaymentRangeReportRq, ICoursePaymentRangeReportRs, IPreviewModifyPaymentPlanRq, ISaveModifiedPaymentPlanRq, IStudentsWithOverdueFeesByCoordinatorRq, IGetAllDiscountWithModalityBySegmentRq, ICreateDiscountWithSegmentRq } from '../../models/budget/budget.model';
4
4
  import { IFullCodStudentOverdueByCoordinatorRq, IPaymentOverdueByCoordinatorCourseRq, IPaymentOverdueByCoordinatorRq, IPaymentReferenceRq, ITransferAssignImage, ITransferCreateRq, ITransferDeleteRq, ITransferGetAllRq, ITransferGetRq, ITransferSearchRq, ITransferShowImageRq, ITransferStatusUpdateRq, ITransferUpdateRq, PaymentBillRq2, PriceByTypeServiceRq, IDeleteCodPaymentsRq, ICreateCodPaymentsRq, ITransferStatusUpdateRequestRq, IUpdateElectronicInvoiceRq, IValidationOfTransfersByNumberRq, IGetDiscountCouponInformationRq } from '../../models/payment/payment-rq.model';
5
5
  import { IgetCoursesFinishAndunassignedRq } from '../../models/reports/reports.model';
6
6
  import { IPTGeneralService } from '../service-enviroments';
@@ -137,6 +137,8 @@ export declare class BudgetService extends IPTGeneralService {
137
137
  exportStudentsWithOverdueFeesByCoordinatorPdf(param: IStudentsWithOverdueFeesByCoordinatorRq): Observable<any>;
138
138
  getAllDiscountWithModality(param: getdiscountAllRq): Observable<any>;
139
139
  validateCouponByReference(reference: string): Observable<any>;
140
+ getAllDiscountWithModalityBySegment(param: IGetAllDiscountWithModalityBySegmentRq): Observable<any>;
141
+ createDiscountWithSegment(param: ICreateDiscountWithSegmentRq): Observable<any>;
140
142
  static ɵfac: i0.ɵɵFactoryDeclaration<BudgetService, never>;
141
143
  static ɵprov: i0.ɵɵInjectableDeclaration<BudgetService>;
142
144
  }
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
4
4
  import { GetDiscountCouponsRq } from '../../models/payment/payment-rq.model';
5
5
  import { CreateCODRq, FullDataCODRq, GetCodByCourseRq, IUpdateCODRq, IobtaincodCurrrentAndLevelFullDataRenovationsRq, ICodPaymentRq } from '../../models/cod/cod-rq.model';
6
6
  import { IPTGeneralService } from '../service-enviroments';
7
- import { AdicInfoByCodeRq, CodPricesRq, IGoalInterfaceRq, ParentByCodeRq, IObtainRefersByUserRq, IAssignPosibleStudentForValueRq, IGetContactsadviserRq, IObtainCodPricesRq, IAssigningAdvisorGoalsRq, IReportCodForAdviserRq, ICreateTicketReferralRq, IGetPosibleStudentByDateRq, IGetUserAdviserCommercialByTypeAssingContactsRq, AssingCustomersByTypeAssingContactForAdviserRq, ICreateTypePaymentRq, ICreateCommissionAreaRq, IAssignCourseTypesToAreaRq, ICreatePaymentAreaCommissionRq, ICreateTypeUserCommissionRq, IAssignCommissionModelToUserRq, ITokenRq, IGetSummaryByCommercialAdvisorRq, IGetCodStudentDetailsByAdviserRq, IUpdatePaymentAreaCommissionRq, IAddConditionToRuleRq, IUpdateTypePaymentRq, IAssignSubordinateRq, IRemoveSubordinateRq, IUpdateTypeUserCommissionRq, IPayAdvisorBonusesRq, IPaySelectedCommissionsRq, IAssignSubordinatesMassiveRq, IDeleteTypeUserCommissionRq } from '../../models/commercial/commercial.model';
7
+ import { AdicInfoByCodeRq, CodPricesRq, IGoalInterfaceRq, ParentByCodeRq, IObtainRefersByUserRq, IAssignPosibleStudentForValueRq, IGetContactsadviserRq, IObtainCodPricesRq, IAssigningAdvisorGoalsRq, IReportCodForAdviserRq, ICreateTicketReferralRq, IGetPosibleStudentByDateRq, IGetUserAdviserCommercialByTypeAssingContactsRq, AssingCustomersByTypeAssingContactForAdviserRq, ICreateTypePaymentRq, ICreateCommissionAreaRq, IAssignCourseTypesToAreaRq, ICreatePaymentAreaCommissionRq, ICreateTypeUserCommissionRq, IAssignCommissionModelToUserRq, ITokenRq, IGetSummaryByCommercialAdvisorRq, IGetCodStudentDetailsByAdviserRq, IUpdatePaymentAreaCommissionRq, IAddConditionToRuleRq, IEditConditionRuleRq, IUpdateTypePaymentRq, IAssignSubordinateRq, IRemoveSubordinateRq, IUpdateTypeUserCommissionRq, IPayAdvisorBonusesRq, IPaySelectedCommissionsRq, IAssignSubordinatesMassiveRq, IDeleteTypeUserCommissionRq, IGetCommissionsByTransactionCodeRq, ISelectTransactionCommissionRq } from '../../models/commercial/commercial.model';
8
8
  import { UserTokenRq } from '../../models/user/user-rq.model';
9
9
  import { ISocialNetworksRq } from '../../models/marketing/marketing.model';
10
10
  import { IObtainAllCoursewallet } from '../../models/budget/budget.model';
@@ -72,6 +72,7 @@ export declare class CommercialService extends IPTGeneralService {
72
72
  obtainAllInformationCodByCode(code: number): Observable<any>;
73
73
  getSummaryByCommercialAdvisor(params: IGetSummaryByCommercialAdvisorRq): Observable<any>;
74
74
  getCodStudentDetailsByAdviser(request: IGetCodStudentDetailsByAdviserRq, adviserCode: number): Observable<any>;
75
+ getTransactionCommissionsByCode(request: IGetCommissionsByTransactionCodeRq): Observable<any>;
75
76
  createTypePayment(params: ICreateTypePaymentRq): Observable<any>;
76
77
  getAllTypePayments(request: ITokenRq): Observable<any>;
77
78
  createCommissionArea(params: ICreateCommissionAreaRq): Observable<any>;
@@ -84,12 +85,15 @@ export declare class CommercialService extends IPTGeneralService {
84
85
  assignCommissionModelToUser(params: IAssignCommissionModelToUserRq): Observable<any>;
85
86
  getActiveCommissionModelForUser(request: ITokenRq, userCode: number): Observable<any>;
86
87
  payCommissions(params: IPaySelectedCommissionsRq): Observable<any>;
88
+ rejectTransactionByCode(params: ISelectTransactionCommissionRq): Observable<any>;
89
+ approveTransactionByCode(params: ISelectTransactionCommissionRq): Observable<any>;
87
90
  payAdvisorBonuses(params: IPayAdvisorBonusesRq): Observable<any>;
88
91
  updatePaymentAreaCommission(request: IUpdatePaymentAreaCommissionRq, ruleCode: number): Observable<any>;
89
92
  getAllAreasWithCommissionRules(request: ITokenRq): Observable<any>;
90
93
  getAllConditions(request: ITokenRq): Observable<any>;
91
94
  getAllAgreements(request: ITokenRq): Observable<any>;
92
95
  addConditionToRule(request: IAddConditionToRuleRq, ruleCode: number): Observable<any>;
96
+ editConditionToRule(request: IEditConditionRuleRq): Observable<any>;
93
97
  deleteConditionFromRule(request: ITokenRq, conditionId: number): Observable<any>;
94
98
  updateTypePayment(request: IUpdateTypePaymentRq, code: number): Observable<any>;
95
99
  deleteTypePayment(request: ITokenRq, code: number): Observable<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iptdevs-design-system",
3
- "version": "3.2.143",
3
+ "version": "3.2.148",
4
4
  "description": "Library common elements into IPT Plattform.",
5
5
  "keywords": [
6
6
  "IPT",