@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.
Files changed (309) hide show
  1. package/.husky/pre-commit +0 -3
  2. package/CHANGELOG.md +26 -0
  3. package/android/.gradle/8.11.1/checksums/checksums.lock +0 -0
  4. package/android/.gradle/8.11.1/checksums/md5-checksums.bin +0 -0
  5. package/android/.gradle/8.11.1/checksums/sha1-checksums.bin +0 -0
  6. package/android/.gradle/8.11.1/executionHistory/executionHistory.lock +0 -0
  7. package/android/.gradle/8.11.1/fileHashes/fileHashes.lock +0 -0
  8. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  9. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  10. package/android/.project +0 -11
  11. package/android/.settings/org.eclipse.buildship.core.prefs +3 -3
  12. package/android/build.gradle +8 -1
  13. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  14. package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  15. package/android/gradle.properties +4 -1
  16. package/android/gradlew +249 -0
  17. package/android/gradlew.bat +92 -0
  18. package/android/spotless.gradle +19 -0
  19. package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormView.kt +30 -34
  20. package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormViewManager.kt +20 -10
  21. package/android/src/main/java/com/reactnativestripesdk/CardChangedEvent.kt +12 -13
  22. package/android/src/main/java/com/reactnativestripesdk/CardFieldView.kt +242 -105
  23. package/android/src/main/java/com/reactnativestripesdk/CardFieldViewManager.kt +58 -20
  24. package/android/src/main/java/com/reactnativestripesdk/CardFocusEvent.kt +8 -11
  25. package/android/src/main/java/com/reactnativestripesdk/CardFormCompleteEvent.kt +10 -12
  26. package/android/src/main/java/com/reactnativestripesdk/CardFormView.kt +135 -87
  27. package/android/src/main/java/com/reactnativestripesdk/CardFormViewManager.kt +57 -22
  28. package/android/src/main/java/com/reactnativestripesdk/CollectBankAccountLauncherFragment.kt +33 -24
  29. package/android/src/main/java/com/reactnativestripesdk/FinancialConnectionsSheetFragment.kt +107 -85
  30. package/android/src/main/java/com/reactnativestripesdk/FormCompleteEvent.kt +9 -11
  31. package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt +16 -9
  32. package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonView.kt +36 -28
  33. package/android/src/main/java/com/reactnativestripesdk/GooglePayLauncherFragment.kt +67 -43
  34. package/android/src/main/java/com/reactnativestripesdk/GooglePayPaymentMethodLauncherFragment.kt +21 -16
  35. package/android/src/main/java/com/reactnativestripesdk/GooglePayRequestHelper.kt +101 -56
  36. package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt +244 -166
  37. package/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt +137 -156
  38. package/android/src/main/java/com/reactnativestripesdk/PaymentSheetAppearance.kt +181 -57
  39. package/android/src/main/java/com/reactnativestripesdk/PaymentSheetFragment.kt +422 -258
  40. package/android/src/main/java/com/reactnativestripesdk/StripeContainerManager.kt +11 -4
  41. package/android/src/main/java/com/reactnativestripesdk/StripeContainerView.kt +5 -1
  42. package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +656 -299
  43. package/android/src/main/java/com/reactnativestripesdk/StripeSdkPackage.kt +12 -14
  44. package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressLauncherFragment.kt +42 -37
  45. package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetEvent.kt +12 -11
  46. package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetView.kt +29 -29
  47. package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetViewManager.kt +50 -18
  48. package/android/src/main/java/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt +227 -147
  49. package/android/src/main/java/com/reactnativestripesdk/customersheet/ReactNativeCustomerAdapter.kt +15 -18
  50. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonManager.kt +33 -15
  51. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonView.kt +63 -37
  52. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletCompleteEvent.kt +9 -13
  53. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/EphemeralKeyProvider.kt +15 -17
  54. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/PushProvisioningProxy.kt +76 -60
  55. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/TapAndPayProxy.kt +71 -47
  56. package/android/src/main/java/com/reactnativestripesdk/utils/Errors.kt +117 -51
  57. package/android/src/main/java/com/reactnativestripesdk/utils/Extensions.kt +4 -3
  58. package/android/src/main/java/com/reactnativestripesdk/utils/KeepJsAwakeTask.kt +39 -0
  59. package/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt +295 -258
  60. package/android/src/main/java/com/reactnativestripesdk/utils/PostalCodeUtilities.kt +2 -11
  61. package/ios/CustomerSheet/CustomerSheetUtils.swift +13 -7
  62. package/ios/FinancialConnections.swift +6 -2
  63. package/ios/StripeSdk+CustomerSheet.swift +3 -1
  64. package/ios/StripeSdk+PaymentSheet.swift +86 -21
  65. package/ios/StripeSdk.m +2 -0
  66. package/ios/StripeSdk.swift +72 -11
  67. package/lib/commonjs/NativeStripeSdk.js +1 -1
  68. package/lib/commonjs/NativeStripeSdk.js.map +1 -1
  69. package/lib/commonjs/components/AddToWalletButton.js +1 -1
  70. package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
  71. package/lib/commonjs/components/AddressSheet.js +1 -1
  72. package/lib/commonjs/components/AddressSheet.js.map +1 -1
  73. package/lib/commonjs/components/ApplePayButtonNative.js +1 -1
  74. package/lib/commonjs/components/ApplePayButtonNative.js.map +1 -1
  75. package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
  76. package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
  77. package/lib/commonjs/components/CardField.js +1 -1
  78. package/lib/commonjs/components/CardField.js.map +1 -1
  79. package/lib/commonjs/components/CardForm.js +1 -1
  80. package/lib/commonjs/components/CardForm.js.map +1 -1
  81. package/lib/commonjs/components/CustomerSheet.js +1 -1
  82. package/lib/commonjs/components/CustomerSheet.js.map +1 -1
  83. package/lib/commonjs/components/GooglePayButtonNative.js +1 -1
  84. package/lib/commonjs/components/GooglePayButtonNative.js.map +1 -1
  85. package/lib/commonjs/components/PlatformPayButton.js +1 -1
  86. package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
  87. package/lib/commonjs/components/StripeContainer.js +1 -1
  88. package/lib/commonjs/components/StripeContainer.js.map +1 -1
  89. package/lib/commonjs/components/StripeProvider.js +1 -1
  90. package/lib/commonjs/components/StripeProvider.js.map +1 -1
  91. package/lib/commonjs/functions.js +1 -1
  92. package/lib/commonjs/functions.js.map +1 -1
  93. package/lib/commonjs/helpers.js +1 -1
  94. package/lib/commonjs/helpers.js.map +1 -1
  95. package/lib/commonjs/hooks/useConfirmPayment.js.map +1 -1
  96. package/lib/commonjs/hooks/useConfirmSetupIntent.js.map +1 -1
  97. package/lib/commonjs/hooks/useFinancialConnectionsSheet.js.map +1 -1
  98. package/lib/commonjs/hooks/usePaymentSheet.js.map +1 -1
  99. package/lib/commonjs/hooks/usePlatformPay.js.map +1 -1
  100. package/lib/commonjs/hooks/useStripe.js.map +1 -1
  101. package/lib/commonjs/index.js.map +1 -1
  102. package/lib/commonjs/package.json +1 -0
  103. package/lib/commonjs/plugin/withStripe.js +1 -1
  104. package/lib/commonjs/plugin/withStripe.js.map +1 -1
  105. package/lib/commonjs/types/ApplePay.js.map +1 -1
  106. package/lib/commonjs/types/Common.js +1 -1
  107. package/lib/commonjs/types/Common.js.map +1 -1
  108. package/lib/commonjs/types/CustomerSheet.js.map +1 -1
  109. package/lib/commonjs/types/Errors.js +1 -1
  110. package/lib/commonjs/types/Errors.js.map +1 -1
  111. package/lib/commonjs/types/FinancialConnections.js +1 -1
  112. package/lib/commonjs/types/FinancialConnections.js.map +1 -1
  113. package/lib/commonjs/types/NextAction.js.map +1 -1
  114. package/lib/commonjs/types/PaymentIntent.js +1 -1
  115. package/lib/commonjs/types/PaymentIntent.js.map +1 -1
  116. package/lib/commonjs/types/PaymentMethod.js.map +1 -1
  117. package/lib/commonjs/types/PaymentSheet.js +1 -1
  118. package/lib/commonjs/types/PaymentSheet.js.map +1 -1
  119. package/lib/commonjs/types/PlatformPay.js +1 -1
  120. package/lib/commonjs/types/PlatformPay.js.map +1 -1
  121. package/lib/commonjs/types/PushProvisioning.js +1 -1
  122. package/lib/commonjs/types/PushProvisioning.js.map +1 -1
  123. package/lib/commonjs/types/SetupIntent.js +1 -1
  124. package/lib/commonjs/types/SetupIntent.js.map +1 -1
  125. package/lib/commonjs/types/ThreeDSecure.js +1 -1
  126. package/lib/commonjs/types/ThreeDSecure.js.map +1 -1
  127. package/lib/commonjs/types/Token.js.map +1 -1
  128. package/lib/commonjs/types/components/ApplePayButtonComponent.js.map +1 -1
  129. package/lib/commonjs/types/components/AuBECSDebitFormComponent.js.map +1 -1
  130. package/lib/commonjs/types/components/CardFieldInput.js +1 -1
  131. package/lib/commonjs/types/components/CardFieldInput.js.map +1 -1
  132. package/lib/commonjs/types/components/CardFormView.js.map +1 -1
  133. package/lib/commonjs/types/components/GooglePayButtonComponent.js.map +1 -1
  134. package/lib/commonjs/types/index.js +1 -1
  135. package/lib/commonjs/types/index.js.map +1 -1
  136. package/lib/module/NativeStripeSdk.js +1 -1
  137. package/lib/module/NativeStripeSdk.js.map +1 -1
  138. package/lib/module/components/AddToWalletButton.js +1 -1
  139. package/lib/module/components/AddToWalletButton.js.map +1 -1
  140. package/lib/module/components/AddressSheet.js +1 -1
  141. package/lib/module/components/AddressSheet.js.map +1 -1
  142. package/lib/module/components/ApplePayButtonNative.js +1 -1
  143. package/lib/module/components/ApplePayButtonNative.js.map +1 -1
  144. package/lib/module/components/AuBECSDebitForm.js +1 -1
  145. package/lib/module/components/AuBECSDebitForm.js.map +1 -1
  146. package/lib/module/components/CardField.js +1 -1
  147. package/lib/module/components/CardField.js.map +1 -1
  148. package/lib/module/components/CardForm.js +1 -1
  149. package/lib/module/components/CardForm.js.map +1 -1
  150. package/lib/module/components/CustomerSheet.js +1 -1
  151. package/lib/module/components/CustomerSheet.js.map +1 -1
  152. package/lib/module/components/GooglePayButtonNative.js +1 -1
  153. package/lib/module/components/GooglePayButtonNative.js.map +1 -1
  154. package/lib/module/components/PlatformPayButton.js +1 -1
  155. package/lib/module/components/PlatformPayButton.js.map +1 -1
  156. package/lib/module/components/StripeContainer.js +1 -1
  157. package/lib/module/components/StripeContainer.js.map +1 -1
  158. package/lib/module/components/StripeProvider.js +1 -1
  159. package/lib/module/components/StripeProvider.js.map +1 -1
  160. package/lib/module/functions.js +1 -1
  161. package/lib/module/functions.js.map +1 -1
  162. package/lib/module/helpers.js +1 -1
  163. package/lib/module/helpers.js.map +1 -1
  164. package/lib/module/hooks/useConfirmPayment.js.map +1 -1
  165. package/lib/module/hooks/useConfirmSetupIntent.js.map +1 -1
  166. package/lib/module/hooks/useFinancialConnectionsSheet.js.map +1 -1
  167. package/lib/module/hooks/usePaymentSheet.js.map +1 -1
  168. package/lib/module/hooks/usePlatformPay.js.map +1 -1
  169. package/lib/module/hooks/useStripe.js.map +1 -1
  170. package/lib/module/index.js.map +1 -1
  171. package/lib/module/package.json +1 -0
  172. package/lib/module/plugin/withStripe.js +1 -1
  173. package/lib/module/plugin/withStripe.js.map +1 -1
  174. package/lib/module/types/ApplePay.js.map +1 -1
  175. package/lib/module/types/Common.js +1 -1
  176. package/lib/module/types/Common.js.map +1 -1
  177. package/lib/module/types/CustomerSheet.js.map +1 -1
  178. package/lib/module/types/Errors.js +1 -1
  179. package/lib/module/types/Errors.js.map +1 -1
  180. package/lib/module/types/FinancialConnections.js +1 -1
  181. package/lib/module/types/FinancialConnections.js.map +1 -1
  182. package/lib/module/types/NextAction.js.map +1 -1
  183. package/lib/module/types/PaymentIntent.js +1 -1
  184. package/lib/module/types/PaymentIntent.js.map +1 -1
  185. package/lib/module/types/PaymentMethod.js.map +1 -1
  186. package/lib/module/types/PaymentSheet.js +1 -1
  187. package/lib/module/types/PaymentSheet.js.map +1 -1
  188. package/lib/module/types/PlatformPay.js +1 -1
  189. package/lib/module/types/PlatformPay.js.map +1 -1
  190. package/lib/module/types/PushProvisioning.js +1 -1
  191. package/lib/module/types/PushProvisioning.js.map +1 -1
  192. package/lib/module/types/SetupIntent.js +1 -1
  193. package/lib/module/types/SetupIntent.js.map +1 -1
  194. package/lib/module/types/ThreeDSecure.js +1 -1
  195. package/lib/module/types/ThreeDSecure.js.map +1 -1
  196. package/lib/module/types/Token.js.map +1 -1
  197. package/lib/module/types/components/ApplePayButtonComponent.js.map +1 -1
  198. package/lib/module/types/components/AuBECSDebitFormComponent.js.map +1 -1
  199. package/lib/module/types/components/CardFieldInput.js +1 -1
  200. package/lib/module/types/components/CardFieldInput.js.map +1 -1
  201. package/lib/module/types/components/CardFormView.js.map +1 -1
  202. package/lib/module/types/components/GooglePayButtonComponent.js.map +1 -1
  203. package/lib/module/types/index.js +1 -1
  204. package/lib/module/types/index.js.map +1 -1
  205. package/lib/typescript/src/NativeStripeSdk.d.ts +4 -3
  206. package/lib/typescript/src/NativeStripeSdk.d.ts.map +1 -0
  207. package/lib/typescript/src/components/AddToWalletButton.d.ts +3 -1
  208. package/lib/typescript/src/components/AddToWalletButton.d.ts.map +1 -0
  209. package/lib/typescript/src/components/AddressSheet.d.ts +4 -2
  210. package/lib/typescript/src/components/AddressSheet.d.ts.map +1 -0
  211. package/lib/typescript/src/components/ApplePayButtonNative.d.ts +1 -0
  212. package/lib/typescript/src/components/ApplePayButtonNative.d.ts.map +1 -0
  213. package/lib/typescript/src/components/AuBECSDebitForm.d.ts +3 -1
  214. package/lib/typescript/src/components/AuBECSDebitForm.d.ts.map +1 -0
  215. package/lib/typescript/src/components/CardField.d.ts +1 -0
  216. package/lib/typescript/src/components/CardField.d.ts.map +1 -0
  217. package/lib/typescript/src/components/CardForm.d.ts +1 -0
  218. package/lib/typescript/src/components/CardForm.d.ts.map +1 -0
  219. package/lib/typescript/src/components/CustomerSheet.d.ts +2 -1
  220. package/lib/typescript/src/components/CustomerSheet.d.ts.map +1 -0
  221. package/lib/typescript/src/components/GooglePayButtonNative.d.ts +1 -0
  222. package/lib/typescript/src/components/GooglePayButtonNative.d.ts.map +1 -0
  223. package/lib/typescript/src/components/PlatformPayButton.d.ts +3 -1
  224. package/lib/typescript/src/components/PlatformPayButton.d.ts.map +1 -0
  225. package/lib/typescript/src/components/StripeContainer.d.ts +2 -1
  226. package/lib/typescript/src/components/StripeContainer.d.ts.map +1 -0
  227. package/lib/typescript/src/components/StripeProvider.d.ts +3 -2
  228. package/lib/typescript/src/components/StripeProvider.d.ts.map +1 -0
  229. package/lib/typescript/src/functions.d.ts +6 -5
  230. package/lib/typescript/src/functions.d.ts.map +1 -0
  231. package/lib/typescript/src/helpers.d.ts +1 -0
  232. package/lib/typescript/src/helpers.d.ts.map +1 -0
  233. package/lib/typescript/src/hooks/useConfirmPayment.d.ts +2 -1
  234. package/lib/typescript/src/hooks/useConfirmPayment.d.ts.map +1 -0
  235. package/lib/typescript/src/hooks/useConfirmSetupIntent.d.ts +1 -0
  236. package/lib/typescript/src/hooks/useConfirmSetupIntent.d.ts.map +1 -0
  237. package/lib/typescript/src/hooks/useFinancialConnectionsSheet.d.ts +3 -2
  238. package/lib/typescript/src/hooks/useFinancialConnectionsSheet.d.ts.map +1 -0
  239. package/lib/typescript/src/hooks/usePaymentSheet.d.ts +2 -1
  240. package/lib/typescript/src/hooks/usePaymentSheet.d.ts.map +1 -0
  241. package/lib/typescript/src/hooks/usePlatformPay.d.ts +4 -3
  242. package/lib/typescript/src/hooks/usePlatformPay.d.ts.map +1 -0
  243. package/lib/typescript/src/hooks/useStripe.d.ts +11 -8
  244. package/lib/typescript/src/hooks/useStripe.d.ts.map +1 -0
  245. package/lib/typescript/src/index.d.ts +1 -0
  246. package/lib/typescript/src/index.d.ts.map +1 -0
  247. package/lib/typescript/src/plugin/withStripe.d.ts +2 -1
  248. package/lib/typescript/src/plugin/withStripe.d.ts.map +1 -0
  249. package/lib/typescript/src/types/ApplePay.d.ts +6 -5
  250. package/lib/typescript/src/types/ApplePay.d.ts.map +1 -0
  251. package/lib/typescript/src/types/Common.d.ts +4 -1
  252. package/lib/typescript/src/types/Common.d.ts.map +1 -0
  253. package/lib/typescript/src/types/CustomerSheet.d.ts +16 -4
  254. package/lib/typescript/src/types/CustomerSheet.d.ts.map +1 -0
  255. package/lib/typescript/src/types/Errors.d.ts +2 -1
  256. package/lib/typescript/src/types/Errors.d.ts.map +1 -0
  257. package/lib/typescript/src/types/FinancialConnections.d.ts +21 -17
  258. package/lib/typescript/src/types/FinancialConnections.d.ts.map +1 -0
  259. package/lib/typescript/src/types/NextAction.d.ts +9 -8
  260. package/lib/typescript/src/types/NextAction.d.ts.map +1 -0
  261. package/lib/typescript/src/types/PaymentIntent.d.ts +16 -15
  262. package/lib/typescript/src/types/PaymentIntent.d.ts.map +1 -0
  263. package/lib/typescript/src/types/PaymentMethod.d.ts +21 -16
  264. package/lib/typescript/src/types/PaymentMethod.d.ts.map +1 -0
  265. package/lib/typescript/src/types/PaymentSheet.d.ts +91 -22
  266. package/lib/typescript/src/types/PaymentSheet.d.ts.map +1 -0
  267. package/lib/typescript/src/types/PlatformPay.d.ts +22 -21
  268. package/lib/typescript/src/types/PlatformPay.d.ts.map +1 -0
  269. package/lib/typescript/src/types/PushProvisioning.d.ts +5 -4
  270. package/lib/typescript/src/types/PushProvisioning.d.ts.map +1 -0
  271. package/lib/typescript/src/types/SetupIntent.d.ts +4 -3
  272. package/lib/typescript/src/types/SetupIntent.d.ts.map +1 -0
  273. package/lib/typescript/src/types/ThreeDSecure.d.ts +1 -0
  274. package/lib/typescript/src/types/ThreeDSecure.d.ts.map +1 -0
  275. package/lib/typescript/src/types/Token.d.ts +10 -9
  276. package/lib/typescript/src/types/Token.d.ts.map +1 -0
  277. package/lib/typescript/src/types/components/ApplePayButtonComponent.d.ts +3 -2
  278. package/lib/typescript/src/types/components/ApplePayButtonComponent.d.ts.map +1 -0
  279. package/lib/typescript/src/types/components/AuBECSDebitFormComponent.d.ts +1 -0
  280. package/lib/typescript/src/types/components/AuBECSDebitFormComponent.d.ts.map +1 -0
  281. package/lib/typescript/src/types/components/CardFieldInput.d.ts +8 -5
  282. package/lib/typescript/src/types/components/CardFieldInput.d.ts.map +1 -0
  283. package/lib/typescript/src/types/components/CardFormView.d.ts +9 -6
  284. package/lib/typescript/src/types/components/CardFormView.d.ts.map +1 -0
  285. package/lib/typescript/src/types/components/GooglePayButtonComponent.d.ts +1 -0
  286. package/lib/typescript/src/types/components/GooglePayButtonComponent.d.ts.map +1 -0
  287. package/lib/typescript/src/types/index.d.ts +24 -23
  288. package/lib/typescript/src/types/index.d.ts.map +1 -0
  289. package/package.json +32 -40
  290. package/src/NativeStripeSdk.tsx +4 -2
  291. package/src/components/CardField.tsx +1 -1
  292. package/src/components/CardForm.tsx +12 -9
  293. package/src/components/CustomerSheet.tsx +4 -6
  294. package/src/components/StripeProvider.tsx +17 -0
  295. package/src/functions.ts +13 -14
  296. package/src/helpers.ts +2 -1
  297. package/src/types/Common.ts +3 -0
  298. package/src/types/CustomerSheet.ts +11 -0
  299. package/src/types/FinancialConnections.ts +3 -0
  300. package/src/types/PaymentMethod.ts +5 -1
  301. package/src/types/PaymentSheet.ts +85 -4
  302. package/src/types/components/CardFieldInput.ts +8 -4
  303. package/src/types/components/CardFormView.ts +8 -4
  304. package/stripe-react-native.podspec +2 -1
  305. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  306. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  307. package/android/.gradle/8.9/gc.properties +0 -0
  308. /package/android/.gradle/{8.9 → 8.11.1}/fileChanges/last-build.bin +0 -0
  309. /package/android/.gradle/{8.9/dependencies-accessors → 8.11.1}/gc.properties +0 -0
@@ -46,3 +46,4 @@ export interface Props extends AccessibilityProps {
46
46
  * @category ReactComponents
47
47
  */
48
48
  export declare const CardForm: React.ForwardRefExoticComponent<Props & React.RefAttributes<CardFormView.Methods>>;
49
+ //# sourceMappingURL=CardForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardForm.d.ts","sourceRoot":"","sources":["../../../../src/components/CardForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EACL,kBAAkB,EAIlB,SAAS,EAET,SAAS,EACV,MAAM,cAAc,CAAC;AAWtB;;GAEG;AACH,MAAM,WAAW,KAAM,SAAQ,kBAAkB;IAC/C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qGAAqG;IACrG,SAAS,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC;IAChC;yFACqF;IACrF,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAIrC,mBAAmB;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC;IACzC,mBAAmB;IACnB,aAAa,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC;IAG3C,cAAc,CAAC,CAAC,IAAI,EAAE,YAAY,CAAC,OAAO,GAAG,IAAI,CAAC;IAClD;;;;;OAKG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACzC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,oFA6HpB,CAAC"}
@@ -2,7 +2,7 @@ import type { CustomerSheetInitParams, CustomerSheetPresentParams, CustomerSheet
2
2
  /**
3
3
  * Props
4
4
  */
5
- export declare type Props = {
5
+ export type Props = {
6
6
  /** Whether the sheet is visible. Defaults to false. */
7
7
  visible: boolean;
8
8
  /** Called when the user submits, dismisses, or cancels the sheet, or when an error occurs. */
@@ -57,3 +57,4 @@ export declare const CustomerSheet: {
57
57
  retrievePaymentOptionSelection: () => Promise<CustomerSheetResult>;
58
58
  };
59
59
  export {};
60
+ //# sourceMappingURL=CustomerSheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomerSheet.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomerSheet.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EAEZ,MAAM,UAAU,CAAC;AAoMlB;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB,uDAAuD;IACvD,OAAO,EAAE,OAAO,CAAC;IACjB,8FAA8F;IAC9F,QAAQ,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACjD,GAAG,uBAAuB,GACzB,0BAA0B,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,iBAAS,SAAS,CAAC,EACjB,OAAO,EACP,iBAAiB,EACjB,cAAc,EACd,KAAK,EACL,UAAU,EACV,uBAAuB,EACvB,UAAU,EACV,0BAA0B,EAC1B,mBAAmB,EACnB,4BAA4B,EAC5B,qBAAqB,EACrB,qCAAqC,EACrC,SAAS,EACT,+BAA+B,EAC/B,eAAe,EACf,gBAAgB,EAChB,OAAO,EACP,QAAQ,EACR,eAAe,GAChB,EAAE,KAAK,QAqCP;AAED;;GAEG;AACH,eAAO,MAAM,aAAa;;yBApShB,uBAAuB,KAC9B,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAA;KAAE,CAAC;uBA4J7C,0BAA0B,KACjC,OAAO,CAAC,mBAAmB,CAAC;0CAenB,OAAO,CAAC,mBAAmB,CAAC;CA4HvC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import type * as GooglePayButtonComponent from '../types/components/GooglePayButtonComponent';
2
2
  declare const GooglePayButtonNative: import("react-native").HostComponent<GooglePayButtonComponent.NativeProps>;
3
3
  export default GooglePayButtonNative;
4
+ //# sourceMappingURL=GooglePayButtonNative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GooglePayButtonNative.d.ts","sourceRoot":"","sources":["../../../../src/components/GooglePayButtonNative.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,wBAAwB,MAAM,8CAA8C,CAAC;AAC9F,QAAA,MAAM,qBAAqB,4EAGxB,CAAC;AACJ,eAAe,qBAAqB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { AccessibilityProps, StyleProp, ViewStyle } from 'react-native';
2
3
  import { ButtonType, ButtonStyle, ShippingMethod, ShippingContact } from '../types/PlatformPay';
3
4
  /**
@@ -68,4 +69,5 @@ export interface Props extends AccessibilityProps {
68
69
  * @returns JSX.Element
69
70
  * @category ReactComponents
70
71
  */
71
- export declare function PlatformPayButton({ type, appearance, onPress, disabled, borderRadius, onShippingMethodSelected, onShippingContactSelected, onCouponCodeEntered, setOrderTracking, style, ...props }: Props): JSX.Element;
72
+ export declare function PlatformPayButton({ type, appearance, onPress, disabled, borderRadius, onShippingMethodSelected, onShippingContactSelected, onCouponCodeEntered, setOrderTracking, style, ...props }: Props): React.JSX.Element;
73
+ //# sourceMappingURL=PlatformPayButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformPayButton.d.ts","sourceRoot":"","sources":["../../../../src/components/PlatformPayButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,SAAS,EAKV,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,UAAU,EACV,WAAW,EACX,cAAc,EACd,eAAe,EAChB,MAAM,sBA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16
  * @category ReactComponents
17
17
  */
18
- export declare function StripeContainer({ keyboardShouldPersistTaps, children, }: Props): JSX.Element;
18
+ export declare function StripeContainer({ keyboardShouldPersistTaps, children, }: Props): React.JSX.Element;
19
+ //# sourceMappingURL=StripeContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StripeContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/StripeContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEL,SAAS,EAET,SAAS,EAEV,MAAM,cAAc,CAAC;AAItB;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;IACpD,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,yBAAyB,EACzB,QAAQ,GACT,EAAE,KAAK,qBAWP"}
@@ -3,7 +3,7 @@ import type { InitStripeParams } from '../types';
3
3
  /**
4
4
  * Stripe Provider Component Props
5
5
  */
6
- export declare type Props = InitStripeParams & {
6
+ export type Props = InitStripeParams & {
7
7
  children: React.ReactElement | React.ReactElement[];
8
8
  };
9
9
  export declare const initStripe: (params: InitStripeParams) => Promise<void>;
@@ -27,4 +27,5 @@ export declare const initStripe: (params: InitStripeParams) => Promise<void>;
27
27
  * @returns JSX.Element
28
28
  * @category ReactComponents
29
29
  */
30
- export declare function StripeProvider({ children, publishableKey, merchantIdentifier, threeDSecureParams, stripeAccountId, urlScheme, setReturnUrlSchemeOnAndroid, }: Props): JSX.Element;
30
+ export declare function StripeProvider({ children, publishableKey, merchantIdentifier, threeDSecureParams, stripeAccountId, urlScheme, setReturnUrlSchemeOnAndroid, }: Props): React.JSX.Element;
31
+ //# sourceMappingURL=StripeProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StripeProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/StripeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAIzC,OAAO,KAAK,EAAW,gBAAgB,EAAoB,MAAM,UAAU,CAAC;AAM5E;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,gBAAgB,GAAG;IACrC,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;CACrD,CAAC;AAcF,eAAO,MAAM,UAAU,WAAkB,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAmBvE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,SAAS,EACT,2BAA2B,GAC5B,EAAE,KAAK,qBAkCP"}
@@ -13,21 +13,21 @@ export declare const retrieveSetupIntent: (clientSecret: string) => Promise<Retr
13
13
  * @param {object=} options An optional object that contains options for this payment method.
14
14
  * @returns A promise that resolves to an object containing either a `paymentIntent` field, or an `error` field.
15
15
  */
16
- export declare const confirmPayment: (paymentIntentClientSecret: string, params?: PaymentIntent.ConfirmParams | undefined, options?: PaymentIntent.ConfirmOptions) => Promise<ConfirmPaymentResult>;
16
+ export declare const confirmPayment: (paymentIntentClientSecret: string, params?: PaymentIntent.ConfirmParams, options?: PaymentIntent.ConfirmOptions) => Promise<ConfirmPaymentResult>;
17
17
  /** Handles any nextAction required to authenticate the PaymentIntent.
18
18
  * Call this method if you are using manual confirmation. See https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=custom
19
19
  *
20
20
  * @param {string} paymentIntentClientSecret The client secret associated with the PaymentIntent.
21
21
  * @param {string=} returnURL An optional return URL so the Stripe SDK can redirect back to your app after authentication. This should match the `return_url` you specified during PaymentIntent confirmation.
22
22
  * */
23
- export declare const handleNextAction: (paymentIntentClientSecret: string, returnURL?: string | undefined) => Promise<HandleNextActionResult>;
23
+ export declare const handleNextAction: (paymentIntentClientSecret: string, returnURL?: string) => Promise<HandleNextActionResult>;
24
24
  /** Handles any nextAction required to authenticate the SetupIntent.
25
25
  * Call this method if you are confirming the SetupIntent on your backend and get a status of requires_action.
26
26
  *
27
27
  * @param {string} setupIntentClientSecret The client secret associated with the SetupIntent.
28
28
  * @param {string=} returnURL An optional return URL so the Stripe SDK can redirect back to your app after authentication. This should match the `return_url` you specified during PaymentIntent confirmation.
29
29
  * */
30
- export declare const handleNextActionForSetup: (setupIntentClientSecret: string, returnURL?: string | undefined) => Promise<HandleNextActionForSetupResult>;
30
+ export declare const handleNextActionForSetup: (setupIntentClientSecret: string, returnURL?: string) => Promise<HandleNextActionForSetupResult>;
31
31
  export declare const confirmSetupIntent: (paymentIntentClientSecret: string, params: SetupIntent.ConfirmParams, options?: SetupIntent.ConfirmOptions) => Promise<ConfirmSetupIntentResult>;
32
32
  export declare const createTokenForCVCUpdate: (cvc: string) => Promise<CreateTokenForCVCUpdateResult>;
33
33
  /**
@@ -88,8 +88,8 @@ export declare const Constants: {
88
88
  * @returns A boolean indicating whether or not the native wallet is supported.
89
89
  */
90
90
  export declare const isPlatformPaySupported: (params?: {
91
- googlePay?: PlatformPay.IsGooglePaySupportedParams | undefined;
92
- } | undefined) => Promise<boolean>;
91
+ googlePay?: PlatformPay.IsGooglePaySupportedParams;
92
+ }) => Promise<boolean>;
93
93
  /**
94
94
  * Launches the relevant native wallet sheet (Apple Pay on iOS, Google Pay on Android) in order to confirm a Stripe [SetupIntent](https://stripe.com/docs/api/setup_intents).
95
95
  * @param clientSecret The client secret of the SetupIntent.
@@ -145,3 +145,4 @@ export declare const updatePlatformPaySheet: (params: {
145
145
  * app on iPad. For devices that don’t support Apple Pay, this method does nothing.
146
146
  */
147
147
  export declare const openPlatformPaySetup: () => Promise<void>;
148
+ //# sourceMappingURL=functions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/functions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACpB,gCAAgC,EAChC,WAAW,EACX,aAAa,EACb,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,iBAAiB,EACjB,sBAAsB,EACtB,8BAA8B,EAC9B,sBAAsB,EACtB,aAAa,EACb,YAAY,EACZ,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,WAAW,EACX,KAAK,EACL,yBAAyB,EACzB,mCAAmC,EACnC,iCAAiC,EACjC,kCAAkC,EAClC,gCAAgC,EAChC,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,WAAW,EACZ,MAAM,SAAS,CAAC;AAOjB,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,8BAA8B,CAAC;AAC9F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAE3E,eAAO,MAAM,mBAAmB,WACtB,aAAa,CAAC,YAAY,YACzB,aAAa,CAAC,aAAa,KACnC,OAAO,CAAC,yBAAyB,CAmBnC,CAAC;AAEF,eAAO,MAAM,WAAW,WACd,KAAK,CAAC,YAAY,KACzB,OAAO,CAAC,iBAAiB,CA2B3B,CAAC;AAEF,eAAO,MAAM,qBAAqB,iBAClB,MAAM,KACnB,OAAO,CAAC,2BAA2B,CAiBrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,iBAChB,MAAM,KACnB,OAAO,CAAC,yBAAyB,CAiBnC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,8BACE,MAAM,WACxB,aAAa,CAAC,aAAa,YAC3B,aAAa,CAAC,cAAc,KACpC,OAAO,CAAC,oBAAoB,CAoB9B,CAAC;AAEF;;;;;KAKK;AACL,eAAO,MAAM,gBAAgB,8BACA,MAAM,cACrB,M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AAsB,WAAkB;IACnD,QAAQ,EAAE;QACR,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QAC9C,eAAe,EAAE,KAAK,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;QACnD,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;KAC/C,CAAC;CACH,KAAG,OAAO,CAAC;IACV,KAAK,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;CACvC,CAkBA,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,QAAa,OAAO,CAAC,IAAI,CAIzD,CAAC"}
@@ -21,3 +21,4 @@ export declare const focusInput: (ref: React.MutableRefObject<any>) => void;
21
21
  export declare const registerInput: (ref: React.MutableRefObject<any>) => void;
22
22
  export declare const unregisterInput: (ref: React.MutableRefObject<any>) => void;
23
23
  export declare const currentlyFocusedInput: () => any;
24
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAM3C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,eAM/B,CAAC;AAEF,eAAO,MAAM,KAAK,SAAwB,CAAC;AAC3C,eAAO,MAAM,SAAS,SAA4B,CAAC;AAEnD,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;;;;;;;EASnD;AAED,eAAO,MAAM,wBAAwB,UAAW,MAAM,WAC4C,CAAC;AAEnG,eAAO,MAAM,UAAU,QAAS,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAQ1D,CAAC;AAEF,eAAO,MAAM,aAAa,QAAS,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAQ7D,CAAC;AAEF,eAAO,MAAM,eAAe,QAAS,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAQ/D,CAAC;AAEF,eAAO,MAAM,qBAAqB,WAQjC,CAAC"}
@@ -3,6 +3,7 @@ import type { PaymentIntent } from '../types';
3
3
  * useConfirmPayment hook
4
4
  */
5
5
  export declare function useConfirmPayment(): {
6
- confirmPayment: (paymentIntentClientSecret: string, data?: PaymentIntent.ConfirmParams | undefined, options?: PaymentIntent.ConfirmOptions) => Promise<import("../types").ConfirmPaymentResult>;
6
+ confirmPayment: (paymentIntentClientSecret: string, data?: PaymentIntent.ConfirmParams, options?: PaymentIntent.ConfirmOptions) => Promise<import("../types").ConfirmPaymentResult>;
7
7
  loading: boolean;
8
8
  };
9
+ //# sourceMappingURL=useConfirmPayment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConfirmPayment.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConfirmPayment.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C;;GAEG;AACH,wBAAgB,iBAAiB;gDAMA,MAAM,SAC1B,aAAa,CAAC,aAAa,YACzB,aAAa,CAAC,cAAc;;EAqB1C"}
@@ -6,3 +6,4 @@ export declare function useConfirmSetupIntent(): {
6
6
  confirmSetupIntent: (paymentIntentClientSecret: string, data: SetupIntent.ConfirmParams, options?: SetupIntent.ConfirmOptions) => Promise<import("../types").ConfirmSetupIntentResult>;
7
7
  loading: boolean;
8
8
  };
9
+ //# sourceMappingURL=useConfirmSetupIntent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConfirmSetupIntent.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConfirmSetupIntent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C;;GAEG;AACH,wBAAgB,qBAAqB;oDAMJ,MAAM,QAC3B,WAAW,CAAC,aAAa,YACtB,WAAW,CAAC,cAAc;;EAqBxC"}
@@ -7,7 +7,8 @@ import type { CollectBankAccountTokenParams } from 'src/types/PaymentMethod';
7
7
  * to display loading state (like showing a spinner).
8
8
  */
9
9
  export declare function useFinancialConnectionsSheet(): {
10
- collectBankAccountToken: (clientSecret: string, params?: CollectBankAccountTokenParams | undefined) => Promise<import("src/types/FinancialConnections").TokenResult>;
11
- collectFinancialConnectionsAccounts: (clientSecret: string, params?: CollectFinancialConnectionsAccountsParams | undefined) => Promise<import("src/types/FinancialConnections").SessionResult>;
10
+ collectBankAccountToken: (clientSecret: string, params?: CollectBankAccountTokenParams) => Promise<import("src/types/FinancialConnections").TokenResult>;
11
+ collectFinancialConnectionsAccounts: (clientSecret: string, params?: CollectFinancialConnectionsAccountsParams) => Promise<import("src/types/FinancialConnections").SessionResult>;
12
12
  loading: boolean;
13
13
  };
14
+ //# sourceMappingURL=useFinancialConnectionsSheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFinancialConnectionsSheet.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useFinancialConnectionsSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,gCAAgC,CAAC;AAChG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAE7E;;;;;GAKG;AACH,wBAAgB,4BAA4B;4CAMnB,MAAM,WAAW,6BAA6B;wDAWnD,MAAM,WACX,yCAAyC;;EAkBvD"}
@@ -5,7 +5,7 @@ import type { PaymentSheet } from '../types';
5
5
  export declare function usePaymentSheet(): {
6
6
  loading: boolean;
7
7
  initPaymentSheet: (params: PaymentSheet.SetupParams) => Promise<import("../types").InitPaymentSheetResult>;
8
- presentPaymentSheet: (options?: PaymentSheet.PresentOptions | undefined) => Promise<import("../types").PresentPaymentSheetResult>;
8
+ presentPaymentSheet: (options?: PaymentSheet.PresentOptions) => Promise<import("../types").PresentPaymentSheetResult>;
9
9
  confirmPaymentSheetPayment: () => Promise<import("../types").ConfirmPaymentSheetPaymentResult>;
10
10
  /**
11
11
  * You must call this method when the user logs out from your app. This will ensure that
@@ -14,3 +14,4 @@ export declare function usePaymentSheet(): {
14
14
  */
15
15
  resetPaymentSheetCustomer: () => Promise<null>;
16
16
  };
17
+ //# sourceMappingURL=usePaymentSheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePaymentSheet.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePaymentSheet.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;GAEG;AACH,wBAAgB,eAAe;;+BAUZ,YAAY,CAAC,WAAW;oCAUtB,YAAY,CAAC,cAAc;;IA4B5C;;;;OAIG;;EAGN"}
@@ -10,8 +10,8 @@ export declare function usePlatformPay(): {
10
10
  * @returns A boolean indicating whether or not the native wallet is supported.
11
11
  */
12
12
  isPlatformPaySupported: (params?: {
13
- googlePay?: PlatformPay.IsGooglePaySupportedParams | undefined;
14
- } | undefined) => Promise<boolean>;
13
+ googlePay?: PlatformPay.IsGooglePaySupportedParams;
14
+ }) => Promise<boolean>;
15
15
  /**
16
16
  * Launches the relevant native wallet sheet (Apple Pay on iOS, Google Pay on Android) in order to confirm a Stripe [SetupIntent](https://stripe.com/docs/api/setup_intents).
17
17
  * @param clientSecret The client secret of the SetupIntent.
@@ -58,7 +58,7 @@ export declare function usePlatformPay(): {
58
58
  errors: Array<PlatformPay.ApplePaySheetError>;
59
59
  };
60
60
  }) => Promise<{
61
- error?: import("../types").StripeError<import("../types").PlatformPayError> | undefined;
61
+ error?: import("../types").StripeError<import("../types").PlatformPayError>;
62
62
  }>;
63
63
  /**
64
64
  * Check if the app & device support adding this card to the native wallet.
@@ -74,3 +74,4 @@ export declare function usePlatformPay(): {
74
74
  */
75
75
  openPlatformPaySetup: () => Promise<void>;
76
76
  };
77
+ //# sourceMappingURL=usePlatformPay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePlatformPay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePlatformPay.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACX,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAGlB;;GAEG;AACH,wBAAgB,cAAc;IAwH1B,8IAA8I;;IAE9I;;;OAGG;sCA9Ga;QAAE,SAAS,CAAC,EAAE,WAAW,CAAC,0BAA0B,CAAA;KAAE;IAgHtE;;;;;OAKG;kDAzGkB,MAAM,UAAU,WAAW,CAAC,aAAa;IA2G9D;;;;;OAKG;8CApGkB,MAAM,UAAU,WAAW,CAAC,aAAa;IAsG9D;;;;OAIG;6CA9FY,WAAW,CAAC,mBAAmB;IAgG9C;;;;OAIG;qCAxFY,WAAW,CAAC,mBAAmB;IA0F9C;;;OAGG;;IAEH;;;;;;;OAOG;qCAjFY;QACb,QAAQ,EAAE;YACR,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;YAC9C,eAAe,EAAE,KAAK,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;YACnD,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;SAC/C,CAAC;KACH;;;IA6ED;;;;;OAKG;iCArEO,wBAAwB,KAC/B,OAAO,CAAC,wBAAwB,CAAC;IAsEpC;;;;OAIG;gCA/D+C,OAAO,CAAC,IAAI,CAAC;EAkElE"}
@@ -1,19 +1,21 @@
1
1
  import type { PaymentMethod, PaymentIntent, PaymentSheet, CreatePaymentMethodResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, ConfirmPaymentResult, HandleNextActionResult, HandleNextActionForSetupResult, ConfirmSetupIntentResult, CreateTokenForCVCUpdateResult, StripeError, InitPaymentSheetResult, PresentPaymentSheetResult, ConfirmPaymentSheetPaymentResult, SetupIntent, CreateTokenResult, Token, VerifyMicrodepositsParams, VerifyMicrodepositsForPaymentResult, VerifyMicrodepositsForSetupResult, CollectBankAccountForSetupResult, CollectBankAccountForPaymentResult, CanAddCardToWalletParams, CanAddCardToWalletResult, FinancialConnections, PlatformPay, PlatformPayError } from '../types';
2
+ import type { CollectBankAccountTokenParams } from 'src/types/PaymentMethod';
3
+ import type { CollectFinancialConnectionsAccountsParams } from 'src/types/FinancialConnections';
2
4
  /**
3
5
  * useStripe hook
4
6
  */
5
7
  export declare function useStripe(): {
6
8
  retrievePaymentIntent: (clientSecret: string) => Promise<RetrievePaymentIntentResult>;
7
9
  retrieveSetupIntent: (clientSecret: string) => Promise<RetrieveSetupIntentResult>;
8
- confirmPayment: (paymentIntentClientSecret: string, data?: PaymentIntent.ConfirmParams | undefined, options?: PaymentIntent.ConfirmOptions) => Promise<ConfirmPaymentResult>;
10
+ confirmPayment: (paymentIntentClientSecret: string, data?: PaymentIntent.ConfirmParams, options?: PaymentIntent.ConfirmOptions) => Promise<ConfirmPaymentResult>;
9
11
  createPaymentMethod: (data: PaymentMethod.CreateParams, options?: PaymentMethod.CreateOptions) => Promise<CreatePaymentMethodResult>;
10
- handleNextAction: (paymentIntentClientSecret: string, returnURL?: string | undefined) => Promise<HandleNextActionResult>;
11
- handleNextActionForSetup: (setupIntentClientSecret: string, returnURL?: string | undefined) => Promise<HandleNextActionForSetupResult>;
12
+ handleNextAction: (paymentIntentClientSecret: string, returnURL?: string) => Promise<HandleNextActionResult>;
13
+ handleNextActionForSetup: (setupIntentClientSecret: string, returnURL?: string) => Promise<HandleNextActionForSetupResult>;
12
14
  confirmSetupIntent: (paymentIntentClientSecret: string, data: SetupIntent.ConfirmParams, options?: SetupIntent.ConfirmOptions) => Promise<ConfirmSetupIntentResult>;
13
15
  createTokenForCVCUpdate: (cvc: string) => Promise<CreateTokenForCVCUpdateResult>;
14
16
  handleURLCallback: (url: string) => Promise<boolean>;
15
17
  confirmPaymentSheetPayment: () => Promise<ConfirmPaymentSheetPaymentResult>;
16
- presentPaymentSheet: (options?: PaymentSheet.PresentOptions | undefined) => Promise<PresentPaymentSheetResult>;
18
+ presentPaymentSheet: (options?: PaymentSheet.PresentOptions) => Promise<PresentPaymentSheetResult>;
17
19
  initPaymentSheet: (params: PaymentSheet.SetupParams) => Promise<InitPaymentSheetResult>;
18
20
  createToken: (params: Token.CreateParams) => Promise<CreateTokenResult>;
19
21
  collectBankAccountForPayment: (clientSecret: string, params: PaymentMethod.CollectBankAccountParams) => Promise<CollectBankAccountForPaymentResult>;
@@ -21,8 +23,8 @@ export declare function useStripe(): {
21
23
  verifyMicrodepositsForPayment: (clientSecret: string, params: VerifyMicrodepositsParams) => Promise<VerifyMicrodepositsForPaymentResult>;
22
24
  verifyMicrodepositsForSetup: (clientSecret: string, params: VerifyMicrodepositsParams) => Promise<VerifyMicrodepositsForSetupResult>;
23
25
  canAddCardToWallet: (params: CanAddCardToWalletParams) => Promise<CanAddCardToWalletResult>;
24
- collectBankAccountToken: (clientSecret: string, params?: PaymentMethod.CollectBankAccountTokenParams | undefined) => Promise<FinancialConnections.TokenResult>;
25
- collectFinancialConnectionsAccounts: (clientSecret: string, params?: FinancialConnections.CollectFinancialConnectionsAccountsParams | undefined) => Promise<FinancialConnections.SessionResult>;
26
+ collectBankAccountToken: (clientSecret: string, params?: CollectBankAccountTokenParams) => Promise<FinancialConnections.TokenResult>;
27
+ collectFinancialConnectionsAccounts: (clientSecret: string, params?: CollectFinancialConnectionsAccountsParams) => Promise<FinancialConnections.SessionResult>;
26
28
  /**
27
29
  * You must call this method when the user logs out from your app. This will ensure that
28
30
  * any persisted authentication state in the PaymentSheet, such as authentication cookies,
@@ -30,8 +32,8 @@ export declare function useStripe(): {
30
32
  */
31
33
  resetPaymentSheetCustomer: () => Promise<null>;
32
34
  isPlatformPaySupported: (params?: {
33
- googlePay?: PlatformPay.IsGooglePaySupportedParams | undefined;
34
- } | undefined) => Promise<boolean>;
35
+ googlePay?: PlatformPay.IsGooglePaySupportedParams;
36
+ }) => Promise<boolean>;
35
37
  confirmPlatformPaySetupIntent: (clientSecret: string, params: PlatformPay.ConfirmParams) => Promise<PlatformPay.ConfirmSetupIntentResult>;
36
38
  confirmPlatformPayPayment: (clientSecret: string, params: PlatformPay.ConfirmParams) => Promise<PlatformPay.ConfirmPaymentResult>;
37
39
  dismissPlatformPay: () => Promise<boolean>;
@@ -48,3 +50,4 @@ export declare function useStripe(): {
48
50
  }>;
49
51
  openPlatformPaySetup: () => Promise<void>;
50
52
  };
53
+ //# sourceMappingURL=useStripe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStripe.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useStripe.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,YAAY,EACZ,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,8BAA8B,EAC9B,wBAAwB,EACxB,6BAA6B,EAC7B,WAAW,EACX,sBAAsB,EACtB,yBAAyB,EACzB,gCAAgC,EAChC,WAAW,EACX,iBAAiB,EACjB,KAAK,EACL,yBAAyB,EACzB,mCAAmC,EACnC,iCAAiC,EACjC,gCAAgC,EAChC,kCAAkC,EAClC,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAiClB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,gCAAgC,CAAC;AAEhG;;GAEG;AACH,wBAAgB,SAAS;0CAmBA,MAAM,KAAG,OAAO,CAAC,2BAA2B,CAAC;wCAO7C,MAAM,KAAG,OAAO,CAAC,yBAAyB,CAAC;gDAQnC,MAAM,SAC1B,aAAa,CAAC,aAAa,YACzB,aAAa,CAAC,cAAc,KACpC,OAAO,CAAC,oBAAoB,CAAC;gCAlCxB,aAAa,CAAC,YAAY,YACvB,aAAa,CAAC,aAAa,KACnC,OAAO,CAA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;8CAQhC,MAAM,UACZ,WAAW,CAAC,aAAa,KAChC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC;8BAMI,OAAO,CAAC,OAAO,CAAC;6CAMtD,WAAW,CAAC,mBAAmB,KACtC,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC;qCAQjC,WAAW,CAAC,mBAAmB,KACtC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC;qCAOpB;QACb,QAAQ,EAAE;YACR,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;YAC9C,eAAe,EAAE,KAAK,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;YACnD,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;SAC/C,CAAC;KACH,KAAG,OAAO,CAAC;QACV,KAAK,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;KACvC,CAAC;gCAMgD,OAAO,CAAC,IAAI,CAAC;EAwClE"}
@@ -24,3 +24,4 @@ export * from './functions';
24
24
  export * from './types/index';
25
25
  export * from './components/CustomerSheet';
26
26
  export type { Props as CustomerSheetProps } from './components/CustomerSheet';
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAGpF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACzE,YAAY,EAAE,KAAK,IAAI,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,YAAY,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,YAAY,EAAE,KAAK,IAAI,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,YAAY,EAAE,KAAK,IAAI,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,KAAK,IAAI,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,KAAK,IAAI,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,KAAK,IAAI,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAEtF,cAAc,aAAa,CAAC;AAE5B,cAAc,eAAe,CAAC;AAE9B,cAAc,4BAA4B,CAAC;AAC3C,YAAY,EAAE,KAAK,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { AndroidConfig, ConfigPlugin } from '@expo/config-plugins';
2
- declare type StripePluginProps = {
2
+ type StripePluginProps = {
3
3
  /**
4
4
  * The iOS merchant ID used for enabling Apple Pay.
5
5
  * Without this, the error "Missing merchant identifier" will be thrown on iOS.
@@ -33,3 +33,4 @@ export declare const withNoopSwiftFile: ConfigPlugin;
33
33
  export declare function setGooglePayMetaData(enabled: boolean, modResults: AndroidConfig.Manifest.AndroidManifest): AndroidConfig.Manifest.AndroidManifest;
34
34
  declare const _default: ConfigPlugin<StripePluginProps>;
35
35
  export default _default;
36
+ //# sourceMappingURL=withStripe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withStripe.d.ts","sourceRoot":"","sources":["../../../../src/plugin/withStripe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EAKb,MAAM,sBAAsB,CAAC;AAU9B,KAAK,iBAAiB,GAAG;IACvB;;;OAGG;IACH,kBAAkB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACtC,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAsBF;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,mBAAmB,EAAE,MAAM,GAAG,MAAM,EAAE,EACtC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAChC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAmBrB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,YAW/B,CAAC;AAgBF;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,aAAa,CAAC,QAAQ,CAAC,eAAe,GACjD,aAAa,CAAC,QAAQ,CAAC,eAAe,CAiBxC;;AAED,wBAAsE"}
@@ -1,7 +1,7 @@
1
- export declare type CartSummaryItem = DeferredCartSummaryItem | ImmediateCartSummaryItem | RecurringCartSummaryItem;
2
- export declare type CartSummaryItemType = 'Deferred' | 'Immediate' | 'Recurring';
1
+ export type CartSummaryItem = DeferredCartSummaryItem | ImmediateCartSummaryItem | RecurringCartSummaryItem;
2
+ export type CartSummaryItemType = 'Deferred' | 'Immediate' | 'Recurring';
3
3
  /** 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. */
4
- export declare type DeferredCartSummaryItem = {
4
+ export type DeferredCartSummaryItem = {
5
5
  paymentType: 'Deferred';
6
6
  /** The unix timestamp of the date, in the future, of the payment. Measured in seconds. */
7
7
  deferredDate: number;
@@ -9,7 +9,7 @@ export declare type DeferredCartSummaryItem = {
9
9
  amount: string;
10
10
  };
11
11
  /** Use this type for payments that will occur immediately. */
12
- export declare type ImmediateCartSummaryItem = {
12
+ export type ImmediateCartSummaryItem = {
13
13
  paymentType: 'Immediate';
14
14
  /** When creating items for estimates or charges whose final value is not yet known, set this to true. */
15
15
  isPending?: boolean;
@@ -17,7 +17,7 @@ export declare type ImmediateCartSummaryItem = {
17
17
  amount: string;
18
18
  };
19
19
  /** 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.*/
20
- export declare type RecurringCartSummaryItem = {
20
+ export type RecurringCartSummaryItem = {
21
21
  paymentType: 'Recurring';
22
22
  /** 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.*/
23
23
  intervalUnit: 'minute' | 'hour' | 'day' | 'month' | 'year';
@@ -30,3 +30,4 @@ export declare type RecurringCartSummaryItem = {
30
30
  label: string;
31
31
  amount: string;
32
32
  };
33
+ //# sourceMappingURL=ApplePay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplePay.d.ts","sourceRoot":"","sources":["../../../../src/types/ApplePay.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GACvB,uBAAuB,GACvB,wBAAwB,GACxB,wBAAwB,CAAC;AAE7B,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;AAEzE,qKAAqK;AACrK,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,UAAU,CAAC;IACxB,0FAA0F;IAC1F,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,8DAA8D;AAC9D,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,WAAW,CAAC;IACzB,yGAAyG;IACzG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,sKAAsK;AACtK,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,WAAW,CAAC;IACzB,2PAA2P;IAC3P,YAAY,EAAE,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;IAC3D,kMAAkM;IAClM,aAAa,EAAE,MAAM,CAAC;IACtB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -12,7 +12,7 @@ export interface Address {
12
12
  postalCode?: string;
13
13
  state?: string;
14
14
  }
15
- export declare type AddressDetails = {
15
+ export type AddressDetails = {
16
16
  /** The customer's full name. */
17
17
  name?: string;
18
18
  /** The customer's address. */
@@ -35,3 +35,6 @@ export declare enum CardBrand {
35
35
  Visa = 7,
36
36
  Unknown = 8
37
37
  }
38
+ /** Theme options for colors used in our UI. */
39
+ export type UserInterfaceStyle = 'alwaysLight' | 'alwaysDark' | 'automatic';
40
+ //# sourceMappingURL=Common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Common.d.ts","sourceRoot":"","sources":["../../../../src/types/Common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;UAEM;IACN,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,oBAAY,SAAS;IACnB,GAAG,IAAI;IACP,IAAI,IAAI;IACR,eAAe,IAAI;IACnB,UAAU,IAAI;IACd,QAAQ,IAAI;IACZ,UAAU,IAAI;IACd,QAAQ,IAAI;IACZ,IAAI,IAAI;IACR,OAAO,IAAI;CACZ;AAED,+CAA+C;AAC/C,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,YAAY,GAAG,WAAW,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { PaymentSheet, StripeError, CustomerSheetError, BillingDetails, PaymentMethod, CardBrand } from '../types';
2
- export declare type CustomerSheetInitParams = {
2
+ export type CustomerSheetInitParams = {
3
3
  /** The color styling to use for PaymentSheet UI. Defaults to 'automatic'. iOS only. */
4
4
  style?: 'alwaysLight' | 'alwaysDark' | 'automatic';
5
5
  /** Configuration for the look and feel of the UI. */
@@ -39,8 +39,19 @@ export declare type CustomerSheetInitParams = {
39
39
  * If false, the customer can't delete if they only have one saved payment method remaining.
40
40
  */
41
41
  allowsRemovalOfLastSavedPaymentMethod?: boolean;
42
+ /** (Private Preview) This parameter is expected to be removed once we GA this feature
43
+ * When using customerSessions, allow users to update their saved cards
44
+ */
45
+ updatePaymentMethodEnabled?: boolean;
46
+ /**
47
+ * By default, CustomerSheet will accept all supported cards by Stripe.
48
+ * You can specify card brands CustomerSheet should block or allow payment for by providing an array of those card brands.
49
+ * Note: This is only a client-side solution.
50
+ * Note: Card brand filtering is not currently supported in Link.
51
+ */
52
+ cardBrandAcceptance?: PaymentSheet.CardBrandAcceptance;
42
53
  };
43
- export declare type CustomerSheetPresentParams = {
54
+ export type CustomerSheetPresentParams = {
44
55
  /** Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. See https://developer.apple.com/documentation/uikit/uimodalpresentationstyle for more info. */
45
56
  presentationStyle?: 'fullscreen' | 'popover' | 'pageSheet' | 'formSheet' | 'automatic' | 'overFullScreen';
46
57
  /** Controls how the modal animates. iOS only. */
@@ -48,7 +59,7 @@ export declare type CustomerSheetPresentParams = {
48
59
  /** Time (in milliseconds) before the Customer Sheet will automatically dismiss. */
49
60
  timeout?: number;
50
61
  };
51
- export declare type CustomerSheetResult = {
62
+ export type CustomerSheetResult = {
52
63
  /** The users selected payment option, if one exists. */
53
64
  paymentOption?: PaymentSheet.PaymentOption;
54
65
  /** The Stripe PaymentMethod associated with the paymentOption, if it exists. */
@@ -99,4 +110,5 @@ export interface CustomerAdapter {
99
110
  */
100
111
  setupIntentClientSecretForCustomerAttach?(): Promise<String>;
101
112
  }
102
- export declare type CustomerPaymentOption = 'apple_pay' | 'google_pay' | 'link' | string;
113
+ export type CustomerPaymentOption = 'apple_pay' | 'google_pay' | 'link' | string;
114
+ //# sourceMappingURL=CustomerSheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomerSheet.d.ts","sourceRoot":"","sources":["../../../../src/types/CustomerSheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,SAAS,EACV,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,uBAAuB,GAAG;IACpC,uFAAuF;IACvF,KAAK,CAA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xD,mFAAmF;IACnF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,wDAAwD;IACxD,aAAa,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC;IAC3C,gFAAgF;IAChF,aAAa,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC;IACrC,+BAA+B;IAC/B,KAAK,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,mBAAmB,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/C;;;;;;;;OAQG;IACH,mBAAmB,CAAC,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/D;;;;;;;OAOG;IACH,mBAAmB,CAAC,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/D;;;;OAIG;IACH,wBAAwB,CAAC,CACvB,aAAa,EAAE,qBAAqB,GAAG,IAAI,GAC1C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;OAIG;IACH,0BAA0B,CAAC,IAAI,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IACrE;;OAEG;IACH,wCAAwC,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC9D;AAED,MAAM,MAAM,qBAAqB,GAC7B,WAAW,GACX,YAAY,GACZ,MAAM,GACN,MAAM,CAAC"}
@@ -35,7 +35,7 @@ export declare enum PaymentSheetError {
35
35
  Canceled = "Canceled",
36
36
  Timeout = "Timeout"
37
37
  }
38
- export declare type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error';
38
+ export type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error';
39
39
  export interface StripeError<T> {
40
40
  code: T;
41
41
  message: string;
@@ -76,3 +76,4 @@ export declare enum PlatformPayError {
76
76
  Failed = "Failed",
77
77
  Unknown = "Unknown"
78
78
  }
79
+ //# sourceMappingURL=Errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../../../src/types/Errors.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,uBAAuB;IACjC,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,wBAAwB;IAClC,MAAM,WAAW;CAClB;AAED,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;CAClB;AAED,oBAAY,0BAA0B;IACpC,OAAO,YAAY;CACpB;AAED,oBAAY,wBAAwB;IAClC,OAAO,YAAY;CACpB;AAED,oBAAY,aAAa;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,MAAM,MAAM,SAAS,GACjB,sBAAsB,GACtB,WAAW,GACX,sBAAsB,GACtB,YAAY,GACZ,mBAAmB,GACnB,uBAAuB,GACvB,kBAAkB,CAAC;AAEvB,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,oBAAoB;;;CAIhC,CAAC;AAEF,oBAAY,wBAAwB;IAClC,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,uBAAuB;IACjC,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,kBAAkB;IAC5B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,gBAAgB;IAC1B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB"}
@@ -1,10 +1,13 @@
1
+ import type { UserInterfaceStyle } from './Common';
1
2
  import type { BankAccount } from './Token';
2
3
  import type { StripeError } from './Errors';
3
- export declare type CollectFinancialConnectionsAccountsParams = {
4
+ export type CollectFinancialConnectionsAccountsParams = {
5
+ /** iOS Only. Style options for colors in Financial Connections. By default, the bank account collector will automatically switch between light and dark mode compatible colors based on device settings. */
6
+ style?: UserInterfaceStyle;
4
7
  /** An optional event listener to receive @type {FinancialConnectionEvent} for specific events during the process of a user connecting their financial accounts. */
5
8
  onEvent?: (event: FinancialConnectionsEvent) => void;
6
9
  };
7
- export declare type SessionResult = {
10
+ export type SessionResult = {
8
11
  /** The updated Financial Connections Session object. */
9
12
  session: Session;
10
13
  error?: undefined;
@@ -12,7 +15,7 @@ export declare type SessionResult = {
12
15
  session?: undefined;
13
16
  error: StripeError<FinancialConnectionsSheetError>;
14
17
  };
15
- export declare type TokenResult = {
18
+ export type TokenResult = {
16
19
  /** The updated Financial Connections Session object. */
17
20
  session: Session;
18
21
  /** The Stripe token object associated with the bank account. */
@@ -23,7 +26,7 @@ export declare type TokenResult = {
23
26
  token?: undefined;
24
27
  error: StripeError<FinancialConnectionsSheetError>;
25
28
  };
26
- export declare type Session = {
29
+ export type Session = {
27
30
  /** A unique ID for this session. */
28
31
  id: string;
29
32
  /** The client secret for this session. */
@@ -33,7 +36,7 @@ export declare type Session = {
33
36
  /** The accounts that were collected as part of this Session. */
34
37
  accounts: Array<Account>;
35
38
  };
36
- export declare type BankAccountToken = {
39
+ export type BankAccountToken = {
37
40
  /** Bank account details. */
38
41
  bankAccount: BankAccount | null;
39
42
  /** Has the value true if the object exists in live mode or the value false if the object exists in test mode. */
@@ -45,7 +48,7 @@ export declare type BankAccountToken = {
45
48
  /** The UNIX timestamp (in milliseconds) of the date this token was created. */
46
49
  created: number | null;
47
50
  };
48
- export declare type Account = {
51
+ export type Account = {
49
52
  /** A unique ID for this Financial Connections Account. */
50
53
  id: string;
51
54
  /** Has the value true if the object exists in live mode or the value false if the object exists in test mode. */
@@ -70,12 +73,12 @@ export declare type Account = {
70
73
  /** The supported payment method types for this account. */
71
74
  supportedPaymentMethodTypes: Array<PaymentMethodType>;
72
75
  };
73
- export declare type AccountStatus = 'active' | 'inactive' | 'disconnected';
74
- export declare type Category = 'cash' | 'credit' | 'investment' | 'other';
75
- export declare type PaymentMethodType = 'us_bank_account' | 'link';
76
- export declare type Subcategory = 'checking' | 'creditCard' | 'lineOfCredit' | 'mortgage' | 'other' | 'savings';
77
- export declare type Permission = 'balances' | 'ownership' | 'paymentMethod' | 'transactions' | 'accountNumbers';
78
- export declare type Balance = {
76
+ export type AccountStatus = 'active' | 'inactive' | 'disconnected';
77
+ export type Category = 'cash' | 'credit' | 'investment' | 'other';
78
+ export type PaymentMethodType = 'us_bank_account' | 'link';
79
+ export type Subcategory = 'checking' | 'creditCard' | 'lineOfCredit' | 'mortgage' | 'other' | 'savings';
80
+ export type Permission = 'balances' | 'ownership' | 'paymentMethod' | 'transactions' | 'accountNumbers';
81
+ export type Balance = {
79
82
  /** The UNIX timestamp (in milliseconds) of time that the external institution calculated this balance. */
80
83
  asOf: number;
81
84
  /** The type of this balance, either cash or credit. */
@@ -91,18 +94,18 @@ export declare type Balance = {
91
94
  /** The balances owed to (or by) the account holder. Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. */
92
95
  current: Map<String, number>;
93
96
  };
94
- export declare type BalanceRefresh = {
97
+ export type BalanceRefresh = {
95
98
  status: BalanceRefreshStatus;
96
99
  /** The UNIX timestamp (in milliseconds) of the time at which the last refresh attempt was initiated. */
97
100
  lastAttemptedAt: number;
98
101
  };
99
- export declare type BalanceType = 'cash' | 'credit';
100
- export declare type BalanceRefreshStatus = 'failed' | 'pending' | 'succeeded';
102
+ export type BalanceType = 'cash' | 'credit';
103
+ export type BalanceRefreshStatus = 'failed' | 'pending' | 'succeeded';
101
104
  export declare enum FinancialConnectionsSheetError {
102
105
  Failed = "Failed",
103
106
  Canceled = "Canceled"
104
107
  }
105
- export declare type FinancialConnectionsEvent = {
108
+ export type FinancialConnectionsEvent = {
106
109
  /** The event's name. Represents the type of event that has occurred during the Financial Connections process. */
107
110
  name: FinancialConnectionsEventName;
108
111
  /** Event-associated metadata. Provides further detail related to the occurred event. */
@@ -132,7 +135,7 @@ export declare enum FinancialConnectionsEventName {
132
135
  /** Invoked when the modal is launched in an external browser. After this event, no other events will be sent until the completion of the browser session. */
133
136
  FlowLaunchedInBrowser = "flow_launched_in_browser"
134
137
  }
135
- export declare type FinancialConnectionsEventMetadata = {
138
+ export type FinancialConnectionsEventMetadata = {
136
139
  /** A Boolean value that indicates if the user completed the process through the manual entry flow. */
137
140
  manualEntry?: boolean;
138
141
  /** A String value containing the name of the institution that the user selected. */
@@ -162,3 +165,4 @@ export declare enum FinancialConnectionsEventErrorCode {
162
165
  /** The hCaptcha challenge failed. */
163
166
  FailedBotDetection = "failed_bot_detection"
164
167
  }
168
+ //# sourceMappingURL=FinancialConnections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FinancialConnections.d.ts","sourceR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