Package org.signal.chat.donations
Services
service Donations
rpc RedeemReceipt
Request: org.signal.chat.donations.RedeemReceiptRequest
Response:
org.signal.chat.donations.RedeemReceiptResponse
Redeem a receipt acquired from Subscriptions.GetReceiptCredential to add a badge to the account. After successful redemption, profile responses will include the corresponding badge (if configured as visible) until the expiration time on the receipt.
rpc CreateDonationPermits
Request: org.signal.chat.donations.CreateDonationPermitsRequest
Response:
org.signal.chat.donations.CreateDonationPermitsResponse
Generate a set of anonymous, single-use, permits for use with /v1/subscription endpoints.
If rate limited, reduce requested permit count and/or try again after the prescribed delay.
Messages
message CreateDonationPermitsRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | donation_permits_request |
bytes
|
a serialized libsignal DonationPermitsRequest |
message CreateDonationPermitsResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | donation_permits_response |
bytes
|
a serialized libsignal DonationPermitsResponse |
message RedeemReceiptRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | receiptCredentialPresentation |
bytes
|
Presentation of the ZK receipt acquired when the subscription was created |
| 2 | visible |
bool
|
If true, the corresponding badge should be visible on the profile |
| 3 | primary |
bool
|
If true, and the new badge is visible, it should be the primary badge on the profile |
message RedeemReceiptResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | success |
google.protobuf.Empty
|
The receipt was successfully redeemed |
| 2 | failed_authentication |
org.signal.chat.errors.FailedZkAuthentication
|
The provided presentation is invalid |
| 3 | already_redeemed |
org.signal.chat.errors.FailedPrecondition
|
The receipt was already redeemed for a different account |