Package org.signal.chat.purchase
Message
BackupLevelConfiguration
Message
BraintreePaymentMethod
Message
ConfirmPayPalBoostRequest
Message
ConfirmPayPalBoostResponse
Message
ConfirmPayPalBoostResult
Message
CreateBoostReceiptCredentialRequest
Message
CreateBoostReceiptCredentialResponse
Message
CreateBoostReceiptCredentialResult
Message
CreateLoginReceiptCredentialRequest
Message
CreateLoginReceiptCredentialResponse
Message
CreateLoginReceiptCredentialResult
Message
CreatePayPalBoostRequest
Message
CreatePayPalBoostResponse
Message
CreatePayPalBoostResult
Message
CreatePayPalPaymentMethodRequest
Message
CreatePayPalPaymentMethodResponse
Message
CreatePayPalPaymentMethodResult
Message
CreateStripeBoostRequest
Message
CreateStripeBoostResponse
Message
CreateStripePaymentMethodRequest
Message
CreateStripePaymentMethodResponse
Message
CreateStripePaymentMethodResult
Message
DeleteSubscriberRequest
Message
DeleteSubscriberResponse
Message
GetBankMandateResponse
Message
GetConfigurationRequest
Message
GetConfigurationResponse
Message
GetReceiptCredentialRequest
Message
GetReceiptCredentialResponse
Message
GetReceiptCredentialResult
Message
GetSubscriptionInformationRequest
Message
GetSubscriptionInformationResponse
Message
SetDefaultPaymentMethodRequest
Message
SetDefaultPaymentMethodResponse
Message
SetIapSubscriptionRequest
Message
SetIapSubscriptionResponse
Message
SetIapSubscriptionResult
Message
SetSubscriptionLevelRequest
Message
SetSubscriptionLevelResponse
Message
UpdateSubscriberRequest
Services
service LoginPurchase
Service for one-time purchases of logins
rpc CreateLoginReceiptCredential
Request: org.signal.chat.purchase.CreateLoginReceiptCredentialRequest
Response:
org.signal.chat.purchase.CreateLoginReceiptCredentialResponse
Obtain a ZK receipt credential for a completed one-time login payment.
The receipt credential can then be presented at registration
service OneTimeDonations
Service for making one-time donation payments (boost and gift)
Configuration for one-time donations can be found in ProductConfiguration.
rpc CreateStripeBoost
Request: org.signal.chat.purchase.CreateStripeBoostRequest
Response:
org.signal.chat.purchase.CreateStripeBoostResponse
Create a Stripe payment intent and return a client secret that can be used to complete the payment. Once the payment is complete, the paymentIntentId can be used with CreateBoostReceiptCredential
rpc CreatePayPalBoost
Request: org.signal.chat.purchase.CreatePayPalBoostRequest
Response:
org.signal.chat.purchase.CreatePayPalBoostResponse
Create a PayPal one-time payment.
Once the payment is complete, call ConfirmPayPalBoost with the payment ID and token.
The PayPal approval page presented to the user may be localized. Callers should set their language preferences via gRPC metadata on the request with the key "Accept-Language" header: https://datatracker.ietf.org/doc/html/rfc3282#section-3
rpc ConfirmPayPalBoost
Request: org.signal.chat.purchase.ConfirmPayPalBoostRequest
Response:
org.signal.chat.purchase.ConfirmPayPalBoostResponse
Confirm a PayPal one-time payment
rpc CreateBoostReceiptCredential
Request: org.signal.chat.purchase.CreateBoostReceiptCredentialRequest
Response:
org.signal.chat.purchase.CreateBoostReceiptCredentialResponse
Obtain a ZK receipt credential for a completed one-time donation payment. The receipt credential can then be used to redeem the one-time donation entitlement via Donations.RedeemReceipt
service ProductConfiguration
Retrieve product metadata for one-time donations, subscriptions, and backups
rpc GetConfiguration
Request: org.signal.chat.purchase.GetConfigurationRequest
Response:
org.signal.chat.purchase.GetConfigurationResponse
Returns configuration for donation subscriptions, backup subscriptions, and one-time donation ( "boost" and "gift") minimum and suggested amounts. Badges are referenced by ID only; resolve those IDs to full badge details via RemoteConfiguration.GetBadges.
service Subscriptions
Service for creating donation subscriptions
Configuration for subscription levels can be found in ProductConfiguration.
rpc UpdateSubscriber
Request: org.signal.chat.purchase.UpdateSubscriberRequest
Response:
org.signal.chat.purchase.UpdateSubscriberResponse
Creates a subscriber record if it does not exist, otherwise refreshes its last access time.
Subscribers MUST periodically hit this endpoint to update the access time on the subscription record. Subscribers SHOULD attempt to make an update call approximately every 3 days. Not accessing this endpoint for an extended period of time will result in the subscription being canceled.
rpc DeleteSubscriber
Request: org.signal.chat.purchase.DeleteSubscriberRequest
Response:
org.signal.chat.purchase.DeleteSubscriberResponse
Cancels any current subscription at the end of the current subscription period.
Note: Apple IAP subscriptions do not support server-side cancellation, so this method should only be called after cancelling a subscription from storekit to keep server data up to date.
rpc CreateStripePaymentMethod
Request: org.signal.chat.purchase.CreateStripePaymentMethodRequest
Response:
org.signal.chat.purchase.CreateStripePaymentMethodResponse
Returns a Stripe client secret that can be used to set up a new payment method with Stripe.
rpc CreatePayPalPaymentMethod
Request: org.signal.chat.purchase.CreatePayPalPaymentMethodRequest
Response:
org.signal.chat.purchase.CreatePayPalPaymentMethodResponse
Returns a PayPal billing agreement approval URL and token that can be used to set up PayPal as a payment method.
The presented billing agreement may be localized. Callers should set their language preferences via gRPC metadata on the request with the key "Accept-Language": https://datatracker.ietf.org/doc/html/rfc3282#section-3
rpc SetDefaultPaymentMethod
Request: org.signal.chat.purchase.SetDefaultPaymentMethodRequest
Response:
org.signal.chat.purchase.SetDefaultPaymentMethodResponse
Sets the default payment method for a subscriber.
rpc SetSubscriptionLevel
Request: org.signal.chat.purchase.SetSubscriptionLevelRequest
Response:
org.signal.chat.purchase.SetSubscriptionLevelResponse
Sets the subscription level and currency for a subscriber.
rpc GetSubscriptionInformation
Request: org.signal.chat.purchase.GetSubscriptionInformationRequest
Response:
org.signal.chat.purchase.GetSubscriptionInformationResponse
Returns information about the current subscription associated with the provided subscriber_id if one exists.
Although it uses Stripe's values, the status field in the response is generic, with Braintree-specific values mapped to Stripe's. Since we don't support trials or unpaid subscriptions, the associated statuses will never be returned by the API.
rpc GetReceiptCredential
Request: org.signal.chat.purchase.GetReceiptCredentialRequest
Response:
org.signal.chat.purchase.GetReceiptCredentialResponse
Create a receipt from a valid payment invoice that can be used to obtain an entitlement
This request is repeatable so long as the ReceiptCredentialRequest remains the same. Clients should use the same ReceiptCredentialRequest value until they attempt to redeem the resulting ReceiptCredentialPresentation. After this point, the ReceiptCredentialRequest MUST NOT be reused or you may not be able to redeem a valid payment invoice. Clients SHOULD retry requests at this endpoint with the same ReceiptCredentialRequest value until receiving a response. After receiving a response, clients should then compute the ReceiptCredentialPresentation and redeem it at the receipt redemption endpoint. Once the first attempt is made there, the same ReceiptCredentialRequest MUST NOT be used again to request a receipt credential.
Note that you may in fact redeem TWO or more invoices for the same ReceiptCredentialRequest while retrying this operation if a later invoice gets paid while you are retrying. However, the returned receipt is always for the latest invoice, so it will have the latest expiration possible and no entitlement time will be lost. The important thing is not to reuse ReceiptCredentialRequest after you have started attempting to redeem the associated ReceiptCredentialPresentation. Then you may produce a ReceiptCredentialPresentation for a later invoice that cannot be redeemed.
Clients MUST validate that the generated receipt credential's level and expiration matches their expectations.
rpc SetIapSubscription
Request: org.signal.chat.purchase.SetIapSubscriptionRequest
Response:
org.signal.chat.purchase.SetIapSubscriptionResponse
Set a token that represents an IAP subscription made with App Store/Google Play Billing.
To set up an App Store subscription: 1. Create a subscriber with UpdateSubscriber (you must regularly refresh this subscriber) 2. Create a subscription with the App Store directly via StoreKit and obtain a originalTransactionId. 3. Call this RPC with the originalTransactionId 4. Obtain a receipt via GetReceiptCredential which can then be used to obtain the entitlement
Play Billing: Set a purchaseToken that represents an IAP subscription made with Google Play Billing.
To set up a subscription with Google Play Billing: 1. Create a subscriber with UpdateSubscriber (you must regularly refresh this subscriber) 2. Create a subscription with Google Play Billing directly and obtain a purchaseToken. Do not acknowledge the purchaseToken. 3. Call this RPC with the purchaseToken 4. Obtain a receipt via GetReceiptCredential which can then be used to obtain the entitlement
After calling this method, the payment is confirmed. Callers must durably store their subscriber_id before calling this method to ensure their payment is tracked.
Once a purchaseToken to is posted to a subscriber_id, the same subscriber_id must not be used with another payment method. A different playbilling purchaseToken can be posted to the same subscriber_id, in this case the subscription associated with the old purchaseToken will be cancelled.
rpc GetBankMandate
Request: org.signal.chat.purchase.GetBankMandateRequest
Response:
org.signal.chat.purchase.GetBankMandateResponse
Returns a localized bank mandate for the specified bank transfer type.
Callers should set their language preferences via an "Accept-Language" header on the request: https://datatracker.ietf.org/doc/html/rfc3282#section-3
Messages
message AmountList
| Field | Type | Description | |
|---|---|---|---|
| 1 | amounts |
repeated
uint64
|
Amount in the currency's minor unit. Unless otherwise noted, currencies are two-decimal: divide by 100 to get the value in the specified currency. Some currencies are zero-decimal; for zero-decimal currencies no multiplication is required. |
message AppStorePurchase
(Nested in org.signal.chat.purchase.SetIapSubscriptionRequest
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | original_transaction_id |
string
|
message BackupConfiguration
| Field | Type | Description | |
|---|---|---|---|
| 1 | levels |
map<uint64, BackupLevelConfiguration>
|
A map of numeric backup level IDs to level-specific backup configuration |
| 2 | free_tier_media_days |
uint32
|
The number of days of media a free tier backup user gets |
message BackupLevelConfiguration
Configuration for a backup level - use to present appropriate client interfaces
| Field | Type | Description | |
|---|---|---|---|
| 1 | storage_allowance_bytes |
uint64
|
The amount of media storage in bytes that a paying subscriber may store |
| 2 | play_product_id |
string
|
The play billing productID associated with this backup level |
| 3 | media_ttl_days |
uint32
|
The duration, in days, for which your backed up media is retained on the server after you stop refreshing with a paid credential |
message BraintreePaymentMethod
(Nested in org.signal.chat.purchase.SetDefaultPaymentMethodRequest
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | payment_method_token |
string
|
message ChargeFailure
Meaningfully interpreting chargeFailure response fields requires inspecting the processor field first.
For Stripe, code will be one of the codes defined here, while message may contain a further textual description. The outcome fields are optional, but present values will directly map to Stripe response properties
For Braintree, the outcome fields will be null. The code and message will contain one of
- a processor decline code (as a string) in code, and associated text in message, as defined this table
- gateway in code, with a reason in message
- code = "unknown", message = "unknown"
IAP payment processors will never include charge failure information, and detailed order information should be retrieved from the payment processor directly
| Field | Type | Description | |
|---|---|---|---|
| 1 | processor |
org.signal.chat.purchase.PaymentProvider
|
|
| 2 | code |
string
|
See Stripe failure codes or Braintree decline codes depending on which processor was used |
| 3 | message |
string
|
See Stripe failure codes or Braintree decline codes depending on which processor was used |
| 4 | outcome_network_status |
optional
string
|
|
| 5 | outcome_reason |
optional
string
|
See Outcome Reason |
| 6 | outcome_type |
optional
string
|
See Outcome Type |
message ConfirmPayPalBoostRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | currency |
string
|
ISO 4217 currency code, case-insensitive (e.g. "usd", "EUR") |
| 2 | amount |
uint64
|
Amount in the currency's minor unit, must be >= 1 |
| 3 | level |
uint64
|
Donation level: 1 for a one-time donation, 100 for a gift donation |
| 4 | payer_id |
string
|
PayPal payer ID from the approval redirect |
| 5 | payment_id |
string
|
PayPal payment ID (PAYID-…) from CreatePayPalBoost |
| 6 | payment_token |
string
|
PayPal payment token (EC-…) from the approval redirect |
message ConfirmPayPalBoostResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | result |
org.signal.chat.purchase.ConfirmPayPalBoostResponse.ConfirmPayPalBoostResult
|
|
| 2 | invalid_selection |
org.signal.chat.errors.FailedPrecondition
|
The currency is not supported for PayPal, or the amount is below the currency's minimum. The violated constraint may be present in the product configuration, clients can attempt a refresh of ProductConfiguration/GetConfiguration before giving up. |
| 3 | payment_required |
org.signal.chat.purchase.PaymentRequired
|
The payment failed; see charge failure details |
message ConfirmPayPalBoostResult
(Nested in org.signal.chat.purchase.ConfirmPayPalBoostResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | payment_id |
string
|
message CreateBoostReceiptCredentialRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | payment_intent_id |
string
|
a payment ID from the processor |
| 2 | receipt_credential_request |
bytes
|
ZK blind-signature receipt credential request bytes |
| 3 | processor |
org.signal.chat.purchase.PaymentProvider
|
The processor that handled the payment |
message CreateBoostReceiptCredentialResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | result |
org.signal.chat.purchase.CreateBoostReceiptCredentialResponse.CreateBoostReceiptCredentialResult
|
|
| 2 | payment_still_processing |
org.signal.chat.errors.FailedPrecondition
|
Payment is still processing; client should retry |
| 3 | payment_required |
org.signal.chat.purchase.PaymentRequired
|
Payment failed |
| 4 | payment_not_found |
org.signal.chat.errors.NotFound
|
Payment intent not found |
| 5 | receipt_already_issued |
org.signal.chat.errors.FailedPrecondition
|
A receipt credential was already issued for this payment |
message CreateBoostReceiptCredentialResult
(Nested in org.signal.chat.purchase.CreateBoostReceiptCredentialResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | receipt_credential_response |
bytes
|
message CreateLoginReceiptCredentialRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | processor |
org.signal.chat.purchase.PaymentProvider
|
The payment processor |
| 2 | purchase_identifier |
string
|
The identifier of a completed purchase for a signal login within the payment provider |
| 3 | receipt_credential_request |
bytes
|
The receipt credential request. Subsequent retries to create a login credential for the same purchase_identifier must use an identical receipt_credential_request. Callers must validate that the generated receipt credential has the following properties:
|
message CreateLoginReceiptCredentialResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | result |
org.signal.chat.purchase.CreateLoginReceiptCredentialResponse.CreateLoginReceiptCredentialResult
|
|
| 2 | payment_still_processing |
org.signal.chat.errors.FailedPrecondition
|
The purchase is still pending with the payment provider. The client may retry later. |
| 3 | payment_required |
org.signal.chat.purchase.PaymentRequired
|
The purchase did not complete successfully. |
| 4 | payment_not_found |
org.signal.chat.errors.NotFound
|
The payment provider has no purchase with the provided purchase_identifier |
| 5 | receipt_already_issued |
org.signal.chat.errors.FailedPrecondition
|
The purchase was already redeemed for a receipt credential, but with a different receipt credential request |
message CreateLoginReceiptCredentialResult
(Nested in org.signal.chat.purchase.CreateLoginReceiptCredentialResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | receipt_credential_response |
bytes
|
message CreatePayPalBoostRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | currency |
string
|
ISO 4217 currency code, case-insensitive (e.g. "usd", "EUR") |
| 2 | amount |
uint64
|
Amount in the currency's minor unit (e.g. cents for USD), must be >= 1 |
| 3 | level |
uint64
|
Donation level: 1 for a one-time donation, 100 for a gift donation |
| 4 | return_url |
string
|
URL to redirect the user to after PayPal approval |
| 5 | cancel_url |
string
|
URL to redirect the user to if they cancel |
message CreatePayPalBoostResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | result |
org.signal.chat.purchase.CreatePayPalBoostResponse.CreatePayPalBoostResult
|
|
| 2 | invalid_selection |
org.signal.chat.errors.FailedPrecondition
|
The currency is not supported for PayPal, or the amount is below the currency's minimum. The violated constraint may be present in the product configuration, clients can attempt a refresh of ProductConfiguration/GetConfiguration before giving up. |
message CreatePayPalBoostResult
(Nested in org.signal.chat.purchase.CreatePayPalBoostResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | approval_url |
string
|
|
| 2 | payment_id |
string
|
message CreatePayPalPaymentMethodRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | subscriber_id |
bytes
|
|
| 2 | return_url |
string
|
a callback URL (e.g. an in-client URL handler) for when the user approved the payment |
| 3 | cancel_url |
string
|
a callback URL (e.g. an in-client URL handler) for when the user did not approve the payment |
message CreatePayPalPaymentMethodResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | result |
org.signal.chat.purchase.CreatePayPalPaymentMethodResponse.CreatePayPalPaymentMethodResult
|
|
| 2 | subscriber_not_found |
org.signal.chat.errors.NotFound
|
The subscriber did not exist |
| 3 | subscription_processor_conflict |
org.signal.chat.errors.FailedPrecondition
|
New payment processor does not match existing processor associated with the subscription |
message CreatePayPalPaymentMethodResult
(Nested in org.signal.chat.purchase.CreatePayPalPaymentMethodResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | approval_url |
string
|
a URL to open where the user may approve the payment |
| 2 | token |
string
|
an opaque PayPal payment identifier to use with SetDefaultPaymentMethodRequest |
message CreateStripeBoostRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | currency |
string
|
ISO 4217 currency code, case-insensitive (e.g. "usd", "EUR") |
| 2 | amount |
uint64
|
The amount to pay in the currency's minor unit |
| 3 | level |
uint64
|
The level for the boost payment: 1 for a one-time donation, 100 for a gift donation |
| 4 | payment_method |
org.signal.chat.purchase.PaymentMethod
|
The payment method. Only card, SEPA Direct Debit, and iDEAL are supported. |
| 5 | donation_permit |
bytes
|
A donation permit retrieved from Donations.createDonationPermit |
message CreateStripeBoostResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | client_secret |
string
|
A client secret that can be used to complete a stripe PaymentIntent |
| 2 | invalid_selection |
org.signal.chat.errors.FailedPrecondition
|
The currency is not supported for the payment method, or the amount is outside the configured limits (e.g. below the currency's minimum, above the SEPA Direct Debit maximum, above the processor's currency maximum). The violated constraint may be present in the product configuration, clients can attempt a refresh of ProductConfiguration/GetConfiguration before giving up. |
| 3 | permit_rejected |
org.signal.chat.errors.FailedZkAuthentication
|
Donation permit was invalid or already spent |
message CreateStripePaymentMethodRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | subscriber_id |
bytes
|
|
| 2 | payment_method |
org.signal.chat.purchase.PaymentMethod
|
The payment method. Only card, SEPA Direct Debit, and iDEAL are supported. |
| 3 | donation_permit |
bytes
|
a libsignal DonationPermit from rpc Donations.CreateDonationPermits |
message CreateStripePaymentMethodResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | result |
org.signal.chat.purchase.CreateStripePaymentMethodResponse.CreateStripePaymentMethodResult
|
|
| 2 | subscriber_not_found |
org.signal.chat.errors.NotFound
|
The subscriber did not exist |
| 3 | subscription_processor_conflict |
org.signal.chat.errors.FailedPrecondition
|
New payment processor does not match existing processor associated with the subscription |
| 4 | permit_rejected |
org.signal.chat.errors.FailedZkAuthentication
|
The donation permit was expired or already spent |
message CreateStripePaymentMethodResult
(Nested in org.signal.chat.purchase.CreateStripePaymentMethodResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | client_secret |
string
|
message CurrencyConfiguration
| Field | Type | Description | |
|---|---|---|---|
| 1 | minimum |
uint64
|
Minimum one-time donation in the currency's minor unit |
| 2 | one_time |
map<uint64, AmountList>
|
Map of one-time donation level IDs to suggested amounts |
| 3 | subscription |
map<uint64, uint64>
|
Map of subscription level IDs to the amount charged in the currency's minor unit |
| 4 | backup_subscription |
map<uint64, uint64>
|
Map of backup subscription level IDs to the amount charged in the currency's minor unit |
| 5 | supported_payment_methods |
repeated
org.signal.chat.purchase.PaymentMethod
|
message DeleteSubscriberResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | success |
google.protobuf.Empty
|
|
| 2 | subscriber_not_found |
org.signal.chat.errors.NotFound
|
The subscriber did not exist |
| 3 | cannot_cancel_subscription |
org.signal.chat.errors.FailedPrecondition
|
The associated subscription is not a type that can be cancelled by the server. Cancel client-side, and then retry. |
message GetBankMandateRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | bank_transfer_type |
org.signal.chat.purchase.BankTransferType
|
message GetConfigurationResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | currencies |
map<string, CurrencyConfiguration>
|
Map of lower-cased ISO 3 currency codes to currency-specific configuration |
| 2 | badge_levels |
map<uint64, LevelConfiguration>
|
Map of numeric donation level IDs to level-specific badge configuration |
| 3 | backup |
org.signal.chat.purchase.BackupConfiguration
|
Configuration for backup subscription options |
| 4 | sepa_maximum_euros |
uint64
|
Maximum value of a one-time SEPA donation, in EUR minor units |
| 5 | login |
org.signal.chat.purchase.LoginConfiguration
|
Configuration for one-time Signal Login purchases |
message GetReceiptCredentialRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | subscriber_id |
bytes
|
|
| 2 | receipt_credential_request |
bytes
|
message GetReceiptCredentialResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | success |
org.signal.chat.purchase.GetReceiptCredentialResponse.GetReceiptCredentialResult
|
|
| 2 | subscriber_not_found |
org.signal.chat.errors.NotFound
|
The subscriber did not exist or it did not have an associated subscription |
| 3 | no_paid_invoice |
org.signal.chat.errors.FailedPrecondition
|
No invoice has been issued for this subscription OR invoice is in 'draft' or 'open' state |
| 4 | payment_required |
org.signal.chat.purchase.PaymentRequired
|
Invoice is in any state other than 'draft', 'open', or 'paid'; Charge failure details may be present |
| 5 | already_redeemed |
org.signal.chat.errors.FailedPrecondition
|
Latest paid receipt on subscription was already redeemed for a receipt credential but with a different GetReceiptCredentialRequest |
message GetReceiptCredentialResult
(Nested in org.signal.chat.purchase.GetReceiptCredentialResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | receipt_credential_response |
bytes
|
message GetSubscriptionInformationResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | success |
org.signal.chat.purchase.GetSubscriptionInformationResponse.Subscription
|
|
| 2 | no_subscription |
google.protobuf.Empty
|
The subscriber exists but has no subscription with a payment processor |
| 3 | subscriber_not_found |
org.signal.chat.errors.NotFound
|
The subscriber did not exist |
message LevelConfiguration
| Field | Type | Description | |
|---|---|---|---|
| 1 | badge_id |
string
|
The ID of the badge awarded at this level. Resolve to full badge details via RemoteConfiguration.GetBadges. |
| 2 | badge_duration_seconds |
optional
uint32
|
The duration for which a badge is valid. Present only for one-time (boost, gift) badges |
message LoginConfiguration
Configuration for one-time Signal Login purchases
| Field | Type | Description | |
|---|---|---|---|
| 1 | level |
uint64
|
The receipt level associated with a Signal Login purchase |
| 2 | play_product_id |
string
|
The play billing productID associated with a Signal Login purchase |
| 3 | app_store_product_id |
string
|
The App Store productID associated with a Signal Login purchase |
| 4 | play_option_id |
string
|
The play billing optionID to use to purchase a Signal Login |
message PaymentRequired
| Field | Type | Description | |
|---|---|---|---|
| 1 | charge_failure |
optional
org.signal.chat.purchase.ChargeFailure
|
message PlayBillingPurchase
(Nested in org.signal.chat.purchase.SetIapSubscriptionRequest
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | purchase_token |
string
|
message SepaPaymentMethod
(Nested in org.signal.chat.purchase.SetDefaultPaymentMethodRequest
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | setup_intent_id |
string
|
message SetDefaultPaymentMethodRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | subscriber_id |
bytes
|
|
|
oneof request
|
|||
| 2 | stripe |
org.signal.chat.purchase.SetDefaultPaymentMethodRequest.StripePaymentMethod
|
|
| 3 | braintree |
org.signal.chat.purchase.SetDefaultPaymentMethodRequest.BraintreePaymentMethod
|
|
| 4 | sepa |
org.signal.chat.purchase.SetDefaultPaymentMethodRequest.SepaPaymentMethod
|
|
message SetDefaultPaymentMethodResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | success |
google.protobuf.Empty
|
|
| 2 | subscriber_not_found |
org.signal.chat.errors.NotFound
|
The subscriber did not exist, or the referenced setup intent was not found |
| 3 | failed_precondition |
org.signal.chat.errors.FailedPrecondition
|
The request could not be applied in the subscriber's current state. This typically indicates a client bug or an out-of-date client. Either - No payment method has been created for the subscriber - The provided payment method has not finished being set up with the processor |
message SetIapSubscriptionRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | subscriber_id |
bytes
|
|
|
oneof request
|
|||
| 2 | app_store |
org.signal.chat.purchase.SetIapSubscriptionRequest.AppStorePurchase
|
|
| 3 | play_billing |
org.signal.chat.purchase.SetIapSubscriptionRequest.PlayBillingPurchase
|
|
message SetIapSubscriptionResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | success |
org.signal.chat.purchase.SetIapSubscriptionResponse.SetIapSubscriptionResult
|
|
| 2 | subscriber_not_found |
org.signal.chat.errors.NotFound
|
The subscriber did not exist or the provided purchase identifier does not exist |
| 3 | subscription_processor_conflict |
org.signal.chat.errors.FailedPrecondition
|
New payment processor does not match existing processor associated with the subscription |
| 4 | payment_required |
org.signal.chat.purchase.PaymentRequired
|
The subscription is not in a purchase state that grants the user an entitlement |
| 5 | invalid_transaction |
org.signal.chat.errors.FailedPrecondition
|
The provided purchase identifier is malformed or the identified transaction is not supported for use at this endpoint |
message SetIapSubscriptionResult
(Nested in org.signal.chat.purchase.SetIapSubscriptionResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | level |
uint64
|
message SetSubscriptionLevelRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | subscriber_id |
bytes
|
|
| 2 | level |
uint64
|
|
| 3 | currency |
string
|
|
| 4 | idempotency_key |
string
|
message SetSubscriptionLevelResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | success |
google.protobuf.Empty
|
|
| 2 | subscriber_not_found |
org.signal.chat.errors.NotFound
|
The subscriber did not exist |
| 3 | failed_precondition |
org.signal.chat.errors.FailedPrecondition
|
The request could not be applied in the subscriber's current state. This typically indicates a client bug or an out-of-date client. Some examples: - the client failed to first set up a payment method - the requested level cannot be transitioned to from the existing level - the payment needs additional authorization before processing The FailedPrecondition will contain the specific reason for the failure. |
| 4 | invalid_selection |
org.signal.chat.errors.FailedPrecondition
|
The request contained a currency or level that is not supported. The violated constraint may be present in the product configuration, clients can attempt a refresh of ProductConfiguration/GetConfiguration before giving up. |
| 5 | payment_required |
org.signal.chat.purchase.PaymentRequired
|
The payment method could not be charged. If the processor declined the charge, charge_failure will be present. |
message StripePaymentMethod
(Nested in org.signal.chat.purchase.SetDefaultPaymentMethodRequest
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | payment_method_token |
string
|
message Subscription
(Nested in org.signal.chat.purchase.GetSubscriptionInformationResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | level |
uint64
|
The subscription level |
| 2 | billing_cycle_anchor |
optional
uint64
|
If present, UNIX Epoch Timestamp in seconds, can be used to calculate next billing date. |
| 3 | end_of_current_period |
uint64
|
UNIX Epoch Timestamp in seconds, when the current subscription period ends |
| 4 | active |
bool
|
Whether there is a currently active subscription |
| 5 | cancel_at_period_end |
bool
|
If true, an active subscription will not auto-renew at the end of the current period |
| 6 | currency |
string
|
A three-letter ISO 4217 currency code for currency used in the subscription |
| 7 | amount |
uint64
|
The amount paid for the subscription in the currency's minor unit |
| 8 | status |
org.signal.chat.purchase.SubscriptionStatus
|
The subscription's status, mapped to Stripe's statuses. trialing will never be returned |
| 9 | processor |
org.signal.chat.purchase.PaymentProvider
|
The payment provider associated with the subscription |
| 10 | payment_method |
org.signal.chat.purchase.PaymentMethod
|
The payment method associated with the subscription |
| 11 | payment_processing |
bool
|
Whether the latest charge for the subscription is in a non-terminal state |
| 12 | charge_failure |
optional
org.signal.chat.purchase.ChargeFailure
|
if present, contains information that may be interpreted to help the user fix a failure |
message UpdateSubscriberRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | subscriber_id |
bytes
|
New subscriber-ids must be a randomly-generated 32 byte byte-string. |
| 2 | donation_permit |
bytes
|
A libsignal DonationPermit from rpc Donations.CreateDonationPermits. Not required if the subscriber already exists. |
message UpdateSubscriberResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | success |
google.protobuf.Empty
|
|
| 2 | permit_rejected |
org.signal.chat.errors.FailedZkAuthentication
|
The donation permit was expired or already spent |
Enums
enum BankTransferType
| Name | Number | Description |
|---|---|---|
BANK_TRANSFER_TYPE_UNKNOWN |
0 | |
BANK_TRANSFER_TYPE_SEPA_DEBIT |
1 |
enum PaymentMethod
| Name | Number | Description |
|---|---|---|
PAYMENT_METHOD_UNKNOWN |
0 | |
PAYMENT_METHOD_CARD |
1 | A credit card or debit card, including those from Apple Pay and Google Pay |
PAYMENT_METHOD_SEPA_DEBIT |
2 | A SEPA debit account |
PAYMENT_METHOD_IDEAL |
3 | An iDEAL account |
PAYMENT_METHOD_PAYPAL |
4 | A PayPal account |
PAYMENT_METHOD_GOOGLE_PLAY_BILLING |
5 | |
PAYMENT_METHOD_APPLE_APP_STORE |
6 |
enum PaymentProvider
| Name | Number | Description |
|---|---|---|
PAYMENT_PROVIDER_UNKNOWN |
0 | |
PAYMENT_PROVIDER_STRIPE |
1 | |
PAYMENT_PROVIDER_BRAINTREE |
2 | |
PAYMENT_PROVIDER_GOOGLE_PLAY_BILLING |
3 | |
PAYMENT_PROVIDER_APPLE_APP_STORE |
4 |
enum SubscriptionStatus
| Name | Number | Description |
|---|---|---|
SUBSCRIPTION_STATUS_UNKNOWN |
0 | |
SUBSCRIPTION_STATUS_ACTIVE |
1 | The subscription is in good standing and the most recent payment was successful. |
SUBSCRIPTION_STATUS_INCOMPLETE |
2 | Payment failed when creating the subscription, or the subscription's start date is in the future. |
SUBSCRIPTION_STATUS_PAST_DUE |
3 | Payment on the latest renewal failed but there are processor retries left, or payment wasn't attempted. |
SUBSCRIPTION_STATUS_CANCELED |
4 | The subscription has been canceled. |
SUBSCRIPTION_STATUS_UNPAID |
5 | The latest renewal hasn't been paid but the subscription remains in place. |