react-native-unit-components 2.0.2 → 2.2.0
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/android/build.gradle +0 -4
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js +31 -0
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.utils.js +9 -3
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js +31 -0
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.utils.js +8 -2
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.utils.js +2 -0
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js +1 -1
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.utils.js +3 -3
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js +6 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js +29 -8
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js +7 -1
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js +38 -8
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js +2 -0
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNCreateCardComponent/UNCreateCardComponent.js +84 -0
- package/lib/commonjs/components/UNCreateCardComponent/UNCreateCardComponent.js.map +1 -0
- package/lib/commonjs/components/UNCreateCardComponent/UNCreateCardComponent.utils.js +19 -0
- package/lib/commonjs/components/UNCreateCardComponent/UNCreateCardComponent.utils.js.map +1 -0
- package/lib/commonjs/components/UNCreateCardComponent/index.js +21 -0
- package/lib/commonjs/components/UNCreateCardComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +39 -8
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js +19 -3
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js.map +1 -1
- package/lib/commonjs/components/UNPayeeManagementComponent/UNPayeeManagementComponent.utils.js +2 -0
- package/lib/commonjs/components/UNPayeeManagementComponent/UNPayeeManagementComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.js.map +1 -1
- package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js +0 -2
- package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js.map +1 -1
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.js +2 -2
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/commonjs/messages/webMessages/cardMessage.js +1 -0
- package/lib/commonjs/messages/webMessages/cardMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/multipleCardsMessage.js +1 -0
- package/lib/commonjs/messages/webMessages/multipleCardsMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/onLoadMessage.js +1 -0
- package/lib/commonjs/messages/webMessages/onLoadMessage.js.map +1 -1
- package/lib/commonjs/scripts/html/bodyScript.js +82 -48
- package/lib/commonjs/scripts/html/bodyScript.js.map +1 -1
- package/lib/commonjs/slices/SharedEventsSlice.js.map +1 -1
- package/lib/commonjs/types/internal/bottomSheet.types.js +1 -0
- package/lib/commonjs/types/internal/bottomSheet.types.js.map +1 -1
- package/lib/commonjs/types/internal/webComponent.types.js +1 -0
- package/lib/commonjs/types/internal/webComponent.types.js.map +1 -1
- package/lib/commonjs/types/shared/account.types.js +6 -1
- package/lib/commonjs/types/shared/account.types.js.map +1 -1
- package/lib/commonjs/types/shared/createCard.types.js +21 -0
- package/lib/commonjs/types/shared/createCard.types.js.map +1 -0
- package/lib/commonjs/types/shared/customer.types.js +5 -5
- package/lib/commonjs/types/shared/customer.types.js.map +1 -1
- package/lib/commonjs/types/shared/index.js +11 -0
- package/lib/commonjs/types/shared/index.js.map +1 -1
- package/lib/commonjs/unitComponentsSdkManager/UnitComponentsSdk.constants.js +1 -1
- package/lib/commonjs/unitComponentsSdkManager/UnitComponentsSdkManager.js +1 -1
- package/lib/commonjs/webComponent/html.js +8 -0
- package/lib/commonjs/webComponent/html.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js +32 -1
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.utils.js +8 -3
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.utils.js.map +1 -1
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js +32 -1
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.utils.js +7 -2
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.utils.js.map +1 -1
- package/lib/module/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
- package/lib/module/components/UNAccountComponent/UNAccountComponent.utils.js +2 -0
- package/lib/module/components/UNAccountComponent/UNAccountComponent.utils.js.map +1 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js +2 -2
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.utils.js +1 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.utils.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js +5 -0
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js +30 -9
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js +7 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js +39 -9
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js.map +1 -1
- package/lib/module/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/module/components/UNCardComponent/UNCardComponent.utils.js +2 -0
- package/lib/module/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
- package/lib/module/components/UNCreateCardComponent/UNCreateCardComponent.js +76 -0
- package/lib/module/components/UNCreateCardComponent/UNCreateCardComponent.js.map +1 -0
- package/lib/module/components/UNCreateCardComponent/UNCreateCardComponent.utils.js +12 -0
- package/lib/module/components/UNCreateCardComponent/UNCreateCardComponent.utils.js.map +1 -0
- package/lib/module/components/UNCreateCardComponent/index.js +2 -0
- package/lib/module/components/UNCreateCardComponent/index.js.map +1 -0
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +40 -9
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js +15 -2
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js.map +1 -1
- package/lib/module/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js.map +1 -1
- package/lib/module/components/UNPayeeManagementComponent/UNPayeeManagementComponent.utils.js +3 -1
- package/lib/module/components/UNPayeeManagementComponent/UNPayeeManagementComponent.utils.js.map +1 -1
- package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.js.map +1 -1
- package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js +0 -2
- package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/helpers/BottomSheet/BottomSheet.js +2 -2
- package/lib/module/helpers/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/module/messages/webMessages/cardMessage.js +1 -0
- package/lib/module/messages/webMessages/cardMessage.js.map +1 -1
- package/lib/module/messages/webMessages/multipleCardsMessage.js +1 -0
- package/lib/module/messages/webMessages/multipleCardsMessage.js.map +1 -1
- package/lib/module/messages/webMessages/onLoadMessage.js +1 -0
- package/lib/module/messages/webMessages/onLoadMessage.js.map +1 -1
- package/lib/module/scripts/html/bodyScript.js +81 -47
- package/lib/module/scripts/html/bodyScript.js.map +1 -1
- package/lib/module/slices/SharedEventsSlice.js.map +1 -1
- package/lib/module/types/internal/bottomSheet.types.js +1 -0
- package/lib/module/types/internal/bottomSheet.types.js.map +1 -1
- package/lib/module/types/internal/webComponent.types.js +1 -0
- package/lib/module/types/internal/webComponent.types.js.map +1 -1
- package/lib/module/types/shared/account.types.js +5 -0
- package/lib/module/types/shared/account.types.js.map +1 -1
- package/lib/module/types/shared/createCard.types.js +14 -0
- package/lib/module/types/shared/createCard.types.js.map +1 -0
- package/lib/module/types/shared/customer.types.js +4 -4
- package/lib/module/types/shared/customer.types.js.map +1 -1
- package/lib/module/types/shared/index.js +1 -0
- package/lib/module/types/shared/index.js.map +1 -1
- package/lib/module/unitComponentsSdkManager/UnitComponentsSdk.constants.js +1 -1
- package/lib/module/unitComponentsSdkManager/UnitComponentsSdkManager.js +1 -1
- package/lib/module/webComponent/html.js +9 -1
- package/lib/module/webComponent/html.js.map +1 -1
- package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts +4 -2
- package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.d.ts +2 -0
- package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.d.ts.map +1 -1
- package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts +3 -2
- package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.d.ts +2 -0
- package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.d.ts.map +1 -1
- package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts +2 -1
- package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.utils.d.ts +1 -1
- package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.utils.d.ts.map +1 -1
- package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.utils.d.ts +1 -1
- package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.utils.d.ts.map +1 -1
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.d.ts +5 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.d.ts.map +1 -1
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.d.ts +2 -2
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.d.ts.map +1 -1
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts +2 -0
- package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNCardComponent/UNCardComponent.utils.d.ts.map +1 -1
- package/lib/typescript/src/components/UNCreateCardComponent/UNCreateCardComponent.d.ts +16 -0
- package/lib/typescript/src/components/UNCreateCardComponent/UNCreateCardComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNCreateCardComponent/UNCreateCardComponent.utils.d.ts +3 -0
- package/lib/typescript/src/components/UNCreateCardComponent/UNCreateCardComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNCreateCardComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNCreateCardComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts +2 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.d.ts +5 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.d.ts.map +1 -1
- package/lib/typescript/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.d.ts +1 -0
- package/lib/typescript/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.utils.d.ts.map +1 -1
- package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.d.ts +0 -1
- package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +1 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/messages/webMessages/cardMessage.d.ts +4 -2
- package/lib/typescript/src/messages/webMessages/cardMessage.d.ts.map +1 -1
- package/lib/typescript/src/messages/webMessages/multipleCardsMessage.d.ts +4 -2
- package/lib/typescript/src/messages/webMessages/multipleCardsMessage.d.ts.map +1 -1
- package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts +7 -3
- package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts.map +1 -1
- package/lib/typescript/src/messages/webMessages/unitComponentsMessages.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/unitComponentsMessages.d.ts.map +1 -1
- package/lib/typescript/src/scripts/html/bodyScript.d.ts +7 -2
- package/lib/typescript/src/scripts/html/bodyScript.d.ts.map +1 -1
- package/lib/typescript/src/slices/SharedEventsSlice.d.ts +11 -3
- package/lib/typescript/src/slices/SharedEventsSlice.d.ts.map +1 -1
- package/lib/typescript/src/store/store.d.ts +14 -2
- package/lib/typescript/src/store/store.d.ts.map +1 -1
- package/lib/typescript/src/types/internal/bottomSheet.types.d.ts +8 -2
- package/lib/typescript/src/types/internal/bottomSheet.types.d.ts.map +1 -1
- package/lib/typescript/src/types/internal/webComponent.types.d.ts +1 -0
- package/lib/typescript/src/types/internal/webComponent.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/account.types.d.ts +4 -0
- package/lib/typescript/src/types/shared/account.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/createCard.types.d.ts +166 -0
- package/lib/typescript/src/types/shared/createCard.types.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/customer.types.d.ts +3 -3
- package/lib/typescript/src/types/shared/customer.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/index.d.ts +1 -0
- package/lib/typescript/src/types/shared/index.d.ts.map +1 -1
- package/lib/typescript/src/webComponent/html.d.ts.map +1 -1
- package/lib/typescript/tests/e2e/app-tests.d.ts +2 -0
- package/lib/typescript/tests/e2e/app-tests.d.ts.map +1 -0
- package/lib/typescript/tests/e2e/component-tests.d.ts +2 -0
- package/lib/typescript/tests/e2e/component-tests.d.ts.map +1 -0
- package/lib/typescript/tests/e2e/main.test.d.ts +2 -0
- package/lib/typescript/tests/e2e/main.test.d.ts.map +1 -0
- package/lib/typescript/tests/utils.d.ts +3 -0
- package/lib/typescript/tests/utils.d.ts.map +1 -0
- package/package.json +9 -4
- package/src/components/UNACHCreditComponent/UNACHCreditComponent.tsx +36 -4
- package/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.ts +10 -3
- package/src/components/UNACHDebitComponent/UNACHDebitComponent.tsx +35 -4
- package/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.ts +9 -2
- package/src/components/UNAccountComponent/UNAccountComponent.tsx +3 -2
- package/src/components/UNAccountComponent/UNAccountComponent.utils.ts +2 -1
- package/src/components/UNActivityComponent/UNActivityComponent.tsx +2 -2
- package/src/components/UNActivityComponent/UNActivityComponent.utils.ts +1 -1
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.ts +6 -0
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.ts +32 -7
- package/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.tsx +8 -1
- package/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.tsx +54 -18
- package/src/components/UNCardComponent/UNCardComponent.tsx +2 -0
- package/src/components/UNCardComponent/UNCardComponent.utils.ts +4 -1
- package/src/components/UNCreateCardComponent/UNCreateCardComponent.tsx +94 -0
- package/src/components/UNCreateCardComponent/UNCreateCardComponent.utils.ts +14 -0
- package/src/components/UNCreateCardComponent/index.ts +1 -0
- package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.tsx +45 -9
- package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.ts +18 -2
- package/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.tsx +1 -0
- package/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.utils.ts +3 -1
- package/src/components/UNWirePaymentComponent/UNWirePaymentComponent.tsx +0 -1
- package/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.ts +0 -2
- package/src/components/index.ts +1 -0
- package/src/helpers/BottomSheet/BottomSheet.tsx +2 -2
- package/src/messages/webMessages/cardMessage.ts +6 -1
- package/src/messages/webMessages/multipleCardsMessage.ts +3 -1
- package/src/messages/webMessages/onLoadMessage.ts +9 -2
- package/src/messages/webMessages/unitComponentsMessages.ts +1 -0
- package/src/scripts/html/bodyScript.ts +84 -48
- package/src/slices/SharedEventsSlice.ts +15 -3
- package/src/types/internal/bottomSheet.types.ts +9 -1
- package/src/types/internal/webComponent.types.ts +1 -0
- package/src/types/shared/account.types.ts +5 -0
- package/src/types/shared/createCard.types.ts +187 -0
- package/src/types/shared/customer.types.ts +3 -3
- package/src/types/shared/index.ts +1 -0
- package/src/unitComponentsSdkManager/UnitComponentsSdk.constants.ts +1 -1
- package/src/unitComponentsSdkManager/UnitComponentsSdkManager.ts +1 -1
- package/src/webComponent/html.ts +11 -1
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { UNAccountType } from './account.types';
|
|
2
|
+
import { UNCustomerType } from './customer.types';
|
|
3
|
+
import { UNAddress, UNBusinessContact, UNFullName, UNPhone } from './types';
|
|
4
|
+
|
|
5
|
+
export enum UNCreateCardType {
|
|
6
|
+
Virtual = 'virtual',
|
|
7
|
+
Physical = 'physical',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type UNCreateCardComponentResources = {
|
|
11
|
+
type: 'createCardComponentResources'
|
|
12
|
+
attributes: {
|
|
13
|
+
accounts: UNCreateCardComponentAccount[]
|
|
14
|
+
customer: UNCreateCardCustomer
|
|
15
|
+
possibleCardholders: UNCardholder[]
|
|
16
|
+
resourceDiscovery: UNResourceDiscovery
|
|
17
|
+
bin?: UNBin[]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type UNCreateCardCustomer = UNCreateCardComponentIndividualCustomer | UNCreateCardComponentBusinessCustomer
|
|
22
|
+
|
|
23
|
+
export type UNCreateCardComponentIndividualCustomer = {
|
|
24
|
+
type: UNCustomerType.IndividualCustomer
|
|
25
|
+
attributes: {
|
|
26
|
+
fullName: UNFullName
|
|
27
|
+
address: UNAddress
|
|
28
|
+
dateOfBirth: Date
|
|
29
|
+
email: string
|
|
30
|
+
phone: UNPhone
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type UNCreateCardComponentBusinessCustomer = {
|
|
35
|
+
type: UNCustomerType.BusinessCustomer
|
|
36
|
+
attributes: {
|
|
37
|
+
name: UNFullName
|
|
38
|
+
address: UNAddress
|
|
39
|
+
phone: UNPhone
|
|
40
|
+
contact: UNBusinessContact
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type UNCreateCardComponentAccount = UNCreateCardComponentDepositAccount | UNCreateCardComponentCreditAccount
|
|
45
|
+
|
|
46
|
+
export type UNCreateCardComponentDepositAccount = {
|
|
47
|
+
type: UNAccountType.DepositAccount
|
|
48
|
+
id: string
|
|
49
|
+
attributes: {
|
|
50
|
+
name: string
|
|
51
|
+
tags: { [key: string]: string }
|
|
52
|
+
routingNumber: string
|
|
53
|
+
accountNumber: string
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type UNCreateCardComponentCreditAccount = {
|
|
58
|
+
type: UNAccountType.CreditAccount
|
|
59
|
+
id: string
|
|
60
|
+
attributes: {
|
|
61
|
+
name: string
|
|
62
|
+
tags: { [key: string]: string }
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type UNCardholderAttributes = {
|
|
67
|
+
fullName: UNFullName
|
|
68
|
+
address?: UNAddress
|
|
69
|
+
dateOfBirth?: Date
|
|
70
|
+
email?: string
|
|
71
|
+
phone?: UNPhone
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type UNCardholder = {
|
|
75
|
+
type: 'possibleCardholder'
|
|
76
|
+
attributes: UNCardholderAttributes
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface UNResourceDiscovery {
|
|
80
|
+
type: 'resourceDiscovery'
|
|
81
|
+
attributes: {
|
|
82
|
+
featureSettings?: UNFeatureSettings
|
|
83
|
+
accountManifest?: UNAccountManifest[]
|
|
84
|
+
legalLinks?: UNLegalLinks
|
|
85
|
+
brandName?: string
|
|
86
|
+
supportComponent?: UNSupportComponent
|
|
87
|
+
}
|
|
88
|
+
relationships: {
|
|
89
|
+
customer: {
|
|
90
|
+
data: {
|
|
91
|
+
type: 'customer'
|
|
92
|
+
id: string
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
accounts: {
|
|
96
|
+
data: UNRelationship[]
|
|
97
|
+
}
|
|
98
|
+
cards: {
|
|
99
|
+
data: UNRelationship[]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface UNFeatureSettings {
|
|
105
|
+
wirePayment?: {
|
|
106
|
+
enabled: boolean
|
|
107
|
+
}
|
|
108
|
+
achDebitPayment?: {
|
|
109
|
+
enabled: boolean
|
|
110
|
+
}
|
|
111
|
+
quickbooks?: {
|
|
112
|
+
enabled: boolean
|
|
113
|
+
}
|
|
114
|
+
sameDayAch?: {
|
|
115
|
+
enabled: boolean
|
|
116
|
+
}
|
|
117
|
+
appUsers?: {
|
|
118
|
+
enabled: boolean
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface UNAccountManifest {
|
|
123
|
+
type: 'depositAccountManifest'
|
|
124
|
+
attributes: {
|
|
125
|
+
accountId: string
|
|
126
|
+
bankName: string
|
|
127
|
+
maxNumberOfPhysicalCards?: number
|
|
128
|
+
maxNumberOfVirtualCards?: number
|
|
129
|
+
dailyCardWithdrawalLimit: number
|
|
130
|
+
dailyCardDepositLimit: number
|
|
131
|
+
dailyCardPurchaseLimit: number
|
|
132
|
+
outgoingWireFee: number
|
|
133
|
+
outgoingAchFee: number
|
|
134
|
+
sameDayAchFee: number
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface UNLegalLinks {
|
|
139
|
+
privacyPolicyUrl?: string
|
|
140
|
+
electronicDisclosuresUrl?: string
|
|
141
|
+
depositTermsUrl?: string
|
|
142
|
+
clientTermsUrl?: string
|
|
143
|
+
cardholderTermsUrl?: string
|
|
144
|
+
cashAdvancedTermsUrl?: string
|
|
145
|
+
debitCardDisclosureUrl?: string
|
|
146
|
+
additionalDisclosures?: UNAdditionalDisclosure[]
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type UNAdditionalDisclosure = {
|
|
150
|
+
title: string
|
|
151
|
+
url: string
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type UNSupportComponent = {
|
|
155
|
+
attributes: {
|
|
156
|
+
provider?: UNSupportType
|
|
157
|
+
widgetId?: string
|
|
158
|
+
widgetToken?: string
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export enum UNSupportType {
|
|
163
|
+
Zendesk = 'zendesk',
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
type UNRelationship = {
|
|
167
|
+
type: string
|
|
168
|
+
id: string
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export type UNBin = {
|
|
172
|
+
attributes: {
|
|
173
|
+
bin: string
|
|
174
|
+
institutionId: string
|
|
175
|
+
product: string
|
|
176
|
+
}
|
|
177
|
+
type: 'whiteLabelBinDto'
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function parseUNCreateCardTypes(input?: string | null): UNCreateCardType[] {
|
|
181
|
+
if (!input) return [];
|
|
182
|
+
|
|
183
|
+
return input
|
|
184
|
+
.split(',')
|
|
185
|
+
.map(s => s.trim())
|
|
186
|
+
.filter((s): s is UNCreateCardType => s in UNCreateCardType);
|
|
187
|
+
}
|
|
@@ -3,7 +3,7 @@ import { Permissible, UNAddress, UNBusinessContact, UNFullName, UNPhone } from '
|
|
|
3
3
|
export type UNCustomer = UNIndividualCustomer | UNBusinessCustomer
|
|
4
4
|
|
|
5
5
|
export type UNBusinessCustomer = {
|
|
6
|
-
type:
|
|
6
|
+
type: UNCustomerType.BusinessCustomer
|
|
7
7
|
id: string
|
|
8
8
|
attributes: {
|
|
9
9
|
createdAt: Date
|
|
@@ -41,7 +41,7 @@ export type UNBusinessCustomer = {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export type UNIndividualCustomer = {
|
|
44
|
-
type:
|
|
44
|
+
type: UNCustomerType.IndividualCustomer
|
|
45
45
|
id: string
|
|
46
46
|
attributes: {
|
|
47
47
|
createdAt: Date
|
|
@@ -84,7 +84,7 @@ export type UNIndividualCustomer = {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
export enum
|
|
87
|
+
export enum UNCustomerType {
|
|
88
88
|
IndividualCustomer = 'individualCustomer',
|
|
89
89
|
BusinessCustomer = 'businessCustomer',
|
|
90
90
|
}
|
|
@@ -4,7 +4,7 @@ import { UNComponentsSecuritySettings, UNComponentsSnapshotProtectionStrategy }
|
|
|
4
4
|
const WEB_SDK_RECOMMENDED_STRATEGY: UNComponentsWebVersioningStrategy = {
|
|
5
5
|
type: UNVersioningStrategyType.upToNextMinor,
|
|
6
6
|
major: 2,
|
|
7
|
-
minor:
|
|
7
|
+
minor: 5,
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
const DEFAULT_SECURITY_SETTINGS: UNComponentsSecuritySettings = {
|
|
@@ -25,7 +25,7 @@ export class UnitComponentsSDK {
|
|
|
25
25
|
protected static fonts?: UNFonts;
|
|
26
26
|
protected static signedNonce?: string;
|
|
27
27
|
protected static pushProvisionModule?: typeof NativeModules;
|
|
28
|
-
protected static sdkVersion = '2.0
|
|
28
|
+
protected static sdkVersion = '2.2.0';
|
|
29
29
|
|
|
30
30
|
public static init = async (
|
|
31
31
|
env: UNComponentsEnvironment,
|
package/src/webComponent/html.ts
CHANGED
|
@@ -12,7 +12,9 @@ import {
|
|
|
12
12
|
DISPATCH_REQUEST_HIDE_SENSITIVE_DATA,
|
|
13
13
|
SET_ITEM_IN_WINDOW_UNIT_STORE,
|
|
14
14
|
DISPATCH_EVENT_TO_CONTINUE,
|
|
15
|
-
DISPATCH_CARD_STATUS_CHANGED
|
|
15
|
+
DISPATCH_CARD_STATUS_CHANGED,
|
|
16
|
+
DISPATCH_MULTIPLE_CARDS_FILTER_CHANGED_EVENT,
|
|
17
|
+
DISPATCH_CARD_CREATED_EVENT,
|
|
16
18
|
} from '../scripts/html/bodyScript';
|
|
17
19
|
|
|
18
20
|
export const HTML_PLACEHOLDER = {
|
|
@@ -74,6 +76,8 @@ const htmlText = `
|
|
|
74
76
|
|
|
75
77
|
${LISTENERS.cardStatusChange}
|
|
76
78
|
|
|
79
|
+
${LISTENERS.cardCreated}
|
|
80
|
+
|
|
77
81
|
${LISTENERS.unitCounterpartyDeleted}
|
|
78
82
|
|
|
79
83
|
${LISTENERS.unitRequestExternalSdk}
|
|
@@ -84,6 +88,8 @@ const htmlText = `
|
|
|
84
88
|
|
|
85
89
|
${LISTENERS.unitActivityFiltersChanged}
|
|
86
90
|
|
|
91
|
+
${LISTENERS.unitMultipleCardsFiltersChanged}
|
|
92
|
+
|
|
87
93
|
${LISTENERS.unitMultiFactorAuthFinished}
|
|
88
94
|
|
|
89
95
|
${LISTENERS.unitUnauthorizedToken}
|
|
@@ -104,6 +110,10 @@ const htmlText = `
|
|
|
104
110
|
|
|
105
111
|
${DISPATCH_ACTIVITY_FILTER_CHANGED_EVENT}
|
|
106
112
|
|
|
113
|
+
${DISPATCH_MULTIPLE_CARDS_FILTER_CHANGED_EVENT}
|
|
114
|
+
|
|
115
|
+
${DISPATCH_CARD_CREATED_EVENT}
|
|
116
|
+
|
|
107
117
|
${DISPATCH_REQUEST_ACCOUNT_ACTION}
|
|
108
118
|
|
|
109
119
|
${SET_ITEM_IN_WINDOW_UNIT_STORE}
|