@osovitny/anatoly 3.19.29 → 3.19.31
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/fesm2022/osovitny-anatoly.mjs +62 -41
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/billing/components/pm/paypal/paypal-subscribe-button.component.d.ts +5 -12
- package/lib/billing/exports.d.ts +1 -0
- package/lib/billing/services/billing.service.d.ts +17 -0
- package/package.json +1 -1
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
2
|
import { ComponentBase } from '../../../../ui/components/base/components/component';
|
|
3
3
|
import { IPayPalConfig } from '../../../models/paypal-models';
|
|
4
|
-
import {
|
|
5
|
-
import { AppContextService } from '../../../../core/services/appcontext.service';
|
|
4
|
+
import { BillingService } from '../../../services/billing.service';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class PaypalSubscribeButtonComponent extends ComponentBase {
|
|
8
7
|
private zone;
|
|
9
|
-
private
|
|
10
|
-
private api;
|
|
8
|
+
private bs;
|
|
11
9
|
private _payPalPlanId;
|
|
12
10
|
payPalConfig?: IPayPalConfig;
|
|
13
|
-
paymentInProgress: boolean;
|
|
14
|
-
paymentFailed: boolean;
|
|
15
11
|
get payPalPlanId(): any;
|
|
16
12
|
set payPalPlanId(value: any);
|
|
17
13
|
quantity: any;
|
|
@@ -19,14 +15,11 @@ export declare class PaypalSubscribeButtonComponent extends ComponentBase {
|
|
|
19
15
|
addons: any;
|
|
20
16
|
price: any;
|
|
21
17
|
totalPrice: any;
|
|
22
|
-
|
|
23
|
-
constructor(zone: NgZone, appContext: AppContextService, api: SubscriptionsApiService);
|
|
18
|
+
constructor(zone: NgZone, bs: BillingService);
|
|
24
19
|
ngOnInit(): void;
|
|
25
20
|
private setDefaults;
|
|
26
21
|
private setValues;
|
|
27
|
-
private fireStatusChange;
|
|
28
22
|
private initPayPal;
|
|
29
|
-
private addSubscription;
|
|
30
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaypalSubscribeButtonComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PaypalSubscribeButtonComponent, "anatoly-billing-paypal-subscribe-button", never, { "payPalPlanId": { "alias": "payPalPlanId"; "required": false; }; "quantity": { "alias": "quantity"; "required": false; }; "planId": { "alias": "planId"; "required": false; }; "addons": { "alias": "addons"; "required": false; }; "price": { "alias": "price"; "required": false; }; "totalPrice": { "alias": "totalPrice"; "required": false; }; }, {
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaypalSubscribeButtonComponent, "anatoly-billing-paypal-subscribe-button", never, { "payPalPlanId": { "alias": "payPalPlanId"; "required": false; }; "quantity": { "alias": "quantity"; "required": false; }; "planId": { "alias": "planId"; "required": false; }; "addons": { "alias": "addons"; "required": false; }; "price": { "alias": "price"; "required": false; }; "totalPrice": { "alias": "totalPrice"; "required": false; }; }, {}, never, never, false, never>;
|
|
32
25
|
}
|
package/lib/billing/exports.d.ts
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
|
+
import { SubscriptionsApiService } from '../../data/services/billing/subscriptions-api.service';
|
|
3
|
+
import { AppContextService } from '../../core/services/appcontext.service';
|
|
4
|
+
import { SubscriptionProvider } from '../../core/enums';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class BillingService {
|
|
7
|
+
private zone;
|
|
8
|
+
private appContext;
|
|
9
|
+
private api;
|
|
10
|
+
private _subscriptionChange;
|
|
11
|
+
readonly _subscriptionChange$: import("rxjs").Observable<any>;
|
|
12
|
+
constructor(zone: NgZone, appContext: AppContextService, api: SubscriptionsApiService);
|
|
13
|
+
fireSubscriptionChange(paymentInProgress: any, paymentFailed: any): void;
|
|
14
|
+
addSubscription(sp: SubscriptionProvider, newSubscriptionId: any, planId: any, addons: any, price: any, totalPrice: any): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BillingService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BillingService>;
|
|
17
|
+
}
|