@tonder.io/rn-sdk 0.1.7 → 0.1.8

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 (265) hide show
  1. package/README.md +152 -0
  2. package/lib/commonjs/core/3DSHandler.js +1 -2
  3. package/lib/commonjs/core/3DSHandler.js.map +1 -1
  4. package/lib/commonjs/core/BaseCheckout/index.js +5 -4
  5. package/lib/commonjs/core/BaseCheckout/index.js.map +1 -1
  6. package/lib/commonjs/core/BaseEnrollment/index.js +2 -2
  7. package/lib/commonjs/core/BaseEnrollment/index.js.map +1 -1
  8. package/lib/commonjs/core/BaseSDK/index.js +1 -3
  9. package/lib/commonjs/core/BaseSDK/index.js.map +1 -1
  10. package/lib/commonjs/core/EnrollmentContainer/index.js +24 -2
  11. package/lib/commonjs/core/EnrollmentContainer/index.js.map +1 -1
  12. package/lib/commonjs/core/PaymentInlineContainer/index.js +2 -2
  13. package/lib/commonjs/core/PaymentInlineContainer/index.js.map +1 -1
  14. package/lib/commonjs/core/PaymentLiteContainer/index.js +2 -2
  15. package/lib/commonjs/core/PaymentLiteContainer/index.js.map +1 -1
  16. package/lib/commonjs/infrastructure/HttpClient.js +1 -1
  17. package/lib/commonjs/infrastructure/HttpClient.js.map +1 -1
  18. package/lib/commonjs/services/SkyflowService.js +3 -3
  19. package/lib/commonjs/services/SkyflowService.js.map +1 -1
  20. package/lib/commonjs/shared/catalog/paymentMethodsCatalog.js +16 -0
  21. package/lib/commonjs/shared/catalog/paymentMethodsCatalog.js.map +1 -1
  22. package/lib/commonjs/shared/constants/environments.js +10 -1
  23. package/lib/commonjs/shared/constants/environments.js.map +1 -1
  24. package/lib/commonjs/shared/constants/paymentMethods.js +4 -1
  25. package/lib/commonjs/shared/constants/paymentMethods.js.map +1 -1
  26. package/lib/commonjs/shared/constants/skyflow.js +3 -3
  27. package/lib/commonjs/shared/constants/skyflow.js.map +1 -1
  28. package/lib/commonjs/ui/components/CardForm/index.js +2 -1
  29. package/lib/commonjs/ui/components/CardForm/index.js.map +1 -1
  30. package/lib/commonjs/ui/components/Input/CardCVVInput.js +9 -6
  31. package/lib/commonjs/ui/components/Input/CardCVVInput.js.map +1 -1
  32. package/lib/commonjs/ui/components/Input/CardExpirationDateInput.js +6 -1
  33. package/lib/commonjs/ui/components/Input/CardExpirationDateInput.js.map +1 -1
  34. package/lib/commonjs/ui/components/Input/CardExpirationMonthInput.js +6 -5
  35. package/lib/commonjs/ui/components/Input/CardExpirationMonthInput.js.map +1 -1
  36. package/lib/commonjs/ui/components/Input/CardExpirationYearInput.js +6 -5
  37. package/lib/commonjs/ui/components/Input/CardExpirationYearInput.js.map +1 -1
  38. package/lib/commonjs/ui/components/Input/CardHolderInput.js +6 -5
  39. package/lib/commonjs/ui/components/Input/CardHolderInput.js.map +1 -1
  40. package/lib/commonjs/ui/components/Input/CardNumberInput.js +9 -5
  41. package/lib/commonjs/ui/components/Input/CardNumberInput.js.map +1 -1
  42. package/lib/commonjs/ui/components/PaymentMethodsList/index.js +3 -1
  43. package/lib/commonjs/ui/components/PaymentMethodsList/index.js.map +1 -1
  44. package/lib/commonjs/ui/components/SavedCardsList/index.js +116 -29
  45. package/lib/commonjs/ui/components/SavedCardsList/index.js.map +1 -1
  46. package/lib/commonjs/ui/features/TonderEnrollment/index.js +53 -31
  47. package/lib/commonjs/ui/features/TonderEnrollment/index.js.map +1 -1
  48. package/lib/commonjs/ui/features/TonderPayment/index.js +55 -17
  49. package/lib/commonjs/ui/features/TonderPayment/index.js.map +1 -1
  50. package/lib/commonjs/ui/providers/SkyflowContainerWrapper/index.js +18 -18
  51. package/lib/commonjs/ui/providers/SkyflowContainerWrapper/index.js.map +1 -1
  52. package/lib/commonjs/ui/providers/TonderProvider/TonderProviderWrapper.js +32 -0
  53. package/lib/commonjs/ui/providers/TonderProvider/TonderProviderWrapper.js.map +1 -0
  54. package/lib/commonjs/ui/providers/TonderProvider/index.js +11 -23
  55. package/lib/commonjs/ui/providers/TonderProvider/index.js.map +1 -1
  56. package/lib/commonjs/ui/styles/payment.js +2 -1
  57. package/lib/commonjs/ui/styles/payment.js.map +1 -1
  58. package/lib/module/core/3DSHandler.js +1 -2
  59. package/lib/module/core/3DSHandler.js.map +1 -1
  60. package/lib/module/core/BaseCheckout/index.js +6 -5
  61. package/lib/module/core/BaseCheckout/index.js.map +1 -1
  62. package/lib/module/core/BaseEnrollment/index.js +2 -2
  63. package/lib/module/core/BaseEnrollment/index.js.map +1 -1
  64. package/lib/module/core/BaseSDK/index.js +1 -3
  65. package/lib/module/core/BaseSDK/index.js.map +1 -1
  66. package/lib/module/core/EnrollmentContainer/index.js +24 -2
  67. package/lib/module/core/EnrollmentContainer/index.js.map +1 -1
  68. package/lib/module/core/PaymentInlineContainer/index.js +2 -2
  69. package/lib/module/core/PaymentInlineContainer/index.js.map +1 -1
  70. package/lib/module/core/PaymentLiteContainer/index.js +2 -2
  71. package/lib/module/core/PaymentLiteContainer/index.js.map +1 -1
  72. package/lib/module/infrastructure/HttpClient.js +1 -1
  73. package/lib/module/infrastructure/HttpClient.js.map +1 -1
  74. package/lib/module/services/SkyflowService.js +1 -1
  75. package/lib/module/services/SkyflowService.js.map +1 -1
  76. package/lib/module/shared/catalog/paymentMethodsCatalog.js +16 -0
  77. package/lib/module/shared/catalog/paymentMethodsCatalog.js.map +1 -1
  78. package/lib/module/shared/constants/environments.js +9 -1
  79. package/lib/module/shared/constants/environments.js.map +1 -1
  80. package/lib/module/shared/constants/paymentMethods.js +4 -1
  81. package/lib/module/shared/constants/paymentMethods.js.map +1 -1
  82. package/lib/module/shared/constants/skyflow.js +1 -1
  83. package/lib/module/shared/constants/skyflow.js.map +1 -1
  84. package/lib/module/ui/components/CardForm/index.js +2 -1
  85. package/lib/module/ui/components/CardForm/index.js.map +1 -1
  86. package/lib/module/ui/components/Input/CardCVVInput.js +8 -5
  87. package/lib/module/ui/components/Input/CardCVVInput.js.map +1 -1
  88. package/lib/module/ui/components/Input/CardExpirationDateInput.js +6 -1
  89. package/lib/module/ui/components/Input/CardExpirationDateInput.js.map +1 -1
  90. package/lib/module/ui/components/Input/CardExpirationMonthInput.js +5 -4
  91. package/lib/module/ui/components/Input/CardExpirationMonthInput.js.map +1 -1
  92. package/lib/module/ui/components/Input/CardExpirationYearInput.js +5 -4
  93. package/lib/module/ui/components/Input/CardExpirationYearInput.js.map +1 -1
  94. package/lib/module/ui/components/Input/CardHolderInput.js +5 -4
  95. package/lib/module/ui/components/Input/CardHolderInput.js.map +1 -1
  96. package/lib/module/ui/components/Input/CardNumberInput.js +8 -4
  97. package/lib/module/ui/components/Input/CardNumberInput.js.map +1 -1
  98. package/lib/module/ui/components/PaymentMethodsList/index.js +4 -2
  99. package/lib/module/ui/components/PaymentMethodsList/index.js.map +1 -1
  100. package/lib/module/ui/components/SavedCardsList/index.js +116 -29
  101. package/lib/module/ui/components/SavedCardsList/index.js.map +1 -1
  102. package/lib/module/ui/features/TonderEnrollment/index.js +53 -32
  103. package/lib/module/ui/features/TonderEnrollment/index.js.map +1 -1
  104. package/lib/module/ui/features/TonderPayment/index.js +57 -19
  105. package/lib/module/ui/features/TonderPayment/index.js.map +1 -1
  106. package/lib/module/ui/providers/SkyflowContainerWrapper/index.js +17 -16
  107. package/lib/module/ui/providers/SkyflowContainerWrapper/index.js.map +1 -1
  108. package/lib/module/ui/providers/TonderProvider/TonderProviderWrapper.js +27 -0
  109. package/lib/module/ui/providers/TonderProvider/TonderProviderWrapper.js.map +1 -0
  110. package/lib/module/ui/providers/TonderProvider/index.js +9 -21
  111. package/lib/module/ui/providers/TonderProvider/index.js.map +1 -1
  112. package/lib/module/ui/styles/payment.js +2 -1
  113. package/lib/module/ui/styles/payment.js.map +1 -1
  114. package/lib/typescript/commonjs/src/core/3DSHandler.d.ts.map +1 -1
  115. package/lib/typescript/commonjs/src/core/BaseCheckout/index.d.ts +1 -2
  116. package/lib/typescript/commonjs/src/core/BaseCheckout/index.d.ts.map +1 -1
  117. package/lib/typescript/commonjs/src/core/BaseEnrollment/index.d.ts +1 -2
  118. package/lib/typescript/commonjs/src/core/BaseEnrollment/index.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/src/core/BaseSDK/index.d.ts +1 -3
  120. package/lib/typescript/commonjs/src/core/BaseSDK/index.d.ts.map +1 -1
  121. package/lib/typescript/commonjs/src/core/EnrollmentContainer/index.d.ts +3 -3
  122. package/lib/typescript/commonjs/src/core/EnrollmentContainer/index.d.ts.map +1 -1
  123. package/lib/typescript/commonjs/src/core/PaymentInlineContainer/index.d.ts +1 -2
  124. package/lib/typescript/commonjs/src/core/PaymentInlineContainer/index.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/src/core/PaymentLiteContainer/index.d.ts +1 -2
  126. package/lib/typescript/commonjs/src/core/PaymentLiteContainer/index.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/src/infrastructure/HttpClient.d.ts.map +1 -1
  128. package/lib/typescript/commonjs/src/services/SkyflowService.d.ts +1 -1
  129. package/lib/typescript/commonjs/src/services/SkyflowService.d.ts.map +1 -1
  130. package/lib/typescript/commonjs/src/shared/catalog/paymentMethodsCatalog.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/src/shared/constants/environments.d.ts +2 -1
  132. package/lib/typescript/commonjs/src/shared/constants/environments.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/src/shared/constants/paymentMethods.d.ts +3 -0
  134. package/lib/typescript/commonjs/src/shared/constants/paymentMethods.d.ts.map +1 -1
  135. package/lib/typescript/commonjs/src/types/baseCheckout.d.ts +1 -1
  136. package/lib/typescript/commonjs/src/types/baseCheckout.d.ts.map +1 -1
  137. package/lib/typescript/commonjs/src/types/baseEnrollment.d.ts +1 -1
  138. package/lib/typescript/commonjs/src/types/baseEnrollment.d.ts.map +1 -1
  139. package/lib/typescript/commonjs/src/types/baseSDK.d.ts +1 -1
  140. package/lib/typescript/commonjs/src/types/baseSDK.d.ts.map +1 -1
  141. package/lib/typescript/commonjs/src/types/enrollment.d.ts +8 -1
  142. package/lib/typescript/commonjs/src/types/enrollment.d.ts.map +1 -1
  143. package/lib/typescript/commonjs/src/types/input.d.ts +1 -1
  144. package/lib/typescript/commonjs/src/types/input.d.ts.map +1 -1
  145. package/lib/typescript/commonjs/src/types/transaction.d.ts +2 -0
  146. package/lib/typescript/commonjs/src/types/transaction.d.ts.map +1 -1
  147. package/lib/typescript/commonjs/src/ui/components/CardForm/index.d.ts +1 -1
  148. package/lib/typescript/commonjs/src/ui/components/CardForm/index.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/src/ui/components/Input/CardCVVInput.d.ts +3 -1
  150. package/lib/typescript/commonjs/src/ui/components/Input/CardCVVInput.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationDateInput.d.ts.map +1 -1
  152. package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationMonthInput.d.ts.map +1 -1
  153. package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationYearInput.d.ts.map +1 -1
  154. package/lib/typescript/commonjs/src/ui/components/Input/CardHolderInput.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/src/ui/components/Input/CardNumberInput.d.ts.map +1 -1
  156. package/lib/typescript/commonjs/src/ui/components/PaymentMethodsList/index.d.ts.map +1 -1
  157. package/lib/typescript/commonjs/src/ui/components/SavedCardsList/index.d.ts +2 -1
  158. package/lib/typescript/commonjs/src/ui/components/SavedCardsList/index.d.ts.map +1 -1
  159. package/lib/typescript/commonjs/src/ui/features/TonderEnrollment/index.d.ts.map +1 -1
  160. package/lib/typescript/commonjs/src/ui/features/TonderPayment/index.d.ts.map +1 -1
  161. package/lib/typescript/commonjs/src/ui/providers/SkyflowContainerWrapper/index.d.ts +1 -8
  162. package/lib/typescript/commonjs/src/ui/providers/SkyflowContainerWrapper/index.d.ts.map +1 -1
  163. package/lib/typescript/commonjs/src/ui/providers/TonderProvider/TonderProviderWrapper.d.ts +10 -0
  164. package/lib/typescript/commonjs/src/ui/providers/TonderProvider/TonderProviderWrapper.d.ts.map +1 -0
  165. package/lib/typescript/commonjs/src/ui/providers/TonderProvider/index.d.ts.map +1 -1
  166. package/lib/typescript/commonjs/src/ui/styles/payment.d.ts +1 -0
  167. package/lib/typescript/commonjs/src/ui/styles/payment.d.ts.map +1 -1
  168. package/lib/typescript/module/src/core/3DSHandler.d.ts.map +1 -1
  169. package/lib/typescript/module/src/core/BaseCheckout/index.d.ts +1 -2
  170. package/lib/typescript/module/src/core/BaseCheckout/index.d.ts.map +1 -1
  171. package/lib/typescript/module/src/core/BaseEnrollment/index.d.ts +1 -2
  172. package/lib/typescript/module/src/core/BaseEnrollment/index.d.ts.map +1 -1
  173. package/lib/typescript/module/src/core/BaseSDK/index.d.ts +1 -3
  174. package/lib/typescript/module/src/core/BaseSDK/index.d.ts.map +1 -1
  175. package/lib/typescript/module/src/core/EnrollmentContainer/index.d.ts +3 -3
  176. package/lib/typescript/module/src/core/EnrollmentContainer/index.d.ts.map +1 -1
  177. package/lib/typescript/module/src/core/PaymentInlineContainer/index.d.ts +1 -2
  178. package/lib/typescript/module/src/core/PaymentInlineContainer/index.d.ts.map +1 -1
  179. package/lib/typescript/module/src/core/PaymentLiteContainer/index.d.ts +1 -2
  180. package/lib/typescript/module/src/core/PaymentLiteContainer/index.d.ts.map +1 -1
  181. package/lib/typescript/module/src/infrastructure/HttpClient.d.ts.map +1 -1
  182. package/lib/typescript/module/src/services/SkyflowService.d.ts +1 -1
  183. package/lib/typescript/module/src/services/SkyflowService.d.ts.map +1 -1
  184. package/lib/typescript/module/src/shared/catalog/paymentMethodsCatalog.d.ts.map +1 -1
  185. package/lib/typescript/module/src/shared/constants/environments.d.ts +2 -1
  186. package/lib/typescript/module/src/shared/constants/environments.d.ts.map +1 -1
  187. package/lib/typescript/module/src/shared/constants/paymentMethods.d.ts +3 -0
  188. package/lib/typescript/module/src/shared/constants/paymentMethods.d.ts.map +1 -1
  189. package/lib/typescript/module/src/types/baseCheckout.d.ts +1 -1
  190. package/lib/typescript/module/src/types/baseCheckout.d.ts.map +1 -1
  191. package/lib/typescript/module/src/types/baseEnrollment.d.ts +1 -1
  192. package/lib/typescript/module/src/types/baseEnrollment.d.ts.map +1 -1
  193. package/lib/typescript/module/src/types/baseSDK.d.ts +1 -1
  194. package/lib/typescript/module/src/types/baseSDK.d.ts.map +1 -1
  195. package/lib/typescript/module/src/types/enrollment.d.ts +8 -1
  196. package/lib/typescript/module/src/types/enrollment.d.ts.map +1 -1
  197. package/lib/typescript/module/src/types/input.d.ts +1 -1
  198. package/lib/typescript/module/src/types/input.d.ts.map +1 -1
  199. package/lib/typescript/module/src/types/transaction.d.ts +2 -0
  200. package/lib/typescript/module/src/types/transaction.d.ts.map +1 -1
  201. package/lib/typescript/module/src/ui/components/CardForm/index.d.ts +1 -1
  202. package/lib/typescript/module/src/ui/components/CardForm/index.d.ts.map +1 -1
  203. package/lib/typescript/module/src/ui/components/Input/CardCVVInput.d.ts +3 -1
  204. package/lib/typescript/module/src/ui/components/Input/CardCVVInput.d.ts.map +1 -1
  205. package/lib/typescript/module/src/ui/components/Input/CardExpirationDateInput.d.ts.map +1 -1
  206. package/lib/typescript/module/src/ui/components/Input/CardExpirationMonthInput.d.ts.map +1 -1
  207. package/lib/typescript/module/src/ui/components/Input/CardExpirationYearInput.d.ts.map +1 -1
  208. package/lib/typescript/module/src/ui/components/Input/CardHolderInput.d.ts.map +1 -1
  209. package/lib/typescript/module/src/ui/components/Input/CardNumberInput.d.ts.map +1 -1
  210. package/lib/typescript/module/src/ui/components/PaymentMethodsList/index.d.ts.map +1 -1
  211. package/lib/typescript/module/src/ui/components/SavedCardsList/index.d.ts +2 -1
  212. package/lib/typescript/module/src/ui/components/SavedCardsList/index.d.ts.map +1 -1
  213. package/lib/typescript/module/src/ui/features/TonderEnrollment/index.d.ts.map +1 -1
  214. package/lib/typescript/module/src/ui/features/TonderPayment/index.d.ts.map +1 -1
  215. package/lib/typescript/module/src/ui/providers/SkyflowContainerWrapper/index.d.ts +1 -8
  216. package/lib/typescript/module/src/ui/providers/SkyflowContainerWrapper/index.d.ts.map +1 -1
  217. package/lib/typescript/module/src/ui/providers/TonderProvider/TonderProviderWrapper.d.ts +10 -0
  218. package/lib/typescript/module/src/ui/providers/TonderProvider/TonderProviderWrapper.d.ts.map +1 -0
  219. package/lib/typescript/module/src/ui/providers/TonderProvider/index.d.ts.map +1 -1
  220. package/lib/typescript/module/src/ui/styles/payment.d.ts +1 -0
  221. package/lib/typescript/module/src/ui/styles/payment.d.ts.map +1 -1
  222. package/package.json +12 -5
  223. package/src/core/3DSHandler.ts +6 -5
  224. package/src/core/BaseCheckout/index.ts +10 -7
  225. package/src/core/BaseEnrollment/index.ts +2 -4
  226. package/src/core/BaseSDK/index.ts +1 -7
  227. package/src/core/EnrollmentContainer/index.ts +31 -7
  228. package/src/core/PaymentInlineContainer/index.ts +2 -7
  229. package/src/core/PaymentLiteContainer/index.ts +2 -7
  230. package/src/infrastructure/HttpClient.ts +10 -5
  231. package/src/services/SkyflowService.ts +2 -2
  232. package/src/shared/catalog/paymentMethodsCatalog.ts +16 -0
  233. package/src/shared/constants/environments.ts +10 -1
  234. package/src/shared/constants/paymentMethods.ts +3 -0
  235. package/src/shared/constants/skyflow.ts +1 -1
  236. package/src/types/baseCheckout.ts +1 -1
  237. package/src/types/baseEnrollment.ts +1 -1
  238. package/src/types/baseSDK.ts +1 -1
  239. package/src/types/enrollment.ts +19 -2
  240. package/src/types/input.ts +1 -1
  241. package/src/types/transaction.ts +2 -0
  242. package/src/ui/components/CardForm/index.tsx +6 -5
  243. package/src/ui/components/Input/CardCVVInput.tsx +6 -2
  244. package/src/ui/components/Input/CardExpirationDateInput.tsx +14 -8
  245. package/src/ui/components/Input/CardExpirationMonthInput.tsx +3 -1
  246. package/src/ui/components/Input/CardExpirationYearInput.tsx +3 -1
  247. package/src/ui/components/Input/CardHolderInput.tsx +3 -1
  248. package/src/ui/components/Input/CardNumberInput.tsx +6 -1
  249. package/src/ui/components/PaymentMethodsList/index.tsx +15 -3
  250. package/src/ui/components/SavedCardsList/index.tsx +186 -65
  251. package/src/ui/features/TonderEnrollment/index.tsx +63 -35
  252. package/src/ui/features/TonderPayment/index.tsx +81 -27
  253. package/src/ui/providers/SkyflowContainerWrapper/index.tsx +19 -24
  254. package/src/ui/providers/TonderProvider/TonderProviderWrapper.tsx +32 -0
  255. package/src/ui/providers/TonderProvider/index.tsx +8 -31
  256. package/src/ui/styles/payment.ts +1 -0
  257. package/lib/commonjs/ui/providers/InnerProvider/index.js +0 -25
  258. package/lib/commonjs/ui/providers/InnerProvider/index.js.map +0 -1
  259. package/lib/module/ui/providers/InnerProvider/index.js +0 -19
  260. package/lib/module/ui/providers/InnerProvider/index.js.map +0 -1
  261. package/lib/typescript/commonjs/src/ui/providers/InnerProvider/index.d.ts +0 -10
  262. package/lib/typescript/commonjs/src/ui/providers/InnerProvider/index.d.ts.map +0 -1
  263. package/lib/typescript/module/src/ui/providers/InnerProvider/index.d.ts +0 -10
  264. package/lib/typescript/module/src/ui/providers/InnerProvider/index.d.ts.map +0 -1
  265. package/src/ui/providers/InnerProvider/index.tsx +0 -24
@@ -1,5 +1,5 @@
1
1
  import type { Business, IBaseState, ICustomerResponse } from '.';
2
- import type { IConfig } from 'skf-rnad';
2
+ import type { IConfig } from 'skyflow-react-native';
3
3
  import { SDKType } from './base';
4
4
  export interface IBaseSDKState<T extends SDKType> extends IBaseState<T> {
5
5
  customerData?: ICustomerResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"baseSDK.d.ts","sourceRoot":"","sources":["../../../../../src/types/baseSDK.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAC;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,OAAO,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IACrE,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB"}
1
+ {"version":3,"file":"baseSDK.d.ts","sourceRoot":"","sources":["../../../../../src/types/baseSDK.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAC;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,OAAO,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IACrE,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB"}
@@ -1,7 +1,7 @@
1
1
  import type { IBaseCreateOptions, IBaseResponse, IEvents, SDKOptions } from './base';
2
2
  import type { IBaseEnrollmentState } from './baseEnrollment';
3
3
  import { SDKType } from './base';
4
- import type { ICardsSummaryResponse, ISaveCardResponse } from './card';
4
+ import type { ICardsSummaryResponse, ICustomerCardsResponse, ISaveCardResponse } from './card';
5
5
  import type { IFormLabels, IFormPlaceholder, IStyles } from './common';
6
6
  import type { ICustomer } from './customer';
7
7
  import TonderError from '../shared/utils/errors';
@@ -72,5 +72,12 @@ export interface IEnrollment {
72
72
  * @public
73
73
  */
74
74
  getCardSummary(id: string): Promise<IBaseResponse<ICardsSummaryResponse>>;
75
+ /**
76
+ * Retrieves the list of cards associated with a customer.
77
+ * @returns {Promise<IBaseResponse<ICustomerCardsResponse>>} A promise that resolves with the customer's card data.
78
+ *
79
+ * @public
80
+ */
81
+ getCustomerCards(): Promise<IBaseResponse<ICustomerCardsResponse>>;
75
82
  }
76
83
  //# sourceMappingURL=enrollment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enrollment.d.ts","sourceRoot":"","sources":["../../../../../src/types/enrollment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACrF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,WAAW,MAAM,wBAAwB,CAAC;AAEjD,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,+BAA+B,CAAC;IAChD,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,+BAA+B;IAC9C,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,WAAW,CA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;OAMG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAE1E;;;;;OAKG;IACH,gBAAgB,IAAI,OAAO,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC,CAAC;CACpE"}
@@ -1,4 +1,4 @@
1
- import type { CollectInputStylesVariant, CollectLabelStylesVariant } from 'skf-rnad';
1
+ import type { CollectInputStylesVariant, CollectLabelStylesVariant } from 'skyflow-react-native';
2
2
  import type { StylesBaseVariant } from './common';
3
3
  export interface IEventSecureInput {
4
4
  elementType: string;
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../src/types/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE;QACP,WAAW,CAAC,EAAE,YAAY,CAAC;QAC3B,UAAU,CAAC,EAAE,YAAY,CAAC;KAC3B,CAAC;CACH;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC7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AY,CAAC;KAC3B,CAAC;CACH;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC7C,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC7C;AAED,MAAM,WAAW,eAAe;IAC9B,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAED,MAAM,WAAW,UAAW,SAAQ,YAAY;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC"}
@@ -17,12 +17,14 @@ export interface ITransaction {
17
17
  is_disputed?: boolean | null;
18
18
  number_of_payment_attempts: number;
19
19
  card_brand?: string | null;
20
+ is_route_finished?: boolean;
20
21
  number_of_installments: number;
21
22
  payment?: ITransactionPayment;
22
23
  checkout: ITransactionCheckout;
23
24
  currency: ITransactionCurrency;
24
25
  payment_method?: ITransactionPaymentMethod | null;
25
26
  issuing_country?: string | null;
27
+ is_apm?: boolean;
26
28
  decline?: {
27
29
  error_type?: string;
28
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../../src/types/transaction.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,M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CACxB;AAED,UAAU,yBAAyB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;CACjB"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ICardFormEvents, ICardFormStyles, IFormLabels, IFormPlaceholder } from '../../../types';
2
+ import { type ICardFormEvents, type ICardFormStyles, type IFormLabels, type IFormPlaceholder } from '../../../types';
3
3
  interface NewCardFormProps {
4
4
  showSaveOption?: boolean;
5
5
  saveCard: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/CardForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,WAAW,EACX,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAOxB,UAAU,gBAAgB;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA8DlD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/CardForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAOxB,UAAU,gBAAgB;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA8DlD,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { InputProps } from '../../../types';
3
- export declare const CardCVVInput: React.FC<InputProps>;
3
+ export declare const CardCVVInput: React.FC<InputProps & {
4
+ cardId?: string;
5
+ }>;
4
6
  //# sourceMappingURL=CardCVVInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardCVVInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/Input/CardCVVInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAiBjD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA+E7C,CAAC"}
1
+ {"version":3,"file":"CardCVVInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/Input/CardCVVInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAkBjD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAkFnE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CardExpirationDateInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/Input/CardExpirationDateInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA+DlE,CAAC"}
1
+ {"version":3,"file":"CardExpirationDateInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/Input/CardExpirationDateInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAI3D,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAmElE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CardExpirationMonthInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/Input/CardExpirationMonthInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAoBjD,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA+EzD,CAAC"}
1
+ {"version":3,"file":"CardExpirationMonthInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/Input/CardExpirationMonthInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAqBjD,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAgFzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CardExpirationYearInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/Input/CardExpirationYearInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAkBjD,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA+ExD,CAAC"}
1
+ {"version":3,"file":"CardExpirationYearInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/Input/CardExpirationYearInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAmBjD,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAgFxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CardHolderInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/Input/CardHolderInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAmBjD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA8EhD,CAAC"}
1
+ {"version":3,"file":"CardHolderInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/Input/CardHolderInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAoBjD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA+EhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CardNumberInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/Input/CardNumberInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAkBjD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA8EhD,CAAC"}
1
+ {"version":3,"file":"CardNumberInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/Input/CardNumberInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAmBjD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAkFhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/PaymentMethodsList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAK1E,UAAU,uBAAuB;IAC/B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA6CzD,CAAC;AA2CF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/PaymentMethodsList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAK1E,UAAU,uBAAuB;IAC/B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAkDzD,CAAC;AA2CF,eAAe,kBAAkB,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import type { ICard, StylesSavedCardsVariant } from '../../../types';
2
+ import { type ICard, type InputProps, type StylesSavedCardsVariant } from '../../../types';
3
3
  interface SavedCardsListProps {
4
4
  cards: ICard[];
5
5
  selectedMethod: string;
6
+ cvvProps: InputProps;
6
7
  onMethodSelect: (methodId: string) => void;
7
8
  onDeleteCard: (cardId: string) => Promise<void>;
8
9
  deletingCards?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/SavedCardsList/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,KAAK,EAAE,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAIrE,UAAU,mBAAmB;IAC3B,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsFjD,CAAC;AAoCF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/SavedCardsList/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAYjD,OAAO,EACL,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC7B,MAAM,gBAAgB,CAAC;AAKxB,UAAU,mBAAmB;IAC3B,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,UAAU,CAAC;IACrB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAqJD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsCjD,CAAC;AAmDF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/features/TonderEnrollment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,MAAM,WAAW,sBAAsB;CAAG;AAC1C,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAkGtD,CAAC;AAqCF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/features/TonderEnrollment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAUjD,MAAM,WAAW,sBAAsB;CAAG;AAC1C,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAwItD,CAAC;AA2BF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/features/TonderPayment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAexC,MAAM,WAAW,mBAAmB;CAAG;AACvC,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8LhD,CAAC;AAwCF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/features/TonderPayment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAsB3D,MAAM,WAAW,mBAAmB;CAAG;AACvC,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyOhD,CAAC;AA4CF,eAAe,aAAa,CAAC"}
@@ -1,10 +1,3 @@
1
- import React from 'react';
2
- import type { ITonderContext } from '../../../types';
3
- import { SDKType } from '../../../types';
4
- interface SkyflowContainerWrapperProps {
5
- children: React.ReactNode;
6
- contextValue: ITonderContext<SDKType>;
7
- }
8
- declare const SkyflowContainerWrapper: ({ children, contextValue, }: SkyflowContainerWrapperProps) => import("react/jsx-runtime").JSX.Element;
1
+ declare const SkyflowContainerWrapper: () => any;
9
2
  export default SkyflowContainerWrapper;
10
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/SkyflowContainerWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,UAAU,4BAA4B;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACvC;AAED,QAAA,MAAM,uBAAuB,GAAI,6BAG9B,4BAA4B,4CAkB9B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/SkyflowContainerWrapper/index.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,uBAAuB,WAsB5B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ declare const _default: React.NamedExoticComponent<React.PropsWithChildren<{
3
+ threeDSConfig: {
4
+ url?: string;
5
+ onComplete?: () => void;
6
+ returnURL?: string;
7
+ };
8
+ }>>;
9
+ export default _default;
10
+ //# sourceMappingURL=TonderProviderWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TonderProviderWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/TonderProvider/TonderProviderWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;mBAOP;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;QACxB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;;AAoBL,wBAAiD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/TonderProvider/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,gBAAgB,CAAC;AAWlE,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,cAAc,CAAC;CACxB;;AA+FD,wBAA0C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/TonderProvider/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,gBAAgB,CAAC;AASlE,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,cAAc,CAAC;CACxB;;AA0ED,wBAA0C"}
@@ -14,6 +14,7 @@ declare const DEFAULT_PAYMENT_CONTAINER: {
14
14
  borderColor: string;
15
15
  width: "100%";
16
16
  marginBottom: number;
17
+ minHeight: number;
17
18
  };
18
19
  };
19
20
  export { DEFAULT_INPUT_CONTAINER_STYLES, DEFAULT_PAYMENT_CONTAINER };
@@ -1 +1 @@
1
- {"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/styles/payment.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,8BAA8B;;;;;;;;CAQlC,CAAC;AAEH,QAAA,MAAM,yBAAyB;;;;;;;;CAQ7B,CAAC;AACH,OAAO,EAAE,8BAA8B,EAAE,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/styles/payment.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,8BAA8B;;;;;;;;CAQlC,CAAC;AAEH,QAAA,MAAM,yBAAyB;;;;;;;;;CAS7B,CAAC;AACH,OAAO,EAAE,8BAA8B,EAAE,yBAAyB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonder.io/rn-sdk",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Tonder react native sdk",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -111,7 +111,14 @@
111
111
  "commitlint": {
112
112
  "extends": [
113
113
  "@commitlint/config-conventional"
114
- ]
114
+ ],
115
+ "rules": {
116
+ "body-max-line-length": [
117
+ 2,
118
+ "always",
119
+ 500
120
+ ]
121
+ }
115
122
  },
116
123
  "release-it": {
117
124
  "git": {
@@ -192,8 +199,8 @@
192
199
  "version": "0.44.2"
193
200
  },
194
201
  "dependencies": {
195
- "lucide-react-native": "^0.461.0",
196
- "openpay-react-native": "^2.0.10",
197
- "skf-rnad": "^1.7.1"
202
+ "lucide-react-native": "0.461.0",
203
+ "openpay-react-native": "2.0.10",
204
+ "skyflow-react-native": "github:adelmiio/tsk-m1#v1.9.0-tonder.1"
198
205
  }
199
206
  }
@@ -96,13 +96,14 @@ export class ThreeDSHandler implements IThreeDSHandler {
96
96
  returnURL: this.returnURL,
97
97
  onComplete: async () => {
98
98
  const response = await this.verifyTransaction();
99
- const transaction_status = response?.transaction_status || '';
99
+
100
100
  if (
101
101
  response?.decline?.error_type === 'Hard' ||
102
- response?.checkout?.is_route_finished ||
103
- ['Success', 'Authorized'].includes(transaction_status) ||
104
- (['Pending'].includes(transaction_status) &&
105
- !!response?.payment_method?.is_apm)
102
+ !!response?.is_route_finished ||
103
+ !!response?.checkout?.is_route_finished ||
104
+ ['Pending', 'Success', 'Authorized'].includes(
105
+ response?.transaction_status
106
+ )
106
107
  ) {
107
108
  this.emit3DS('hide3DS', {});
108
109
  await this.removeVerifyTransactionUrl();
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import BaseSDK from '../BaseSDK';
3
2
  import type {
4
3
  ICardPaymentFields,
@@ -17,7 +16,11 @@ import Tonder from '../Tonder';
17
16
  import { ThreeDSHandler } from '../3DSHandler';
18
17
  import { SDKType } from '../../types';
19
18
  import TonderError from '../../shared/utils/errors';
20
- import { ErrorKeyEnum, MESSAGES_ES, TONDER_URL_BY_MODE } from '../../shared';
19
+ import {
20
+ ErrorKeyEnum,
21
+ getPayFlowLoadingUrlByMode,
22
+ MESSAGES_ES,
23
+ } from '../../shared';
21
24
  import { executeCallback, getAppInfo } from '../../shared/utils/common';
22
25
  import { getPaymentMethodDetails } from '../../shared/catalog/paymentMethodsCatalog';
23
26
  import { defaultTo, get } from '../../shared/utils/stringUtils';
@@ -28,10 +31,9 @@ class BaseCheckout extends BaseSDK {
28
31
  constructor(
29
32
  tonderClient: Tonder,
30
33
  getState: () => Readonly<any>,
31
- setState: (newState: Partial<any>) => void,
32
- setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>
34
+ setState: (newState: Partial<any>) => void
33
35
  ) {
34
- super(tonderClient, getState, setState, setSkyflowConfig);
36
+ super(tonderClient, getState, setState);
35
37
  this.#process3ds = new ThreeDSHandler(
36
38
  this.tonderClient.getConfig(),
37
39
  this.tonderClient.getService(),
@@ -48,7 +50,7 @@ class BaseCheckout extends BaseSDK {
48
50
  returnURL:
49
51
  data.returnURL && data.returnURL !== ''
50
52
  ? data.returnURL
51
- : TONDER_URL_BY_MODE[this.tonderClient.getConfig().mode],
53
+ : getPayFlowLoadingUrlByMode(this.tonderClient.getConfig().mode),
52
54
  });
53
55
 
54
56
  await this.getInitialData();
@@ -139,8 +141,9 @@ class BaseCheckout extends BaseSDK {
139
141
  card_tokens = cardFields?.records[0]?.fields;
140
142
  }
141
143
  if (card_data !== '') {
144
+ const cardFields = await this.getState().skyflowContainer.collect();
142
145
  card_tokens = {
143
- skyflow_id: card_data,
146
+ skyflow_id: cardFields?.records[0]?.fields.skyflow_id,
144
147
  };
145
148
  }
146
149
  return {
@@ -8,7 +8,6 @@ import type {
8
8
  import { SDKType } from '../../types';
9
9
  import BaseSDK from '../../core/BaseSDK';
10
10
  import type Tonder from '../../core/Tonder';
11
- import React from 'react';
12
11
 
13
12
  class BaseEnrollment extends BaseSDK {
14
13
  #defaultCustomization: IEnrollmentCustomizationOptions = {
@@ -21,10 +20,9 @@ class BaseEnrollment extends BaseSDK {
21
20
  constructor(
22
21
  tonderClient: Tonder,
23
22
  getState: () => Readonly<any>,
24
- setState: (newState: Partial<any>) => void,
25
- setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>
23
+ setState: (newState: Partial<any>) => void
26
24
  ) {
27
- super(tonderClient, getState, setState, setSkyflowConfig);
25
+ super(tonderClient, getState, setState);
28
26
  }
29
27
 
30
28
  public create = async (
@@ -6,22 +6,18 @@ import type {
6
6
  } from '../../types';
7
7
  import TonderError from '../../shared/utils/errors';
8
8
  import { ErrorKeyEnum } from '../../shared';
9
- import React from 'react';
10
9
 
11
10
  class BaseSDK {
12
11
  tonderClient: Tonder;
13
12
  getState: () => Readonly<any>;
14
13
  setState: (newState: Partial<any>) => void;
15
- private readonly setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>;
16
14
 
17
15
  constructor(
18
16
  tonderClient: Tonder,
19
17
  getState: () => Readonly<any>,
20
- setState: (newState: Partial<any>) => void,
21
- setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>
18
+ setState: (newState: Partial<any>) => void
22
19
  ) {
23
20
  this.tonderClient = tonderClient;
24
- this.setSkyflowConfig = setSkyflowConfig;
25
21
  this.getState = getState;
26
22
  this.setState = setState;
27
23
  }
@@ -102,8 +98,6 @@ class BaseSDK {
102
98
  this.tonderClient.getConfig().mode
103
99
  );
104
100
 
105
- this.setSkyflowConfig(skyflowConfig);
106
-
107
101
  await this.setState({ skyflowConfig });
108
102
  }
109
103
  }
@@ -1,32 +1,29 @@
1
1
  import type {
2
2
  IBaseResponse,
3
3
  ICardsSummaryResponse,
4
+ ICustomerCardsResponse,
4
5
  IEnrollment,
5
6
  ISaveCardResponse,
6
7
  SDKOptions,
7
8
  } from '../../types';
8
9
  import TonderError from '../../shared/utils/errors';
9
10
  import { ErrorKeyEnum, MESSAGES_ES } from '../../shared';
10
- import React from 'react';
11
11
  import { executeCallback } from '../../shared/utils/common';
12
12
  import BaseEnrollment from '../../core/BaseEnrollment';
13
13
  import { SDKType } from '../../types';
14
14
  import Tonder from '../../core/Tonder';
15
+ import { getCardType } from '../../shared/catalog/cardBrandCatalog';
15
16
 
16
17
  export class EnrollmentContainer implements IEnrollment {
17
18
  #tonderClient: Tonder;
18
19
  #baseSDK: BaseEnrollment;
19
20
 
20
- constructor(
21
- tonderClient: Tonder,
22
- setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>
23
- ) {
21
+ constructor(tonderClient: Tonder) {
24
22
  this.#tonderClient = tonderClient;
25
23
  this.#baseSDK = new BaseEnrollment(
26
24
  tonderClient,
27
25
  tonderClient.getState,
28
- tonderClient.setState,
29
- setSkyflowConfig
26
+ tonderClient.setState
30
27
  );
31
28
  }
32
29
 
@@ -116,4 +113,31 @@ export class EnrollmentContainer implements IEnrollment {
116
113
  return { error: error as TonderError };
117
114
  }
118
115
  };
116
+
117
+ public getCustomerCards = async (): Promise<
118
+ IBaseResponse<ICustomerCardsResponse>
119
+ > => {
120
+ try {
121
+ const merchantId = this.#tonderClient.getBusinessPK();
122
+ const secureToken: string = this.#tonderClient.getSecureToken();
123
+ const customer_auth_token: string | undefined =
124
+ this.#tonderClient.getCustomerAuthToken();
125
+
126
+ const response = await this.#tonderClient
127
+ .getService()
128
+ .card.fetchCustomerCards(customer_auth_token, secureToken, merchantId);
129
+
130
+ return {
131
+ response: {
132
+ ...response,
133
+ cards: response.cards.map((ic) => ({
134
+ ...ic,
135
+ icon: getCardType(ic.fields.card_scheme),
136
+ })),
137
+ },
138
+ };
139
+ } catch (error) {
140
+ return { error: error as TonderError };
141
+ }
142
+ };
119
143
  }
@@ -1,7 +1,6 @@
1
1
  import type Tonder from '../../core/Tonder';
2
2
  import TonderError from '../../shared/utils/errors';
3
3
  import { ErrorKeyEnum } from '../../shared';
4
- import React from 'react';
5
4
  import type {
6
5
  IBaseProcessPaymentRequest,
7
6
  IBaseResponse,
@@ -38,16 +37,12 @@ class PaymentInlineContainer implements IPaymentInlineContainer {
38
37
  showMessages: true,
39
38
  };
40
39
 
41
- constructor(
42
- tonderClient: Tonder,
43
- setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>
44
- ) {
40
+ constructor(tonderClient: Tonder) {
45
41
  this.#tonderClient = tonderClient;
46
42
  this.#baseSDK = new BaseCheckout(
47
43
  tonderClient,
48
44
  tonderClient.getState,
49
- tonderClient.setState,
50
- setSkyflowConfig
45
+ tonderClient.setState
51
46
  );
52
47
  }
53
48
 
@@ -1,7 +1,6 @@
1
1
  import type Tonder from '../../core/Tonder';
2
2
  import TonderError from '../../shared/utils/errors';
3
3
  import { ErrorKeyEnum } from '../../shared';
4
- import React from 'react';
5
4
  import type {
6
5
  IBaseResponse,
7
6
  ICardsSummaryResponse,
@@ -29,16 +28,12 @@ class PaymentLiteContainer implements IPaymentLiteContainer {
29
28
  },
30
29
  };
31
30
 
32
- constructor(
33
- tonderClient: Tonder,
34
- setSkyflowConfig: React.Dispatch<React.SetStateAction<any>>
35
- ) {
31
+ constructor(tonderClient: Tonder) {
36
32
  this.#tonderClient = tonderClient;
37
33
  this.#baseSDK = new BaseCheckout(
38
34
  tonderClient,
39
35
  tonderClient.getState,
40
- tonderClient.setState,
41
- setSkyflowConfig
36
+ tonderClient.setState
42
37
  );
43
38
  }
44
39
 
@@ -37,11 +37,16 @@ export class HttpClient {
37
37
  ...options.headers,
38
38
  } as HeadersInit);
39
39
 
40
- const response = await fetch(`${this.baseUrl}${endpoint}`, {
41
- ...options,
42
- headers: headers,
43
- signal: options.signal || this.abortController.signal,
44
- } as RequestInit);
40
+ const response = await fetch(
41
+ endpoint.startsWith('https://')
42
+ ? `${endpoint}`
43
+ : `${this.baseUrl}${endpoint}`,
44
+ {
45
+ ...options,
46
+ headers: headers,
47
+ signal: options.signal || this.abortController.signal,
48
+ } as RequestInit
49
+ );
45
50
  if (!response.ok) {
46
51
  throw await this.handleRequestError(response);
47
52
  }
@@ -1,8 +1,8 @@
1
1
  import TonderError from '../shared/utils/errors';
2
2
  import { HttpClient } from '../infrastructure';
3
3
  import { ErrorKeyEnum } from '../shared';
4
- import type { IConfig } from 'skf-rnad';
5
- import { Env, LogLevel } from 'skf-rnad';
4
+ import type { IConfig } from 'skyflow-react-native';
5
+ import { Env, LogLevel } from 'skyflow-react-native';
6
6
  import { Environment } from '@tonder.io/rn-sdk';
7
7
 
8
8
  export class SkyflowService {
@@ -16,6 +16,14 @@ const PAYMENT_METHODS_CATALOG: {
16
16
  label: 'CoDi',
17
17
  icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/codi.png',
18
18
  },
19
+ [PAYMENT_METHODS.MERCADOPAGO]: {
20
+ label: 'Mercado Pago',
21
+ icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/mercadopago.png',
22
+ },
23
+ [PAYMENT_METHODS.OXXOPAY]: {
24
+ label: 'Oxxo Pay',
25
+ icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/oxxopay.png',
26
+ },
19
27
  [PAYMENT_METHODS.SPEI]: {
20
28
  label: 'SPEI',
21
29
  icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/spei.png',
@@ -236,6 +244,14 @@ const PAYMENT_METHODS_CATALOG: {
236
244
  label: 'Acyvalores',
237
245
  icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
238
246
  },
247
+ [PAYMENT_METHODS.SAFETYPAYCASH]: {
248
+ label: 'Paga en Efectivo',
249
+ icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/cash_apm_sp.png',
250
+ },
251
+ [PAYMENT_METHODS.SAFETYPAYTRANSFER]: {
252
+ label: 'Paga por Transferencia',
253
+ icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/transfer_apm_sp.png',
254
+ },
239
255
  };
240
256
 
241
257
  type PaymentMethodKey = keyof typeof PAYMENT_METHODS_CATALOG;
@@ -5,4 +5,13 @@ const TONDER_URL_BY_MODE = Object.freeze({
5
5
  development: 'http://192.168.68.102:8000',
6
6
  });
7
7
 
8
- export { TONDER_URL_BY_MODE };
8
+ const getPayFlowLoadingUrlByMode = (mode: string) => {
9
+ if (mode === 'production') {
10
+ return 'https://payflow.tonder.io/loading';
11
+ } else if (mode === 'stage') {
12
+ return 'https://stage-payflow.tonder.io/loading';
13
+ }
14
+ return 'https://dev-payflow.tonder.io/loading';
15
+ };
16
+
17
+ export { TONDER_URL_BY_MODE, getPayFlowLoadingUrlByMode };