/// import { Action } from '@ngrx/store'; import PaymentIntent = stripe.paymentIntents.PaymentIntent; import ConfirmCardPaymentData = stripe.ConfirmCardPaymentData; import PaymentIntentResponse = stripe.PaymentIntentResponse; import { StripeFormComponent } from '../stripe-form/stripe-form.component'; export declare enum StripeElementsActionTypes { STRIPE_PAY = "[STRIPE_ELEMENTS] Pay", STRIPE_PAY_SUCCESS = "[STRIPE_ELEMENTS] Pay Success", STRIPE_PAY_FAIL = "[STRIPE_ELEMENTS] Pay Fail", CREATE_PAYMENT_INTENT = "[STRIPE_ELEMENTS] Create Payment Intent", CREATE_PAYMENT_INTENT_SUCCESS = "[STRIPE_ELEMENTS] Create Payment Intent Success", CREATE_PAYMENT_INTENT_FAIL = "[STRIPE_ELEMENTS] Create Payment Intent Fail" } export declare class StripePay implements Action { payload: any; stripeElements: StripeFormComponent; paymentData?: ConfirmCardPaymentData; readonly type = StripeElementsActionTypes.STRIPE_PAY; constructor(payload: any, stripeElements: StripeFormComponent, paymentData?: ConfirmCardPaymentData); } export declare class StripePaySuccess implements Action { payload: PaymentIntentResponse; readonly type = StripeElementsActionTypes.STRIPE_PAY_SUCCESS; constructor(payload: PaymentIntentResponse); } export declare class StripePayFail implements Action { payload: Error; readonly type = StripeElementsActionTypes.STRIPE_PAY_FAIL; constructor(payload: Error); } export declare class CreatePaymentIntent implements Action { payload: any; readonly type = StripeElementsActionTypes.CREATE_PAYMENT_INTENT; constructor(payload: any, stripeElements: StripeFormComponent); } export declare class CreatePaymentIntentSuccess implements Action { payload: PaymentIntent; stripeElements: StripeFormComponent; paymentData?: ConfirmCardPaymentData; readonly type = StripeElementsActionTypes.CREATE_PAYMENT_INTENT_SUCCESS; constructor(payload: PaymentIntent, stripeElements: StripeFormComponent, paymentData?: ConfirmCardPaymentData); } export declare class CreatePaymentIntentFail implements Action { payload: Error; readonly type = StripeElementsActionTypes.CREATE_PAYMENT_INTENT_FAIL; constructor(payload: Error); } export declare type StripeElementsActions = StripePay | StripePaySuccess | StripePayFail | CreatePaymentIntent | CreatePaymentIntentSuccess | CreatePaymentIntentFail;