@stripe/stripe-react-native 0.42.0 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.husky/pre-commit +0 -3
- package/CHANGELOG.md +26 -0
- package/android/.gradle/8.11.1/checksums/checksums.lock +0 -0
- package/android/.gradle/8.11.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.11.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.11.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.11.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.project +0 -11
- package/android/.settings/org.eclipse.buildship.core.prefs +3 -3
- package/android/build.gradle +8 -1
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/android/gradle.properties +4 -1
- package/android/gradlew +249 -0
- package/android/gradlew.bat +92 -0
- package/android/spotless.gradle +19 -0
- package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormView.kt +30 -34
- package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormViewManager.kt +20 -10
- package/android/src/main/java/com/reactnativestripesdk/CardChangedEvent.kt +12 -13
- package/android/src/main/java/com/reactnativestripesdk/CardFieldView.kt +242 -105
- package/android/src/main/java/com/reactnativestripesdk/CardFieldViewManager.kt +58 -20
- package/android/src/main/java/com/reactnativestripesdk/CardFocusEvent.kt +8 -11
- package/android/src/main/java/com/reactnativestripesdk/CardFormCompleteEvent.kt +10 -12
- package/android/src/main/java/com/reactnativestripesdk/CardFormView.kt +135 -87
- package/android/src/main/java/com/reactnativestripesdk/CardFormViewManager.kt +57 -22
- package/android/src/main/java/com/reactnativestripesdk/CollectBankAccountLauncherFragment.kt +33 -24
- package/android/src/main/java/com/reactnativestripesdk/FinancialConnectionsSheetFragment.kt +107 -85
- package/android/src/main/java/com/reactnativestripesdk/FormCompleteEvent.kt +9 -11
- package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt +16 -9
- package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonView.kt +36 -28
- package/android/src/main/java/com/reactnativestripesdk/GooglePayLauncherFragment.kt +67 -43
- package/android/src/main/java/com/reactnativestripesdk/GooglePayPaymentMethodLauncherFragment.kt +21 -16
- package/android/src/main/java/com/reactnativestripesdk/GooglePayRequestHelper.kt +101 -56
- package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt +244 -166
- package/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt +137 -156
- package/android/src/main/java/com/reactnativestripesdk/PaymentSheetAppearance.kt +181 -57
- package/android/src/main/java/com/reactnativestripesdk/PaymentSheetFragment.kt +422 -258
- package/android/src/main/java/com/reactnativestripesdk/StripeContainerManager.kt +11 -4
- package/android/src/main/java/com/reactnativestripesdk/StripeContainerView.kt +5 -1
- package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +656 -299
- package/android/src/main/java/com/reactnativestripesdk/StripeSdkPackage.kt +12 -14
- package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressLauncherFragment.kt +42 -37
- package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetEvent.kt +12 -11
- package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetView.kt +29 -29
- package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetViewManager.kt +50 -18
- package/android/src/main/java/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt +227 -147
- package/android/src/main/java/com/reactnativestripesdk/customersheet/ReactNativeCustomerAdapter.kt +15 -18
- package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonManager.kt +33 -15
- package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonView.kt +63 -37
- package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletCompleteEvent.kt +9 -13
- package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/EphemeralKeyProvider.kt +15 -17
- package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/PushProvisioningProxy.kt +76 -60
- package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/TapAndPayProxy.kt +71 -47
- package/android/src/main/java/com/reactnativestripesdk/utils/Errors.kt +117 -51
- package/android/src/main/java/com/reactnativestripesdk/utils/Extensions.kt +4 -3
- package/android/src/main/java/com/reactnativestripesdk/utils/KeepJsAwakeTask.kt +39 -0
- package/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt +295 -258
- package/android/src/main/java/com/reactnativestripesdk/utils/PostalCodeUtilities.kt +2 -11
- package/ios/CustomerSheet/CustomerSheetUtils.swift +13 -7
- package/ios/FinancialConnections.swift +6 -2
- package/ios/StripeSdk+CustomerSheet.swift +3 -1
- package/ios/StripeSdk+PaymentSheet.swift +86 -21
- package/ios/StripeSdk.m +2 -0
- package/ios/StripeSdk.swift +72 -11
- package/lib/commonjs/NativeStripeSdk.js +1 -1
- package/lib/commonjs/NativeStripeSdk.js.map +1 -1
- package/lib/commonjs/components/AddToWalletButton.js +1 -1
- package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
- package/lib/commonjs/components/AddressSheet.js +1 -1
- package/lib/commonjs/components/AddressSheet.js.map +1 -1
- package/lib/commonjs/components/ApplePayButtonNative.js +1 -1
- package/lib/commonjs/components/ApplePayButtonNative.js.map +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
- package/lib/commonjs/components/CardField.js +1 -1
- package/lib/commonjs/components/CardField.js.map +1 -1
- package/lib/commonjs/components/CardForm.js +1 -1
- package/lib/commonjs/components/CardForm.js.map +1 -1
- package/lib/commonjs/components/CustomerSheet.js +1 -1
- package/lib/commonjs/components/CustomerSheet.js.map +1 -1
- package/lib/commonjs/components/GooglePayButtonNative.js +1 -1
- package/lib/commonjs/components/GooglePayButtonNative.js.map +1 -1
- package/lib/commonjs/components/PlatformPayButton.js +1 -1
- package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
- package/lib/commonjs/components/StripeContainer.js +1 -1
- package/lib/commonjs/components/StripeContainer.js.map +1 -1
- package/lib/commonjs/components/StripeProvider.js +1 -1
- package/lib/commonjs/components/StripeProvider.js.map +1 -1
- package/lib/commonjs/functions.js +1 -1
- package/lib/commonjs/functions.js.map +1 -1
- package/lib/commonjs/helpers.js +1 -1
- package/lib/commonjs/helpers.js.map +1 -1
- package/lib/commonjs/hooks/useConfirmPayment.js.map +1 -1
- package/lib/commonjs/hooks/useConfirmSetupIntent.js.map +1 -1
- package/lib/commonjs/hooks/useFinancialConnectionsSheet.js.map +1 -1
- package/lib/commonjs/hooks/usePaymentSheet.js.map +1 -1
- package/lib/commonjs/hooks/usePlatformPay.js.map +1 -1
- package/lib/commonjs/hooks/useStripe.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/plugin/withStripe.js +1 -1
- package/lib/commonjs/plugin/withStripe.js.map +1 -1
- package/lib/commonjs/types/ApplePay.js.map +1 -1
- package/lib/commonjs/types/Common.js +1 -1
- package/lib/commonjs/types/Common.js.map +1 -1
- package/lib/commonjs/types/CustomerSheet.js.map +1 -1
- package/lib/commonjs/types/Errors.js +1 -1
- package/lib/commonjs/types/Errors.js.map +1 -1
- package/lib/commonjs/types/FinancialConnections.js +1 -1
- package/lib/commonjs/types/FinancialConnections.js.map +1 -1
- package/lib/commonjs/types/NextAction.js.map +1 -1
- package/lib/commonjs/types/PaymentIntent.js +1 -1
- package/lib/commonjs/types/PaymentIntent.js.map +1 -1
- package/lib/commonjs/types/PaymentMethod.js.map +1 -1
- package/lib/commonjs/types/PaymentSheet.js +1 -1
- package/lib/commonjs/types/PaymentSheet.js.map +1 -1
- package/lib/commonjs/types/PlatformPay.js +1 -1
- package/lib/commonjs/types/PlatformPay.js.map +1 -1
- package/lib/commonjs/types/PushProvisioning.js +1 -1
- package/lib/commonjs/types/PushProvisioning.js.map +1 -1
- package/lib/commonjs/types/SetupIntent.js +1 -1
- package/lib/commonjs/types/SetupIntent.js.map +1 -1
- package/lib/commonjs/types/ThreeDSecure.js +1 -1
- package/lib/commonjs/types/ThreeDSecure.js.map +1 -1
- package/lib/commonjs/types/Token.js.map +1 -1
- package/lib/commonjs/types/components/ApplePayButtonComponent.js.map +1 -1
- package/lib/commonjs/types/components/AuBECSDebitFormComponent.js.map +1 -1
- package/lib/commonjs/types/components/CardFieldInput.js +1 -1
- package/lib/commonjs/types/components/CardFieldInput.js.map +1 -1
- package/lib/commonjs/types/components/CardFormView.js.map +1 -1
- package/lib/commonjs/types/components/GooglePayButtonComponent.js.map +1 -1
- package/lib/commonjs/types/index.js +1 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/module/NativeStripeSdk.js +1 -1
- package/lib/module/NativeStripeSdk.js.map +1 -1
- package/lib/module/components/AddToWalletButton.js +1 -1
- package/lib/module/components/AddToWalletButton.js.map +1 -1
- package/lib/module/components/AddressSheet.js +1 -1
- package/lib/module/components/AddressSheet.js.map +1 -1
- package/lib/module/components/ApplePayButtonNative.js +1 -1
- package/lib/module/components/ApplePayButtonNative.js.map +1 -1
- package/lib/module/components/AuBECSDebitForm.js +1 -1
- package/lib/module/components/AuBECSDebitForm.js.map +1 -1
- package/lib/module/components/CardField.js +1 -1
- package/lib/module/components/CardField.js.map +1 -1
- package/lib/module/components/CardForm.js +1 -1
- package/lib/module/components/CardForm.js.map +1 -1
- package/lib/module/components/CustomerSheet.js +1 -1
- package/lib/module/components/CustomerSheet.js.map +1 -1
- package/lib/module/components/GooglePayButtonNative.js +1 -1
- package/lib/module/components/GooglePayButtonNative.js.map +1 -1
- package/lib/module/components/PlatformPayButton.js +1 -1
- package/lib/module/components/PlatformPayButton.js.map +1 -1
- package/lib/module/components/StripeContainer.js +1 -1
- package/lib/module/components/StripeContainer.js.map +1 -1
- package/lib/module/components/StripeProvider.js +1 -1
- package/lib/module/components/StripeProvider.js.map +1 -1
- package/lib/module/functions.js +1 -1
- package/lib/module/functions.js.map +1 -1
- package/lib/module/helpers.js +1 -1
- package/lib/module/helpers.js.map +1 -1
- package/lib/module/hooks/useConfirmPayment.js.map +1 -1
- package/lib/module/hooks/useConfirmSetupIntent.js.map +1 -1
- package/lib/module/hooks/useFinancialConnectionsSheet.js.map +1 -1
- package/lib/module/hooks/usePaymentSheet.js.map +1 -1
- package/lib/module/hooks/usePlatformPay.js.map +1 -1
- package/lib/module/hooks/useStripe.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/plugin/withStripe.js +1 -1
- package/lib/module/plugin/withStripe.js.map +1 -1
- package/lib/module/types/ApplePay.js.map +1 -1
- package/lib/module/types/Common.js +1 -1
- package/lib/module/types/Common.js.map +1 -1
- package/lib/module/types/CustomerSheet.js.map +1 -1
- package/lib/module/types/Errors.js +1 -1
- package/lib/module/types/Errors.js.map +1 -1
- package/lib/module/types/FinancialConnections.js +1 -1
- package/lib/module/types/FinancialConnections.js.map +1 -1
- package/lib/module/types/NextAction.js.map +1 -1
- package/lib/module/types/PaymentIntent.js +1 -1
- package/lib/module/types/PaymentIntent.js.map +1 -1
- package/lib/module/types/PaymentMethod.js.map +1 -1
- package/lib/module/types/PaymentSheet.js +1 -1
- package/lib/module/types/PaymentSheet.js.map +1 -1
- package/lib/module/types/PlatformPay.js +1 -1
- package/lib/module/types/PlatformPay.js.map +1 -1
- package/lib/module/types/PushProvisioning.js +1 -1
- package/lib/module/types/PushProvisioning.js.map +1 -1
- package/lib/module/types/SetupIntent.js +1 -1
- package/lib/module/types/SetupIntent.js.map +1 -1
- package/lib/module/types/ThreeDSecure.js +1 -1
- package/lib/module/types/ThreeDSecure.js.map +1 -1
- package/lib/module/types/Token.js.map +1 -1
- package/lib/module/types/components/ApplePayButtonComponent.js.map +1 -1
- package/lib/module/types/components/AuBECSDebitFormComponent.js.map +1 -1
- package/lib/module/types/components/CardFieldInput.js +1 -1
- package/lib/module/types/components/CardFieldInput.js.map +1 -1
- package/lib/module/types/components/CardFormView.js.map +1 -1
- package/lib/module/types/components/GooglePayButtonComponent.js.map +1 -1
- package/lib/module/types/index.js +1 -1
- package/lib/module/types/index.js.map +1 -1
- package/lib/typescript/src/NativeStripeSdk.d.ts +4 -3
- package/lib/typescript/src/NativeStripeSdk.d.ts.map +1 -0
- package/lib/typescript/src/components/AddToWalletButton.d.ts +3 -1
- package/lib/typescript/src/components/AddToWalletButton.d.ts.map +1 -0
- package/lib/typescript/src/components/AddressSheet.d.ts +4 -2
- package/lib/typescript/src/components/AddressSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/ApplePayButtonNative.d.ts +1 -0
- package/lib/typescript/src/components/ApplePayButtonNative.d.ts.map +1 -0
- package/lib/typescript/src/components/AuBECSDebitForm.d.ts +3 -1
- package/lib/typescript/src/components/AuBECSDebitForm.d.ts.map +1 -0
- package/lib/typescript/src/components/CardField.d.ts +1 -0
- package/lib/typescript/src/components/CardField.d.ts.map +1 -0
- package/lib/typescript/src/components/CardForm.d.ts +1 -0
- package/lib/typescript/src/components/CardForm.d.ts.map +1 -0
- package/lib/typescript/src/components/CustomerSheet.d.ts +2 -1
- package/lib/typescript/src/components/CustomerSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/GooglePayButtonNative.d.ts +1 -0
- package/lib/typescript/src/components/GooglePayButtonNative.d.ts.map +1 -0
- package/lib/typescript/src/components/PlatformPayButton.d.ts +3 -1
- package/lib/typescript/src/components/PlatformPayButton.d.ts.map +1 -0
- package/lib/typescript/src/components/StripeContainer.d.ts +2 -1
- package/lib/typescript/src/components/StripeContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/StripeProvider.d.ts +3 -2
- package/lib/typescript/src/components/StripeProvider.d.ts.map +1 -0
- package/lib/typescript/src/functions.d.ts +6 -5
- package/lib/typescript/src/functions.d.ts.map +1 -0
- package/lib/typescript/src/helpers.d.ts +1 -0
- package/lib/typescript/src/helpers.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useConfirmPayment.d.ts +2 -1
- package/lib/typescript/src/hooks/useConfirmPayment.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useConfirmSetupIntent.d.ts +1 -0
- package/lib/typescript/src/hooks/useConfirmSetupIntent.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useFinancialConnectionsSheet.d.ts +3 -2
- package/lib/typescript/src/hooks/useFinancialConnectionsSheet.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePaymentSheet.d.ts +2 -1
- package/lib/typescript/src/hooks/usePaymentSheet.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePlatformPay.d.ts +4 -3
- package/lib/typescript/src/hooks/usePlatformPay.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useStripe.d.ts +11 -8
- package/lib/typescript/src/hooks/useStripe.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/plugin/withStripe.d.ts +2 -1
- package/lib/typescript/src/plugin/withStripe.d.ts.map +1 -0
- package/lib/typescript/src/types/ApplePay.d.ts +6 -5
- package/lib/typescript/src/types/ApplePay.d.ts.map +1 -0
- package/lib/typescript/src/types/Common.d.ts +4 -1
- package/lib/typescript/src/types/Common.d.ts.map +1 -0
- package/lib/typescript/src/types/CustomerSheet.d.ts +16 -4
- package/lib/typescript/src/types/CustomerSheet.d.ts.map +1 -0
- package/lib/typescript/src/types/Errors.d.ts +2 -1
- package/lib/typescript/src/types/Errors.d.ts.map +1 -0
- package/lib/typescript/src/types/FinancialConnections.d.ts +21 -17
- package/lib/typescript/src/types/FinancialConnections.d.ts.map +1 -0
- package/lib/typescript/src/types/NextAction.d.ts +9 -8
- package/lib/typescript/src/types/NextAction.d.ts.map +1 -0
- package/lib/typescript/src/types/PaymentIntent.d.ts +16 -15
- package/lib/typescript/src/types/PaymentIntent.d.ts.map +1 -0
- package/lib/typescript/src/types/PaymentMethod.d.ts +21 -16
- package/lib/typescript/src/types/PaymentMethod.d.ts.map +1 -0
- package/lib/typescript/src/types/PaymentSheet.d.ts +91 -22
- package/lib/typescript/src/types/PaymentSheet.d.ts.map +1 -0
- package/lib/typescript/src/types/PlatformPay.d.ts +22 -21
- package/lib/typescript/src/types/PlatformPay.d.ts.map +1 -0
- package/lib/typescript/src/types/PushProvisioning.d.ts +5 -4
- package/lib/typescript/src/types/PushProvisioning.d.ts.map +1 -0
- package/lib/typescript/src/types/SetupIntent.d.ts +4 -3
- package/lib/typescript/src/types/SetupIntent.d.ts.map +1 -0
- package/lib/typescript/src/types/ThreeDSecure.d.ts +1 -0
- package/lib/typescript/src/types/ThreeDSecure.d.ts.map +1 -0
- package/lib/typescript/src/types/Token.d.ts +10 -9
- package/lib/typescript/src/types/Token.d.ts.map +1 -0
- package/lib/typescript/src/types/components/ApplePayButtonComponent.d.ts +3 -2
- package/lib/typescript/src/types/components/ApplePayButtonComponent.d.ts.map +1 -0
- package/lib/typescript/src/types/components/AuBECSDebitFormComponent.d.ts +1 -0
- package/lib/typescript/src/types/components/AuBECSDebitFormComponent.d.ts.map +1 -0
- package/lib/typescript/src/types/components/CardFieldInput.d.ts +8 -5
- package/lib/typescript/src/types/components/CardFieldInput.d.ts.map +1 -0
- package/lib/typescript/src/types/components/CardFormView.d.ts +9 -6
- package/lib/typescript/src/types/components/CardFormView.d.ts.map +1 -0
- package/lib/typescript/src/types/components/GooglePayButtonComponent.d.ts +1 -0
- package/lib/typescript/src/types/components/GooglePayButtonComponent.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +24 -23
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/package.json +32 -40
- package/src/NativeStripeSdk.tsx +4 -2
- package/src/components/CardField.tsx +1 -1
- package/src/components/CardForm.tsx +12 -9
- package/src/components/CustomerSheet.tsx +4 -6
- package/src/components/StripeProvider.tsx +17 -0
- package/src/functions.ts +13 -14
- package/src/helpers.ts +2 -1
- package/src/types/Common.ts +3 -0
- package/src/types/CustomerSheet.ts +11 -0
- package/src/types/FinancialConnections.ts +3 -0
- package/src/types/PaymentMethod.ts +5 -1
- package/src/types/PaymentSheet.ts +85 -4
- package/src/types/components/CardFieldInput.ts +8 -4
- package/src/types/components/CardFormView.ts +8 -4
- package/stripe-react-native.podspec +2 -1
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- /package/android/.gradle/{8.9 → 8.11.1}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{8.9/dependencies-accessors → 8.11.1}/gc.properties +0 -0
|
@@ -3,7 +3,7 @@ import type { Result as PaymentMethod } from './PaymentMethod';
|
|
|
3
3
|
import type { Result as PaymentIntent } from './PaymentIntent';
|
|
4
4
|
import type { Result as SetupIntent } from './SetupIntent';
|
|
5
5
|
import type { StripeError, PlatformPayError } from './Errors';
|
|
6
|
-
export
|
|
6
|
+
export type ApplePaySheetError = {
|
|
7
7
|
errorType: ApplePaySheetErrorType.InvalidShippingAddress;
|
|
8
8
|
field: InvalidShippingField;
|
|
9
9
|
message?: string;
|
|
@@ -34,7 +34,7 @@ export declare enum InvalidShippingField {
|
|
|
34
34
|
CountryCode = "countryCode",
|
|
35
35
|
SubLocality = "subLocality"
|
|
36
36
|
}
|
|
37
|
-
export
|
|
37
|
+
export type ApplePayBaseParams = {
|
|
38
38
|
/** ISO 3166-1 alpha-2 country code where the transaction is processed. */
|
|
39
39
|
merchantCountryCode: string;
|
|
40
40
|
/** ISO 4217 alphabetic currency code. */
|
|
@@ -56,7 +56,7 @@ export declare type ApplePayBaseParams = {
|
|
|
56
56
|
/** A list of two-letter ISO 3166 country codes for limiting payment to cards from specific countries or regions. */
|
|
57
57
|
supportedCountries?: Array<string>;
|
|
58
58
|
};
|
|
59
|
-
export
|
|
59
|
+
export type ApplePayConfirmParams = {
|
|
60
60
|
/** A typical request is for a one-time payment. To support different types of payment requests, include a PaymentRequestType. Only supported on iOS 16 and up. */
|
|
61
61
|
request?: RecurringPaymentRequest | AutomaticReloadPaymentRequest | MultiMerchantRequest;
|
|
62
62
|
};
|
|
@@ -66,7 +66,7 @@ export declare enum PaymentRequestType {
|
|
|
66
66
|
MultiMerchant = "MultiMerchant"
|
|
67
67
|
}
|
|
68
68
|
/** Use this for a recurring payment, typically a subscription. */
|
|
69
|
-
export
|
|
69
|
+
export type RecurringPaymentRequest = {
|
|
70
70
|
type: PaymentRequestType.Recurring;
|
|
71
71
|
/** A description that you provide of the recurring payment and that Apple Pay displays to the user in the sheet. */
|
|
72
72
|
description: string;
|
|
@@ -84,7 +84,7 @@ export declare type RecurringPaymentRequest = {
|
|
|
84
84
|
tokenNotificationURL?: string;
|
|
85
85
|
};
|
|
86
86
|
/** Use this for an automatic reload or refill payment, such as a store card top-up. */
|
|
87
|
-
export
|
|
87
|
+
export type AutomaticReloadPaymentRequest = {
|
|
88
88
|
type: PaymentRequestType.AutomaticReload;
|
|
89
89
|
/** A description that you provide of the recurring payment and that Apple Pay displays to the user in the sheet. */
|
|
90
90
|
description: string;
|
|
@@ -104,7 +104,7 @@ export declare type AutomaticReloadPaymentRequest = {
|
|
|
104
104
|
tokenNotificationURL?: string;
|
|
105
105
|
};
|
|
106
106
|
/** Use this to indicate payments for multiple merchants. */
|
|
107
|
-
export
|
|
107
|
+
export type MultiMerchantRequest = {
|
|
108
108
|
type: PaymentRequestType.MultiMerchant;
|
|
109
109
|
merchants: Array<{
|
|
110
110
|
/** The Apple Pay merchant identifier. */
|
|
@@ -119,7 +119,7 @@ export declare type MultiMerchantRequest = {
|
|
|
119
119
|
amount: string;
|
|
120
120
|
}>;
|
|
121
121
|
};
|
|
122
|
-
export
|
|
122
|
+
export type ApplePayPaymentMethodParams = {
|
|
123
123
|
/** Set this value to true to display the coupon code field, or pass the 'couponCode' field to autofill with a coupon code. Defaults to false. If true, you must implement the PlatformPayButton component's `onCouponCodeEntered` callback and call `updatePlatformPaySheet` from there. */
|
|
124
124
|
supportsCouponCode?: boolean;
|
|
125
125
|
/** Set this value to autofill with a coupon code. If provided, you must implement the PlatformPayButton component's `onCouponCodeEntered` callback and call `updatePlatformPaySheet` from there. */
|
|
@@ -141,7 +141,7 @@ export declare enum ApplePayShippingType {
|
|
|
141
141
|
StorePickup = "storePickup",
|
|
142
142
|
ServicePickup = "servicePickup"
|
|
143
143
|
}
|
|
144
|
-
export
|
|
144
|
+
export type GooglePayBaseParams = {
|
|
145
145
|
/**
|
|
146
146
|
* Set to true to run in a test environment with relaxed application / merchant requirements. This environment is suggested for early development and for easily testing SDK.
|
|
147
147
|
- Does not require the application to be uploaded to the Google Play Store.
|
|
@@ -176,7 +176,7 @@ export declare type GooglePayBaseParams = {
|
|
|
176
176
|
/** An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. Provide this value in the currency’s smallest unit. */
|
|
177
177
|
amount?: number;
|
|
178
178
|
};
|
|
179
|
-
export
|
|
179
|
+
export type GooglePayPaymentMethodParams = {
|
|
180
180
|
/** Describes the configuration for shipping address collection in the Google Pay sheet. */
|
|
181
181
|
shippingAddressConfig?: {
|
|
182
182
|
/** Set to true if shipping address is required for payment. Defaults to false. */
|
|
@@ -193,13 +193,13 @@ export declare enum BillingAddressFormat {
|
|
|
193
193
|
/** Collect name, country code, and postal code (default). */
|
|
194
194
|
Min = "MIN"
|
|
195
195
|
}
|
|
196
|
-
export
|
|
196
|
+
export type PaymentMethodParams = {
|
|
197
197
|
/** Defines Google Pay behavior. Android only. */
|
|
198
198
|
googlePay?: GooglePayBaseParams & GooglePayPaymentMethodParams;
|
|
199
199
|
/** Defines Apple Pay behavior. iOS only. */
|
|
200
200
|
applePay?: ApplePayBaseParams & ApplePayPaymentMethodParams;
|
|
201
201
|
};
|
|
202
|
-
export
|
|
202
|
+
export type ConfirmParams = {
|
|
203
203
|
/** Defines Google Pay behavior. Android only. */
|
|
204
204
|
googlePay?: GooglePayBaseParams;
|
|
205
205
|
/** Defines Apple Pay behavior. iOS only. */
|
|
@@ -257,7 +257,7 @@ export declare enum ButtonStyle {
|
|
|
257
257
|
Automatic = 3
|
|
258
258
|
}
|
|
259
259
|
/** iOS only. */
|
|
260
|
-
export
|
|
260
|
+
export type CartSummaryItem = DeferredCartSummaryItem | ImmediateCartSummaryItem | RecurringCartSummaryItem;
|
|
261
261
|
/** iOS only. */
|
|
262
262
|
export declare enum PaymentType {
|
|
263
263
|
Deferred = "Deferred",
|
|
@@ -265,7 +265,7 @@ export declare enum PaymentType {
|
|
|
265
265
|
Recurring = "Recurring"
|
|
266
266
|
}
|
|
267
267
|
/** iOS only. Use this type for a payment that occurs in the future, such as a pre-order. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem. */
|
|
268
|
-
export
|
|
268
|
+
export type DeferredCartSummaryItem = {
|
|
269
269
|
paymentType: PaymentType.Deferred;
|
|
270
270
|
/** The unix timestamp of the date, in the future, of the payment. Measured in seconds. */
|
|
271
271
|
deferredDate: number;
|
|
@@ -273,7 +273,7 @@ export declare type DeferredCartSummaryItem = {
|
|
|
273
273
|
amount: string;
|
|
274
274
|
};
|
|
275
275
|
/** iOS only. Use this type for payments that will occur immediately. */
|
|
276
|
-
export
|
|
276
|
+
export type ImmediateCartSummaryItem = {
|
|
277
277
|
paymentType: PaymentType.Immediate;
|
|
278
278
|
/** When creating items for estimates or charges whose final value is not yet known, set this to true. */
|
|
279
279
|
isPending?: boolean;
|
|
@@ -281,7 +281,7 @@ export declare type ImmediateCartSummaryItem = {
|
|
|
281
281
|
amount: string;
|
|
282
282
|
};
|
|
283
283
|
/** iOS only. Use this type for payments that occur more than once, such as a subscription. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem.*/
|
|
284
|
-
export
|
|
284
|
+
export type RecurringCartSummaryItem = {
|
|
285
285
|
paymentType: PaymentType.Recurring;
|
|
286
286
|
/** The amount of time – in calendar units such as Day, Month, or Year – that represents a fraction of the total payment interval. For example, if you set the intervalUnit to 'Month' and intervalCount to 3, then the payment interval is three months.*/
|
|
287
287
|
intervalUnit: IntervalUnit;
|
|
@@ -303,7 +303,7 @@ export declare enum IntervalUnit {
|
|
|
303
303
|
Year = "year"
|
|
304
304
|
}
|
|
305
305
|
/** iOS only. */
|
|
306
|
-
export
|
|
306
|
+
export type ShippingMethod = {
|
|
307
307
|
/** A short, localized description. */
|
|
308
308
|
label: string;
|
|
309
309
|
/** The cost associated with this shipping option. */
|
|
@@ -344,7 +344,7 @@ export interface ShippingContact {
|
|
|
344
344
|
postalAddress: PostalAddress;
|
|
345
345
|
}
|
|
346
346
|
/** Android only. */
|
|
347
|
-
export
|
|
347
|
+
export type IsGooglePaySupportedParams = {
|
|
348
348
|
/** Set to true to run in a test environment with relaxed application / merchant requirements. This environment is suggested for early development and for easily testing SDK. Defaults to false. */
|
|
349
349
|
testEnv?: boolean;
|
|
350
350
|
/**
|
|
@@ -353,7 +353,7 @@ export declare type IsGooglePaySupportedParams = {
|
|
|
353
353
|
*/
|
|
354
354
|
existingPaymentMethodRequired?: boolean;
|
|
355
355
|
};
|
|
356
|
-
export
|
|
356
|
+
export type PaymentMethodResult = {
|
|
357
357
|
paymentMethod: PaymentMethod;
|
|
358
358
|
shippingContact?: ShippingContact;
|
|
359
359
|
error?: undefined;
|
|
@@ -362,7 +362,7 @@ export declare type PaymentMethodResult = {
|
|
|
362
362
|
shippingContact?: undefined;
|
|
363
363
|
error: StripeError<PlatformPayError>;
|
|
364
364
|
};
|
|
365
|
-
export
|
|
365
|
+
export type TokenResult = {
|
|
366
366
|
token: Token;
|
|
367
367
|
shippingContact?: ShippingContact;
|
|
368
368
|
error?: undefined;
|
|
@@ -371,14 +371,14 @@ export declare type TokenResult = {
|
|
|
371
371
|
shippingContact?: undefined;
|
|
372
372
|
error: StripeError<PlatformPayError>;
|
|
373
373
|
};
|
|
374
|
-
export
|
|
374
|
+
export type ConfirmPaymentResult = {
|
|
375
375
|
paymentIntent: PaymentIntent;
|
|
376
376
|
error?: StripeError<PlatformPayError>;
|
|
377
377
|
} | {
|
|
378
378
|
paymentIntent?: undefined;
|
|
379
379
|
error: StripeError<PlatformPayError>;
|
|
380
380
|
};
|
|
381
|
-
export
|
|
381
|
+
export type ConfirmSetupIntentResult = {
|
|
382
382
|
setupIntent: SetupIntent;
|
|
383
383
|
error?: StripeError<PlatformPayError>;
|
|
384
384
|
} | {
|
|
@@ -386,3 +386,4 @@ export declare type ConfirmSetupIntentResult = {
|
|
|
386
386
|
error: StripeError<PlatformPayError>;
|
|
387
387
|
};
|
|
388
388
|
export {};
|
|
389
|
+
//# sourceMappingURL=PlatformPay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlatformPay.d.ts","sourceRoot":"","sources":["../../../../src/types/PlatformPay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAC1B;IACE,SAAS,EAAE,sBAAsB,CAAC,sBAAsB,CAAC;IACzD,KAAK,EAAE,oBAAoB,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GACD;IACE,SAAS,EACL,sBAAsB,CAAC,4BAA4B,GACnD,sBAAsB,CAAC,iBAAiB,GACxC,sBAAsB,CAAC,iBAAiB,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEN,oBAA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';
|
|
2
|
-
export
|
|
2
|
+
export type GooglePayCardToken = {
|
|
3
3
|
/** The token reference ID. */
|
|
4
4
|
id: string;
|
|
5
5
|
/** Last four digits of the FPAN */
|
|
@@ -29,7 +29,7 @@ export declare enum GooglePayCardTokenStatus {
|
|
|
29
29
|
/** */
|
|
30
30
|
TOKEN_STATE_UNTOKENIZED = "TOKEN_STATE_UNTOKENIZED"
|
|
31
31
|
}
|
|
32
|
-
export
|
|
32
|
+
export type IsCardInWalletResult = {
|
|
33
33
|
isInWallet: boolean;
|
|
34
34
|
token?: GooglePayCardToken;
|
|
35
35
|
error?: undefined;
|
|
@@ -38,7 +38,7 @@ export declare type IsCardInWalletResult = {
|
|
|
38
38
|
token?: undefined;
|
|
39
39
|
error: StripeError<GooglePayError>;
|
|
40
40
|
};
|
|
41
|
-
export
|
|
41
|
+
export type CanAddCardToWalletParams = {
|
|
42
42
|
/** The `primary_account_identifier` value from the issued card. Can be an empty string. */
|
|
43
43
|
primaryAccountIdentifier: string | null;
|
|
44
44
|
/** Last 4 digits of the card number. Required for Android. */
|
|
@@ -50,7 +50,7 @@ export declare type CanAddCardToWalletParams = {
|
|
|
50
50
|
/** Android only, defaults to `true`. Set this to `false` if you'd like to allow users without NFC-enabled devices to add cards to the wallet. NFC is required for paying in stores. */
|
|
51
51
|
supportsTapToPay?: boolean;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
53
|
+
export type CanAddCardToWalletResult = {
|
|
54
54
|
canAddCard: boolean;
|
|
55
55
|
details?: {
|
|
56
56
|
token?: GooglePayCardToken;
|
|
@@ -74,3 +74,4 @@ export declare enum CanAddCardToWalletStatus {
|
|
|
74
74
|
/** This card already exists on the paired device, but not on this device. */
|
|
75
75
|
CARD_EXISTS_ON_PAIRED_DEVICE = "CARD_EXISTS_ON_PAIRED_DEVICE"
|
|
76
76
|
}
|
|
77
|
+
//# sourceMappingURL=PushProvisioning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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K,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,uLAAuL;IACvL,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAChC;IACE,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,kBAAkB,CAAC;QAC3B,MAAM,CAAC,EAAE,wBAAwB,CAAC;KACnC,CAAC;IACF,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GACD;IACE,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;CACpC,CAAC;AAEN,oBAAY,wBAAwB;IAClC,yLAAyL;IACzL,qBAAqB,0BAA0B;IAC/C,sEAAsE;IACtE,kBAAkB,uBAAuB;IACzC,sEAAsE;IACtE,mBAAmB,wBAAwB;IAC3C,6EAA6E;IAC7E,6BAA6B,kCAAkC;IAC/D,6EAA6E;IAC7E,4BAA4B,iCAAiC;CAC9D"}
|
|
@@ -18,9 +18,9 @@ export interface Result {
|
|
|
18
18
|
description: string | null;
|
|
19
19
|
nextAction: NextAction | null;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
21
|
+
export type ConfirmParams = PaymentIntentConfirmParams;
|
|
22
|
+
export type ConfirmOptions = PaymentIntentConfirmOptions;
|
|
23
|
+
export type FutureUsage = 'Unknown' | 'None' | 'OnSession' | 'OffSession' | 'OneTime';
|
|
24
24
|
export declare enum Status {
|
|
25
25
|
Succeeded = "Succeeded",
|
|
26
26
|
RequiresPaymentMethod = "RequiresPaymentMethod",
|
|
@@ -30,3 +30,4 @@ export declare enum Status {
|
|
|
30
30
|
RequiresAction = "RequiresAction",
|
|
31
31
|
Unknown = "Unknown"
|
|
32
32
|
}
|
|
33
|
+
//# sourceMappingURL=SetupIntent.d.ts.map
|
|
@@ -0,0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nB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from './Common';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type CardBrand = 'AmericanExpress' | 'DinersClub' | 'Discover' | 'JCB' | 'MasterCard' | 'UnionPay' | 'Visa' | 'Unknown';
|
|
3
|
+
export type Type = 'Account' | 'BankAccount' | 'Card' | 'CvcUpdate' | 'Person' | 'Pii';
|
|
4
4
|
export interface Result {
|
|
5
5
|
id: string;
|
|
6
6
|
/** The UNIX timestamp (in milliseconds) of the date this token was created. */
|
|
@@ -29,7 +29,7 @@ export interface BankAccount {
|
|
|
29
29
|
fingerprint: string | null;
|
|
30
30
|
last4: string | null;
|
|
31
31
|
}
|
|
32
|
-
export
|
|
32
|
+
export type BankAccountStatus = 'Errored' | 'New' | 'Validated' | 'VerificationFailed' | 'Verified';
|
|
33
33
|
export interface Card {
|
|
34
34
|
id: string;
|
|
35
35
|
country: string;
|
|
@@ -42,18 +42,18 @@ export interface Card {
|
|
|
42
42
|
address: Address;
|
|
43
43
|
name?: string;
|
|
44
44
|
}
|
|
45
|
-
export
|
|
45
|
+
export type CreateParams = CreateCardTokenParams | CreateBankAccountTokenParams | CreatePiiTokenParams;
|
|
46
46
|
/** Creates a single-use token that represents a credit card’s details. Use this in combination with either the CardField or CardForm components. This token can be used in place of a credit card object with any API method. See https://stripe.com/docs/api/tokens/create_card*/
|
|
47
|
-
export
|
|
47
|
+
export type CreateCardTokenParams = {
|
|
48
48
|
type: 'Card';
|
|
49
49
|
address?: Address;
|
|
50
50
|
name?: string;
|
|
51
51
|
currency?: string;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
54
|
-
export
|
|
53
|
+
export type BankAcccountHolderType = 'Company' | 'Individual';
|
|
54
|
+
export type BankAcccountType = 'Checking' | 'Savings';
|
|
55
55
|
/** Creates a single-use token that represents a bank account’s details. This token can be used with any API method in place of a bank account object. See https://stripe.com/docs/api/tokens/create_bank_account */
|
|
56
|
-
export
|
|
56
|
+
export type CreateBankAccountTokenParams = {
|
|
57
57
|
type: 'BankAccount';
|
|
58
58
|
accountHolderName?: string;
|
|
59
59
|
accountHolderType?: BankAcccountHolderType;
|
|
@@ -63,8 +63,9 @@ export declare type CreateBankAccountTokenParams = {
|
|
|
63
63
|
routingNumber?: string;
|
|
64
64
|
};
|
|
65
65
|
/** Creates a single-use token that represents the details of personally identifiable information (PII). See https://stripe.com/docs/api/tokens/create_pii */
|
|
66
|
-
export
|
|
66
|
+
export type CreatePiiTokenParams = {
|
|
67
67
|
type: 'Pii';
|
|
68
68
|
/** The user's personal ID number */
|
|
69
69
|
personalId: string;
|
|
70
70
|
};
|
|
71
|
+
//# sourceMappingURL=Token.d.ts.map
|
|
@@ -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AC"}
|
|
@@ -18,5 +18,6 @@ export interface NativeProps {
|
|
|
18
18
|
}>) => void;
|
|
19
19
|
onOrderTrackingAction?: () => void;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type Type = 'plain' | 'buy' | 'setUp' | 'inStore' | 'donate' | 'checkout' | 'book' | 'subscribe' | 'reload' | 'addMoney' | 'topUp' | 'order' | 'rent' | 'support' | 'contribute' | 'tip' | 'continue';
|
|
22
|
+
export type Style = 'white' | 'whiteOutline' | 'black' | 'automatic';
|
|
23
|
+
//# sourceMappingURL=ApplePayButtonComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplePayButtonComponent.d.ts","sourceRoot":"","sources":["../../../../../src/types/components/ApplePayButtonComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtE,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,IAAI,IAAI,CAAC;IACvB,8BAA8B,CAAC,EAAE,CAC/B,KAAK,EAAE,oBAAoB,CAAC;QAC1B,cAAc,EAAE,cAAc,CAAC;KAChC,CAAC,KACC,IAAI,CAAC;IACV,+BAA+B,CAAC,EAAE,CAChC,KAAK,EAAE,oBAAoB,CAAC;QAC1B,eAAe,EAAE,eAAe,CAAC;KAClC,CAAC,KACC,IAAI,CAAC;IACV,yBAAyB,CAAC,EAAE,CAC1B,KAAK,EAAE,oBAAoB,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC,KACC,IAAI,CAAC;IACV,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;CACpC;AAED,MAAM,MAAM,IAAI,GACZ,OAAO,GACP,KAAK,GACL,OAAO,GACP,SAAS,GACT,QAAQ,GACR,UAAU,GACV,MAAM,GACN,WAAW,GACX,QAAQ,GACR,UAAU,GACV,OAAO,GACP,OAAO,GACP,MAAM,GACN,SAAS,GACT,YAAY,GACZ,KAAK,GACL,UAAU,CAAC;AAEf,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,cAAc,GAAG,OAAO,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuBECSDebitFormComponent.d.ts","sourceRoot":"","sources":["../../../../../src/types/components/AuBECSDebitFormComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,KAAK,EAAE,oBAAoB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;CAClE;AAED,MAAM,WAAW,WAAW;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,MAAM;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native';
|
|
2
2
|
import type { CardBrand } from '../Token';
|
|
3
|
-
export
|
|
3
|
+
export type FieldName = 'CardNumber' | 'Cvc' | 'ExpiryDate' | 'PostalCode';
|
|
4
4
|
export declare enum ValidationState {
|
|
5
5
|
Valid = "Valid",
|
|
6
6
|
Invalid = "Invalid",
|
|
@@ -45,6 +45,10 @@ export interface Placeholders {
|
|
|
45
45
|
cvc?: string;
|
|
46
46
|
postalCode?: string;
|
|
47
47
|
}
|
|
48
|
+
export type OnFocusChangeEvent = NativeSyntheticEvent<{
|
|
49
|
+
focusedField: FieldName | null;
|
|
50
|
+
}>;
|
|
51
|
+
export type OnCardChangeEvent = NativeSyntheticEvent<Details>;
|
|
48
52
|
/**
|
|
49
53
|
* @ignore
|
|
50
54
|
*/
|
|
@@ -54,10 +58,8 @@ export interface NativeProps {
|
|
|
54
58
|
postalCodeEnabled?: boolean;
|
|
55
59
|
autofocus?: boolean;
|
|
56
60
|
countryCode: string | null;
|
|
57
|
-
onCardChange(event:
|
|
58
|
-
onFocusChange(event:
|
|
59
|
-
focusedField: FieldName | null;
|
|
60
|
-
}>): void;
|
|
61
|
+
onCardChange(event: OnCardChangeEvent): void;
|
|
62
|
+
onFocusChange(event: OnFocusChangeEvent): void;
|
|
61
63
|
cardStyle?: Styles;
|
|
62
64
|
placeholders?: Placeholders;
|
|
63
65
|
disabled?: boolean;
|
|
@@ -67,3 +69,4 @@ export interface Methods {
|
|
|
67
69
|
blur(): void;
|
|
68
70
|
clear(): void;
|
|
69
71
|
}
|
|
72
|
+
//# sourceMappingURL=CardFieldInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardFieldInput.d.ts","sourceRoot":"","s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,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;IACpD,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;CAChC,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC7C,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;IACb,KAAK,IAAI,IAAI,CAAC;CACf"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native';
|
|
2
2
|
import type { CardBrand } from '../Token';
|
|
3
|
-
export
|
|
3
|
+
export type FieldName = 'CardNumber' | 'Cvc' | 'ExpiryDate' | 'PostalCode';
|
|
4
4
|
export interface Details {
|
|
5
5
|
last4: string;
|
|
6
6
|
expiryMonth: number;
|
|
@@ -37,10 +37,14 @@ export interface Placeholders {
|
|
|
37
37
|
cvc?: string;
|
|
38
38
|
postalCode?: string;
|
|
39
39
|
}
|
|
40
|
-
export
|
|
40
|
+
export type DefaultValues = {
|
|
41
41
|
/** The 2-letter country code for the country selected by default on Android. If this is null, it is set by the device's configured region in the Settings app. */
|
|
42
42
|
countryCode?: string;
|
|
43
43
|
};
|
|
44
|
+
export type OnFocusChangeEvent = NativeSyntheticEvent<{
|
|
45
|
+
focusedField: FieldName | null;
|
|
46
|
+
}>;
|
|
47
|
+
export type OnFormCompleteEvent = NativeSyntheticEvent<Details>;
|
|
44
48
|
/**
|
|
45
49
|
* @ignore
|
|
46
50
|
*/
|
|
@@ -52,13 +56,12 @@ export interface NativeProps {
|
|
|
52
56
|
placeholders?: Placeholders;
|
|
53
57
|
/** Android only */
|
|
54
58
|
defaultValues?: DefaultValues;
|
|
55
|
-
onFocusChange(event:
|
|
56
|
-
|
|
57
|
-
}>): void;
|
|
58
|
-
onFormComplete(event: NativeSyntheticEvent<Details>): void;
|
|
59
|
+
onFocusChange(event: OnFocusChangeEvent): void;
|
|
60
|
+
onFormComplete(event: OnFormCompleteEvent): void;
|
|
59
61
|
disabled?: boolean;
|
|
60
62
|
}
|
|
61
63
|
export interface Methods {
|
|
62
64
|
focus(): void;
|
|
63
65
|
blur(): void;
|
|
64
66
|
}
|
|
67
|
+
//# sourceMappingURL=CardFormView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardFormView.d.ts","sourceRoot":"","sources":["../../../../../src/types/components/CardFormView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,KAAK,GAAG,YAAY,GAAG,YAAY,CAAC;AAE3E,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAA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AAmB;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,mBAAmB;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC/C,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GooglePayButtonComponent.d.ts","sourceRoot":"","sources":["../../../../../src/types/components/GooglePayButtonComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|