| { | |
| "$comment": "SPDX-License-Identifier: Apache-2.0. Copyright 2026 DriftCall Team. Payment v2 after auth_scope_upgrade / mfa_required per DESIGN.md §5.5.", | |
| "$id": "https://driftcall.dev/schemas/payment/v2.json", | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "additionalProperties": false, | |
| "properties": { | |
| "amount_inr": { | |
| "minimum": 0, | |
| "type": "integer" | |
| }, | |
| "charge_id": { | |
| "minLength": 1, | |
| "type": "string" | |
| }, | |
| "mfa_code": { | |
| "minLength": 1, | |
| "type": "string" | |
| }, | |
| "payment_token": { | |
| "minLength": 1, | |
| "type": "string" | |
| }, | |
| "scope": { | |
| "const": "payments:write:v2", | |
| "type": "string" | |
| }, | |
| "status": { | |
| "enum": ["ok", "auth_error"], | |
| "type": "string" | |
| } | |
| }, | |
| "required": ["charge_id", "amount_inr", "payment_token", "scope", "status"], | |
| "title": "Payment charge (v2)", | |
| "type": "object" | |
| } | |