@fantastic.dev/better-stripe 0.89.0 → 0.90.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.d.ts +2 -0
  4. package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.d.ts.map +1 -0
  5. package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.js +61 -0
  6. package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.js.map +1 -0
  7. package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.d.ts +2 -0
  8. package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.d.ts.map +1 -0
  9. package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js +18 -0
  10. package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js.map +1 -0
  11. package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.d.ts +2 -0
  12. package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.d.ts.map +1 -0
  13. package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js +67 -0
  14. package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js.map +1 -0
  15. package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.d.ts +2 -0
  16. package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.d.ts.map +1 -0
  17. package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js +372 -0
  18. package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js.map +1 -0
  19. package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts +24 -0
  20. package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts.map +1 -0
  21. package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js +113 -0
  22. package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js.map +1 -0
  23. package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.d.ts +55 -0
  24. package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.d.ts.map +1 -0
  25. package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.js +87 -0
  26. package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.js.map +1 -0
  27. package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts +7 -0
  28. package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts.map +1 -0
  29. package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js +130 -0
  30. package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js.map +1 -0
  31. package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.d.ts +14 -0
  32. package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.d.ts.map +1 -0
  33. package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.js +60 -0
  34. package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.js.map +1 -0
  35. package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.d.ts +2 -0
  36. package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.d.ts.map +1 -0
  37. package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js +126 -0
  38. package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js.map +1 -0
  39. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.d.mts +627 -0
  40. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.d.mts.map +1 -0
  41. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs +488 -0
  42. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs.map +1 -0
  43. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.d.mts +214 -0
  44. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.d.mts.map +1 -0
  45. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs +63 -0
  46. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs.map +1 -0
  47. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.d.mts +75 -0
  48. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.d.mts.map +1 -0
  49. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs +145 -0
  50. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs.map +1 -0
  51. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts +7 -0
  52. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts.map +1 -0
  53. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs +26 -0
  54. package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs.map +1 -0
  55. package/dist/client/billing/renewalAttach/internal/c10/appendAck.d.ts +14 -0
  56. package/dist/client/billing/renewalAttach/internal/c10/appendAck.d.ts.map +1 -0
  57. package/dist/client/billing/renewalAttach/internal/c10/appendAck.js +202 -0
  58. package/dist/client/billing/renewalAttach/internal/c10/appendAck.js.map +1 -0
  59. package/dist/client/billing/renewalAttach/internal/c10/attachEvents.d.ts +23 -0
  60. package/dist/client/billing/renewalAttach/internal/c10/attachEvents.d.ts.map +1 -0
  61. package/dist/client/billing/renewalAttach/internal/c10/attachEvents.js +117 -0
  62. package/dist/client/billing/renewalAttach/internal/c10/attachEvents.js.map +1 -0
  63. package/dist/client/billing/renewalAttach/internal/c10/configureEvents.d.ts +23 -0
  64. package/dist/client/billing/renewalAttach/internal/c10/configureEvents.d.ts.map +1 -0
  65. package/dist/client/billing/renewalAttach/internal/c10/configureEvents.js +111 -0
  66. package/dist/client/billing/renewalAttach/internal/c10/configureEvents.js.map +1 -0
  67. package/dist/client/billing/renewalAttach/internal/c10/eventCapture.d.ts +11 -0
  68. package/dist/client/billing/renewalAttach/internal/c10/eventCapture.d.ts.map +1 -0
  69. package/dist/client/billing/renewalAttach/internal/c10/eventCapture.js +376 -0
  70. package/dist/client/billing/renewalAttach/internal/c10/eventCapture.js.map +1 -0
  71. package/dist/client/billing/renewalAttach/internal/c10/eventCodec.d.ts +16 -0
  72. package/dist/client/billing/renewalAttach/internal/c10/eventCodec.d.ts.map +1 -0
  73. package/dist/client/billing/renewalAttach/internal/c10/eventCodec.js +119 -0
  74. package/dist/client/billing/renewalAttach/internal/c10/eventCodec.js.map +1 -0
  75. package/dist/client/billing/renewalAttach/internal/c10/ownData.d.ts +30 -0
  76. package/dist/client/billing/renewalAttach/internal/c10/ownData.d.ts.map +1 -0
  77. package/dist/client/billing/renewalAttach/internal/c10/ownData.js +74 -0
  78. package/dist/client/billing/renewalAttach/internal/c10/ownData.js.map +1 -0
  79. package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.d.ts +3 -0
  80. package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.d.ts.map +1 -0
  81. package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.js +3 -0
  82. package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.js.map +1 -0
  83. package/dist/client/billing/renewalAttach/internal/c10/privacy.d.ts +2 -0
  84. package/dist/client/billing/renewalAttach/internal/c10/privacy.d.ts.map +1 -0
  85. package/dist/client/billing/renewalAttach/internal/c10/privacy.js +175 -0
  86. package/dist/client/billing/renewalAttach/internal/c10/privacy.js.map +1 -0
  87. package/dist/client/billing/renewalAttach/internal/c10/publicApi.d.ts +3 -0
  88. package/dist/client/billing/renewalAttach/internal/c10/publicApi.d.ts.map +1 -0
  89. package/dist/client/billing/renewalAttach/internal/c10/publicApi.js +3 -0
  90. package/dist/client/billing/renewalAttach/internal/c10/publicApi.js.map +1 -0
  91. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.d.mts +3 -0
  92. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.d.mts.map +1 -0
  93. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs +4 -0
  94. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs.map +1 -0
  95. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.d.mts +26 -0
  96. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.d.mts.map +1 -0
  97. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs +42 -0
  98. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs.map +1 -0
  99. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.d.mts +7 -0
  100. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.d.mts.map +1 -0
  101. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs +60 -0
  102. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs.map +1 -0
  103. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.d.mts +335 -0
  104. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.d.mts.map +1 -0
  105. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs +122 -0
  106. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs.map +1 -0
  107. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.d.mts +46 -0
  108. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.d.mts.map +1 -0
  109. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs +87 -0
  110. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs.map +1 -0
  111. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.d.mts +35 -0
  112. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.d.mts.map +1 -0
  113. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs +90 -0
  114. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs.map +1 -0
  115. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.d.mts +132 -0
  116. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.d.mts.map +1 -0
  117. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs +82 -0
  118. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs.map +1 -0
  119. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.d.mts +4 -0
  120. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.d.mts.map +1 -0
  121. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs +23 -0
  122. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs.map +1 -0
  123. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.d.mts +16 -0
  124. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.d.mts.map +1 -0
  125. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs +41 -0
  126. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs.map +1 -0
  127. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.d.mts +43 -0
  128. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.d.mts.map +1 -0
  129. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs +132 -0
  130. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs.map +1 -0
  131. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.d.mts +200 -0
  132. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.d.mts.map +1 -0
  133. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs +150 -0
  134. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs.map +1 -0
  135. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.d.mts +124 -0
  136. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.d.mts.map +1 -0
  137. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs +127 -0
  138. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs.map +1 -0
  139. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.d.mts +3 -0
  140. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.d.mts.map +1 -0
  141. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs +69 -0
  142. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs.map +1 -0
  143. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.d.mts +2 -0
  144. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.d.mts.map +1 -0
  145. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs +152 -0
  146. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs.map +1 -0
  147. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.d.mts +2 -0
  148. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.d.mts.map +1 -0
  149. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs +2 -0
  150. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs.map +1 -0
  151. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.d.mts +5 -0
  152. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.d.mts.map +1 -0
  153. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs +243 -0
  154. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs.map +1 -0
  155. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.d.mts +17 -0
  156. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.d.mts.map +1 -0
  157. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs +75 -0
  158. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs.map +1 -0
  159. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.d.mts +2 -0
  160. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.d.mts.map +1 -0
  161. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs +173 -0
  162. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs.map +1 -0
  163. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.d.mts +4 -0
  164. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.d.mts.map +1 -0
  165. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs +4 -0
  166. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs.map +1 -0
  167. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.d.mts +7 -0
  168. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.d.mts.map +1 -0
  169. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs +30 -0
  170. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs.map +1 -0
  171. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.d.mts +29 -0
  172. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.d.mts.map +1 -0
  173. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs +33 -0
  174. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs.map +1 -0
  175. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f19.json +452 -0
  176. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.d.mts +2 -0
  177. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.d.mts.map +1 -0
  178. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs +173 -0
  179. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs.map +1 -0
  180. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.d.mts +2 -0
  181. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.d.mts.map +1 -0
  182. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs +449 -0
  183. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs.map +1 -0
  184. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.d.mts +9 -0
  185. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.d.mts.map +1 -0
  186. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs +27 -0
  187. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs.map +1 -0
  188. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.d.mts +7 -0
  189. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.d.mts.map +1 -0
  190. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs +150 -0
  191. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs.map +1 -0
  192. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.d.mts +3 -0
  193. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.d.mts.map +1 -0
  194. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs +503 -0
  195. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs.map +1 -0
  196. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.d.mts +2 -0
  197. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.d.mts.map +1 -0
  198. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs +91 -0
  199. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs.map +1 -0
  200. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.d.mts +14 -0
  201. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.d.mts.map +1 -0
  202. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs +41 -0
  203. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs.map +1 -0
  204. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.d.mts +103 -0
  205. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.d.mts.map +1 -0
  206. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs +46 -0
  207. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs.map +1 -0
  208. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.d.mts +73 -0
  209. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.d.mts.map +1 -0
  210. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs +294 -0
  211. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs.map +1 -0
  212. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.d.mts +2 -0
  213. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.d.mts.map +1 -0
  214. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs +60 -0
  215. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs.map +1 -0
  216. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.d.mts +58 -0
  217. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.d.mts.map +1 -0
  218. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs +96 -0
  219. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs.map +1 -0
  220. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.d.ts +2 -0
  221. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.d.ts.map +1 -0
  222. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.js +40 -0
  223. package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.js.map +1 -0
  224. package/dist/client/billing/renewalAttach/internal/material/capture.d.ts +88 -0
  225. package/dist/client/billing/renewalAttach/internal/material/capture.d.ts.map +1 -0
  226. package/dist/client/billing/renewalAttach/internal/material/capture.js +181 -0
  227. package/dist/client/billing/renewalAttach/internal/material/capture.js.map +1 -0
  228. package/dist/client/billing/renewalAttach/internal/material/classifiers.d.ts +522 -0
  229. package/dist/client/billing/renewalAttach/internal/material/classifiers.d.ts.map +1 -0
  230. package/dist/client/billing/renewalAttach/internal/material/classifiers.js +226 -0
  231. package/dist/client/billing/renewalAttach/internal/material/classifiers.js.map +1 -0
  232. package/dist/client/billing/renewalAttach/internal/material/nodeKernel.d.ts +17 -0
  233. package/dist/client/billing/renewalAttach/internal/material/nodeKernel.d.ts.map +1 -0
  234. package/dist/client/billing/renewalAttach/internal/material/nodeKernel.js +95 -0
  235. package/dist/client/billing/renewalAttach/internal/material/nodeKernel.js.map +1 -0
  236. package/dist/client/billing/renewalAttach/internal/material/readMaterial.d.ts +338 -0
  237. package/dist/client/billing/renewalAttach/internal/material/readMaterial.d.ts.map +1 -0
  238. package/dist/client/billing/renewalAttach/internal/material/readMaterial.js +122 -0
  239. package/dist/client/billing/renewalAttach/internal/material/readMaterial.js.map +1 -0
  240. package/dist/client/billing/renewalAttach/internal/material/requiredJson.d.ts +2 -0
  241. package/dist/client/billing/renewalAttach/internal/material/requiredJson.d.ts.map +1 -0
  242. package/dist/client/billing/renewalAttach/internal/material/requiredJson.js +174 -0
  243. package/dist/client/billing/renewalAttach/internal/material/requiredJson.js.map +1 -0
  244. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +16 -16
  245. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +32 -32
  246. package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
  247. package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
  248. package/dist/component/usage/allowance.fixtures.d.ts +16 -16
  249. package/dist/component/usageCredits/accounting.fixtures.d.ts +16 -16
  250. package/docs/renewal-context-reads.md +28 -0
  251. package/docs/renewal-phase-assembly.md +23 -0
  252. package/docs/renewal-raw-acquisition.md +64 -0
  253. package/package.json +1 -1
  254. package/src/client/billing/renewalAttach/internal/acquisition/array-order.test.js +70 -0
  255. package/src/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js +23 -0
  256. package/src/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js +77 -0
  257. package/src/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js +418 -0
  258. package/src/client/billing/renewalAttach/internal/acquisition/rawAcquisition.ts +160 -0
  259. package/src/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.ts +110 -0
  260. package/src/client/billing/renewalAttach/internal/acquisition/rawWireSource.ts +156 -0
  261. package/src/client/billing/renewalAttach/internal/acquisition/readLifetime.ts +64 -0
  262. package/src/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js +138 -0
  263. package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs +510 -0
  264. package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs +64 -0
  265. package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs +159 -0
  266. package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs +25 -0
  267. package/src/client/billing/renewalAttach/internal/c10/appendAck.first.test.ts +86 -0
  268. package/src/client/billing/renewalAttach/internal/c10/appendAck.ts +226 -0
  269. package/src/client/billing/renewalAttach/internal/c10/appendCodec.test.ts +186 -0
  270. package/src/client/billing/renewalAttach/internal/c10/arrayOrder.test.ts +47 -0
  271. package/src/client/billing/renewalAttach/internal/c10/attachEvents.ts +144 -0
  272. package/src/client/billing/renewalAttach/internal/c10/compiler.test.ts +443 -0
  273. package/src/client/billing/renewalAttach/internal/c10/configureEvents.ts +145 -0
  274. package/src/client/billing/renewalAttach/internal/c10/eventCapture.ts +464 -0
  275. package/src/client/billing/renewalAttach/internal/c10/eventCodec.ts +131 -0
  276. package/src/client/billing/renewalAttach/internal/c10/hardening.test.ts +175 -0
  277. package/src/client/billing/renewalAttach/internal/c10/historicalClassifier.test.ts +114 -0
  278. package/src/client/billing/renewalAttach/internal/c10/ownData.ts +103 -0
  279. package/src/client/billing/renewalAttach/internal/c10/ownerBinding.ts +2 -0
  280. package/src/client/billing/renewalAttach/internal/c10/ownerContinuations.test.ts +283 -0
  281. package/src/client/billing/renewalAttach/internal/c10/privacy.ts +181 -0
  282. package/src/client/billing/renewalAttach/internal/c10/publicApi.ts +8 -0
  283. package/src/client/billing/renewalAttach/internal/c10/reflectionPrivacy.test.ts +87 -0
  284. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs +3 -0
  285. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs +49 -0
  286. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs +63 -0
  287. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs +160 -0
  288. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs +88 -0
  289. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs +102 -0
  290. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs +82 -0
  291. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs +20 -0
  292. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs +41 -0
  293. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs +137 -0
  294. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs +153 -0
  295. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs +127 -0
  296. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs +85 -0
  297. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs +170 -0
  298. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs +6 -0
  299. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs +295 -0
  300. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs +78 -0
  301. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs +177 -0
  302. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs +8 -0
  303. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs +34 -0
  304. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs +32 -0
  305. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f19.json +452 -0
  306. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs +177 -0
  307. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs +466 -0
  308. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs +29 -0
  309. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs +165 -0
  310. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs +507 -0
  311. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs +89 -0
  312. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs +38 -0
  313. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs +45 -0
  314. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs +309 -0
  315. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs +58 -0
  316. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs +104 -0
  317. package/src/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.ts +43 -0
  318. package/src/client/billing/renewalAttach/internal/material/capture.ts +243 -0
  319. package/src/client/billing/renewalAttach/internal/material/classifiers.test.ts +510 -0
  320. package/src/client/billing/renewalAttach/internal/material/classifiers.ts +313 -0
  321. package/src/client/billing/renewalAttach/internal/material/nodeKernel.ts +118 -0
  322. package/src/client/billing/renewalAttach/internal/material/readMaterial.ts +176 -0
  323. package/src/client/billing/renewalAttach/internal/material/requiredJson.ts +183 -0
@@ -0,0 +1,510 @@
1
+ // Extracted from the maintained 46-test synthetic fixture; no provider resource.
2
+ const expected = {
3
+ customerAccountId: "acct_buyer",
4
+ subscriptionId: "sub_original",
5
+ itemId: "si_original",
6
+ currentPriceId: "price_original",
7
+ currentProductId: "prod_original",
8
+ targetPriceId: "price_target",
9
+ targetProductId: "prod_other",
10
+ periodStart: 1700000000,
11
+ periodEnd: 1702592000,
12
+ livemode: false,
13
+ };
14
+
15
+ function price(id = "price_original", product = "prod_original") {
16
+ return {
17
+ id,
18
+ product,
19
+ object: "price",
20
+ active: true,
21
+ livemode: false,
22
+ type: "recurring",
23
+ currency: "usd",
24
+ billing_scheme: "per_unit",
25
+ recurring: { interval: "month", interval_count: 1, usage_type: "licensed" },
26
+ };
27
+ }
28
+ export function input() {
29
+ return {
30
+ expected: structuredClone(expected),
31
+ key: "renewal:original-operation",
32
+ subscription: {
33
+ id: "sub_original",
34
+ object: "subscription",
35
+ customer_account: "acct_buyer",
36
+ status: "active",
37
+ currency: "usd",
38
+ livemode: false,
39
+ schedule: null,
40
+ cancel_at: null,
41
+ cancel_at_period_end: false,
42
+ pause_collection: null,
43
+ pending_update: null,
44
+ default_source: null,
45
+ payment_settings: {
46
+ payment_method_options: null,
47
+ payment_method_types: null,
48
+ save_default_payment_method: "off",
49
+ },
50
+ application_fee_percent: null,
51
+ trial_end: 1690000000,
52
+ items: {
53
+ has_more: false,
54
+ data: [
55
+ {
56
+ id: "si_original",
57
+ object: "subscription_item",
58
+ subscription: "sub_original",
59
+ current_period_start: expected.periodStart,
60
+ current_period_end: expected.periodEnd,
61
+ quantity: 3,
62
+ price: price(),
63
+ },
64
+ ],
65
+ },
66
+ metadata: { original: "keep" },
67
+ },
68
+ targetPrice: price("price_target", "prod_other"),
69
+ };
70
+ }
71
+
72
+ // Additional fresh synthetic C3 raw leaves; not an observed provider response.
73
+ export function receiptInput() {
74
+ const preparation = input();
75
+ preparation.subscription.customer = "cus_buyer";
76
+ preparation.billingCustomer = {
77
+ id: "cus_buyer",
78
+ object: "customer",
79
+ customer_account: "acct_buyer",
80
+ livemode: false,
81
+ discount: null,
82
+ metadata: { source: "SYNTHETIC_PUBLIC_C3" },
83
+ };
84
+ const attachRequest = {
85
+ preparation,
86
+ apiVersion: "2026-09-30.endive",
87
+ attachKey: "attach:explicit",
88
+ firstDispatchedAt: 1700000001,
89
+ };
90
+ const providerSnapshot = {
91
+ id: "sub_sched_owned",
92
+ object: "subscription_schedule",
93
+ customer_account: "acct_buyer",
94
+ livemode: false,
95
+ customer: "cus_buyer",
96
+ subscription: "sub_original",
97
+ status: "active",
98
+ created: 1700000001,
99
+ released_at: null,
100
+ released_subscription: null,
101
+ canceled_at: null,
102
+ completed_at: null,
103
+ end_behavior: "release",
104
+ billing_mode: { type: "flexible" },
105
+ metadata: { source: "SYNTHETIC_PUBLIC_C3", opaque: "keep" },
106
+ current_phase: { start_date: 1700000000, end_date: 1702592000 },
107
+ default_settings: {
108
+ default_payment_method: null,
109
+ application_fee_percent: null,
110
+ collection_method: "charge_automatically",
111
+ invoice_settings: { days_until_due: null },
112
+ },
113
+ phases: [
114
+ {
115
+ start_date: 1700000000,
116
+ end_date: 1702592000,
117
+ items: [{ price: "price_original", quantity: 3 }],
118
+ proration_behavior: "none",
119
+ metadata: { keep: "phase" },
120
+ discounts: [],
121
+ },
122
+ ],
123
+ future_native_field: { retained: [null, "safe", 1.25] },
124
+ };
125
+ Object.defineProperty(providerSnapshot, "__proto__", {
126
+ value: { retained: true, nested: ["SYNTHETIC", null] },
127
+ enumerable: true,
128
+ writable: true,
129
+ configurable: true,
130
+ });
131
+ return {
132
+ attachRequest,
133
+ actualDispatch: {
134
+ scope: "platform",
135
+ apiVersion: attachRequest.apiVersion,
136
+ method: "POST",
137
+ path: "/v1/subscription_schedules",
138
+ payload: { from_subscription: "sub_original" },
139
+ key: attachRequest.attachKey,
140
+ firstDispatchedAt: attachRequest.firstDispatchedAt,
141
+ },
142
+ providerSnapshot,
143
+ };
144
+ }
145
+
146
+ // Complete C6 raw factory statically extracted from official feature408 fixture.
147
+ // No SDK imports/calls or observed provider resources. Invoked only in future authorized consumer.
148
+ export function configurationInput() {
149
+ const API_VERSION = "2026-09-30.endive",
150
+ START = Date.parse("2026-01-15T00:00:00Z") / 1000,
151
+ END = Date.parse("2026-02-15T00:00:00Z") / 1000,
152
+ OBSERVED = Date.parse("2026-01-20T00:00:00Z") / 1000;
153
+ function nativePrice(id, product, interval, count) {
154
+ return {
155
+ id,
156
+ object: "price",
157
+ product,
158
+ active: true,
159
+ livemode: false,
160
+ type: "recurring",
161
+ currency: "usd",
162
+ billing_scheme: "per_unit",
163
+ recurring: { interval, interval_count: count, usage_type: "licensed" },
164
+ };
165
+ }
166
+
167
+ function nativeDiscount(level, start) {
168
+ return {
169
+ id: `di_${level}`,
170
+ object: "discount",
171
+ customer: "cus_buyer",
172
+ customer_account: "acct_buyer",
173
+ start: start - 100,
174
+ end: null,
175
+ subscription: level === "subscription" ? "sub_original" : null,
176
+ subscription_item: level === "item" ? "si_original" : null,
177
+ source: {
178
+ type: "coupon",
179
+ coupon: {
180
+ id: `custom-${level}-offer`,
181
+ object: "coupon",
182
+ livemode: false,
183
+ duration: "forever",
184
+ valid: true,
185
+ applies_to: { products: ["custom-original", "custom-target"] },
186
+ },
187
+ },
188
+ };
189
+ }
190
+
191
+ const invoiceSettings = () => ({
192
+ account_tax_ids: null,
193
+ custom_fields: null,
194
+ days_until_due: null,
195
+ description: null,
196
+ footer: null,
197
+ issuer: { type: "self" },
198
+ });
199
+
200
+ function native(options = {}) {
201
+ const start = options.start ?? START;
202
+ const end = options.end ?? END;
203
+ const observedAt = options.observedAt ?? OBSERVED;
204
+ const currentPrice = nativePrice(
205
+ "price_original",
206
+ "custom-original",
207
+ options.currentInterval ?? "month",
208
+ options.currentCount ?? 1,
209
+ );
210
+ const targetPrice = {
211
+ ...nativePrice(
212
+ "price_target",
213
+ "custom-target",
214
+ options.targetInterval ?? "month",
215
+ options.targetCount ?? 1,
216
+ ),
217
+ ...options.target,
218
+ };
219
+ const originalItem = {
220
+ id: "si_original",
221
+ object: "subscription_item",
222
+ subscription: "sub_original",
223
+ current_period_start: start,
224
+ current_period_end: end,
225
+ quantity: 3,
226
+ price: currentPrice,
227
+ billing_thresholds: null,
228
+ current_trial: null,
229
+ tax_rates: [],
230
+ discounts: [nativeDiscount("item", start)],
231
+ metadata: { seat: "retained" },
232
+ ...options.item,
233
+ };
234
+ if (options.omitItemCurrentTrial) delete originalItem.current_trial;
235
+ const subscription = {
236
+ id: "sub_original",
237
+ object: "subscription",
238
+ customer: "cus_buyer",
239
+ customer_account: "acct_buyer",
240
+ livemode: false,
241
+ status: "active",
242
+ currency: "usd",
243
+ schedule: null,
244
+ cancel_at: null,
245
+ cancel_at_period_end: false,
246
+ canceled_at: null,
247
+ ended_at: null,
248
+ pause_collection: null,
249
+ pending_update: null,
250
+ pending_setup_intent: null,
251
+ pending_invoice_item_interval: null,
252
+ next_pending_invoice_item_invoice: null,
253
+ managed_payments: null,
254
+ billing_schedules: [],
255
+ billing_thresholds: null,
256
+ billing_mode: { type: "classic", flexible: null },
257
+ billing_cycle_anchor: start,
258
+ billing_cycle_anchor_config: null,
259
+ default_source: null,
260
+ default_payment_method: null,
261
+ application_fee_percent: null,
262
+ payment_settings: {
263
+ payment_method_options: null,
264
+ payment_method_types: null,
265
+ save_default_payment_method: "off",
266
+ },
267
+ collection_method: "charge_automatically",
268
+ days_until_due: null,
269
+ automatic_tax: { enabled: false, liability: null, disabled_reason: null },
270
+ default_tax_rates: [],
271
+ description: null,
272
+ invoice_settings: {
273
+ account_tax_ids: null,
274
+ custom_fields: null,
275
+ description: null,
276
+ footer: null,
277
+ issuer: { type: "self" },
278
+ },
279
+ on_behalf_of: null,
280
+ transfer_data: null,
281
+ discounts: [nativeDiscount("subscription", start)],
282
+ metadata: { keep: "original" },
283
+ trial_start: start - 100_000,
284
+ trial_end: start - 90_000,
285
+ trial_settings: null,
286
+ items: { object: "list", has_more: false, data: [originalItem] },
287
+ ...options.subscription,
288
+ };
289
+ const billingCustomer = {
290
+ id: "cus_buyer",
291
+ object: "customer",
292
+ customer_account: "acct_buyer",
293
+ livemode: false,
294
+ discount: null,
295
+ };
296
+ const expected = {
297
+ customerAccountId: "acct_buyer",
298
+ subscriptionId: "sub_original",
299
+ itemId: "si_original",
300
+ currentPriceId: "price_original",
301
+ currentProductId: "custom-original",
302
+ targetPriceId: "price_target",
303
+ targetProductId: "custom-target",
304
+ periodStart: start,
305
+ periodEnd: end,
306
+ livemode: false,
307
+ };
308
+ const phaseItem = {
309
+ price: "price_original",
310
+ plan: "price_original",
311
+ quantity: 3,
312
+ billing_thresholds: null,
313
+ tax_rates: [],
314
+ metadata: {},
315
+ discounts: [
316
+ {
317
+ discount: "di_item",
318
+ coupon: "custom-item-offer",
319
+ promotion_code: null,
320
+ },
321
+ ],
322
+ ...options.phaseItem,
323
+ };
324
+ const defaults = {
325
+ application_fee_percent: null,
326
+ automatic_tax: { enabled: false, liability: null, disabled_reason: null },
327
+ billing_cycle_anchor: "automatic",
328
+ billing_thresholds: null,
329
+ collection_method: "charge_automatically",
330
+ default_payment_method: null,
331
+ description: null,
332
+ invoice_settings: invoiceSettings(),
333
+ on_behalf_of: null,
334
+ transfer_data: null,
335
+ ...options.defaults,
336
+ };
337
+ const phase = {
338
+ start_date: start,
339
+ end_date: end,
340
+ currency: "usd",
341
+ items: [phaseItem],
342
+ add_invoice_items: [],
343
+ application_fee_percent: null,
344
+ billing_cycle_anchor: null,
345
+ billing_thresholds: null,
346
+ collection_method: null,
347
+ default_payment_method: null,
348
+ default_tax_rates: [],
349
+ description: null,
350
+ invoice_settings: null,
351
+ metadata: {},
352
+ on_behalf_of: null,
353
+ transfer_data: null,
354
+ proration_behavior: "create_prorations",
355
+ trial: false,
356
+ trial_end: null,
357
+ discounts: [
358
+ {
359
+ discount: "di_subscription",
360
+ coupon: "custom-subscription-offer",
361
+ promotion_code: null,
362
+ },
363
+ ],
364
+ ...options.phase,
365
+ };
366
+ const schedule = {
367
+ id: "sub_sched_owned",
368
+ object: "subscription_schedule",
369
+ application: null,
370
+ customer: "cus_buyer",
371
+ customer_account: "acct_buyer",
372
+ livemode: false,
373
+ subscription: "sub_original",
374
+ status: "active",
375
+ end_behavior: "release",
376
+ created: observedAt - 60,
377
+ canceled_at: null,
378
+ completed_at: null,
379
+ released_at: null,
380
+ released_subscription: null,
381
+ metadata: {},
382
+ test_clock: null,
383
+ billing_mode: subscription.billing_mode,
384
+ pause_schedules: [],
385
+ current_phase: { start_date: start, end_date: end },
386
+ default_settings: defaults,
387
+ phases: [phase],
388
+ };
389
+ return {
390
+ subscription,
391
+ targetPrice,
392
+ billingCustomer,
393
+ expected,
394
+ schedule,
395
+ observedAt,
396
+ };
397
+ }
398
+ const f = native(),
399
+ preparation = {
400
+ subscription: f.subscription,
401
+ targetPrice: f.targetPrice,
402
+ billingCustomer: f.billingCustomer,
403
+ expected: f.expected,
404
+ key: "renewal:logical-original",
405
+ };
406
+ const attachRequest = {
407
+ preparation: structuredClone(preparation),
408
+ apiVersion: API_VERSION,
409
+ attachKey: "renewal:attach-original",
410
+ firstDispatchedAt: f.observedAt - 60,
411
+ };
412
+ const attachReceipt = {
413
+ attachRequest,
414
+ actualDispatch: {
415
+ scope: "platform",
416
+ apiVersion: API_VERSION,
417
+ method: "POST",
418
+ path: "/v1/subscription_schedules",
419
+ payload: { from_subscription: "sub_original" },
420
+ key: attachRequest.attachKey,
421
+ firstDispatchedAt: attachRequest.firstDispatchedAt,
422
+ },
423
+ providerSnapshot: structuredClone(f.schedule),
424
+ };
425
+ return {
426
+ preparation,
427
+ attachReceipt,
428
+ freshSubscription: {
429
+ ...structuredClone(f.subscription),
430
+ schedule: f.schedule.id,
431
+ },
432
+ targetPrice: structuredClone(f.targetPrice),
433
+ billingCustomer: structuredClone(f.billingCustomer),
434
+ schedule: structuredClone(f.schedule),
435
+ apiVersion: API_VERSION,
436
+ observedAt: f.observedAt,
437
+ firstDispatchedAt: f.observedAt,
438
+ configureKey: "renewal:configure-original",
439
+ };
440
+ }
441
+ // Fixed expected normalized payload for this exact declared fixture. No SDK result is an oracle input.
442
+ export function configurationPayload(raw) {
443
+ const expected = raw.preparation.expected,
444
+ item = (price) => ({
445
+ tax_rates: "",
446
+ price,
447
+ quantity: 3,
448
+ discounts: [{ discount: "di_item" }],
449
+ }),
450
+ discounts = [{ discount: "di_subscription" }];
451
+ return {
452
+ end_behavior: "release",
453
+ proration_behavior: "none",
454
+ phases: [
455
+ {
456
+ default_tax_rates: "",
457
+ start_date: expected.periodStart,
458
+ end_date: expected.periodEnd,
459
+ currency: "usd",
460
+ proration_behavior: "create_prorations",
461
+ items: [item("price_original")],
462
+ discounts: structuredClone(discounts),
463
+ },
464
+ {
465
+ default_tax_rates: "",
466
+ start_date: expected.periodEnd,
467
+ currency: "usd",
468
+ proration_behavior: "none",
469
+ billing_cycle_anchor: "automatic",
470
+ duration: { interval: "month", interval_count: 1 },
471
+ items: [item("price_target")],
472
+ discounts: structuredClone(discounts),
473
+ },
474
+ ],
475
+ };
476
+ }
477
+
478
+ // Fresh declared C9 raw leaves. No SDK import/result is an oracle input.
479
+ // Complete synthetic response body intentionally does NOT prove requested application.
480
+ export function configurationReceiptInput() {
481
+ const configuration = configurationInput(),
482
+ providerSnapshot = structuredClone(configuration.schedule);
483
+ providerSnapshot.phases = [
484
+ { observed: "SYNTHETIC_DIFFERENT_RESPONSE_NOT_APPLICATION_PROOF" },
485
+ ];
486
+ providerSnapshot.future_native_field = {
487
+ retained: [null, "SYNTHETIC_PUBLIC_C9", 1.25],
488
+ };
489
+ for (const body of [providerSnapshot, providerSnapshot.default_settings])
490
+ Object.defineProperty(body, "__proto__", {
491
+ value: { retained: true, nested: ["SYNTHETIC", null] },
492
+ enumerable: true,
493
+ writable: true,
494
+ configurable: true,
495
+ });
496
+ return {
497
+ configuration,
498
+ actualDispatch: {
499
+ scope: "platform",
500
+ apiVersion: configuration.apiVersion,
501
+ method: "POST",
502
+ path: "/v1/subscription_schedules/sub_sched_owned",
503
+ payload: configurationPayload(configuration),
504
+ key: configuration.configureKey,
505
+ firstDispatchedAt: configuration.firstDispatchedAt,
506
+ },
507
+ providerSnapshot,
508
+ transport: { status: 200, requestId: "req_SYNTHETIC_087" },
509
+ };
510
+ }
@@ -0,0 +1,64 @@
1
+ // Declared synthetic raw data only. No SDK/test-runner/TypeScript/W imports or calls.
2
+ import { configurationInput } from "./fixture.mjs";
3
+ export const own = (body, key, value) =>
4
+ Object.defineProperty(body, key, {
5
+ value,
6
+ enumerable: true,
7
+ writable: true,
8
+ configurable: true,
9
+ });
10
+ export const at = (root, path) => path.reduce((v, k) => v[k], root);
11
+ export const parsedPaths = [
12
+ ["subscription"],
13
+ ["subscription", "items"],
14
+ ["subscription", "items", "data", 0],
15
+ ["subscription", "items", "data", 0, "price"],
16
+ ["subscription", "items", "data", 0, "price", "recurring"],
17
+ ["subscription", "items", "data", 0, "price", "product"],
18
+ ["targetPrice"],
19
+ ["targetPrice", "recurring"],
20
+ ["targetPrice", "product"],
21
+ ["billingCustomer"],
22
+ ["billingCustomer", "discount"],
23
+ ];
24
+ export function rawRetentionInput() {
25
+ return structuredClone(configurationInput().preparation);
26
+ }
27
+ export function expandedRawRetentionInput() {
28
+ const p = rawRetentionInput();
29
+ p.subscription.items.data[0].price.product = {
30
+ id: p.expected.currentProductId,
31
+ object: "product",
32
+ deleted: false,
33
+ };
34
+ p.targetPrice.product = {
35
+ id: p.expected.targetProductId,
36
+ object: "product",
37
+ deleted: false,
38
+ };
39
+ p.billingCustomer.discount = {
40
+ id: "di_customer",
41
+ object: "discount",
42
+ deleted: false,
43
+ };
44
+ return p;
45
+ }
46
+ export function rawRetentionConfiguration(preparation = rawRetentionInput()) {
47
+ const c = configurationInput();
48
+ c.preparation = structuredClone(preparation);
49
+ c.attachReceipt.attachRequest.preparation = structuredClone(preparation);
50
+ c.freshSubscription = {
51
+ ...structuredClone(preparation.subscription),
52
+ schedule: c.schedule.id,
53
+ };
54
+ c.targetPrice = structuredClone(preparation.targetPrice);
55
+ c.billingCustomer = structuredClone(preparation.billingCustomer);
56
+ return c;
57
+ }
58
+ export const normalPreFixFullSHA = {
59
+ legacy: "ed0e7fe3641e216caf66fd225b1a7366a4a3ab7f2825448ec9fbbf697621e150",
60
+ prepared: "4c27c7f4c0f4743d6a5ff3c76da42c024c4f2e29f6bc65b4ad29bb21dfdbc8d3",
61
+ receipt: "dd79636e1248efc8efad99737bcd156d322f3078aea7ecebf007f0d1d953b01c",
62
+ configuration:
63
+ "ef08ad09044c32eaa3152b3a7fe058a68f77edf704c3176ada86cd5c5c6179d8",
64
+ };