@volo/abp.ng.payment 5.0.0-beta.1 → 5.0.0-rc.2
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,4 +1,5 @@
|
|
|
1
1
|
import * as i1 from '@abp/ng.core';
|
|
2
|
+
import { mapEnumToOptions } from '@abp/ng.core';
|
|
2
3
|
import * as i0 from '@angular/core';
|
|
3
4
|
import { Injectable } from '@angular/core';
|
|
4
5
|
|
|
@@ -51,9 +52,33 @@ class PlanAdminService {
|
|
|
51
52
|
}, { apiName: this.apiName });
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
PlanAdminService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
55
|
-
PlanAdminService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
55
|
+
PlanAdminService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PlanAdminService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
56
|
+
PlanAdminService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PlanAdminService, providedIn: 'root' });
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PlanAdminService, decorators: [{
|
|
58
|
+
type: Injectable,
|
|
59
|
+
args: [{
|
|
60
|
+
providedIn: 'root',
|
|
61
|
+
}]
|
|
62
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
63
|
+
|
|
64
|
+
class PaymentRequestAdminService {
|
|
65
|
+
constructor(restService) {
|
|
66
|
+
this.restService = restService;
|
|
67
|
+
this.apiName = 'AbpPaymentAdmin';
|
|
68
|
+
this.get = (id) => this.restService.request({
|
|
69
|
+
method: 'GET',
|
|
70
|
+
url: `/api/payment-admin/payment-requests/${id}`,
|
|
71
|
+
}, { apiName: this.apiName });
|
|
72
|
+
this.getList = (input) => this.restService.request({
|
|
73
|
+
method: 'GET',
|
|
74
|
+
url: '/api/payment-admin/payment-requests',
|
|
75
|
+
params: { filter: input.filter, creationDateMax: input.creationDateMax, creationDateMin: input.creationDateMin, paymentType: input.paymentType, status: input.status, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
76
|
+
}, { apiName: this.apiName });
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
PaymentRequestAdminService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentRequestAdminService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
80
|
+
PaymentRequestAdminService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentRequestAdminService, providedIn: 'root' });
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PaymentRequestAdminService, decorators: [{
|
|
57
82
|
type: Injectable,
|
|
58
83
|
args: [{
|
|
59
84
|
providedIn: 'root',
|
|
@@ -74,9 +99,9 @@ class GatewayService {
|
|
|
74
99
|
}, { apiName: this.apiName });
|
|
75
100
|
}
|
|
76
101
|
}
|
|
77
|
-
GatewayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
78
|
-
GatewayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
102
|
+
GatewayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: GatewayService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
103
|
+
GatewayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: GatewayService, providedIn: 'root' });
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: GatewayService, decorators: [{
|
|
80
105
|
type: Injectable,
|
|
81
106
|
args: [{
|
|
82
107
|
providedIn: 'root',
|
|
@@ -97,18 +122,34 @@ class PlanService {
|
|
|
97
122
|
}, { apiName: this.apiName });
|
|
98
123
|
}
|
|
99
124
|
}
|
|
100
|
-
PlanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
101
|
-
PlanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
125
|
+
PlanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PlanService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
126
|
+
PlanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PlanService, providedIn: 'root' });
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: PlanService, decorators: [{
|
|
103
128
|
type: Injectable,
|
|
104
129
|
args: [{
|
|
105
130
|
providedIn: 'root',
|
|
106
131
|
}]
|
|
107
132
|
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
108
133
|
|
|
134
|
+
var PaymentRequestState;
|
|
135
|
+
(function (PaymentRequestState) {
|
|
136
|
+
PaymentRequestState[PaymentRequestState["Waiting"] = 0] = "Waiting";
|
|
137
|
+
PaymentRequestState[PaymentRequestState["Completed"] = 1] = "Completed";
|
|
138
|
+
PaymentRequestState[PaymentRequestState["Failed"] = 2] = "Failed";
|
|
139
|
+
PaymentRequestState[PaymentRequestState["Refunded"] = 3] = "Refunded";
|
|
140
|
+
})(PaymentRequestState || (PaymentRequestState = {}));
|
|
141
|
+
const paymentRequestStateOptions = mapEnumToOptions(PaymentRequestState);
|
|
142
|
+
|
|
143
|
+
var PaymentType;
|
|
144
|
+
(function (PaymentType) {
|
|
145
|
+
PaymentType[PaymentType["OneTime"] = 0] = "OneTime";
|
|
146
|
+
PaymentType[PaymentType["Subscription"] = 1] = "Subscription";
|
|
147
|
+
})(PaymentType || (PaymentType = {}));
|
|
148
|
+
const paymentTypeOptions = mapEnumToOptions(PaymentType);
|
|
149
|
+
|
|
109
150
|
/**
|
|
110
151
|
* Generated bundle index. Do not edit.
|
|
111
152
|
*/
|
|
112
153
|
|
|
113
|
-
export { GatewayService, PlanAdminService, PlanService };
|
|
154
|
+
export { GatewayService, PaymentRequestAdminService, PaymentRequestState, PaymentType, PlanAdminService, PlanService, paymentRequestStateOptions, paymentTypeOptions };
|
|
114
155
|
//# sourceMappingURL=volo-abp.ng.payment-proxy.js.map
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volo/abp.ng.payment",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-rc.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@abp/ng.core": ">=5.0.0-
|
|
6
|
-
"@abp/ng.theme-shared": ">=
|
|
5
|
+
"@abp/ng.core": ">=5.0.0-rc.2",
|
|
6
|
+
"@abp/ng.theme-shared": ">=5.0.0-beta.3-1",
|
|
7
7
|
"@angular/common": ">=12.0.0",
|
|
8
8
|
"@angular/core": ">=12.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@volo/abp.commercial.ng.ui": "~5.0.0-
|
|
11
|
+
"@volo/abp.commercial.ng.ui": "~5.0.0-rc.2",
|
|
12
12
|
"tslib": "^2.0.0"
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|
package/proxy/lib/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PagedAndSortedResultRequestDto } from '@abp/ng.core';
|
|
2
|
+
import type { PaymentType } from '../../requests/payment-type.enum';
|
|
3
|
+
import type { PaymentRequestState } from '../../requests/payment-request-state.enum';
|
|
4
|
+
export interface PaymentRequestGetListInput extends PagedAndSortedResultRequestDto {
|
|
5
|
+
filter?: string;
|
|
6
|
+
creationDateMax?: string;
|
|
7
|
+
creationDateMin?: string;
|
|
8
|
+
paymentType?: PaymentType;
|
|
9
|
+
status?: PaymentRequestState;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PaymentRequestGetListInput } from './models';
|
|
2
|
+
import { RestService } from '@abp/ng.core';
|
|
3
|
+
import type { PagedResultDto } from '@abp/ng.core';
|
|
4
|
+
import type { PaymentRequestWithDetailsDto } from '../../requests/models';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PaymentRequestAdminService {
|
|
7
|
+
private restService;
|
|
8
|
+
apiName: string;
|
|
9
|
+
get: (id: string) => import("rxjs").Observable<PaymentRequestWithDetailsDto>;
|
|
10
|
+
getList: (input: PaymentRequestGetListInput) => import("rxjs").Observable<PagedResultDto<PaymentRequestWithDetailsDto>>;
|
|
11
|
+
constructor(restService: RestService);
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentRequestAdminService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PaymentRequestAdminService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { PaymentType } from './payment-type.enum';
|
|
2
|
+
import type { ExtensibleEntityDto } from '@abp/ng.core';
|
|
3
|
+
import type { PaymentRequestState } from './payment-request-state.enum';
|
|
4
|
+
export interface PaymentRequestProductDto {
|
|
5
|
+
paymentRequestId?: string;
|
|
6
|
+
code?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
unitPrice: number;
|
|
9
|
+
count: number;
|
|
10
|
+
totalPrice: number;
|
|
11
|
+
paymentType: PaymentType;
|
|
12
|
+
planId?: string;
|
|
13
|
+
extraProperties: Record<string, object>;
|
|
14
|
+
}
|
|
15
|
+
export interface PaymentRequestWithDetailsDto extends ExtensibleEntityDto<string> {
|
|
16
|
+
products: PaymentRequestProductDto[];
|
|
17
|
+
currency?: string;
|
|
18
|
+
state: PaymentRequestState;
|
|
19
|
+
failReason?: string;
|
|
20
|
+
emailSendDate?: string;
|
|
21
|
+
gateway?: string;
|
|
22
|
+
externalSubscriptionId?: string;
|
|
23
|
+
totalPrice: number;
|
|
24
|
+
creationTime?: string;
|
|
25
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
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"}]);
|
|
@@ -1 +0,0 @@
|
|
|
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"}]);
|
|
@@ -1 +0,0 @@
|
|
|
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"}]);
|
|
@@ -1 +0,0 @@
|
|
|
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"}]);
|