-
Notifications
You must be signed in to change notification settings - Fork 7
add funding receipt schema #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| { | ||
| "lexicon": 1, | ||
| "id": "org.hypercerts.funding.receipt", | ||
| "defs": { | ||
| "main": { | ||
| "type": "record", | ||
| "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.", | ||
| "key": "tid", | ||
| "record": { | ||
| "type": "object", | ||
| "required": ["from", "to", "amount", "currency", "createdAt"], | ||
| "properties": { | ||
| "from": { | ||
| "type": "string", | ||
| "format": "did", | ||
| "description": "DID of the sender who transferred the funds. Leave empty if sender wants to stay anonymous." | ||
| }, | ||
| "to": { | ||
| "type": "string", | ||
| "description": "The recipient of the funds. Can be identified by DID or a clear-text name." | ||
| }, | ||
| "amount": { | ||
|
aspiers marked this conversation as resolved.
|
||
| "type": "string", | ||
| "description": "Amount of funding received." | ||
| }, | ||
| "currency": { | ||
| "type": "string", | ||
| "description": "Currency of the payment (e.g. EUR, USD, ETH)." | ||
| }, | ||
| "paymentRail": { | ||
| "type": "string", | ||
| "description": "How the funds were transferred (e.g. bank_transfer, credit_card, onchain, cash, check, payment_processor)." | ||
|
satyam-mishra-pce marked this conversation as resolved.
|
||
| }, | ||
| "paymentNetwork": { | ||
| "type": "string", | ||
| "description": "Optional network within the payment rail (e.g. arbitrum, ethereum, sepa, visa, paypal)." | ||
| }, | ||
| "transactionId": { | ||
| "type": "string", | ||
| "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." | ||
| }, | ||
| "for": { | ||
| "type": "string", | ||
| "format": "at-uri", | ||
| "description": "Optional reference to the activity, project, or organization this funding relates to." | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @holkexyz Why is this optional?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I just want to record that I sent you some funds. Most of the time, we want to record what it was for, but maybe I just want to record the payment |
||
| }, | ||
| "notes": { | ||
| "type": "string", | ||
| "description": "Optional notes or additional context for this funding receipt.", | ||
| "maxLength": 500 | ||
| }, | ||
| "occurredAt": { | ||
| "type": "string", | ||
| "format": "datetime", | ||
| "description": "Timestamp when the payment occurred." | ||
| }, | ||
| "createdAt": { | ||
| "type": "string", | ||
| "format": "datetime", | ||
| "description": "Client-declared timestamp when this receipt record was created." | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
Uh oh!
There was an error while loading. Please reload this page.