File size: 952 Bytes
b43d8da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  "$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"
}