iptdevs-design-system 3.2.148 → 3.2.150
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.
- package/esm2020/lib/core/models/commercial/commercial.model.mjs +1 -1
- package/esm2020/lib/core/services/commercial-service/comercial.service.mjs +21 -10
- package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +2 -2
- package/fesm2015/iptdevs-design-system.mjs +21 -10
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +21 -10
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/core/models/commercial/commercial.model.d.ts +67 -5
- package/lib/core/services/commercial-service/comercial.service.d.ts +6 -4
- package/package.json +1 -1
|
@@ -493,7 +493,6 @@ export interface IPaySelectedCommissionsRq {
|
|
|
493
493
|
user_code: number;
|
|
494
494
|
commissions_to_pay: ICommissionsToPayRq[];
|
|
495
495
|
observation: string;
|
|
496
|
-
wallet: number;
|
|
497
496
|
}
|
|
498
497
|
export interface ICommissionsToPayRq {
|
|
499
498
|
cod_code: number;
|
|
@@ -529,6 +528,8 @@ export interface ICommissionListRs {
|
|
|
529
528
|
cod_status_name: string;
|
|
530
529
|
cod_date: Date;
|
|
531
530
|
course_type_name: string;
|
|
531
|
+
course_type_label: string;
|
|
532
|
+
course_code: number | null;
|
|
532
533
|
agreement_code: number;
|
|
533
534
|
agreement_name: string | null;
|
|
534
535
|
commission_area_name: string | null;
|
|
@@ -543,7 +544,7 @@ export interface ICommissionListRs {
|
|
|
543
544
|
cod_price: number;
|
|
544
545
|
payments_ok: boolean;
|
|
545
546
|
existing_commission: boolean;
|
|
546
|
-
student_id_card
|
|
547
|
+
student_id_card?: string | null;
|
|
547
548
|
payment_validation: PaymentValidation;
|
|
548
549
|
validation: Validation[];
|
|
549
550
|
}
|
|
@@ -612,8 +613,8 @@ export interface ITransactionRs {
|
|
|
612
613
|
deleted_at: Date | null;
|
|
613
614
|
updated_at: Date;
|
|
614
615
|
created_at: Date;
|
|
615
|
-
managed_commissions
|
|
616
|
-
payment_bill
|
|
616
|
+
managed_commissions?: IExistingCommissionDataRs[];
|
|
617
|
+
payment_bill?: number | null;
|
|
617
618
|
}
|
|
618
619
|
export interface IUserTransactionRs {
|
|
619
620
|
code: number;
|
|
@@ -624,7 +625,15 @@ export interface IGetCommissionsByTransactionCodeRq {
|
|
|
624
625
|
transaction_code: number;
|
|
625
626
|
end_date?: string;
|
|
626
627
|
}
|
|
627
|
-
export interface
|
|
628
|
+
export interface IApproveTransactionCommissionRq {
|
|
629
|
+
token: string;
|
|
630
|
+
transaction_code: number;
|
|
631
|
+
observation: string;
|
|
632
|
+
wallet: number;
|
|
633
|
+
bank: number;
|
|
634
|
+
payment_reference: number;
|
|
635
|
+
}
|
|
636
|
+
export interface IrejectTransactionCommissionRq {
|
|
628
637
|
token: string;
|
|
629
638
|
transaction_code: number;
|
|
630
639
|
observation: string;
|
|
@@ -637,3 +646,56 @@ export interface IEditConditionRuleRq {
|
|
|
637
646
|
operator: string;
|
|
638
647
|
value: string;
|
|
639
648
|
}
|
|
649
|
+
export interface IApproveTransactionRs {
|
|
650
|
+
transaction: ITransactionRs;
|
|
651
|
+
bill: IBillCreatedRs;
|
|
652
|
+
bill_observation?: IBillObservationListRs;
|
|
653
|
+
commissions: ICommissionListRs[];
|
|
654
|
+
}
|
|
655
|
+
export interface IBillCreatedRs {
|
|
656
|
+
payment_method: number;
|
|
657
|
+
payment_services: number;
|
|
658
|
+
payment_wallet: number;
|
|
659
|
+
bank: string;
|
|
660
|
+
payment_reference: string;
|
|
661
|
+
generated_for: number;
|
|
662
|
+
generated_by: number;
|
|
663
|
+
type_movements: number;
|
|
664
|
+
common_expenses: number;
|
|
665
|
+
total_amount: number;
|
|
666
|
+
payment_amount: number;
|
|
667
|
+
outstanding_amount: number;
|
|
668
|
+
positive_amount: number;
|
|
669
|
+
discount: number;
|
|
670
|
+
payer_name: null;
|
|
671
|
+
payer_document: null;
|
|
672
|
+
payment_date: Date;
|
|
673
|
+
observation: string;
|
|
674
|
+
transfer_code: null;
|
|
675
|
+
code: number;
|
|
676
|
+
}
|
|
677
|
+
export interface IBillObservationListRs {
|
|
678
|
+
details: IDetailBillRs[];
|
|
679
|
+
total_commissions: number;
|
|
680
|
+
total_amount: number;
|
|
681
|
+
period: IPeriodBillRs;
|
|
682
|
+
}
|
|
683
|
+
export interface IDetailBillRs {
|
|
684
|
+
area: string;
|
|
685
|
+
quantity: number;
|
|
686
|
+
amount: number;
|
|
687
|
+
statuses: any;
|
|
688
|
+
}
|
|
689
|
+
export interface IPeriodBillRs {
|
|
690
|
+
from: string;
|
|
691
|
+
to: string;
|
|
692
|
+
}
|
|
693
|
+
export interface IShowTransactionBillRq {
|
|
694
|
+
token: string;
|
|
695
|
+
code: number;
|
|
696
|
+
}
|
|
697
|
+
export interface ICancellTransactionBillRq {
|
|
698
|
+
token: string;
|
|
699
|
+
code: number;
|
|
700
|
+
observation: string;
|
|
701
|
+
}
|
|
@@ -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, IEditConditionRuleRq, IUpdateTypePaymentRq, IAssignSubordinateRq, IRemoveSubordinateRq, IUpdateTypeUserCommissionRq, IPayAdvisorBonusesRq, IPaySelectedCommissionsRq, IAssignSubordinatesMassiveRq, IDeleteTypeUserCommissionRq, IGetCommissionsByTransactionCodeRq,
|
|
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, IrejectTransactionCommissionRq, IApproveTransactionCommissionRq, IShowTransactionBillRq, ICancellTransactionBillRq } 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,7 +72,6 @@ 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>;
|
|
76
75
|
createTypePayment(params: ICreateTypePaymentRq): Observable<any>;
|
|
77
76
|
getAllTypePayments(request: ITokenRq): Observable<any>;
|
|
78
77
|
createCommissionArea(params: ICreateCommissionAreaRq): Observable<any>;
|
|
@@ -85,8 +84,11 @@ export declare class CommercialService extends IPTGeneralService {
|
|
|
85
84
|
assignCommissionModelToUser(params: IAssignCommissionModelToUserRq): Observable<any>;
|
|
86
85
|
getActiveCommissionModelForUser(request: ITokenRq, userCode: number): Observable<any>;
|
|
87
86
|
payCommissions(params: IPaySelectedCommissionsRq): Observable<any>;
|
|
88
|
-
rejectTransactionByCode(params:
|
|
89
|
-
approveTransactionByCode(params:
|
|
87
|
+
rejectTransactionByCode(params: IrejectTransactionCommissionRq): Observable<any>;
|
|
88
|
+
approveTransactionByCode(params: IApproveTransactionCommissionRq): Observable<any>;
|
|
89
|
+
getTransactionCommissionsByCode(request: IGetCommissionsByTransactionCodeRq): Observable<any>;
|
|
90
|
+
seeTransactionBill(request: IShowTransactionBillRq): Observable<any>;
|
|
91
|
+
cancellTransactionBill(params: ICancellTransactionBillRq): Observable<any>;
|
|
90
92
|
payAdvisorBonuses(params: IPayAdvisorBonusesRq): Observable<any>;
|
|
91
93
|
updatePaymentAreaCommission(request: IUpdatePaymentAreaCommissionRq, ruleCode: number): Observable<any>;
|
|
92
94
|
getAllAreasWithCommissionRules(request: ITokenRq): Observable<any>;
|