@fantastic.dev/better-stripe 0.112.0 → 0.119.1

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 (1145) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/MIGRATION.md +50 -4
  3. package/README.md +69 -2
  4. package/dist/client/billing/renewalAggregate/phases.d.ts.map +1 -1
  5. package/dist/client/billing/renewalAggregate/phases.js +27 -13
  6. package/dist/client/billing/renewalAggregate/phases.js.map +1 -1
  7. package/dist/client/billing/renewalAggregate/preflight.d.ts +1 -0
  8. package/dist/client/billing/renewalAggregate/preflight.d.ts.map +1 -1
  9. package/dist/client/billing/renewalAggregate/readMaterial.d.ts +2 -1
  10. package/dist/client/billing/renewalAggregate/readMaterial.d.ts.map +1 -1
  11. package/dist/client/billing/renewalAggregate/readMaterial.js +28 -5
  12. package/dist/client/billing/renewalAggregate/readMaterial.js.map +1 -1
  13. package/dist/client/billing/renewalAggregate/sourceDiscounts.d.ts +1 -1
  14. package/dist/client/billing/renewalAggregate/sourceDiscounts.d.ts.map +1 -1
  15. package/dist/client/billing/renewalAggregate/sourceDiscounts.js +2 -2
  16. package/dist/client/billing/renewalAggregate/sourceDiscounts.js.map +1 -1
  17. package/dist/client/billing/renewalAttach/attachmentProfile.d.ts +13 -0
  18. package/dist/client/billing/renewalAttach/attachmentProfile.d.ts.map +1 -0
  19. package/dist/client/billing/renewalAttach/attachmentProfile.js +15 -0
  20. package/dist/client/billing/renewalAttach/attachmentProfile.js.map +1 -0
  21. package/dist/client/billing/renewalAttach/internal/c10/eventCapture.js +1 -1
  22. package/dist/client/billing/renewalAttach/internal/c10/eventCapture.js.map +1 -1
  23. package/dist/client/billing/renewalAttach/internal/material/classifiers.d.ts +1 -1
  24. package/dist/client/billing/renewalAttach/internal/material/classifiers.d.ts.map +1 -1
  25. package/dist/client/billing/renewalAttach/internal/material/classifiers.js +11 -10
  26. package/dist/client/billing/renewalAttach/internal/material/classifiers.js.map +1 -1
  27. package/dist/client/billing/renewalAttach/internal/material/readMaterial.d.ts +1 -1
  28. package/dist/client/billing/renewalAttach/internal/material/readMaterial.d.ts.map +1 -1
  29. package/dist/client/billing/renewalAttach/internal/material/readMaterial.js +20 -5
  30. package/dist/client/billing/renewalAttach/internal/material/readMaterial.js.map +1 -1
  31. package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.d.ts.map +1 -1
  32. package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.js +7 -7
  33. package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.js.map +1 -1
  34. package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts.map +1 -1
  35. package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js +5 -3
  36. package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js.map +1 -1
  37. package/dist/client/billing/renewalAttach/internal/preflight/grammar.js +1 -1
  38. package/dist/client/billing/renewalAttach/internal/preflight/grammar.js.map +1 -1
  39. package/dist/client/billing/renewalAttach/internal/producer/attachAcknowledgement.d.ts.map +1 -1
  40. package/dist/client/billing/renewalAttach/internal/producer/attachAcknowledgement.js +4 -4
  41. package/dist/client/billing/renewalAttach/internal/producer/attachAcknowledgement.js.map +1 -1
  42. package/dist/client/billing/renewalAttach/internal/producer/configureWriteFactory.d.ts.map +1 -1
  43. package/dist/client/billing/renewalAttach/internal/producer/configureWriteFactory.js +7 -6
  44. package/dist/client/billing/renewalAttach/internal/producer/configureWriteFactory.js.map +1 -1
  45. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts +3 -0
  46. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts.map +1 -1
  47. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js +16 -1
  48. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js.map +1 -1
  49. package/dist/client/billing/renewalAttach/internal/producer/nodeAttachmentProfile.d.ts +9 -0
  50. package/dist/client/billing/renewalAttach/internal/producer/nodeAttachmentProfile.d.ts.map +1 -0
  51. package/dist/client/billing/renewalAttach/internal/producer/nodeAttachmentProfile.js +83 -0
  52. package/dist/client/billing/renewalAttach/internal/producer/nodeAttachmentProfile.js.map +1 -0
  53. package/dist/client/billing/renewalAttach/liveAttachment.d.ts +12 -0
  54. package/dist/client/billing/renewalAttach/liveAttachment.d.ts.map +1 -0
  55. package/dist/client/billing/renewalAttach/liveAttachment.js +23 -0
  56. package/dist/client/billing/renewalAttach/liveAttachment.js.map +1 -0
  57. package/dist/client/billing/renewalAttach/nodeAttachment.d.ts +4 -0
  58. package/dist/client/billing/renewalAttach/nodeAttachment.d.ts.map +1 -0
  59. package/dist/client/billing/renewalAttach/nodeAttachment.js +154 -0
  60. package/dist/client/billing/renewalAttach/nodeAttachment.js.map +1 -0
  61. package/dist/client/billing/renewalAttach/nodeConfiguration.d.ts +3 -0
  62. package/dist/client/billing/renewalAttach/nodeConfiguration.d.ts.map +1 -0
  63. package/dist/client/billing/renewalAttach/nodeConfiguration.js +126 -0
  64. package/dist/client/billing/renewalAttach/nodeConfiguration.js.map +1 -0
  65. package/dist/client/billing/renewalV2/configureInput.d.ts +1 -0
  66. package/dist/client/billing/renewalV2/configureInput.d.ts.map +1 -1
  67. package/dist/client/billing/renewalV2/configureInput.js +2 -1
  68. package/dist/client/billing/renewalV2/configureInput.js.map +1 -1
  69. package/dist/client/billing/renewalV2/index.d.ts +3 -0
  70. package/dist/client/billing/renewalV2/index.d.ts.map +1 -1
  71. package/dist/client/billing/renewalV2/index.js +1 -1
  72. package/dist/client/billing/renewalV2/index.js.map +1 -1
  73. package/dist/client/billing/renewalV2/observationInput.d.ts +1 -0
  74. package/dist/client/billing/renewalV2/observationInput.d.ts.map +1 -1
  75. package/dist/client/index.d.ts +7 -14
  76. package/dist/client/index.d.ts.map +1 -1
  77. package/dist/client/index.js +10 -2
  78. package/dist/client/index.js.map +1 -1
  79. package/dist/client/node.d.ts +2 -0
  80. package/dist/client/node.d.ts.map +1 -0
  81. package/dist/client/node.js +9 -0
  82. package/dist/client/node.js.map +1 -0
  83. package/dist/client/renewal.d.ts +4 -0
  84. package/dist/client/renewal.d.ts.map +1 -1
  85. package/dist/client/renewal.js +2 -1
  86. package/dist/client/renewal.js.map +1 -1
  87. package/dist/client/renewalAttachmentPreparation.d.ts +23 -0
  88. package/dist/client/renewalAttachmentPreparation.d.ts.map +1 -0
  89. package/dist/client/renewalAttachmentPreparation.js +89 -0
  90. package/dist/client/renewalAttachmentPreparation.js.map +1 -0
  91. package/dist/client/renewalAttachmentRuntime.d.ts +6 -0
  92. package/dist/client/renewalAttachmentRuntime.d.ts.map +1 -0
  93. package/dist/client/renewalAttachmentRuntime.js +13 -0
  94. package/dist/client/renewalAttachmentRuntime.js.map +1 -0
  95. package/dist/client/renewalAttachmentTypes.d.ts +45 -0
  96. package/dist/client/renewalAttachmentTypes.d.ts.map +1 -0
  97. package/dist/client/renewalAttachmentTypes.js +2 -0
  98. package/dist/client/renewalAttachmentTypes.js.map +1 -0
  99. package/dist/client/renewalConfigurationPreparation.d.ts +27 -0
  100. package/dist/client/renewalConfigurationPreparation.d.ts.map +1 -0
  101. package/dist/client/renewalConfigurationPreparation.js +78 -0
  102. package/dist/client/renewalConfigurationPreparation.js.map +1 -0
  103. package/dist/client/renewalConfigurationRuntime.d.ts +6 -0
  104. package/dist/client/renewalConfigurationRuntime.d.ts.map +1 -0
  105. package/dist/client/renewalConfigurationRuntime.js +12 -0
  106. package/dist/client/renewalConfigurationRuntime.js.map +1 -0
  107. package/dist/client/renewalConfigurationTypes.d.ts +19 -0
  108. package/dist/client/renewalConfigurationTypes.d.ts.map +1 -0
  109. package/dist/client/renewalConfigurationTypes.js +2 -0
  110. package/dist/client/renewalConfigurationTypes.js.map +1 -0
  111. package/dist/client/renewalContextClient.d.ts +5 -0
  112. package/dist/client/renewalContextClient.d.ts.map +1 -1
  113. package/dist/client/renewalContextClient.js +9 -0
  114. package/dist/client/renewalContextClient.js.map +1 -1
  115. package/dist/client/types/documents.d.ts +2 -0
  116. package/dist/client/types/documents.d.ts.map +1 -1
  117. package/dist/client/webhooks/helpers.d.ts.map +1 -1
  118. package/dist/client/webhooks/helpers.js +1 -0
  119. package/dist/client/webhooks/helpers.js.map +1 -1
  120. package/dist/client/webhooks/ledger.d.ts +31 -0
  121. package/dist/client/webhooks/ledger.d.ts.map +1 -0
  122. package/dist/client/webhooks/ledger.js +13 -0
  123. package/dist/client/webhooks/ledger.js.map +1 -0
  124. package/dist/client/webhooks/processors.d.ts.map +1 -1
  125. package/dist/client/webhooks/processors.js +6 -3
  126. package/dist/client/webhooks/processors.js.map +1 -1
  127. package/dist/client/webhooks/subscriptionDeleted.d.ts.map +1 -1
  128. package/dist/client/webhooks/subscriptionDeleted.js +3 -2
  129. package/dist/client/webhooks/subscriptionDeleted.js.map +1 -1
  130. package/dist/component/_generated/api.d.ts +2 -0
  131. package/dist/component/_generated/api.d.ts.map +1 -1
  132. package/dist/component/_generated/api.js.map +1 -1
  133. package/dist/component/_generated/component.d.ts +18 -1
  134. package/dist/component/_generated/component.d.ts.map +1 -1
  135. package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
  136. package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
  137. package/dist/component/billing/mutations.d.ts +2 -1
  138. package/dist/component/billing/mutations.d.ts.map +1 -1
  139. package/dist/component/billing/mutations.js +28 -3
  140. package/dist/component/billing/mutations.js.map +1 -1
  141. package/dist/component/billing/queries.d.ts +8 -0
  142. package/dist/component/billing/queries.d.ts.map +1 -1
  143. package/dist/component/billing/schema.d.ts +3 -1
  144. package/dist/component/billing/schema.d.ts.map +1 -1
  145. package/dist/component/billing/validators.d.ts +16 -1
  146. package/dist/component/billing/validators.d.ts.map +1 -1
  147. package/dist/component/billing/validators.js +8 -0
  148. package/dist/component/billing/validators.js.map +1 -1
  149. package/dist/component/billingHistory/queries.d.ts +1 -0
  150. package/dist/component/billingHistory/queries.d.ts.map +1 -1
  151. package/dist/component/core/mutations.d.ts +4 -0
  152. package/dist/component/core/mutations.d.ts.map +1 -1
  153. package/dist/component/core/mutations.js +6 -0
  154. package/dist/component/core/mutations.js.map +1 -1
  155. package/dist/component/core/stripeMode.d.ts +8 -0
  156. package/dist/component/core/stripeMode.d.ts.map +1 -0
  157. package/dist/component/core/stripeMode.js +23 -0
  158. package/dist/component/core/stripeMode.js.map +1 -0
  159. package/dist/component/earnings/triggers.d.ts +6 -4
  160. package/dist/component/earnings/triggers.d.ts.map +1 -1
  161. package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
  162. package/dist/component/payoutRelease/queries.d.ts +2 -2
  163. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  164. package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
  165. package/dist/component/schema.d.ts +4 -2
  166. package/dist/component/webhooks/mutations.d.ts +19 -0
  167. package/dist/component/webhooks/mutations.d.ts.map +1 -1
  168. package/dist/component/webhooks/mutations.js +56 -0
  169. package/dist/component/webhooks/mutations.js.map +1 -1
  170. package/dist/component/webhooks/schema.d.ts +1 -1
  171. package/dist/component/webhooks/schema.d.ts.map +1 -1
  172. package/dist/component/webhooks/schema.js +2 -1
  173. package/dist/component/webhooks/schema.js.map +1 -1
  174. package/docs/README.md +43 -8
  175. package/docs/billing-history.md +1 -1
  176. package/docs/client-api.md +63 -10
  177. package/docs/evidence/native-metering/mixed-settlement-2026-10-20.json +1 -1
  178. package/docs/evidence/native-metering/product-flows-2026-10-19.json +1 -1
  179. package/docs/example-routing.md +93 -0
  180. package/docs/pull-request-standard.md +142 -0
  181. package/docs/react-workflows-audit.md +1 -2
  182. package/docs/read-contracts.md +6 -5
  183. package/docs/releasing.md +27 -2
  184. package/docs/renewal-attachment.md +176 -0
  185. package/docs/renewal-configuration.md +127 -0
  186. package/docs/renewal-context-reads.md +9 -5
  187. package/docs/renewal-example-authorization.md +74 -0
  188. package/docs/settlement.md +2 -1
  189. package/docs/stripe-sandbox-worktrees.md +245 -0
  190. package/docs/webhooks.md +110 -1
  191. package/docs/worktrees.md +134 -0
  192. package/package.json +14 -2
  193. package/src/client/billing/renewalAggregate/phases.ts +31 -13
  194. package/src/client/billing/renewalAggregate/readMaterial.ts +36 -2
  195. package/src/client/billing/renewalAggregate/sourceDiscounts.ts +3 -1
  196. package/src/client/billing/renewalAttach/attachmentProfile.ts +22 -0
  197. package/src/client/billing/renewalAttach/internal/c10/eventCapture.ts +1 -1
  198. package/src/client/billing/renewalAttach/internal/material/classifiers.ts +26 -7
  199. package/src/client/billing/renewalAttach/internal/material/readMaterial.ts +26 -2
  200. package/src/client/billing/renewalAttach/internal/operations/configureReadTransport.ts +10 -9
  201. package/src/client/billing/renewalAttach/internal/operations/initialAttach.ts +5 -3
  202. package/src/client/billing/renewalAttach/internal/preflight/grammar.ts +1 -1
  203. package/src/client/billing/renewalAttach/internal/producer/attachAcknowledgement.ts +4 -6
  204. package/src/client/billing/renewalAttach/internal/producer/configureWriteFactory.ts +10 -8
  205. package/src/client/billing/renewalAttach/internal/producer/invocationProducer.ts +28 -1
  206. package/src/client/billing/renewalAttach/internal/producer/nodeAttachmentProfile.ts +108 -0
  207. package/src/client/billing/renewalAttach/liveAttachment.ts +43 -0
  208. package/src/client/billing/renewalAttach/nodeAttachment.ts +181 -0
  209. package/src/client/billing/renewalAttach/nodeConfiguration.ts +147 -0
  210. package/src/client/billing/renewalV2/configureInput.ts +2 -1
  211. package/src/client/billing/renewalV2/index.ts +7 -1
  212. package/src/client/index.ts +13 -15
  213. package/src/client/node.ts +8 -0
  214. package/src/client/renewal.ts +17 -0
  215. package/src/client/renewalAttachmentPreparation.ts +118 -0
  216. package/src/client/renewalAttachmentRuntime.ts +25 -0
  217. package/src/client/renewalAttachmentTypes.ts +51 -0
  218. package/src/client/renewalConfigurationPreparation.ts +92 -0
  219. package/src/client/renewalConfigurationRuntime.ts +24 -0
  220. package/src/client/renewalConfigurationTypes.ts +30 -0
  221. package/src/client/renewalContextClient.ts +22 -0
  222. package/src/client/types/documents.ts +2 -0
  223. package/src/client/webhooks/helpers.ts +1 -0
  224. package/src/client/webhooks/ledger.ts +48 -0
  225. package/src/client/webhooks/processors.ts +5 -0
  226. package/src/client/webhooks/subscriptionDeleted.ts +3 -2
  227. package/src/component/_generated/api.ts +2 -0
  228. package/src/component/_generated/component.ts +18 -1
  229. package/src/component/billing/mutations.ts +35 -2
  230. package/src/component/billing/validators.ts +12 -0
  231. package/src/component/core/mutations.ts +6 -0
  232. package/src/component/core/stripeMode.ts +30 -0
  233. package/src/component/webhooks/mutations.ts +66 -0
  234. package/src/component/webhooks/schema.ts +2 -1
  235. package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.d.ts +0 -2
  236. package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.d.ts.map +0 -1
  237. package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.js +0 -61
  238. package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.js.map +0 -1
  239. package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.d.ts +0 -2
  240. package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.d.ts.map +0 -1
  241. package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js +0 -18
  242. package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js.map +0 -1
  243. package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.d.ts +0 -2
  244. package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.d.ts.map +0 -1
  245. package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js +0 -67
  246. package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js.map +0 -1
  247. package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.d.ts +0 -2
  248. package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.d.ts.map +0 -1
  249. package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js +0 -372
  250. package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js.map +0 -1
  251. package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.d.ts +0 -2
  252. package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.d.ts.map +0 -1
  253. package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js +0 -126
  254. package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js.map +0 -1
  255. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.d.mts +0 -627
  256. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.d.mts.map +0 -1
  257. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs +0 -488
  258. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs.map +0 -1
  259. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.d.mts +0 -214
  260. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.d.mts.map +0 -1
  261. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs +0 -63
  262. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs.map +0 -1
  263. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.d.mts +0 -75
  264. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.d.mts.map +0 -1
  265. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs +0 -145
  266. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs.map +0 -1
  267. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts +0 -7
  268. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts.map +0 -1
  269. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs +0 -26
  270. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs.map +0 -1
  271. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.d.mts +0 -3
  272. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.d.mts.map +0 -1
  273. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs +0 -4
  274. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs.map +0 -1
  275. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.d.mts +0 -26
  276. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.d.mts.map +0 -1
  277. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs +0 -42
  278. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs.map +0 -1
  279. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.d.mts +0 -7
  280. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.d.mts.map +0 -1
  281. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs +0 -60
  282. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs.map +0 -1
  283. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.d.mts +0 -335
  284. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.d.mts.map +0 -1
  285. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs +0 -122
  286. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs.map +0 -1
  287. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.d.mts +0 -46
  288. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.d.mts.map +0 -1
  289. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs +0 -87
  290. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs.map +0 -1
  291. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.d.mts +0 -35
  292. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.d.mts.map +0 -1
  293. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs +0 -90
  294. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs.map +0 -1
  295. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.d.mts +0 -132
  296. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.d.mts.map +0 -1
  297. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs +0 -82
  298. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs.map +0 -1
  299. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.d.mts +0 -4
  300. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.d.mts.map +0 -1
  301. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs +0 -23
  302. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs.map +0 -1
  303. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.d.mts +0 -16
  304. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.d.mts.map +0 -1
  305. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs +0 -41
  306. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs.map +0 -1
  307. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.d.mts +0 -43
  308. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.d.mts.map +0 -1
  309. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs +0 -132
  310. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs.map +0 -1
  311. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.d.mts +0 -200
  312. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.d.mts.map +0 -1
  313. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs +0 -150
  314. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs.map +0 -1
  315. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.d.mts +0 -124
  316. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.d.mts.map +0 -1
  317. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs +0 -127
  318. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs.map +0 -1
  319. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.d.mts +0 -3
  320. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.d.mts.map +0 -1
  321. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs +0 -69
  322. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs.map +0 -1
  323. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.d.mts +0 -2
  324. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.d.mts.map +0 -1
  325. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs +0 -152
  326. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs.map +0 -1
  327. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.d.mts +0 -2
  328. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.d.mts.map +0 -1
  329. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs +0 -2
  330. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs.map +0 -1
  331. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.d.mts +0 -5
  332. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.d.mts.map +0 -1
  333. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs +0 -243
  334. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs.map +0 -1
  335. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.d.mts +0 -17
  336. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.d.mts.map +0 -1
  337. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs +0 -75
  338. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs.map +0 -1
  339. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.d.mts +0 -2
  340. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.d.mts.map +0 -1
  341. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs +0 -173
  342. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs.map +0 -1
  343. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.d.mts +0 -4
  344. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.d.mts.map +0 -1
  345. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs +0 -4
  346. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs.map +0 -1
  347. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.d.mts +0 -7
  348. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.d.mts.map +0 -1
  349. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs +0 -30
  350. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs.map +0 -1
  351. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.d.mts +0 -29
  352. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.d.mts.map +0 -1
  353. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs +0 -33
  354. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs.map +0 -1
  355. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f19.json +0 -452
  356. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.d.mts +0 -2
  357. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.d.mts.map +0 -1
  358. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs +0 -173
  359. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs.map +0 -1
  360. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.d.mts +0 -2
  361. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.d.mts.map +0 -1
  362. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs +0 -449
  363. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs.map +0 -1
  364. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.d.mts +0 -9
  365. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.d.mts.map +0 -1
  366. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs +0 -27
  367. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs.map +0 -1
  368. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.d.mts +0 -7
  369. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.d.mts.map +0 -1
  370. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs +0 -150
  371. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs.map +0 -1
  372. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.d.mts +0 -3
  373. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.d.mts.map +0 -1
  374. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs +0 -503
  375. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs.map +0 -1
  376. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.d.mts +0 -2
  377. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.d.mts.map +0 -1
  378. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs +0 -91
  379. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs.map +0 -1
  380. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.d.mts +0 -14
  381. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.d.mts.map +0 -1
  382. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs +0 -41
  383. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs.map +0 -1
  384. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.d.mts +0 -103
  385. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.d.mts.map +0 -1
  386. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs +0 -46
  387. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs.map +0 -1
  388. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.d.mts +0 -73
  389. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.d.mts.map +0 -1
  390. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs +0 -294
  391. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs.map +0 -1
  392. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.d.mts +0 -2
  393. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.d.mts.map +0 -1
  394. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs +0 -60
  395. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs.map +0 -1
  396. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.d.mts +0 -58
  397. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.d.mts.map +0 -1
  398. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs +0 -96
  399. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs.map +0 -1
  400. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.d.ts +0 -2
  401. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.d.ts.map +0 -1
  402. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.js +0 -40
  403. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.js.map +0 -1
  404. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +0 -10349
  405. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +0 -1
  406. package/dist/client/connect/payoutAdoptionTestHelpers.js +0 -242
  407. package/dist/client/connect/payoutAdoptionTestHelpers.js.map +0 -1
  408. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +0 -5166
  409. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +0 -1
  410. package/dist/client/connect/payoutExecutionTestHelpers.js +0 -208
  411. package/dist/client/connect/payoutExecutionTestHelpers.js.map +0 -1
  412. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +0 -10341
  413. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +0 -1
  414. package/dist/client/connect/payoutLargeAdoptionTestHelpers.js +0 -55
  415. package/dist/client/connect/payoutLargeAdoptionTestHelpers.js.map +0 -1
  416. package/dist/client/connect/payoutSyncTestHelpers.d.ts +0 -5098
  417. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +0 -1
  418. package/dist/client/connect/payoutSyncTestHelpers.js +0 -62
  419. package/dist/client/connect/payoutSyncTestHelpers.js.map +0 -1
  420. package/dist/client/paymentSource/resolver.fixtures.d.ts +0 -220
  421. package/dist/client/paymentSource/resolver.fixtures.d.ts.map +0 -1
  422. package/dist/client/paymentSource/resolver.fixtures.js +0 -189
  423. package/dist/client/paymentSource/resolver.fixtures.js.map +0 -1
  424. package/dist/client/recoveryWorkflow/provider.fixture.d.ts +0 -21
  425. package/dist/client/recoveryWorkflow/provider.fixture.d.ts.map +0 -1
  426. package/dist/client/recoveryWorkflow/provider.fixture.js +0 -125
  427. package/dist/client/recoveryWorkflow/provider.fixture.js.map +0 -1
  428. package/dist/client/settlement/authorization.fixture.d.ts +0 -148
  429. package/dist/client/settlement/authorization.fixture.d.ts.map +0 -1
  430. package/dist/client/settlement/authorization.fixture.js +0 -178
  431. package/dist/client/settlement/authorization.fixture.js.map +0 -1
  432. package/dist/client/setup.test.d.ts +0 -18
  433. package/dist/client/setup.test.d.ts.map +0 -1
  434. package/dist/client/setup.test.js +0 -33
  435. package/dist/client/setup.test.js.map +0 -1
  436. package/dist/client/usage/correctionTransport.fixtures.d.ts +0 -37
  437. package/dist/client/usage/correctionTransport.fixtures.d.ts.map +0 -1
  438. package/dist/client/usage/correctionTransport.fixtures.js +0 -322
  439. package/dist/client/usage/correctionTransport.fixtures.js.map +0 -1
  440. package/dist/client/usage/creditSettlement.fixtures.d.ts +0 -216
  441. package/dist/client/usage/creditSettlement.fixtures.d.ts.map +0 -1
  442. package/dist/client/usage/creditSettlement.fixtures.js +0 -59
  443. package/dist/client/usage/creditSettlement.fixtures.js.map +0 -1
  444. package/dist/client/usage/creditTransport.fixtures.d.ts +0 -108
  445. package/dist/client/usage/creditTransport.fixtures.d.ts.map +0 -1
  446. package/dist/client/usage/creditTransport.fixtures.js +0 -293
  447. package/dist/client/usage/creditTransport.fixtures.js.map +0 -1
  448. package/dist/client/usage/invoiceSale.fixtures.d.ts +0 -285
  449. package/dist/client/usage/invoiceSale.fixtures.d.ts.map +0 -1
  450. package/dist/client/usage/invoiceSale.fixtures.js +0 -104
  451. package/dist/client/usage/invoiceSale.fixtures.js.map +0 -1
  452. package/dist/client/usage/mixedInvoice.fixtures.d.ts +0 -315
  453. package/dist/client/usage/mixedInvoice.fixtures.d.ts.map +0 -1
  454. package/dist/client/usage/mixedInvoice.fixtures.js +0 -55
  455. package/dist/client/usage/mixedInvoice.fixtures.js.map +0 -1
  456. package/dist/client/usage/subscription.fixtures.d.ts +0 -118
  457. package/dist/client/usage/subscription.fixtures.d.ts.map +0 -1
  458. package/dist/client/usage/subscription.fixtures.js +0 -84
  459. package/dist/client/usage/subscription.fixtures.js.map +0 -1
  460. package/dist/client/usage/subscriptionTransport.fixtures.d.ts +0 -25
  461. package/dist/client/usage/subscriptionTransport.fixtures.d.ts.map +0 -1
  462. package/dist/client/usage/subscriptionTransport.fixtures.js +0 -206
  463. package/dist/client/usage/subscriptionTransport.fixtures.js.map +0 -1
  464. package/dist/client/webhooks/payoutReconciliationTestHelpers.d.ts +0 -117
  465. package/dist/client/webhooks/payoutReconciliationTestHelpers.d.ts.map +0 -1
  466. package/dist/client/webhooks/payoutReconciliationTestHelpers.js +0 -105
  467. package/dist/client/webhooks/payoutReconciliationTestHelpers.js.map +0 -1
  468. package/dist/component/usage/allowance.fixtures.d.ts +0 -5088
  469. package/dist/component/usage/allowance.fixtures.d.ts.map +0 -1
  470. package/dist/component/usage/allowance.fixtures.js +0 -67
  471. package/dist/component/usage/allowance.fixtures.js.map +0 -1
  472. package/dist/component/usageCredits/accounting.fixtures.d.ts +0 -5111
  473. package/dist/component/usageCredits/accounting.fixtures.d.ts.map +0 -1
  474. package/dist/component/usageCredits/accounting.fixtures.js +0 -89
  475. package/dist/component/usageCredits/accounting.fixtures.js.map +0 -1
  476. package/dist/react/workflows/Usage.fixtures.d.ts +0 -17
  477. package/dist/react/workflows/Usage.fixtures.d.ts.map +0 -1
  478. package/dist/react/workflows/Usage.fixtures.js +0 -79
  479. package/dist/react/workflows/Usage.fixtures.js.map +0 -1
  480. package/dist/test.d.ts +0 -6
  481. package/dist/test.d.ts.map +0 -1
  482. package/dist/test.js +0 -15
  483. package/dist/test.js.map +0 -1
  484. package/dist/testing/component-db.d.ts +0 -3
  485. package/dist/testing/component-db.d.ts.map +0 -1
  486. package/dist/testing/component-db.js +0 -26
  487. package/dist/testing/component-db.js.map +0 -1
  488. package/src/client/balanceFundingWorkflow/capture.test.ts +0 -144
  489. package/src/client/billing/balanceFunding.test.ts +0 -257
  490. package/src/client/billing/balanceFundingTransport.test.ts +0 -89
  491. package/src/client/billing/captured-checkout-payment.test.ts +0 -272
  492. package/src/client/billing/checkout-idempotency.test.ts +0 -82
  493. package/src/client/billing/checkout-ui-modes.test.ts +0 -49
  494. package/src/client/billing/checkout.test.ts +0 -1282
  495. package/src/client/billing/checkoutPages.test.ts +0 -270
  496. package/src/client/billing/historyPages.test.ts +0 -58
  497. package/src/client/billing/intents.test.ts +0 -216
  498. package/src/client/billing/intentsTransport.test.ts +0 -94
  499. package/src/client/billing/invoicePages.test.ts +0 -174
  500. package/src/client/billing/invoicePaymentPages.test.ts +0 -354
  501. package/src/client/billing/invoicePaymentRead.test.ts +0 -233
  502. package/src/client/billing/invoicePaymentReadTransport.test.ts +0 -101
  503. package/src/client/billing/invoicePreview.test.ts +0 -123
  504. package/src/client/billing/invoicePreviewTransport.test.ts +0 -70
  505. package/src/client/billing/invoices.test.ts +0 -243
  506. package/src/client/billing/prepared-checkout.test.ts +0 -430
  507. package/src/client/billing/providerReads.test.ts +0 -60
  508. package/src/client/billing/renewal-discount-projection.test.ts +0 -207
  509. package/src/client/billing/renewal-item-settings-projection.test.ts +0 -79
  510. package/src/client/billing/renewal-price-replacement.test.ts +0 -503
  511. package/src/client/billing/renewal-settings-projection.test.ts +0 -300
  512. package/src/client/billing/renewalAggregate/configure.test.ts +0 -372
  513. package/src/client/billing/renewalAggregate/preflight.test.ts +0 -233
  514. package/src/client/billing/renewalAggregate/sourceAndTaxRetention.test.ts +0 -247
  515. package/src/client/billing/renewalAttach/couponEvidence.test.ts +0 -103
  516. package/src/client/billing/renewalAttach/internal/acquisition/array-order.test.js +0 -70
  517. package/src/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js +0 -23
  518. package/src/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js +0 -77
  519. package/src/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js +0 -418
  520. package/src/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js +0 -138
  521. package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs +0 -510
  522. package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs +0 -64
  523. package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs +0 -159
  524. package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs +0 -25
  525. package/src/client/billing/renewalAttach/internal/c10/appendAck.first.test.ts +0 -86
  526. package/src/client/billing/renewalAttach/internal/c10/appendCodec.test.ts +0 -186
  527. package/src/client/billing/renewalAttach/internal/c10/arrayOrder.test.ts +0 -47
  528. package/src/client/billing/renewalAttach/internal/c10/compiler.test.ts +0 -443
  529. package/src/client/billing/renewalAttach/internal/c10/hardening.test.ts +0 -175
  530. package/src/client/billing/renewalAttach/internal/c10/historicalClassifier.test.ts +0 -114
  531. package/src/client/billing/renewalAttach/internal/c10/ownerContinuations.test.ts +0 -283
  532. package/src/client/billing/renewalAttach/internal/c10/reflectionPrivacy.test.ts +0 -87
  533. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs +0 -3
  534. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs +0 -49
  535. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs +0 -63
  536. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs +0 -160
  537. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs +0 -88
  538. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs +0 -102
  539. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs +0 -82
  540. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs +0 -20
  541. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs +0 -41
  542. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs +0 -137
  543. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs +0 -153
  544. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs +0 -127
  545. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs +0 -85
  546. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs +0 -170
  547. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs +0 -6
  548. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs +0 -295
  549. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs +0 -78
  550. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs +0 -177
  551. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs +0 -8
  552. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs +0 -34
  553. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs +0 -32
  554. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f19.json +0 -452
  555. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs +0 -177
  556. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs +0 -466
  557. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs +0 -29
  558. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs +0 -165
  559. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs +0 -507
  560. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs +0 -89
  561. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs +0 -38
  562. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs +0 -45
  563. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs +0 -309
  564. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs +0 -58
  565. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs +0 -104
  566. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.ts +0 -43
  567. package/src/client/billing/renewalAttach/internal/configure/dispatch.integration.test.ts +0 -32
  568. package/src/client/billing/renewalAttach/internal/configure/limits.test.ts +0 -510
  569. package/src/client/billing/renewalAttach/internal/configure/order.integration.test.ts +0 -207
  570. package/src/client/billing/renewalAttach/internal/configure/ownership.integration.test.ts +0 -148
  571. package/src/client/billing/renewalAttach/internal/configure/replay.integration.test.ts +0 -173
  572. package/src/client/billing/renewalAttach/internal/configure/transport.integration.test.ts +0 -507
  573. package/src/client/billing/renewalAttach/internal/material/classifiers.test.ts +0 -510
  574. package/src/client/billing/renewalAttach/internal/observation/freshActor.integration.test.ts +0 -360
  575. package/src/client/billing/renewalAttach/internal/observation/freshActorControls.integration.test.ts +0 -442
  576. package/src/client/billing/renewalAttach/internal/observation/history.integration.test.ts +0 -79
  577. package/src/client/billing/renewalAttach/internal/observation/historyControls.integration.test.ts +0 -238
  578. package/src/client/billing/renewalAttach/internal/observation/invoiceActor.integration.test.ts +0 -142
  579. package/src/client/billing/renewalAttach/internal/observation/invoiceActorControls.integration.test.ts +0 -495
  580. package/src/client/billing/renewalAttach/internal/observation/observation.integration.test.ts +0 -220
  581. package/src/client/billing/renewalAttach/internal/observation/observationConfigureACK.integration.test.ts +0 -36
  582. package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKControls.integration.test.ts +0 -48
  583. package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKLifecycle.integration.test.ts +0 -44
  584. package/src/client/billing/renewalAttach/internal/observation/observationConfiguredHistory.integration.test.ts +0 -34
  585. package/src/client/billing/renewalAttach/internal/observation/observationRetirement.integration.test.ts +0 -60
  586. package/src/client/billing/renewalAttach/internal/observation/reader.integration.test.ts +0 -93
  587. package/src/client/billing/renewalAttach/internal/observation/readerControls.integration.test.ts +0 -553
  588. package/src/client/billing/renewalAttach/internal/observation/witnessAcquisition.integration.test.ts +0 -348
  589. package/src/client/billing/renewalAttach/internal/observation/witnessActor.integration.test.ts +0 -204
  590. package/src/client/billing/renewalAttach/internal/observation/witnessCapabilities.integration.test.ts +0 -231
  591. package/src/client/billing/renewalAttach/internal/observation/witnessHistorical.integration.test.ts +0 -98
  592. package/src/client/billing/renewalAttach/internal/observation/witnessImmutable.integration.test.ts +0 -78
  593. package/src/client/billing/renewalAttach/internal/observation/witnessInvoice.integration.test.ts +0 -85
  594. package/src/client/billing/renewalAttach/internal/observation/witnessLifecycle.integration.test.ts +0 -264
  595. package/src/client/billing/renewalAttach/internal/observation/witnessProfile.integration.test.ts +0 -93
  596. package/src/client/billing/renewalAttach/internal/observation/witnessRPCControls.integration.test.ts +0 -256
  597. package/src/client/billing/renewalAttach/internal/operationJournal.acknowledgement.integration.test.ts +0 -500
  598. package/src/client/billing/renewalAttach/internal/operationJournal.c10.integration.test.ts +0 -560
  599. package/src/client/billing/renewalAttach/internal/operationJournal.controls.integration.test.ts +0 -356
  600. package/src/client/billing/renewalAttach/internal/operationJournal.integration.test.ts +0 -560
  601. package/src/client/billing/renewalAttach/internal/operationJournal.methods.integration.test.ts +0 -534
  602. package/src/client/billing/renewalAttach/internal/operations/defaultBindings.test.ts +0 -69
  603. package/src/client/billing/renewalAttach/internal/operations/initialAttach.integration.test.ts +0 -34
  604. package/src/client/billing/renewalAttach/internal/operations/providerFailure.integration.test.ts +0 -61
  605. package/src/client/billing/renewalAttach/internal/operations/transport.integration.test.ts +0 -116
  606. package/src/client/billing/renewalAttach/internal/originalOwner.test.ts +0 -258
  607. package/src/client/billing/renewalAttach/internal/preflight/configurePreflight.integration.test.ts +0 -285
  608. package/src/client/billing/renewalAttach/internal/preflight/configureReads.integration.test.ts +0 -139
  609. package/src/client/billing/renewalAttach/internal/preflight/owner.integration.test.ts +0 -82
  610. package/src/client/billing/renewalAttach/internal/preflight/preflight.integration.test.ts +0 -354
  611. package/src/client/billing/renewalAttach/internal/producer/producerAcknowledgement.integration.test.ts +0 -320
  612. package/src/client/billing/renewalAttach/internal/producer/producerAcknowledgementControls.integration.test.ts +0 -411
  613. package/src/client/billing/renewalAttach/internal/producer/producerAcquisition.integration.test.ts +0 -240
  614. package/src/client/billing/renewalAttach/internal/producer/producerActor.integration.test.ts +0 -526
  615. package/src/client/billing/renewalAttach/internal/producer/producerChannels.integration.test.ts +0 -350
  616. package/src/client/billing/renewalAttach/internal/producer/producerClock.integration.test.ts +0 -175
  617. package/src/client/billing/renewalAttach/internal/producer/producerConfigureAdmission.integration.test.ts +0 -203
  618. package/src/client/billing/renewalAttach/internal/producer/producerConfigureChannelControls.integration.test.ts +0 -542
  619. package/src/client/billing/renewalAttach/internal/producer/producerConfigureChannels.integration.test.ts +0 -321
  620. package/src/client/billing/renewalAttach/internal/producer/producerConfigureControls.integration.test.ts +0 -566
  621. package/src/client/billing/renewalAttach/internal/producer/producerConfigurePreflight.integration.test.ts +0 -67
  622. package/src/client/billing/renewalAttach/internal/producer/producerConfigurePreflightControls.integration.test.ts +0 -475
  623. package/src/client/billing/renewalAttach/internal/producer/producerConfigureRecovery.integration.test.ts +0 -99
  624. package/src/client/billing/renewalAttach/internal/producer/producerConfigureRecoveryControls.integration.test.ts +0 -420
  625. package/src/client/billing/renewalAttach/internal/producer/producerConfigureWrite.integration.test.ts +0 -158
  626. package/src/client/billing/renewalAttach/internal/producer/producerConfigureWriteControls.integration.test.ts +0 -549
  627. package/src/client/billing/renewalAttach/internal/producer/producerGuards.integration.test.ts +0 -323
  628. package/src/client/billing/renewalAttach/internal/producer/producerInitial.integration.test.ts +0 -301
  629. package/src/client/billing/renewalAttach/internal/producer/producerIsolation.integration.test.ts +0 -531
  630. package/src/client/billing/renewalAttach/internal/producer/producerMaterial.integration.test.ts +0 -251
  631. package/src/client/billing/renewalAttach/internal/producer/producerOwner.integration.test.ts +0 -449
  632. package/src/client/billing/renewalAttach/internal/producer/producerRecovery.integration.test.ts +0 -394
  633. package/src/client/billing/renewalAttach/internal/producer/producerRecoveryControls.integration.test.ts +0 -437
  634. package/src/client/billing/renewalAttach/internal/producer/producerRecoveryIsolation.integration.test.ts +0 -332
  635. package/src/client/billing/renewalAttach/internal/producer/producerTransport.integration.test.ts +0 -440
  636. package/src/client/billing/renewalAttach/internal/recovery/recovery.integration.test.ts +0 -463
  637. package/src/client/billing/renewalAttach/internal/sourceBindings.test.ts +0 -13
  638. package/src/client/billing/renewalAttach/internal/stockRawDelegate.test.ts +0 -156
  639. package/src/client/billing/renewalAttach/internal/test-fixtures/attachEntries.ts +0 -217
  640. package/src/client/billing/renewalAttach/internal/test-fixtures/attachObservations.ts +0 -226
  641. package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenario.ts +0 -556
  642. package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenarioAssertions.ts +0 -180
  643. package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenarioBarriers.ts +0 -144
  644. package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightAssertions.ts +0 -122
  645. package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightBarriers.ts +0 -330
  646. package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightControls.ts +0 -139
  647. package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightOperation.ts +0 -513
  648. package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadNativeBaseline.ts +0 -344
  649. package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadOperation.ts +0 -278
  650. package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadPort.ts +0 -17
  651. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteAssertions.ts +0 -537
  652. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteBarriers.ts +0 -125
  653. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDeclarations.ts +0 -325
  654. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDelegate.ts +0 -38
  655. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteHistory.ts +0 -471
  656. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteObservations.ts +0 -515
  657. package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteOperation.ts +0 -587
  658. package/src/client/billing/renewalAttach/internal/test-fixtures/freshObservation.ts +0 -94
  659. package/src/client/billing/renewalAttach/internal/test-fixtures/historySnapshot.ts +0 -51
  660. package/src/client/billing/renewalAttach/internal/test-fixtures/invoiceObservation.ts +0 -160
  661. package/src/client/billing/renewalAttach/internal/test-fixtures/observationAssertions.ts +0 -211
  662. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKAssertions.ts +0 -115
  663. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKDeclarations.ts +0 -141
  664. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleAssertions.ts +0 -74
  665. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleDeclarations.ts +0 -79
  666. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleInstrumentation.ts +0 -207
  667. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleOperation.ts +0 -494
  668. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKOperation.ts +0 -452
  669. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryAssertions.ts +0 -88
  670. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryDeclarations.ts +0 -170
  671. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryNative.ts +0 -99
  672. package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryOperation.ts +0 -411
  673. package/src/client/billing/renewalAttach/internal/test-fixtures/observationDeclarations.ts +0 -192
  674. package/src/client/billing/renewalAttach/internal/test-fixtures/observationHTTP.ts +0 -197
  675. package/src/client/billing/renewalAttach/internal/test-fixtures/observationObservations.ts +0 -269
  676. package/src/client/billing/renewalAttach/internal/test-fixtures/observationOperation.ts +0 -262
  677. package/src/client/billing/renewalAttach/internal/test-fixtures/observationProbe.ts +0 -319
  678. package/src/client/billing/renewalAttach/internal/test-fixtures/observationReader.ts +0 -101
  679. package/src/client/billing/renewalAttach/internal/test-fixtures/ownedOperations.ts +0 -94
  680. package/src/client/billing/renewalAttach/internal/test-fixtures/producerConfigureAdmission.ts +0 -538
  681. package/src/client/billing/renewalAttach/internal/test-fixtures/producerInitialDeclarations.ts +0 -5
  682. package/src/client/billing/renewalAttach/internal/test-fixtures/producerInitialOperation.ts +0 -329
  683. package/src/client/billing/renewalAttach/internal/test-fixtures/sourceOperationPort.ts +0 -16
  684. package/src/client/billing/renewalAttach/internal/test-fixtures/stockHttp.ts +0 -21
  685. package/src/client/billing/renewalAttach/internal/test-fixtures/witnessHistory.ts +0 -70
  686. package/src/client/billing/renewalAttach/internal/test-fixtures/witnessObservation.ts +0 -353
  687. package/src/client/billing/renewalAttach/reader.test.ts +0 -409
  688. package/src/client/billing/renewalAttach/wireJson.test.ts +0 -265
  689. package/src/client/billing/renewalObservation/evidence-admission.test.ts +0 -219
  690. package/src/client/billing/renewalObservation/evidence-history.test.ts +0 -187
  691. package/src/client/billing/renewalObservation/evidence-invoice-controls.test.ts +0 -293
  692. package/src/client/billing/renewalObservation/evidence-invoice-identity.test.ts +0 -61
  693. package/src/client/billing/renewalObservation/evidence-invoice.test.ts +0 -177
  694. package/src/client/billing/renewalObservation/evidence-material.test.ts +0 -289
  695. package/src/client/billing/renewalObservation/evidence-v1.test.ts +0 -371
  696. package/src/client/billing/renewalV2/configure.test.ts +0 -362
  697. package/src/client/billing/renewalV2/configureReceipt.test.ts +0 -558
  698. package/src/client/billing/renewalV2/index.test.ts +0 -414
  699. package/src/client/billing/renewalV2/observation.boundary-review.test.ts +0 -49
  700. package/src/client/billing/renewalV2/observation.test.ts +0 -334
  701. package/src/client/billing/renewalV2/rawRetention.test.ts +0 -293
  702. package/src/client/billing/renewalV2/receipt.test.ts +0 -289
  703. package/src/client/billing/setup-intent-read.test.ts +0 -324
  704. package/src/client/billing/subscription-payment-method.test.ts +0 -460
  705. package/src/client/billing/subscriptionCancellation.test.ts +0 -68
  706. package/src/client/billing/subscriptions.test.ts +0 -1049
  707. package/src/client/charge-currency.test.ts +0 -113
  708. package/src/client/component-api-types.test.ts +0 -137
  709. package/src/client/connect/commissionReceipts.test.ts +0 -157
  710. package/src/client/connect/dispute-upload.test.ts +0 -208
  711. package/src/client/connect/disputes.test.ts +0 -502
  712. package/src/client/connect/paymentMethodUtils.test.ts +0 -83
  713. package/src/client/connect/paymentMethods.test.ts +0 -68
  714. package/src/client/connect/payoutAdoption.test.ts +0 -186
  715. package/src/client/connect/payoutAdoptionAge.test.ts +0 -89
  716. package/src/client/connect/payoutAdoptionAllocation.test.ts +0 -132
  717. package/src/client/connect/payoutAdoptionConcurrency.test.ts +0 -266
  718. package/src/client/connect/payoutAdoptionTestHelpers.ts +0 -269
  719. package/src/client/connect/payoutAllocation.test.ts +0 -325
  720. package/src/client/connect/payoutCacheIdentity.test.ts +0 -93
  721. package/src/client/connect/payoutCollection.test.ts +0 -74
  722. package/src/client/connect/payoutDeadline.test.ts +0 -238
  723. package/src/client/connect/payoutExecution.test.ts +0 -294
  724. package/src/client/connect/payoutExecutionTestHelpers.ts +0 -244
  725. package/src/client/connect/payoutHistory.test.ts +0 -145
  726. package/src/client/connect/payoutLargeAdoption.test.ts +0 -541
  727. package/src/client/connect/payoutLargeAdoptionTestHelpers.ts +0 -74
  728. package/src/client/connect/payoutLargeHistory.test.ts +0 -222
  729. package/src/client/connect/payoutLiabilityVersion.test.ts +0 -221
  730. package/src/client/connect/payoutOutcomeBatches.test.ts +0 -40
  731. package/src/client/connect/payoutPreview.test.ts +0 -414
  732. package/src/client/connect/payoutQualificationFreshness.test.ts +0 -192
  733. package/src/client/connect/payoutReceipt.test.ts +0 -312
  734. package/src/client/connect/payoutReconciliation.test.ts +0 -414
  735. package/src/client/connect/payoutReturnedAdoption.test.ts +0 -157
  736. package/src/client/connect/payoutSnapshot.test.ts +0 -118
  737. package/src/client/connect/payoutSync.test.ts +0 -313
  738. package/src/client/connect/payoutSyncTestHelpers.ts +0 -82
  739. package/src/client/connect/payoutWorker.test.ts +0 -201
  740. package/src/client/connect/payouts.test.ts +0 -132
  741. package/src/client/connect/refundActor.test.ts +0 -121
  742. package/src/client/connect/refundPrincipal.test.ts +0 -46
  743. package/src/client/connect/refundSync.test.ts +0 -239
  744. package/src/client/connect/refundSync.transport.test.ts +0 -396
  745. package/src/client/connect/refunds.test.ts +0 -438
  746. package/src/client/connect/transferReceipt.pagination.test.ts +0 -209
  747. package/src/client/connect/transferReceipt.test.ts +0 -520
  748. package/src/client/connect/transferReceiptBaseline.test.ts +0 -55
  749. package/src/client/connect/transfers.test.ts +0 -557
  750. package/src/client/core/account-close-guard.test.ts +0 -349
  751. package/src/client/core/account-close-orchestration.test.ts +0 -131
  752. package/src/client/core/account-closure-preview.test.ts +0 -219
  753. package/src/client/core/account-closure.test.ts +0 -317
  754. package/src/client/core/account-idempotency.test.ts +0 -78
  755. package/src/client/core/account-session-client.test.ts +0 -74
  756. package/src/client/core/accountConfigurations.test.ts +0 -183
  757. package/src/client/core/accountLinks.test.ts +0 -389
  758. package/src/client/core/accountStatus.test.ts +0 -169
  759. package/src/client/core/accounts.test.ts +0 -1385
  760. package/src/client/core/billingPortal.test.ts +0 -249
  761. package/src/client/core/billingPortalFlow.test.ts +0 -349
  762. package/src/client/core/billingPortalIdentity.test.ts +0 -418
  763. package/src/client/core/config.test.ts +0 -69
  764. package/src/client/core/descriptors.test.ts +0 -70
  765. package/src/client/core/fees.test.ts +0 -369
  766. package/src/client/core/idempotency.test.ts +0 -10
  767. package/src/client/core/personal-account-mapping.test.ts +0 -71
  768. package/src/client/costRecovery-import.test.ts +0 -174
  769. package/src/client/costRecovery-invoiceReceipt.test.ts +0 -140
  770. package/src/client/costRecovery-invoices.test.ts +0 -470
  771. package/src/client/costRecovery-invoices.transport.test.ts +0 -107
  772. package/src/client/costRecovery.test.ts +0 -110
  773. package/src/client/customer-preview-thin.test.ts +0 -41
  774. package/src/client/customer-preview-webhooks.test.ts +0 -150
  775. package/src/client/customer-preview.test.ts +0 -366
  776. package/src/client/errors.test.ts +0 -66
  777. package/src/client/financialObservations.test.ts +0 -109
  778. package/src/client/financialOutcomes/outcomes.test.ts +0 -254
  779. package/src/client/financialOwnership.test.ts +0 -80
  780. package/src/client/helpers.test.ts +0 -74
  781. package/src/client/index.test.ts +0 -1784
  782. package/src/client/operationEvidence.test.ts +0 -110
  783. package/src/client/originalIdReadOptions.test.ts +0 -63
  784. package/src/client/paymentSource/resolver.fixtures.ts +0 -216
  785. package/src/client/paymentSource/resolver.test.ts +0 -386
  786. package/src/client/payoutPolicy.test.ts +0 -579
  787. package/src/client/payoutRevisionMigration.test.ts +0 -40
  788. package/src/client/processingCostDeficit/calculator.test.ts +0 -176
  789. package/src/client/processingCostReconciliation/invoiceProvider.test.ts +0 -353
  790. package/src/client/processingCostReconciliation/provider.test.ts +0 -324
  791. package/src/client/products/catalog-idempotency.test.ts +0 -116
  792. package/src/client/products/catalog.test.ts +0 -389
  793. package/src/client/products/fixedPrice.test.ts +0 -57
  794. package/src/client/products/identity.test.ts +0 -91
  795. package/src/client/products/prices.test.ts +0 -375
  796. package/src/client/products/product-descriptor-inheritance.test.ts +0 -245
  797. package/src/client/products/product-descriptors.test.ts +0 -260
  798. package/src/client/products/product-set-idempotency.test.ts +0 -188
  799. package/src/client/products/products.test.ts +0 -517
  800. package/src/client/readPagination.test.ts +0 -83
  801. package/src/client/recoveryWorkflow/client.test.ts +0 -37
  802. package/src/client/recoveryWorkflow/provider.fixture.ts +0 -143
  803. package/src/client/recoveryWorkflow/provider.test.ts +0 -509
  804. package/src/client/refund-command-evidence.test.ts +0 -68
  805. package/src/client/refund-command-normalization.test.ts +0 -61
  806. package/src/client/refund-context-shapes.test.ts +0 -127
  807. package/src/client/refund-context.test.ts +0 -404
  808. package/src/client/refund-history.test.ts +0 -67
  809. package/src/client/reversalObservations.test.ts +0 -69
  810. package/src/client/settlement/allocation.test.ts +0 -98
  811. package/src/client/settlement/authorization.fixture.ts +0 -199
  812. package/src/client/settlement/authorization.test.ts +0 -160
  813. package/src/client/settlement/commissions.test.ts +0 -103
  814. package/src/client/settlement/execution.test.ts +0 -191
  815. package/src/client/settlement/policy-context.test.ts +0 -277
  816. package/src/client/settlement/processingCosts.test.ts +0 -349
  817. package/src/client/settlement/processingCostsTransport.test.ts +0 -135
  818. package/src/client/settlement/verifiedSale.test.ts +0 -139
  819. package/src/client/setup.test.ts +0 -47
  820. package/src/client/singleAttemptHttpClient.test.ts +0 -70
  821. package/src/client/strictStripeTransport.test.ts +0 -73
  822. package/src/client/stripe-version.test.ts +0 -53
  823. package/src/client/transferContinuation.test.ts +0 -90
  824. package/src/client/transferObservations.test.ts +0 -98
  825. package/src/client/usage/allowanceClient.test.ts +0 -93
  826. package/src/client/usage/allowanceTerms.test.ts +0 -131
  827. package/src/client/usage/boundaries.test.ts +0 -136
  828. package/src/client/usage/catalog.test.ts +0 -464
  829. package/src/client/usage/catalogMath.test.ts +0 -13
  830. package/src/client/usage/contracts.test.ts +0 -145
  831. package/src/client/usage/correctionClient.test.ts +0 -153
  832. package/src/client/usage/correctionCredits.test.ts +0 -156
  833. package/src/client/usage/correctionInvoice.test.ts +0 -127
  834. package/src/client/usage/correctionRecovery.test.ts +0 -113
  835. package/src/client/usage/correctionTransport.fixtures.ts +0 -372
  836. package/src/client/usage/creditBackingIsolation.test.ts +0 -110
  837. package/src/client/usage/creditCapacity.test.ts +0 -162
  838. package/src/client/usage/creditClient.test.ts +0 -221
  839. package/src/client/usage/creditInvoice.test.ts +0 -149
  840. package/src/client/usage/creditObservation.test.ts +0 -150
  841. package/src/client/usage/creditProofBounds.test.ts +0 -187
  842. package/src/client/usage/creditProvider.test.ts +0 -276
  843. package/src/client/usage/creditRevenue.test.ts +0 -105
  844. package/src/client/usage/creditSettlement.fixtures.ts +0 -70
  845. package/src/client/usage/creditSettlement.test.ts +0 -66
  846. package/src/client/usage/creditSettlementRecovery.test.ts +0 -173
  847. package/src/client/usage/creditTerms.test.ts +0 -48
  848. package/src/client/usage/creditTransport.fixtures.ts +0 -308
  849. package/src/client/usage/deliveryProvider.test.ts +0 -316
  850. package/src/client/usage/invoiceObservation.test.ts +0 -195
  851. package/src/client/usage/invoiceSale.fixtures.ts +0 -103
  852. package/src/client/usage/invoiceSale.test.ts +0 -252
  853. package/src/client/usage/ledger-client.test.ts +0 -74
  854. package/src/client/usage/mixedInvoice.fixtures.ts +0 -54
  855. package/src/client/usage/mixedInvoiceSale.test.ts +0 -92
  856. package/src/client/usage/mixedSettlement.test.ts +0 -187
  857. package/src/client/usage/providerObservation.test.ts +0 -207
  858. package/src/client/usage/reconciliation.test.ts +0 -117
  859. package/src/client/usage/record-composition.test.ts +0 -195
  860. package/src/client/usage/settlement.test.ts +0 -179
  861. package/src/client/usage/subscription.fixtures.ts +0 -84
  862. package/src/client/usage/subscriptionAbandonment.test.ts +0 -124
  863. package/src/client/usage/subscriptionCheckout.test.ts +0 -44
  864. package/src/client/usage/subscriptionClient.test.ts +0 -375
  865. package/src/client/usage/subscriptionProvider.test.ts +0 -48
  866. package/src/client/usage/subscriptionTerms.test.ts +0 -158
  867. package/src/client/usage/subscriptionTransport.fixtures.ts +0 -247
  868. package/src/client/usage/summary.test.ts +0 -222
  869. package/src/client/utils/data.test.ts +0 -61
  870. package/src/client/utils/owner.test.ts +0 -38
  871. package/src/client/utils/stripeDashboardUrl.test.ts +0 -71
  872. package/src/client/utils/webhookEndpoints.test.ts +0 -459
  873. package/src/client/webhook-handlers.test.ts +0 -569
  874. package/src/client/webhooks/handler.test.ts +0 -601
  875. package/src/client/webhooks/helpers.test.ts +0 -343
  876. package/src/client/webhooks/hooks.test.ts +0 -119
  877. package/src/client/webhooks/meterErrors.test.ts +0 -164
  878. package/src/client/webhooks/payout-canceled.integration.test.ts +0 -230
  879. package/src/client/webhooks/payout-reconciliation.integration.test.ts +0 -168
  880. package/src/client/webhooks/payoutReconciliationTestHelpers.ts +0 -135
  881. package/src/client/webhooks/processors.test.ts +0 -2553
  882. package/src/client/webhooks/refund-delivery.test.ts +0 -512
  883. package/src/client/webhooks/refund-reconciliation.test.ts +0 -320
  884. package/src/client/webhooks/retry.integration.test.ts +0 -196
  885. package/src/client/webhooks/subscription-deleted-dispatch.test.ts +0 -61
  886. package/src/client/webhooks/subscription-deleted.integration.test.ts +0 -313
  887. package/src/client/webhooks/usageSubscriptions.test.ts +0 -162
  888. package/src/client/webhooks/v2.test.ts +0 -432
  889. package/src/client/webhooks.test.ts +0 -1681
  890. package/src/component/accountClosure/blockers.test.ts +0 -114
  891. package/src/component/affiliatePayouts/affiliate-direct-payout.test.ts +0 -159
  892. package/src/component/affiliateRecovery/affiliate-component-pagination.test.ts +0 -56
  893. package/src/component/affiliateRecovery/affiliate-recovery-lifecycle.test.ts +0 -586
  894. package/src/component/balanceFunding/failure.test.ts +0 -116
  895. package/src/component/balanceFunding/import.test.ts +0 -221
  896. package/src/component/balanceFunding/lookup.test.ts +0 -113
  897. package/src/component/balanceFunding/preparation.test.ts +0 -146
  898. package/src/component/balanceFunding/requestLookup.test.ts +0 -160
  899. package/src/component/balanceFunding/scopeLookup.test.ts +0 -94
  900. package/src/component/balanceFunding/state.test.ts +0 -352
  901. package/src/component/balanceFunding/validation.test.ts +0 -100
  902. package/src/component/balanceFunding/workflow.fixtures.ts +0 -366
  903. package/src/component/balanceFunding/workflow.test.ts +0 -552
  904. package/src/component/billing/checkout.test.ts +0 -89
  905. package/src/component/billing/invoices.test.ts +0 -294
  906. package/src/component/billing/store-subscriptions.test.ts +0 -31
  907. package/src/component/billing/subscription-scoping.test.ts +0 -120
  908. package/src/component/billing/subscriptions.test.ts +0 -477
  909. package/src/component/billingHistory/guards.test.ts +0 -235
  910. package/src/component/billingHistory/options.test.ts +0 -35
  911. package/src/component/billingHistory/pages.test.ts +0 -74
  912. package/src/component/connect/connect.test.ts +0 -715
  913. package/src/component/connect/fee-routing.test.ts +0 -122
  914. package/src/component/connect/payment-unique.test.ts +0 -195
  915. package/src/component/connect/payments.test.ts +0 -88
  916. package/src/component/connect/payouts.test.ts +0 -173
  917. package/src/component/connect/reversal-races.test.ts +0 -958
  918. package/src/component/connect/seller-case-ownership.test.ts +0 -60
  919. package/src/component/connect/transfers.test.ts +0 -517
  920. package/src/component/core/accounts.test.ts +0 -266
  921. package/src/component/core/config-queries.test.ts +0 -49
  922. package/src/component/core/original-id-unique.test.ts +0 -209
  923. package/src/component/core/payout-reset-safety.test.ts +0 -175
  924. package/src/component/core/personal-account-mapping.test.ts +0 -173
  925. package/src/component/core/reset.test.ts +0 -131
  926. package/src/component/costRecovery/cost-recovery.test.ts +0 -343
  927. package/src/component/costRecovery/preparation.test.ts +0 -355
  928. package/src/component/durableExecution/composition.test.ts +0 -568
  929. package/src/component/durableExecution/crossDomain.test.ts +0 -241
  930. package/src/component/durableExecution/crossDomainBoundaries.test.ts +0 -233
  931. package/src/component/durableExecution/crossDomainDisputes.test.ts +0 -108
  932. package/src/component/durableExecution/crossDomainMigration.test.ts +0 -192
  933. package/src/component/durableExecution/crossDomainWebhooks.test.ts +0 -122
  934. package/src/component/earnings/currency-migration.test.ts +0 -118
  935. package/src/component/earnings/currency-totals.test.ts +0 -94
  936. package/src/component/earnings/earnings-totals.test.ts +0 -237
  937. package/src/component/earnings/paired-adjustment.test.ts +0 -258
  938. package/src/component/earnings/summary-arithmetic.test.ts +0 -250
  939. package/src/component/financialObservations/continuation.test.ts +0 -445
  940. package/src/component/financialObservations/observation-boundaries.test.ts +0 -466
  941. package/src/component/financialObservations/settlement-observations.test.ts +0 -86
  942. package/src/component/financialObservations/transfer-batches.test.ts +0 -61
  943. package/src/component/financialObservations/transfer-boundaries.test.ts +0 -116
  944. package/src/component/financialObservations/transfer-continuation-guards.test.ts +0 -428
  945. package/src/component/financialObservations/transfer-continuation.test.ts +0 -154
  946. package/src/component/financialObservations/transfer-observations.test.ts +0 -212
  947. package/src/component/financialObservations/transfer-overflow.test.ts +0 -181
  948. package/src/component/financialObservations/transfer-writers.test.ts +0 -162
  949. package/src/component/financialOwnership/financial-ownership.test.ts +0 -102
  950. package/src/component/financialOwnership/ownership-boundaries.test.ts +0 -308
  951. package/src/component/lib/idempotency.test.ts +0 -37
  952. package/src/component/operationEvidence/integrity.test.ts +0 -257
  953. package/src/component/operationEvidence/maintenance.test.ts +0 -152
  954. package/src/component/operationEvidence/reads.test.ts +0 -140
  955. package/src/component/payoutPolicy/payout-policy-adoption.test.ts +0 -130
  956. package/src/component/payoutPolicy/payout-policy.test.ts +0 -247
  957. package/src/component/payoutRelease/payout-adoption.test.ts +0 -268
  958. package/src/component/payoutRelease/payout-fees.test.ts +0 -223
  959. package/src/component/payoutRelease/payout-recovery-integration.test.ts +0 -171
  960. package/src/component/payoutRelease/payout-release-snapshot.test.ts +0 -56
  961. package/src/component/payoutRelease/payout-release.test.ts +0 -587
  962. package/src/component/payoutRelease/progress.test.ts +0 -63
  963. package/src/component/payoutSnapshots/legacy-revisions.test.ts +0 -246
  964. package/src/component/payoutSnapshots/payout-revisions.test.ts +0 -124
  965. package/src/component/payoutSnapshots/payout-snapshots.test.ts +0 -438
  966. package/src/component/payoutSnapshots/revision-journal-callbacks.test.ts +0 -160
  967. package/src/component/payoutSnapshots/revision-journal-held.test.ts +0 -94
  968. package/src/component/payoutSnapshots/revision-journal.test.ts +0 -310
  969. package/src/component/payoutSnapshots/revision-migration.test.ts +0 -128
  970. package/src/component/payoutSync/payout-sync.test.ts +0 -116
  971. package/src/component/payoutWorker/payout-component-pagination.test.ts +0 -211
  972. package/src/component/payoutWorker/payout-worker.test.ts +0 -164
  973. package/src/component/processingCostReconciliation/adoption.test.ts +0 -206
  974. package/src/component/processingCostReconciliation/invoice.test.ts +0 -152
  975. package/src/component/processingCostReconciliation/state.test.ts +0 -407
  976. package/src/component/processingCostReconciliation/workflow.test.ts +0 -329
  977. package/src/component/products/identity.test.ts +0 -217
  978. package/src/component/products/products.test.ts +0 -239
  979. package/src/component/products/provider-price-pagination.test.ts +0 -174
  980. package/src/component/products/read-pagination.test.ts +0 -192
  981. package/src/component/recoveryWorkflow/bridge.test.ts +0 -481
  982. package/src/component/recoveryWorkflow/journal.test.ts +0 -104
  983. package/src/component/recoveryWorkflow/state.test.ts +0 -191
  984. package/src/component/refundHistory/command-evidence.test.ts +0 -288
  985. package/src/component/refundHistory/command-normalization-resource.test.ts +0 -77
  986. package/src/component/refundHistory/command-normalization.test.ts +0 -229
  987. package/src/component/refundHistory/command-provenance.test.ts +0 -59
  988. package/src/component/refundHistory/original-seller-boundaries.test.ts +0 -138
  989. package/src/component/refundHistory/original-seller.test.ts +0 -175
  990. package/src/component/refundHistory/refund-history.test.ts +0 -197
  991. package/src/component/refundSync/refund-sync.test.ts +0 -255
  992. package/src/component/renewalOperations/acknowledgement.fixtures.ts +0 -552
  993. package/src/component/renewalOperations/acknowledgement.test.ts +0 -573
  994. package/src/component/renewalOperations/acknowledgementReads.test.ts +0 -442
  995. package/src/component/renewalOperations/acknowledgementV2.test.ts +0 -493
  996. package/src/component/renewalOperations/acknowledgementV2Publication.test.ts +0 -373
  997. package/src/component/renewalOperations/basisBinding.test.ts +0 -567
  998. package/src/component/renewalOperations/basisLifecycle.test.ts +0 -569
  999. package/src/component/renewalOperations/boundHistory.test.ts +0 -474
  1000. package/src/component/renewalOperations/configureAcknowledgement.test.ts +0 -30
  1001. package/src/component/renewalOperations/configureAcknowledgementControls.test.ts +0 -96
  1002. package/src/component/renewalOperations/configureBasis.test.ts +0 -77
  1003. package/src/component/renewalOperations/configureCreation.test.ts +0 -75
  1004. package/src/component/renewalOperations/configureJournal.fixtures.ts +0 -407
  1005. package/src/component/renewalOperations/configurePolicy.test.ts +0 -105
  1006. package/src/component/renewalOperations/configurePublication.test.ts +0 -85
  1007. package/src/component/renewalOperations/configureReceiptBounds.test.ts +0 -39
  1008. package/src/component/renewalOperations/configureSourceControls.test.ts +0 -65
  1009. package/src/component/renewalOperations/historyReads.test.ts +0 -595
  1010. package/src/component/renewalOperations/initialBasis.test.ts +0 -578
  1011. package/src/component/renewalOperations/journal.test.ts +0 -567
  1012. package/src/component/renewalOperations/payload.test.ts +0 -589
  1013. package/src/component/renewalOperations/payloadEncoding.test.ts +0 -592
  1014. package/src/component/renewalOperations/timingPolicy.fixtures.ts +0 -193
  1015. package/src/component/renewalOperations/timingPolicy.test.ts +0 -523
  1016. package/src/component/renewalWitnesses/bounds.test.ts +0 -204
  1017. package/src/component/renewalWitnesses/codec.test.ts +0 -84
  1018. package/src/component/renewalWitnesses/controls.test.ts +0 -250
  1019. package/src/component/renewalWitnesses/protocol.test.ts +0 -63
  1020. package/src/component/renewalWitnesses/routes.test.ts +0 -154
  1021. package/src/component/reversalObservations/boundaries.test.ts +0 -62
  1022. package/src/component/reversalObservations/capture-integrity.test.ts +0 -119
  1023. package/src/component/reversalObservations/continuation.test.ts +0 -131
  1024. package/src/component/reversalObservations/lifecycle.test.ts +0 -81
  1025. package/src/component/reversalObservations/provenance.test.ts +0 -167
  1026. package/src/component/settlement/affiliate-clawbacks.test.ts +0 -369
  1027. package/src/component/settlement/settlement-claims.test.ts +0 -130
  1028. package/src/component/usage/allowance.fixtures.ts +0 -77
  1029. package/src/component/usage/allowance.test.ts +0 -372
  1030. package/src/component/usage/allowanceBounds.test.ts +0 -79
  1031. package/src/component/usage/historyIsolation.test.ts +0 -124
  1032. package/src/component/usage/ledger.test.ts +0 -303
  1033. package/src/component/usageCorrections/corrections.test.ts +0 -389
  1034. package/src/component/usageCredits/accounting.fixtures.ts +0 -96
  1035. package/src/component/usageCredits/accounting.test.ts +0 -483
  1036. package/src/component/usageCredits/freshness.test.ts +0 -33
  1037. package/src/component/usageCredits/quotas.test.ts +0 -63
  1038. package/src/component/usageDelivery/concurrency.test.ts +0 -62
  1039. package/src/component/usageDelivery/workflow.test.ts +0 -402
  1040. package/src/component/usageObservations/history.test.ts +0 -87
  1041. package/src/component/usageObservations/queries.test.ts +0 -162
  1042. package/src/component/usageSubscriptions/acceptance.test.ts +0 -122
  1043. package/src/component/usageSubscriptions/history.test.ts +0 -126
  1044. package/src/component/usageSubscriptions/mutations.test.ts +0 -205
  1045. package/src/component/webhooks/events.test.ts +0 -121
  1046. package/src/component/webhooks/triggers.test.ts +0 -360
  1047. package/src/react/components/AccountOnboardingCard.test.ts +0 -27
  1048. package/src/react/components/BuyerBillingView.render.test.tsx +0 -212
  1049. package/src/react/components/ConnectProvider.live.test.tsx +0 -61
  1050. package/src/react/components/DisputeDetail.render.test.tsx +0 -147
  1051. package/src/react/components/DisputesList.render.test.tsx +0 -265
  1052. package/src/react/components/EarningsSummary.render.test.tsx +0 -149
  1053. package/src/react/components/EmbeddedCheckout.render.test.tsx +0 -57
  1054. package/src/react/components/EmbeddedCheckout.test.ts +0 -25
  1055. package/src/react/components/EmbeddedDisputes.render.test.tsx +0 -144
  1056. package/src/react/components/EvidenceForm.render.test.tsx +0 -208
  1057. package/src/react/components/PayoutSchedule.render.test.tsx +0 -193
  1058. package/src/react/components/PriceBadge.render.test.tsx +0 -134
  1059. package/src/react/components/PriceCard.render.test.tsx +0 -172
  1060. package/src/react/components/SplitBreakdown.render.test.tsx +0 -191
  1061. package/src/react/components/StripeProvider.test.ts +0 -45
  1062. package/src/react/components/TrialAlert.render.test.tsx +0 -132
  1063. package/src/react/hooks/skipSentinel.test.ts +0 -85
  1064. package/src/react/hooks/useAccountOnboarding.test.ts +0 -75
  1065. package/src/react/hooks/useCheckoutSession.promotions.test.tsx +0 -303
  1066. package/src/react/hooks/useConfirmPayment.test.tsx +0 -47
  1067. package/src/react/hooks/useCurrencyEarnings.test.ts +0 -59
  1068. package/src/react/hooks/useDisputeWithCountdown.test.ts +0 -90
  1069. package/src/react/hooks/useDisputes.test.ts +0 -75
  1070. package/src/react/hooks/useEarnings.test.ts +0 -194
  1071. package/src/react/hooks/useInvoices.test.ts +0 -79
  1072. package/src/react/hooks/useProducts.test.ts +0 -75
  1073. package/src/react/hooks/useSplitBreakdown.test.ts +0 -151
  1074. package/src/react/hooks/useStripeMode.test.ts +0 -46
  1075. package/src/react/hooks/useStripePublishableKey.test.ts +0 -35
  1076. package/src/react/index.payment-element.test.ts +0 -26
  1077. package/src/react/index.test.ts +0 -172
  1078. package/src/react/lib/connect-requirement-keys.test.ts +0 -73
  1079. package/src/react/lib/price-helpers.test.ts +0 -212
  1080. package/src/react/lib/stripe-element-styles.test.ts +0 -94
  1081. package/src/react/lib/subscription-helpers.test.ts +0 -127
  1082. package/src/react/read-contracts.render.test.tsx +0 -20
  1083. package/src/react/workflows/Account.test.tsx +0 -31
  1084. package/src/react/workflows/AffiliatePayoutEditor.test.tsx +0 -90
  1085. package/src/react/workflows/AffiliateRateEditor.test.tsx +0 -36
  1086. package/src/react/workflows/AffiliateRecovery.test.tsx +0 -106
  1087. package/src/react/workflows/Billing.test.tsx +0 -45
  1088. package/src/react/workflows/BillingPlans.test.tsx +0 -31
  1089. package/src/react/workflows/BillingPortal.test.tsx +0 -101
  1090. package/src/react/workflows/Checkout.test.tsx +0 -148
  1091. package/src/react/workflows/CheckoutChooser.test.tsx +0 -44
  1092. package/src/react/workflows/CheckoutForm.test.tsx +0 -66
  1093. package/src/react/workflows/CheckoutForms.test.tsx +0 -163
  1094. package/src/react/workflows/ClipboardButton.test.tsx +0 -34
  1095. package/src/react/workflows/Collections.test.tsx +0 -122
  1096. package/src/react/workflows/Connect.test.tsx +0 -50
  1097. package/src/react/workflows/Costs.test.tsx +0 -62
  1098. package/src/react/workflows/Disputes.test.tsx +0 -64
  1099. package/src/react/workflows/Earnings.test.ts +0 -19
  1100. package/src/react/workflows/EvidenceUpload.test.tsx +0 -56
  1101. package/src/react/workflows/Financials.test.tsx +0 -35
  1102. package/src/react/workflows/IntegrationSwitch.test.tsx +0 -61
  1103. package/src/react/workflows/Onboarding.test.tsx +0 -148
  1104. package/src/react/workflows/Overview.test.tsx +0 -57
  1105. package/src/react/workflows/Pagination.test.tsx +0 -53
  1106. package/src/react/workflows/PaymentMethods.test.tsx +0 -60
  1107. package/src/react/workflows/PaymentReceipt.test.tsx +0 -24
  1108. package/src/react/workflows/PayoutProgress.test.tsx +0 -356
  1109. package/src/react/workflows/PayoutSettings.test.tsx +0 -139
  1110. package/src/react/workflows/Payouts.test.tsx +0 -145
  1111. package/src/react/workflows/PlanPricingEditor.currency.test.tsx +0 -164
  1112. package/src/react/workflows/PlanPricingEditor.test.tsx +0 -79
  1113. package/src/react/workflows/PlanPricingEditor.zero.test.tsx +0 -100
  1114. package/src/react/workflows/Products.test.tsx +0 -282
  1115. package/src/react/workflows/ReferralLinks.test.tsx +0 -39
  1116. package/src/react/workflows/Refunds.currency.test.tsx +0 -290
  1117. package/src/react/workflows/Refunds.test.tsx +0 -75
  1118. package/src/react/workflows/SaveCard.test.tsx +0 -127
  1119. package/src/react/workflows/Setup.test.tsx +0 -25
  1120. package/src/react/workflows/Storefront.test.tsx +0 -82
  1121. package/src/react/workflows/SubscriptionOverview.test.tsx +0 -27
  1122. package/src/react/workflows/Subscriptions.test.tsx +0 -61
  1123. package/src/react/workflows/Tasks.test.tsx +0 -23
  1124. package/src/react/workflows/Usage.fixtures.ts +0 -88
  1125. package/src/react/workflows/Usage.test.tsx +0 -388
  1126. package/src/react/workflows/UsageConfiguration.test.tsx +0 -393
  1127. package/src/react/workflows/UsageHistory.test.tsx +0 -206
  1128. package/src/react/workflows/UsagePriceRow.test.tsx +0 -140
  1129. package/src/react/workflows/current-subscription.test.ts +0 -29
  1130. package/src/react/workflows/filters.test.ts +0 -12
  1131. package/src/react/workflows/native-interactions.test.tsx +0 -73
  1132. package/src/react/workflows/public-workflows.test.tsx +0 -216
  1133. package/src/react/workflows/refund-preview.test.ts +0 -65
  1134. package/src/react/workflows/usage-configuration-validation.test.ts +0 -107
  1135. package/src/react/workflows/useWorkflowAction.commit.test.tsx +0 -194
  1136. package/src/react/workflows/useWorkflowAction.ssr.test.tsx +0 -20
  1137. package/src/react/workflows/useWorkflowAction.test.tsx +0 -54
  1138. package/src/react/workflows/useWorkflowResource.test.tsx +0 -41
  1139. package/src/test.ts +0 -21
  1140. package/src/testing/assert-test-env.test.ts +0 -33
  1141. package/src/testing/component-db.ts +0 -24
  1142. package/src/testing/crossDomain/fixture.ts +0 -96
  1143. package/src/testing/crossDomain/host.ts +0 -288
  1144. package/src/testing/crossDomain/transport.ts +0 -293
  1145. package/src/testing/mock-webhooks.test.ts +0 -97
@@ -1,958 +0,0 @@
1
- // @vitest-environment edge-runtime
2
- /**
3
- * BTS-63 — transfer-reversal race reproductions.
4
- *
5
- * Integration tests: the REAL client orchestration (reverseTransfers /
6
- * reverseTransfersForRefund) runs against the REAL component ledger
7
- * (convex-test), with a fake Stripe that models the documented idempotency
8
- * semantics (docs.stripe.com/api/idempotent_requests):
9
- * - same key + identical params → cached replay, no money moves
10
- * - same key + different params → hard idempotency_error
11
- * - network failure → nothing cached; a retry executes fresh
12
- *
13
- * The fake also gates createReversal so tests can pin the exact interleaving
14
- * (read → compute → Stripe call → record) that produces each race.
15
- */
16
- import { convexTest } from "convex-test";
17
- import { describe, expect, it, vi } from "vitest";
18
-
19
- import type { Component, RunCtx } from "../../client/helpers.js";
20
- import {
21
- listWedgedReversalClaims,
22
- reclaimReversalClaim,
23
- reverseTransfers,
24
- reverseTransfersForRefund,
25
- } from "../../client/connect/transfers.js";
26
- import { api } from "../_generated/api.js";
27
- import { schema, modules } from "../../test.js";
28
-
29
- const TO_REF = Symbol.for("toReferencePath");
30
-
31
- /**
32
- * Component mock whose every node carries the accumulated reference path, so
33
- * componentRef() resolves any function path without enumerating them here.
34
- */
35
- function proxyComponent(base = "betterStripe"): Component {
36
- return new Proxy(
37
- {},
38
- {
39
- get(_target, prop) {
40
- if (prop === TO_REF) return base;
41
- if (typeof prop !== "string") return undefined;
42
- return proxyComponent(`${base}/${prop}`);
43
- },
44
- },
45
- ) as unknown as Component;
46
- }
47
-
48
- /** Map a componentRef result onto the generated api for convex-test. */
49
- function refToApi(refObj: unknown): unknown {
50
- const path = (refObj as Record<symbol, string>)[TO_REF].replace(
51
- /^betterStripe\//,
52
- "",
53
- );
54
- return path
55
- .split("/")
56
- .reduce(
57
- (node, seg) => (node as Record<string, unknown>)[seg],
58
- api as unknown,
59
- );
60
- }
61
-
62
- /** RunCtx whose runQuery/runMutation execute against a convex-test instance. */
63
- function makeCtx(t: ReturnType<typeof convexTest>): RunCtx {
64
- const query = t.query as unknown as (
65
- ref: unknown,
66
- args: unknown,
67
- ) => Promise<unknown>;
68
- const mutation = t.mutation as unknown as (
69
- ref: unknown,
70
- args: unknown,
71
- ) => Promise<unknown>;
72
- return {
73
- runQuery: (ref: unknown, args: unknown) => query(refToApi(ref), args),
74
- runMutation: (ref: unknown, args: unknown) => mutation(refToApi(ref), args),
75
- } as unknown as RunCtx;
76
- }
77
-
78
- /**
79
- * Fake Stripe transfers API with real idempotency semantics plus a gate that
80
- * lets a test hold calls in flight to force a specific interleaving.
81
- */
82
- function makeRacingStripe() {
83
- const keys = new Map<string, { params: string; response: unknown }>();
84
- const totals = new Map<string, number>();
85
- const failOnce = new Set<string>();
86
- let gateOpen = true;
87
- let waiters: (() => void)[] = [];
88
- let blockedCount = 0;
89
-
90
- const stripe = {
91
- transfers: {
92
- createReversal: vi.fn(
93
- async (
94
- transferId: string,
95
- params: { amount: number },
96
- opts?: { idempotencyKey?: string },
97
- ) => {
98
- if (!gateOpen) {
99
- blockedCount++;
100
- await new Promise<void>((res) => waiters.push(res));
101
- }
102
- if (failOnce.has(transferId)) {
103
- failOnce.delete(transferId);
104
- // Connection-level failure: Stripe caches nothing, so a retry
105
- // with the same key executes fresh.
106
- throw new Error(`stripe: network error reversing ${transferId}`);
107
- }
108
- const key = opts?.idempotencyKey;
109
- const paramStr = JSON.stringify(params);
110
- if (key) {
111
- const seen = keys.get(key);
112
- if (seen) {
113
- if (seen.params !== paramStr) {
114
- throw new Error(
115
- `stripe: idempotency_error — key ${key} reused with different params`,
116
- );
117
- }
118
- return seen.response; // cached replay — no money moves
119
- }
120
- }
121
- totals.set(transferId, (totals.get(transferId) ?? 0) + params.amount);
122
- const response = { id: `trr_${keys.size}_${transferId}` };
123
- if (key) keys.set(key, { params: paramStr, response });
124
- return response;
125
- },
126
- ),
127
- retrieve: vi.fn(async (transferId: string) => ({
128
- id: transferId,
129
- amount_reversed: totals.get(transferId) ?? 0,
130
- })),
131
- },
132
- failNextCallFor: (transferId: string) => failOnce.add(transferId),
133
- closeGate: () => {
134
- gateOpen = false;
135
- },
136
- openGate: () => {
137
- gateOpen = true;
138
- const w = waiters;
139
- waiters = [];
140
- blockedCount = 0;
141
- w.forEach((res) => res());
142
- },
143
- blocked: () => blockedCount,
144
- total: (transferId: string) => totals.get(transferId) ?? 0,
145
- };
146
- return stripe;
147
- }
148
-
149
- const asStripe = (s: ReturnType<typeof makeRacingStripe>) =>
150
- s as unknown as Parameters<typeof reverseTransfers>[0];
151
-
152
- async function waitFor(cond: () => boolean, label: string): Promise<void> {
153
- for (let i = 0; i < 400; i++) {
154
- if (cond()) return;
155
- await new Promise((r) => setTimeout(r, 5));
156
- }
157
- throw new Error(`timed out waiting for ${label}`);
158
- }
159
-
160
- async function seedLeg(
161
- t: ReturnType<typeof convexTest>,
162
- args: { stripeTransferId: string; sourceChargeId: string; amount: number },
163
- ) {
164
- await t.mutation(api.connect.mutations.upsertTransfer, {
165
- ...args,
166
- destinationAccountId: `acct_${args.stripeTransferId}`,
167
- currency: "usd",
168
- role: "store" as const,
169
- status: "paid" as const,
170
- });
171
- }
172
-
173
- describe("BTS-102 — amount-mode reclaims the full requested total, byte-identical on replay", () => {
174
- type Slice = { stripeTransferId: string; from: number; to: number };
175
- const reversed = (slices: { from: number; to: number }[]) =>
176
- slices.reduce((s, sl) => s + (sl.to - sl.from), 0);
177
- const geom = (slices: Slice[]): Slice[] =>
178
- slices.map((s) => ({
179
- stripeTransferId: s.stripeTransferId,
180
- from: s.from,
181
- to: s.to,
182
- }));
183
-
184
- it("a 33/33/34 clawback of 10 claims exactly 10 (no dropped residue), and a redelivery replays it byte-for-byte", async () => {
185
- const t = convexTest(schema, modules);
186
-
187
- // Three legs whose pro-rata shares of 10 each round DOWN (3.3/3.3/3.4):
188
- // independent rounding claims 3+3+3=9 and the leftover cent is lost.
189
- await seedLeg(t, {
190
- stripeTransferId: "tr_t1",
191
- sourceChargeId: "ch_thirds",
192
- amount: 33,
193
- });
194
- await seedLeg(t, {
195
- stripeTransferId: "tr_t2",
196
- sourceChargeId: "ch_thirds",
197
- amount: 33,
198
- });
199
- await seedLeg(t, {
200
- stripeTransferId: "tr_t3",
201
- sourceChargeId: "ch_thirds",
202
- amount: 34,
203
- });
204
-
205
- // Fresh claim: the recorded plan must reclaim the full 10.
206
- const fresh = await t.mutation(api.connect.mutations.claimReversalSlices, {
207
- operationId: "dp_thirds",
208
- sourceChargeId: "ch_thirds",
209
- mode: { kind: "amount", amount: 10 },
210
- });
211
- expect(fresh.replay).toBe(false);
212
- expect(reversed(fresh.slices)).toBe(10);
213
-
214
- // The stored op is the PERMANENT, replayed-forever record — it too must
215
- // carry the full 10, not a short plan.
216
- const op = await t.query(api.connect.queries.getReversalOp, {
217
- operationId: "dp_thirds",
218
- });
219
- expect(op).not.toBeNull();
220
- expect(reversed(op!.slices)).toBe(10);
221
-
222
- // Redelivery under the same operationId replays the recorded slices verbatim
223
- // — byte-identical geometry, still summing to 10.
224
- const replay = await t.mutation(api.connect.mutations.claimReversalSlices, {
225
- operationId: "dp_thirds",
226
- sourceChargeId: "ch_thirds",
227
- mode: { kind: "amount", amount: 10 },
228
- });
229
- expect(replay.replay).toBe(true);
230
- expect(geom(replay.slices)).toEqual(geom(fresh.slices));
231
- expect(reversed(replay.slices)).toBe(10);
232
- });
233
- });
234
-
235
- describe("BTS-63 race 1 — refund path: concurrent DISTINCT refunds must not double-reverse", () => {
236
- it("two refunds computing the same target from the same pre-write state reverse it once", async () => {
237
- const t = convexTest(schema, modules);
238
- const ctx = makeCtx(t);
239
- const component = proxyComponent();
240
- const stripe = makeRacingStripe();
241
-
242
- // Charge 10000, single split leg of 7000.
243
- await seedLeg(t, {
244
- stripeTransferId: "tr_store",
245
- sourceChargeId: "ch_race",
246
- amount: 7000,
247
- });
248
-
249
- // Refunds A and B (2000 each) land back-to-back: both refund.created
250
- // handlers fresh-read the charge and see cumulative amount_refunded=4000,
251
- // so both compute the same cumulative target round(7000 × 0.4) = 2800.
252
- const opts = {
253
- sourceChargeId: "ch_race",
254
- chargeAmount: 10000,
255
- amountRefunded: 4000,
256
- };
257
-
258
- // Hold Stripe calls so both handlers pass their read-and-compute step
259
- // before either records anything.
260
- stripe.closeGate();
261
- const pA = reverseTransfersForRefund(asStripe(stripe), component, ctx, {
262
- ...opts,
263
- refundId: "re_A",
264
- });
265
- await waitFor(() => stripe.blocked() >= 1, "refund A to reach Stripe");
266
-
267
- let bSettled = false;
268
- const pB = reverseTransfersForRefund(asStripe(stripe), component, ctx, {
269
- ...opts,
270
- refundId: "re_B",
271
- }).finally(() => {
272
- bSettled = true;
273
- });
274
- // B either reaches Stripe too (the racy pre-fix behavior) or finishes
275
- // without a Stripe call (the fixed behavior — its claim comes back empty).
276
- await waitFor(
277
- () => stripe.blocked() >= 2 || bSettled,
278
- "refund B to reach Stripe or settle",
279
- );
280
-
281
- stripe.openGate();
282
- await Promise.all([pA, pB]);
283
-
284
- // 40% of the 7000 leg is 2800 — reversed exactly once across both refunds.
285
- expect(stripe.total("tr_store")).toBe(2800);
286
-
287
- // And the ledger mirrors what actually moved on Stripe.
288
- const rows = await t.query(api.connect.queries.listTransfersByCharge, {
289
- sourceChargeId: "ch_race",
290
- });
291
- expect(rows[0]!.reversedAmount).toBe(2800);
292
- expect(rows[0]!.reversedAmount).toBe(stripe.total("tr_store"));
293
- });
294
- });
295
-
296
- describe("BTS-63 race 2 — dispute path: retry after partial success must converge", () => {
297
- it("claws back all 120 legs and converges after a failure beyond the former cap", async () => {
298
- const t = convexTest(schema, modules);
299
- const ctx = makeCtx(t);
300
- const component = proxyComponent();
301
- const stripe = makeRacingStripe();
302
- for (let i = 0; i < 120; i++) {
303
- await seedLeg(t, {
304
- stripeTransferId: `tr_large_${i}`,
305
- sourceChargeId: "ch_large",
306
- amount: 100,
307
- });
308
- }
309
- const opts = {
310
- sourceChargeId: "ch_large",
311
- amount: 6000,
312
- operationId: "dispute_large",
313
- };
314
- stripe.failNextCallFor("tr_large_75");
315
- await expect(
316
- reverseTransfers(asStripe(stripe), component, ctx, opts),
317
- ).rejects.toThrow(/network error/);
318
- await reverseTransfers(asStripe(stripe), component, ctx, opts);
319
- // A further redelivery must not move money or conflict with earlier keys.
320
- await reverseTransfers(asStripe(stripe), component, ctx, opts);
321
- const rows = await t.query(api.connect.queries.listTransfersByCharge, {
322
- sourceChargeId: "ch_large",
323
- });
324
- expect(rows).toHaveLength(120);
325
- expect(rows.reduce((sum, row) => sum + (row.reversedAmount ?? 0), 0)).toBe(
326
- 6000,
327
- );
328
- for (const row of rows) {
329
- expect(row.reversedAmount).toBe(50);
330
- expect(stripe.total(row.stripeTransferId)).toBe(50);
331
- }
332
- });
333
- const DISPUTE = {
334
- sourceChargeId: "ch_dp",
335
- amount: 4500,
336
- operationId: "dp_1",
337
- };
338
-
339
- async function seedDisputeLegs(t: ReturnType<typeof convexTest>) {
340
- await seedLeg(t, {
341
- stripeTransferId: "tr_s1",
342
- sourceChargeId: "ch_dp",
343
- amount: 8000,
344
- });
345
- await seedLeg(t, {
346
- stripeTransferId: "tr_s2",
347
- sourceChargeId: "ch_dp",
348
- amount: 1000,
349
- });
350
- }
351
-
352
- it("a redelivery after the second leg failed does not double-record the first leg", async () => {
353
- const t = convexTest(schema, modules);
354
- const ctx = makeCtx(t);
355
- const component = proxyComponent();
356
- const stripe = makeRacingStripe();
357
- await seedDisputeLegs(t);
358
-
359
- // First delivery: leg 1 (pro-rata 4000) reverses and records, leg 2's
360
- // Stripe call dies → the event fails and Stripe redelivers.
361
- stripe.failNextCallFor("tr_s2");
362
- await expect(
363
- reverseTransfers(asStripe(stripe), component, ctx, DISPUTE),
364
- ).rejects.toThrow(/network error/);
365
- expect(stripe.total("tr_s1")).toBe(4000);
366
-
367
- // Redelivery: must finish the job — leg 2 gets its 500 — without
368
- // re-reversing or double-recording leg 1.
369
- await reverseTransfers(asStripe(stripe), component, ctx, DISPUTE);
370
-
371
- expect(stripe.total("tr_s1")).toBe(4000);
372
- expect(stripe.total("tr_s2")).toBe(500);
373
-
374
- const rows = await t.query(api.connect.queries.listTransfersByCharge, {
375
- sourceChargeId: "ch_dp",
376
- });
377
- const byId = new Map(rows.map((r) => [r.stripeTransferId, r]));
378
- // Pre-fix, the replayed leg-1 call re-records cumulatively: 4000 → 8000.
379
- expect(byId.get("tr_s1")!.reversedAmount).toBe(4000);
380
- expect(byId.get("tr_s2")!.reversedAmount).toBe(500);
381
- });
382
-
383
- it("a redelivery after an interleaved reversal must not reuse a key with different params", async () => {
384
- const t = convexTest(schema, modules);
385
- const ctx = makeCtx(t);
386
- const component = proxyComponent();
387
- const stripe = makeRacingStripe();
388
- await seedDisputeLegs(t);
389
-
390
- // First delivery: leg 1 reverses 4000 and records; leg 2 fails.
391
- stripe.failNextCallFor("tr_s2");
392
- await expect(
393
- reverseTransfers(asStripe(stripe), component, ctx, DISPUTE),
394
- ).rejects.toThrow(/network error/);
395
-
396
- // Between deliveries a refund clawback confirms more reversal on leg 1,
397
- // shrinking its un-reversed remainder from 4000 to 2000.
398
- await t.mutation(api.connect.mutations.recordTransferReversal, {
399
- stripeTransferId: "tr_s1",
400
- reversedAmount: 6000,
401
- });
402
-
403
- // Redelivery: pre-fix this recomputes leg 1's amount as min(4000, 2000)
404
- // = 2000 and re-sends it under the already-used bs_rev_dp_1_tr_s1 key —
405
- // Stripe rejects same-key-different-params and the event retries forever.
406
- await reverseTransfers(asStripe(stripe), component, ctx, DISPUTE);
407
-
408
- // Leg 1's share was already executed on the first delivery; only leg 2
409
- // still had money to move.
410
- expect(stripe.total("tr_s1")).toBe(4000);
411
- expect(stripe.total("tr_s2")).toBe(500);
412
- });
413
- });
414
-
415
- describe("BTS-63 race 3 — a transiently-failed operation must not be leapfrogged by a sibling", () => {
416
- // The hole-leapfrog regression (independent PR #61 review, BLOCKER 1): an
417
- // operation claims a slice, its Stripe call fails transiently, and a SIBLING
418
- // operation claims the next slice and confirms past the hole. The failed
419
- // operation's retry then sees `confirmed >= to` and silently skips — its
420
- // money never moves, the ledger overstates the reversal, and the
421
- // claimed>confirmed marker is erased. The executor must refuse to run a
422
- // slice whose predecessor claim is unexecuted, so events retry until the
423
- // hole is filled and every claimed slice eventually moves.
424
-
425
- it("refund path: R1 fails once, R2 lands, R1 retries — every claimed slice still moves", async () => {
426
- const t = convexTest(schema, modules);
427
- const ctx = makeCtx(t);
428
- const component = proxyComponent();
429
- const stripe = makeRacingStripe();
430
-
431
- await seedLeg(t, {
432
- stripeTransferId: "tr_leap",
433
- sourceChargeId: "ch_leap",
434
- amount: 7000,
435
- });
436
-
437
- // R1 (cumulative refunded 4000/10000 → target 2800) claims [0,2800) but
438
- // its Stripe call dies on a transient network error → the event retries.
439
- stripe.failNextCallFor("tr_leap");
440
- const r1 = () =>
441
- reverseTransfersForRefund(asStripe(stripe), component, ctx, {
442
- sourceChargeId: "ch_leap",
443
- refundId: "re_A",
444
- chargeAmount: 10000,
445
- amountRefunded: 4000,
446
- });
447
- await expect(r1()).rejects.toThrow(/network error/);
448
- expect(stripe.total("tr_leap")).toBe(0);
449
-
450
- // R2 (cumulative refunded 8000 → target 5600) lands before R1's retry and
451
- // claims [2800,5600). It must NOT execute past R1's unexecuted hole —
452
- // pre-gate it did, confirming the ledger to 5600 with only 2800 moved.
453
- const r2 = () =>
454
- reverseTransfersForRefund(asStripe(stripe), component, ctx, {
455
- sourceChargeId: "ch_leap",
456
- refundId: "re_B",
457
- chargeAmount: 10000,
458
- amountRefunded: 8000,
459
- });
460
- await r2().catch(() => {}); // blocked (fixed) or leapfrogs (the bug)
461
-
462
- // At-least-once delivery: both events retry until they succeed.
463
- await r1();
464
- await r2();
465
-
466
- // 80% of the 7000 leg = 5600 actually reversed at Stripe, and the ledger
467
- // mirrors what actually moved — no silent lost clawback.
468
- expect(stripe.total("tr_leap")).toBe(5600);
469
- const rows = await t.query(api.connect.queries.listTransfersByCharge, {
470
- sourceChargeId: "ch_leap",
471
- });
472
- expect(rows[0]!.reversedAmount).toBe(stripe.total("tr_leap"));
473
- });
474
-
475
- it("dispute path: the clawback fails once, a refund confirms past it, the redelivery still claws back", async () => {
476
- const t = convexTest(schema, modules);
477
- const ctx = makeCtx(t);
478
- const component = proxyComponent();
479
- const stripe = makeRacingStripe();
480
-
481
- await seedLeg(t, {
482
- stripeTransferId: "tr_lp2",
483
- sourceChargeId: "ch_lp2",
484
- amount: 8000,
485
- });
486
-
487
- // Dispute clawback (amount 4000) claims [0,4000); its Stripe call dies.
488
- stripe.failNextCallFor("tr_lp2");
489
- const clawback = () =>
490
- reverseTransfers(asStripe(stripe), component, ctx, {
491
- sourceChargeId: "ch_lp2",
492
- amount: 4000,
493
- operationId: "dp_leap",
494
- });
495
- await expect(clawback()).rejects.toThrow(/network error/);
496
-
497
- // A refund (6000/10000 → target 4800) claims [4000,4800) behind the hole.
498
- const refund = () =>
499
- reverseTransfersForRefund(asStripe(stripe), component, ctx, {
500
- sourceChargeId: "ch_lp2",
501
- refundId: "re_C",
502
- chargeAmount: 10000,
503
- amountRefunded: 6000,
504
- });
505
- await refund().catch(() => {});
506
-
507
- // Both events retry until they succeed.
508
- await clawback();
509
- await refund();
510
-
511
- expect(stripe.total("tr_lp2")).toBe(4800);
512
- const rows = await t.query(api.connect.queries.listTransfersByCharge, {
513
- sourceChargeId: "ch_lp2",
514
- });
515
- expect(rows[0]!.reversedAmount).toBe(stripe.total("tr_lp2"));
516
- });
517
- });
518
-
519
- describe("BTS-74 — reclaim/expiry of dead reversal claims", () => {
520
- const DAY = 24 * 60 * 60 * 1000;
521
-
522
- // A permanently-dead claim: an operation claims a slice, its Stripe call
523
- // dies, and — unlike the transient case (race 3) — its webhook event is never
524
- // redelivered (Stripe's ~72h retries exhaust). The claim frontier then sits
525
- // ahead of the confirmed reversedAmount forever, and any successor operation
526
- // that claimed behind the hole blocks on `predecessor claim unexecuted`.
527
-
528
- it("re-executes a dead claim, filling the hole so a blocked successor can proceed", async () => {
529
- const t = convexTest(schema, modules);
530
- const ctx = makeCtx(t);
531
- const component = proxyComponent();
532
- const stripe = makeRacingStripe();
533
-
534
- await seedLeg(t, {
535
- stripeTransferId: "tr_dead",
536
- sourceChargeId: "ch_dead",
537
- amount: 7000,
538
- });
539
-
540
- // D1 (dispute clawback, amount 2800) claims [0,2800); its Stripe call dies
541
- // and the event is NEVER redelivered — a permanently-dead claim.
542
- stripe.failNextCallFor("tr_dead");
543
- await expect(
544
- reverseTransfers(asStripe(stripe), component, ctx, {
545
- sourceChargeId: "ch_dead",
546
- amount: 2800,
547
- operationId: "dp_dead",
548
- }),
549
- ).rejects.toThrow(/network error/);
550
- expect(stripe.total("tr_dead")).toBe(0);
551
-
552
- // A refund (target 5600) claims [2800,5600) behind the hole and BLOCKS —
553
- // its predecessor's claim is unexecuted.
554
- await expect(
555
- reverseTransfersForRefund(asStripe(stripe), component, ctx, {
556
- sourceChargeId: "ch_dead",
557
- refundId: "re_after",
558
- chargeAmount: 10000,
559
- amountRefunded: 8000,
560
- }),
561
- ).rejects.toThrow(/predecessor claim unexecuted/);
562
-
563
- // Ops reclaim: re-execute the dead claim (default remedy). It replays the
564
- // recorded slice under the same idempotency key and actually moves the money.
565
- const res = await reclaimReversalClaim(asStripe(stripe), component, ctx, {
566
- operationId: "dp_dead",
567
- });
568
- expect(res.mode).toBe("reexecute");
569
- expect(stripe.total("tr_dead")).toBe(2800);
570
-
571
- // The successor refund now proceeds — the hole is filled.
572
- await reverseTransfersForRefund(asStripe(stripe), component, ctx, {
573
- sourceChargeId: "ch_dead",
574
- refundId: "re_after",
575
- chargeAmount: 10000,
576
- amountRefunded: 8000,
577
- });
578
- expect(stripe.total("tr_dead")).toBe(5600);
579
-
580
- const rows = await t.query(api.connect.queries.listTransfersByCharge, {
581
- sourceChargeId: "ch_dead",
582
- });
583
- expect(rows[0]!.reversedAmount).toBe(5600);
584
- // No longer wedged.
585
- const wedged = await listWedgedReversalClaims(component, ctx);
586
- expect(wedged).toHaveLength(0);
587
- });
588
-
589
- it("lists a wedged leg (claimed > reversed) with its blocking op record", async () => {
590
- const t = convexTest(schema, modules);
591
- const ctx = makeCtx(t);
592
- const component = proxyComponent();
593
- const stripe = makeRacingStripe();
594
-
595
- await seedLeg(t, {
596
- stripeTransferId: "tr_wedge",
597
- sourceChargeId: "ch_wedge",
598
- amount: 5000,
599
- });
600
-
601
- stripe.failNextCallFor("tr_wedge");
602
- await expect(
603
- reverseTransfers(asStripe(stripe), component, ctx, {
604
- sourceChargeId: "ch_wedge",
605
- amount: 2000,
606
- operationId: "dp_wedge",
607
- }),
608
- ).rejects.toThrow(/network error/);
609
-
610
- const wedged = await listWedgedReversalClaims(component, ctx);
611
- expect(wedged).toHaveLength(1);
612
- expect(wedged[0]!.stripeTransferId).toBe("tr_wedge");
613
- expect(wedged[0]!.reversedAmount).toBe(0);
614
- expect(wedged[0]!.reversalClaimedAmount).toBe(2000);
615
- expect(wedged[0]!.blockingOps).toEqual([
616
- { operationId: "dp_wedge", from: 0, to: 2000 },
617
- ]);
618
- });
619
-
620
- it("releases a dead frontier claim after the idempotency window once live Stripe confirms no money moved", async () => {
621
- const t = convexTest(schema, modules);
622
- const ctx = makeCtx(t);
623
- const component = proxyComponent();
624
- const stripe = makeRacingStripe();
625
-
626
- await seedLeg(t, {
627
- stripeTransferId: "tr_rel",
628
- sourceChargeId: "ch_rel",
629
- amount: 6000,
630
- });
631
-
632
- stripe.failNextCallFor("tr_rel");
633
- await expect(
634
- reverseTransfers(asStripe(stripe), component, ctx, {
635
- sourceChargeId: "ch_rel",
636
- amount: 3000,
637
- operationId: "dp_rel",
638
- }),
639
- ).rejects.toThrow(/network error/);
640
-
641
- // Release: past the >24h idempotency window, and live Stripe shows the
642
- // transfer's amount_reversed is still 0 — the money never moved.
643
- const res = await reclaimReversalClaim(asStripe(stripe), component, ctx, {
644
- operationId: "dp_rel",
645
- mode: "release",
646
- minAgeMs: DAY,
647
- now: Date.now() + 2 * DAY,
648
- });
649
- expect(res.mode).toBe("release");
650
- if (res.mode === "release") expect(res.released).toBe(true);
651
-
652
- // The op record is gone and the claim frontier rewound to the confirmed
653
- // amount, so a fresh operation can claim the released capacity from 0.
654
- const op = await t.query(api.connect.queries.getReversalOp, {
655
- operationId: "dp_rel",
656
- });
657
- expect(op).toBeNull();
658
- const rows = await t.query(api.connect.queries.listTransfersByCharge, {
659
- sourceChargeId: "ch_rel",
660
- });
661
- expect(rows[0]!.reversalClaimedAmount ?? 0).toBe(0);
662
-
663
- const fresh = await reverseTransfers(asStripe(stripe), component, ctx, {
664
- sourceChargeId: "ch_rel",
665
- amount: 3000,
666
- operationId: "dp_fresh",
667
- });
668
- expect(fresh.reversals[0]!.amount).toBe(3000);
669
- expect(stripe.total("tr_rel")).toBe(3000);
670
- });
671
-
672
- it("refuses to release a still-live claim inside the idempotency window (money may be in flight)", async () => {
673
- const t = convexTest(schema, modules);
674
- const ctx = makeCtx(t);
675
- const component = proxyComponent();
676
- const stripe = makeRacingStripe();
677
-
678
- await seedLeg(t, {
679
- stripeTransferId: "tr_live",
680
- sourceChargeId: "ch_live",
681
- amount: 6000,
682
- });
683
-
684
- stripe.failNextCallFor("tr_live");
685
- await expect(
686
- reverseTransfers(asStripe(stripe), component, ctx, {
687
- sourceChargeId: "ch_live",
688
- amount: 3000,
689
- operationId: "dp_live",
690
- }),
691
- ).rejects.toThrow(/network error/);
692
-
693
- // Only ~1 minute old: still within the idempotency window, so a retry could
694
- // still fire the reversal. Release must refuse.
695
- await expect(
696
- reclaimReversalClaim(asStripe(stripe), component, ctx, {
697
- operationId: "dp_live",
698
- mode: "release",
699
- minAgeMs: DAY,
700
- now: Date.now() + 60_000,
701
- }),
702
- ).rejects.toThrow(/idempotency window|too recent/i);
703
-
704
- // The claim is untouched — still wedged, still recorded.
705
- const wedged = await listWedgedReversalClaims(component, ctx);
706
- expect(wedged).toHaveLength(1);
707
- const op = await t.query(api.connect.queries.getReversalOp, {
708
- operationId: "dp_live",
709
- });
710
- expect(op).not.toBeNull();
711
- });
712
-
713
- it("refuses to release when live Stripe shows the money already moved", async () => {
714
- const t = convexTest(schema, modules);
715
- const ctx = makeCtx(t);
716
- const component = proxyComponent();
717
- const stripe = makeRacingStripe();
718
-
719
- await seedLeg(t, {
720
- stripeTransferId: "tr_moved",
721
- sourceChargeId: "ch_moved",
722
- amount: 6000,
723
- });
724
-
725
- // The claim's money DID move at Stripe, but the ledger confirm was lost
726
- // (crash between createReversal and recordTransferReversal): the op row and
727
- // the claim frontier exist, but amount_reversed already covers the slice.
728
- stripe.failNextCallFor("tr_moved");
729
- await expect(
730
- reverseTransfers(asStripe(stripe), component, ctx, {
731
- sourceChargeId: "ch_moved",
732
- amount: 3000,
733
- operationId: "dp_moved",
734
- }),
735
- ).rejects.toThrow(/network error/);
736
- // Simulate the money having actually moved out of band.
737
- await stripe.transfers.createReversal(
738
- "tr_moved",
739
- { amount: 3000 },
740
- { idempotencyKey: "out_of_band" },
741
- );
742
- expect(stripe.total("tr_moved")).toBe(3000);
743
-
744
- // Release must refuse — releasing here would rewind a claim whose money is
745
- // gone, permanently understating the ledger. Re-execution (which records
746
- // the already-moved money) is the correct remedy.
747
- await expect(
748
- reclaimReversalClaim(asStripe(stripe), component, ctx, {
749
- operationId: "dp_moved",
750
- mode: "release",
751
- minAgeMs: DAY,
752
- now: Date.now() + 2 * DAY,
753
- }),
754
- ).rejects.toThrow(/already moved|money moved/i);
755
- });
756
- });
757
-
758
- describe("BTS-79 — releaseReversalClaim: multi-leg all-or-nothing atomicity", () => {
759
- const DAY = 24 * 60 * 60 * 1000;
760
-
761
- /**
762
- * Seeds two legs under one charge and creates ONE dead reversal op whose
763
- * plan spans both: with leg amounts 100/300 and a claim of `amount: 398`,
764
- * `computeReversalSlices`'s pro-rata rounding claims leg A FULLY (100 of
765
- * 100 — its prorata share rounds up to its cap) while leg B is left
766
- * PARTIAL (298 of 300, capped by the remaining budget). Both legs'
767
- * Stripe calls die (network error), so neither leg's money actually moves
768
- * — the op is a permanently-dead claim, same shape as the BTS-74 tests
769
- * above, but with two legs instead of one.
770
- *
771
- * This shared base state is valid-and-releasable for BOTH legs as-is; each
772
- * test below invalidates leg B in exactly one way (one of the three throw
773
- * branches in `releaseReversalClaim`, mutations.ts ~527-545) and asserts
774
- * that the *entire* release is refused and *neither* leg's row nor the op
775
- * row changed even one field — true all-or-nothing.
776
- */
777
- async function seedMixedOp(
778
- stripe: ReturnType<typeof makeRacingStripe>,
779
- t: ReturnType<typeof convexTest>,
780
- ctx: RunCtx,
781
- component: Component,
782
- tag: string,
783
- ) {
784
- const chargeId = `ch_mix_${tag}`;
785
- const legA = `tr_mixA_${tag}`;
786
- const legB = `tr_mixB_${tag}`;
787
- const operationId = `dp_mix_${tag}`;
788
-
789
- await seedLeg(t, {
790
- stripeTransferId: legA,
791
- sourceChargeId: chargeId,
792
- amount: 100,
793
- });
794
- await seedLeg(t, {
795
- stripeTransferId: legB,
796
- sourceChargeId: chargeId,
797
- amount: 300,
798
- });
799
-
800
- // Only leg A's call needs to fail: it is processed first (rows come back
801
- // in seed order), so its network error aborts the executor loop before
802
- // leg B's Stripe call is ever attempted — leg B's `failNextCallFor` flag
803
- // would otherwise sit unconsumed and misfire on a later, unrelated call.
804
- stripe.failNextCallFor(legA);
805
- await expect(
806
- reverseTransfers(asStripe(stripe), component, ctx, {
807
- sourceChargeId: chargeId,
808
- amount: 398,
809
- operationId,
810
- }),
811
- ).rejects.toThrow(/network error/);
812
- expect(stripe.total(legA)).toBe(0);
813
- expect(stripe.total(legB)).toBe(0);
814
-
815
- const rows = await t.query(api.connect.queries.listTransfersByCharge, {
816
- sourceChargeId: chargeId,
817
- });
818
- const byId = new Map(rows.map((r) => [r.stripeTransferId, r]));
819
- expect(byId.get(legA)!.reversalClaimedAmount).toBe(100);
820
- expect(byId.get(legB)!.reversalClaimedAmount).toBe(298);
821
-
822
- return { chargeId, legA, legB, operationId };
823
- }
824
-
825
- async function snapshot(
826
- t: ReturnType<typeof convexTest>,
827
- chargeId: string,
828
- operationId: string,
829
- ) {
830
- const rows = await t.query(api.connect.queries.listTransfersByCharge, {
831
- sourceChargeId: chargeId,
832
- });
833
- const op = await t.query(api.connect.queries.getReversalOp, {
834
- operationId,
835
- });
836
- return { rows, op };
837
- }
838
-
839
- it("leg A valid + leg B's claim frontier moved past this op's slice (mutations.ts ~527-533) — refuses, rewinds neither leg", async () => {
840
- const t = convexTest(schema, modules);
841
- const ctx = makeCtx(t);
842
- const component = proxyComponent();
843
- const stripe = makeRacingStripe();
844
- const { chargeId, legB, operationId } = await seedMixedOp(
845
- stripe,
846
- t,
847
- ctx,
848
- component,
849
- "frontier",
850
- );
851
-
852
- // A successor operation claims further capacity on the same charge. Leg A
853
- // is already fully claimed, so its take is capped at 0 by ANY mode
854
- // (`leg.amount - from` = 0) — it is untouched. Leg B still has 2 left, so
855
- // this advances its frontier from 298 to 299, past dp_mix_frontier's
856
- // recorded slice.to=298 for leg B. This is a pure claim (no Stripe call),
857
- // exactly what a real concurrent operation would do.
858
- await t.mutation(api.connect.mutations.claimReversalSlices, {
859
- operationId: "dp_successor_frontier",
860
- sourceChargeId: chargeId,
861
- mode: { kind: "amount", amount: 1 },
862
- });
863
- const afterSuccessor = await t.query(
864
- api.connect.queries.listTransfersByCharge,
865
- { sourceChargeId: chargeId },
866
- );
867
- expect(
868
- afterSuccessor.find((r) => r.stripeTransferId === legB)!
869
- .reversalClaimedAmount,
870
- ).toBe(299);
871
-
872
- const before = await snapshot(t, chargeId, operationId);
873
-
874
- await expect(
875
- reclaimReversalClaim(asStripe(stripe), component, ctx, {
876
- operationId,
877
- mode: "release",
878
- minAgeMs: DAY,
879
- now: Date.now() + 2 * DAY,
880
- }),
881
- ).rejects.toThrow(/claim frontier .* moved past/);
882
-
883
- // Byte-for-byte unchanged from right before the release attempt — leg A's
884
- // (valid) row was never patched either, proving the abort happens before
885
- // ANY leg is written, not just before the invalid one.
886
- const after = await snapshot(t, chargeId, operationId);
887
- expect(after).toEqual(before);
888
- });
889
-
890
- it("leg A valid + leg B missing from `verified` (mutations.ts ~534-539) — refuses, rewinds neither leg", async () => {
891
- const t = convexTest(schema, modules);
892
- const ctx = makeCtx(t);
893
- const component = proxyComponent();
894
- const stripe = makeRacingStripe();
895
- const { chargeId, legA, operationId } = await seedMixedOp(
896
- stripe,
897
- t,
898
- ctx,
899
- component,
900
- "missing",
901
- );
902
-
903
- const before = await snapshot(t, chargeId, operationId);
904
-
905
- // Only reachable by calling the mutation directly: `reclaimReversalClaim`
906
- // always fetches live Stripe state for every unique leg in the op, so a
907
- // caller going through the public client can never omit one. Drive the
908
- // component mutation straight to prove the mutation itself still refuses
909
- // when handed an incomplete `verified` array (e.g. a buggy caller).
910
- await expect(
911
- t.mutation(api.connect.mutations.releaseReversalClaim, {
912
- operationId,
913
- verified: [{ stripeTransferId: legA, amountReversed: 0 }],
914
- }),
915
- ).rejects.toThrow(/missing live amount_reversed/);
916
-
917
- const after = await snapshot(t, chargeId, operationId);
918
- expect(after).toEqual(before);
919
- });
920
-
921
- it("leg A valid + leg B's money already moved (mutations.ts ~540-545) — refuses, rewinds neither leg", async () => {
922
- const t = convexTest(schema, modules);
923
- const ctx = makeCtx(t);
924
- const component = proxyComponent();
925
- const stripe = makeRacingStripe();
926
- const { chargeId, legB, operationId } = await seedMixedOp(
927
- stripe,
928
- t,
929
- ctx,
930
- component,
931
- "moved",
932
- );
933
-
934
- // Leg B's money actually moved out of band (mirrors the single-leg
935
- // BTS-74 "already moved" test above) — live amount_reversed now exceeds
936
- // this op's slice.from for leg B, while leg A is untouched and valid.
937
- await stripe.transfers.createReversal(
938
- legB,
939
- { amount: 50 },
940
- { idempotencyKey: "oob_mix_moved" },
941
- );
942
- expect(stripe.total(legB)).toBe(50);
943
-
944
- const before = await snapshot(t, chargeId, operationId);
945
-
946
- await expect(
947
- reclaimReversalClaim(asStripe(stripe), component, ctx, {
948
- operationId,
949
- mode: "release",
950
- minAgeMs: DAY,
951
- now: Date.now() + 2 * DAY,
952
- }),
953
- ).rejects.toThrow(/already moved/);
954
-
955
- const after = await snapshot(t, chargeId, operationId);
956
- expect(after).toEqual(before);
957
- });
958
- });