@networkinternational/ni-card-management-sdk 1.0.2
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/LICENSE +21 -0
- package/README.md +651 -0
- package/android/build.gradle +95 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/nicardmanagement/JsonDeserialization.kt +24 -0
- package/android/src/main/java/com/nicardmanagement/NiCardManagementModule.kt +163 -0
- package/android/src/main/java/com/nicardmanagement/NiCardManagementPackage.kt +17 -0
- package/ios/NiCardManagement-Bridging-Header.h +2 -0
- package/ios/NiCardManagement.mm +29 -0
- package/ios/NiCardManagement.swift +142 -0
- package/lib/commonjs/NICardManagementComponents/CardDetailsComponent.js +71 -0
- package/lib/commonjs/NICardManagementComponents/CardDetailsComponent.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/ChangePinView.js +44 -0
- package/lib/commonjs/NICardManagementComponents/ChangePinView.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/NiInputInterfaces.js +17 -0
- package/lib/commonjs/NICardManagementComponents/NiInputInterfaces.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/SetPinView.js +44 -0
- package/lib/commonjs/NICardManagementComponents/SetPinView.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/VerifyPinView.js +44 -0
- package/lib/commonjs/NICardManagementComponents/VerifyPinView.js.map +1 -0
- package/lib/commonjs/NICardManagementComponents/ViewPinComponent.js +52 -0
- package/lib/commonjs/NICardManagementComponents/ViewPinComponent.js.map +1 -0
- package/lib/commonjs/assets/icons/content-copy.png +0 -0
- package/lib/commonjs/assets/icons/eye-off-outline.png +0 -0
- package/lib/commonjs/assets/icons/eye-outline.png +0 -0
- package/lib/commonjs/assets/icons/icons8-arrow-100.png +0 -0
- package/lib/commonjs/assets/icons/icons8-arrow-100_1.png +0 -0
- package/lib/commonjs/assets/icons/red-eye-off-outline.png +0 -0
- package/lib/commonjs/assets/icons/red-eye-outline.png +0 -0
- package/lib/commonjs/assets/images/grayCard.png +0 -0
- package/lib/commonjs/components/CardDetails/CardDetails.js +27 -0
- package/lib/commonjs/components/CardDetails/CardDetails.js.map +1 -0
- package/lib/commonjs/components/CardDetails/CardDetailsBackgroundImage.js +29 -0
- package/lib/commonjs/components/CardDetails/CardDetailsBackgroundImage.js.map +1 -0
- package/lib/commonjs/components/CardDetails/CardDetailsGroups.js +94 -0
- package/lib/commonjs/components/CardDetails/CardDetailsGroups.js.map +1 -0
- package/lib/commonjs/components/CardDetails/CardHolderNameGroups.js +67 -0
- package/lib/commonjs/components/CardDetails/CardHolderNameGroups.js.map +1 -0
- package/lib/commonjs/components/CardDetails/CardNumberGroup.js +69 -0
- package/lib/commonjs/components/CardDetails/CardNumberGroup.js.map +1 -0
- package/lib/commonjs/components/CardDetails/DateCVVGroupOneRow.js +104 -0
- package/lib/commonjs/components/CardDetails/DateCVVGroupOneRow.js.map +1 -0
- package/lib/commonjs/components/CardDetails/styles.js +98 -0
- package/lib/commonjs/components/CardDetails/styles.js.map +1 -0
- package/lib/commonjs/components/ChangePin/CaptureCurrentPin.js +50 -0
- package/lib/commonjs/components/ChangePin/CaptureCurrentPin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/CaptureNewPin.js +50 -0
- package/lib/commonjs/components/ChangePin/CaptureNewPin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/ChangePin.js +135 -0
- package/lib/commonjs/components/ChangePin/ChangePin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/ConfirmPin.js +39 -0
- package/lib/commonjs/components/ChangePin/ConfirmPin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/ReenterNewPin.js +53 -0
- package/lib/commonjs/components/ChangePin/ReenterNewPin.js.map +1 -0
- package/lib/commonjs/components/ChangePin/styles.js +29 -0
- package/lib/commonjs/components/ChangePin/styles.js.map +1 -0
- package/lib/commonjs/components/NIButton/NIButton.js +46 -0
- package/lib/commonjs/components/NIButton/NIButton.js.map +1 -0
- package/lib/commonjs/components/NIButton/styles.js +15 -0
- package/lib/commonjs/components/NIButton/styles.js.map +1 -0
- package/lib/commonjs/components/Pin/CapturePin.js +152 -0
- package/lib/commonjs/components/Pin/CapturePin.js.map +1 -0
- package/lib/commonjs/components/Pin/NextButton.js +40 -0
- package/lib/commonjs/components/Pin/NextButton.js.map +1 -0
- package/lib/commonjs/components/Pin/ShowHideButton.js +48 -0
- package/lib/commonjs/components/Pin/ShowHideButton.js.map +1 -0
- package/lib/commonjs/components/Pin/styles.js +61 -0
- package/lib/commonjs/components/Pin/styles.js.map +1 -0
- package/lib/commonjs/components/PinState/LoadingState.js +29 -0
- package/lib/commonjs/components/PinState/LoadingState.js.map +1 -0
- package/lib/commonjs/components/PinState/PinState.js +29 -0
- package/lib/commonjs/components/PinState/PinState.js.map +1 -0
- package/lib/commonjs/components/SetPin/ConfirmPin.js +39 -0
- package/lib/commonjs/components/SetPin/ConfirmPin.js.map +1 -0
- package/lib/commonjs/components/SetPin/ReenterCardPin.js +53 -0
- package/lib/commonjs/components/SetPin/ReenterCardPin.js.map +1 -0
- package/lib/commonjs/components/SetPin/SetPin.js +118 -0
- package/lib/commonjs/components/SetPin/SetPin.js.map +1 -0
- package/lib/commonjs/components/SetPin/SetUpNewCardPin.js +50 -0
- package/lib/commonjs/components/SetPin/SetUpNewCardPin.js.map +1 -0
- package/lib/commonjs/components/SetPin/styles.js +29 -0
- package/lib/commonjs/components/SetPin/styles.js.map +1 -0
- package/lib/commonjs/components/VerifyPin/CaptureVerifyPin.js +50 -0
- package/lib/commonjs/components/VerifyPin/CaptureVerifyPin.js.map +1 -0
- package/lib/commonjs/components/VerifyPin/ConfirmPin.js +40 -0
- package/lib/commonjs/components/VerifyPin/ConfirmPin.js.map +1 -0
- package/lib/commonjs/components/VerifyPin/VerifyPin.js +92 -0
- package/lib/commonjs/components/VerifyPin/VerifyPin.js.map +1 -0
- package/lib/commonjs/components/VerifyPin/styles.js +26 -0
- package/lib/commonjs/components/VerifyPin/styles.js.map +1 -0
- package/lib/commonjs/components/ViewPin/ViewPin.js +76 -0
- package/lib/commonjs/components/ViewPin/ViewPin.js.map +1 -0
- package/lib/commonjs/components/ViewPin/styles.js +19 -0
- package/lib/commonjs/components/ViewPin/styles.js.map +1 -0
- package/lib/commonjs/components/icons/PredeterminedIcon.js +43 -0
- package/lib/commonjs/components/icons/PredeterminedIcon.js.map +1 -0
- package/lib/commonjs/config/configCard.js +9 -0
- package/lib/commonjs/config/configCard.js.map +1 -0
- package/lib/commonjs/config/localization.js +47 -0
- package/lib/commonjs/config/localization.js.map +1 -0
- package/lib/commonjs/config/themeColors.js +34 -0
- package/lib/commonjs/config/themeColors.js.map +1 -0
- package/lib/commonjs/hooks/useChangePin.js +37 -0
- package/lib/commonjs/hooks/useChangePin.js.map +1 -0
- package/lib/commonjs/hooks/useGetCardDetails.js +37 -0
- package/lib/commonjs/hooks/useGetCardDetails.js.map +1 -0
- package/lib/commonjs/hooks/useSetPin.js +37 -0
- package/lib/commonjs/hooks/useSetPin.js.map +1 -0
- package/lib/commonjs/hooks/useVerifyPin.js +37 -0
- package/lib/commonjs/hooks/useVerifyPin.js.map +1 -0
- package/lib/commonjs/hooks/useViewPin.js +37 -0
- package/lib/commonjs/hooks/useViewPin.js.map +1 -0
- package/lib/commonjs/index.js +72 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/interfaces/NiCardManagementInterfaces.js +2 -0
- package/lib/commonjs/interfaces/NiCardManagementInterfaces.js.map +1 -0
- package/lib/commonjs/interfaces/NiInputInterfaces.js +39 -0
- package/lib/commonjs/interfaces/NiInputInterfaces.js.map +1 -0
- package/lib/commonjs/interfaces/NiInterfaces.js +14 -0
- package/lib/commonjs/interfaces/NiInterfaces.js.map +1 -0
- package/lib/commonjs/nativeComponents/NICardManagementSDKModule.js +9 -0
- package/lib/commonjs/nativeComponents/NICardManagementSDKModule.js.map +1 -0
- package/lib/commonjs/utils/formatInput.js +10 -0
- package/lib/commonjs/utils/formatInput.js.map +1 -0
- package/lib/commonjs/utils/localization.js +13 -0
- package/lib/commonjs/utils/localization.js.map +1 -0
- package/lib/module/NICardManagementComponents/CardDetailsComponent.js +57 -0
- package/lib/module/NICardManagementComponents/CardDetailsComponent.js.map +1 -0
- package/lib/module/NICardManagementComponents/ChangePinView.js +32 -0
- package/lib/module/NICardManagementComponents/ChangePinView.js.map +1 -0
- package/lib/module/NICardManagementComponents/NiInputInterfaces.js +3 -0
- package/lib/module/NICardManagementComponents/NiInputInterfaces.js.map +1 -0
- package/lib/module/NICardManagementComponents/SetPinView.js +32 -0
- package/lib/module/NICardManagementComponents/SetPinView.js.map +1 -0
- package/lib/module/NICardManagementComponents/VerifyPinView.js +32 -0
- package/lib/module/NICardManagementComponents/VerifyPinView.js.map +1 -0
- package/lib/module/NICardManagementComponents/ViewPinComponent.js +38 -0
- package/lib/module/NICardManagementComponents/ViewPinComponent.js.map +1 -0
- package/lib/module/assets/icons/content-copy.png +0 -0
- package/lib/module/assets/icons/eye-off-outline.png +0 -0
- package/lib/module/assets/icons/eye-outline.png +0 -0
- package/lib/module/assets/icons/icons8-arrow-100.png +0 -0
- package/lib/module/assets/icons/icons8-arrow-100_1.png +0 -0
- package/lib/module/assets/icons/red-eye-off-outline.png +0 -0
- package/lib/module/assets/icons/red-eye-outline.png +0 -0
- package/lib/module/assets/images/grayCard.png +0 -0
- package/lib/module/components/CardDetails/CardDetails.js +20 -0
- package/lib/module/components/CardDetails/CardDetails.js.map +1 -0
- package/lib/module/components/CardDetails/CardDetailsBackgroundImage.js +22 -0
- package/lib/module/components/CardDetails/CardDetailsBackgroundImage.js.map +1 -0
- package/lib/module/components/CardDetails/CardDetailsGroups.js +85 -0
- package/lib/module/components/CardDetails/CardDetailsGroups.js.map +1 -0
- package/lib/module/components/CardDetails/CardHolderNameGroups.js +60 -0
- package/lib/module/components/CardDetails/CardHolderNameGroups.js.map +1 -0
- package/lib/module/components/CardDetails/CardNumberGroup.js +62 -0
- package/lib/module/components/CardDetails/CardNumberGroup.js.map +1 -0
- package/lib/module/components/CardDetails/DateCVVGroupOneRow.js +97 -0
- package/lib/module/components/CardDetails/DateCVVGroupOneRow.js.map +1 -0
- package/lib/module/components/CardDetails/styles.js +92 -0
- package/lib/module/components/CardDetails/styles.js.map +1 -0
- package/lib/module/components/ChangePin/CaptureCurrentPin.js +43 -0
- package/lib/module/components/ChangePin/CaptureCurrentPin.js.map +1 -0
- package/lib/module/components/ChangePin/CaptureNewPin.js +43 -0
- package/lib/module/components/ChangePin/CaptureNewPin.js.map +1 -0
- package/lib/module/components/ChangePin/ChangePin.js +126 -0
- package/lib/module/components/ChangePin/ChangePin.js.map +1 -0
- package/lib/module/components/ChangePin/ConfirmPin.js +32 -0
- package/lib/module/components/ChangePin/ConfirmPin.js.map +1 -0
- package/lib/module/components/ChangePin/ReenterNewPin.js +46 -0
- package/lib/module/components/ChangePin/ReenterNewPin.js.map +1 -0
- package/lib/module/components/ChangePin/styles.js +23 -0
- package/lib/module/components/ChangePin/styles.js.map +1 -0
- package/lib/module/components/NIButton/NIButton.js +38 -0
- package/lib/module/components/NIButton/NIButton.js.map +1 -0
- package/lib/module/components/NIButton/styles.js +9 -0
- package/lib/module/components/NIButton/styles.js.map +1 -0
- package/lib/module/components/Pin/CapturePin.js +143 -0
- package/lib/module/components/Pin/CapturePin.js.map +1 -0
- package/lib/module/components/Pin/NextButton.js +33 -0
- package/lib/module/components/Pin/NextButton.js.map +1 -0
- package/lib/module/components/Pin/ShowHideButton.js +41 -0
- package/lib/module/components/Pin/ShowHideButton.js.map +1 -0
- package/lib/module/components/Pin/styles.js +55 -0
- package/lib/module/components/Pin/styles.js.map +1 -0
- package/lib/module/components/PinState/LoadingState.js +22 -0
- package/lib/module/components/PinState/LoadingState.js.map +1 -0
- package/lib/module/components/PinState/PinState.js +22 -0
- package/lib/module/components/PinState/PinState.js.map +1 -0
- package/lib/module/components/SetPin/ConfirmPin.js +32 -0
- package/lib/module/components/SetPin/ConfirmPin.js.map +1 -0
- package/lib/module/components/SetPin/ReenterCardPin.js +46 -0
- package/lib/module/components/SetPin/ReenterCardPin.js.map +1 -0
- package/lib/module/components/SetPin/SetPin.js +109 -0
- package/lib/module/components/SetPin/SetPin.js.map +1 -0
- package/lib/module/components/SetPin/SetUpNewCardPin.js +43 -0
- package/lib/module/components/SetPin/SetUpNewCardPin.js.map +1 -0
- package/lib/module/components/SetPin/styles.js +23 -0
- package/lib/module/components/SetPin/styles.js.map +1 -0
- package/lib/module/components/VerifyPin/CaptureVerifyPin.js +43 -0
- package/lib/module/components/VerifyPin/CaptureVerifyPin.js.map +1 -0
- package/lib/module/components/VerifyPin/ConfirmPin.js +33 -0
- package/lib/module/components/VerifyPin/ConfirmPin.js.map +1 -0
- package/lib/module/components/VerifyPin/VerifyPin.js +83 -0
- package/lib/module/components/VerifyPin/VerifyPin.js.map +1 -0
- package/lib/module/components/VerifyPin/styles.js +20 -0
- package/lib/module/components/VerifyPin/styles.js.map +1 -0
- package/lib/module/components/ViewPin/ViewPin.js +67 -0
- package/lib/module/components/ViewPin/ViewPin.js.map +1 -0
- package/lib/module/components/ViewPin/styles.js +13 -0
- package/lib/module/components/ViewPin/styles.js.map +1 -0
- package/lib/module/components/icons/PredeterminedIcon.js +35 -0
- package/lib/module/components/icons/PredeterminedIcon.js.map +1 -0
- package/lib/module/config/configCard.js +3 -0
- package/lib/module/config/configCard.js.map +1 -0
- package/lib/module/config/localization.js +41 -0
- package/lib/module/config/localization.js.map +1 -0
- package/lib/module/config/themeColors.js +29 -0
- package/lib/module/config/themeColors.js.map +1 -0
- package/lib/module/hooks/useChangePin.js +29 -0
- package/lib/module/hooks/useChangePin.js.map +1 -0
- package/lib/module/hooks/useGetCardDetails.js +29 -0
- package/lib/module/hooks/useGetCardDetails.js.map +1 -0
- package/lib/module/hooks/useSetPin.js +29 -0
- package/lib/module/hooks/useSetPin.js.map +1 -0
- package/lib/module/hooks/useVerifyPin.js +29 -0
- package/lib/module/hooks/useVerifyPin.js.map +1 -0
- package/lib/module/hooks/useViewPin.js +29 -0
- package/lib/module/hooks/useViewPin.js.map +1 -0
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/interfaces/NiCardManagementInterfaces.js +2 -0
- package/lib/module/interfaces/NiCardManagementInterfaces.js.map +1 -0
- package/lib/module/interfaces/NiInputInterfaces.js +33 -0
- package/lib/module/interfaces/NiInputInterfaces.js.map +1 -0
- package/lib/module/interfaces/NiInterfaces.js +8 -0
- package/lib/module/interfaces/NiInterfaces.js.map +1 -0
- package/lib/module/nativeComponents/NICardManagementSDKModule.js +3 -0
- package/lib/module/nativeComponents/NICardManagementSDKModule.js.map +1 -0
- package/lib/module/utils/formatInput.js +4 -0
- package/lib/module/utils/formatInput.js.map +1 -0
- package/lib/module/utils/localization.js +7 -0
- package/lib/module/utils/localization.js.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/CardDetailsComponent.d.ts +7 -0
- package/lib/typescript/src/NICardManagementComponents/CardDetailsComponent.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/ChangePinView.d.ts +6 -0
- package/lib/typescript/src/NICardManagementComponents/ChangePinView.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/NiInputInterfaces.d.ts +4 -0
- package/lib/typescript/src/NICardManagementComponents/NiInputInterfaces.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/SetPinView.d.ts +6 -0
- package/lib/typescript/src/NICardManagementComponents/SetPinView.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/VerifyPinView.d.ts +6 -0
- package/lib/typescript/src/NICardManagementComponents/VerifyPinView.d.ts.map +1 -0
- package/lib/typescript/src/NICardManagementComponents/ViewPinComponent.d.ts +6 -0
- package/lib/typescript/src/NICardManagementComponents/ViewPinComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardDetails.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardDetails.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardDetailsBackgroundImage.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardDetailsBackgroundImage.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardDetailsGroups.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardDetailsGroups.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardHolderNameGroups.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardHolderNameGroups.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/CardNumberGroup.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/CardNumberGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/DateCVVGroupOneRow.d.ts +4 -0
- package/lib/typescript/src/components/CardDetails/DateCVVGroupOneRow.d.ts.map +1 -0
- package/lib/typescript/src/components/CardDetails/styles.d.ts +90 -0
- package/lib/typescript/src/components/CardDetails/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/CaptureCurrentPin.d.ts +4 -0
- package/lib/typescript/src/components/ChangePin/CaptureCurrentPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/CaptureNewPin.d.ts +4 -0
- package/lib/typescript/src/components/ChangePin/CaptureNewPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/ChangePin.d.ts +5 -0
- package/lib/typescript/src/components/ChangePin/ChangePin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/ConfirmPin.d.ts +4 -0
- package/lib/typescript/src/components/ChangePin/ConfirmPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/ReenterNewPin.d.ts +4 -0
- package/lib/typescript/src/components/ChangePin/ReenterNewPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ChangePin/styles.d.ts +22 -0
- package/lib/typescript/src/components/ChangePin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/NIButton/NIButton.d.ts +13 -0
- package/lib/typescript/src/components/NIButton/NIButton.d.ts.map +1 -0
- package/lib/typescript/src/components/NIButton/styles.d.ts +8 -0
- package/lib/typescript/src/components/NIButton/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/Pin/CapturePin.d.ts +4 -0
- package/lib/typescript/src/components/Pin/CapturePin.d.ts.map +1 -0
- package/lib/typescript/src/components/Pin/NextButton.d.ts +4 -0
- package/lib/typescript/src/components/Pin/NextButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Pin/ShowHideButton.d.ts +4 -0
- package/lib/typescript/src/components/Pin/ShowHideButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Pin/styles.d.ts +54 -0
- package/lib/typescript/src/components/Pin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/PinState/LoadingState.d.ts +7 -0
- package/lib/typescript/src/components/PinState/LoadingState.d.ts.map +1 -0
- package/lib/typescript/src/components/PinState/PinState.d.ts +8 -0
- package/lib/typescript/src/components/PinState/PinState.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/ConfirmPin.d.ts +4 -0
- package/lib/typescript/src/components/SetPin/ConfirmPin.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/ReenterCardPin.d.ts +4 -0
- package/lib/typescript/src/components/SetPin/ReenterCardPin.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/SetPin.d.ts +5 -0
- package/lib/typescript/src/components/SetPin/SetPin.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/SetUpNewCardPin.d.ts +4 -0
- package/lib/typescript/src/components/SetPin/SetUpNewCardPin.d.ts.map +1 -0
- package/lib/typescript/src/components/SetPin/styles.d.ts +22 -0
- package/lib/typescript/src/components/SetPin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/VerifyPin/CaptureVerifyPin.d.ts +4 -0
- package/lib/typescript/src/components/VerifyPin/CaptureVerifyPin.d.ts.map +1 -0
- package/lib/typescript/src/components/VerifyPin/ConfirmPin.d.ts +5 -0
- package/lib/typescript/src/components/VerifyPin/ConfirmPin.d.ts.map +1 -0
- package/lib/typescript/src/components/VerifyPin/VerifyPin.d.ts +5 -0
- package/lib/typescript/src/components/VerifyPin/VerifyPin.d.ts.map +1 -0
- package/lib/typescript/src/components/VerifyPin/styles.d.ts +19 -0
- package/lib/typescript/src/components/VerifyPin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/ViewPin/ViewPin.d.ts +5 -0
- package/lib/typescript/src/components/ViewPin/ViewPin.d.ts.map +1 -0
- package/lib/typescript/src/components/ViewPin/styles.d.ts +12 -0
- package/lib/typescript/src/components/ViewPin/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/icons/PredeterminedIcon.d.ts +7 -0
- package/lib/typescript/src/components/icons/PredeterminedIcon.d.ts.map +1 -0
- package/lib/typescript/src/config/configCard.d.ts +3 -0
- package/lib/typescript/src/config/configCard.d.ts.map +1 -0
- package/lib/typescript/src/config/localization.d.ts +39 -0
- package/lib/typescript/src/config/localization.d.ts.map +1 -0
- package/lib/typescript/src/config/themeColors.d.ts +29 -0
- package/lib/typescript/src/config/themeColors.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useChangePin.d.ts +9 -0
- package/lib/typescript/src/hooks/useChangePin.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useGetCardDetails.d.ts +9 -0
- package/lib/typescript/src/hooks/useGetCardDetails.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSetPin.d.ts +9 -0
- package/lib/typescript/src/hooks/useSetPin.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useVerifyPin.d.ts +9 -0
- package/lib/typescript/src/hooks/useVerifyPin.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useViewPin.d.ts +9 -0
- package/lib/typescript/src/hooks/useViewPin.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +7 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/interfaces/NiCardManagementInterfaces.d.ts +37 -0
- package/lib/typescript/src/interfaces/NiCardManagementInterfaces.d.ts.map +1 -0
- package/lib/typescript/src/interfaces/NiInputInterfaces.d.ts +62 -0
- package/lib/typescript/src/interfaces/NiInputInterfaces.d.ts.map +1 -0
- package/lib/typescript/src/interfaces/NiInterfaces.d.ts +232 -0
- package/lib/typescript/src/interfaces/NiInterfaces.d.ts.map +1 -0
- package/lib/typescript/src/nativeComponents/NICardManagementSDKModule.d.ts +4 -0
- package/lib/typescript/src/nativeComponents/NICardManagementSDKModule.d.ts.map +1 -0
- package/lib/typescript/src/utils/formatInput.d.ts +4 -0
- package/lib/typescript/src/utils/formatInput.d.ts.map +1 -0
- package/lib/typescript/src/utils/localization.d.ts +20 -0
- package/lib/typescript/src/utils/localization.d.ts.map +1 -0
- package/package.json +167 -0
- package/react-native-ni-card-management.podspec +43 -0
- package/src/NICardManagementComponents/CardDetailsComponent.tsx +77 -0
- package/src/NICardManagementComponents/ChangePinView.tsx +41 -0
- package/src/NICardManagementComponents/NiInputInterfaces.ts +14 -0
- package/src/NICardManagementComponents/SetPinView.tsx +38 -0
- package/src/NICardManagementComponents/VerifyPinView.tsx +42 -0
- package/src/NICardManagementComponents/ViewPinComponent.tsx +48 -0
- package/src/assets/icons/content-copy.png +0 -0
- package/src/assets/icons/eye-off-outline.png +0 -0
- package/src/assets/icons/eye-outline.png +0 -0
- package/src/assets/icons/icons8-arrow-100.png +0 -0
- package/src/assets/icons/icons8-arrow-100_1.png +0 -0
- package/src/assets/icons/red-eye-off-outline.png +0 -0
- package/src/assets/icons/red-eye-outline.png +0 -0
- package/src/assets/images/grayCard.png +0 -0
- package/src/components/CardDetails/CardDetails.tsx +24 -0
- package/src/components/CardDetails/CardDetailsBackgroundImage.tsx +33 -0
- package/src/components/CardDetails/CardDetailsGroups.tsx +119 -0
- package/src/components/CardDetails/CardHolderNameGroups.tsx +101 -0
- package/src/components/CardDetails/CardNumberGroup.tsx +101 -0
- package/src/components/CardDetails/DateCVVGroupOneRow.tsx +146 -0
- package/src/components/CardDetails/styles.ts +105 -0
- package/src/components/ChangePin/CaptureCurrentPin.tsx +39 -0
- package/src/components/ChangePin/CaptureNewPin.tsx +39 -0
- package/src/components/ChangePin/ChangePin.tsx +153 -0
- package/src/components/ChangePin/ConfirmPin.tsx +47 -0
- package/src/components/ChangePin/ReenterNewPin.tsx +45 -0
- package/src/components/ChangePin/styles.ts +24 -0
- package/src/components/NIButton/NIButton.tsx +57 -0
- package/src/components/NIButton/styles.ts +10 -0
- package/src/components/Pin/CapturePin.tsx +227 -0
- package/src/components/Pin/NextButton.tsx +50 -0
- package/src/components/Pin/ShowHideButton.tsx +53 -0
- package/src/components/Pin/styles.ts +56 -0
- package/src/components/PinState/LoadingState.tsx +30 -0
- package/src/components/PinState/PinState.tsx +33 -0
- package/src/components/SetPin/ConfirmPin.tsx +47 -0
- package/src/components/SetPin/ReenterCardPin.tsx +45 -0
- package/src/components/SetPin/SetPin.tsx +140 -0
- package/src/components/SetPin/SetUpNewCardPin.tsx +39 -0
- package/src/components/SetPin/styles.ts +24 -0
- package/src/components/VerifyPin/CaptureVerifyPin.tsx +39 -0
- package/src/components/VerifyPin/ConfirmPin.tsx +49 -0
- package/src/components/VerifyPin/VerifyPin.tsx +105 -0
- package/src/components/VerifyPin/styles.ts +21 -0
- package/src/components/ViewPin/ViewPin.tsx +99 -0
- package/src/components/ViewPin/styles.ts +14 -0
- package/src/components/icons/PredeterminedIcon.tsx +41 -0
- package/src/config/configCard.ts +2 -0
- package/src/config/localization.ts +44 -0
- package/src/config/themeColors.ts +37 -0
- package/src/hooks/useChangePin.ts +39 -0
- package/src/hooks/useGetCardDetails.ts +38 -0
- package/src/hooks/useSetPin.ts +37 -0
- package/src/hooks/useVerifyPin.ts +37 -0
- package/src/hooks/useViewPin.ts +35 -0
- package/src/index.tsx +6 -0
- package/src/interfaces/NiCardManagementInterfaces.ts +61 -0
- package/src/interfaces/NiInputInterfaces.ts +78 -0
- package/src/interfaces/NiInterfaces.ts +259 -0
- package/src/nativeComponents/NICardManagementSDKModule.ts +5 -0
- package/src/utils/formatInput.ts +8 -0
- package/src/utils/localization.ts +10 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
buildscript {
|
|
2
|
+
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
|
|
3
|
+
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["NiCardManagement_kotlinVersion"]
|
|
4
|
+
|
|
5
|
+
repositories {
|
|
6
|
+
google()
|
|
7
|
+
mavenCentral()
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
dependencies {
|
|
11
|
+
classpath "com.android.tools.build:gradle:7.2.1"
|
|
12
|
+
// noinspection DifferentKotlinGradleVersion
|
|
13
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
def isNewArchitectureEnabled() {
|
|
18
|
+
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
apply plugin: "com.android.library"
|
|
22
|
+
apply plugin: "kotlin-android"
|
|
23
|
+
|
|
24
|
+
if (isNewArchitectureEnabled()) {
|
|
25
|
+
apply plugin: "com.facebook.react"
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def getExtOrDefault(name) {
|
|
29
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["NiCardManagement_" + name]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def getExtOrIntegerDefault(name) {
|
|
33
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["NiCardManagement_" + name]).toInteger()
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
def supportsNamespace() {
|
|
37
|
+
def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
|
|
38
|
+
def major = parsed[0].toInteger()
|
|
39
|
+
def minor = parsed[1].toInteger()
|
|
40
|
+
|
|
41
|
+
// Namespace support was added in 7.3.0
|
|
42
|
+
return (major == 7 && minor >= 3) || major >= 8
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
android {
|
|
46
|
+
if (supportsNamespace()) {
|
|
47
|
+
namespace "com.nicardmanagement"
|
|
48
|
+
|
|
49
|
+
sourceSets {
|
|
50
|
+
main {
|
|
51
|
+
manifest.srcFile "src/main/AndroidManifestNew.xml"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
57
|
+
|
|
58
|
+
defaultConfig {
|
|
59
|
+
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
|
60
|
+
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
buildTypes {
|
|
65
|
+
release {
|
|
66
|
+
minifyEnabled false
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
lintOptions {
|
|
71
|
+
disable "GradleCompatible"
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
compileOptions {
|
|
75
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
|
76
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
repositories {
|
|
81
|
+
mavenCentral()
|
|
82
|
+
google()
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
86
|
+
|
|
87
|
+
dependencies {
|
|
88
|
+
// For < 0.71, this will be from the local maven repo
|
|
89
|
+
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
|
90
|
+
//noinspection GradleDynamicVersion
|
|
91
|
+
implementation "com.facebook.react:react-native:+"
|
|
92
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
93
|
+
implementation "com.github.network-international:card-management-sdk-android:1.0.46"
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
package com.niwrappercardmanagementrn
|
|
2
|
+
|
|
3
|
+
import ae.network.nicardmanagementsdk.api.models.input.NIConnectionProperties
|
|
4
|
+
import ae.network.nicardmanagementsdk.api.models.input.NIInput
|
|
5
|
+
import org.json.JSONObject
|
|
6
|
+
|
|
7
|
+
fun deserializePerson(jsonString: String): NIInput? {
|
|
8
|
+
try {
|
|
9
|
+
val jsonObject = JSONObject(jsonString)
|
|
10
|
+
val bankCode = jsonObject.getString("bankCode")
|
|
11
|
+
val cardIdentifierId = jsonObject.getString("cardIdentifierId")
|
|
12
|
+
val cardIdentifierType = jsonObject.getString("cardIdentifierType")
|
|
13
|
+
val connectionPropertiesJsonObject = jsonObject.getJSONObject("connectionProperties")
|
|
14
|
+
|
|
15
|
+
val connectionProperties = NIConnectionProperties(
|
|
16
|
+
connectionPropertiesJsonObject.getString("rootUrl"),
|
|
17
|
+
connectionPropertiesJsonObject.getString("token")
|
|
18
|
+
)
|
|
19
|
+
return NIInput(bankCode, cardIdentifierId, cardIdentifierType, connectionProperties)
|
|
20
|
+
} catch (e: Exception) {
|
|
21
|
+
e.printStackTrace()
|
|
22
|
+
return null
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
package com.nicardmanagement
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.bridge.Promise
|
|
4
|
+
|
|
5
|
+
import ae.network.nicardmanagementsdk.api.implementation.NICardManagement
|
|
6
|
+
import com.facebook.react.bridge.Callback;
|
|
7
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
8
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
9
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
10
|
+
import com.facebook.react.bridge.Arguments
|
|
11
|
+
import com.niwrappercardmanagementrn.deserializePerson
|
|
12
|
+
import kotlinx.coroutines.CoroutineScope
|
|
13
|
+
import kotlinx.coroutines.Dispatchers
|
|
14
|
+
import kotlinx.coroutines.launch
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class NiCardManagementModule(reactContext: ReactApplicationContext) :
|
|
18
|
+
ReactContextBaseJavaModule(reactContext) {
|
|
19
|
+
|
|
20
|
+
override fun getName(): String {
|
|
21
|
+
return NAME
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@ReactMethod
|
|
25
|
+
fun getCardDetails(inputJsonString: String, cb: Callback) {
|
|
26
|
+
val scope = CoroutineScope(Dispatchers.Main)
|
|
27
|
+
|
|
28
|
+
scope.launch {
|
|
29
|
+
try {
|
|
30
|
+
val input = deserializePerson(inputJsonString)
|
|
31
|
+
if (input != null) {
|
|
32
|
+
val detailsResponse = NICardManagement.getCardDetails(input)
|
|
33
|
+
|
|
34
|
+
if (detailsResponse.isError != null) {
|
|
35
|
+
val errorMessage = detailsResponse.isError!!.errorMessage ?: "An error occurred"
|
|
36
|
+
cb.invoke(errorMessage, null)
|
|
37
|
+
} else {
|
|
38
|
+
val response = Arguments.createMap()
|
|
39
|
+
response.putString("clearPan", detailsResponse.details!!.clearPan)
|
|
40
|
+
response.putString("maskedPan", detailsResponse.details!!.maskedPan)
|
|
41
|
+
response.putString("expiry", detailsResponse.details!!.expiry)
|
|
42
|
+
response.putString("clearCVV2", detailsResponse.details!!.clearCVV2)
|
|
43
|
+
response.putString("cardholderName", detailsResponse.details!!.clearCardholderName)
|
|
44
|
+
cb.invoke(null, response)
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
cb.invoke("Error parsing input JSON", null)
|
|
48
|
+
}
|
|
49
|
+
} catch (e: Exception) {
|
|
50
|
+
cb.invoke(e.message, null)
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@ReactMethod
|
|
57
|
+
fun setPin(pin: String, inputJsonString: String, cb: Callback) {
|
|
58
|
+
val scope = CoroutineScope(Dispatchers.Main)
|
|
59
|
+
|
|
60
|
+
scope.launch {
|
|
61
|
+
try {
|
|
62
|
+
val input = deserializePerson(inputJsonString)
|
|
63
|
+
if (input != null) {
|
|
64
|
+
val detailsResponse = NICardManagement.setPin(pin, input)
|
|
65
|
+
|
|
66
|
+
if (detailsResponse.isError != null) {
|
|
67
|
+
val errorMessage = detailsResponse.isError!!.errorMessage ?: "An error occurred"
|
|
68
|
+
cb.invoke(errorMessage, null)
|
|
69
|
+
} else {
|
|
70
|
+
val response = detailsResponse.isSuccess!!.message
|
|
71
|
+
cb.invoke(null, response)
|
|
72
|
+
}
|
|
73
|
+
} else {
|
|
74
|
+
cb.invoke("Error parsing input JSON", null)
|
|
75
|
+
}
|
|
76
|
+
} catch (e: Exception) {
|
|
77
|
+
cb.invoke(e.message, null)
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@ReactMethod
|
|
83
|
+
fun verifyPin(pin: String, inputJsonString: String, cb: Callback) {
|
|
84
|
+
val scope = CoroutineScope(Dispatchers.Main)
|
|
85
|
+
|
|
86
|
+
scope.launch {
|
|
87
|
+
try {
|
|
88
|
+
val input = deserializePerson(inputJsonString)
|
|
89
|
+
if (input != null) {
|
|
90
|
+
val detailsResponse = NICardManagement.verifyPin(pin, input)
|
|
91
|
+
|
|
92
|
+
if (detailsResponse.isError != null) {
|
|
93
|
+
val errorMessage = detailsResponse.isError!!.errorMessage ?: "An error occurred"
|
|
94
|
+
cb.invoke(errorMessage, null)
|
|
95
|
+
} else {
|
|
96
|
+
val response = detailsResponse.isSuccess!!.message
|
|
97
|
+
cb.invoke(null, response)
|
|
98
|
+
}
|
|
99
|
+
} else {
|
|
100
|
+
cb.invoke("Error parsing input JSON", null)
|
|
101
|
+
}
|
|
102
|
+
} catch (e: Exception) {
|
|
103
|
+
cb.invoke(e.message, null)
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@ReactMethod
|
|
109
|
+
fun changePin(oldPin: String, newPin: String, inputJsonString: String, cb: Callback) {
|
|
110
|
+
val scope = CoroutineScope(Dispatchers.Main)
|
|
111
|
+
|
|
112
|
+
scope.launch {
|
|
113
|
+
try {
|
|
114
|
+
val input = deserializePerson(inputJsonString)
|
|
115
|
+
if (input != null) {
|
|
116
|
+
val detailsResponse = NICardManagement.changePin(oldPin, newPin, input)
|
|
117
|
+
|
|
118
|
+
if (detailsResponse.isError != null) {
|
|
119
|
+
val errorMessage = detailsResponse.isError!!.errorMessage ?: "An error occurred"
|
|
120
|
+
cb.invoke(errorMessage, null)
|
|
121
|
+
} else {
|
|
122
|
+
val response = detailsResponse.isSuccess!!.message
|
|
123
|
+
cb.invoke(null, response)
|
|
124
|
+
}
|
|
125
|
+
} else {
|
|
126
|
+
cb.invoke("Error parsing input JSON", null)
|
|
127
|
+
}
|
|
128
|
+
} catch (e: Exception) {
|
|
129
|
+
cb.invoke(e.message, null)
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@ReactMethod
|
|
135
|
+
fun getPin(inputJsonString: String, cb: Callback) {
|
|
136
|
+
val scope = CoroutineScope(Dispatchers.Main)
|
|
137
|
+
|
|
138
|
+
scope.launch {
|
|
139
|
+
try {
|
|
140
|
+
val input = deserializePerson(inputJsonString)
|
|
141
|
+
if (input != null) {
|
|
142
|
+
val detailsResponse = NICardManagement.viewPin(input)
|
|
143
|
+
|
|
144
|
+
if (detailsResponse.error != null) {
|
|
145
|
+
val errorMessage = detailsResponse.error!!.errorMessage ?: "An error occurred"
|
|
146
|
+
cb.invoke(errorMessage, null)
|
|
147
|
+
} else {
|
|
148
|
+
val response = detailsResponse.pin!!.encrypted_pin
|
|
149
|
+
cb.invoke(null, response)
|
|
150
|
+
}
|
|
151
|
+
} else {
|
|
152
|
+
cb.invoke("Error parsing input JSON", null)
|
|
153
|
+
}
|
|
154
|
+
} catch (e: Exception) {
|
|
155
|
+
cb.invoke(e.message, null)
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
companion object {
|
|
161
|
+
const val NAME = "NiCardManagement"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
package com.nicardmanagement
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.ReactPackage
|
|
4
|
+
import com.facebook.react.bridge.NativeModule
|
|
5
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
|
+
import com.facebook.react.uimanager.ViewManager
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class NiCardManagementPackage : ReactPackage {
|
|
10
|
+
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
|
|
11
|
+
return listOf(NiCardManagementModule(reactContext))
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
|
|
15
|
+
return emptyList()
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#import <React/RCTBridgeModule.h>
|
|
2
|
+
|
|
3
|
+
@interface RCT_EXTERN_MODULE(NiCardManagement, NSObject)
|
|
4
|
+
|
|
5
|
+
RCT_EXTERN_METHOD(getCardDetails:(NSDictionary *)input
|
|
6
|
+
callback: (RCTResponseSenderBlock)callback)
|
|
7
|
+
|
|
8
|
+
RCT_EXTERN_METHOD(setPin:(NSString *)pin
|
|
9
|
+
input:(NSDictionary *)input
|
|
10
|
+
callback: (RCTResponseSenderBlock)callback)
|
|
11
|
+
|
|
12
|
+
RCT_EXTERN_METHOD(changePin:(NSString *)oldPin
|
|
13
|
+
newPin:(NSString *)newPin
|
|
14
|
+
input:(NSDictionary *)input
|
|
15
|
+
callback: (RCTResponseSenderBlock)callback)
|
|
16
|
+
|
|
17
|
+
RCT_EXTERN_METHOD(verifyPin:(NSString *)pin
|
|
18
|
+
input:(NSDictionary *)input
|
|
19
|
+
callback: (RCTResponseSenderBlock)callback)
|
|
20
|
+
|
|
21
|
+
RCT_EXTERN_METHOD(getPin:(NSDictionary *)input
|
|
22
|
+
callback: (RCTResponseSenderBlock)callback)
|
|
23
|
+
|
|
24
|
+
+ (BOOL)requiresMainQueueSetup
|
|
25
|
+
{
|
|
26
|
+
return NO;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@end
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import NICardManagementSDK
|
|
3
|
+
import React
|
|
4
|
+
|
|
5
|
+
func createNICardManagementAPIInstance(from input: NSDictionary) -> NICardManagementAPI {
|
|
6
|
+
let bankCode = input["bankCode"] as? String ?? ""
|
|
7
|
+
let cardIdentifierId = input["cardIdentifierId"] as? String ?? ""
|
|
8
|
+
let cardIdentifierType = input["cardIdentifierType"] as? String ?? ""
|
|
9
|
+
let connectionProperties = input["connectionProperties"] as? NSDictionary
|
|
10
|
+
|
|
11
|
+
let rootUrl = connectionProperties?["rootUrl"] as? String ?? ""
|
|
12
|
+
let token = connectionProperties?["token"] as? String ?? ""
|
|
13
|
+
|
|
14
|
+
let tokenFetchable = TokenFetcherFactory.makeSimpleWrapper(tokenValue: token)
|
|
15
|
+
|
|
16
|
+
let sdk = NICardManagementAPI(
|
|
17
|
+
rootUrl: rootUrl,
|
|
18
|
+
cardIdentifierId: cardIdentifierId,
|
|
19
|
+
cardIdentifierType: cardIdentifierType,
|
|
20
|
+
bankCode: bankCode,
|
|
21
|
+
tokenFetchable: tokenFetchable
|
|
22
|
+
)
|
|
23
|
+
return sdk
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@objc(NiCardManagement)
|
|
27
|
+
class NiCardManagement: NSObject {
|
|
28
|
+
|
|
29
|
+
typealias Callback = (Result<String, Error>) -> Void
|
|
30
|
+
|
|
31
|
+
@objc
|
|
32
|
+
static func requiresMainQueueSetup() -> Bool {
|
|
33
|
+
return true
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@objc
|
|
37
|
+
func getCardDetails(_ input: NSDictionary, callback: @escaping RCTResponseSenderBlock) {
|
|
38
|
+
let sdk = createNICardManagementAPIInstance(from: input)
|
|
39
|
+
|
|
40
|
+
sdk.getCardDetails() { successResponse, errorResponse, completion in
|
|
41
|
+
if let error = errorResponse {
|
|
42
|
+
let errorCode = Int(error.errorCode) ?? 500
|
|
43
|
+
let customeError: [String: Any?] = [
|
|
44
|
+
"domain": "com.NICardManagementSDK",
|
|
45
|
+
"code": errorCode,
|
|
46
|
+
"message": error.errorMessage
|
|
47
|
+
]
|
|
48
|
+
callback([customeError, NSNull()])
|
|
49
|
+
} else if let success = successResponse {
|
|
50
|
+
let cardDetailsObject: [String: Any?] = [
|
|
51
|
+
"clearPan": success.clearPan,
|
|
52
|
+
"maskedPan": success.maskedPan,
|
|
53
|
+
"expiry": success.expiry,
|
|
54
|
+
"clearCVV2": success.clearCVV2,
|
|
55
|
+
"cardholderName": success.cardholderName
|
|
56
|
+
]
|
|
57
|
+
callback([NSNull(), cardDetailsObject])
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@objc
|
|
63
|
+
func setPin(_ pin: String, input: NSDictionary, callback: @escaping RCTResponseSenderBlock) {
|
|
64
|
+
let sdk = createNICardManagementAPIInstance(from: input)
|
|
65
|
+
|
|
66
|
+
sdk.setPin(pin: pin) { successResponse, errorResponse, completion in
|
|
67
|
+
print("I am in setPin")
|
|
68
|
+
if let error = errorResponse {
|
|
69
|
+
let errorCode = Int(error.errorCode) ?? 500
|
|
70
|
+
let customeError: [String: Any?] = [
|
|
71
|
+
"domain": "com.NICardManagementSDK",
|
|
72
|
+
"code": errorCode,
|
|
73
|
+
"message": error.errorMessage
|
|
74
|
+
]
|
|
75
|
+
callback([customeError, NSNull()])
|
|
76
|
+
} else if let success = successResponse {
|
|
77
|
+
callback([NSNull(), success.message])
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
@objc
|
|
84
|
+
func changePin(_ oldPin: String, newPin: String, input: NSDictionary, callback: @escaping RCTResponseSenderBlock) {
|
|
85
|
+
let sdk = createNICardManagementAPIInstance(from: input)
|
|
86
|
+
|
|
87
|
+
sdk.changePin(oldPin: oldPin, newPin: newPin) { successResponse, errorResponse, completion in
|
|
88
|
+
print("I am in changePin")
|
|
89
|
+
if let error = errorResponse {
|
|
90
|
+
let errorCode = Int(error.errorCode) ?? 500
|
|
91
|
+
let customeError: [String: Any?] = [
|
|
92
|
+
"domain": "com.NICardManagementSDK",
|
|
93
|
+
"code": errorCode,
|
|
94
|
+
"message": error.errorMessage
|
|
95
|
+
]
|
|
96
|
+
callback([customeError, NSNull()])
|
|
97
|
+
} else if let success = successResponse {
|
|
98
|
+
callback([NSNull(), success.message])
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@objc
|
|
104
|
+
func verifyPin(_ pin: String, input: NSDictionary, callback: @escaping RCTResponseSenderBlock) {
|
|
105
|
+
let sdk = createNICardManagementAPIInstance(from: input)
|
|
106
|
+
|
|
107
|
+
sdk.verifyPin(pin: pin) { successResponse, errorResponse, completion in
|
|
108
|
+
print("I am in verifyPin")
|
|
109
|
+
if let error = errorResponse {
|
|
110
|
+
let errorCode = Int(error.errorCode) ?? 500
|
|
111
|
+
let customeError: [String: Any?] = [
|
|
112
|
+
"domain": "com.NICardManagementSDK",
|
|
113
|
+
"code": errorCode,
|
|
114
|
+
"message": error.errorMessage
|
|
115
|
+
]
|
|
116
|
+
callback([customeError, NSNull()])
|
|
117
|
+
} else if let success = successResponse {
|
|
118
|
+
callback([NSNull(), success.message])
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@objc
|
|
124
|
+
func getPin(_ input: NSDictionary, callback: @escaping RCTResponseSenderBlock) {
|
|
125
|
+
let sdk = createNICardManagementAPIInstance(from: input)
|
|
126
|
+
|
|
127
|
+
sdk.getPin() { successResponse, errorResponse, completion in
|
|
128
|
+
print("I am in getPin")
|
|
129
|
+
if let error = errorResponse {
|
|
130
|
+
let errorCode = Int(error.errorCode) ?? 500
|
|
131
|
+
let customError: [String: Any?] = [
|
|
132
|
+
"domain": "com.NICardManagementSDK",
|
|
133
|
+
"code": errorCode,
|
|
134
|
+
"message": error.errorMessage
|
|
135
|
+
]
|
|
136
|
+
callback([customError, NSNull()])
|
|
137
|
+
} else if let success = successResponse {
|
|
138
|
+
callback([NSNull(), success])
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CardDetailsComponent = CardDetailsComponent;
|
|
7
|
+
Object.defineProperty(exports, "useGetCardDetails", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _useGetCardDetails.useGetCardDetails;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
+
var _reactNative = require("react-native");
|
|
15
|
+
var _CardDetails = require("../components/CardDetails/CardDetails");
|
|
16
|
+
var _PinState = _interopRequireDefault(require("../components/PinState/PinState"));
|
|
17
|
+
var _useGetCardDetails = require("../hooks/useGetCardDetails");
|
|
18
|
+
var _NiInputInterfaces = require("../interfaces/NiInputInterfaces");
|
|
19
|
+
var _themeColors = require("../config/themeColors");
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
+
function CardDetailsComponent({
|
|
24
|
+
input,
|
|
25
|
+
callback
|
|
26
|
+
}) {
|
|
27
|
+
const {
|
|
28
|
+
displayAttributes
|
|
29
|
+
} = input || {};
|
|
30
|
+
const theme = displayAttributes?.theme || _NiInputInterfaces.NIThemeEnum.light;
|
|
31
|
+
const cardDetailsStyle = {
|
|
32
|
+
height: '100%',
|
|
33
|
+
width: '100%',
|
|
34
|
+
backgroundColor: theme === _NiInputInterfaces.NIThemeEnum.light ? _themeColors.themeColors.light.background : _themeColors.themeColors.dark.background
|
|
35
|
+
};
|
|
36
|
+
const {
|
|
37
|
+
result: getCardDetailsResult,
|
|
38
|
+
error: getCardDetailsError,
|
|
39
|
+
isLoading: getCardDetailsIsLoading,
|
|
40
|
+
onGetCardDetails
|
|
41
|
+
} = (0, _useGetCardDetails.useGetCardDetails)();
|
|
42
|
+
(0, _react.useEffect)(() => {
|
|
43
|
+
input && onGetCardDetails(input, callback);
|
|
44
|
+
}, []);
|
|
45
|
+
const error_getCardDetailsResult = {
|
|
46
|
+
clearPan: '-',
|
|
47
|
+
maskedPan: '-',
|
|
48
|
+
expiry: '-',
|
|
49
|
+
clearCVV2: '-',
|
|
50
|
+
cardholderName: '-'
|
|
51
|
+
};
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
53
|
+
style: cardDetailsStyle
|
|
54
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
55
|
+
style: styles.cardDetailsStyle
|
|
56
|
+
}, /*#__PURE__*/_react.default.createElement(_CardDetails.CardDetails, {
|
|
57
|
+
displayAttributes: displayAttributes,
|
|
58
|
+
getCardDetailsResult: !getCardDetailsError ? getCardDetailsResult : error_getCardDetailsResult,
|
|
59
|
+
isError: !!getCardDetailsError
|
|
60
|
+
}), /*#__PURE__*/_react.default.createElement(_PinState.default, {
|
|
61
|
+
isLoading: getCardDetailsIsLoading,
|
|
62
|
+
theme: theme,
|
|
63
|
+
isCardDetails: true
|
|
64
|
+
})));
|
|
65
|
+
}
|
|
66
|
+
const styles = _reactNative.StyleSheet.create({
|
|
67
|
+
cardDetailsStyle: {
|
|
68
|
+
marginTop: 60
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
//# sourceMappingURL=CardDetailsComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_CardDetails","_PinState","_interopRequireDefault","_useGetCardDetails","_NiInputInterfaces","_themeColors","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","CardDetailsComponent","input","callback","displayAttributes","theme","NIThemeEnum","light","cardDetailsStyle","height","width","backgroundColor","themeColors","background","dark","result","getCardDetailsResult","error","getCardDetailsError","isLoading","getCardDetailsIsLoading","onGetCardDetails","useGetCardDetails","useEffect","error_getCardDetailsResult","clearPan","maskedPan","expiry","clearCVV2","cardholderName","createElement","View","style","styles","CardDetails","isError","isCardDetails","StyleSheet","create","marginTop"],"sourceRoot":"../../../src","sources":["NICardManagementComponents/CardDetailsComponent.tsx"],"mappings":"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"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ChangePinView = ChangePinView;
|
|
7
|
+
Object.defineProperty(exports, "useChangePin", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _useChangePin.useChangePin;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _react = _interopRequireDefault(require("react"));
|
|
14
|
+
var _NiInputInterfaces = require("../interfaces/NiInputInterfaces");
|
|
15
|
+
var _useChangePin = require("../hooks/useChangePin");
|
|
16
|
+
var _ChangePin = _interopRequireDefault(require("../components/ChangePin/ChangePin"));
|
|
17
|
+
var _PinState = _interopRequireDefault(require("../components/PinState/PinState"));
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
function ChangePinView({
|
|
20
|
+
input,
|
|
21
|
+
type,
|
|
22
|
+
callback
|
|
23
|
+
}) {
|
|
24
|
+
const theme = input?.displayAttributes?.theme || _NiInputInterfaces.NIThemeEnum.light;
|
|
25
|
+
const _pinType = type || _NiInputInterfaces.NIPinTypeEnum.dynamicFourToSix;
|
|
26
|
+
const pinType = [0, 4, 5, 6].includes(type || _NiInputInterfaces.NIPinTypeEnum.dynamicFourToSix) ? _pinType : _NiInputInterfaces.NIPinTypeEnum.dynamicFourToSix;
|
|
27
|
+
const {
|
|
28
|
+
result: changePinResult,
|
|
29
|
+
isLoading: isChangePinLoading,
|
|
30
|
+
onChangePin
|
|
31
|
+
} = (0, _useChangePin.useChangePin)();
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ChangePin.default, {
|
|
33
|
+
input: input,
|
|
34
|
+
pinType: pinType || _NiInputInterfaces.NIPinTypeEnum.dynamicFourToSix,
|
|
35
|
+
result: changePinResult,
|
|
36
|
+
isLoading: isChangePinLoading,
|
|
37
|
+
onChangePin: onChangePin,
|
|
38
|
+
callback: callback
|
|
39
|
+
}), /*#__PURE__*/_react.default.createElement(_PinState.default, {
|
|
40
|
+
isLoading: isChangePinLoading,
|
|
41
|
+
theme: theme
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=ChangePinView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_NiInputInterfaces","_useChangePin","_ChangePin","_PinState","obj","__esModule","default","ChangePinView","input","type","callback","theme","displayAttributes","NIThemeEnum","light","_pinType","NIPinTypeEnum","dynamicFourToSix","pinType","includes","result","changePinResult","isLoading","isChangePinLoading","onChangePin","useChangePin","createElement","Fragment"],"sourceRoot":"../../../src","sources":["NICardManagementComponents/ChangePinView.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,kBAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AAAuD,SAAAD,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEvD,SAASG,aAAaA,CAAC;EACrBC,KAAK;EACLC,IAAI;EACJC;AACe,CAAC,EAAe;EAC/B,MAAMC,KAAK,GAAGH,KAAK,EAAEI,iBAAiB,EAAED,KAAK,IAAIE,8BAAW,CAACC,KAAK;EAElE,MAAMC,QAAQ,GAAGN,IAAI,IAAIO,gCAAa,CAACC,gBAAgB;EACvD,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAACC,QAAQ,CAACV,IAAI,IAAIO,gCAAa,CAACC,gBAAgB,CAAC,GACzEF,QAAQ,GACRC,gCAAa,CAACC,gBAAgB;EAElC,MAAM;IACJG,MAAM,EAAEC,eAAe;IACvBC,SAAS,EAAEC,kBAAkB;IAC7BC;EACF,CAAC,GAAG,IAAAC,0BAAY,EAAC,CAAC;EAElB,oBACE5B,MAAA,CAAAS,OAAA,CAAAoB,aAAA,CAAA7B,MAAA,CAAAS,OAAA,CAAAqB,QAAA,qBACE9B,MAAA,CAAAS,OAAA,CAAAoB,aAAA,CAACxB,UAAA,CAAAI,OAAS;IACRE,KAAK,EAAEA,KAAM;IACbU,OAAO,EAAEA,OAAO,IAAIF,gCAAa,CAACC,gBAAiB;IACnDG,MAAM,EAAEC,eAAgB;IACxBC,SAAS,EAAEC,kBAAmB;IAC9BC,WAAW,EAAEA,WAAY;IACzBd,QAAQ,EAAEA;EAAS,CACpB,CAAC,eACFb,MAAA,CAAAS,OAAA,CAAAoB,aAAA,CAACvB,SAAA,CAAAG,OAAQ;IAACgB,SAAS,EAAEC,kBAAmB;IAACZ,KAAK,EAAEA;EAAM,CAAE,CACxD,CAAC;AAEP"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _NiInputInterfaces = require("../interfaces/NiInputInterfaces");
|
|
7
|
+
Object.keys(_NiInputInterfaces).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _NiInputInterfaces[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _NiInputInterfaces[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=NiInputInterfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_NiInputInterfaces","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../src","sources":["NICardManagementComponents/NiInputInterfaces.ts"],"mappings":";;;;;AAaA,IAAAA,kBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,kBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,kBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,kBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|