boxpay-checkout-reactnative-sdk 1.0.0-beta45 → 1.0.1-beta12
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/lib/module/components/getInstalledUPI.js +0 -2
- package/lib/module/components/getInstalledUPI.js.map +1 -1
- package/lib/module/components/savedAddressCard.js +1 -1
- package/lib/module/components/savedAddressCard.js.map +1 -1
- package/lib/module/postRequest/callUIAnalytics.js +1 -2
- package/lib/module/postRequest/callUIAnalytics.js.map +1 -1
- package/lib/module/postRequest/cardPostRequest.js +1 -5
- package/lib/module/postRequest/cardPostRequest.js.map +1 -1
- package/lib/module/postRequest/emiPostRequest.js +1 -5
- package/lib/module/postRequest/emiPostRequest.js.map +1 -1
- package/lib/module/postRequest/fetchStatus.js +0 -1
- package/lib/module/postRequest/fetchStatus.js.map +1 -1
- package/lib/module/postRequest/methodsPostRequest.js +1 -1
- package/lib/module/postRequest/methodsPostRequest.js.map +1 -1
- package/lib/module/postRequest/upiPostRequest.js +1 -1
- package/lib/module/postRequest/upiPostRequest.js.map +1 -1
- package/lib/module/screens/addressScreen.js +1 -1
- package/lib/module/screens/addressScreen.js.map +1 -1
- package/lib/module/screens/mainScreen.js +15 -36
- package/lib/module/screens/mainScreen.js.map +1 -1
- package/lib/module/screens/savedAddressScreen.js +1 -3
- package/lib/module/screens/savedAddressScreen.js.map +1 -1
- package/lib/module/screens/upiScreen.js +6 -9
- package/lib/module/screens/upiScreen.js.map +1 -1
- package/lib/module/screens/upiTimerScreen.js +19 -56
- package/lib/module/screens/upiTimerScreen.js.map +1 -1
- package/lib/module/sdk-version.json +1 -1
- package/lib/module/serviceRequest.js +1 -3
- package/lib/module/serviceRequest.js.map +1 -1
- package/lib/module/sharedContext/handlePaymentResponseHandler.js +1 -1
- package/lib/module/sharedContext/handlePaymentResponseHandler.js.map +1 -1
- package/lib/module/utility.js +167 -0
- package/lib/module/utility.js.map +1 -0
- package/lib/typescript/src/components/getInstalledUPI.d.ts.map +1 -1
- package/lib/typescript/src/postRequest/callUIAnalytics.d.ts.map +1 -1
- package/lib/typescript/src/postRequest/cardPostRequest.d.ts.map +1 -1
- package/lib/typescript/src/postRequest/emiPostRequest.d.ts.map +1 -1
- package/lib/typescript/src/postRequest/fetchStatus.d.ts.map +1 -1
- package/lib/typescript/src/screens/mainScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/savedAddressScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/upiScreen.d.ts +1 -1
- package/lib/typescript/src/screens/upiScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/upiTimerScreen.d.ts.map +1 -1
- package/lib/typescript/src/serviceRequest.d.ts.map +1 -1
- package/lib/typescript/src/{utils/listAndObjectUtils.d.ts → utility.d.ts} +17 -2
- package/lib/typescript/src/utility.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/components/getInstalledUPI.ts +0 -2
- package/src/components/savedAddressCard.tsx +1 -1
- package/src/postRequest/callUIAnalytics.ts +1 -2
- package/src/postRequest/cardPostRequest.ts +1 -6
- package/src/postRequest/emiPostRequest.ts +1 -5
- package/src/postRequest/fetchStatus.tsx +0 -1
- package/src/postRequest/methodsPostRequest.tsx +1 -1
- package/src/postRequest/upiPostRequest.tsx +1 -1
- package/src/screens/addressScreen.tsx +1 -1
- package/src/screens/mainScreen.tsx +17 -40
- package/src/screens/savedAddressScreen.tsx +1 -3
- package/src/screens/upiScreen.tsx +6 -12
- package/src/screens/upiTimerScreen.tsx +19 -59
- package/src/sdk-version.json +1 -1
- package/src/serviceRequest.ts +1 -6
- package/src/sharedContext/handlePaymentResponseHandler.ts +1 -1
- package/src/utility.ts +193 -0
- package/android/build/.transforms/516dc569503728180fa99c1ae0c9eece/results.bin +0 -1
- package/android/build/.transforms/516dc569503728180fa99c1ae0c9eece/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/generated/source/buildConfig/debug/com/reactnativemodule/BuildConfig.java +0 -10
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -13
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/cross_platform_sdk_react_native_plugin_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativemodule/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -20
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -13
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -30
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/cross_platform_sdk_react_native_plugin_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativemodule/CrossPlatform.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativemodule/ReactNativeModulePackage.class +0 -0
- package/android/local.properties +0 -1
- package/lib/module/utils/listAndObjectUtils.js +0 -73
- package/lib/module/utils/listAndObjectUtils.js.map +0 -1
- package/lib/module/utils/stringUtils.js +0 -50
- package/lib/module/utils/stringUtils.js.map +0 -1
- package/lib/typescript/src/utils/listAndObjectUtils.d.ts.map +0 -1
- package/lib/typescript/src/utils/stringUtils.d.ts +0 -11
- package/lib/typescript/src/utils/stringUtils.d.ts.map +0 -1
- package/src/utils/listAndObjectUtils.ts +0 -83
- package/src/utils/stringUtils.ts +0 -64
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len
DELETED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i
DELETED
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len
DELETED
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len
DELETED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i
DELETED
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len
DELETED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i
DELETED
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len
DELETED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i
DELETED
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len
DELETED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream
DELETED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len
DELETED
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at
DELETED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len
DELETED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin
DELETED
|
Binary file
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
-- Merging decision tree log ---
|
|
2
|
-
manifest
|
|
3
|
-
ADDED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml:1:1-9:12
|
|
4
|
-
INJECTED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml:1:1-9:12
|
|
5
|
-
package
|
|
6
|
-
INJECTED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml
|
|
7
|
-
xmlns:android
|
|
8
|
-
ADDED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml:1:11-69
|
|
9
|
-
queries
|
|
10
|
-
ADDED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml:3:1-7:15
|
|
11
|
-
package#com.google.android.apps.nbu.paisa.user
|
|
12
|
-
ADDED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml:4:9-73
|
|
13
|
-
android:name
|
|
14
|
-
ADDED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml:4:18-71
|
|
15
|
-
package#com.phonepe.app
|
|
16
|
-
ADDED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml:5:9-50
|
|
17
|
-
android:name
|
|
18
|
-
ADDED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml:5:18-48
|
|
19
|
-
package#net.one97.paytm
|
|
20
|
-
ADDED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml:6:9-50
|
|
21
|
-
android:name
|
|
22
|
-
ADDED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml:6:18-48
|
|
23
|
-
uses-sdk
|
|
24
|
-
INJECTED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml reason: use-sdk injection requested
|
|
25
|
-
INJECTED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml
|
|
26
|
-
INJECTED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml
|
|
27
|
-
android:targetSdkVersion
|
|
28
|
-
INJECTED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml
|
|
29
|
-
android:minSdkVersion
|
|
30
|
-
INJECTED from /Users/ishikabansal/checkout-react-native-sdk/node_modules/cross_platform_sdk_react_native_plugin/android/src/main/AndroidManifest.xml
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/tmp/kotlin-classes/debug/com/reactnativemodule/ReactNativeModulePackage.class
DELETED
|
Binary file
|
package/android/local.properties
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
sdk.dir=/Users/ishikabansal/Library/Android/sdk
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { Dimensions, Platform } from 'react-native';
|
|
4
|
-
import { userDataHandler } from "../sharedContext/userdataHandler.js";
|
|
5
|
-
export function transformAndFilterList(data, filterType) {
|
|
6
|
-
const filteredList = data.filter(item => item.type === filterType).sort((a, b) => a.title?.trim().localeCompare(b.title?.trim() ?? '')).map(item => ({
|
|
7
|
-
type: filterType,
|
|
8
|
-
id: item.id,
|
|
9
|
-
displayName: item.title,
|
|
10
|
-
displayValue: item.title,
|
|
11
|
-
iconUrl: item.logoUrl,
|
|
12
|
-
instrumentTypeValue: item.instrumentTypeValue,
|
|
13
|
-
isSelected: false
|
|
14
|
-
}));
|
|
15
|
-
return filteredList;
|
|
16
|
-
}
|
|
17
|
-
export function getDeviceDetails() {
|
|
18
|
-
return {
|
|
19
|
-
browser: Platform.OS,
|
|
20
|
-
platformVersion: Platform.Version.toString(),
|
|
21
|
-
deviceType: Platform.OS === 'ios' || Platform.OS === 'android' ? 'Phone' : 'Web',
|
|
22
|
-
deviceName: Platform.OS === 'ios' ? 'iOS Device' : 'Android Device',
|
|
23
|
-
deviceBrandName: Platform.OS === 'ios' ? 'Apple' : 'Android'
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export function getBrowserData() {
|
|
27
|
-
return {
|
|
28
|
-
screenHeight: height,
|
|
29
|
-
screenWidth: width,
|
|
30
|
-
acceptHeader: 'application/json',
|
|
31
|
-
userAgentHeader: 'Expo App',
|
|
32
|
-
browserLanguage: 'en_US',
|
|
33
|
-
ipAddress: 'null',
|
|
34
|
-
colorDepth: 24,
|
|
35
|
-
javaEnabled: true,
|
|
36
|
-
timeZoneOffSet: new Date().getTimezoneOffset(),
|
|
37
|
-
packageId: 'com.boxpay.checkout.sdk'
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export function getShopperDetails() {
|
|
41
|
-
const {
|
|
42
|
-
userData
|
|
43
|
-
} = userDataHandler;
|
|
44
|
-
const isDeliveryAddressEmpty = address => {
|
|
45
|
-
return Object.values(address).every(value => value === null || value === undefined || value === '');
|
|
46
|
-
};
|
|
47
|
-
const deliveryAddress = {
|
|
48
|
-
address1: userData.address1,
|
|
49
|
-
address2: userData.address2,
|
|
50
|
-
city: userData.city,
|
|
51
|
-
state: userData.state,
|
|
52
|
-
countryCode: userData.country,
|
|
53
|
-
postalCode: userData.pincode,
|
|
54
|
-
labelType: userData.labelType,
|
|
55
|
-
labelName: userData.labelName
|
|
56
|
-
};
|
|
57
|
-
return {
|
|
58
|
-
email: userData.email,
|
|
59
|
-
firstName: userData.firstName,
|
|
60
|
-
gender: null,
|
|
61
|
-
lastName: userData.lastName,
|
|
62
|
-
phoneNumber: userData.phone,
|
|
63
|
-
uniqueReference: userData.uniqueId,
|
|
64
|
-
dateOfBirth: userData.dob,
|
|
65
|
-
panNumber: userData.pan,
|
|
66
|
-
deliveryAddress: isDeliveryAddressEmpty(deliveryAddress) ? null : deliveryAddress
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
export const {
|
|
70
|
-
height,
|
|
71
|
-
width
|
|
72
|
-
} = Dimensions.get("window");
|
|
73
|
-
//# sourceMappingURL=listAndObjectUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Dimensions","Platform","userDataHandler","transformAndFilterList","data","filterType","filteredList","filter","item","type","sort","a","b","title","trim","localeCompare","map","id","displayName","displayValue","iconUrl","logoUrl","instrumentTypeValue","isSelected","getDeviceDetails","browser","OS","platformVersion","Version","toString","deviceType","deviceName","deviceBrandName","getBrowserData","screenHeight","height","screenWidth","width","acceptHeader","userAgentHeader","browserLanguage","ipAddress","colorDepth","javaEnabled","timeZoneOffSet","Date","getTimezoneOffset","packageId","getShopperDetails","userData","isDeliveryAddressEmpty","address","Object","values","every","value","undefined","deliveryAddress","address1","address2","city","state","countryCode","country","postalCode","pincode","labelType","labelName","email","firstName","gender","lastName","phoneNumber","phone","uniqueReference","uniqueId","dateOfBirth","dob","panNumber","pan","get"],"sourceRoot":"../../../src","sources":["utils/listAndObjectUtils.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const TEST_API_URL = "https://test-apis.boxpay.tech";
|
|
4
|
-
const PROD_API_URL = "https://apis.boxpay.in";
|
|
5
|
-
const ROUTE = "/v0/checkout/sessions/";
|
|
6
|
-
export function getEndpoint(env) {
|
|
7
|
-
const baseUrl = env === 'test' ? TEST_API_URL : PROD_API_URL;
|
|
8
|
-
return `${baseUrl}${ROUTE}`;
|
|
9
|
-
}
|
|
10
|
-
export function generateRandomAlphanumericString(length) {
|
|
11
|
-
const charPool = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'.split('');
|
|
12
|
-
let result = '';
|
|
13
|
-
for (let i = 0; i < length; i++) {
|
|
14
|
-
const randomIndex = Math.floor(Math.random() * charPool.length);
|
|
15
|
-
result += charPool[randomIndex];
|
|
16
|
-
}
|
|
17
|
-
return result;
|
|
18
|
-
}
|
|
19
|
-
export function getBaseURL(env) {
|
|
20
|
-
const baseUrl = env === 'test' ? TEST_API_URL : PROD_API_URL;
|
|
21
|
-
return `${baseUrl}/v0`;
|
|
22
|
-
}
|
|
23
|
-
export function formatAddress(deliveryAddress) {
|
|
24
|
-
if (deliveryAddress.address2 == null || deliveryAddress.address2 == '') {
|
|
25
|
-
return `${deliveryAddress.address1}, ${deliveryAddress.city}, ${deliveryAddress.state}, ${deliveryAddress.postalCode}`;
|
|
26
|
-
} else {
|
|
27
|
-
return `${deliveryAddress.address1}, ${deliveryAddress.address2}, ${deliveryAddress.city}, ${deliveryAddress.state}, ${deliveryAddress.postalCode}`;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export function extractNames(fullName) {
|
|
31
|
-
const components = fullName.trim().split(' ').filter(part => part !== '');
|
|
32
|
-
if (components.length === 0) {
|
|
33
|
-
return {
|
|
34
|
-
firstName: '',
|
|
35
|
-
lastName: ''
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
const firstName = components[0] || '';
|
|
39
|
-
const lastName = components.slice(1).join(' ') || '';
|
|
40
|
-
return {
|
|
41
|
-
firstName,
|
|
42
|
-
lastName
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export const formattedTime = timeRemaining => {
|
|
46
|
-
const minutes = Math.floor(timeRemaining / 60);
|
|
47
|
-
const seconds = timeRemaining % 60;
|
|
48
|
-
return `${minutes}:${seconds.toString().padStart(2, "0")}`;
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=stringUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TEST_API_URL","PROD_API_URL","ROUTE","getEndpoint","env","baseUrl","generateRandomAlphanumericString","length","charPool","split","result","i","randomIndex","Math","floor","random","getBaseURL","formatAddress","deliveryAddress","address2","address1","city","state","postalCode","extractNames","fullName","components","trim","filter","part","firstName","lastName","slice","join","formattedTime","timeRemaining","minutes","seconds","toString","padStart"],"sourceRoot":"../../../src","sources":["utils/stringUtils.ts"],"mappings":";;AAEA,MAAMA,YAAY,GAAG,+BAA+B;AACpD,MAAMC,YAAY,GAAG,wBAAwB;AAC7C,MAAMC,KAAK,GAAG,wBAAwB;AAEtC,OAAO,SAASC,WAAWA,CAACC,GAAW,EAAU;EAC/C,MAAMC,OAAO,GAAGD,GAAG,KAAK,MAAM,GAAGJ,YAAY,GAAGC,YAAY;EAC5D,OAAO,GAAGI,OAAO,GAAGH,KAAK,EAAE;AAC7B;AAEA,OAAO,SAASI,gCAAgCA,CAACC,MAAc,EAAU;EACvE,MAAMC,QAAkB,GACtB,gEAAgE,CAACC,KAAK,CACpE,EACF,CAAC;EACH,IAAIC,MAAM,GAAG,EAAE;EAEf,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,MAAM,EAAEI,CAAC,EAAE,EAAE;IAC/B,MAAMC,WAAW,GAAGC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,CAAC,CAAC,GAAGP,QAAQ,CAACD,MAAM,CAAC;IAC/DG,MAAM,IAAIF,QAAQ,CAACI,WAAW,CAAC;EACjC;EAEA,OAAOF,MAAM;AACf;AAGA,OAAO,SAASM,UAAUA,CAACZ,GAAW,EAAU;EAC9C,MAAMC,OAAO,GAAGD,GAAG,KAAK,MAAM,GAAGJ,YAAY,GAAGC,YAAY;EAC5D,OAAO,GAAGI,OAAO,KAAK;AACxB;AAEA,OAAO,SAASY,aAAaA,CAACC,eAAiC,EAAW;EACxE,IAAIA,eAAe,CAACC,QAAQ,IAAI,IAAI,IAAID,eAAe,CAACC,QAAQ,IAAI,EAAE,EAAE;IACtE,OAAO,GAAGD,eAAe,CAACE,QAAQ,KAAKF,eAAe,CAACG,IAAI,KAAKH,eAAe,CAACI,KAAK,KAAKJ,eAAe,CAACK,UAAU,EAAE;EACxH,CAAC,MAAM;IACL,OAAO,GAAGL,eAAe,CAACE,QAAQ,KAAKF,eAAe,CAACC,QAAQ,KAAKD,eAAe,CAACG,IAAI,KAAKH,eAAe,CAACI,KAAK,KAAKJ,eAAe,CAACK,UAAU,EAAE;EACrJ;AACF;AAEA,OAAO,SAASC,YAAYA,CAACC,QAAgB,EAG3C;EACA,MAAMC,UAAU,GAAGD,QAAQ,CACxBE,IAAI,CAAC,CAAC,CACNlB,KAAK,CAAC,GAAG,CAAC,CACVmB,MAAM,CAAEC,IAAI,IAAKA,IAAI,KAAK,EAAE,CAAC;EAEhC,IAAIH,UAAU,CAACnB,MAAM,KAAK,CAAC,EAAE;IAC3B,OAAO;MAAEuB,SAAS,EAAE,EAAE;MAAEC,QAAQ,EAAE;IAAG,CAAC;EACxC;EAEA,MAAMD,SAAS,GAAGJ,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE;EACrC,MAAMK,QAAQ,GAAGL,UAAU,CAACM,KAAK,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE;EAEpD,OAAO;IAAEH,SAAS;IAAEC;EAAS,CAAC;AAChC;AAEA,OAAO,MAAMG,aAAa,GAAIC,aAAqB,IAAa;EAC9D,MAAMC,OAAO,GAAGvB,IAAI,CAACC,KAAK,CAACqB,aAAa,GAAG,EAAE,CAAC;EAC9C,MAAME,OAAO,GAAGF,aAAa,GAAG,EAAE;EAClC,OAAO,GAAGC,OAAO,IAAIC,OAAO,CAACC,QAAQ,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE;AAC5D,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listAndObjectUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/listAndObjectUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAmB,MAAM,cAAc,CAAC;AAIjF,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,aAAa,EAAE,EACrB,UAAU,EAAE,MAAM,GACjB,YAAY,EAAE,CAehB;AAGD,wBAAgB,gBAAgB;;;;;;EAQ/B;AAED,wBAAgB,cAAc;;;;;;;;;;;EAa7B;AAED,wBAAgB,iBAAiB;;;;;;;;;;;;;;;;;;;EA8BhC;AAED,eAAO,MAAQ,MAAM,UAAE,KAAK,QAA6B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DeliveryAddress } from "../interface";
|
|
2
|
-
export declare function getEndpoint(env: string): string;
|
|
3
|
-
export declare function generateRandomAlphanumericString(length: number): string;
|
|
4
|
-
export declare function getBaseURL(env: string): string;
|
|
5
|
-
export declare function formatAddress(deliveryAddress: DeliveryAddress): string;
|
|
6
|
-
export declare function extractNames(fullName: string): {
|
|
7
|
-
firstName: string;
|
|
8
|
-
lastName: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const formattedTime: (timeRemaining: number) => string;
|
|
11
|
-
//# sourceMappingURL=stringUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stringUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/stringUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAMpD,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG/C;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAavE;AAGD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG9C;AAED,wBAAgB,aAAa,CAAC,eAAe,EAAG,eAAe,GAAI,MAAM,CAMxE;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAcA;AAED,eAAO,MAAM,aAAa,GAAI,eAAe,MAAM,KAAG,MAIrD,CAAC"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import type { PaymentMethod, PaymentClass, DeliveryAddress } from '../interface';
|
|
2
|
-
import { Dimensions, Platform } from 'react-native';
|
|
3
|
-
import { userDataHandler } from '../sharedContext/userdataHandler';
|
|
4
|
-
|
|
5
|
-
export function transformAndFilterList(
|
|
6
|
-
data: PaymentMethod[],
|
|
7
|
-
filterType: string
|
|
8
|
-
): PaymentClass[] {
|
|
9
|
-
const filteredList = data
|
|
10
|
-
.filter((item) => item.type === filterType)
|
|
11
|
-
.sort((a, b) => a.title?.trim().localeCompare(b.title?.trim() ?? ''))
|
|
12
|
-
.map((item) => ({
|
|
13
|
-
type: filterType,
|
|
14
|
-
id: item.id,
|
|
15
|
-
displayName: item.title,
|
|
16
|
-
displayValue: item.title,
|
|
17
|
-
iconUrl: item.logoUrl,
|
|
18
|
-
instrumentTypeValue: item.instrumentTypeValue,
|
|
19
|
-
isSelected: false,
|
|
20
|
-
}));
|
|
21
|
-
|
|
22
|
-
return filteredList;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export function getDeviceDetails() {
|
|
27
|
-
return {
|
|
28
|
-
browser: Platform.OS,
|
|
29
|
-
platformVersion: Platform.Version.toString(),
|
|
30
|
-
deviceType: Platform.OS === 'ios' || Platform.OS === 'android' ? 'Phone' : 'Web',
|
|
31
|
-
deviceName: Platform.OS === 'ios' ? 'iOS Device' : 'Android Device',
|
|
32
|
-
deviceBrandName: Platform.OS === 'ios' ? 'Apple' : 'Android'
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export function getBrowserData() {
|
|
37
|
-
return {
|
|
38
|
-
screenHeight: height,
|
|
39
|
-
screenWidth: width,
|
|
40
|
-
acceptHeader: 'application/json',
|
|
41
|
-
userAgentHeader: 'Expo App',
|
|
42
|
-
browserLanguage: 'en_US',
|
|
43
|
-
ipAddress: 'null',
|
|
44
|
-
colorDepth: 24,
|
|
45
|
-
javaEnabled: true,
|
|
46
|
-
timeZoneOffSet: new Date().getTimezoneOffset(),
|
|
47
|
-
packageId: 'com.boxpay.checkout.sdk',
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function getShopperDetails() {
|
|
52
|
-
const { userData } = userDataHandler;
|
|
53
|
-
const isDeliveryAddressEmpty = (address: DeliveryAddress): boolean => {
|
|
54
|
-
return Object.values(address).every(
|
|
55
|
-
(value) => value === null || value === undefined || value === ''
|
|
56
|
-
);
|
|
57
|
-
};
|
|
58
|
-
const deliveryAddress = {
|
|
59
|
-
address1: userData.address1,
|
|
60
|
-
address2: userData.address2,
|
|
61
|
-
city: userData.city,
|
|
62
|
-
state: userData.state,
|
|
63
|
-
countryCode: userData.country,
|
|
64
|
-
postalCode: userData.pincode,
|
|
65
|
-
labelType: userData.labelType,
|
|
66
|
-
labelName: userData.labelName,
|
|
67
|
-
};
|
|
68
|
-
return {
|
|
69
|
-
email: userData.email,
|
|
70
|
-
firstName: userData.firstName,
|
|
71
|
-
gender: null,
|
|
72
|
-
lastName: userData.lastName,
|
|
73
|
-
phoneNumber: userData.phone,
|
|
74
|
-
uniqueReference: userData.uniqueId,
|
|
75
|
-
dateOfBirth: userData.dob,
|
|
76
|
-
panNumber: userData.pan,
|
|
77
|
-
deliveryAddress: isDeliveryAddressEmpty(deliveryAddress)
|
|
78
|
-
? null
|
|
79
|
-
: deliveryAddress,
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export const { height, width } = Dimensions.get("window");
|
package/src/utils/stringUtils.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { DeliveryAddress } from "../interface";
|
|
2
|
-
|
|
3
|
-
const TEST_API_URL = "https://test-apis.boxpay.tech"
|
|
4
|
-
const PROD_API_URL = "https://apis.boxpay.in"
|
|
5
|
-
const ROUTE = "/v0/checkout/sessions/"
|
|
6
|
-
|
|
7
|
-
export function getEndpoint(env: string): string {
|
|
8
|
-
const baseUrl = env === 'test' ? TEST_API_URL : PROD_API_URL;
|
|
9
|
-
return `${baseUrl}${ROUTE}`;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function generateRandomAlphanumericString(length: number): string {
|
|
13
|
-
const charPool: string[] =
|
|
14
|
-
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'.split(
|
|
15
|
-
''
|
|
16
|
-
);
|
|
17
|
-
let result = '';
|
|
18
|
-
|
|
19
|
-
for (let i = 0; i < length; i++) {
|
|
20
|
-
const randomIndex = Math.floor(Math.random() * charPool.length);
|
|
21
|
-
result += charPool[randomIndex];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return result;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export function getBaseURL(env: string): string {
|
|
29
|
-
const baseUrl = env === 'test' ? TEST_API_URL : PROD_API_URL;
|
|
30
|
-
return `${baseUrl}/v0`;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function formatAddress(deliveryAddress : DeliveryAddress) : string {
|
|
34
|
-
if (deliveryAddress.address2 == null || deliveryAddress.address2 == '') {
|
|
35
|
-
return `${deliveryAddress.address1}, ${deliveryAddress.city}, ${deliveryAddress.state}, ${deliveryAddress.postalCode}`
|
|
36
|
-
} else {
|
|
37
|
-
return `${deliveryAddress.address1}, ${deliveryAddress.address2}, ${deliveryAddress.city}, ${deliveryAddress.state}, ${deliveryAddress.postalCode}`
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function extractNames(fullName: string): {
|
|
42
|
-
firstName: string;
|
|
43
|
-
lastName: string;
|
|
44
|
-
} {
|
|
45
|
-
const components = fullName
|
|
46
|
-
.trim()
|
|
47
|
-
.split(' ')
|
|
48
|
-
.filter((part) => part !== '');
|
|
49
|
-
|
|
50
|
-
if (components.length === 0) {
|
|
51
|
-
return { firstName: '', lastName: '' };
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const firstName = components[0] || '';
|
|
55
|
-
const lastName = components.slice(1).join(' ') || '';
|
|
56
|
-
|
|
57
|
-
return { firstName, lastName };
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export const formattedTime = (timeRemaining: number): string => {
|
|
61
|
-
const minutes = Math.floor(timeRemaining / 60);
|
|
62
|
-
const seconds = timeRemaining % 60;
|
|
63
|
-
return `${minutes}:${seconds.toString().padStart(2, "0")}`;
|
|
64
|
-
};
|