@osovitny/anatoly 3.17.85 → 3.17.86
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/esm2022/lib/billing/billing.module.mjs +17 -7
- package/esm2022/lib/billing/components/braintree/braintree.component.mjs +2 -2
- package/esm2022/lib/billing/components/exports.mjs +8 -5
- package/esm2022/lib/billing/components/index.mjs +7 -4
- package/esm2022/lib/billing/components/order-summary/order-summary.component.mjs +152 -0
- package/esm2022/lib/billing/components/payment-methods/payment-methods.component.mjs +105 -0
- package/esm2022/lib/billing/components/payment-options/payment-options.component.mjs +97 -0
- package/esm2022/lib/billing/components/stripe/stripe.component.mjs +2 -2
- package/esm2022/lib/billing/services/payments.service.mjs +2 -2
- package/esm2022/lib/billing/utils.mjs +2 -2
- package/esm2022/lib/core/consts/app-settings.mjs +2 -2
- package/esm2022/lib/core/consts/formats.mjs +2 -2
- package/esm2022/lib/core/consts/ga.mjs +2 -2
- package/esm2022/lib/core/consts/storageKeys.mjs +2 -2
- package/esm2022/lib/core/enums/billing.mjs +2 -2
- package/esm2022/lib/core/enums/enums.mjs +2 -2
- package/fesm2022/osovitny-anatoly.mjs +757 -418
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/billing/billing.module.d.ts +12 -8
- package/lib/billing/components/exports.d.ts +7 -4
- package/lib/billing/components/index.d.ts +2 -2
- package/lib/billing/components/order-summary/order-summary.component.d.ts +22 -0
- package/lib/billing/components/payment-methods/payment-methods.component.d.ts +20 -0
- package/lib/billing/components/payment-options/payment-options.component.d.ts +18 -0
- package/package.json +1 -1
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./components/
|
|
3
|
-
import * as i2 from "./components/
|
|
4
|
-
import * as i3 from "./components/
|
|
5
|
-
import * as i4 from "./components/
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
2
|
+
import * as i1 from "./components/order-summary/order-summary.component";
|
|
3
|
+
import * as i2 from "./components/payment-methods/payment-methods.component";
|
|
4
|
+
import * as i3 from "./components/payment-options/payment-options.component";
|
|
5
|
+
import * as i4 from "./components/paypal/paypal-button.component";
|
|
6
|
+
import * as i5 from "./components/paypal/paypal.component";
|
|
7
|
+
import * as i6 from "./components/braintree/braintree.component";
|
|
8
|
+
import * as i7 from "./components/stripe/stripe.component";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "@angular/forms";
|
|
11
|
+
import * as i10 from "../external/fa.module";
|
|
12
|
+
import * as i11 from "../external/kendo.module";
|
|
9
13
|
export declare class AnatolyBillingModule {
|
|
10
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnatolyBillingModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AnatolyBillingModule, [typeof i1.
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AnatolyBillingModule, [typeof i1.OrderSummaryComponent, typeof i2.PaymentMethodsComponent, typeof i3.PaymentOptionsComponent, typeof i4.PaypalButtonComponent, typeof i5.PayPalComponent, typeof i6.BraintreeDialog, typeof i7.StripeDialog], [typeof i8.CommonModule, typeof i9.ReactiveFormsModule, typeof i9.FormsModule, typeof i10.FaModule, typeof i11.KendoModule], [typeof i1.OrderSummaryComponent, typeof i2.PaymentMethodsComponent, typeof i3.PaymentOptionsComponent, typeof i4.PaypalButtonComponent, typeof i5.PayPalComponent, typeof i6.BraintreeDialog, typeof i7.StripeDialog]>;
|
|
12
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<AnatolyBillingModule>;
|
|
13
17
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from "./order-summary/order-summary.component";
|
|
2
|
+
export * from "./payment-methods/payment-methods.component";
|
|
3
|
+
export * from "./payment-options/payment-options.component";
|
|
4
|
+
export * from "./braintree/braintree.component";
|
|
5
|
+
export * from "./paypal/paypal-button.component";
|
|
6
|
+
export * from "./paypal/paypal.component";
|
|
7
|
+
export * from "./stripe/stripe.component";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PaypalButtonComponent, PayPalComponent, BraintreeDialog, StripeDialog } from
|
|
2
|
-
export declare const COMPONENTS: (typeof BraintreeDialog | typeof PaypalButtonComponent | typeof PayPalComponent | typeof StripeDialog)[];
|
|
1
|
+
import { OrderSummaryComponent, PaymentMethodsComponent, PaymentOptionsComponent, PaypalButtonComponent, PayPalComponent, BraintreeDialog, StripeDialog } from "./exports";
|
|
2
|
+
export declare const COMPONENTS: (typeof OrderSummaryComponent | typeof PaymentMethodsComponent | typeof PaymentOptionsComponent | typeof BraintreeDialog | typeof PaypalButtonComponent | typeof PayPalComponent | typeof StripeDialog)[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentBase } from "../../../ui/components/base/components/component";
|
|
2
|
+
import { PaymentsService } from "../../services/payments.service";
|
|
3
|
+
import { DiscountCodesApiService } from "../../../data/services/billing/discountcodes-api.service";
|
|
4
|
+
import { NotificationService } from "../../../core/notifications/services/notification-service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class OrderSummaryComponent extends ComponentBase {
|
|
7
|
+
ps: PaymentsService;
|
|
8
|
+
private api;
|
|
9
|
+
private ns;
|
|
10
|
+
showPromoCode: boolean;
|
|
11
|
+
promoCode: any;
|
|
12
|
+
discount: any;
|
|
13
|
+
constructor(ps: PaymentsService, api: DiscountCodesApiService, ns: NotificationService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
private setDefaults;
|
|
16
|
+
private setValues;
|
|
17
|
+
toTotal(): number;
|
|
18
|
+
onTogglePromoCode(): void;
|
|
19
|
+
onApplyPromoCode(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderSummaryComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrderSummaryComponent, "anatoly-billing-order-summary", never, {}, {}, never, ["*"], false, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentBase } from "../../../ui/components/base/components/component";
|
|
2
|
+
import { PaymentsService } from "../../services/payments.service";
|
|
3
|
+
import { PaymentMethod } from "../../../core/enums/billing";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PaymentMethodsComponent extends ComponentBase {
|
|
6
|
+
ps: PaymentsService;
|
|
7
|
+
paymentMethods: {
|
|
8
|
+
id: PaymentMethod;
|
|
9
|
+
title: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
selected: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
constructor(ps: PaymentsService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
private setDefaults;
|
|
16
|
+
private setValues;
|
|
17
|
+
onPaymentSelect(paymentMethod: any): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentMethodsComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaymentMethodsComponent, "anatoly-billing-payment-methods", never, {}, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { ComponentBase } from "../../../ui/components/base/components/component";
|
|
3
|
+
import { PaymentsService } from "../../services/payments.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PaymentOptionsComponent extends ComponentBase {
|
|
6
|
+
ps: PaymentsService;
|
|
7
|
+
priceWeekly: any;
|
|
8
|
+
priceUpfront: any;
|
|
9
|
+
numberOfWeeks: any;
|
|
10
|
+
change: EventEmitter<any>;
|
|
11
|
+
constructor(ps: PaymentsService);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
private setDefaults;
|
|
14
|
+
private setValues;
|
|
15
|
+
onPaymentTypeSelect(pt: any): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentOptionsComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaymentOptionsComponent, "anatoly-billing-payment-options", never, { "priceWeekly": { "alias": "priceWeekly"; "required": false; }; "priceUpfront": { "alias": "priceUpfront"; "required": false; }; "numberOfWeeks": { "alias": "numberOfWeeks"; "required": false; }; }, { "change": "change"; }, never, never, false, never>;
|
|
18
|
+
}
|