org.hypercerts.funding.receipt
Schema Diff
+7 -1
Compatibility Analysis
Breaking Changes Detected
6 breaking changes, 0 non-breaking changes.
Breaking Changes (6)
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.funding.receipt:body.amount", sort: "maxLength", value: "50" }
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.funding.receipt:body.paymentRail", sort: "maxLength", value: "50" }
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.funding.receipt:body.currency", sort: "maxLength", value: "10" }
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.funding.receipt:body.transactionId", sort: "maxLength", value: "256" }
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.funding.receipt:body.to", sort: "maxLength", value: "2048" }
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.funding.receipt:body.paymentNetwork", sort: "maxLength", value: "50" }
Migration Guidance
Constraint Changes
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.funding.receipt:body.transactionId", sort: "maxLength", value: "256" }
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.funding.receipt:body.to", sort: "maxLength", value: "2048" }
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.funding.receipt:body.amount", sort: "maxLength", value: "50" }
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.funding.receipt:body.paymentRail", sort: "maxLength", value: "50" }
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.funding.receipt:body.paymentNetwork", sort: "maxLength", value: "50" }
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.funding.receipt:body.currency", sort: "maxLength", value: "10" }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
5
"description": "Records a funding receipt for a payment from one user to another user. It may be recorded by the recipient, by the sender, or by a third party. The sender may remain anonymous.",
6
6
"key": "tid",
7
7
"record": {
8
8
"properties": {
9
9
"amount": {
10
-
"description": "Amount of funding received.",
10
+
"description": "Amount of funding received as a numeric string (e.g. '1000.50').",
11
+
"maxLength": 50,
11
12
"type": "string"
12
13
},
13
14
"createdAt": {
14
15
"description": "Client-declared timestamp when this receipt record was created.",
15
16
"format": "datetime",
16
17
"type": "string"
17
18
},
18
19
"currency": {
19
20
"description": "Currency of the payment (e.g. EUR, USD, ETH).",
21
+
"maxLength": 10,
20
22
"type": "string"
21
23
},
22
24
"for": {
23
25
"description": "Optional reference to the activity, project, or organization this funding relates to.",
24
26
"format": "at-uri",
25
27
"type": "string"
26
28
},
27
29
"from": {
28
30
"description": "DID of the sender who transferred the funds. Leave empty if sender wants to stay anonymous.",
29
31
"ref": "app.certified.defs#did",
30
32
"type": "ref"
31
33
},
32
34
"notes": {
33
35
"description": "Optional notes or additional context for this funding receipt.",
34
36
"maxLength": 500,
35
37
"type": "string"
36
38
},
37
39
"occurredAt": {
38
40
"description": "Timestamp when the payment occurred.",
39
41
"format": "datetime",
40
42
"type": "string"
41
43
},
42
44
"paymentNetwork": {
43
45
"description": "Optional network within the payment rail (e.g. arbitrum, ethereum, sepa, visa, paypal).",
46
+
"maxLength": 50,
44
47
"type": "string"
45
48
},
46
49
"paymentRail": {
47
50
"description": "How the funds were transferred (e.g. bank_transfer, credit_card, onchain, cash, check, payment_processor).",
51
+
"maxLength": 50,
48
52
"type": "string"
49
53
},
50
54
"to": {
51
55
"description": "The recipient of the funds. Can be identified by DID or a clear-text name.",
56
+
"maxLength": 2048,
52
57
"type": "string"
53
58
},
54
59
"transactionId": {
55
60
"description": "Identifier of the underlying payment transaction (e.g. bank reference, onchain transaction hash, or processor-specific ID). Use paymentNetwork to specify the network where applicable.",
61
+
"maxLength": 256,
56
62
"type": "string"
57
63
}
58
64
},
59
65
"required": [
60
66
"from",
61
67
"to",
62
68
"amount",
63
69
"currency",
64
70
"createdAt"
65
71
],
66
72
"type": "object"
67
73
},
68
74
"type": "record"
69
75
}
70
76
},
71
77
"id": "org.hypercerts.funding.receipt",
72
78
"lexicon": 1
73
79
}