@volo/abp.ng.payment 5.0.0-beta.3 → 5.0.1
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,26 +1,30 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ViewEncapsulation, InjectionToken, Injectable, NgModule } from '@angular/core';
|
|
3
|
-
import * as
|
|
4
|
-
import { ListService, ConfigStateService,
|
|
2
|
+
import { Component, ViewEncapsulation, EventEmitter, Input, Output, Inject, InjectionToken, Injectable, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@abp/ng.core';
|
|
4
|
+
import { ListService, ConfigStateService, RouterOutletComponent, AuthGuard, PermissionGuard, ReplaceableRouteContainerComponent, CoreModule, LazyModuleFactory } from '@abp/ng.core';
|
|
5
5
|
import * as i3$1 from '@angular/router';
|
|
6
6
|
import { RouterModule } from '@angular/router';
|
|
7
|
-
import * as i7 from '@abp/ng.theme.shared/extensions';
|
|
8
|
-
import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, EntityAction, EntityProp, FormProp, ToolbarAction, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, UiExtensionsModule } from '@abp/ng.theme.shared/extensions';
|
|
9
|
-
import { take, finalize, map, tap, mapTo } from 'rxjs/operators';
|
|
10
7
|
import * as i3 from '@abp/ng.theme.shared';
|
|
11
8
|
import { Confirmation, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
12
|
-
import * as
|
|
13
|
-
import {
|
|
14
|
-
import * as
|
|
9
|
+
import * as i6 from '@abp/ng.theme.shared/extensions';
|
|
10
|
+
import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, DateAdapter, EntityAction, EntityProp, FormProp, ToolbarAction, PROP_DATA_STREAM, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, UiExtensionsModule } from '@abp/ng.theme.shared/extensions';
|
|
11
|
+
import * as i2 from '@volo/abp.ng.payment/proxy';
|
|
12
|
+
import { PlanAdminService, paymentTypeOptions, paymentRequestStateOptions, GatewayService, PaymentType } from '@volo/abp.ng.payment/proxy';
|
|
13
|
+
import { take, finalize, map, tap, mapTo } from 'rxjs/operators';
|
|
14
|
+
import * as i4 from '@abp/ng.components/page';
|
|
15
15
|
import { PageModule } from '@abp/ng.components/page';
|
|
16
|
-
import * as
|
|
16
|
+
import * as i5 from '@volo/abp.commercial.ng.ui';
|
|
17
17
|
import { AdvancedEntityFiltersModule } from '@volo/abp.commercial.ng.ui';
|
|
18
18
|
import * as i8 from '@angular/common';
|
|
19
19
|
import { CommonModule } from '@angular/common';
|
|
20
|
-
import * as
|
|
20
|
+
import * as i1$1 from '@angular/forms';
|
|
21
21
|
import { Validators, ReactiveFormsModule } from '@angular/forms';
|
|
22
22
|
import * as i10 from '@ngx-validate/core';
|
|
23
23
|
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
24
|
+
import * as i2$1 from '@ng-bootstrap/ng-bootstrap';
|
|
25
|
+
import { NgbDateAdapter, NgbTooltipModule, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
|
|
26
|
+
import * as i4$1 from 'rxjs';
|
|
27
|
+
import { of } from 'rxjs';
|
|
24
28
|
|
|
25
29
|
class GatewayPlansComponent {
|
|
26
30
|
constructor(planService, list, injector, confirmationService, activatedRoute) {
|
|
@@ -86,15 +90,15 @@ class GatewayPlansComponent {
|
|
|
86
90
|
this.form = generateFormFromProps(data);
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
|
-
GatewayPlansComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
90
|
-
GatewayPlansComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
93
|
+
GatewayPlansComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: GatewayPlansComponent, deps: [{ token: i2.PlanService }, { token: i1.ListService }, { token: i0.Injector }, { token: i3.ConfirmationService }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
94
|
+
GatewayPlansComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: GatewayPlansComponent, selector: "abp-gateway-plans", providers: [
|
|
91
95
|
ListService,
|
|
92
96
|
{
|
|
93
97
|
provide: EXTENSIONS_IDENTIFIER,
|
|
94
98
|
useValue: "Payment.GatewayPlans" /* GatewayPlans */,
|
|
95
99
|
},
|
|
96
|
-
], ngImport: i0, template: "<ng-container *ngIf=\"data$ | async; let data\">\n <abp-page [title]=\"'Payment::GatewayPlans' | abpLocalization\" [toolbar]=\"data.items\">\n <abp-advanced-entity-filters\n localizationSourceName=\"Payment\"\n [list]=\"list\"\n ></abp-advanced-entity-filters>\n\n <div class=\"card\">\n <div class=\"card-body\">\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\n </abp-extensible-table>\n </div>\n </div>\n </abp-page>\n\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>\n {{ (selected?.gateway ? 'Payment::Edit' : 'Payment::NewGatewayPlan') | abpLocalization }}\n </h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpUi::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\n 'AbpUi::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n </abp-modal>\n</ng-container>\n", components: [{ type:
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
100
|
+
], ngImport: i0, template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::GatewayPlans' | 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>\r\n {{ (selected?.gateway ? 'Payment::Edit' : 'Payment::NewGatewayPlan') | abpLocalization }}\r\n </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: i3.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: i3.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i10.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i3.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "async": i8.AsyncPipe, "abpLocalization": i1.LocalizationPipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: GatewayPlansComponent, decorators: [{
|
|
98
102
|
type: Component,
|
|
99
103
|
args: [{
|
|
100
104
|
selector: 'abp-gateway-plans',
|
|
@@ -108,89 +112,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
108
112
|
},
|
|
109
113
|
],
|
|
110
114
|
}]
|
|
111
|
-
}], ctorParameters: function () { return [{ type:
|
|
112
|
-
|
|
113
|
-
const DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
114
|
-
{
|
|
115
|
-
text: 'Payment::Edit',
|
|
116
|
-
action: data => {
|
|
117
|
-
const component = data.getInjected(GatewayPlansComponent);
|
|
118
|
-
component.onEdit(data.record.gateway);
|
|
119
|
-
},
|
|
120
|
-
permission: 'Payment.Plans.GatewayPlans.Update',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
text: 'Payment::Delete',
|
|
124
|
-
action: data => {
|
|
125
|
-
const component = data.getInjected(GatewayPlansComponent);
|
|
126
|
-
component.onDelete(data.record.gateway);
|
|
127
|
-
},
|
|
128
|
-
permission: 'Payment.Plans.GatewayPlans.Delete',
|
|
129
|
-
},
|
|
130
|
-
]);
|
|
131
|
-
|
|
132
|
-
const DEFAULT_GATEWAY_PLANS_ENTITY_PROPS = EntityProp.createMany([
|
|
133
|
-
{
|
|
134
|
-
type: "string" /* String */,
|
|
135
|
-
name: 'gateway',
|
|
136
|
-
displayName: 'Payment::DisplayName:Gateway',
|
|
137
|
-
sortable: true,
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
type: "string" /* String */,
|
|
141
|
-
name: 'externalId',
|
|
142
|
-
displayName: 'Payment::DisplayName:ExternalId',
|
|
143
|
-
sortable: true,
|
|
144
|
-
},
|
|
145
|
-
]);
|
|
146
|
-
|
|
147
|
-
const externalIdField = {
|
|
148
|
-
type: "string" /* String */,
|
|
149
|
-
name: 'externalId',
|
|
150
|
-
displayName: 'Payment::DisplayName:ExternalId',
|
|
151
|
-
id: 'external-id',
|
|
152
|
-
validators: () => [Validators.required],
|
|
153
|
-
};
|
|
154
|
-
const DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
155
|
-
{
|
|
156
|
-
type: "string" /* String */,
|
|
157
|
-
name: 'gateway',
|
|
158
|
-
displayName: 'Payment::DisplayName:Gateway',
|
|
159
|
-
id: 'gateway',
|
|
160
|
-
options: data => {
|
|
161
|
-
const service = data.getInjected(GatewayService);
|
|
162
|
-
return service.getSubscriptionSupportedGateways().pipe(map(options => options.map(opt => ({
|
|
163
|
-
key: opt.displayName,
|
|
164
|
-
value: opt.name,
|
|
165
|
-
}))));
|
|
166
|
-
},
|
|
167
|
-
validators: () => [Validators.required],
|
|
168
|
-
},
|
|
169
|
-
externalIdField,
|
|
170
|
-
]);
|
|
171
|
-
const DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS = FormProp.createMany([
|
|
172
|
-
{
|
|
173
|
-
type: "string" /* String */,
|
|
174
|
-
name: 'gateway',
|
|
175
|
-
displayName: 'Payment::DisplayName:Gateway',
|
|
176
|
-
id: 'gateway',
|
|
177
|
-
validators: () => [Validators.required],
|
|
178
|
-
disabled: () => true,
|
|
179
|
-
},
|
|
180
|
-
externalIdField,
|
|
181
|
-
]);
|
|
182
|
-
|
|
183
|
-
const DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
|
|
184
|
-
{
|
|
185
|
-
text: 'Payment::NewGatewayPlan',
|
|
186
|
-
action: data => {
|
|
187
|
-
const component = data.getInjected(GatewayPlansComponent);
|
|
188
|
-
component.onAdd();
|
|
189
|
-
},
|
|
190
|
-
permission: 'Payment.Plans.GatewayPlans.Create',
|
|
191
|
-
icon: 'fa fa-plus',
|
|
192
|
-
},
|
|
193
|
-
]);
|
|
115
|
+
}], ctorParameters: function () { return [{ type: i2.PlanService }, { type: i1.ListService }, { type: i0.Injector }, { type: i3.ConfirmationService }, { type: i3$1.ActivatedRoute }]; } });
|
|
194
116
|
|
|
195
117
|
class PaymentPlansComponent {
|
|
196
118
|
constructor(list, injector, confirmationService, router, activatedRoute) {
|
|
@@ -256,15 +178,15 @@ class PaymentPlansComponent {
|
|
|
256
178
|
this.form = generateFormFromProps(data);
|
|
257
179
|
}
|
|
258
180
|
}
|
|
259
|
-
PaymentPlansComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
260
|
-
PaymentPlansComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
181
|
+
PaymentPlansComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentPlansComponent, deps: [{ token: i1.ListService }, { token: i0.Injector }, { token: i3.ConfirmationService }, { token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
182
|
+
PaymentPlansComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: PaymentPlansComponent, selector: "abp-payment-plans", providers: [
|
|
261
183
|
ListService,
|
|
262
184
|
{
|
|
263
185
|
provide: EXTENSIONS_IDENTIFIER,
|
|
264
186
|
useValue: "Payment.Plans" /* Plans */,
|
|
265
187
|
},
|
|
266
|
-
], ngImport: i0, template: "<ng-container *ngIf=\"data$ | async; let data\">\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\n <abp-advanced-entity-filters\n localizationSourceName=\"Payment\"\n [list]=\"list\"\n ></abp-advanced-entity-filters>\n\n <div class=\"card\">\n <div class=\"card-body\">\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\n </abp-extensible-table>\n </div>\n </div>\n </abp-page>\n\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>{{ (selected?.id ? 'Payment::Edit' : 'Payment::NewPlan') | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpUi::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\n 'AbpUi::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n </abp-modal>\n</ng-container>\n", components: [{ type:
|
|
267
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
188
|
+
], 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: i3.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: i3.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i10.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i3.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "async": i8.AsyncPipe, "abpLocalization": i1.LocalizationPipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentPlansComponent, decorators: [{
|
|
268
190
|
type: Component,
|
|
269
191
|
args: [{
|
|
270
192
|
selector: 'abp-payment-plans',
|
|
@@ -278,7 +200,202 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
278
200
|
},
|
|
279
201
|
],
|
|
280
202
|
}]
|
|
281
|
-
}], ctorParameters: function () { return [{ type:
|
|
203
|
+
}], ctorParameters: function () { return [{ type: i1.ListService }, { type: i0.Injector }, { type: i3.ConfirmationService }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
|
|
204
|
+
|
|
205
|
+
class ProductsComponent {
|
|
206
|
+
constructor(route, service, list) {
|
|
207
|
+
this.route = route;
|
|
208
|
+
this.service = service;
|
|
209
|
+
this.list = list;
|
|
210
|
+
this.data = [];
|
|
211
|
+
this.breadCrumbItems = [
|
|
212
|
+
{
|
|
213
|
+
name: "Payment::Menu:PaymentManagement" /* Payment */,
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: "Payment::Menu:PaymentRequests" /* Requests */,
|
|
217
|
+
path: '/payment/requests',
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: this.requestId,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: 'Payment::Products',
|
|
224
|
+
},
|
|
225
|
+
];
|
|
226
|
+
list.hookToQuery(() => this.service.get(this.requestId).pipe(map(request => request.products))).subscribe((data) => (this.data = data));
|
|
227
|
+
}
|
|
228
|
+
get requestId() {
|
|
229
|
+
return this.route.snapshot.params.requestId;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
ProductsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ProductsComponent, deps: [{ token: i3$1.ActivatedRoute }, { token: i2.PaymentRequestAdminService }, { token: i1.ListService }], target: i0.ɵɵFactoryTarget.Component });
|
|
233
|
+
ProductsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: ProductsComponent, selector: "abp-products", providers: [
|
|
234
|
+
ListService,
|
|
235
|
+
{
|
|
236
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
237
|
+
useValue: "Payment.Products" /* Products */,
|
|
238
|
+
},
|
|
239
|
+
], 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: i3.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": i1.LocalizationPipe } });
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ProductsComponent, decorators: [{
|
|
241
|
+
type: Component,
|
|
242
|
+
args: [{
|
|
243
|
+
selector: 'abp-products',
|
|
244
|
+
templateUrl: './products.component.html',
|
|
245
|
+
providers: [
|
|
246
|
+
ListService,
|
|
247
|
+
{
|
|
248
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
249
|
+
useValue: "Payment.Products" /* Products */,
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
}]
|
|
253
|
+
}], ctorParameters: function () { return [{ type: i3$1.ActivatedRoute }, { type: i2.PaymentRequestAdminService }, { type: i1.ListService }]; } });
|
|
254
|
+
|
|
255
|
+
class RequestsSearchFormComponent {
|
|
256
|
+
constructor() {
|
|
257
|
+
this.pageQueryChange = new EventEmitter();
|
|
258
|
+
this.paymentTypes = paymentTypeOptions;
|
|
259
|
+
this.states = paymentRequestStateOptions;
|
|
260
|
+
}
|
|
261
|
+
emit() {
|
|
262
|
+
this.pageQueryChange.emit(this.pageQuery);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
RequestsSearchFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RequestsSearchFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
266
|
+
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 <!-- TODO: BS5 custom select class replace -->\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 <!-- TODO: BS5 custom select class replace -->\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$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2$1.NgbInputDatepicker, selector: "input[ngbDatepicker]", inputs: ["disabled", "autoClose", "datepickerClass", "dayTemplate", "dayTemplateData", "displayMonths", "firstDayOfWeek", "footerTemplate", "markDisabled", "minDate", "maxDate", "navigation", "outsideDays", "placement", "restoreFocus", "showWeekNumbers", "startDate", "container", "positionTarget", "weekdays"], outputs: ["dateSelect", "navigate", "closed"], exportAs: ["ngbDatepicker"] }, { type: i1$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "abpLocalization": i1.LocalizationPipe } });
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RequestsSearchFormComponent, decorators: [{
|
|
268
|
+
type: Component,
|
|
269
|
+
args: [{
|
|
270
|
+
selector: 'abp-payment-requests-search-form',
|
|
271
|
+
templateUrl: './requests-search-form.component.html',
|
|
272
|
+
providers: [{ provide: NgbDateAdapter, useClass: DateAdapter }],
|
|
273
|
+
}]
|
|
274
|
+
}], propDecorators: { list: [{
|
|
275
|
+
type: Input
|
|
276
|
+
}], pageQuery: [{
|
|
277
|
+
type: Input
|
|
278
|
+
}], pageQueryChange: [{
|
|
279
|
+
type: Output
|
|
280
|
+
}] } });
|
|
281
|
+
|
|
282
|
+
class RequestsComponent {
|
|
283
|
+
constructor(list, paymentRequestAdminService, router, route) {
|
|
284
|
+
this.list = list;
|
|
285
|
+
this.paymentRequestAdminService = paymentRequestAdminService;
|
|
286
|
+
this.router = router;
|
|
287
|
+
this.route = route;
|
|
288
|
+
this.pageQuery = {};
|
|
289
|
+
this.data$ = this.list.hookToQuery(query => this.paymentRequestAdminService.getList(Object.assign(Object.assign({}, query), this.pageQuery)));
|
|
290
|
+
}
|
|
291
|
+
goToProducts(id) {
|
|
292
|
+
this.router.navigate([id, 'products'], { relativeTo: this.route });
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
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$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
296
|
+
RequestsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: RequestsComponent, selector: "abp-payment-requests", providers: [
|
|
297
|
+
ListService,
|
|
298
|
+
{
|
|
299
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
300
|
+
useValue: "Payment.Requests" /* Requests */,
|
|
301
|
+
},
|
|
302
|
+
], 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: RequestsSearchFormComponent, selector: "abp-payment-requests-search-form", inputs: ["list", "pageQuery"], outputs: ["pageQueryChange"] }, { type: i6.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 } });
|
|
303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RequestsComponent, decorators: [{
|
|
304
|
+
type: Component,
|
|
305
|
+
args: [{
|
|
306
|
+
selector: 'abp-payment-requests',
|
|
307
|
+
templateUrl: './requests.component.html',
|
|
308
|
+
providers: [
|
|
309
|
+
ListService,
|
|
310
|
+
{
|
|
311
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
312
|
+
useValue: "Payment.Requests" /* Requests */,
|
|
313
|
+
},
|
|
314
|
+
],
|
|
315
|
+
}]
|
|
316
|
+
}], ctorParameters: function () { return [{ type: i1.ListService }, { type: i2.PaymentRequestAdminService }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
|
|
317
|
+
|
|
318
|
+
const DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
319
|
+
{
|
|
320
|
+
text: 'Payment::Edit',
|
|
321
|
+
action: data => {
|
|
322
|
+
const component = data.getInjected(GatewayPlansComponent);
|
|
323
|
+
component.onEdit(data.record.gateway);
|
|
324
|
+
},
|
|
325
|
+
permission: 'Payment.Plans.GatewayPlans.Update',
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
text: 'Payment::Delete',
|
|
329
|
+
action: data => {
|
|
330
|
+
const component = data.getInjected(GatewayPlansComponent);
|
|
331
|
+
component.onDelete(data.record.gateway);
|
|
332
|
+
},
|
|
333
|
+
permission: 'Payment.Plans.GatewayPlans.Delete',
|
|
334
|
+
},
|
|
335
|
+
]);
|
|
336
|
+
|
|
337
|
+
const DEFAULT_GATEWAY_PLANS_ENTITY_PROPS = EntityProp.createMany([
|
|
338
|
+
{
|
|
339
|
+
type: "string" /* String */,
|
|
340
|
+
name: 'gateway',
|
|
341
|
+
displayName: 'Payment::DisplayName:Gateway',
|
|
342
|
+
sortable: true,
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
type: "string" /* String */,
|
|
346
|
+
name: 'externalId',
|
|
347
|
+
displayName: 'Payment::DisplayName:ExternalId',
|
|
348
|
+
sortable: true,
|
|
349
|
+
},
|
|
350
|
+
]);
|
|
351
|
+
|
|
352
|
+
const externalIdField = {
|
|
353
|
+
type: "string" /* String */,
|
|
354
|
+
name: 'externalId',
|
|
355
|
+
displayName: 'Payment::DisplayName:ExternalId',
|
|
356
|
+
id: 'external-id',
|
|
357
|
+
validators: () => [Validators.required],
|
|
358
|
+
};
|
|
359
|
+
const DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
360
|
+
{
|
|
361
|
+
type: "string" /* String */,
|
|
362
|
+
name: 'gateway',
|
|
363
|
+
displayName: 'Payment::DisplayName:Gateway',
|
|
364
|
+
id: 'gateway',
|
|
365
|
+
options: data => {
|
|
366
|
+
const service = data.getInjected(GatewayService);
|
|
367
|
+
return service.getSubscriptionSupportedGateways().pipe(map(options => options.map(opt => ({
|
|
368
|
+
key: opt.displayName,
|
|
369
|
+
value: opt.name,
|
|
370
|
+
}))));
|
|
371
|
+
},
|
|
372
|
+
validators: () => [Validators.required],
|
|
373
|
+
},
|
|
374
|
+
externalIdField,
|
|
375
|
+
]);
|
|
376
|
+
const DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS = FormProp.createMany([
|
|
377
|
+
{
|
|
378
|
+
type: "string" /* String */,
|
|
379
|
+
name: 'gateway',
|
|
380
|
+
displayName: 'Payment::DisplayName:Gateway',
|
|
381
|
+
id: 'gateway',
|
|
382
|
+
validators: () => [Validators.required],
|
|
383
|
+
disabled: () => true,
|
|
384
|
+
},
|
|
385
|
+
externalIdField,
|
|
386
|
+
]);
|
|
387
|
+
|
|
388
|
+
const DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
|
|
389
|
+
{
|
|
390
|
+
text: 'Payment::NewGatewayPlan',
|
|
391
|
+
action: data => {
|
|
392
|
+
const component = data.getInjected(GatewayPlansComponent);
|
|
393
|
+
component.onAdd();
|
|
394
|
+
},
|
|
395
|
+
permission: 'Payment.Plans.GatewayPlans.Create',
|
|
396
|
+
icon: 'fa fa-plus',
|
|
397
|
+
},
|
|
398
|
+
]);
|
|
282
399
|
|
|
283
400
|
const DEFAULT_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
284
401
|
{
|
|
@@ -339,9 +456,122 @@ const DEFAULT_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
|
|
|
339
456
|
},
|
|
340
457
|
]);
|
|
341
458
|
|
|
459
|
+
class SubscriptionTooltipComponent {
|
|
460
|
+
constructor(value$) {
|
|
461
|
+
this.value$ = value$;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
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 });
|
|
465
|
+
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: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }], pipes: { "async": i8.AsyncPipe, "abpLocalization": i1.LocalizationPipe } });
|
|
466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: SubscriptionTooltipComponent, decorators: [{
|
|
467
|
+
type: Component,
|
|
468
|
+
args: [{
|
|
469
|
+
selector: 'abp-subscription-tooltip',
|
|
470
|
+
templateUrl: './subscription-tooltip.component.html',
|
|
471
|
+
}]
|
|
472
|
+
}], ctorParameters: function () { return [{ type: i4$1.Observable, decorators: [{
|
|
473
|
+
type: Inject,
|
|
474
|
+
args: [PROP_DATA_STREAM]
|
|
475
|
+
}] }]; } });
|
|
476
|
+
|
|
477
|
+
const getSubscriptionStatus = (condition, defaultValue) => {
|
|
478
|
+
return of({ isSubscription: condition, defaultValue });
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
const DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS = EntityProp.createMany([
|
|
482
|
+
{
|
|
483
|
+
type: "string" /* String */,
|
|
484
|
+
name: 'code',
|
|
485
|
+
displayName: 'Payment::DisplayName:Code',
|
|
486
|
+
sortable: false,
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
type: "string" /* String */,
|
|
490
|
+
name: 'name',
|
|
491
|
+
displayName: 'Payment::DisplayName:Name',
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
type: "number" /* Number */,
|
|
495
|
+
name: 'count',
|
|
496
|
+
displayName: 'Payment::DisplayName:Count',
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
type: "number" /* Number */,
|
|
500
|
+
name: 'unitPrice',
|
|
501
|
+
displayName: 'Payment::DisplayName:UnitPrice',
|
|
502
|
+
component: SubscriptionTooltipComponent,
|
|
503
|
+
valueResolver: data => getSubscriptionStatus(data.record.paymentType === PaymentType.Subscription, data.record.unitPrice),
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
type: "number" /* Number */,
|
|
507
|
+
name: 'totalPrice',
|
|
508
|
+
displayName: 'Payment::DisplayName:TotalPrice',
|
|
509
|
+
component: SubscriptionTooltipComponent,
|
|
510
|
+
valueResolver: data => getSubscriptionStatus(data.record.paymentType === PaymentType.Subscription, data.record.totalPrice),
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
type: "enum" /* Enum */,
|
|
514
|
+
name: 'paymentType',
|
|
515
|
+
displayName: 'Payment::DisplayName:PaymentType',
|
|
516
|
+
enumList: paymentTypeOptions,
|
|
517
|
+
},
|
|
518
|
+
]);
|
|
519
|
+
|
|
520
|
+
const DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
521
|
+
{
|
|
522
|
+
text: 'Payment::Products',
|
|
523
|
+
action: data => {
|
|
524
|
+
const component = data.getInjected(RequestsComponent);
|
|
525
|
+
component.goToProducts(data.record.id);
|
|
526
|
+
},
|
|
527
|
+
permission: 'Payment.PaymentRequests',
|
|
528
|
+
},
|
|
529
|
+
]);
|
|
530
|
+
|
|
531
|
+
const DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS = EntityProp.createMany([
|
|
532
|
+
{
|
|
533
|
+
type: "dateTime" /* DateTime */,
|
|
534
|
+
name: 'creationTime',
|
|
535
|
+
displayName: 'Payment::DisplayName:CreationTime',
|
|
536
|
+
sortable: true,
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
type: "number" /* Number */,
|
|
540
|
+
name: 'totalPrice',
|
|
541
|
+
displayName: 'Payment::DisplayName:TotalPrice',
|
|
542
|
+
sortable: true,
|
|
543
|
+
component: SubscriptionTooltipComponent,
|
|
544
|
+
valueResolver: data => getSubscriptionStatus(!!data.record.externalSubscriptionId, data.record.totalPrice),
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
type: "string" /* String */,
|
|
548
|
+
name: 'currency',
|
|
549
|
+
displayName: 'Payment::DisplayName:Currency',
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
type: "enum" /* Enum */,
|
|
553
|
+
name: 'state',
|
|
554
|
+
displayName: 'Payment::DisplayName:State',
|
|
555
|
+
sortable: true,
|
|
556
|
+
enumList: paymentRequestStateOptions,
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
type: "string" /* String */,
|
|
560
|
+
name: 'gateway',
|
|
561
|
+
displayName: 'Payment::DisplayName:Gateway',
|
|
562
|
+
sortable: true,
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
type: "string" /* String */,
|
|
566
|
+
name: 'externalSubscriptionId',
|
|
567
|
+
displayName: 'Payment::DisplayName:ExternalSubscriptionId',
|
|
568
|
+
},
|
|
569
|
+
]);
|
|
570
|
+
|
|
342
571
|
const DEFAULT_PAYMENT_ENTITY_ACTIONS = {
|
|
343
572
|
["Payment.Plans" /* Plans */]: DEFAULT_PLANS_ENTITY_ACTIONS,
|
|
344
573
|
["Payment.GatewayPlans" /* GatewayPlans */]: DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS,
|
|
574
|
+
["Payment.Requests" /* Requests */]: DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS,
|
|
345
575
|
};
|
|
346
576
|
const DEFAULT_PAYMENT_TOOLBAR_ACTIONS = {
|
|
347
577
|
["Payment.Plans" /* Plans */]: DEFAULT_PLANS_TOOLBAR_ACTIONS,
|
|
@@ -350,6 +580,8 @@ const DEFAULT_PAYMENT_TOOLBAR_ACTIONS = {
|
|
|
350
580
|
const DEFAULT_PAYMENT_ENTITY_PROPS = {
|
|
351
581
|
["Payment.Plans" /* Plans */]: DEFAULT_PLANS_ENTITY_PROPS,
|
|
352
582
|
["Payment.GatewayPlans" /* GatewayPlans */]: DEFAULT_GATEWAY_PLANS_ENTITY_PROPS,
|
|
583
|
+
["Payment.Products" /* Products */]: DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS,
|
|
584
|
+
["Payment.Requests" /* Requests */]: DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS,
|
|
353
585
|
};
|
|
354
586
|
const DEFAULT_PAYMENT_CREATE_FORM_PROPS = {
|
|
355
587
|
["Payment.Plans" /* Plans */]: DEFAULT_PLANS_CREATE_FORM_PROPS,
|
|
@@ -389,9 +621,9 @@ class PaymentInitializer {
|
|
|
389
621
|
}), mapTo(true));
|
|
390
622
|
}
|
|
391
623
|
}
|
|
392
|
-
PaymentInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
393
|
-
PaymentInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
624
|
+
PaymentInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentInitializer, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
625
|
+
PaymentInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentInitializer });
|
|
626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentInitializer, decorators: [{
|
|
395
627
|
type: Injectable
|
|
396
628
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
397
629
|
|
|
@@ -403,7 +635,7 @@ const routes = [
|
|
|
403
635
|
},
|
|
404
636
|
{
|
|
405
637
|
path: '',
|
|
406
|
-
component:
|
|
638
|
+
component: RouterOutletComponent,
|
|
407
639
|
canActivate: [AuthGuard, PermissionGuard, PaymentInitializer],
|
|
408
640
|
children: [
|
|
409
641
|
{
|
|
@@ -428,15 +660,37 @@ const routes = [
|
|
|
428
660
|
},
|
|
429
661
|
},
|
|
430
662
|
},
|
|
663
|
+
{
|
|
664
|
+
path: 'requests',
|
|
665
|
+
component: ReplaceableRouteContainerComponent,
|
|
666
|
+
data: {
|
|
667
|
+
requiredPolicy: 'Payment.PaymentRequests',
|
|
668
|
+
replaceableComponent: {
|
|
669
|
+
key: "Payment.Requests" /* Requests */,
|
|
670
|
+
defaultComponent: RequestsComponent,
|
|
671
|
+
},
|
|
672
|
+
},
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
path: 'requests/:requestId/products',
|
|
676
|
+
component: ReplaceableRouteContainerComponent,
|
|
677
|
+
data: {
|
|
678
|
+
requiredPolicy: 'Payment.PaymentRequests',
|
|
679
|
+
replaceableComponent: {
|
|
680
|
+
key: "Payment.Products" /* Products */,
|
|
681
|
+
defaultComponent: ProductsComponent,
|
|
682
|
+
},
|
|
683
|
+
},
|
|
684
|
+
},
|
|
431
685
|
],
|
|
432
686
|
},
|
|
433
687
|
];
|
|
434
688
|
class PaymentAdminRoutingModule {
|
|
435
689
|
}
|
|
436
|
-
PaymentAdminRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
437
|
-
PaymentAdminRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
438
|
-
PaymentAdminRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
690
|
+
PaymentAdminRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentAdminRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
691
|
+
PaymentAdminRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentAdminRoutingModule, imports: [i3$1.RouterModule] });
|
|
692
|
+
PaymentAdminRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentAdminRoutingModule, imports: [[RouterModule.forChild(routes)]] });
|
|
693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentAdminRoutingModule, decorators: [{
|
|
440
694
|
type: NgModule,
|
|
441
695
|
args: [{
|
|
442
696
|
imports: [RouterModule.forChild(routes)],
|
|
@@ -445,8 +699,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
445
699
|
|
|
446
700
|
class PaymentPlansModule {
|
|
447
701
|
}
|
|
448
|
-
PaymentPlansModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
449
|
-
PaymentPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
702
|
+
PaymentPlansModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
703
|
+
PaymentPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentPlansModule, declarations: [PaymentPlansComponent], imports: [CommonModule,
|
|
450
704
|
PageModule,
|
|
451
705
|
CoreModule,
|
|
452
706
|
UiExtensionsModule,
|
|
@@ -454,7 +708,7 @@ PaymentPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
454
708
|
ReactiveFormsModule,
|
|
455
709
|
NgxValidateCoreModule,
|
|
456
710
|
AdvancedEntityFiltersModule] });
|
|
457
|
-
PaymentPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
711
|
+
PaymentPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentPlansModule, providers: [], imports: [[
|
|
458
712
|
CommonModule,
|
|
459
713
|
PageModule,
|
|
460
714
|
CoreModule,
|
|
@@ -464,7 +718,7 @@ PaymentPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
|
|
|
464
718
|
NgxValidateCoreModule,
|
|
465
719
|
AdvancedEntityFiltersModule,
|
|
466
720
|
]] });
|
|
467
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentPlansModule, decorators: [{
|
|
468
722
|
type: NgModule,
|
|
469
723
|
args: [{
|
|
470
724
|
imports: [
|
|
@@ -485,8 +739,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
485
739
|
|
|
486
740
|
class GatewayPlansModule {
|
|
487
741
|
}
|
|
488
|
-
GatewayPlansModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
489
|
-
GatewayPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
742
|
+
GatewayPlansModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: GatewayPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
743
|
+
GatewayPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: GatewayPlansModule, declarations: [GatewayPlansComponent], imports: [CommonModule,
|
|
490
744
|
PageModule,
|
|
491
745
|
CoreModule,
|
|
492
746
|
UiExtensionsModule,
|
|
@@ -494,7 +748,7 @@ GatewayPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
494
748
|
ReactiveFormsModule,
|
|
495
749
|
NgxValidateCoreModule,
|
|
496
750
|
AdvancedEntityFiltersModule] });
|
|
497
|
-
GatewayPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
751
|
+
GatewayPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: GatewayPlansModule, providers: [], imports: [[
|
|
498
752
|
CommonModule,
|
|
499
753
|
PageModule,
|
|
500
754
|
CoreModule,
|
|
@@ -504,7 +758,7 @@ GatewayPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
|
|
|
504
758
|
NgxValidateCoreModule,
|
|
505
759
|
AdvancedEntityFiltersModule,
|
|
506
760
|
]] });
|
|
507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
761
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: GatewayPlansModule, decorators: [{
|
|
508
762
|
type: NgModule,
|
|
509
763
|
args: [{
|
|
510
764
|
imports: [
|
|
@@ -523,6 +777,93 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
523
777
|
}]
|
|
524
778
|
}] });
|
|
525
779
|
|
|
780
|
+
class SubscriptionTooltipModule {
|
|
781
|
+
}
|
|
782
|
+
SubscriptionTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: SubscriptionTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
783
|
+
SubscriptionTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: SubscriptionTooltipModule, declarations: [SubscriptionTooltipComponent], imports: [CommonModule, CoreModule, NgbTooltipModule], exports: [SubscriptionTooltipComponent] });
|
|
784
|
+
SubscriptionTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: SubscriptionTooltipModule, imports: [[CommonModule, CoreModule, NgbTooltipModule]] });
|
|
785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: SubscriptionTooltipModule, decorators: [{
|
|
786
|
+
type: NgModule,
|
|
787
|
+
args: [{
|
|
788
|
+
declarations: [SubscriptionTooltipComponent],
|
|
789
|
+
exports: [SubscriptionTooltipComponent],
|
|
790
|
+
imports: [CommonModule, CoreModule, NgbTooltipModule],
|
|
791
|
+
}]
|
|
792
|
+
}] });
|
|
793
|
+
|
|
794
|
+
class RequestsModule {
|
|
795
|
+
}
|
|
796
|
+
RequestsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RequestsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
797
|
+
RequestsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RequestsModule, declarations: [RequestsComponent, RequestsSearchFormComponent], imports: [CommonModule,
|
|
798
|
+
PageModule,
|
|
799
|
+
CoreModule,
|
|
800
|
+
UiExtensionsModule,
|
|
801
|
+
ThemeSharedModule,
|
|
802
|
+
ReactiveFormsModule,
|
|
803
|
+
AdvancedEntityFiltersModule,
|
|
804
|
+
NgbDatepickerModule,
|
|
805
|
+
SubscriptionTooltipModule] });
|
|
806
|
+
RequestsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RequestsModule, imports: [[
|
|
807
|
+
CommonModule,
|
|
808
|
+
PageModule,
|
|
809
|
+
CoreModule,
|
|
810
|
+
UiExtensionsModule,
|
|
811
|
+
ThemeSharedModule,
|
|
812
|
+
ReactiveFormsModule,
|
|
813
|
+
AdvancedEntityFiltersModule,
|
|
814
|
+
NgbDatepickerModule,
|
|
815
|
+
SubscriptionTooltipModule,
|
|
816
|
+
]] });
|
|
817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RequestsModule, decorators: [{
|
|
818
|
+
type: NgModule,
|
|
819
|
+
args: [{
|
|
820
|
+
declarations: [RequestsComponent, RequestsSearchFormComponent],
|
|
821
|
+
imports: [
|
|
822
|
+
CommonModule,
|
|
823
|
+
PageModule,
|
|
824
|
+
CoreModule,
|
|
825
|
+
UiExtensionsModule,
|
|
826
|
+
ThemeSharedModule,
|
|
827
|
+
ReactiveFormsModule,
|
|
828
|
+
AdvancedEntityFiltersModule,
|
|
829
|
+
NgbDatepickerModule,
|
|
830
|
+
SubscriptionTooltipModule,
|
|
831
|
+
],
|
|
832
|
+
}]
|
|
833
|
+
}] });
|
|
834
|
+
|
|
835
|
+
class ProductsModule {
|
|
836
|
+
}
|
|
837
|
+
ProductsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ProductsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
838
|
+
ProductsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ProductsModule, declarations: [ProductsComponent], imports: [CommonModule,
|
|
839
|
+
PageModule,
|
|
840
|
+
CoreModule,
|
|
841
|
+
UiExtensionsModule,
|
|
842
|
+
ThemeSharedModule,
|
|
843
|
+
SubscriptionTooltipModule] });
|
|
844
|
+
ProductsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ProductsModule, imports: [[
|
|
845
|
+
CommonModule,
|
|
846
|
+
PageModule,
|
|
847
|
+
CoreModule,
|
|
848
|
+
UiExtensionsModule,
|
|
849
|
+
ThemeSharedModule,
|
|
850
|
+
SubscriptionTooltipModule,
|
|
851
|
+
]] });
|
|
852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ProductsModule, decorators: [{
|
|
853
|
+
type: NgModule,
|
|
854
|
+
args: [{
|
|
855
|
+
declarations: [ProductsComponent],
|
|
856
|
+
imports: [
|
|
857
|
+
CommonModule,
|
|
858
|
+
PageModule,
|
|
859
|
+
CoreModule,
|
|
860
|
+
UiExtensionsModule,
|
|
861
|
+
ThemeSharedModule,
|
|
862
|
+
SubscriptionTooltipModule,
|
|
863
|
+
],
|
|
864
|
+
}]
|
|
865
|
+
}] });
|
|
866
|
+
|
|
526
867
|
class PaymentAdminModule {
|
|
527
868
|
static forChild(options = {}) {
|
|
528
869
|
return {
|
|
@@ -556,13 +897,30 @@ class PaymentAdminModule {
|
|
|
556
897
|
return new LazyModuleFactory(PaymentAdminModule.forChild(options));
|
|
557
898
|
}
|
|
558
899
|
}
|
|
559
|
-
PaymentAdminModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
560
|
-
PaymentAdminModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
561
|
-
|
|
562
|
-
|
|
900
|
+
PaymentAdminModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentAdminModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
901
|
+
PaymentAdminModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentAdminModule, imports: [PaymentAdminRoutingModule,
|
|
902
|
+
PaymentPlansModule,
|
|
903
|
+
GatewayPlansModule,
|
|
904
|
+
RequestsModule,
|
|
905
|
+
ProductsModule] });
|
|
906
|
+
PaymentAdminModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentAdminModule, imports: [[
|
|
907
|
+
PaymentAdminRoutingModule,
|
|
908
|
+
PaymentPlansModule,
|
|
909
|
+
GatewayPlansModule,
|
|
910
|
+
RequestsModule,
|
|
911
|
+
ProductsModule,
|
|
912
|
+
]] });
|
|
913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentAdminModule, decorators: [{
|
|
563
914
|
type: NgModule,
|
|
564
915
|
args: [{
|
|
565
|
-
imports: [
|
|
916
|
+
imports: [
|
|
917
|
+
PaymentAdminRoutingModule,
|
|
918
|
+
PaymentPlansModule,
|
|
919
|
+
GatewayPlansModule,
|
|
920
|
+
RequestsModule,
|
|
921
|
+
ProductsModule,
|
|
922
|
+
],
|
|
923
|
+
declarations: [],
|
|
566
924
|
}]
|
|
567
925
|
}] });
|
|
568
926
|
|