framepayments 2.1.7 → 2.2.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 (337) hide show
  1. package/dist/index.cjs +1178 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +2050 -0
  4. package/dist/index.d.cts.map +1 -0
  5. package/dist/index.d.mts +2050 -0
  6. package/dist/index.d.mts.map +1 -0
  7. package/dist/index.mjs +1154 -0
  8. package/dist/index.mjs.map +1 -0
  9. package/package.json +16 -4
  10. package/dist/api/accounts-api.d.ts +0 -22
  11. package/dist/api/accounts-api.d.ts.map +0 -1
  12. package/dist/api/accounts-api.js +0 -64
  13. package/dist/api/accounts-api.js.map +0 -1
  14. package/dist/api/billing-api.d.ts +0 -20
  15. package/dist/api/billing-api.d.ts.map +0 -1
  16. package/dist/api/billing-api.js +0 -58
  17. package/dist/api/billing-api.js.map +0 -1
  18. package/dist/api/capabilities-api.d.ts +0 -11
  19. package/dist/api/capabilities-api.d.ts.map +0 -1
  20. package/dist/api/capabilities-api.js +0 -22
  21. package/dist/api/capabilities-api.js.map +0 -1
  22. package/dist/api/charge_intents-api.d.ts +0 -17
  23. package/dist/api/charge_intents-api.d.ts.map +0 -1
  24. package/dist/api/charge_intents-api.js +0 -48
  25. package/dist/api/charge_intents-api.js.map +0 -1
  26. package/dist/api/charge_sessions-api.d.ts +0 -9
  27. package/dist/api/charge_sessions-api.d.ts.map +0 -1
  28. package/dist/api/charge_sessions-api.js +0 -14
  29. package/dist/api/charge_sessions-api.js.map +0 -1
  30. package/dist/api/charges-api.d.ts +0 -9
  31. package/dist/api/charges-api.d.ts.map +0 -1
  32. package/dist/api/charges-api.js +0 -14
  33. package/dist/api/charges-api.js.map +0 -1
  34. package/dist/api/configuration-api.d.ts +0 -10
  35. package/dist/api/configuration-api.d.ts.map +0 -1
  36. package/dist/api/configuration-api.js +0 -15
  37. package/dist/api/configuration-api.js.map +0 -1
  38. package/dist/api/coupons-api.d.ts +0 -12
  39. package/dist/api/coupons-api.d.ts.map +0 -1
  40. package/dist/api/coupons-api.js +0 -29
  41. package/dist/api/coupons-api.js.map +0 -1
  42. package/dist/api/customer_identity-api.d.ts +0 -14
  43. package/dist/api/customer_identity-api.d.ts.map +0 -1
  44. package/dist/api/customer_identity-api.js +0 -86
  45. package/dist/api/customer_identity-api.js.map +0 -1
  46. package/dist/api/customers-api.d.ts +0 -18
  47. package/dist/api/customers-api.d.ts.map +0 -1
  48. package/dist/api/customers-api.js +0 -61
  49. package/dist/api/customers-api.js.map +0 -1
  50. package/dist/api/device_attestation-api.d.ts +0 -10
  51. package/dist/api/device_attestation-api.d.ts.map +0 -1
  52. package/dist/api/device_attestation-api.js +0 -15
  53. package/dist/api/device_attestation-api.js.map +0 -1
  54. package/dist/api/discounts-api.d.ts +0 -11
  55. package/dist/api/discounts-api.d.ts.map +0 -1
  56. package/dist/api/discounts-api.js +0 -25
  57. package/dist/api/discounts-api.js.map +0 -1
  58. package/dist/api/disputes-api.d.ts +0 -11
  59. package/dist/api/disputes-api.d.ts.map +0 -1
  60. package/dist/api/disputes-api.js +0 -22
  61. package/dist/api/disputes-api.js.map +0 -1
  62. package/dist/api/geo_compliance-api.d.ts +0 -9
  63. package/dist/api/geo_compliance-api.d.ts.map +0 -1
  64. package/dist/api/geo_compliance-api.js +0 -11
  65. package/dist/api/geo_compliance-api.js.map +0 -1
  66. package/dist/api/geofences-api.d.ts +0 -12
  67. package/dist/api/geofences-api.d.ts.map +0 -1
  68. package/dist/api/geofences-api.js +0 -17
  69. package/dist/api/geofences-api.js.map +0 -1
  70. package/dist/api/invoice_line_item-api.d.ts +0 -13
  71. package/dist/api/invoice_line_item-api.d.ts.map +0 -1
  72. package/dist/api/invoice_line_item-api.js +0 -26
  73. package/dist/api/invoice_line_item-api.js.map +0 -1
  74. package/dist/api/invoices-api.d.ts +0 -13
  75. package/dist/api/invoices-api.d.ts.map +0 -1
  76. package/dist/api/invoices-api.js +0 -32
  77. package/dist/api/invoices-api.js.map +0 -1
  78. package/dist/api/onboarding-api.d.ts +0 -12
  79. package/dist/api/onboarding-api.d.ts.map +0 -1
  80. package/dist/api/onboarding-api.js +0 -26
  81. package/dist/api/onboarding-api.js.map +0 -1
  82. package/dist/api/onboarding_sessions-api.d.ts +0 -9
  83. package/dist/api/onboarding_sessions-api.d.ts.map +0 -1
  84. package/dist/api/onboarding_sessions-api.js +0 -16
  85. package/dist/api/onboarding_sessions-api.js.map +0 -1
  86. package/dist/api/payment_link_sessions-api.d.ts +0 -8
  87. package/dist/api/payment_link_sessions-api.d.ts.map +0 -1
  88. package/dist/api/payment_link_sessions-api.js +0 -10
  89. package/dist/api/payment_link_sessions-api.js.map +0 -1
  90. package/dist/api/payment_methods-api.d.ts +0 -23
  91. package/dist/api/payment_methods-api.d.ts.map +0 -1
  92. package/dist/api/payment_methods-api.js +0 -73
  93. package/dist/api/payment_methods-api.js.map +0 -1
  94. package/dist/api/payouts-api.d.ts +0 -8
  95. package/dist/api/payouts-api.d.ts.map +0 -1
  96. package/dist/api/payouts-api.js +0 -10
  97. package/dist/api/payouts-api.js.map +0 -1
  98. package/dist/api/phone_verifications-api.d.ts +0 -10
  99. package/dist/api/phone_verifications-api.d.ts.map +0 -1
  100. package/dist/api/phone_verifications-api.js +0 -15
  101. package/dist/api/phone_verifications-api.js.map +0 -1
  102. package/dist/api/product_phases-api.d.ts +0 -17
  103. package/dist/api/product_phases-api.d.ts.map +0 -1
  104. package/dist/api/product_phases-api.js +0 -37
  105. package/dist/api/product_phases-api.js.map +0 -1
  106. package/dist/api/products-api.d.ts +0 -14
  107. package/dist/api/products-api.d.ts.map +0 -1
  108. package/dist/api/products-api.js +0 -39
  109. package/dist/api/products-api.js.map +0 -1
  110. package/dist/api/promotion_codes-api.d.ts +0 -12
  111. package/dist/api/promotion_codes-api.d.ts.map +0 -1
  112. package/dist/api/promotion_codes-api.js +0 -29
  113. package/dist/api/promotion_codes-api.js.map +0 -1
  114. package/dist/api/refunds-api.d.ts +0 -11
  115. package/dist/api/refunds-api.d.ts.map +0 -1
  116. package/dist/api/refunds-api.js +0 -27
  117. package/dist/api/refunds-api.js.map +0 -1
  118. package/dist/api/sonar_sessions-api.d.ts +0 -9
  119. package/dist/api/sonar_sessions-api.d.ts.map +0 -1
  120. package/dist/api/sonar_sessions-api.js +0 -14
  121. package/dist/api/sonar_sessions-api.js.map +0 -1
  122. package/dist/api/subscription_change_logs-api.d.ts +0 -9
  123. package/dist/api/subscription_change_logs-api.d.ts.map +0 -1
  124. package/dist/api/subscription_change_logs-api.js +0 -17
  125. package/dist/api/subscription_change_logs-api.js.map +0 -1
  126. package/dist/api/subscription_phases-api.d.ts +0 -21
  127. package/dist/api/subscription_phases-api.d.ts.map +0 -1
  128. package/dist/api/subscription_phases-api.js +0 -39
  129. package/dist/api/subscription_phases-api.js.map +0 -1
  130. package/dist/api/subscriptions-api.d.ts +0 -14
  131. package/dist/api/subscriptions-api.d.ts.map +0 -1
  132. package/dist/api/subscriptions-api.js +0 -39
  133. package/dist/api/subscriptions-api.js.map +0 -1
  134. package/dist/api/terms_of_service-api.d.ts +0 -9
  135. package/dist/api/terms_of_service-api.d.ts.map +0 -1
  136. package/dist/api/terms_of_service-api.js +0 -14
  137. package/dist/api/terms_of_service-api.js.map +0 -1
  138. package/dist/api/three_ds-api.d.ts +0 -10
  139. package/dist/api/three_ds-api.d.ts.map +0 -1
  140. package/dist/api/three_ds-api.js +0 -18
  141. package/dist/api/three_ds-api.js.map +0 -1
  142. package/dist/api/transfer_billing_agreements-api.d.ts +0 -12
  143. package/dist/api/transfer_billing_agreements-api.d.ts.map +0 -1
  144. package/dist/api/transfer_billing_agreements-api.js +0 -29
  145. package/dist/api/transfer_billing_agreements-api.js.map +0 -1
  146. package/dist/api/transfer_fee_plans-api.d.ts +0 -11
  147. package/dist/api/transfer_fee_plans-api.d.ts.map +0 -1
  148. package/dist/api/transfer_fee_plans-api.js +0 -25
  149. package/dist/api/transfer_fee_plans-api.js.map +0 -1
  150. package/dist/api/transfers-api.d.ts +0 -12
  151. package/dist/api/transfers-api.d.ts.map +0 -1
  152. package/dist/api/transfers-api.js +0 -26
  153. package/dist/api/transfers-api.js.map +0 -1
  154. package/dist/api/wallet-api.d.ts +0 -9
  155. package/dist/api/wallet-api.d.ts.map +0 -1
  156. package/dist/api/wallet-api.js +0 -11
  157. package/dist/api/wallet-api.js.map +0 -1
  158. package/dist/api/webhook_endpoints-api.d.ts +0 -9
  159. package/dist/api/webhook_endpoints-api.d.ts.map +0 -1
  160. package/dist/api/webhook_endpoints-api.js +0 -17
  161. package/dist/api/webhook_endpoints-api.js.map +0 -1
  162. package/dist/client.d.ts +0 -14
  163. package/dist/client.d.ts.map +0 -1
  164. package/dist/client.js +0 -111
  165. package/dist/client.js.map +0 -1
  166. package/dist/errors/frame_api_error.d.ts +0 -7
  167. package/dist/errors/frame_api_error.d.ts.map +0 -1
  168. package/dist/errors/frame_api_error.js +0 -10
  169. package/dist/errors/frame_api_error.js.map +0 -1
  170. package/dist/index.d.ts +0 -91
  171. package/dist/index.d.ts.map +0 -1
  172. package/dist/index.js +0 -86
  173. package/dist/index.js.map +0 -1
  174. package/dist/types/accounts.d.ts +0 -105
  175. package/dist/types/accounts.d.ts.map +0 -1
  176. package/dist/types/accounts.js +0 -2
  177. package/dist/types/accounts.js.map +0 -1
  178. package/dist/types/billing.d.ts +0 -84
  179. package/dist/types/billing.d.ts.map +0 -1
  180. package/dist/types/billing.js +0 -2
  181. package/dist/types/billing.js.map +0 -1
  182. package/dist/types/capabilities.d.ts +0 -21
  183. package/dist/types/capabilities.d.ts.map +0 -1
  184. package/dist/types/capabilities.js +0 -2
  185. package/dist/types/capabilities.js.map +0 -1
  186. package/dist/types/charge_intents.d.ts +0 -133
  187. package/dist/types/charge_intents.d.ts.map +0 -1
  188. package/dist/types/charge_intents.js +0 -28
  189. package/dist/types/charge_intents.js.map +0 -1
  190. package/dist/types/charge_sessions.d.ts +0 -18
  191. package/dist/types/charge_sessions.d.ts.map +0 -1
  192. package/dist/types/charge_sessions.js +0 -2
  193. package/dist/types/charge_sessions.js.map +0 -1
  194. package/dist/types/charges.d.ts +0 -29
  195. package/dist/types/charges.d.ts.map +0 -1
  196. package/dist/types/charges.js +0 -2
  197. package/dist/types/charges.js.map +0 -1
  198. package/dist/types/configuration.d.ts +0 -9
  199. package/dist/types/configuration.d.ts.map +0 -1
  200. package/dist/types/configuration.js +0 -2
  201. package/dist/types/configuration.js.map +0 -1
  202. package/dist/types/coupons.d.ts +0 -33
  203. package/dist/types/coupons.d.ts.map +0 -1
  204. package/dist/types/coupons.js +0 -2
  205. package/dist/types/coupons.js.map +0 -1
  206. package/dist/types/customer_identity.d.ts +0 -49
  207. package/dist/types/customer_identity.d.ts.map +0 -1
  208. package/dist/types/customer_identity.js +0 -8
  209. package/dist/types/customer_identity.js.map +0 -1
  210. package/dist/types/customers.d.ts +0 -76
  211. package/dist/types/customers.d.ts.map +0 -1
  212. package/dist/types/customers.js +0 -6
  213. package/dist/types/customers.js.map +0 -1
  214. package/dist/types/device_attestation.d.ts +0 -13
  215. package/dist/types/device_attestation.d.ts.map +0 -1
  216. package/dist/types/device_attestation.js +0 -2
  217. package/dist/types/device_attestation.js.map +0 -1
  218. package/dist/types/discounts.d.ts +0 -22
  219. package/dist/types/discounts.d.ts.map +0 -1
  220. package/dist/types/discounts.js +0 -2
  221. package/dist/types/discounts.js.map +0 -1
  222. package/dist/types/disputes.d.ts +0 -67
  223. package/dist/types/disputes.d.ts.map +0 -1
  224. package/dist/types/disputes.js +0 -11
  225. package/dist/types/disputes.js.map +0 -1
  226. package/dist/types/events.d.ts +0 -129
  227. package/dist/types/events.d.ts.map +0 -1
  228. package/dist/types/events.js +0 -50
  229. package/dist/types/events.js.map +0 -1
  230. package/dist/types/geo_compliance.d.ts +0 -8
  231. package/dist/types/geo_compliance.d.ts.map +0 -1
  232. package/dist/types/geo_compliance.js +0 -2
  233. package/dist/types/geo_compliance.js.map +0 -1
  234. package/dist/types/geofences.d.ts +0 -16
  235. package/dist/types/geofences.d.ts.map +0 -1
  236. package/dist/types/geofences.js +0 -2
  237. package/dist/types/geofences.js.map +0 -1
  238. package/dist/types/invoice_line_items.d.ts +0 -22
  239. package/dist/types/invoice_line_items.d.ts.map +0 -1
  240. package/dist/types/invoice_line_items.js +0 -2
  241. package/dist/types/invoice_line_items.js.map +0 -1
  242. package/dist/types/invoices.d.ts +0 -80
  243. package/dist/types/invoices.d.ts.map +0 -1
  244. package/dist/types/invoices.js +0 -16
  245. package/dist/types/invoices.js.map +0 -1
  246. package/dist/types/onboarding.d.ts +0 -43
  247. package/dist/types/onboarding.d.ts.map +0 -1
  248. package/dist/types/onboarding.js +0 -2
  249. package/dist/types/onboarding.js.map +0 -1
  250. package/dist/types/onboarding_sessions.d.ts +0 -17
  251. package/dist/types/onboarding_sessions.d.ts.map +0 -1
  252. package/dist/types/onboarding_sessions.js +0 -2
  253. package/dist/types/onboarding_sessions.js.map +0 -1
  254. package/dist/types/payment_link_sessions.d.ts +0 -17
  255. package/dist/types/payment_link_sessions.d.ts.map +0 -1
  256. package/dist/types/payment_link_sessions.js +0 -2
  257. package/dist/types/payment_link_sessions.js.map +0 -1
  258. package/dist/types/payment_links.d.ts +0 -16
  259. package/dist/types/payment_links.d.ts.map +0 -1
  260. package/dist/types/payment_links.js +0 -6
  261. package/dist/types/payment_links.js.map +0 -1
  262. package/dist/types/payment_methods.d.ts +0 -158
  263. package/dist/types/payment_methods.d.ts.map +0 -1
  264. package/dist/types/payment_methods.js +0 -17
  265. package/dist/types/payment_methods.js.map +0 -1
  266. package/dist/types/payouts.d.ts +0 -20
  267. package/dist/types/payouts.d.ts.map +0 -1
  268. package/dist/types/payouts.js +0 -2
  269. package/dist/types/payouts.js.map +0 -1
  270. package/dist/types/phone_verifications.d.ts +0 -19
  271. package/dist/types/phone_verifications.d.ts.map +0 -1
  272. package/dist/types/phone_verifications.js +0 -2
  273. package/dist/types/phone_verifications.js.map +0 -1
  274. package/dist/types/product_phases.d.ts +0 -33
  275. package/dist/types/product_phases.d.ts.map +0 -1
  276. package/dist/types/product_phases.js +0 -2
  277. package/dist/types/product_phases.js.map +0 -1
  278. package/dist/types/products.d.ts +0 -69
  279. package/dist/types/products.d.ts.map +0 -1
  280. package/dist/types/products.js +0 -15
  281. package/dist/types/products.js.map +0 -1
  282. package/dist/types/promotion_codes.d.ts +0 -32
  283. package/dist/types/promotion_codes.d.ts.map +0 -1
  284. package/dist/types/promotion_codes.js +0 -2
  285. package/dist/types/promotion_codes.js.map +0 -1
  286. package/dist/types/refunds.d.ts +0 -44
  287. package/dist/types/refunds.d.ts.map +0 -1
  288. package/dist/types/refunds.js +0 -22
  289. package/dist/types/refunds.js.map +0 -1
  290. package/dist/types/sonar_sessions.d.ts +0 -18
  291. package/dist/types/sonar_sessions.d.ts.map +0 -1
  292. package/dist/types/sonar_sessions.js +0 -2
  293. package/dist/types/sonar_sessions.js.map +0 -1
  294. package/dist/types/subscription_change_logs.d.ts +0 -14
  295. package/dist/types/subscription_change_logs.d.ts.map +0 -1
  296. package/dist/types/subscription_change_logs.js +0 -2
  297. package/dist/types/subscription_change_logs.js.map +0 -1
  298. package/dist/types/subscription_phases.d.ts +0 -55
  299. package/dist/types/subscription_phases.d.ts.map +0 -1
  300. package/dist/types/subscription_phases.js +0 -11
  301. package/dist/types/subscription_phases.js.map +0 -1
  302. package/dist/types/subscriptions.d.ts +0 -81
  303. package/dist/types/subscriptions.d.ts.map +0 -1
  304. package/dist/types/subscriptions.js +0 -10
  305. package/dist/types/subscriptions.js.map +0 -1
  306. package/dist/types/terms_of_service.d.ts +0 -10
  307. package/dist/types/terms_of_service.d.ts.map +0 -1
  308. package/dist/types/terms_of_service.js +0 -2
  309. package/dist/types/terms_of_service.js.map +0 -1
  310. package/dist/types/three_ds.d.ts +0 -17
  311. package/dist/types/three_ds.d.ts.map +0 -1
  312. package/dist/types/three_ds.js +0 -2
  313. package/dist/types/three_ds.js.map +0 -1
  314. package/dist/types/transfer_billing_agreements.d.ts +0 -26
  315. package/dist/types/transfer_billing_agreements.d.ts.map +0 -1
  316. package/dist/types/transfer_billing_agreements.js +0 -2
  317. package/dist/types/transfer_billing_agreements.js.map +0 -1
  318. package/dist/types/transfer_fee_plans.d.ts +0 -25
  319. package/dist/types/transfer_fee_plans.d.ts.map +0 -1
  320. package/dist/types/transfer_fee_plans.js +0 -2
  321. package/dist/types/transfer_fee_plans.js.map +0 -1
  322. package/dist/types/transfers.d.ts +0 -30
  323. package/dist/types/transfers.d.ts.map +0 -1
  324. package/dist/types/transfers.js +0 -2
  325. package/dist/types/transfers.js.map +0 -1
  326. package/dist/types/wallet.d.ts +0 -7
  327. package/dist/types/wallet.d.ts.map +0 -1
  328. package/dist/types/wallet.js +0 -2
  329. package/dist/types/wallet.js.map +0 -1
  330. package/dist/types/webhook_endpoints.d.ts +0 -17
  331. package/dist/types/webhook_endpoints.d.ts.map +0 -1
  332. package/dist/types/webhook_endpoints.js +0 -2
  333. package/dist/types/webhook_endpoints.js.map +0 -1
  334. package/dist/utils/paginator.d.ts +0 -7
  335. package/dist/utils/paginator.d.ts.map +0 -1
  336. package/dist/utils/paginator.js +0 -13
  337. package/dist/utils/paginator.js.map +0 -1
@@ -1,7 +0,0 @@
1
- export declare class FrameAPIError extends Error {
2
- code: string;
3
- status: number;
4
- raw: any;
5
- constructor(message: string, code: string, status: number, raw: any);
6
- }
7
- //# sourceMappingURL=frame_api_error.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"frame_api_error.d.ts","sourceRoot":"","sources":["../../src/errors/frame_api_error.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAc,SAAQ,KAAK;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,GAAG,CAAC;gBAEJ,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG;CAOpE"}
@@ -1,10 +0,0 @@
1
- export class FrameAPIError extends Error {
2
- constructor(message, code, status, raw) {
3
- super(message);
4
- this.name = 'FrameAPIError';
5
- this.code = code;
6
- this.status = status;
7
- this.raw = raw;
8
- }
9
- }
10
- //# sourceMappingURL=frame_api_error.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"frame_api_error.js","sourceRoot":"","sources":["../../src/errors/frame_api_error.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,aAAc,SAAQ,KAAK;IAKtC,YAAY,OAAe,EAAE,IAAY,EAAE,MAAc,EAAE,GAAQ;QACjE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;CACF"}
package/dist/index.d.ts DELETED
@@ -1,91 +0,0 @@
1
- import { type ClientConfig } from './client';
2
- import { AccountsAPI } from './api/accounts-api';
3
- import { CapabilitiesAPI } from './api/capabilities-api';
4
- import { OnboardingSessionsAPI } from './api/onboarding_sessions-api';
5
- import { CustomersAPI } from './api/customers-api';
6
- import { PaymentMethodsAPI } from './api/payment_methods-api';
7
- import { ChargeIntentsAPI } from './api/charge_intents-api';
8
- import { RefundsAPI } from './api/refunds-api';
9
- import { SubscriptionsAPI } from './api/subscriptions-api';
10
- import { CustomerIdentityVerificationsAPI } from './api/customer_identity-api';
11
- import { SubscriptionPhasesAPI } from './api/subscription_phases-api';
12
- import { InvoicesAPI } from './api/invoices-api';
13
- import { InvoiceLineItemsAPI } from './api/invoice_line_item-api';
14
- import { DisputesAPI } from './api/disputes-api';
15
- import { ProductsAPI } from './api/products-api';
16
- import { ChargesAPI } from './api/charges-api';
17
- import { ChargeSessionsAPI } from './api/charge_sessions-api';
18
- import { SonarSessionsAPI } from './api/sonar_sessions-api';
19
- import { PhoneVerificationsAPI } from './api/phone_verifications-api';
20
- import { GeofencesAPI } from './api/geofences-api';
21
- import { WebhookEndpointsAPI } from './api/webhook_endpoints-api';
22
- import { PayoutsAPI } from './api/payouts-api';
23
- import { TransfersAPI } from './api/transfers-api';
24
- import { TransferFeePlansAPI } from './api/transfer_fee_plans-api';
25
- import { TransferBillingAgreementsAPI } from './api/transfer_billing_agreements-api';
26
- import { CouponsAPI } from './api/coupons-api';
27
- import { PromotionCodesAPI } from './api/promotion_codes-api';
28
- import { DiscountsAPI } from './api/discounts-api';
29
- import { PaymentLinkSessionsAPI } from './api/payment_link_sessions-api';
30
- import { SubscriptionChangeLogsAPI } from './api/subscription_change_logs-api';
31
- import { BillingAPI } from './api/billing-api';
32
- import { ThreeDSAPI } from './api/three_ds-api';
33
- import { ProductPhasesAPI } from './api/product_phases-api';
34
- import { TermsOfServiceAPI } from './api/terms_of_service-api';
35
- import { OnboardingAPI } from './api/onboarding-api';
36
- import { ConfigurationAPI } from './api/configuration-api';
37
- import { DeviceAttestationAPI } from './api/device_attestation-api';
38
- import { WalletAPI } from './api/wallet-api';
39
- import { GeoComplianceAPI } from './api/geo_compliance-api';
40
- export { paginate } from './utils/paginator';
41
- export { FrameAPIError } from './errors/frame_api_error';
42
- export { withPublishableKey, maybePublishableKey } from './client';
43
- export type { ClientConfig, RequestOptions } from './client';
44
- export type { EvervaultConfiguration, SiftConfiguration, } from './types/configuration';
45
- export type { ChallengeResponse, AttestRequest, AttestResponse, } from './types/device_attestation';
46
- export type { GooglePayConfiguration } from './types/wallet';
47
- export type { ApplePayPaymentDataHeader, ApplePayPaymentData, ApplePayPaymentMethodInfo, ApplePayToken, ApplePayBillingContact, ApplePayTokenDetails, ApplePayDetails, ApplePayWalletEnvelope, CreateApplePayPaymentMethodParams, GooglePayPaymentMethodData, GooglePayWalletData, GooglePayWalletEnvelope, CreateGooglePayPaymentMethodParams, } from './types/payment_methods';
48
- export type { IdentityDocumentUpload, ReactNativeFileDescriptor, NodeFilePayload, } from './types/customer_identity';
49
- export type { GeoComplianceStatus } from './types/geo_compliance';
50
- export declare class FrameSDK {
51
- accounts: AccountsAPI;
52
- capabilities: CapabilitiesAPI;
53
- onboardingSessions: OnboardingSessionsAPI;
54
- customers: CustomersAPI;
55
- paymentMethods: PaymentMethodsAPI;
56
- chargeIntents: ChargeIntentsAPI;
57
- refunds: RefundsAPI;
58
- subscriptions: SubscriptionsAPI;
59
- customerIdentityVerifications: CustomerIdentityVerificationsAPI;
60
- subscriptionPhases: SubscriptionPhasesAPI;
61
- invoices: InvoicesAPI;
62
- invoiceLineItems: InvoiceLineItemsAPI;
63
- disputes: DisputesAPI;
64
- products: ProductsAPI;
65
- charges: ChargesAPI;
66
- chargeSessions: ChargeSessionsAPI;
67
- sonarSessions: SonarSessionsAPI;
68
- phoneVerifications: PhoneVerificationsAPI;
69
- geofences: GeofencesAPI;
70
- webhookEndpoints: WebhookEndpointsAPI;
71
- payouts: PayoutsAPI;
72
- transfers: TransfersAPI;
73
- transferFeePlans: TransferFeePlansAPI;
74
- transferBillingAgreements: TransferBillingAgreementsAPI;
75
- coupons: CouponsAPI;
76
- promotionCodes: PromotionCodesAPI;
77
- discounts: DiscountsAPI;
78
- paymentLinkSessions: PaymentLinkSessionsAPI;
79
- subscriptionChangeLogs: SubscriptionChangeLogsAPI;
80
- billing: BillingAPI;
81
- threeDS: ThreeDSAPI;
82
- productPhases: ProductPhasesAPI;
83
- termsOfService: TermsOfServiceAPI;
84
- onboarding: OnboardingAPI;
85
- configuration: ConfigurationAPI;
86
- deviceAttestation: DeviceAttestationAPI;
87
- wallet: WalletAPI;
88
- geoCompliance: GeoComplianceAPI;
89
- constructor(config: ClientConfig);
90
- }
91
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,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AAE,yBAAyB,CAAC;IAClD,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC;IACpB,aAAa,EAAE,gBAAgB,CAAC;IAChC,cAAc,EAAE,iBAAiB,CAAC;IAClC,UAAU,EAAE,aAAa,CAAC;IAC1B,aAAa,EAAE,gBAAgB,CAAC;IAChC,iBAAiB,EAAE,oBAAoB,CAAC;IACxC,MAAM,EAAE,SAAS,CAAC;IAClB,aAAa,EAAE,gBAAgB,CAAC;gBAE3B,MAAM,EAAE,YAAY;CAyCjC"}
package/dist/index.js DELETED
@@ -1,86 +0,0 @@
1
- import { createApiClient } from './client';
2
- import { AccountsAPI } from './api/accounts-api';
3
- import { CapabilitiesAPI } from './api/capabilities-api';
4
- import { OnboardingSessionsAPI } from './api/onboarding_sessions-api';
5
- import { CustomersAPI } from './api/customers-api';
6
- import { PaymentMethodsAPI } from './api/payment_methods-api';
7
- import { ChargeIntentsAPI } from './api/charge_intents-api';
8
- import { RefundsAPI } from './api/refunds-api';
9
- import { SubscriptionsAPI } from './api/subscriptions-api';
10
- import { CustomerIdentityVerificationsAPI } from './api/customer_identity-api';
11
- import { SubscriptionPhasesAPI } from './api/subscription_phases-api';
12
- import { InvoicesAPI } from './api/invoices-api';
13
- import { InvoiceLineItemsAPI } from './api/invoice_line_item-api';
14
- import { DisputesAPI } from './api/disputes-api';
15
- import { ProductsAPI } from './api/products-api';
16
- import { ChargesAPI } from './api/charges-api';
17
- import { ChargeSessionsAPI } from './api/charge_sessions-api';
18
- import { SonarSessionsAPI } from './api/sonar_sessions-api';
19
- import { PhoneVerificationsAPI } from './api/phone_verifications-api';
20
- import { GeofencesAPI } from './api/geofences-api';
21
- import { WebhookEndpointsAPI } from './api/webhook_endpoints-api';
22
- import { PayoutsAPI } from './api/payouts-api';
23
- import { TransfersAPI } from './api/transfers-api';
24
- import { TransferFeePlansAPI } from './api/transfer_fee_plans-api';
25
- import { TransferBillingAgreementsAPI } from './api/transfer_billing_agreements-api';
26
- import { CouponsAPI } from './api/coupons-api';
27
- import { PromotionCodesAPI } from './api/promotion_codes-api';
28
- import { DiscountsAPI } from './api/discounts-api';
29
- import { PaymentLinkSessionsAPI } from './api/payment_link_sessions-api';
30
- import { SubscriptionChangeLogsAPI } from './api/subscription_change_logs-api';
31
- import { BillingAPI } from './api/billing-api';
32
- import { ThreeDSAPI } from './api/three_ds-api';
33
- import { ProductPhasesAPI } from './api/product_phases-api';
34
- import { TermsOfServiceAPI } from './api/terms_of_service-api';
35
- import { OnboardingAPI } from './api/onboarding-api';
36
- import { ConfigurationAPI } from './api/configuration-api';
37
- import { DeviceAttestationAPI } from './api/device_attestation-api';
38
- import { WalletAPI } from './api/wallet-api';
39
- import { GeoComplianceAPI } from './api/geo_compliance-api';
40
- export { paginate } from './utils/paginator';
41
- export { FrameAPIError } from './errors/frame_api_error';
42
- export { withPublishableKey, maybePublishableKey } from './client';
43
- export class FrameSDK {
44
- constructor(config) {
45
- const client = createApiClient(config);
46
- this.accounts = new AccountsAPI(client);
47
- this.capabilities = new CapabilitiesAPI(client);
48
- this.onboardingSessions = new OnboardingSessionsAPI(client);
49
- this.customers = new CustomersAPI(client);
50
- this.paymentMethods = new PaymentMethodsAPI(client);
51
- this.chargeIntents = new ChargeIntentsAPI(client);
52
- this.refunds = new RefundsAPI(client);
53
- this.subscriptions = new SubscriptionsAPI(client);
54
- this.customerIdentityVerifications = new CustomerIdentityVerificationsAPI(client);
55
- this.subscriptionPhases = new SubscriptionPhasesAPI(client);
56
- this.invoices = new InvoicesAPI(client);
57
- this.invoiceLineItems = new InvoiceLineItemsAPI(client);
58
- this.disputes = new DisputesAPI(client);
59
- this.products = new ProductsAPI(client);
60
- this.charges = new ChargesAPI(client);
61
- this.chargeSessions = new ChargeSessionsAPI(client);
62
- this.sonarSessions = new SonarSessionsAPI(client);
63
- this.phoneVerifications = new PhoneVerificationsAPI(client);
64
- this.geofences = new GeofencesAPI(client);
65
- this.webhookEndpoints = new WebhookEndpointsAPI(client);
66
- this.payouts = new PayoutsAPI(client);
67
- this.transfers = new TransfersAPI(client);
68
- this.transferFeePlans = new TransferFeePlansAPI(client);
69
- this.transferBillingAgreements = new TransferBillingAgreementsAPI(client);
70
- this.coupons = new CouponsAPI(client);
71
- this.promotionCodes = new PromotionCodesAPI(client);
72
- this.discounts = new DiscountsAPI(client);
73
- this.paymentLinkSessions = new PaymentLinkSessionsAPI(client);
74
- this.subscriptionChangeLogs = new SubscriptionChangeLogsAPI(client);
75
- this.billing = new BillingAPI(client);
76
- this.threeDS = new ThreeDSAPI(client);
77
- this.productPhases = new ProductPhasesAPI(client);
78
- this.termsOfService = new TermsOfServiceAPI(client);
79
- this.onboarding = new OnboardingAPI(client);
80
- this.configuration = new ConfigurationAPI(client);
81
- this.deviceAttestation = new DeviceAttestationAPI(client);
82
- this.wallet = new WalletAPI(client);
83
- this.geoCompliance = new GeoComplianceAPI(client);
84
- }
85
- }
86
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAqB,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,q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C;QAC9D,IAAI,CAAC,sBAAsB,GAAG,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;QACpE,IAAI,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,aAAa,GAAG,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,CAAC,cAAc,GAAG,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,aAAa,GAAG,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,CAAC,iBAAiB,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC;QAC1D,IAAI,CAAC,MAAM,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,aAAa,GAAG,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;CACF"}
@@ -1,105 +0,0 @@
1
- import type { PaginationMeta } from './customers';
2
- export interface Account {
3
- id: string;
4
- object: string;
5
- type: string;
6
- status: string;
7
- external_id?: string | null;
8
- metadata?: Record<string, string>;
9
- profile?: Record<string, unknown> | null;
10
- capabilities?: unknown[];
11
- terms_of_service?: TermsOfService | null;
12
- steps?: Array<{
13
- key: string;
14
- status: string;
15
- label: string;
16
- fields: string[];
17
- currently_due: string[];
18
- }>;
19
- created: number;
20
- updated: number;
21
- livemode: boolean;
22
- }
23
- export interface AccountListResponse {
24
- meta: PaginationMeta;
25
- data: Account[];
26
- }
27
- export interface ListAccountsParams {
28
- page?: number;
29
- per_page?: number;
30
- status?: string;
31
- type?: string;
32
- external_id?: string;
33
- include_disabled?: boolean;
34
- }
35
- export interface TermsOfService {
36
- token?: string;
37
- ip_address?: string;
38
- accepted_at?: string;
39
- }
40
- export interface AccountProfileIndividualName {
41
- first_name: string;
42
- middle_name?: string;
43
- last_name: string;
44
- suffix?: string;
45
- }
46
- export interface AccountProfileAddress {
47
- line1?: string;
48
- line2?: string;
49
- city?: string;
50
- state?: string;
51
- postal_code?: string;
52
- country?: string;
53
- }
54
- export interface AccountProfilePhone {
55
- number?: string;
56
- country_code?: string;
57
- }
58
- export interface AccountProfileIndividual {
59
- name: AccountProfileIndividualName;
60
- email: string;
61
- phone?: AccountProfilePhone;
62
- address?: AccountProfileAddress;
63
- dob?: string;
64
- ssn?: string;
65
- }
66
- export interface AccountProfileBusiness {
67
- legal_business_name: string;
68
- doing_business_as?: string;
69
- business_type: string;
70
- email: string;
71
- website?: string;
72
- description?: string;
73
- phone?: AccountProfilePhone;
74
- address?: AccountProfileAddress;
75
- ein?: string;
76
- mcc?: string;
77
- naics?: string;
78
- }
79
- export interface CreateAccountProfile {
80
- individual?: AccountProfileIndividual;
81
- business?: AccountProfileBusiness;
82
- }
83
- export interface CreateAccountParams {
84
- type: string;
85
- external_id?: string;
86
- terms_of_service?: TermsOfService;
87
- metadata?: Record<string, unknown>;
88
- profile: CreateAccountProfile;
89
- }
90
- export interface UpdateAccountParams {
91
- external_id?: string;
92
- metadata?: Record<string, unknown>;
93
- profile?: Partial<CreateAccountProfile>;
94
- }
95
- export interface SearchAccountsParams {
96
- name?: string;
97
- email?: string;
98
- external_id?: string;
99
- status?: string;
100
- type?: string;
101
- }
102
- export interface PlaidLinkTokenResponse {
103
- link_token: string;
104
- }
105
- //# sourceMappingURL=accounts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/types/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CA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,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,EAAE,oBAAoB,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=accounts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/types/accounts.ts"],"names":[],"mappings":""}
@@ -1,84 +0,0 @@
1
- export interface Metering {
2
- id: string;
3
- object: string;
4
- event_name: string;
5
- customer_id?: string;
6
- value: number;
7
- timestamp?: number;
8
- metadata?: Record<string, unknown>;
9
- created: number;
10
- updated: number;
11
- livemode: boolean;
12
- }
13
- export interface CreateMeteringParams {
14
- event_name: string;
15
- customer_id?: string;
16
- value: number;
17
- timestamp?: number;
18
- metadata?: Record<string, unknown>;
19
- }
20
- export interface UpdateMeteringParams {
21
- value?: number;
22
- metadata?: Record<string, unknown>;
23
- }
24
- export interface MeteringEvent {
25
- id: string;
26
- object: string;
27
- event_name: string;
28
- customer_id?: string;
29
- value: number;
30
- timestamp?: number;
31
- metadata?: Record<string, unknown>;
32
- created: number;
33
- updated: number;
34
- livemode: boolean;
35
- }
36
- export interface CreateMeteringEventParams {
37
- event_name: string;
38
- customer_id?: string;
39
- value: number;
40
- timestamp?: number;
41
- metadata?: Record<string, unknown>;
42
- }
43
- export interface UpdateMeteringEventParams {
44
- value?: number;
45
- metadata?: Record<string, unknown>;
46
- }
47
- export interface BillingInvoice {
48
- id: string;
49
- object: string;
50
- customer_id?: string;
51
- amount: number;
52
- currency: string;
53
- status: string;
54
- created: number;
55
- updated: number;
56
- livemode: boolean;
57
- }
58
- export interface CreateBillingInvoiceParams {
59
- customer_id?: string;
60
- subscription_id?: string;
61
- metadata?: Record<string, unknown>;
62
- }
63
- export interface BillingCredit {
64
- id: string;
65
- object: string;
66
- customer_id?: string;
67
- amount: number;
68
- currency: string;
69
- metadata?: Record<string, unknown>;
70
- created: number;
71
- updated: number;
72
- livemode: boolean;
73
- }
74
- export interface CreateBillingCreditParams {
75
- customer_id?: string;
76
- amount: number;
77
- currency: string;
78
- metadata?: Record<string, unknown>;
79
- }
80
- export interface BillingReport {
81
- data: Record<string, unknown>[];
82
- meta?: Record<string, unknown>;
83
- }
84
- //# sourceMappingURL=billing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../../src/types/billing.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAA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jB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=billing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing.js","sourceRoot":"","sources":["../../src/types/billing.ts"],"names":[],"mappings":""}
@@ -1,21 +0,0 @@
1
- export interface CapabilityRequirement {
2
- id: string;
3
- object: string;
4
- type: string;
5
- status: string;
6
- source?: string;
7
- }
8
- export interface Capability {
9
- id: string;
10
- object: string;
11
- name: string;
12
- status: string;
13
- disabled_reason?: string | null;
14
- requirements?: CapabilityRequirement[];
15
- created_at?: string;
16
- updated_at?: string;
17
- }
18
- export interface RequestCapabilitiesParams {
19
- capabilities: string[];
20
- }
21
- //# sourceMappingURL=capabilities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/types/capabilities.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=capabilities.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/types/capabilities.ts"],"names":[],"mappings":""}
@@ -1,133 +0,0 @@
1
- import type { Address, Customer } from './customers';
2
- import type { PaymentMethod } from './payment_methods';
3
- export declare enum ChargeIntentStatus {
4
- INCOMPLETE = "incomplete",
5
- REQUIRES_CAPTURE = "requires_capture",
6
- REQUIRES_CUSTOMER = "requires_customer",
7
- REQUIRES_PAYMENT_METHOD = "requires_payment_method",
8
- REQUIRES_CONFIRMATION = "requires_confirmation",
9
- REQUIRES_3D_SECURE = "requires_3d_secure",
10
- PENDING = "pending",
11
- CANCELED = "canceled",
12
- REFUNDED = "refunded",
13
- REVERSED = "reversed",
14
- EXPIRED = "expired",
15
- FAILED = "failed",
16
- DISPUTED = "disputed",
17
- SUCCEEDED = "succeeded"
18
- }
19
- export declare enum AuthorizationMode {
20
- AUTOMATIC = "automatic",
21
- MANUAL = "manual"
22
- }
23
- export declare enum ChargeStatus {
24
- SUCCEEDED = "succeeded",
25
- FAILED = "failed"
26
- }
27
- export interface Charge {
28
- id: string;
29
- currency: string;
30
- amount: number;
31
- amount_captured: number;
32
- amount_refunded: number;
33
- captured: boolean;
34
- disputed: boolean;
35
- charge_intent: string;
36
- refunded: boolean;
37
- failure_code?: string | null;
38
- failure_message?: string | null;
39
- description?: string | null;
40
- status: ChargeStatus;
41
- payment_method_details: PaymentMethod;
42
- customer: string;
43
- account?: string | null;
44
- payment_method: string;
45
- acquirer_reference_number?: string | null;
46
- authorization_code?: string | null;
47
- refund_reason?: string | null;
48
- net_amount?: number;
49
- revenue_split?: Record<string, unknown> | null;
50
- created: number;
51
- updated: number;
52
- livemode: boolean;
53
- }
54
- export interface ChargeIntent {
55
- id: string;
56
- currency: string;
57
- amount: number;
58
- status: ChargeIntentStatus;
59
- description?: string | null;
60
- metadata?: Record<string, any>;
61
- latest_charge?: Charge;
62
- customer?: Customer;
63
- payment_method?: PaymentMethod;
64
- subscription?: string;
65
- invoice?: string;
66
- client_secret?: string;
67
- authorization_mode?: string;
68
- failure_description?: string | null;
69
- shipping?: Address;
70
- account?: Record<string, unknown> | null;
71
- amount_captured?: number;
72
- amount_voided?: number;
73
- next_action?: Record<string, unknown> | null;
74
- revenue_split?: Record<string, unknown> | null;
75
- object?: string;
76
- created?: number;
77
- livemode: boolean;
78
- }
79
- export interface PaginationMeta {
80
- page: number;
81
- url: string;
82
- has_more: boolean;
83
- prev: string | null;
84
- next: number | null;
85
- }
86
- export interface ChargeIntentListResponse {
87
- meta: PaginationMeta;
88
- data: ChargeIntent[];
89
- }
90
- export interface UpdateChargeIntentParams {
91
- amount?: number;
92
- customer?: string;
93
- account?: string;
94
- description?: string;
95
- payment_method?: string;
96
- metadata?: Record<string, any>;
97
- }
98
- export interface CaptureChargeIntentParams {
99
- amount_captured_cents: number;
100
- }
101
- export interface CreateChargeIntentParams {
102
- amount: number;
103
- currency: string;
104
- customer?: string;
105
- account?: string;
106
- description?: string;
107
- payment_method?: string;
108
- confirm?: boolean;
109
- receipt_email?: string;
110
- metadata?: Record<string, any>;
111
- authorization_mode?: AuthorizationMode;
112
- customer_data?: CustomerDataParams;
113
- payment_method_data?: PaymentMethodDataParams;
114
- sonar_session_id?: string;
115
- shipping?: Record<string, unknown>;
116
- promotion_codes?: string[];
117
- payment_method_options?: Record<string, unknown>;
118
- revenue_split?: Record<string, unknown>;
119
- }
120
- export interface CustomerDataParams {
121
- name: string;
122
- email: string;
123
- }
124
- export interface PaymentMethodDataParams {
125
- attach: boolean;
126
- billing?: Address;
127
- type: 'card';
128
- card_number: string;
129
- exp_month: string;
130
- exp_year: string;
131
- cvc: string;
132
- }
133
- //# sourceMappingURL=charge_intents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"charge_intents.d.ts","sourceRoot":"","sources":["../../src/types/charge_intents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,oBAAY,kBAAkB;IAC5B,UAAU,eAAe;IACzB,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;IAC/C,kBAAkB,uBAAuB;IACzC,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IAC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AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -1,28 +0,0 @@
1
- export var ChargeIntentStatus;
2
- (function (ChargeIntentStatus) {
3
- ChargeIntentStatus["INCOMPLETE"] = "incomplete";
4
- ChargeIntentStatus["REQUIRES_CAPTURE"] = "requires_capture";
5
- ChargeIntentStatus["REQUIRES_CUSTOMER"] = "requires_customer";
6
- ChargeIntentStatus["REQUIRES_PAYMENT_METHOD"] = "requires_payment_method";
7
- ChargeIntentStatus["REQUIRES_CONFIRMATION"] = "requires_confirmation";
8
- ChargeIntentStatus["REQUIRES_3D_SECURE"] = "requires_3d_secure";
9
- ChargeIntentStatus["PENDING"] = "pending";
10
- ChargeIntentStatus["CANCELED"] = "canceled";
11
- ChargeIntentStatus["REFUNDED"] = "refunded";
12
- ChargeIntentStatus["REVERSED"] = "reversed";
13
- ChargeIntentStatus["EXPIRED"] = "expired";
14
- ChargeIntentStatus["FAILED"] = "failed";
15
- ChargeIntentStatus["DISPUTED"] = "disputed";
16
- ChargeIntentStatus["SUCCEEDED"] = "succeeded";
17
- })(ChargeIntentStatus || (ChargeIntentStatus = {}));
18
- export var AuthorizationMode;
19
- (function (AuthorizationMode) {
20
- AuthorizationMode["AUTOMATIC"] = "automatic";
21
- AuthorizationMode["MANUAL"] = "manual";
22
- })(AuthorizationMode || (AuthorizationMode = {}));
23
- export var ChargeStatus;
24
- (function (ChargeStatus) {
25
- ChargeStatus["SUCCEEDED"] = "succeeded";
26
- ChargeStatus["FAILED"] = "failed";
27
- })(ChargeStatus || (ChargeStatus = {}));
28
- //# sourceMappingURL=charge_intents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"charge_intents.js","sourceRoot":"","sources":["../../src/types/charge_intents.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,kBAeX;AAfD,WAAY,kBAAkB;IAC5B,+CAAyB,CAAA;IACzB,2DAAqC,CAAA;IACrC,6DAAuC,CAAA;IACvC,yEAAmD,CAAA;IACnD,qEAA+C,CAAA;IAC/C,+DAAyC,CAAA;IACzC,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;IACjB,2CAAqB,CAAA;IACrB,6CAAuB,CAAA;AACzB,CAAC,EAfW,kBAAkB,KAAlB,kBAAkB,QAe7B;AAED,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,4CAAuB,CAAA;IACvB,sCAAiB,CAAA;AACnB,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAED,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iCAAiB,CAAA;AACnB,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB"}