Skip to content

Commit

Permalink
feat: add enum for next actions and event names
Browse files Browse the repository at this point in the history
  • Loading branch information
ekireevxs committed Apr 2, 2024
1 parent d070787 commit 4f508ba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/core/actions/next-action-type.enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export enum NextActionType {
checkStatus = 'check_status',
showFields = 'show_fields',
statusUpdated = 'status_updated',
showErrors = 'show_errors',
redirect = 'redirect',
threeDS = '3DS',
specialButton = 'special_button',
showQrCode = 'show_qr_code',
showMobilePaymentScreen = 'show_mobile_payment_screen',
}
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ import './styles/style.scss';
export { headlessCheckout } from './features/headless-checkout/headless-checkout.instance';
export * from './web-components';
export { Lang } from './core/i18n/lang.enum';
export { EventName } from './core/event-name.enum';
export { NextActionType } from './core/actions/next-action-type.enum';

0 comments on commit 4f508ba

Please sign in to comment.