You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/charges/SKILL.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,6 +214,24 @@ Current expected behavior:
214
214
- ledger handlers may still defensively tolerate zero and return `ledgertransaction.GroupReference{}`
215
215
- when a service proceeds with non-zero invoice accrual, it must require a non-empty transaction group reference before storing accrued usage
216
216
217
+
## HTTP/API Conversion
218
+
219
+
Credit-purchase charges have an API/domain enum mismatch for promotional grants.
220
+
221
+
Rules:
222
+
223
+
- in the billing domain, promotional credit grants are represented as `creditpurchase.SettlementTypePromotional`
224
+
- in the v3 customer credits API, the same case is represented as `funding_method=none`
225
+
- v3 API responses for promotional grants must omit the `purchase` block entirely
226
+
- conversion code in `api/v3/handlers/customers/credits` must map this case explicitly instead of treating `promotional` as an unsupported settlement type
0 commit comments