← Back to packages

Package org.signal.chat.donations

Service Donations

Message CreateDonationPermitsRequest

Message CreateDonationPermitsResponse

Message RedeemReceiptRequest

Message RedeemReceiptResponse

Services

service Donations

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.

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