@stripe/stripe-react-native 0.41.0 → 0.43.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 (314) hide show
  1. package/.husky/pre-commit +0 -3
  2. package/CHANGELOG.md +27 -0
  3. package/README.md +3 -0
  4. package/android/.gradle/8.11.1/checksums/checksums.lock +0 -0
  5. package/android/.gradle/8.11.1/checksums/md5-checksums.bin +0 -0
  6. package/android/.gradle/8.11.1/checksums/sha1-checksums.bin +0 -0
  7. package/android/.gradle/8.11.1/executionHistory/executionHistory.lock +0 -0
  8. package/android/.gradle/8.11.1/fileChanges/last-build.bin +0 -0
  9. package/android/.gradle/8.11.1/fileHashes/fileHashes.lock +0 -0
  10. package/android/.gradle/8.11.1/gc.properties +0 -0
  11. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  12. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  13. package/android/.gradle/vcs-1/gc.properties +0 -0
  14. package/android/build.gradle +7 -1
  15. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  16. package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  17. package/android/gradle.properties +4 -1
  18. package/android/gradlew +249 -0
  19. package/android/gradlew.bat +92 -0
  20. package/android/spotless.gradle +19 -0
  21. package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormView.kt +30 -34
  22. package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormViewManager.kt +20 -10
  23. package/android/src/main/java/com/reactnativestripesdk/CardChangedEvent.kt +12 -13
  24. package/android/src/main/java/com/reactnativestripesdk/CardFieldView.kt +242 -105
  25. package/android/src/main/java/com/reactnativestripesdk/CardFieldViewManager.kt +58 -20
  26. package/android/src/main/java/com/reactnativestripesdk/CardFocusEvent.kt +8 -11
  27. package/android/src/main/java/com/reactnativestripesdk/CardFormCompleteEvent.kt +10 -12
  28. package/android/src/main/java/com/reactnativestripesdk/CardFormView.kt +135 -87
  29. package/android/src/main/java/com/reactnativestripesdk/CardFormViewManager.kt +57 -22
  30. package/android/src/main/java/com/reactnativestripesdk/CollectBankAccountLauncherFragment.kt +53 -23
  31. package/android/src/main/java/com/reactnativestripesdk/FinancialConnectionsSheetFragment.kt +125 -83
  32. package/android/src/main/java/com/reactnativestripesdk/FormCompleteEvent.kt +9 -11
  33. package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt +16 -9
  34. package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonView.kt +36 -28
  35. package/android/src/main/java/com/reactnativestripesdk/GooglePayLauncherFragment.kt +67 -43
  36. package/android/src/main/java/com/reactnativestripesdk/GooglePayPaymentMethodLauncherFragment.kt +21 -16
  37. package/android/src/main/java/com/reactnativestripesdk/GooglePayRequestHelper.kt +101 -56
  38. package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt +244 -166
  39. package/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt +183 -123
  40. package/android/src/main/java/com/reactnativestripesdk/PaymentSheetAppearance.kt +181 -57
  41. package/android/src/main/java/com/reactnativestripesdk/PaymentSheetFragment.kt +402 -258
  42. package/android/src/main/java/com/reactnativestripesdk/StripeContainerManager.kt +11 -4
  43. package/android/src/main/java/com/reactnativestripesdk/StripeContainerView.kt +5 -1
  44. package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +654 -299
  45. package/android/src/main/java/com/reactnativestripesdk/StripeSdkPackage.kt +12 -14
  46. package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressLauncherFragment.kt +42 -37
  47. package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetEvent.kt +12 -11
  48. package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetView.kt +29 -29
  49. package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetViewManager.kt +50 -18
  50. package/android/src/main/java/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt +227 -147
  51. package/android/src/main/java/com/reactnativestripesdk/customersheet/ReactNativeCustomerAdapter.kt +15 -18
  52. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonManager.kt +33 -15
  53. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonView.kt +63 -37
  54. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletCompleteEvent.kt +9 -13
  55. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/EphemeralKeyProvider.kt +15 -17
  56. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/PushProvisioningProxy.kt +76 -60
  57. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/TapAndPayProxy.kt +71 -47
  58. package/android/src/main/java/com/reactnativestripesdk/utils/Errors.kt +117 -51
  59. package/android/src/main/java/com/reactnativestripesdk/utils/Extensions.kt +4 -3
  60. package/android/src/main/java/com/reactnativestripesdk/utils/KeepJsAwakeTask.kt +39 -0
  61. package/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt +337 -250
  62. package/android/src/main/java/com/reactnativestripesdk/utils/PostalCodeUtilities.kt +2 -11
  63. package/ios/CustomerSheet/CustomerSheetUtils.swift +3 -1
  64. package/ios/FinancialConnections.swift +18 -2
  65. package/ios/Mappers.swift +23 -0
  66. package/ios/PaymentMethodFactory.swift +31 -29
  67. package/ios/StripeSdk+CustomerSheet.swift +2 -1
  68. package/ios/StripeSdk+PaymentSheet.swift +42 -0
  69. package/ios/StripeSdk.m +2 -0
  70. package/ios/StripeSdk.swift +116 -24
  71. package/lib/commonjs/NativeStripeSdk.js +1 -1
  72. package/lib/commonjs/NativeStripeSdk.js.map +1 -1
  73. package/lib/commonjs/components/AddToWalletButton.js +1 -1
  74. package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
  75. package/lib/commonjs/components/AddressSheet.js +1 -1
  76. package/lib/commonjs/components/AddressSheet.js.map +1 -1
  77. package/lib/commonjs/components/ApplePayButtonNative.js +1 -1
  78. package/lib/commonjs/components/ApplePayButtonNative.js.map +1 -1
  79. package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
  80. package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
  81. package/lib/commonjs/components/CardField.js +1 -1
  82. package/lib/commonjs/components/CardField.js.map +1 -1
  83. package/lib/commonjs/components/CardForm.js +1 -1
  84. package/lib/commonjs/components/CardForm.js.map +1 -1
  85. package/lib/commonjs/components/CustomerSheet.js +1 -1
  86. package/lib/commonjs/components/CustomerSheet.js.map +1 -1
  87. package/lib/commonjs/components/GooglePayButtonNative.js +1 -1
  88. package/lib/commonjs/components/GooglePayButtonNative.js.map +1 -1
  89. package/lib/commonjs/components/PlatformPayButton.js +1 -1
  90. package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
  91. package/lib/commonjs/components/StripeContainer.js +1 -1
  92. package/lib/commonjs/components/StripeContainer.js.map +1 -1
  93. package/lib/commonjs/components/StripeProvider.js +1 -1
  94. package/lib/commonjs/components/StripeProvider.js.map +1 -1
  95. package/lib/commonjs/functions.js +1 -1
  96. package/lib/commonjs/functions.js.map +1 -1
  97. package/lib/commonjs/helpers.js +1 -1
  98. package/lib/commonjs/helpers.js.map +1 -1
  99. package/lib/commonjs/hooks/useConfirmPayment.js.map +1 -1
  100. package/lib/commonjs/hooks/useConfirmSetupIntent.js.map +1 -1
  101. package/lib/commonjs/hooks/useFinancialConnectionsSheet.js +1 -1
  102. package/lib/commonjs/hooks/useFinancialConnectionsSheet.js.map +1 -1
  103. package/lib/commonjs/hooks/usePaymentSheet.js.map +1 -1
  104. package/lib/commonjs/hooks/usePlatformPay.js.map +1 -1
  105. package/lib/commonjs/hooks/useStripe.js +1 -1
  106. package/lib/commonjs/hooks/useStripe.js.map +1 -1
  107. package/lib/commonjs/index.js.map +1 -1
  108. package/lib/commonjs/package.json +1 -0
  109. package/lib/commonjs/plugin/withStripe.js +1 -1
  110. package/lib/commonjs/plugin/withStripe.js.map +1 -1
  111. package/lib/commonjs/types/ApplePay.js.map +1 -1
  112. package/lib/commonjs/types/Common.js +1 -1
  113. package/lib/commonjs/types/Common.js.map +1 -1
  114. package/lib/commonjs/types/CustomerSheet.js.map +1 -1
  115. package/lib/commonjs/types/Errors.js +1 -1
  116. package/lib/commonjs/types/Errors.js.map +1 -1
  117. package/lib/commonjs/types/FinancialConnections.js +1 -1
  118. package/lib/commonjs/types/FinancialConnections.js.map +1 -1
  119. package/lib/commonjs/types/NextAction.js.map +1 -1
  120. package/lib/commonjs/types/PaymentIntent.js +1 -1
  121. package/lib/commonjs/types/PaymentIntent.js.map +1 -1
  122. package/lib/commonjs/types/PaymentMethod.js.map +1 -1
  123. package/lib/commonjs/types/PaymentSheet.js +1 -1
  124. package/lib/commonjs/types/PaymentSheet.js.map +1 -1
  125. package/lib/commonjs/types/PlatformPay.js +1 -1
  126. package/lib/commonjs/types/PlatformPay.js.map +1 -1
  127. package/lib/commonjs/types/PushProvisioning.js +1 -1
  128. package/lib/commonjs/types/PushProvisioning.js.map +1 -1
  129. package/lib/commonjs/types/SetupIntent.js +1 -1
  130. package/lib/commonjs/types/SetupIntent.js.map +1 -1
  131. package/lib/commonjs/types/ThreeDSecure.js +1 -1
  132. package/lib/commonjs/types/ThreeDSecure.js.map +1 -1
  133. package/lib/commonjs/types/Token.js.map +1 -1
  134. package/lib/commonjs/types/components/ApplePayButtonComponent.js.map +1 -1
  135. package/lib/commonjs/types/components/AuBECSDebitFormComponent.js.map +1 -1
  136. package/lib/commonjs/types/components/CardFieldInput.js +1 -1
  137. package/lib/commonjs/types/components/CardFieldInput.js.map +1 -1
  138. package/lib/commonjs/types/components/CardFormView.js.map +1 -1
  139. package/lib/commonjs/types/components/GooglePayButtonComponent.js.map +1 -1
  140. package/lib/commonjs/types/index.js +1 -1
  141. package/lib/commonjs/types/index.js.map +1 -1
  142. package/lib/module/NativeStripeSdk.js +1 -1
  143. package/lib/module/NativeStripeSdk.js.map +1 -1
  144. package/lib/module/components/AddToWalletButton.js +1 -1
  145. package/lib/module/components/AddToWalletButton.js.map +1 -1
  146. package/lib/module/components/AddressSheet.js +1 -1
  147. package/lib/module/components/AddressSheet.js.map +1 -1
  148. package/lib/module/components/ApplePayButtonNative.js +1 -1
  149. package/lib/module/components/ApplePayButtonNative.js.map +1 -1
  150. package/lib/module/components/AuBECSDebitForm.js +1 -1
  151. package/lib/module/components/AuBECSDebitForm.js.map +1 -1
  152. package/lib/module/components/CardField.js +1 -1
  153. package/lib/module/components/CardField.js.map +1 -1
  154. package/lib/module/components/CardForm.js +1 -1
  155. package/lib/module/components/CardForm.js.map +1 -1
  156. package/lib/module/components/CustomerSheet.js +1 -1
  157. package/lib/module/components/CustomerSheet.js.map +1 -1
  158. package/lib/module/components/GooglePayButtonNative.js +1 -1
  159. package/lib/module/components/GooglePayButtonNative.js.map +1 -1
  160. package/lib/module/components/PlatformPayButton.js +1 -1
  161. package/lib/module/components/PlatformPayButton.js.map +1 -1
  162. package/lib/module/components/StripeContainer.js +1 -1
  163. package/lib/module/components/StripeContainer.js.map +1 -1
  164. package/lib/module/components/StripeProvider.js +1 -1
  165. package/lib/module/components/StripeProvider.js.map +1 -1
  166. package/lib/module/functions.js +1 -1
  167. package/lib/module/functions.js.map +1 -1
  168. package/lib/module/helpers.js +1 -1
  169. package/lib/module/helpers.js.map +1 -1
  170. package/lib/module/hooks/useConfirmPayment.js.map +1 -1
  171. package/lib/module/hooks/useConfirmSetupIntent.js.map +1 -1
  172. package/lib/module/hooks/useFinancialConnectionsSheet.js +1 -1
  173. package/lib/module/hooks/useFinancialConnectionsSheet.js.map +1 -1
  174. package/lib/module/hooks/usePaymentSheet.js.map +1 -1
  175. package/lib/module/hooks/usePlatformPay.js.map +1 -1
  176. package/lib/module/hooks/useStripe.js +1 -1
  177. package/lib/module/hooks/useStripe.js.map +1 -1
  178. package/lib/module/index.js.map +1 -1
  179. package/lib/module/package.json +1 -0
  180. package/lib/module/plugin/withStripe.js +1 -1
  181. package/lib/module/plugin/withStripe.js.map +1 -1
  182. package/lib/module/types/ApplePay.js.map +1 -1
  183. package/lib/module/types/Common.js +1 -1
  184. package/lib/module/types/Common.js.map +1 -1
  185. package/lib/module/types/CustomerSheet.js.map +1 -1
  186. package/lib/module/types/Errors.js +1 -1
  187. package/lib/module/types/Errors.js.map +1 -1
  188. package/lib/module/types/FinancialConnections.js +1 -1
  189. package/lib/module/types/FinancialConnections.js.map +1 -1
  190. package/lib/module/types/NextAction.js.map +1 -1
  191. package/lib/module/types/PaymentIntent.js +1 -1
  192. package/lib/module/types/PaymentIntent.js.map +1 -1
  193. package/lib/module/types/PaymentMethod.js.map +1 -1
  194. package/lib/module/types/PaymentSheet.js +1 -1
  195. package/lib/module/types/PaymentSheet.js.map +1 -1
  196. package/lib/module/types/PlatformPay.js +1 -1
  197. package/lib/module/types/PlatformPay.js.map +1 -1
  198. package/lib/module/types/PushProvisioning.js +1 -1
  199. package/lib/module/types/PushProvisioning.js.map +1 -1
  200. package/lib/module/types/SetupIntent.js +1 -1
  201. package/lib/module/types/SetupIntent.js.map +1 -1
  202. package/lib/module/types/ThreeDSecure.js +1 -1
  203. package/lib/module/types/ThreeDSecure.js.map +1 -1
  204. package/lib/module/types/Token.js.map +1 -1
  205. package/lib/module/types/components/ApplePayButtonComponent.js.map +1 -1
  206. package/lib/module/types/components/AuBECSDebitFormComponent.js.map +1 -1
  207. package/lib/module/types/components/CardFieldInput.js +1 -1
  208. package/lib/module/types/components/CardFieldInput.js.map +1 -1
  209. package/lib/module/types/components/CardFormView.js.map +1 -1
  210. package/lib/module/types/components/GooglePayButtonComponent.js.map +1 -1
  211. package/lib/module/types/index.js +1 -1
  212. package/lib/module/types/index.js.map +1 -1
  213. package/lib/typescript/src/NativeStripeSdk.d.ts +5 -4
  214. package/lib/typescript/src/NativeStripeSdk.d.ts.map +1 -0
  215. package/lib/typescript/src/components/AddToWalletButton.d.ts +3 -1
  216. package/lib/typescript/src/components/AddToWalletButton.d.ts.map +1 -0
  217. package/lib/typescript/src/components/AddressSheet.d.ts +4 -2
  218. package/lib/typescript/src/components/AddressSheet.d.ts.map +1 -0
  219. package/lib/typescript/src/components/ApplePayButtonNative.d.ts +1 -0
  220. package/lib/typescript/src/components/ApplePayButtonNative.d.ts.map +1 -0
  221. package/lib/typescript/src/components/AuBECSDebitForm.d.ts +3 -1
  222. package/lib/typescript/src/components/AuBECSDebitForm.d.ts.map +1 -0
  223. package/lib/typescript/src/components/CardField.d.ts +1 -0
  224. package/lib/typescript/src/components/CardField.d.ts.map +1 -0
  225. package/lib/typescript/src/components/CardForm.d.ts +1 -0
  226. package/lib/typescript/src/components/CardForm.d.ts.map +1 -0
  227. package/lib/typescript/src/components/CustomerSheet.d.ts +2 -1
  228. package/lib/typescript/src/components/CustomerSheet.d.ts.map +1 -0
  229. package/lib/typescript/src/components/GooglePayButtonNative.d.ts +1 -0
  230. package/lib/typescript/src/components/GooglePayButtonNative.d.ts.map +1 -0
  231. package/lib/typescript/src/components/PlatformPayButton.d.ts +3 -1
  232. package/lib/typescript/src/components/PlatformPayButton.d.ts.map +1 -0
  233. package/lib/typescript/src/components/StripeContainer.d.ts +2 -1
  234. package/lib/typescript/src/components/StripeContainer.d.ts.map +1 -0
  235. package/lib/typescript/src/components/StripeProvider.d.ts +3 -2
  236. package/lib/typescript/src/components/StripeProvider.d.ts.map +1 -0
  237. package/lib/typescript/src/functions.d.ts +12 -7
  238. package/lib/typescript/src/functions.d.ts.map +1 -0
  239. package/lib/typescript/src/helpers.d.ts +1 -0
  240. package/lib/typescript/src/helpers.d.ts.map +1 -0
  241. package/lib/typescript/src/hooks/useConfirmPayment.d.ts +2 -1
  242. package/lib/typescript/src/hooks/useConfirmPayment.d.ts.map +1 -0
  243. package/lib/typescript/src/hooks/useConfirmSetupIntent.d.ts +1 -0
  244. package/lib/typescript/src/hooks/useConfirmSetupIntent.d.ts.map +1 -0
  245. package/lib/typescript/src/hooks/useFinancialConnectionsSheet.d.ts +5 -2
  246. package/lib/typescript/src/hooks/useFinancialConnectionsSheet.d.ts.map +1 -0
  247. package/lib/typescript/src/hooks/usePaymentSheet.d.ts +2 -1
  248. package/lib/typescript/src/hooks/usePaymentSheet.d.ts.map +1 -0
  249. package/lib/typescript/src/hooks/usePlatformPay.d.ts +4 -3
  250. package/lib/typescript/src/hooks/usePlatformPay.d.ts.map +1 -0
  251. package/lib/typescript/src/hooks/useStripe.d.ts +11 -8
  252. package/lib/typescript/src/hooks/useStripe.d.ts.map +1 -0
  253. package/lib/typescript/src/index.d.ts +1 -0
  254. package/lib/typescript/src/index.d.ts.map +1 -0
  255. package/lib/typescript/src/plugin/withStripe.d.ts +2 -1
  256. package/lib/typescript/src/plugin/withStripe.d.ts.map +1 -0
  257. package/lib/typescript/src/types/ApplePay.d.ts +6 -5
  258. package/lib/typescript/src/types/ApplePay.d.ts.map +1 -0
  259. package/lib/typescript/src/types/Common.d.ts +4 -1
  260. package/lib/typescript/src/types/Common.d.ts.map +1 -0
  261. package/lib/typescript/src/types/CustomerSheet.d.ts +12 -4
  262. package/lib/typescript/src/types/CustomerSheet.d.ts.map +1 -0
  263. package/lib/typescript/src/types/Errors.d.ts +2 -1
  264. package/lib/typescript/src/types/Errors.d.ts.map +1 -0
  265. package/lib/typescript/src/types/FinancialConnections.d.ts +82 -14
  266. package/lib/typescript/src/types/FinancialConnections.d.ts.map +1 -0
  267. package/lib/typescript/src/types/NextAction.d.ts +9 -8
  268. package/lib/typescript/src/types/NextAction.d.ts.map +1 -0
  269. package/lib/typescript/src/types/PaymentIntent.d.ts +41 -14
  270. package/lib/typescript/src/types/PaymentIntent.d.ts.map +1 -0
  271. package/lib/typescript/src/types/PaymentMethod.d.ts +27 -15
  272. package/lib/typescript/src/types/PaymentMethod.d.ts.map +1 -0
  273. package/lib/typescript/src/types/PaymentSheet.d.ts +72 -22
  274. package/lib/typescript/src/types/PaymentSheet.d.ts.map +1 -0
  275. package/lib/typescript/src/types/PlatformPay.d.ts +22 -21
  276. package/lib/typescript/src/types/PlatformPay.d.ts.map +1 -0
  277. package/lib/typescript/src/types/PushProvisioning.d.ts +5 -4
  278. package/lib/typescript/src/types/PushProvisioning.d.ts.map +1 -0
  279. package/lib/typescript/src/types/SetupIntent.d.ts +4 -3
  280. package/lib/typescript/src/types/SetupIntent.d.ts.map +1 -0
  281. package/lib/typescript/src/types/ThreeDSecure.d.ts +1 -0
  282. package/lib/typescript/src/types/ThreeDSecure.d.ts.map +1 -0
  283. package/lib/typescript/src/types/Token.d.ts +10 -9
  284. package/lib/typescript/src/types/Token.d.ts.map +1 -0
  285. package/lib/typescript/src/types/components/ApplePayButtonComponent.d.ts +3 -2
  286. package/lib/typescript/src/types/components/ApplePayButtonComponent.d.ts.map +1 -0
  287. package/lib/typescript/src/types/components/AuBECSDebitFormComponent.d.ts +1 -0
  288. package/lib/typescript/src/types/components/AuBECSDebitFormComponent.d.ts.map +1 -0
  289. package/lib/typescript/src/types/components/CardFieldInput.d.ts +8 -5
  290. package/lib/typescript/src/types/components/CardFieldInput.d.ts.map +1 -0
  291. package/lib/typescript/src/types/components/CardFormView.d.ts +9 -6
  292. package/lib/typescript/src/types/components/CardFormView.d.ts.map +1 -0
  293. package/lib/typescript/src/types/components/GooglePayButtonComponent.d.ts +1 -0
  294. package/lib/typescript/src/types/components/GooglePayButtonComponent.d.ts.map +1 -0
  295. package/lib/typescript/src/types/index.d.ts +24 -23
  296. package/lib/typescript/src/types/index.d.ts.map +1 -0
  297. package/package.json +33 -42
  298. package/src/NativeStripeSdk.tsx +5 -3
  299. package/src/components/CardField.tsx +1 -1
  300. package/src/components/CardForm.tsx +12 -9
  301. package/src/components/CustomerSheet.tsx +4 -6
  302. package/src/components/StripeProvider.tsx +17 -0
  303. package/src/functions.ts +70 -16
  304. package/src/hooks/useFinancialConnectionsSheet.tsx +12 -4
  305. package/src/hooks/useStripe.tsx +10 -4
  306. package/src/types/Common.ts +3 -0
  307. package/src/types/CustomerSheet.ts +7 -0
  308. package/src/types/FinancialConnections.ts +72 -0
  309. package/src/types/PaymentIntent.ts +30 -1
  310. package/src/types/PaymentMethod.ts +13 -1
  311. package/src/types/PaymentSheet.ts +65 -5
  312. package/src/types/components/CardFieldInput.ts +8 -4
  313. package/src/types/components/CardFormView.ts +8 -4
  314. package/stripe-react-native.podspec +2 -1
@@ -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,15 @@ 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
+ /**
43
+ * By default, CustomerSheet will accept all supported cards by Stripe.
44
+ * You can specify card brands CustomerSheet should block or allow payment for by providing an array of those card brands.
45
+ * Note: This is only a client-side solution.
46
+ * Note: Card brand filtering is not currently supported in Link.
47
+ */
48
+ cardBrandAcceptance?: PaymentSheet.CardBrandAcceptance;
42
49
  };
43
- export declare type CustomerSheetPresentParams = {
50
+ export type CustomerSheetPresentParams = {
44
51
  /** 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
52
  presentationStyle?: 'fullscreen' | 'popover' | 'pageSheet' | 'formSheet' | 'automatic' | 'overFullScreen';
46
53
  /** Controls how the modal animates. iOS only. */
@@ -48,7 +55,7 @@ export declare type CustomerSheetPresentParams = {
48
55
  /** Time (in milliseconds) before the Customer Sheet will automatically dismiss. */
49
56
  timeout?: number;
50
57
  };
51
- export declare type CustomerSheetResult = {
58
+ export type CustomerSheetResult = {
52
59
  /** The users selected payment option, if one exists. */
53
60
  paymentOption?: PaymentSheet.PaymentOption;
54
61
  /** The Stripe PaymentMethod associated with the paymentOption, if it exists. */
@@ -99,4 +106,5 @@ export interface CustomerAdapter {
99
106
  */
100
107
  setupIntentClientSecretForCustomerAttach?(): Promise<String>;
101
108
  }
102
- export declare type CustomerPaymentOption = 'apple_pay' | 'google_pay' | 'link' | string;
109
+ export type CustomerPaymentOption = 'apple_pay' | 'google_pay' | 'link' | string;
110
+ //# 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,CAAC,EAAE,aAAa,GAAG,YAAY,GAAG,WAAW,CAAC;IACnD,qDAAqD;IACrD,UAAU,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC;IAC3C,oPAAoP;IACpP,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,wHAAwH;IACxH,UAAU,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,0BAA0B,EAAE,MAAM,CAAC;IACnC,qFAAqF;IACrF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gGAAgG;IAChG,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,mQAAmQ;IACnQ,qBAAqB,CAAC,EAAE,cAAc,CAAC;IACvC,sOAAsO;IACtO,qCAAqC,CAAC,EAAE,YAAY,CAAC,qCAAqC,CAAC;IAC3F,+IAA+I;IAC/I,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2GAA2G;IAC3G,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,iEAAiE;IACjE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;yFACqF;IACrF,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACrC;;;OAGG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;;OAGG;IACH,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD;;;;;OAK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,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,6 +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 SessionResult = {
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;
7
+ /** An optional event listener to receive @type {FinancialConnectionEvent} for specific events during the process of a user connecting their financial accounts. */
8
+ onEvent?: (event: FinancialConnectionsEvent) => void;
9
+ };
10
+ export type SessionResult = {
4
11
  /** The updated Financial Connections Session object. */
5
12
  session: Session;
6
13
  error?: undefined;
@@ -8,7 +15,7 @@ export declare type SessionResult = {
8
15
  session?: undefined;
9
16
  error: StripeError<FinancialConnectionsSheetError>;
10
17
  };
11
- export declare type TokenResult = {
18
+ export type TokenResult = {
12
19
  /** The updated Financial Connections Session object. */
13
20
  session: Session;
14
21
  /** The Stripe token object associated with the bank account. */
@@ -19,7 +26,7 @@ export declare type TokenResult = {
19
26
  token?: undefined;
20
27
  error: StripeError<FinancialConnectionsSheetError>;
21
28
  };
22
- export declare type Session = {
29
+ export type Session = {
23
30
  /** A unique ID for this session. */
24
31
  id: string;
25
32
  /** The client secret for this session. */
@@ -29,7 +36,7 @@ export declare type Session = {
29
36
  /** The accounts that were collected as part of this Session. */
30
37
  accounts: Array<Account>;
31
38
  };
32
- export declare type BankAccountToken = {
39
+ export type BankAccountToken = {
33
40
  /** Bank account details. */
34
41
  bankAccount: BankAccount | null;
35
42
  /** Has the value true if the object exists in live mode or the value false if the object exists in test mode. */
@@ -41,7 +48,7 @@ export declare type BankAccountToken = {
41
48
  /** The UNIX timestamp (in milliseconds) of the date this token was created. */
42
49
  created: number | null;
43
50
  };
44
- export declare type Account = {
51
+ export type Account = {
45
52
  /** A unique ID for this Financial Connections Account. */
46
53
  id: string;
47
54
  /** Has the value true if the object exists in live mode or the value false if the object exists in test mode. */
@@ -66,12 +73,12 @@ export declare type Account = {
66
73
  /** The supported payment method types for this account. */
67
74
  supportedPaymentMethodTypes: Array<PaymentMethodType>;
68
75
  };
69
- export declare type AccountStatus = 'active' | 'inactive' | 'disconnected';
70
- export declare type Category = 'cash' | 'credit' | 'investment' | 'other';
71
- export declare type PaymentMethodType = 'us_bank_account' | 'link';
72
- export declare type Subcategory = 'checking' | 'creditCard' | 'lineOfCredit' | 'mortgage' | 'other' | 'savings';
73
- export declare type Permission = 'balances' | 'ownership' | 'paymentMethod' | 'transactions' | 'accountNumbers';
74
- 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 = {
75
82
  /** The UNIX timestamp (in milliseconds) of time that the external institution calculated this balance. */
76
83
  asOf: number;
77
84
  /** The type of this balance, either cash or credit. */
@@ -87,14 +94,75 @@ export declare type Balance = {
87
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. */
88
95
  current: Map<String, number>;
89
96
  };
90
- export declare type BalanceRefresh = {
97
+ export type BalanceRefresh = {
91
98
  status: BalanceRefreshStatus;
92
99
  /** The UNIX timestamp (in milliseconds) of the time at which the last refresh attempt was initiated. */
93
100
  lastAttemptedAt: number;
94
101
  };
95
- export declare type BalanceType = 'cash' | 'credit';
96
- export declare type BalanceRefreshStatus = 'failed' | 'pending' | 'succeeded';
102
+ export type BalanceType = 'cash' | 'credit';
103
+ export type BalanceRefreshStatus = 'failed' | 'pending' | 'succeeded';
97
104
  export declare enum FinancialConnectionsSheetError {
98
105
  Failed = "Failed",
99
106
  Canceled = "Canceled"
100
107
  }
108
+ export type FinancialConnectionsEvent = {
109
+ /** The event's name. Represents the type of event that has occurred during the Financial Connections process. */
110
+ name: FinancialConnectionsEventName;
111
+ /** Event-associated metadata. Provides further detail related to the occurred event. */
112
+ metadata: FinancialConnectionsEventMetadata;
113
+ };
114
+ export declare enum FinancialConnectionsEventName {
115
+ /** Invoked when the sheet successfully opens. */
116
+ Open = "open",
117
+ /** Invoked when the manual entry flow is initiated. */
118
+ ManualEntryInitiated = "manual_entry_initiated",
119
+ /** Invoked when "Agree and continue" is selected on the consent pane. */
120
+ ConsentAcquired = "consent_acquired",
121
+ /** Invoked when the search bar is selected, the user inputs search terms, and receives an API response. */
122
+ SearchInitiated = "search_initiated",
123
+ /** Invoked when an institution is selected, either from featured institutions or search results. */
124
+ InstitutionSelected = "institution_selected",
125
+ /** Invoked when the authorization is successfully completed. */
126
+ InstitutionAuthorized = "institution_authorized",
127
+ /** Invoked when accounts are selected and "confirm" is selected. */
128
+ AccountsSelected = "accounts_selected",
129
+ /** Invoked when the flow is completed and selected accounts are correctly connected to the payment instrument. */
130
+ Success = "success",
131
+ /** Invoked when an error is encountered. Refer to error codes for more details. */
132
+ Error = "error",
133
+ /** Invoked when the flow is cancelled, typically by the user pressing the "X" button. */
134
+ Cancel = "cancel",
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. */
136
+ FlowLaunchedInBrowser = "flow_launched_in_browser"
137
+ }
138
+ export type FinancialConnectionsEventMetadata = {
139
+ /** A Boolean value that indicates if the user completed the process through the manual entry flow. */
140
+ manualEntry?: boolean;
141
+ /** A String value containing the name of the institution that the user selected. */
142
+ institutionName?: string;
143
+ /** An ErrorCode value representing the type of error that occurred. */
144
+ errorCode?: FinancialConnectionsEventErrorCode;
145
+ };
146
+ export declare enum FinancialConnectionsEventErrorCode {
147
+ /** The system could not retrieve account numbers for selected accounts. */
148
+ AccountNumbersUnavailable = "account_numbers_unavailable",
149
+ /** The system could not retrieve accounts for the selected institution. */
150
+ AccountsUnavailable = "accounts_unavailable",
151
+ /** For payment flows, no debitable account was available at the selected institution. */
152
+ NoDebitableAccount = "no_debitable_account",
153
+ /** Authorization with the selected institution has failed. */
154
+ AuthorizationFailed = "authorization_failed",
155
+ /** The selected institution is down for expected maintenance. */
156
+ InstitutionUnavailablePlanned = "institution_unavailable_planned",
157
+ /** The selected institution is unexpectedly down. */
158
+ InstitutionUnavailableUnplanned = "institution_unavailable_unplanned",
159
+ /** A timeout occurred while communicating with our partner or downstream institutions. */
160
+ InstitutionTimeout = "institution_timeout",
161
+ /** An unexpected error occurred, either in an API call or on the client-side. */
162
+ UnexpectedError = "unexpected_error",
163
+ /** The client secret that powers the session has expired. */
164
+ SessionExpired = "session_expired",
165
+ /** The hCaptcha challenge failed. */
166
+ FailedBotDetection = "failed_bot_detection"
167
+ }
168
+ //# sourceMappingURL=FinancialConnections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FinancialConnections.d.ts","sourceRoot":"","sources":["../../../../src/types/FinancialConnections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,yCAAyC,GAAG;IACtD,4MAA4M;IAC5M,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,mKAAmK;IACnK,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,aAAa,GACrB;IACE,wDAAwD;IACxD,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GACD;IACE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,WAAW,CAAC,8BAA8B,CAAC,CAAC;CACpD,CAAC;AAEN,MAAM,MAAM,WAAW,GACnB;IACE,wDAAwD;IACxD,OAAO,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,KAAK,EAAE,gBAAgB,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GACD;IACE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,WAAW,CAAC,8BAA8B,CAAC,CAAC;CACpD,CAAC;AAEN,MAAM,MAAM,OAAO,GAAG;IACpB,oCAAoC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,0CAA0C;IAC1C,YAAY,EAAE,MAAM,CAA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,IAAI,SAAS;IACb,uDAAuD;IACvD,oBAAoB,2BAA2B;IAC/C,yEAAyE;IACzE,eAAe,qBAAqB;IACpC,2GAA2G;IAC3G,eAAe,qBAAqB;IACpC,oGAAoG;IACpG,mBAAmB,yBAAyB;IAC5C,gEAAgE;IAChE,qBAAqB,2BAA2B;IAChD,oEAAoE;IACpE,gBAAgB,sBAAsB;IACtC,kHAAkH;IAClH,OAAO,YAAY;IACnB,mFAAmF;IACnF,KAAK,UAAU;IACf,yFAAyF;IACzF,MAAM,WAAW;IACjB,6JAA6J;IAC7J,qBAAqB,6BAA6B;CACnD;AAED,MAAM,MAAM,iCAAiC,GAAG;IAC9C,sGAAsG;IACtG,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uEAAuE;IACvE,SAAS,CAAC,EAAE,kCAAkC,CAAC;CAChD,CAAC;AAEF,oBAAY,kCAAkC;IAC5C,2EAA2E;IAC3E,yBAAyB,gCAAgC;IACzD,2EAA2E;IAC3E,mBAAmB,yBAAyB;IAC5C,yFAAyF;IACzF,kBAAkB,yBAAyB;IAC3C,8DAA8D;IAC9D,mBAAmB,yBAAyB;IAC5C,iEAAiE;IACjE,6BAA6B,oCAAoC;IACjE,qDAAqD;IACrD,+BAA+B,sCAAsC;IACrE,0FAA0F;IAC1F,kBAAkB,wBAAwB;IAC1C,iFAAiF;IACjF,eAAe,qBAAqB;IACpC,6DAA6D;IAC7D,cAAc,oBAAoB;IAClC,qCAAqC;IACrC,kBAAkB,yBAAyB;CAC5C"}
@@ -1,34 +1,35 @@
1
- export declare type NextAction = VerifyWithMicrodepositsAction | UrlRedirectAction | WeChatRedirectAction | AlipayRedirectAction | BoletoVoucherAction | OxxoVoucherAction;
2
- export declare type VerifyWithMicrodepositsAction = {
1
+ export type NextAction = VerifyWithMicrodepositsAction | UrlRedirectAction | WeChatRedirectAction | AlipayRedirectAction | BoletoVoucherAction | OxxoVoucherAction;
2
+ export type VerifyWithMicrodepositsAction = {
3
3
  type: 'verifyWithMicrodeposits';
4
4
  redirectUrl: string;
5
5
  microdepositType: string;
6
6
  arrivalDate: string;
7
7
  };
8
- export declare type UrlRedirectAction = {
8
+ export type UrlRedirectAction = {
9
9
  type: 'urlRedirect';
10
10
  redirectUrl: string;
11
11
  };
12
- export declare type WeChatRedirectAction = {
12
+ export type WeChatRedirectAction = {
13
13
  type: 'weChatRedirect';
14
14
  redirectUrl: string;
15
15
  };
16
- export declare type AlipayRedirectAction = {
16
+ export type AlipayRedirectAction = {
17
17
  type: 'alipayRedirect';
18
18
  redirectUrl: string;
19
19
  nativeRedirectUrl: string;
20
20
  };
21
- export declare type BoletoVoucherAction = {
21
+ export type BoletoVoucherAction = {
22
22
  type: 'boletoVoucher';
23
23
  voucherURL: string;
24
24
  };
25
- export declare type KonbiniVoucherAction = {
25
+ export type KonbiniVoucherAction = {
26
26
  type: 'konbiniVoucher';
27
27
  voucherURL: string;
28
28
  };
29
- export declare type OxxoVoucherAction = {
29
+ export type OxxoVoucherAction = {
30
30
  type: 'oxxoVoucher';
31
31
  expiration: number;
32
32
  voucherURL: string;
33
33
  voucherNumber: string;
34
34
  };
35
+ //# sourceMappingURL=NextAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NextAction.d.ts","sourceRoot":"","sources":["../../../../src/types/NextAction.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAClB,6BAA6B,GAC7B,iBAAiB,GACjB,oBAAoB,GACpB,oBAAoB,GACpB,mBAAmB,GACnB,iBAAiB,CAAC;AAEtB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,yBAAyB,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,eAAe,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -26,13 +26,13 @@ export interface Result {
26
26
  shipping: ShippingDetails | null;
27
27
  nextAction: NextAction | null;
28
28
  }
29
- export declare type CaptureMethod = 'Automatic' | 'Manual';
30
- export declare type ConfirmParams = CardParams | IdealParams | OxxoParams | P24Params | AlipayParams | GiropayParams | SepaParams | EpsParams | AuBecsDebitParams | SofortParams | GrabPayParams | FPXParams | AfterpayClearpayParams | KlarnaParams | BancontactParams | USBankAccountParams | PayPalParams | AffirmParams | CashAppParams | RevolutPayParams;
31
- export declare type ConfirmOptions = PaymentMethod.ConfirmOptions;
32
- export declare type LastPaymentError = StripeError<string> & {
29
+ export type CaptureMethod = 'Automatic' | 'Manual';
30
+ export type ConfirmParams = CardParams | IdealParams | OxxoParams | P24Params | AlipayParams | GiropayParams | SepaParams | EpsParams | AuBecsDebitParams | SofortParams | GrabPayParams | FPXParams | AfterpayClearpayParams | KlarnaParams | BancontactParams | USBankAccountParams | PayPalParams | AffirmParams | CashAppParams | RevolutPayParams;
31
+ export type ConfirmOptions = PaymentMethod.ConfirmOptions;
32
+ export type LastPaymentError = StripeError<string> & {
33
33
  paymentMethod: PaymentMethodResult;
34
34
  };
35
- export declare type FutureUsage = 'OffSession' | 'OnSession';
35
+ export type FutureUsage = 'OffSession' | 'OnSession';
36
36
  export interface ShippingDetails {
37
37
  address: Required<Address>;
38
38
  name: string;
@@ -50,7 +50,7 @@ export declare enum Status {
50
50
  RequiresCapture = "RequiresCapture",
51
51
  Unknown = "Unknown"
52
52
  }
53
- export declare type MandateData = {
53
+ export type MandateData = {
54
54
  customerAcceptance: {
55
55
  online: {
56
56
  ipAddress: string;
@@ -58,12 +58,16 @@ export declare type MandateData = {
58
58
  };
59
59
  };
60
60
  };
61
- export declare type CardParams = {
61
+ type MetaData = {
62
+ [key: string]: string;
63
+ };
64
+ export type CardParams = {
62
65
  paymentMethodType: 'Card';
63
66
  paymentMethodData?: {
64
67
  token?: string;
65
68
  billingDetails?: BillingDetails;
66
69
  mandateData?: MandateData;
70
+ metadata?: MetaData;
67
71
  };
68
72
  } | {
69
73
  paymentMethodType: 'Card';
@@ -72,6 +76,7 @@ export declare type CardParams = {
72
76
  cvc?: string;
73
77
  billingDetails?: BillingDetails;
74
78
  mandateData?: MandateData;
79
+ metadata?: MetaData;
75
80
  };
76
81
  };
77
82
  export interface IdealParams {
@@ -80,6 +85,7 @@ export interface IdealParams {
80
85
  bankName?: string;
81
86
  billingDetails?: BillingDetails;
82
87
  mandateData?: MandateData;
88
+ metadata?: MetaData;
83
89
  };
84
90
  }
85
91
  export interface FPXParams {
@@ -87,12 +93,14 @@ export interface FPXParams {
87
93
  paymentMethodData?: {
88
94
  testOfflineBank?: boolean;
89
95
  mandateData?: MandateData;
96
+ metadata?: MetaData;
90
97
  };
91
98
  }
92
99
  export interface AlipayParams {
93
100
  paymentMethodType: 'Alipay';
94
101
  paymentMethodData?: {
95
102
  mandateData?: MandateData;
103
+ metadata?: MetaData;
96
104
  };
97
105
  }
98
106
  export interface OxxoParams {
@@ -100,6 +108,7 @@ export interface OxxoParams {
100
108
  paymentMethodData: {
101
109
  billingDetails: BillingDetails;
102
110
  mandateData?: MandateData;
111
+ metadata?: MetaData;
103
112
  };
104
113
  }
105
114
  export interface SofortParams {
@@ -108,6 +117,7 @@ export interface SofortParams {
108
117
  country: string;
109
118
  billingDetails: BillingDetails;
110
119
  mandateData?: MandateData;
120
+ metadata?: MetaData;
111
121
  };
112
122
  }
113
123
  export interface GrabPayParams {
@@ -115,6 +125,7 @@ export interface GrabPayParams {
115
125
  paymentMethodData?: {
116
126
  billingDetails?: BillingDetails;
117
127
  mandateData?: MandateData;
128
+ metadata?: MetaData;
118
129
  };
119
130
  }
120
131
  export interface BancontactParams {
@@ -122,6 +133,7 @@ export interface BancontactParams {
122
133
  paymentMethodData: {
123
134
  billingDetails: BillingDetails;
124
135
  mandateData?: MandateData;
136
+ metadata?: MetaData;
125
137
  };
126
138
  }
127
139
  export interface SepaParams {
@@ -130,6 +142,7 @@ export interface SepaParams {
130
142
  iban: string;
131
143
  billingDetails: BillingDetails;
132
144
  mandateData?: MandateData;
145
+ metadata?: MetaData;
133
146
  };
134
147
  }
135
148
  export interface GiropayParams {
@@ -137,6 +150,7 @@ export interface GiropayParams {
137
150
  paymentMethodData: {
138
151
  billingDetails: BillingDetails;
139
152
  mandateData?: MandateData;
153
+ metadata?: MetaData;
140
154
  };
141
155
  }
142
156
  export interface AfterpayClearpayParams {
@@ -145,9 +159,10 @@ export interface AfterpayClearpayParams {
145
159
  shippingDetails: BillingDetails;
146
160
  billingDetails: BillingDetails;
147
161
  mandateData?: MandateData;
162
+ metadata?: MetaData;
148
163
  };
149
164
  }
150
- export declare type KlarnaParams = {
165
+ export type KlarnaParams = {
151
166
  paymentMethodType: 'Klarna';
152
167
  paymentMethodData: {
153
168
  billingDetails: Pick<Required<BillingDetails>, 'email'> & {
@@ -155,6 +170,7 @@ export declare type KlarnaParams = {
155
170
  } & BillingDetails;
156
171
  shippingDetails?: BillingDetails;
157
172
  mandateData?: MandateData;
173
+ metadata?: MetaData;
158
174
  };
159
175
  };
160
176
  export interface EpsParams {
@@ -162,6 +178,7 @@ export interface EpsParams {
162
178
  paymentMethodData: {
163
179
  billingDetails: BillingDetails;
164
180
  mandateData?: MandateData;
181
+ metadata?: MetaData;
165
182
  };
166
183
  }
167
184
  export interface P24Params {
@@ -169,6 +186,7 @@ export interface P24Params {
169
186
  paymentMethodData: {
170
187
  billingDetails: BillingDetails;
171
188
  mandateData?: MandateData;
189
+ metadata?: MetaData;
172
190
  };
173
191
  }
174
192
  export interface WeChatPayParams {
@@ -177,6 +195,7 @@ export interface WeChatPayParams {
177
195
  appId: string;
178
196
  billingDetails?: BillingDetails;
179
197
  mandateData?: MandateData;
198
+ metadata?: MetaData;
180
199
  };
181
200
  }
182
201
  export interface AuBecsDebitParams {
@@ -186,20 +205,21 @@ export interface AuBecsDebitParams {
186
205
  mandateData?: MandateData;
187
206
  };
188
207
  }
189
- export declare type AffirmParams = {
208
+ export type AffirmParams = {
190
209
  paymentMethodType: 'Affirm';
191
210
  paymentMethodData?: {
192
211
  /** Affirm requires that shipping is present for the payment to succeed because it significantly helps with loan approval rates. Shipping details can either be provided here or via the Payment Intent- https://stripe.com/docs/api/payment_intents/create#create_payment_intent-shipping. */
193
212
  shippingDetails?: BillingDetails;
194
213
  billingDetails?: BillingDetails;
195
214
  mandateData?: MandateData;
215
+ metadata?: MetaData;
196
216
  };
197
217
  };
198
218
  /**
199
219
  * If paymentMethodData is null, it is assumed that the bank account details have already been attached
200
220
  * via `collectBankAccountForPayment` or `collectBankAccountForSetup`.
201
221
  */
202
- export declare type USBankAccountParams = {
222
+ export type USBankAccountParams = {
203
223
  paymentMethodType: 'USBankAccount';
204
224
  paymentMethodData?: {
205
225
  billingDetails: Pick<Required<BillingDetails>, 'name'> & BillingDetails;
@@ -210,30 +230,34 @@ export declare type USBankAccountParams = {
210
230
  /** Defaults to Checking */
211
231
  accountType?: BankAcccountType;
212
232
  mandateData?: MandateData;
233
+ metadata?: MetaData;
213
234
  };
214
235
  };
215
- export declare type PayPalParams = {
236
+ export type PayPalParams = {
216
237
  paymentMethodType: 'PayPal';
217
238
  paymentMethodData?: {
218
239
  billingDetails?: BillingDetails;
219
240
  mandateData?: MandateData;
241
+ metadata?: MetaData;
220
242
  };
221
243
  };
222
- export declare type CashAppParams = {
244
+ export type CashAppParams = {
223
245
  paymentMethodType: 'CashApp';
224
246
  paymentMethodData?: {
225
247
  billingDetails?: BillingDetails;
226
248
  mandateData?: MandateData;
249
+ metadata?: MetaData;
227
250
  };
228
251
  };
229
- export declare type RevolutPayParams = {
252
+ export type RevolutPayParams = {
230
253
  paymentMethodType: 'RevolutPay';
231
254
  paymentMethodData?: {
232
255
  billingDetails?: BillingDetails;
233
256
  mandateData?: MandateData;
257
+ metadata?: MetaData;
234
258
  };
235
259
  };
236
- export declare type CollectBankAccountParams = {
260
+ export type CollectBankAccountParams = {
237
261
  paymentMethodType: 'USBankAccount';
238
262
  paymentMethodData: {
239
263
  billingDetails: {
@@ -241,5 +265,8 @@ export declare type CollectBankAccountParams = {
241
265
  email?: string;
242
266
  };
243
267
  mandateData?: MandateData;
268
+ metadata?: MetaData;
244
269
  };
245
270
  };
271
+ export {};
272
+ //# sourceMappingURL=PaymentIntent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentIntent.d.ts","sourceRoot":"","sources":["../../../../src/types/PaymentIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AACrC,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,IAAI,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,KAAK,aAAa,MAAM,iBAA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