@volo/abp.ng.payment 5.0.0-beta.2 → 5.0.0
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/admin/components/products/products.component.d.ts +22 -0
- package/admin/components/products/products.module.d.ts +13 -0
- package/admin/components/requests/requests-search-form/requests-search-form.component.d.ts +14 -0
- package/admin/components/requests/requests.component.d.ts +17 -0
- package/admin/components/requests/requests.module.d.ts +17 -0
- package/admin/components/subscription-tooltip/subscription-tooltip.component.d.ts +9 -0
- package/admin/components/subscription-tooltip/subscription-tooltip.module.d.ts +10 -0
- package/admin/config/enums/policy-names.d.ts +2 -1
- package/admin/config/enums/route-names.d.ts +2 -1
- package/admin/defaults/{default-gateway-plans-entity-actions.d.ts → gateway-plans/default-gateway-plans-entity-actions.d.ts} +0 -0
- package/admin/defaults/{default-gateway-plans-entity-props.d.ts → gateway-plans/default-gateway-plans-entity-props.d.ts} +0 -0
- package/admin/defaults/{default-gateway-plans-form-props.d.ts → gateway-plans/default-gateway-plans-form-props.d.ts} +0 -0
- package/admin/defaults/{default-gateway-plans-toolbar-actions.d.ts → gateway-plans/default-gateway-plans-toolbar-actions.d.ts} +0 -0
- package/admin/defaults/gateway-plans/index.d.ts +2 -0
- package/admin/defaults/index.d.ts +2 -6
- package/admin/defaults/{default-plans-entity-actions.d.ts → plans/default-plans-entity-actions.d.ts} +0 -0
- package/admin/defaults/{default-plans-entity-props.d.ts → plans/default-plans-entity-props.d.ts} +0 -0
- package/admin/defaults/{default-plans-form-props.d.ts → plans/default-plans-form-props.d.ts} +0 -0
- package/admin/defaults/{default-plans-toolbar-actions.d.ts → plans/default-plans-toolbar-actions.d.ts} +0 -0
- package/admin/defaults/plans/index.d.ts +4 -0
- package/admin/defaults/products/default-products-entity-props.d.ts +2 -0
- package/admin/defaults/products/index.d.ts +1 -0
- package/admin/defaults/requests/default-requests-entity-actions.d.ts +3 -0
- package/admin/defaults/requests/default-requests-entity-props.d.ts +3 -0
- package/admin/enums/components.d.ts +3 -1
- package/admin/models/config-options.d.ts +4 -4
- package/admin/models/subscription-tooltip-data.d.ts +4 -0
- package/admin/payment-admin.module.d.ts +3 -1
- package/admin/tokens/extensions.token.d.ts +13 -7
- package/admin/utils/get-subscription-status.d.ts +4 -0
- package/bundles/volo-abp.ng.payment-admin-config.umd.js +1 -1
- package/bundles/volo-abp.ng.payment-admin.umd.js +1 -1
- package/bundles/volo-abp.ng.payment-proxy.umd.js +1 -1
- package/esm2015/admin/components/gateway-plans/gateway-plans.component.js +1 -1
- package/esm2015/admin/components/gateway-plans/gateway-plans.module.js +1 -1
- package/esm2015/admin/components/plans/plans.component.js +1 -1
- package/esm2015/admin/components/plans/plans.module.js +1 -1
- package/esm2015/admin/components/products/products.component.js +1 -0
- package/esm2015/admin/components/products/products.module.js +1 -0
- package/esm2015/admin/components/requests/requests-search-form/requests-search-form.component.js +1 -0
- package/esm2015/admin/components/requests/requests.component.js +1 -0
- package/esm2015/admin/components/requests/requests.module.js +1 -0
- package/esm2015/admin/components/subscription-tooltip/subscription-tooltip.component.js +1 -0
- package/esm2015/admin/components/subscription-tooltip/subscription-tooltip.module.js +1 -0
- package/esm2015/admin/config/payment-admin-config.module.js +1 -1
- package/esm2015/admin/config/providers/route.provider.js +1 -1
- package/esm2015/admin/defaults/gateway-plans/default-gateway-plans-entity-actions.js +1 -0
- package/esm2015/admin/defaults/{default-gateway-plans-entity-props.js → gateway-plans/default-gateway-plans-entity-props.js} +0 -0
- package/esm2015/admin/defaults/{default-gateway-plans-form-props.js → gateway-plans/default-gateway-plans-form-props.js} +0 -0
- package/esm2015/admin/defaults/gateway-plans/default-gateway-plans-toolbar-actions.js +1 -0
- package/esm2015/admin/defaults/gateway-plans/index.js +1 -0
- package/esm2015/admin/defaults/index.js +1 -1
- package/esm2015/admin/defaults/plans/default-plans-entity-actions.js +1 -0
- package/esm2015/admin/defaults/{default-plans-entity-props.js → plans/default-plans-entity-props.js} +0 -0
- package/esm2015/admin/defaults/{default-plans-form-props.js → plans/default-plans-form-props.js} +0 -0
- package/esm2015/admin/defaults/plans/default-plans-toolbar-actions.js +1 -0
- package/esm2015/admin/defaults/plans/index.js +1 -0
- package/esm2015/admin/defaults/products/default-products-entity-props.js +1 -0
- package/esm2015/admin/defaults/products/index.js +1 -0
- package/esm2015/admin/defaults/requests/default-requests-entity-actions.js +1 -0
- package/esm2015/admin/defaults/requests/default-requests-entity-props.js +1 -0
- package/esm2015/admin/models/subscription-tooltip-data.js +1 -0
- package/esm2015/admin/payment-admin-routing.module.js +1 -1
- package/esm2015/admin/payment-admin.module.js +1 -1
- package/esm2015/admin/payment.initializer.js +1 -1
- package/esm2015/admin/tokens/extensions.token.js +1 -1
- package/esm2015/admin/utils/get-subscription-status.js +1 -0
- package/esm2015/proxy/lib/index.js +1 -1
- package/esm2015/proxy/lib/proxy/admin/plans/plan-admin.service.js +1 -1
- package/esm2015/proxy/lib/proxy/admin/requests/index.js +1 -0
- package/esm2015/proxy/lib/proxy/admin/requests/models.js +1 -0
- package/esm2015/proxy/lib/proxy/admin/requests/payment-request-admin.service.js +1 -0
- package/esm2015/proxy/lib/proxy/gateways/gateway.service.js +1 -1
- package/esm2015/proxy/lib/proxy/plans/plan.service.js +1 -1
- package/esm2015/proxy/lib/proxy/requests/index.js +1 -0
- package/esm2015/proxy/lib/proxy/requests/models.js +1 -0
- package/esm2015/proxy/lib/proxy/requests/payment-request-state.enum.js +1 -0
- package/esm2015/proxy/lib/proxy/requests/payment-type.enum.js +1 -0
- package/fesm2015/volo-abp.ng.payment-admin-config.js +11 -4
- package/fesm2015/volo-abp.ng.payment-admin.js +482 -124
- package/fesm2015/volo-abp.ng.payment-proxy.js +51 -10
- package/package.json +4 -4
- package/proxy/lib/index.d.ts +2 -0
- package/proxy/lib/proxy/admin/requests/index.d.ts +2 -0
- package/proxy/lib/proxy/admin/requests/models.d.ts +10 -0
- package/proxy/lib/proxy/admin/requests/payment-request-admin.service.d.ts +14 -0
- package/proxy/lib/proxy/requests/index.d.ts +3 -0
- package/proxy/lib/proxy/requests/models.d.ts +25 -0
- package/proxy/lib/proxy/requests/payment-request-state.enum.d.ts +7 -0
- package/proxy/lib/proxy/requests/payment-type.enum.d.ts +5 -0
- package/esm2015/admin/defaults/default-gateway-plans-entity-actions.js +0 -1
- package/esm2015/admin/defaults/default-gateway-plans-toolbar-actions.js +0 -1
- package/esm2015/admin/defaults/default-plans-entity-actions.js +0 -1
- package/esm2015/admin/defaults/default-plans-toolbar-actions.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ListService}from"@abp/ng.core";import{Confirmation,ConfirmationService}from"@abp/ng.theme.shared";import{EXTENSIONS_IDENTIFIER,FormPropData,generateFormFromProps}from"@abp/ng.theme.shared/extensions";import{Component,Injector,ViewEncapsulation}from"@angular/core";import{ActivatedRoute,Router}from"@angular/router";import{PlanAdminService}from"@volo/abp.ng.payment/proxy";import{finalize,take}from"rxjs/operators";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";import*as i2 from"@abp/ng.theme.shared";import*as i3 from"@angular/router";import*as i4 from"@abp/ng.components/page";import*as i5 from"@volo/abp.commercial.ng.ui";import*as i6 from"@abp/ng.theme.shared/extensions";import*as i7 from"@angular/common";import*as i8 from"@angular/forms";import*as i9 from"@ngx-validate/core";export class PaymentPlansComponent{constructor(e,t,o,i,a){this.list=e,this.injector=t,this.confirmationService=o,this.router=i,this.activatedRoute=a,this.isModalVisible=!1,this.modalBusy=!1,this.service=t.get(PlanAdminService),this.data$=this.list.hookToQuery(this.service.getList)}onEdit(e){this.service.get(e).pipe(take(1)).subscribe(e=>{this.selected=e,this.openModal()})}goToGatewayPlans(e){this.router.navigate(["./",e],{relativeTo:this.activatedRoute})}onDelete(e,t){this.confirmationService.warn("Payment::PlanDeletionConfirmationMessage","AbpUi::AreYouSure",{messageLocalizationParams:[t]}).subscribe(t=>{t===Confirmation.Status.confirm&&this.service.delete(e).subscribe(()=>this.list.get())})}onAdd(){this.selected={},this.openModal()}openModal(){this.createForm(),this.isModalVisible=!0}save(){if(!this.form.valid)return;let e;this.modalBusy=!0,e=this.selected.id?this.service.update(this.selected.id,this.form.value):this.service.create(this.form.value),e.pipe(finalize(()=>this.modalBusy=!1)).subscribe(()=>{this.list.get(),this.isModalVisible=!1})}createForm(){const e=new FormPropData(this.injector,this.selected);this.form=generateFormFromProps(e)}}PaymentPlansComponent.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.
|
|
1
|
+
import{ListService}from"@abp/ng.core";import{Confirmation,ConfirmationService}from"@abp/ng.theme.shared";import{EXTENSIONS_IDENTIFIER,FormPropData,generateFormFromProps}from"@abp/ng.theme.shared/extensions";import{Component,Injector,ViewEncapsulation}from"@angular/core";import{ActivatedRoute,Router}from"@angular/router";import{PlanAdminService}from"@volo/abp.ng.payment/proxy";import{finalize,take}from"rxjs/operators";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";import*as i2 from"@abp/ng.theme.shared";import*as i3 from"@angular/router";import*as i4 from"@abp/ng.components/page";import*as i5 from"@volo/abp.commercial.ng.ui";import*as i6 from"@abp/ng.theme.shared/extensions";import*as i7 from"@angular/common";import*as i8 from"@angular/forms";import*as i9 from"@ngx-validate/core";export class PaymentPlansComponent{constructor(e,t,o,i,a){this.list=e,this.injector=t,this.confirmationService=o,this.router=i,this.activatedRoute=a,this.isModalVisible=!1,this.modalBusy=!1,this.service=t.get(PlanAdminService),this.data$=this.list.hookToQuery(this.service.getList)}onEdit(e){this.service.get(e).pipe(take(1)).subscribe(e=>{this.selected=e,this.openModal()})}goToGatewayPlans(e){this.router.navigate(["./",e],{relativeTo:this.activatedRoute})}onDelete(e,t){this.confirmationService.warn("Payment::PlanDeletionConfirmationMessage","AbpUi::AreYouSure",{messageLocalizationParams:[t]}).subscribe(t=>{t===Confirmation.Status.confirm&&this.service.delete(e).subscribe(()=>this.list.get())})}onAdd(){this.selected={},this.openModal()}openModal(){this.createForm(),this.isModalVisible=!0}save(){if(!this.form.valid)return;let e;this.modalBusy=!0,e=this.selected.id?this.service.update(this.selected.id,this.form.value):this.service.create(this.form.value),e.pipe(finalize(()=>this.modalBusy=!1)).subscribe(()=>{this.list.get(),this.isModalVisible=!1})}createForm(){const e=new FormPropData(this.injector,this.selected);this.form=generateFormFromProps(e)}}PaymentPlansComponent.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentPlansComponent,deps:[{token:i1.ListService},{token:i0.Injector},{token:i2.ConfirmationService},{token:i3.Router},{token:i3.ActivatedRoute}],target:i0.ɵɵFactoryTarget.Component}),PaymentPlansComponent.ɵcmp=i0.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.0",type:PaymentPlansComponent,selector:"abp-payment-plans",providers:[ListService,{provide:EXTENSIONS_IDENTIFIER,useValue:"Payment.Plans"}],ngImport:i0,template:'<ng-container *ngIf="data$ | async; let data">\r\n <abp-page [title]="\'Payment::Plans\' | abpLocalization" [toolbar]="data.items">\r\n <abp-advanced-entity-filters\r\n localizationSourceName="Payment"\r\n [list]="list"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class="card">\r\n <div class="card-body">\r\n <abp-extensible-table [list]="list" [data]="data.items" [recordsTotal]="data.totalCount">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]="isModalVisible" [busy]="modalBusy">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? \'Payment::Edit\' : \'Payment::NewPlan\') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]="form" (ngSubmit)="save()" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]="selected"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type="button" class="btn btn-secondary" abpClose>\r\n {{ \'AbpUi::Cancel\' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass="fa fa-check" [disabled]="form?.invalid" (click)="save()">{{\r\n \'AbpUi::Save\' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n',components:[{type:i4.PageComponent,selector:"abp-page",inputs:["title","toolbar","breadcrumb"]},{type:i5.AdvancedEntityFiltersComponent,selector:"abp-advanced-entity-filters",inputs:["list","localizationSourceName","entityFilterPlaceholder"]},{type:i6.ExtensibleTableComponent,selector:"abp-extensible-table",inputs:["actionsText","data","list","recordsTotal","actionsColumnWidth","actionsTemplate"],exportAs:["abpExtensibleTable"]},{type:i2.ModalComponent,selector:"abp-modal",inputs:["visible","busy","options","suppressUnsavedChangesWarning"],outputs:["visibleChange","init","appear","disappear"]},{type:i6.ExtensibleFormComponent,selector:"abp-extensible-form",inputs:["selectedRecord"],exportAs:["abpExtensibleForm"]},{type:i2.ButtonComponent,selector:"abp-button",inputs:["buttonId","buttonClass","buttonType","iconClass","loading","disabled","attributes"],outputs:["click","focus","blur","abpClick","abpFocus","abpBlur"]}],directives:[{type:i7.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:i8.ɵNgNoValidate,selector:"form:not([ngNoForm]):not([ngNativeValidate])"},{type:i8.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:i1.FormSubmitDirective,selector:"form[ngSubmit][formGroup]",inputs:["debounce","notValidateOnSubmit"],outputs:["ngSubmit"]},{type:i8.FormGroupDirective,selector:"[formGroup]",inputs:["formGroup"],outputs:["ngSubmit"],exportAs:["ngForm"]},{type:i9.ValidationGroupDirective,selector:"[formGroup],[formGroupName]",exportAs:["validationGroup"]},{type:i2.ModalCloseDirective,selector:"[abpClose]"}],pipes:{async:i7.AsyncPipe,abpLocalization:i1.LocalizationPipe},encapsulation:i0.ViewEncapsulation.None}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentPlansComponent,decorators:[{type:Component,args:[{selector:"abp-payment-plans",templateUrl:"./plans.component.html",encapsulation:ViewEncapsulation.None,providers:[ListService,{provide:EXTENSIONS_IDENTIFIER,useValue:"Payment.Plans"}]}]}],ctorParameters:function(){return[{type:i1.ListService},{type:i0.Injector},{type:i2.ConfirmationService},{type:i3.Router},{type:i3.ActivatedRoute}]}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PageModule}from"@abp/ng.components/page";import{CoreModule}from"@abp/ng.core";import{ThemeSharedModule}from"@abp/ng.theme.shared";import{UiExtensionsModule}from"@abp/ng.theme.shared/extensions";import{CommonModule}from"@angular/common";import{NgModule}from"@angular/core";import{ReactiveFormsModule}from"@angular/forms";import{NgxValidateCoreModule}from"@ngx-validate/core";import{AdvancedEntityFiltersModule}from"@volo/abp.commercial.ng.ui";import{PaymentPlansComponent}from"./plans.component";import*as i0 from"@angular/core";export class PaymentPlansModule{}PaymentPlansModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.
|
|
1
|
+
import{PageModule}from"@abp/ng.components/page";import{CoreModule}from"@abp/ng.core";import{ThemeSharedModule}from"@abp/ng.theme.shared";import{UiExtensionsModule}from"@abp/ng.theme.shared/extensions";import{CommonModule}from"@angular/common";import{NgModule}from"@angular/core";import{ReactiveFormsModule}from"@angular/forms";import{NgxValidateCoreModule}from"@ngx-validate/core";import{AdvancedEntityFiltersModule}from"@volo/abp.commercial.ng.ui";import{PaymentPlansComponent}from"./plans.component";import*as i0 from"@angular/core";export class PaymentPlansModule{}PaymentPlansModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentPlansModule,deps:[],target:i0.ɵɵFactoryTarget.NgModule}),PaymentPlansModule.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentPlansModule,declarations:[PaymentPlansComponent],imports:[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,NgxValidateCoreModule,AdvancedEntityFiltersModule]}),PaymentPlansModule.ɵinj=i0.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentPlansModule,providers:[],imports:[[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,NgxValidateCoreModule,AdvancedEntityFiltersModule]]}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentPlansModule,decorators:[{type:NgModule,args:[{imports:[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,NgxValidateCoreModule,AdvancedEntityFiltersModule],exports:[],declarations:[PaymentPlansComponent],providers:[]}]}]});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ListService}from"@abp/ng.core";import{EXTENSIONS_IDENTIFIER}from"@abp/ng.theme.shared/extensions";import{Component}from"@angular/core";import{ActivatedRoute}from"@angular/router";import{PaymentRequestAdminService}from"@volo/abp.ng.payment/proxy";import{map}from"rxjs/operators";import*as i0 from"@angular/core";import*as i1 from"@angular/router";import*as i2 from"@volo/abp.ng.payment/proxy";import*as i3 from"@abp/ng.core";import*as i4 from"@abp/ng.components/page";import*as i5 from"@abp/ng.theme.shared";import*as i6 from"@abp/ng.theme.shared/extensions";export class ProductsComponent{constructor(e,t,r){this.route=e,this.service=t,this.list=r,this.data=[],this.breadCrumbItems=[{name:"Payment::Menu:PaymentManagement"},{name:"Payment::Menu:PaymentRequests",path:"/payment/requests"},{name:this.requestId},{name:"Payment::Products"}],r.hookToQuery(()=>this.service.get(this.requestId).pipe(map(e=>e.products))).subscribe(e=>this.data=e)}get requestId(){return this.route.snapshot.params.requestId}}ProductsComponent.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:ProductsComponent,deps:[{token:i1.ActivatedRoute},{token:i2.PaymentRequestAdminService},{token:i3.ListService}],target:i0.ɵɵFactoryTarget.Component}),ProductsComponent.ɵcmp=i0.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.0",type:ProductsComponent,selector:"abp-products",providers:[ListService,{provide:EXTENSIONS_IDENTIFIER,useValue:"Payment.Products"}],ngImport:i0,template:'<ng-container>\r\n <abp-page [title]="\'Payment::Products\' | abpLocalization" [toolbar]="data">\r\n <abp-page-breadcrumb-container>\r\n <abp-breadcrumb-items [items]="breadCrumbItems"></abp-breadcrumb-items>\r\n </abp-page-breadcrumb-container>\r\n <div class="card">\r\n <div class="card-body">\r\n <abp-extensible-table [list]="list" [data]="data" [recordsTotal]="data.length">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</ng-container>\r\n',components:[{type:i4.PageComponent,selector:"abp-page",inputs:["title","toolbar","breadcrumb"]},{type:i4.PageBreadcrumbContainerComponent,selector:"abp-page-breadcrumb-container"},{type:i5.BreadcrumbItemsComponent,selector:"abp-breadcrumb-items",inputs:["items"]},{type:i6.ExtensibleTableComponent,selector:"abp-extensible-table",inputs:["actionsText","data","list","recordsTotal","actionsColumnWidth","actionsTemplate"],exportAs:["abpExtensibleTable"]}],pipes:{abpLocalization:i3.LocalizationPipe}}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:ProductsComponent,decorators:[{type:Component,args:[{selector:"abp-products",templateUrl:"./products.component.html",providers:[ListService,{provide:EXTENSIONS_IDENTIFIER,useValue:"Payment.Products"}]}]}],ctorParameters:function(){return[{type:i1.ActivatedRoute},{type:i2.PaymentRequestAdminService},{type:i3.ListService}]}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{NgModule}from"@angular/core";import{CommonModule}from"@angular/common";import{ProductsComponent}from"./products.component";import{SubscriptionTooltipModule}from"../subscription-tooltip/subscription-tooltip.module";import{PageModule}from"@abp/ng.components/page";import{CoreModule}from"@abp/ng.core";import{UiExtensionsModule}from"@abp/ng.theme.shared/extensions";import{ThemeSharedModule}from"@abp/ng.theme.shared";import*as i0 from"@angular/core";export class ProductsModule{}ProductsModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:ProductsModule,deps:[],target:i0.ɵɵFactoryTarget.NgModule}),ProductsModule.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:ProductsModule,declarations:[ProductsComponent],imports:[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,SubscriptionTooltipModule]}),ProductsModule.ɵinj=i0.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:ProductsModule,imports:[[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,SubscriptionTooltipModule]]}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:ProductsModule,decorators:[{type:NgModule,args:[{declarations:[ProductsComponent],imports:[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,SubscriptionTooltipModule]}]}]});
|
package/esm2015/admin/components/requests/requests-search-form/requests-search-form.component.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Component,Input,Output,EventEmitter}from"@angular/core";import{ListService}from"@abp/ng.core";import{paymentRequestStateOptions,paymentTypeOptions}from"@volo/abp.ng.payment/proxy";import{NgbDateAdapter}from"@ng-bootstrap/ng-bootstrap";import{DateAdapter}from"@abp/ng.theme.shared/extensions";import*as i0 from"@angular/core";import*as i1 from"@angular/forms";import*as i2 from"@ng-bootstrap/ng-bootstrap";import*as i3 from"@angular/common";import*as i4 from"@abp/ng.core";export class RequestsSearchFormComponent{constructor(){this.pageQueryChange=new EventEmitter,this.paymentTypes=paymentTypeOptions,this.states=paymentRequestStateOptions}emit(){this.pageQueryChange.emit(this.pageQuery)}}RequestsSearchFormComponent.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:RequestsSearchFormComponent,deps:[],target:i0.ɵɵFactoryTarget.Component}),RequestsSearchFormComponent.ɵcmp=i0.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.0",type:RequestsSearchFormComponent,selector:"abp-payment-requests-search-form",inputs:{list:"list",pageQuery:"pageQuery"},outputs:{pageQueryChange:"pageQueryChange"},providers:[{provide:NgbDateAdapter,useClass:DateAdapter}],ngImport:i0,template:'<form id="FilterFormId" (keyup.enter)="list.get()">\r\n <div class="row">\r\n <div class="col-12 col-md-3">\r\n <div class="form-group">\r\n <label for="CreationDateMin">{{\r\n \'Payment::PaymentRequests:CreationDateMin\' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMin="ngbDatepicker"\r\n class="form-control"\r\n id="CreationDateMin"\r\n name="CreationDateMin"\r\n readonly\r\n [(ngModel)]="pageQuery.creationDateMin"\r\n ngbDatepicker\r\n (click)="dateMin.toggle()"\r\n (ngModelChange)="emit()"\r\n />\r\n </div>\r\n </div>\r\n <div class="col-12 col-md-3">\r\n <div class="form-group">\r\n <label for="CreationDateMax">{{\r\n \'Payment::PaymentRequests:CreationDateMax\' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMax="ngbDatepicker"\r\n class="form-control"\r\n id="CreationDateMax"\r\n name="CreationDateMax"\r\n readonly\r\n [(ngModel)]="pageQuery.creationDateMax"\r\n ngbDatepicker\r\n (click)="dateMax.toggle()"\r\n (ngModelChange)="emit()"\r\n />\r\n </div>\r\n </div>\r\n <div class="col-12 col-md-3">\r\n <div class="form-group">\r\n <label for="PaymentType">{{\r\n \'Payment::PaymentRequests:PaymentType\' | abpLocalization\r\n }}</label>\r\n \x3c!-- TODO: BS5 custom select class replace --\x3e\r\n <select\r\n class="custom-select form-control"\r\n id="PaymentType"\r\n name="PaymentType"\r\n [(ngModel)]="pageQuery.paymentType"\r\n (change)="list.get()"\r\n (ngModelChange)="emit()"\r\n >\r\n <option [ngValue]="undefined"></option>\r\n <option *ngFor="let paymentType of paymentTypes" [ngValue]="paymentType.value">\r\n {{ paymentType.key }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class="col-12 col-md-3">\r\n <div class="form-group">\r\n <label for="PaymentType">{{ \'Payment::PaymentRequests:Status\' | abpLocalization }}</label>\r\n \x3c!-- TODO: BS5 custom select class replace --\x3e\r\n <select\r\n class="custom-select form-control"\r\n id="Status"\r\n name="Status"\r\n [(ngModel)]="pageQuery.status"\r\n (change)="list.get()"\r\n (ngModelChange)="emit()"\r\n >\r\n <option [ngValue]="undefined"></option>\r\n <option *ngFor="let state of states" [ngValue]="state.value">\r\n {{ state.key }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n',directives:[{type:i1.ɵNgNoValidate,selector:"form:not([ngNoForm]):not([ngNativeValidate])"},{type:i1.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:i1.NgForm,selector:"form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]",inputs:["ngFormOptions"],outputs:["ngSubmit"],exportAs:["ngForm"]},{type:i2.NgbInputDatepicker,selector:"input[ngbDatepicker]",inputs:["disabled","autoClose","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","placement","restoreFocus","showWeekdays","showWeekNumbers","startDate","container","positionTarget"],outputs:["dateSelect","navigate","closed"],exportAs:["ngbDatepicker"]},{type:i1.DefaultValueAccessor,selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]"},{type:i1.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:i1.NgModel,selector:"[ngModel]:not([formControlName]):not([formControl])",inputs:["name","disabled","ngModel","ngModelOptions"],outputs:["ngModelChange"],exportAs:["ngModel"]},{type:i1.SelectControlValueAccessor,selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",inputs:["compareWith"]},{type:i1.NgSelectOption,selector:"option",inputs:["ngValue","value"]},{type:i1.ɵNgSelectMultipleOption,selector:"option",inputs:["ngValue","value"]},{type:i3.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}],pipes:{abpLocalization:i4.LocalizationPipe}}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:RequestsSearchFormComponent,decorators:[{type:Component,args:[{selector:"abp-payment-requests-search-form",templateUrl:"./requests-search-form.component.html",providers:[{provide:NgbDateAdapter,useClass:DateAdapter}]}]}],propDecorators:{list:[{type:Input}],pageQuery:[{type:Input}],pageQueryChange:[{type:Output}]}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ListService}from"@abp/ng.core";import{EXTENSIONS_IDENTIFIER}from"@abp/ng.theme.shared/extensions";import{Component}from"@angular/core";import{ActivatedRoute,Router}from"@angular/router";import{PaymentRequestAdminService}from"@volo/abp.ng.payment/proxy";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";import*as i2 from"@volo/abp.ng.payment/proxy";import*as i3 from"@angular/router";import*as i4 from"@abp/ng.components/page";import*as i5 from"@volo/abp.commercial.ng.ui";import*as i6 from"./requests-search-form/requests-search-form.component";import*as i7 from"@abp/ng.theme.shared/extensions";import*as i8 from"@angular/common";export class RequestsComponent{constructor(e,t,a,r){this.list=e,this.paymentRequestAdminService=t,this.router=a,this.route=r,this.pageQuery={},this.data$=this.list.hookToQuery(e=>this.paymentRequestAdminService.getList(Object.assign(Object.assign({},e),this.pageQuery)))}goToProducts(e){this.router.navigate([e,"products"],{relativeTo:this.route})}}RequestsComponent.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:RequestsComponent,deps:[{token:i1.ListService},{token:i2.PaymentRequestAdminService},{token:i3.Router},{token:i3.ActivatedRoute}],target:i0.ɵɵFactoryTarget.Component}),RequestsComponent.ɵcmp=i0.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.0",type:RequestsComponent,selector:"abp-payment-requests",providers:[ListService,{provide:EXTENSIONS_IDENTIFIER,useValue:"Payment.Requests"}],ngImport:i0,template:'<ng-container *ngIf="data$ | async; let data">\r\n <abp-page [title]="\'Payment::Plans\' | abpLocalization" [toolbar]="data.items">\r\n <abp-advanced-entity-filters\r\n localizationSourceName="Payment"\r\n [list]="list"\r\n >\r\n <abp-advanced-entity-filters-above-search>\r\n <abp-payment-requests-search-form [(pageQuery)]="pageQuery"></abp-payment-requests-search-form>\r\n </abp-advanced-entity-filters-above-search>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class="card">\r\n <div class="card-body">\r\n <abp-extensible-table [list]="list" [data]="data.items" [recordsTotal]="data.totalCount">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n</ng-container>\r\n',components:[{type:i4.PageComponent,selector:"abp-page",inputs:["title","toolbar","breadcrumb"]},{type:i5.AdvancedEntityFiltersComponent,selector:"abp-advanced-entity-filters",inputs:["list","localizationSourceName","entityFilterPlaceholder"]},{type:i5.AdvancedEntityFiltersAboveSearchComponent,selector:"abp-advanced-entity-filters-above-search"},{type:i6.RequestsSearchFormComponent,selector:"abp-payment-requests-search-form",inputs:["list","pageQuery"],outputs:["pageQueryChange"]},{type:i7.ExtensibleTableComponent,selector:"abp-extensible-table",inputs:["actionsText","data","list","recordsTotal","actionsColumnWidth","actionsTemplate"],exportAs:["abpExtensibleTable"]}],directives:[{type:i8.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],pipes:{async:i8.AsyncPipe,abpLocalization:i1.LocalizationPipe}}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:RequestsComponent,decorators:[{type:Component,args:[{selector:"abp-payment-requests",templateUrl:"./requests.component.html",providers:[ListService,{provide:EXTENSIONS_IDENTIFIER,useValue:"Payment.Requests"}]}]}],ctorParameters:function(){return[{type:i1.ListService},{type:i2.PaymentRequestAdminService},{type:i3.Router},{type:i3.ActivatedRoute}]}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{NgModule}from"@angular/core";import{CommonModule}from"@angular/common";import{RequestsComponent}from"./requests.component";import{PageModule}from"@abp/ng.components/page";import{CoreModule}from"@abp/ng.core";import{UiExtensionsModule}from"@abp/ng.theme.shared/extensions";import{ThemeSharedModule}from"@abp/ng.theme.shared";import{ReactiveFormsModule}from"@angular/forms";import{AdvancedEntityFiltersModule}from"@volo/abp.commercial.ng.ui";import{RequestsSearchFormComponent}from"./requests-search-form/requests-search-form.component";import{NgbDatepickerModule}from"@ng-bootstrap/ng-bootstrap";import{SubscriptionTooltipModule}from"../subscription-tooltip/subscription-tooltip.module";import*as i0 from"@angular/core";export class RequestsModule{}RequestsModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:RequestsModule,deps:[],target:i0.ɵɵFactoryTarget.NgModule}),RequestsModule.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:RequestsModule,declarations:[RequestsComponent,RequestsSearchFormComponent],imports:[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,AdvancedEntityFiltersModule,NgbDatepickerModule,SubscriptionTooltipModule]}),RequestsModule.ɵinj=i0.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:RequestsModule,imports:[[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,AdvancedEntityFiltersModule,NgbDatepickerModule,SubscriptionTooltipModule]]}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:RequestsModule,decorators:[{type:NgModule,args:[{declarations:[RequestsComponent,RequestsSearchFormComponent],imports:[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,AdvancedEntityFiltersModule,NgbDatepickerModule,SubscriptionTooltipModule]}]}]});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Component,Inject}from"@angular/core";import{Observable}from"rxjs";import{PROP_DATA_STREAM}from"@abp/ng.theme.shared/extensions";import*as i0 from"@angular/core";import*as i1 from"@angular/common";import*as i2 from"@ng-bootstrap/ng-bootstrap";import*as i3 from"@abp/ng.core";import*as i4 from"rxjs";export class SubscriptionTooltipComponent{constructor(o){this.value$=o}}SubscriptionTooltipComponent.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:SubscriptionTooltipComponent,deps:[{token:PROP_DATA_STREAM}],target:i0.ɵɵFactoryTarget.Component}),SubscriptionTooltipComponent.ɵcmp=i0.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.0",type:SubscriptionTooltipComponent,selector:"abp-subscription-tooltip",ngImport:i0,template:'<ng-container *ngIf="value$ | async as value">\r\n <i\r\n *ngIf="value.isSubscription; else valueTmp"\r\n class="fa fa-info-circle text-warning"\r\n placement="top"\r\n container="body"\r\n [ngbTooltip]="\'Payment::PriceSubscriptionTooltip\' | abpLocalization"\r\n ></i>\r\n <ng-template #valueTmp>\r\n {{ value.defaultValue }}\r\n </ng-template>\r\n</ng-container>\r\n',directives:[{type:i1.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:i2.NgbTooltip,selector:"[ngbTooltip]",inputs:["autoClose","placement","triggers","container","disableTooltip","tooltipClass","openDelay","closeDelay","ngbTooltip"],outputs:["shown","hidden"],exportAs:["ngbTooltip"]}],pipes:{async:i1.AsyncPipe,abpLocalization:i3.LocalizationPipe}}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:SubscriptionTooltipComponent,decorators:[{type:Component,args:[{selector:"abp-subscription-tooltip",templateUrl:"./subscription-tooltip.component.html"}]}],ctorParameters:function(){return[{type:i4.Observable,decorators:[{type:Inject,args:[PROP_DATA_STREAM]}]}]}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{NgModule}from"@angular/core";import{CommonModule}from"@angular/common";import{NgbTooltipModule}from"@ng-bootstrap/ng-bootstrap";import{CoreModule}from"@abp/ng.core";import{SubscriptionTooltipComponent}from"./subscription-tooltip.component";import*as i0 from"@angular/core";export class SubscriptionTooltipModule{}SubscriptionTooltipModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:SubscriptionTooltipModule,deps:[],target:i0.ɵɵFactoryTarget.NgModule}),SubscriptionTooltipModule.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:SubscriptionTooltipModule,declarations:[SubscriptionTooltipComponent],imports:[CommonModule,CoreModule,NgbTooltipModule],exports:[SubscriptionTooltipComponent]}),SubscriptionTooltipModule.ɵinj=i0.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:SubscriptionTooltipModule,imports:[[CommonModule,CoreModule,NgbTooltipModule]]}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:SubscriptionTooltipModule,decorators:[{type:NgModule,args:[{declarations:[SubscriptionTooltipComponent],exports:[SubscriptionTooltipComponent],imports:[CommonModule,CoreModule,NgbTooltipModule]}]}]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NgModule}from"@angular/core";import{PAYMENT_ROUTE_PROVIDERS}from"./providers/route.provider";import*as i0 from"@angular/core";export class PaymentAdminConfigModule{static forRoot(){return{ngModule:PaymentAdminConfigModule,providers:[PAYMENT_ROUTE_PROVIDERS]}}}PaymentAdminConfigModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.
|
|
1
|
+
import{NgModule}from"@angular/core";import{PAYMENT_ROUTE_PROVIDERS}from"./providers/route.provider";import*as i0 from"@angular/core";export class PaymentAdminConfigModule{static forRoot(){return{ngModule:PaymentAdminConfigModule,providers:[PAYMENT_ROUTE_PROVIDERS]}}}PaymentAdminConfigModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentAdminConfigModule,deps:[],target:i0.ɵɵFactoryTarget.NgModule}),PaymentAdminConfigModule.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentAdminConfigModule}),PaymentAdminConfigModule.ɵinj=i0.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentAdminConfigModule}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentAdminConfigModule,decorators:[{type:NgModule,args:[{}]}]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{RoutesService}from"@abp/ng.core";import{APP_INITIALIZER}from"@angular/core";export const PAYMENT_ROUTE_PROVIDERS=[{provide:APP_INITIALIZER,useFactory:configureRoutes,deps:[RoutesService],multi:!0}];export function configureRoutes(e){return()=>{e.add([{path:void 0,name:"Payment::Menu:PaymentManagement",order:50,layout:"application",iconClass:"fa fa-credit-card"},{path:"/payment/plans",name:"Payment::Menu:Plans",parentName:"Payment::Menu:PaymentManagement",order:1,requiredPolicy:"Payment.Plans"}])}}
|
|
1
|
+
import{RoutesService}from"@abp/ng.core";import{APP_INITIALIZER}from"@angular/core";export const PAYMENT_ROUTE_PROVIDERS=[{provide:APP_INITIALIZER,useFactory:configureRoutes,deps:[RoutesService],multi:!0}];export function configureRoutes(e){return()=>{e.add([{path:void 0,name:"Payment::Menu:PaymentManagement",order:50,layout:"application",iconClass:"fa fa-credit-card"},{path:"/payment/plans",name:"Payment::Menu:Plans",parentName:"Payment::Menu:PaymentManagement",order:1,requiredPolicy:"Payment.Plans"},{path:"/payment/requests",name:"Payment::Menu:PaymentRequests",parentName:"Payment::Menu:PaymentManagement",order:2,requiredPolicy:"Payment.PaymentRequests"}])}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EntityAction}from"@abp/ng.theme.shared/extensions";import{GatewayPlansComponent}from"../../components/gateway-plans/gateway-plans.component";export const DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS=EntityAction.createMany([{text:"Payment::Edit",action:e=>{e.getInjected(GatewayPlansComponent).onEdit(e.record.gateway)},permission:"Payment.Plans.GatewayPlans.Update"},{text:"Payment::Delete",action:e=>{e.getInjected(GatewayPlansComponent).onDelete(e.record.gateway)},permission:"Payment.Plans.GatewayPlans.Delete"}]);
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ToolbarAction}from"@abp/ng.theme.shared/extensions";import{GatewayPlansComponent}from"../../components/gateway-plans/gateway-plans.component";export const DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS=ToolbarAction.createMany([{text:"Payment::NewGatewayPlan",action:a=>{a.getInjected(GatewayPlansComponent).onAdd()},permission:"Payment.Plans.GatewayPlans.Create",icon:"fa fa-plus"}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./default-gateway-plans-entity-actions";export*from"./default-gateway-plans-entity-props";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./
|
|
1
|
+
export*from"./gateway-plans";export*from"./plans";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EntityAction}from"@abp/ng.theme.shared/extensions";import{PaymentPlansComponent}from"../../components/plans/plans.component";export const DEFAULT_PLANS_ENTITY_ACTIONS=EntityAction.createMany([{text:"Payment::GatewayPlans",action:e=>{e.getInjected(PaymentPlansComponent).goToGatewayPlans(e.record.id)},permission:"Payment.Plans.GatewayPlans"},{text:"Payment::Edit",action:e=>{e.getInjected(PaymentPlansComponent).onEdit(e.record.id)},permission:"Payment.Plans.Update"},{text:"Payment::Delete",action:e=>{e.getInjected(PaymentPlansComponent).onDelete(e.record.id,e.record.name)},permission:"Payment.Plans.Delete"}]);
|
package/esm2015/admin/defaults/{default-plans-entity-props.js → plans/default-plans-entity-props.js}
RENAMED
|
File without changes
|
package/esm2015/admin/defaults/{default-plans-form-props.js → plans/default-plans-form-props.js}
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ToolbarAction}from"@abp/ng.theme.shared/extensions";import{PaymentPlansComponent}from"../../components/plans/plans.component";export const DEFAULT_PLANS_TOOLBAR_ACTIONS=ToolbarAction.createMany([{text:"Payment::NewPlan",action:n=>{n.getInjected(PaymentPlansComponent).onAdd()},permission:"Payment.Plans.Create",icon:"fa fa-plus"}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./default-plans-entity-actions";export*from"./default-plans-entity-props";export*from"./default-plans-form-props";export*from"./default-plans-toolbar-actions";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EntityProp}from"@abp/ng.theme.shared/extensions";import{PaymentType,paymentTypeOptions}from"@volo/abp.ng.payment/proxy";import{SubscriptionTooltipComponent}from"../../components/subscription-tooltip/subscription-tooltip.component";import{getSubscriptionStatus}from"../../utils/get-subscription-status";export const DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS=EntityProp.createMany([{type:"string",name:"code",displayName:"Payment::DisplayName:Code",sortable:!1},{type:"string",name:"name",displayName:"Payment::DisplayName:Name"},{type:"number",name:"count",displayName:"Payment::DisplayName:Count"},{type:"number",name:"unitPrice",displayName:"Payment::DisplayName:UnitPrice",component:SubscriptionTooltipComponent,valueResolver:e=>getSubscriptionStatus(e.record.paymentType===PaymentType.Subscription,e.record.unitPrice)},{type:"number",name:"totalPrice",displayName:"Payment::DisplayName:TotalPrice",component:SubscriptionTooltipComponent,valueResolver:e=>getSubscriptionStatus(e.record.paymentType===PaymentType.Subscription,e.record.totalPrice)},{type:"enum",name:"paymentType",displayName:"Payment::DisplayName:PaymentType",enumList:paymentTypeOptions}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./default-products-entity-props";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EntityAction}from"@abp/ng.theme.shared/extensions";import{RequestsComponent}from"../../components/requests/requests.component";export const DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS=EntityAction.createMany([{text:"Payment::Products",action:t=>{t.getInjected(RequestsComponent).goToProducts(t.record.id)},permission:"Payment.PaymentRequests"}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EntityProp}from"@abp/ng.theme.shared/extensions";import{paymentRequestStateOptions}from"@volo/abp.ng.payment/proxy";import{SubscriptionTooltipComponent}from"../../components/subscription-tooltip/subscription-tooltip.component";import{getSubscriptionStatus}from"../../utils/get-subscription-status";export const DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS=EntityProp.createMany([{type:"dateTime",name:"creationTime",displayName:"Payment::DisplayName:CreationTime",sortable:!0},{type:"number",name:"totalPrice",displayName:"Payment::DisplayName:TotalPrice",sortable:!0,component:SubscriptionTooltipComponent,valueResolver:t=>getSubscriptionStatus(!!t.record.externalSubscriptionId,t.record.totalPrice)},{type:"string",name:"currency",displayName:"Payment::DisplayName:Currency"},{type:"enum",name:"state",displayName:"Payment::DisplayName:State",sortable:!0,enumList:paymentRequestStateOptions},{type:"string",name:"gateway",displayName:"Payment::DisplayName:Gateway",sortable:!0},{type:"string",name:"externalSubscriptionId",displayName:"Payment::DisplayName:ExternalSubscriptionId"}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NgModule}from"@angular/core";import{RouterModule}from"@angular/router";import{
|
|
1
|
+
import{AuthGuard,PermissionGuard,ReplaceableRouteContainerComponent,RouterOutletComponent}from"@abp/ng.core";import{NgModule}from"@angular/core";import{RouterModule}from"@angular/router";import{GatewayPlansComponent}from"./components/gateway-plans/gateway-plans.component";import{PaymentPlansComponent}from"./components/plans/plans.component";import{ProductsComponent}from"./components/products/products.component";import{RequestsComponent}from"./components/requests/requests.component";import{PaymentInitializer}from"./payment.initializer";import*as i0 from"@angular/core";import*as i1 from"@angular/router";const routes=[{path:"",redirectTo:"plans",pathMatch:"full"},{path:"",component:RouterOutletComponent,canActivate:[AuthGuard,PermissionGuard,PaymentInitializer],children:[{path:"plans",component:ReplaceableRouteContainerComponent,data:{requiredPolicy:"Payment.Plans",replaceableComponent:{key:"Payment.Plans",defaultComponent:PaymentPlansComponent}}},{path:"plans/:planId",component:ReplaceableRouteContainerComponent,data:{requiredPolicy:"Payment.Plans.GatewayPlans",replaceableComponent:{key:"Payment.GatewayPlans",defaultComponent:GatewayPlansComponent}}},{path:"requests",component:ReplaceableRouteContainerComponent,data:{requiredPolicy:"Payment.PaymentRequests",replaceableComponent:{key:"Payment.Requests",defaultComponent:RequestsComponent}}},{path:"requests/:requestId/products",component:ReplaceableRouteContainerComponent,data:{requiredPolicy:"Payment.PaymentRequests",replaceableComponent:{key:"Payment.Products",defaultComponent:ProductsComponent}}}]}];export class PaymentAdminRoutingModule{}PaymentAdminRoutingModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentAdminRoutingModule,deps:[],target:i0.ɵɵFactoryTarget.NgModule}),PaymentAdminRoutingModule.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentAdminRoutingModule,imports:[i1.RouterModule]}),PaymentAdminRoutingModule.ɵinj=i0.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentAdminRoutingModule,imports:[[RouterModule.forChild(routes)]]}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentAdminRoutingModule,decorators:[{type:NgModule,args:[{imports:[RouterModule.forChild(routes)]}]}]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NgModule}from"@angular/core";import{LazyModuleFactory}from"@abp/ng.core";import{PaymentAdminRoutingModule}from"./payment-admin-routing.module";import{PaymentInitializer}from"./payment.initializer";import{PAYMENT_ENTITY_ACTION_CONTRIBUTORS,PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS,PAYMENT_ENTITY_PROP_CONTRIBUTORS,PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS}from"./tokens/extensions.token";import{PaymentPlansModule}from"./components/plans/plans.module";import{GatewayPlansModule}from"./components/gateway-plans/gateway-plans.module";import*as i0 from"@angular/core";export class PaymentAdminModule{static forChild(e={}){return{ngModule:PaymentAdminModule,providers:[{provide:PAYMENT_ENTITY_ACTION_CONTRIBUTORS,useValue:e.entityActionContributors},{provide:PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS,useValue:e.toolbarActionContributors},{provide:PAYMENT_ENTITY_PROP_CONTRIBUTORS,useValue:e.entityPropContributors},{provide:PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,useValue:e.createFormPropContributors},{provide:PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS,useValue:e.editFormPropContributors},PaymentInitializer]}}static forLazy(e={}){return new LazyModuleFactory(PaymentAdminModule.forChild(e))}}PaymentAdminModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.
|
|
1
|
+
import{NgModule}from"@angular/core";import{LazyModuleFactory}from"@abp/ng.core";import{PaymentAdminRoutingModule}from"./payment-admin-routing.module";import{PaymentInitializer}from"./payment.initializer";import{PAYMENT_ENTITY_ACTION_CONTRIBUTORS,PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS,PAYMENT_ENTITY_PROP_CONTRIBUTORS,PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS}from"./tokens/extensions.token";import{PaymentPlansModule}from"./components/plans/plans.module";import{GatewayPlansModule}from"./components/gateway-plans/gateway-plans.module";import{RequestsModule}from"./components/requests/requests.module";import{ProductsModule}from"./components/products/products.module";import*as i0 from"@angular/core";export class PaymentAdminModule{static forChild(e={}){return{ngModule:PaymentAdminModule,providers:[{provide:PAYMENT_ENTITY_ACTION_CONTRIBUTORS,useValue:e.entityActionContributors},{provide:PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS,useValue:e.toolbarActionContributors},{provide:PAYMENT_ENTITY_PROP_CONTRIBUTORS,useValue:e.entityPropContributors},{provide:PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,useValue:e.createFormPropContributors},{provide:PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS,useValue:e.editFormPropContributors},PaymentInitializer]}}static forLazy(e={}){return new LazyModuleFactory(PaymentAdminModule.forChild(e))}}PaymentAdminModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentAdminModule,deps:[],target:i0.ɵɵFactoryTarget.NgModule}),PaymentAdminModule.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentAdminModule,imports:[PaymentAdminRoutingModule,PaymentPlansModule,GatewayPlansModule,RequestsModule,ProductsModule]}),PaymentAdminModule.ɵinj=i0.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentAdminModule,imports:[[PaymentAdminRoutingModule,PaymentPlansModule,GatewayPlansModule,RequestsModule,ProductsModule]]}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentAdminModule,decorators:[{type:NgModule,args:[{imports:[PaymentAdminRoutingModule,PaymentPlansModule,GatewayPlansModule,RequestsModule,ProductsModule],declarations:[]}]}]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ConfigStateService}from"@abp/ng.core";import{ExtensionsService,getObjectExtensionEntitiesFromStore,mapEntitiesToContributors,mergeWithDefaultActions,mergeWithDefaultProps}from"@abp/ng.theme.shared/extensions";import{Injectable,Injector}from"@angular/core";import{map,mapTo,tap}from"rxjs/operators";import{DEFAULT_PAYMENT_CREATE_FORM_PROPS,DEFAULT_PAYMENT_EDIT_FORM_PROPS,DEFAULT_PAYMENT_ENTITY_ACTIONS,DEFAULT_PAYMENT_ENTITY_PROPS,DEFAULT_PAYMENT_TOOLBAR_ACTIONS,PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS,PAYMENT_ENTITY_ACTION_CONTRIBUTORS,PAYMENT_ENTITY_PROP_CONTRIBUTORS,PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS}from"./tokens/extensions.token";import*as i0 from"@angular/core";export class PaymentInitializer{constructor(t){this.injector=t}canActivate(){const t=this.injector.get(ExtensionsService),e=this.injector.get(PAYMENT_ENTITY_ACTION_CONTRIBUTORS,null)||{},r=this.injector.get(PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS,null)||{},i=this.injector.get(PAYMENT_ENTITY_PROP_CONTRIBUTORS,null)||{},T=this.injector.get(PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,null)||{},n=this.injector.get(PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS,null)||{},o=this.injector.get(ConfigStateService);return getObjectExtensionEntitiesFromStore(o,"Payment").pipe(map(t=>({})),mapEntitiesToContributors(o,"Payment"),tap(o=>{mergeWithDefaultActions(t.entityActions,DEFAULT_PAYMENT_ENTITY_ACTIONS,e),mergeWithDefaultActions(t.toolbarActions,DEFAULT_PAYMENT_TOOLBAR_ACTIONS,r),mergeWithDefaultProps(t.entityProps,DEFAULT_PAYMENT_ENTITY_PROPS,o.prop,i),mergeWithDefaultProps(t.createFormProps,DEFAULT_PAYMENT_CREATE_FORM_PROPS,o.createForm,T),mergeWithDefaultProps(t.editFormProps,DEFAULT_PAYMENT_EDIT_FORM_PROPS,o.editForm,n)}),mapTo(!0))}}PaymentInitializer.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.
|
|
1
|
+
import{ConfigStateService}from"@abp/ng.core";import{ExtensionsService,getObjectExtensionEntitiesFromStore,mapEntitiesToContributors,mergeWithDefaultActions,mergeWithDefaultProps}from"@abp/ng.theme.shared/extensions";import{Injectable,Injector}from"@angular/core";import{map,mapTo,tap}from"rxjs/operators";import{DEFAULT_PAYMENT_CREATE_FORM_PROPS,DEFAULT_PAYMENT_EDIT_FORM_PROPS,DEFAULT_PAYMENT_ENTITY_ACTIONS,DEFAULT_PAYMENT_ENTITY_PROPS,DEFAULT_PAYMENT_TOOLBAR_ACTIONS,PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS,PAYMENT_ENTITY_ACTION_CONTRIBUTORS,PAYMENT_ENTITY_PROP_CONTRIBUTORS,PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS}from"./tokens/extensions.token";import*as i0 from"@angular/core";export class PaymentInitializer{constructor(t){this.injector=t}canActivate(){const t=this.injector.get(ExtensionsService),e=this.injector.get(PAYMENT_ENTITY_ACTION_CONTRIBUTORS,null)||{},r=this.injector.get(PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS,null)||{},i=this.injector.get(PAYMENT_ENTITY_PROP_CONTRIBUTORS,null)||{},T=this.injector.get(PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,null)||{},n=this.injector.get(PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS,null)||{},o=this.injector.get(ConfigStateService);return getObjectExtensionEntitiesFromStore(o,"Payment").pipe(map(t=>({})),mapEntitiesToContributors(o,"Payment"),tap(o=>{mergeWithDefaultActions(t.entityActions,DEFAULT_PAYMENT_ENTITY_ACTIONS,e),mergeWithDefaultActions(t.toolbarActions,DEFAULT_PAYMENT_TOOLBAR_ACTIONS,r),mergeWithDefaultProps(t.entityProps,DEFAULT_PAYMENT_ENTITY_PROPS,o.prop,i),mergeWithDefaultProps(t.createFormProps,DEFAULT_PAYMENT_CREATE_FORM_PROPS,o.createForm,T),mergeWithDefaultProps(t.editFormProps,DEFAULT_PAYMENT_EDIT_FORM_PROPS,o.editForm,n)}),mapTo(!0))}}PaymentInitializer.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentInitializer,deps:[{token:i0.Injector}],target:i0.ɵɵFactoryTarget.Injectable}),PaymentInitializer.ɵprov=i0.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentInitializer}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentInitializer,decorators:[{type:Injectable}],ctorParameters:function(){return[{type:i0.Injector}]}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InjectionToken}from"@angular/core";import{DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS}from"../defaults/default-gateway-plans-entity-actions";import{DEFAULT_GATEWAY_PLANS_ENTITY_PROPS}from"../defaults/default-gateway-plans-entity-props";import{DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS,DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS}from"../defaults/default-gateway-plans-form-props";import{DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS}from"../defaults/default-gateway-plans-toolbar-actions";import{DEFAULT_PLANS_ENTITY_ACTIONS}from"../defaults/default-plans-entity-actions";import{DEFAULT_PLANS_ENTITY_PROPS}from"../defaults/default-plans-entity-props";import{DEFAULT_PLANS_CREATE_FORM_PROPS,DEFAULT_PLANS_EDIT_FORM_PROPS}from"../defaults/default-plans-form-props";import{DEFAULT_PLANS_TOOLBAR_ACTIONS}from"../defaults/default-plans-toolbar-actions";export const DEFAULT_PAYMENT_ENTITY_ACTIONS={"Payment.Plans":DEFAULT_PLANS_ENTITY_ACTIONS,"Payment.GatewayPlans":DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS};export const DEFAULT_PAYMENT_TOOLBAR_ACTIONS={"Payment.Plans":DEFAULT_PLANS_TOOLBAR_ACTIONS,"Payment.GatewayPlans":DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS};export const DEFAULT_PAYMENT_ENTITY_PROPS={"Payment.Plans":DEFAULT_PLANS_ENTITY_PROPS,"Payment.GatewayPlans":DEFAULT_GATEWAY_PLANS_ENTITY_PROPS};export const DEFAULT_PAYMENT_CREATE_FORM_PROPS={"Payment.Plans":DEFAULT_PLANS_CREATE_FORM_PROPS,"Payment.GatewayPlans":DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS};export const DEFAULT_PAYMENT_EDIT_FORM_PROPS={"Payment.Plans":DEFAULT_PLANS_EDIT_FORM_PROPS,"Payment.GatewayPlans":DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS};export const PAYMENT_ENTITY_ACTION_CONTRIBUTORS=new InjectionToken("PAYMENT_ENTITY_ACTION_CONTRIBUTORS");export const PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS=new InjectionToken("PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS");export const PAYMENT_ENTITY_PROP_CONTRIBUTORS=new InjectionToken("PAYMENT_ENTITY_PROP_CONTRIBUTORS");export const PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS=new InjectionToken("PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS");export const PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS=new InjectionToken("PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS");
|
|
1
|
+
import{InjectionToken}from"@angular/core";import{DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS}from"../defaults/gateway-plans/default-gateway-plans-entity-actions";import{DEFAULT_GATEWAY_PLANS_ENTITY_PROPS}from"../defaults/gateway-plans/default-gateway-plans-entity-props";import{DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS,DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS}from"../defaults/gateway-plans/default-gateway-plans-form-props";import{DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS}from"../defaults/gateway-plans/default-gateway-plans-toolbar-actions";import{DEFAULT_PLANS_ENTITY_ACTIONS}from"../defaults/plans/default-plans-entity-actions";import{DEFAULT_PLANS_ENTITY_PROPS}from"../defaults/plans/default-plans-entity-props";import{DEFAULT_PLANS_CREATE_FORM_PROPS,DEFAULT_PLANS_EDIT_FORM_PROPS}from"../defaults/plans/default-plans-form-props";import{DEFAULT_PLANS_TOOLBAR_ACTIONS}from"../defaults/plans/default-plans-toolbar-actions";import{DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS}from"../defaults/products";import{DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS}from"../defaults/requests/default-requests-entity-actions";import{DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS}from"../defaults/requests/default-requests-entity-props";export const DEFAULT_PAYMENT_ENTITY_ACTIONS={"Payment.Plans":DEFAULT_PLANS_ENTITY_ACTIONS,"Payment.GatewayPlans":DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS,"Payment.Requests":DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS};export const DEFAULT_PAYMENT_TOOLBAR_ACTIONS={"Payment.Plans":DEFAULT_PLANS_TOOLBAR_ACTIONS,"Payment.GatewayPlans":DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS};export const DEFAULT_PAYMENT_ENTITY_PROPS={"Payment.Plans":DEFAULT_PLANS_ENTITY_PROPS,"Payment.GatewayPlans":DEFAULT_GATEWAY_PLANS_ENTITY_PROPS,"Payment.Products":DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS,"Payment.Requests":DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS};export const DEFAULT_PAYMENT_CREATE_FORM_PROPS={"Payment.Plans":DEFAULT_PLANS_CREATE_FORM_PROPS,"Payment.GatewayPlans":DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS};export const DEFAULT_PAYMENT_EDIT_FORM_PROPS={"Payment.Plans":DEFAULT_PLANS_EDIT_FORM_PROPS,"Payment.GatewayPlans":DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS};export const PAYMENT_ENTITY_ACTION_CONTRIBUTORS=new InjectionToken("PAYMENT_ENTITY_ACTION_CONTRIBUTORS");export const PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS=new InjectionToken("PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS");export const PAYMENT_ENTITY_PROP_CONTRIBUTORS=new InjectionToken("PAYMENT_ENTITY_PROP_CONTRIBUTORS");export const PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS=new InjectionToken("PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS");export const PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS=new InjectionToken("PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{of}from"rxjs";export const getSubscriptionStatus=(t,o)=>of({isSubscription:t,defaultValue:o});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./proxy/admin/plans";export*from"./proxy/gateways";export*from"./proxy/plans";
|
|
1
|
+
export*from"./proxy/admin/plans";export*from"./proxy/admin/requests";export*from"./proxy/gateways";export*from"./proxy/plans";export*from"./proxy/requests";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{RestService}from"@abp/ng.core";import{Injectable}from"@angular/core";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";export class PlanAdminService{constructor(e){this.restService=e,this.apiName="AbpPaymentAdmin",this.create=e=>this.restService.request({method:"POST",url:"/api/payment-admin/plans",body:e},{apiName:this.apiName}),this.createGatewayPlan=(e,a)=>this.restService.request({method:"POST",url:`/api/payment-admin/plans/${e}/external-plans`,body:a},{apiName:this.apiName}),this.delete=e=>this.restService.request({method:"DELETE",url:"/api/payment-admin/plans",params:{id:e}},{apiName:this.apiName}),this.deleteGatewayPlan=(e,a)=>this.restService.request({method:"DELETE",url:`/api/payment-admin/plans/${e}/external-plans/${a}`},{apiName:this.apiName}),this.get=e=>this.restService.request({method:"GET",url:"/api/payment-admin/plans/"+e},{apiName:this.apiName}),this.getGatewayPlans=(e,a)=>this.restService.request({method:"GET",url:`/api/payment-admin/plans/${e}/external-plans`,params:{filter:a.filter,sorting:a.sorting,skipCount:a.skipCount,maxResultCount:a.maxResultCount}},{apiName:this.apiName}),this.getList=e=>this.restService.request({method:"GET",url:"/api/payment-admin/plans",params:{filter:e.filter,sorting:e.sorting,skipCount:e.skipCount,maxResultCount:e.maxResultCount}},{apiName:this.apiName}),this.update=(e,a)=>this.restService.request({method:"PUT",url:"/api/payment-admin/plans/"+e,body:a},{apiName:this.apiName}),this.updateGatewayPlan=(e,a,t)=>this.restService.request({method:"PUT",url:`/api/payment-admin/plans/${e}/external-plans/${a}`,body:t},{apiName:this.apiName})}}PlanAdminService.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.
|
|
1
|
+
import{RestService}from"@abp/ng.core";import{Injectable}from"@angular/core";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";export class PlanAdminService{constructor(e){this.restService=e,this.apiName="AbpPaymentAdmin",this.create=e=>this.restService.request({method:"POST",url:"/api/payment-admin/plans",body:e},{apiName:this.apiName}),this.createGatewayPlan=(e,a)=>this.restService.request({method:"POST",url:`/api/payment-admin/plans/${e}/external-plans`,body:a},{apiName:this.apiName}),this.delete=e=>this.restService.request({method:"DELETE",url:"/api/payment-admin/plans",params:{id:e}},{apiName:this.apiName}),this.deleteGatewayPlan=(e,a)=>this.restService.request({method:"DELETE",url:`/api/payment-admin/plans/${e}/external-plans/${a}`},{apiName:this.apiName}),this.get=e=>this.restService.request({method:"GET",url:"/api/payment-admin/plans/"+e},{apiName:this.apiName}),this.getGatewayPlans=(e,a)=>this.restService.request({method:"GET",url:`/api/payment-admin/plans/${e}/external-plans`,params:{filter:a.filter,sorting:a.sorting,skipCount:a.skipCount,maxResultCount:a.maxResultCount}},{apiName:this.apiName}),this.getList=e=>this.restService.request({method:"GET",url:"/api/payment-admin/plans",params:{filter:e.filter,sorting:e.sorting,skipCount:e.skipCount,maxResultCount:e.maxResultCount}},{apiName:this.apiName}),this.update=(e,a)=>this.restService.request({method:"PUT",url:"/api/payment-admin/plans/"+e,body:a},{apiName:this.apiName}),this.updateGatewayPlan=(e,a,t)=>this.restService.request({method:"PUT",url:`/api/payment-admin/plans/${e}/external-plans/${a}`,body:t},{apiName:this.apiName})}}PlanAdminService.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PlanAdminService,deps:[{token:i1.RestService}],target:i0.ɵɵFactoryTarget.Injectable}),PlanAdminService.ɵprov=i0.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PlanAdminService,providedIn:"root"}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PlanAdminService,decorators:[{type:Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[{type:i1.RestService}]}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./models";export*from"./payment-request-admin.service";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{RestService}from"@abp/ng.core";import{Injectable}from"@angular/core";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";export class PaymentRequestAdminService{constructor(e){this.restService=e,this.apiName="AbpPaymentAdmin",this.get=e=>this.restService.request({method:"GET",url:"/api/payment-admin/payment-requests/"+e},{apiName:this.apiName}),this.getList=e=>this.restService.request({method:"GET",url:"/api/payment-admin/payment-requests",params:{filter:e.filter,creationDateMax:e.creationDateMax,creationDateMin:e.creationDateMin,paymentType:e.paymentType,status:e.status,sorting:e.sorting,skipCount:e.skipCount,maxResultCount:e.maxResultCount}},{apiName:this.apiName})}}PaymentRequestAdminService.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentRequestAdminService,deps:[{token:i1.RestService}],target:i0.ɵɵFactoryTarget.Injectable}),PaymentRequestAdminService.ɵprov=i0.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentRequestAdminService,providedIn:"root"}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PaymentRequestAdminService,decorators:[{type:Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[{type:i1.RestService}]}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{RestService}from"@abp/ng.core";import{Injectable}from"@angular/core";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";export class GatewayService{constructor(e){this.restService=e,this.apiName="AbpPaymentAdmin",this.getGatewayConfiguration=()=>this.restService.request({method:"GET",url:"/api/payment/gateways"},{apiName:this.apiName}),this.getSubscriptionSupportedGateways=()=>this.restService.request({method:"GET",url:"/api/payment/gateways/subscription-supported"},{apiName:this.apiName})}}GatewayService.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.
|
|
1
|
+
import{RestService}from"@abp/ng.core";import{Injectable}from"@angular/core";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";export class GatewayService{constructor(e){this.restService=e,this.apiName="AbpPaymentAdmin",this.getGatewayConfiguration=()=>this.restService.request({method:"GET",url:"/api/payment/gateways"},{apiName:this.apiName}),this.getSubscriptionSupportedGateways=()=>this.restService.request({method:"GET",url:"/api/payment/gateways/subscription-supported"},{apiName:this.apiName})}}GatewayService.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:GatewayService,deps:[{token:i1.RestService}],target:i0.ɵɵFactoryTarget.Injectable}),GatewayService.ɵprov=i0.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:GatewayService,providedIn:"root"}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:GatewayService,decorators:[{type:Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[{type:i1.RestService}]}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{RestService}from"@abp/ng.core";import{Injectable}from"@angular/core";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";export class PlanService{constructor(e){this.restService=e,this.apiName="AbpPaymentAdmin",this.getGatewayPlan=(e,r)=>this.restService.request({method:"GET",url:`/api/payment/plans/${e}/${r}`},{apiName:this.apiName}),this.getPlanList=()=>this.restService.request({method:"GET",url:"/api/payment/plans"},{apiName:this.apiName})}}PlanService.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.
|
|
1
|
+
import{RestService}from"@abp/ng.core";import{Injectable}from"@angular/core";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";export class PlanService{constructor(e){this.restService=e,this.apiName="AbpPaymentAdmin",this.getGatewayPlan=(e,r)=>this.restService.request({method:"GET",url:`/api/payment/plans/${e}/${r}`},{apiName:this.apiName}),this.getPlanList=()=>this.restService.request({method:"GET",url:"/api/payment/plans"},{apiName:this.apiName})}}PlanService.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PlanService,deps:[{token:i1.RestService}],target:i0.ɵɵFactoryTarget.Injectable}),PlanService.ɵprov=i0.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PlanService,providedIn:"root"}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:PlanService,decorators:[{type:Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[{type:i1.RestService}]}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./models";export*from"./payment-request-state.enum";export*from"./payment-type.enum";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mapEnumToOptions}from"@abp/ng.core";export var PaymentRequestState;!function(e){e[e.Waiting=0]="Waiting",e[e.Completed=1]="Completed",e[e.Failed=2]="Failed",e[e.Refunded=3]="Refunded"}(PaymentRequestState||(PaymentRequestState={}));export const paymentRequestStateOptions=mapEnumToOptions(PaymentRequestState);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mapEnumToOptions}from"@abp/ng.core";export var PaymentType;!function(n){n[n.OneTime=0]="OneTime",n[n.Subscription=1]="Subscription"}(PaymentType||(PaymentType={}));export const paymentTypeOptions=mapEnumToOptions(PaymentType);
|
|
@@ -28,6 +28,13 @@ function configureRoutes(routes) {
|
|
|
28
28
|
order: 1,
|
|
29
29
|
requiredPolicy: "Payment.Plans" /* PaymentPlans */,
|
|
30
30
|
},
|
|
31
|
+
{
|
|
32
|
+
path: '/payment/requests',
|
|
33
|
+
name: "Payment::Menu:PaymentRequests" /* Requests */,
|
|
34
|
+
parentName: "Payment::Menu:PaymentManagement" /* Payment */,
|
|
35
|
+
order: 2,
|
|
36
|
+
requiredPolicy: "Payment.PaymentRequests" /* PaymentRequests */,
|
|
37
|
+
},
|
|
31
38
|
]);
|
|
32
39
|
};
|
|
33
40
|
}
|
|
@@ -40,10 +47,10 @@ class PaymentAdminConfigModule {
|
|
|
40
47
|
};
|
|
41
48
|
}
|
|
42
49
|
}
|
|
43
|
-
PaymentAdminConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
44
|
-
PaymentAdminConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
45
|
-
PaymentAdminConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
50
|
+
PaymentAdminConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentAdminConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
51
|
+
PaymentAdminConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentAdminConfigModule });
|
|
52
|
+
PaymentAdminConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentAdminConfigModule });
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentAdminConfigModule, decorators: [{
|
|
47
54
|
type: NgModule,
|
|
48
55
|
args: [{}]
|
|
49
56
|
}] });
|