@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,466 @@
1
+ import { freeze } from "./f22.mjs";
2
+ // Internal source literals frozen before export; audit JSON is never imported.
3
+ export const roles = freeze([
4
+ {
5
+ pointer: "/sourceRows/creation/clock",
6
+ required: true,
7
+ method: "POST",
8
+ pathTemplate: "/v1/test_helpers/test_clocks",
9
+ paramsTemplate: { frozen_time: "$T0", name: "$O" },
10
+ },
11
+ {
12
+ pointer: "/sourceRows/creation/buyer",
13
+ required: true,
14
+ method: "POST",
15
+ pathTemplate: "/v2/core/accounts",
16
+ paramsTemplate: {
17
+ configuration: { customer: { test_clock: "$CLOCK" } },
18
+ display_name: "$O",
19
+ metadata: { bts305_bridge_owner: "$O" },
20
+ include: ["configuration.customer"],
21
+ },
22
+ },
23
+ {
24
+ pointer: "/sourceRows/creation/originalProduct",
25
+ required: true,
26
+ method: "POST",
27
+ pathTemplate: "/v1/products",
28
+ paramsTemplate: {
29
+ name: "$O:original",
30
+ active: true,
31
+ metadata: { sdkQualificationRun: "$O", role: "original" },
32
+ },
33
+ },
34
+ {
35
+ pointer: "/sourceRows/creation/targetProduct",
36
+ required: true,
37
+ method: "POST",
38
+ pathTemplate: "/v1/products",
39
+ paramsTemplate: {
40
+ name: "$O:target",
41
+ active: true,
42
+ metadata: { sdkQualificationRun: "$O", role: "target" },
43
+ },
44
+ },
45
+ {
46
+ pointer: "/sourceRows/creation/originalPrice",
47
+ required: true,
48
+ method: "POST",
49
+ pathTemplate: "/v1/prices",
50
+ paramsTemplate: {
51
+ product: "$PRODUCT_ORIGINAL",
52
+ currency: "usd",
53
+ unit_amount: 1000,
54
+ recurring: {
55
+ interval: "month",
56
+ interval_count: 1,
57
+ usage_type: "licensed",
58
+ },
59
+ metadata: { sdkQualificationRun: "$O", role: "original" },
60
+ },
61
+ },
62
+ {
63
+ pointer: "/sourceRows/creation/targetPrice",
64
+ required: true,
65
+ method: "POST",
66
+ pathTemplate: "/v1/prices",
67
+ paramsTemplate: {
68
+ product: "$PRODUCT_TARGET",
69
+ currency: "usd",
70
+ unit_amount: 800,
71
+ recurring: {
72
+ interval: "month",
73
+ interval_count: 1,
74
+ usage_type: "licensed",
75
+ },
76
+ metadata: { sdkQualificationRun: "$O", role: "target" },
77
+ },
78
+ },
79
+ {
80
+ pointer: "/sourceRows/creation/subscriptionCoupon",
81
+ required: true,
82
+ method: "POST",
83
+ pathTemplate: "/v1/coupons",
84
+ paramsTemplate: {
85
+ duration: "forever",
86
+ percent_off: 10,
87
+ applies_to: { products: ["$PRODUCT_ORIGINAL", "$PRODUCT_TARGET"] },
88
+ metadata: { sdkQualificationRun: "$O", role: "subscription" },
89
+ },
90
+ },
91
+ {
92
+ pointer: "/sourceRows/creation/itemCoupon",
93
+ required: true,
94
+ method: "POST",
95
+ pathTemplate: "/v1/coupons",
96
+ paramsTemplate: {
97
+ duration: "forever",
98
+ percent_off: 5,
99
+ applies_to: { products: ["$PRODUCT_ORIGINAL", "$PRODUCT_TARGET"] },
100
+ metadata: { sdkQualificationRun: "$O", role: "item" },
101
+ },
102
+ },
103
+ {
104
+ pointer: "/sourceRows/creation/scheduledSubscription",
105
+ required: true,
106
+ method: "POST",
107
+ pathTemplate: "/v1/subscriptions",
108
+ paramsTemplate: {
109
+ customer_account: "$BUYER",
110
+ billing_mode: {
111
+ type: "flexible",
112
+ flexible: { proration_discounts: "included" },
113
+ },
114
+ collection_method: "charge_automatically",
115
+ default_payment_method: "$PM_RETURNED",
116
+ payment_behavior: "error_if_incomplete",
117
+ proration_behavior: "none",
118
+ automatic_tax: { enabled: false },
119
+ default_tax_rates: [],
120
+ discounts: [{ coupon: "$COUPON_SUBSCRIPTION" }],
121
+ items: [
122
+ {
123
+ price: "$PRICE_ORIGINAL",
124
+ quantity: 1,
125
+ tax_rates: [],
126
+ discounts: [{ coupon: "$COUPON_ITEM" }],
127
+ },
128
+ ],
129
+ metadata: { sdkQualificationRun: "$O", role: "scheduled" },
130
+ },
131
+ },
132
+ {
133
+ pointer: "/sourceRows/creation/controlSubscription",
134
+ required: true,
135
+ method: "POST",
136
+ pathTemplate: "/v1/subscriptions",
137
+ paramsTemplate: {
138
+ customer_account: "$BUYER",
139
+ billing_mode: {
140
+ type: "flexible",
141
+ flexible: { proration_discounts: "included" },
142
+ },
143
+ collection_method: "charge_automatically",
144
+ default_payment_method: "$PM_RETURNED",
145
+ payment_behavior: "error_if_incomplete",
146
+ proration_behavior: "none",
147
+ automatic_tax: { enabled: false },
148
+ default_tax_rates: [],
149
+ discounts: [{ coupon: "$COUPON_SUBSCRIPTION" }],
150
+ items: [
151
+ {
152
+ price: "$PRICE_ORIGINAL",
153
+ quantity: 1,
154
+ tax_rates: [],
155
+ discounts: [{ coupon: "$COUPON_ITEM" }],
156
+ },
157
+ ],
158
+ metadata: { sdkQualificationRun: "$O", role: "control" },
159
+ },
160
+ },
161
+ {
162
+ pointer: "/sourceRows/baseline/mirrorInventory",
163
+ required: true,
164
+ method: "GET",
165
+ pathTemplate: "/v1/customers?test_clock=$CLOCK&limit=100",
166
+ paramsTemplate: "ABSENT, never {}",
167
+ },
168
+ {
169
+ pointer: "/sourceRows/baseline/scheduledSubscription",
170
+ required: true,
171
+ method: "GET",
172
+ pathTemplate:
173
+ "/v1/subscriptions/$SUB_SCHEDULED?expand%5B0%5D=discounts&expand%5B1%5D=items.data.discounts&expand%5B2%5D=items.data.price",
174
+ paramsTemplate: "ABSENT, never {}",
175
+ },
176
+ {
177
+ pointer: "/sourceRows/baseline/controlSubscription",
178
+ required: true,
179
+ method: "GET",
180
+ pathTemplate:
181
+ "/v1/subscriptions/$SUB_CONTROL?expand%5B0%5D=discounts&expand%5B1%5D=items.data.discounts&expand%5B2%5D=items.data.price",
182
+ paramsTemplate: "ABSENT, never {}",
183
+ },
184
+ {
185
+ pointer: "/sourceRows/baseline/targetPrice",
186
+ required: true,
187
+ method: "GET",
188
+ pathTemplate: "/v1/prices/$PRICE_TARGET",
189
+ paramsTemplate: "ABSENT, never {}",
190
+ },
191
+ {
192
+ pointer: "/sourceRows/baseline/billingCustomer",
193
+ required: true,
194
+ method: "GET",
195
+ pathTemplate: "/v1/customers/$MIRROR",
196
+ paramsTemplate: "ABSENT, never {}",
197
+ },
198
+ {
199
+ pointer: "/sourceRows/baseline/subscriptionCoupon",
200
+ required: true,
201
+ method: "GET",
202
+ pathTemplate: "/v1/coupons/$COUPON_SUBSCRIPTION",
203
+ paramsTemplate: "ABSENT, never {}",
204
+ },
205
+ {
206
+ pointer: "/sourceRows/baseline/itemCoupon",
207
+ required: true,
208
+ method: "GET",
209
+ pathTemplate: "/v1/coupons/$COUPON_ITEM",
210
+ paramsTemplate: "ABSENT, never {}",
211
+ },
212
+ {
213
+ pointer: "/sourceRows/baseline/scheduledInvoice",
214
+ required: true,
215
+ method: "GET",
216
+ pathTemplate: "/v1/invoices/$INVOICE_SCHEDULED_0?expand%5B0%5D=discounts",
217
+ paramsTemplate: "ABSENT, never {}",
218
+ },
219
+ {
220
+ pointer: "/sourceRows/baseline/controlInvoice",
221
+ required: true,
222
+ method: "GET",
223
+ pathTemplate: "/v1/invoices/$INVOICE_CONTROL_0?expand%5B0%5D=discounts",
224
+ paramsTemplate: "ABSENT, never {}",
225
+ },
226
+ {
227
+ pointer: "/sourceRows/baseline/scheduledLines",
228
+ required: true,
229
+ method: "GET",
230
+ pathTemplate:
231
+ "/v1/invoices/$INVOICE_SCHEDULED_0/lines?limit=100&expand%5B0%5D=data.discounts&expand%5B1%5D=data.discount_amounts.discount",
232
+ paramsTemplate: "ABSENT, never {}",
233
+ },
234
+ {
235
+ pointer: "/sourceRows/baseline/controlLines",
236
+ required: true,
237
+ method: "GET",
238
+ pathTemplate:
239
+ "/v1/invoices/$INVOICE_CONTROL_0/lines?limit=100&expand%5B0%5D=data.discounts&expand%5B1%5D=data.discount_amounts.discount",
240
+ paramsTemplate: "ABSENT, never {}",
241
+ },
242
+ {
243
+ pointer: "/sourceRows/baseline/scheduledInventory",
244
+ required: true,
245
+ method: "GET",
246
+ pathTemplate:
247
+ "/v1/invoices?customer_account=$BUYER&subscription=$SUB_SCHEDULED&limit=100&expand%5B0%5D=data.discounts",
248
+ paramsTemplate: "ABSENT, never {}",
249
+ },
250
+ {
251
+ pointer: "/sourceRows/baseline/controlInventory",
252
+ required: true,
253
+ method: "GET",
254
+ pathTemplate:
255
+ "/v1/invoices?customer_account=$BUYER&subscription=$SUB_CONTROL&limit=100&expand%5B0%5D=data.discounts",
256
+ paramsTemplate: "ABSENT, never {}",
257
+ },
258
+ {
259
+ pointer: "/sourceRows/pending/schedule",
260
+ required: true,
261
+ method: "GET",
262
+ pathTemplate: "/v1/subscription_schedules/$SCHEDULE",
263
+ paramsTemplate: "ABSENT, never {}",
264
+ },
265
+ {
266
+ pointer: "/sourceRows/pending/scheduledSubscription",
267
+ required: true,
268
+ method: "GET",
269
+ pathTemplate:
270
+ "/v1/subscriptions/$SUB_SCHEDULED?expand%5B0%5D=discounts&expand%5B1%5D=items.data.discounts&expand%5B2%5D=items.data.price",
271
+ paramsTemplate: "ABSENT, never {}",
272
+ },
273
+ {
274
+ pointer: "/sourceRows/pending/controlSubscription",
275
+ required: true,
276
+ method: "GET",
277
+ pathTemplate:
278
+ "/v1/subscriptions/$SUB_CONTROL?expand%5B0%5D=discounts&expand%5B1%5D=items.data.discounts&expand%5B2%5D=items.data.price",
279
+ paramsTemplate: "ABSENT, never {}",
280
+ },
281
+ {
282
+ pointer: "/sourceRows/pending/targetPrice",
283
+ required: true,
284
+ method: "GET",
285
+ pathTemplate: "/v1/prices/$PRICE_TARGET",
286
+ paramsTemplate: "ABSENT, never {}",
287
+ },
288
+ {
289
+ pointer: "/sourceRows/pending/billingCustomer",
290
+ required: true,
291
+ method: "GET",
292
+ pathTemplate: "/v1/customers/$MIRROR",
293
+ paramsTemplate: "ABSENT, never {}",
294
+ },
295
+ {
296
+ pointer: "/sourceRows/pending/subscriptionCoupon",
297
+ required: true,
298
+ method: "GET",
299
+ pathTemplate: "/v1/coupons/$COUPON_SUBSCRIPTION",
300
+ paramsTemplate: "ABSENT, never {}",
301
+ },
302
+ {
303
+ pointer: "/sourceRows/pending/itemCoupon",
304
+ required: true,
305
+ method: "GET",
306
+ pathTemplate: "/v1/coupons/$COUPON_ITEM",
307
+ paramsTemplate: "ABSENT, never {}",
308
+ },
309
+ {
310
+ pointer: "/sourceRows/pending/scheduledLines",
311
+ required: true,
312
+ method: "GET",
313
+ pathTemplate:
314
+ "/v1/invoices/$INVOICE_SCHEDULED_0/lines?limit=100&expand%5B0%5D=data.discounts&expand%5B1%5D=data.discount_amounts.discount",
315
+ paramsTemplate: "ABSENT, never {}",
316
+ },
317
+ {
318
+ pointer: "/sourceRows/pending/controlLines",
319
+ required: true,
320
+ method: "GET",
321
+ pathTemplate:
322
+ "/v1/invoices/$INVOICE_CONTROL_0/lines?limit=100&expand%5B0%5D=data.discounts&expand%5B1%5D=data.discount_amounts.discount",
323
+ paramsTemplate: "ABSENT, never {}",
324
+ },
325
+ {
326
+ pointer: "/sourceRows/pending/scheduledInventory",
327
+ required: true,
328
+ method: "GET",
329
+ pathTemplate:
330
+ "/v1/invoices?customer_account=$BUYER&subscription=$SUB_SCHEDULED&limit=100&expand%5B0%5D=data.discounts",
331
+ paramsTemplate: "ABSENT, never {}",
332
+ },
333
+ {
334
+ pointer: "/sourceRows/pending/controlInventory",
335
+ required: true,
336
+ method: "GET",
337
+ pathTemplate:
338
+ "/v1/invoices?customer_account=$BUYER&subscription=$SUB_CONTROL&limit=100&expand%5B0%5D=data.discounts",
339
+ paramsTemplate: "ABSENT, never {}",
340
+ },
341
+ {
342
+ pointer: "/sourceRows/active/schedule",
343
+ required: true,
344
+ method: "GET",
345
+ pathTemplate: "/v1/subscription_schedules/$SCHEDULE",
346
+ paramsTemplate: "ABSENT, never {}",
347
+ },
348
+ {
349
+ pointer: "/sourceRows/active/scheduledSubscription",
350
+ required: true,
351
+ method: "GET",
352
+ pathTemplate:
353
+ "/v1/subscriptions/$SUB_SCHEDULED?expand%5B0%5D=discounts&expand%5B1%5D=items.data.discounts&expand%5B2%5D=items.data.price",
354
+ paramsTemplate: "ABSENT, never {}",
355
+ },
356
+ {
357
+ pointer: "/sourceRows/active/controlSubscription",
358
+ required: true,
359
+ method: "GET",
360
+ pathTemplate:
361
+ "/v1/subscriptions/$SUB_CONTROL?expand%5B0%5D=discounts&expand%5B1%5D=items.data.discounts&expand%5B2%5D=items.data.price",
362
+ paramsTemplate: "ABSENT, never {}",
363
+ },
364
+ {
365
+ pointer: "/sourceRows/active/targetPrice",
366
+ required: true,
367
+ method: "GET",
368
+ pathTemplate: "/v1/prices/$PRICE_TARGET",
369
+ paramsTemplate: "ABSENT, never {}",
370
+ },
371
+ {
372
+ pointer: "/sourceRows/active/billingCustomer",
373
+ required: true,
374
+ method: "GET",
375
+ pathTemplate: "/v1/customers/$MIRROR",
376
+ paramsTemplate: "ABSENT, never {}",
377
+ },
378
+ {
379
+ pointer: "/sourceRows/active/subscriptionCoupon",
380
+ required: true,
381
+ method: "GET",
382
+ pathTemplate: "/v1/coupons/$COUPON_SUBSCRIPTION",
383
+ paramsTemplate: "ABSENT, never {}",
384
+ },
385
+ {
386
+ pointer: "/sourceRows/active/itemCoupon",
387
+ required: true,
388
+ method: "GET",
389
+ pathTemplate: "/v1/coupons/$COUPON_ITEM",
390
+ paramsTemplate: "ABSENT, never {}",
391
+ },
392
+ {
393
+ pointer: "/sourceRows/active/scheduledLines",
394
+ required: true,
395
+ method: "GET",
396
+ pathTemplate:
397
+ "/v1/invoices/$INVOICE_SCHEDULED_1/lines?limit=100&expand%5B0%5D=data.discounts&expand%5B1%5D=data.discount_amounts.discount",
398
+ paramsTemplate: "ABSENT, never {}",
399
+ },
400
+ {
401
+ pointer: "/sourceRows/active/controlLines",
402
+ required: true,
403
+ method: "GET",
404
+ pathTemplate:
405
+ "/v1/invoices/$INVOICE_CONTROL_1/lines?limit=100&expand%5B0%5D=data.discounts&expand%5B1%5D=data.discount_amounts.discount",
406
+ paramsTemplate: "ABSENT, never {}",
407
+ },
408
+ {
409
+ pointer: "/sourceRows/active/scheduledInventory",
410
+ required: true,
411
+ method: "GET",
412
+ pathTemplate:
413
+ "/v1/invoices?customer_account=$BUYER&subscription=$SUB_SCHEDULED&limit=100&expand%5B0%5D=data.discounts",
414
+ paramsTemplate: "ABSENT, never {}",
415
+ },
416
+ {
417
+ pointer: "/sourceRows/active/controlInventory",
418
+ required: true,
419
+ method: "GET",
420
+ pathTemplate:
421
+ "/v1/invoices?customer_account=$BUYER&subscription=$SUB_CONTROL&limit=100&expand%5B0%5D=data.discounts",
422
+ paramsTemplate: "ABSENT, never {}",
423
+ },
424
+ {
425
+ pointer: "/sourceRows/active/scheduledInvoice",
426
+ required: true,
427
+ method: "GET",
428
+ pathTemplate: "/v1/invoices/$INVOICE_SCHEDULED_1?expand%5B0%5D=discounts",
429
+ paramsTemplate: "ABSENT, never {}",
430
+ },
431
+ {
432
+ pointer: "/sourceRows/active/controlInvoice",
433
+ required: true,
434
+ method: "GET",
435
+ pathTemplate: "/v1/invoices/$INVOICE_CONTROL_1?expand%5B0%5D=discounts",
436
+ paramsTemplate: "ABSENT, never {}",
437
+ },
438
+ {
439
+ pointer: "/sourceRows/active/clockReady",
440
+ required: true,
441
+ method: "GET",
442
+ pathTemplate: "/v1/test_helpers/test_clocks/$CLOCK",
443
+ paramsTemplate: "ABSENT, never {}",
444
+ },
445
+ {
446
+ pointer: "/sourceRows/active/nativeAdvance",
447
+ required: true,
448
+ method: "POST",
449
+ pathTemplate: "/v1/test_helpers/test_clocks/$CLOCK/advance",
450
+ paramsTemplate: { frozen_time: "$T1_ACTUAL_PENDING_CURRENT_PHASE_END" },
451
+ },
452
+ {
453
+ pointer: "/sourceRows/active/finalizationAdvance",
454
+ required: false,
455
+ method: "POST",
456
+ pathTemplate: "/v1/test_helpers/test_clocks/$CLOCK/advance",
457
+ paramsTemplate: { frozen_time: "$F1_UNVERIFIED_NATIVE_TARGET" },
458
+ },
459
+ {
460
+ pointer: "/sourceRows/active/nativeReadyBeforeFinalization",
461
+ required: false,
462
+ method: "GET",
463
+ pathTemplate: "/v1/test_helpers/test_clocks/$CLOCK",
464
+ paramsTemplate: "ABSENT, never {}",
465
+ },
466
+ ]);
@@ -0,0 +1,29 @@
1
+ export { boundary, equal, freeze } from "./f23.mjs";
2
+ export const need = (x) => {
3
+ if (!x) throw Error("PRE_T2_REQUEST_RELATIONS_UNSUPPORTED");
4
+ };
5
+ export const object = (x) => {
6
+ need(x && typeof x === "object" && !Array.isArray(x));
7
+ return x;
8
+ };
9
+ export const body = (rows, key) => object(rows[key].response.body);
10
+ export function id(value, prefix) {
11
+ need(
12
+ typeof value === "string" &&
13
+ new RegExp("^" + prefix + "_[A-Za-z0-9]{1,100}$").test(value),
14
+ );
15
+ return value;
16
+ }
17
+ export const time = (value) => {
18
+ need(Number.isSafeInteger(value) && value >= 0);
19
+ return value;
20
+ };
21
+ export function item(sub) {
22
+ need(
23
+ sub.items && Array.isArray(sub.items.data) && sub.items.data.length === 1,
24
+ );
25
+ return object(sub.items.data[0]);
26
+ }
27
+ export function scalarPM(value) {
28
+ return id(value, "pm");
29
+ }
@@ -0,0 +1,165 @@
1
+ import { requiredJSONSnapshot } from "./f20.mjs";
2
+ const ROLES = Object.freeze({
3
+ creation: [
4
+ "clock",
5
+ "buyer",
6
+ "originalProduct",
7
+ "targetProduct",
8
+ "originalPrice",
9
+ "targetPrice",
10
+ "subscriptionCoupon",
11
+ "itemCoupon",
12
+ "scheduledSubscription",
13
+ "controlSubscription",
14
+ ],
15
+ baseline: [
16
+ "mirrorInventory",
17
+ "scheduledSubscription",
18
+ "controlSubscription",
19
+ "targetPrice",
20
+ "billingCustomer",
21
+ "subscriptionCoupon",
22
+ "itemCoupon",
23
+ "scheduledInvoice",
24
+ "controlInvoice",
25
+ "scheduledLines",
26
+ "controlLines",
27
+ "scheduledInventory",
28
+ "controlInventory",
29
+ ],
30
+ pending: [
31
+ "schedule",
32
+ "scheduledSubscription",
33
+ "controlSubscription",
34
+ "targetPrice",
35
+ "billingCustomer",
36
+ "subscriptionCoupon",
37
+ "itemCoupon",
38
+ "scheduledLines",
39
+ "controlLines",
40
+ "scheduledInventory",
41
+ "controlInventory",
42
+ ],
43
+ active: [
44
+ "schedule",
45
+ "scheduledSubscription",
46
+ "controlSubscription",
47
+ "targetPrice",
48
+ "billingCustomer",
49
+ "subscriptionCoupon",
50
+ "itemCoupon",
51
+ "scheduledLines",
52
+ "controlLines",
53
+ "scheduledInventory",
54
+ "controlInventory",
55
+ "scheduledInvoice",
56
+ "controlInvoice",
57
+ "clockReady",
58
+ "nativeAdvance",
59
+ ],
60
+ });
61
+ for (const a of Object.values(ROLES)) Object.freeze(a);
62
+ export const need = (x) => {
63
+ if (!x) throw Error("PRE_T2_DISCOUNT_REFERENCE_UNSUPPORTED");
64
+ };
65
+ export const obj = (x) => {
66
+ need(x && typeof x === "object" && !Array.isArray(x));
67
+ return x;
68
+ };
69
+ export function closed(value, keys, optional = []) {
70
+ obj(value);
71
+ need(
72
+ Object.keys(value).every((k) => keys.includes(k) || optional.includes(k)) &&
73
+ keys.every((k) => Object.hasOwn(value, k)),
74
+ );
75
+ return value;
76
+ }
77
+ export function equal(a, b) {
78
+ if (Object.is(a, b)) return true;
79
+ if (
80
+ !a ||
81
+ !b ||
82
+ typeof a !== "object" ||
83
+ typeof b !== "object" ||
84
+ Array.isArray(a) !== Array.isArray(b)
85
+ )
86
+ return false;
87
+ const ak = Object.keys(a),
88
+ bk = Object.keys(b);
89
+ return (
90
+ ak.length === bk.length &&
91
+ ak.every((k) => Object.hasOwn(b, k) && equal(a[k], b[k]))
92
+ );
93
+ }
94
+ export function freeze(x) {
95
+ if (x && typeof x === "object") {
96
+ for (const v of Object.values(x)) freeze(v);
97
+ Object.freeze(x);
98
+ }
99
+ return x;
100
+ }
101
+ export function boundary(raw) {
102
+ const x = requiredJSONSnapshot(raw);
103
+ closed(x, [
104
+ "retainedProjectionInput",
105
+ "desiredRequest",
106
+ "storedConfigureRecord",
107
+ "sourceRows",
108
+ ]);
109
+ for (const k of [
110
+ "retainedProjectionInput",
111
+ "desiredRequest",
112
+ "storedConfigureRecord",
113
+ ])
114
+ obj(x[k]);
115
+ closed(x.sourceRows, Object.keys(ROLES));
116
+ for (const [stage, names] of Object.entries(ROLES)) {
117
+ const records = closed(
118
+ x.sourceRows[stage],
119
+ names,
120
+ stage === "active"
121
+ ? ["finalizationAdvance", "nativeReadyBeforeFinalization"]
122
+ : [],
123
+ );
124
+ if (stage === "active")
125
+ need(
126
+ Object.hasOwn(records, "finalizationAdvance") ===
127
+ Object.hasOwn(records, "nativeReadyBeforeFinalization"),
128
+ );
129
+ for (const [role, r] of Object.entries(records)) {
130
+ closed(r, ["request", "response"]);
131
+ const method =
132
+ stage === "creation" ||
133
+ ["nativeAdvance", "finalizationAdvance"].includes(role)
134
+ ? "POST"
135
+ : "GET";
136
+ closed(r.request, [
137
+ "method",
138
+ "path",
139
+ "apiVersion",
140
+ "scope",
141
+ ...(method === "POST" ? ["params"] : []),
142
+ ]);
143
+ need(
144
+ r.request.method === method &&
145
+ r.request.apiVersion === "2026-09-30.endive" &&
146
+ r.request.scope === "platform",
147
+ );
148
+ need(
149
+ typeof r.request.path === "string" &&
150
+ r.request.path.length > 0 &&
151
+ r.request.path.length <= 8192,
152
+ );
153
+ closed(r.response, ["status", "requestId", "body"]);
154
+ const q = r.response;
155
+ need(Number.isInteger(q.status) && q.status >= 200 && q.status <= 299);
156
+ need(
157
+ q.requestId === null ||
158
+ (typeof q.requestId === "string" &&
159
+ q.requestId.length > 0 &&
160
+ q.requestId.length <= 200),
161
+ );
162
+ }
163
+ }
164
+ return x;
165
+ }