+
+ Package org.signal.chat.subscriptions
+
+
+
+
+
+ Service
+ Subscriptions
+
+
+
+ Message
+ AppStorePurchase
+
+
+
+ Message
+ BackupConfiguration
+
+
+
+ Message
+ BackupLevelConfiguration
+
+
+
+ Message
+ BraintreePaymentMethod
+
+
+
+ Message
+ ChargeFailure
+
+
+
+ Message
+ CreatePayPalPaymentMethodRequest
+
+
+
+ Message
+ CreatePayPalPaymentMethodResponse
+
+
+
+ Message
+ CreatePayPalPaymentMethodResult
+
+
+
+ Message
+ CreatePaymentMethodRequest
+
+
+
+ Message
+ CreatePaymentMethodResponse
+
+
+
+ Message
+ CreatePaymentMethodResult
+
+
+
+ Message
+ CurrencyConfiguration
+
+
+
+ Message
+ DeleteSubscriberRequest
+
+
+
+ Message
+ DeleteSubscriberResponse
+
+
+
+ Message
+ GetBankMandateRequest
+
+
+
+ Message
+ GetBankMandateResponse
+
+
+
+ Message
+ GetConfigurationRequest
+
+
+
+ Message
+ GetConfigurationResponse
+
+
+
+ Message
+ GetReceiptCredentialsRequest
+
+
+
+ Message
+ GetReceiptCredentialsResponse
+
+
+
+ Message
+ GetReceiptCredentialsResult
+
+
+
+ Message
+ GetSubscriptionInformationRequest
+
+
+
+ Message
+ GetSubscriptionInformationResponse
+
+
+
+ Message
+ LevelConfiguration
+
+
+
+ Message
+ PaymentRequired
+
+
+
+ Message
+ PlayBillingPurchase
+
+
+
+ Message
+ SepaPaymentMethod
+
+
+
+ Message
+ SetDefaultPaymentMethodRequest
+
+
+
+ Message
+ SetDefaultPaymentMethodResponse
+
+
+
+ Message
+ SetIapSubscriptionRequest
+
+
+
+ Message
+ SetIapSubscriptionResponse
+
+
+
+ Message
+ SetIapSubscriptionResult
+
+
+
+ Message
+ SetSubscriptionLevelRequest
+
+
+
+ Message
+ SetSubscriptionLevelResponse
+
+
+
+ Message
+ SetSubscriptionLevelResult
+
+
+
+ Message
+ StripePaymentMethod
+
+
+
+ Message
+ Subscription
+
+
+
+ Message
+ UpdateSubscriberRequest
+
+
+
+ Message
+ UpdateSubscriberResponse
+
+
+
+ Enum
+ BankTransferType
+
+
+ Services +
+ + ++ service Subscriptions + +
+ +
+
+ rpc UpdateSubscriber
+
+
+ Request: org.signal.chat.subscriptions.UpdateSubscriberRequest
+ + Response:
org.signal.chat.subscriptions.UpdateSubscriberResponse
+ +
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.subscriptions.DeleteSubscriberRequest
+ + Response:
org.signal.chat.subscriptions.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 CreatePaymentMethod
+
+
+ Request: org.signal.chat.subscriptions.CreatePaymentMethodRequest
+ + Response:
org.signal.chat.subscriptions.CreatePaymentMethodResponse
+ +
Returns a client secret that can be used to set up a new payment method with the payment processor.
+
+
+ rpc CreatePayPalPaymentMethod
+
+
+ Request: org.signal.chat.subscriptions.CreatePayPalPaymentMethodRequest
+ + Response:
org.signal.chat.subscriptions.CreatePayPalPaymentMethodResponse
+ +
Returns a PayPal billing agreement approval URL and token that can be used to set up PayPal as a payment method.
+
+
+ rpc SetDefaultPaymentMethod
+
+
+ Request: org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest
+ + Response:
org.signal.chat.subscriptions.SetDefaultPaymentMethodResponse
+ +
Sets the default payment method for a subscriber.
+
+
+ rpc SetSubscriptionLevel
+
+
+ Request: org.signal.chat.subscriptions.SetSubscriptionLevelRequest
+ + Response:
org.signal.chat.subscriptions.SetSubscriptionLevelResponse
+ +
Sets the subscription level and currency for a subscriber.
+
+
+ rpc GetSubscriptionInformation
+
+
+ Request: org.signal.chat.subscriptions.GetSubscriptionInformationRequest
+ + Response:
org.signal.chat.subscriptions.GetSubscriptionInformationResponse
+ +
Returns information about the current subscription associated with the provided subscriberId 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 GetReceiptCredentials
+
+
+ Request: org.signal.chat.subscriptions.GetReceiptCredentialsRequest
+ + Response:
org.signal.chat.subscriptions.GetReceiptCredentialsResponse
+ +
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 receipt credentials.
+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.subscriptions.SetIapSubscriptionRequest
+ + Response:
org.signal.chat.subscriptions.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 GetReceiptCredentials 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 GetReceiptCredentials which can then be used to obtain the + entitlement
+After calling this method, the payment is confirmed. Callers must durably store their subscriberId before calling +this method to ensure their payment is tracked.
+Once a purchaseToken to is posted to a subscriberId, the same subscriberId must not be used with another payment +method. A different playbilling purchaseToken can be posted to the same subscriberId, in this case the subscription +associated with the old purchaseToken will be cancelled.
+
+
+ rpc GetConfiguration
+
+
+ Request: org.signal.chat.subscriptions.GetConfigurationRequest
+ + Response:
org.signal.chat.subscriptions.GetConfigurationResponse
+ +
Returns all configuration for badges, donation subscriptions, backup subscriptions, and one-time donation ( +"boost" and "gift") minimum and suggested amounts.
+
+
+ rpc GetBankMandate
+
+
+ Request: org.signal.chat.subscriptions.GetBankMandateRequest
+ + Response:
org.signal.chat.subscriptions.GetBankMandateResponse
+ +
Returns a localized bank mandate for the specified bank transfer type
++ Messages +
+ + + +
+
+ message AmountList
+
+
(Nested in org.signal.chat.subscriptions.GetConfigurationResponse
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ amounts + | +
+
+
+ repeated
+
+ string
+
+ |
+ NOTE: this is a string instead of a numeric type because it is intended +for display purposes only |
+
+
+
+ message AppStorePurchase
+
+
(Nested in org.signal.chat.subscriptions.SetIapSubscriptionRequest
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ original_transaction_id + | +
+
+
+ string
+
+ |
+ + + |
+
+ message BackupConfiguration
+
+
(Nested in org.signal.chat.subscriptions.GetConfigurationResponse
+ )
+
+
+
+
+
+| + | 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 + | +
+
+
+ uint64
+
+ |
+ The number of days of media a free tier backup user gets |
+
+
+
+ message BackupLevelConfiguration
+
+
(Nested in org.signal.chat.subscriptions.GetConfigurationResponse
+ )
+
+
+
+
+
+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 + | +
+
+
+ uint64
+
+ |
+ The duration, in days, for which your backed up media is retained on the server after you stop refreshing with a paid credential |
+
+
+
+ message Badge
+
+
(Nested in org.signal.chat.subscriptions.GetConfigurationResponse
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ badge + | +
+
+
+ org.signal.chat.common.Badge
+
+
+ |
+ + + |
| 2 | ++ duration_seconds + | +
+
+
+ optional
+
+ uint64
+
+ |
+ Present only for one-time (purchasable) badges |
+
+
+
+ message BraintreePaymentMethod
+
+
(Nested in org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ paymentMethodToken + | +
+
+
+ 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.subscriptions.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 CreatePayPalPaymentMethodRequest + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ subscriberId + | +
+
+
+ bytes
+
+ |
+ + + |
| 2 | ++ returnUrl + | +
+
+
+ string
+
+ |
+ a callback URL (e.g. an in-client URL handler) for when the user approved the payment |
+
+
| 3 | ++ cancelUrl + | +
+
+
+ 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.subscriptions.CreatePayPalPaymentMethodResponse.CreatePayPalPaymentMethodResult
+
+
+ |
+ + + |
| + 2 + | ++ subscriber_not_found + | +
+
+
+ org.signal.chat.errors.NotFound
+
+
+ |
+ + + |
| + 3 + | ++ subscriber_id_mismatch + | +
+
+
+ org.signal.chat.errors.FailedUnidentifiedAuthorization
+
+
+ |
+ subscriberId authentication failure |
+
+
| + 4 + | ++ 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.subscriptions.CreatePayPalPaymentMethodResponse
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ approvalUrl + | +
+
+
+ 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 CreatePaymentMethodRequest + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ subscriberId + | +
+
+
+ bytes
+
+ |
+ Only PAYMENT_METHOD_CARD, PAYMENT_METHOD_SEPA_DEBIT, and PAYMENT_METHOD_IDEAL are supported; +other values will result in an INVALID_ARGUMENT error. |
+
+
| 2 | ++ paymentMethod + | +
+
+
+ org.signal.chat.subscriptions.PaymentMethod
+
+
+ |
+ + + |
+ + message CreatePaymentMethodResponse + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ result + | +
+
+
+ org.signal.chat.subscriptions.CreatePaymentMethodResponse.CreatePaymentMethodResult
+
+
+ |
+ + + |
| + 2 + | ++ subscriber_not_found + | +
+
+
+ org.signal.chat.errors.NotFound
+
+
+ |
+ + + |
| + 3 + | ++ subscriber_id_mismatch + | +
+
+
+ org.signal.chat.errors.FailedUnidentifiedAuthorization
+
+
+ |
+ subscriberId authentication failure |
+
+
| + 4 + | ++ subscription_processor_conflict + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ New payment processor does not match existing processor associated with the subscription |
+
+
+
+ message CreatePaymentMethodResult
+
+
(Nested in org.signal.chat.subscriptions.CreatePaymentMethodResponse
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ clientSecret + | +
+
+
+ string
+
+ |
+ + + |
| 2 | ++ paymentProvider + | +
+
+
+ org.signal.chat.subscriptions.PaymentProvider
+
+
+ |
+ + + |
+
+ message CurrencyConfiguration
+
+
(Nested in org.signal.chat.subscriptions.GetConfigurationResponse
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ minimum + | +
+
+
+ string
+
+ |
+ Minimum one-time donation +NOTE: this is a string instead of a numeric type because it is intended +for display purposes only |
+
+
| 2 | ++ one_time + | +
+
+
+ map<uint64, AmountList>
+
+ |
+ Map of one-time donation level IDs to suggested amounts |
+
+
| 3 | ++ subscription + | +
+
+
+ map<uint64, string>
+
+ |
+ Map of subscription level IDs to the amount charged |
+
+
| 4 | ++ backup_subscription + | +
+
+
+ map<uint64, string>
+
+ |
+ Map of backup subscription level IDs to the amount charged |
+
+
| 5 | ++ supported_payment_methods + | +
+
+
+ repeated
+
+ org.signal.chat.subscriptions.PaymentMethod
+
+
+ |
+ + + |
+ + message DeleteSubscriberRequest + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ subscriberId + | +
+
+
+ bytes
+
+ |
+ + + |
+ + message DeleteSubscriberResponse + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ success + | +
+
+
+ google.protobuf.Empty
+
+ |
+ + + |
| + 2 + | ++ subscriber_not_found + | +
+
+
+ org.signal.chat.errors.NotFound
+
+
+ |
+ + + |
| + 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.subscriptions.BankTransferType
+
+
+ |
+ + + |
+ + message GetBankMandateResponse + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ mandate + | +
+
+
+ string
+
+ |
+ + + |
+ + message GetConfigurationRequest + + + +
+ +| + | Field | +Type | +Description | + +
|---|
+ + message GetConfigurationResponse + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ currencies + | +
+
+
+ map<string, CurrencyConfiguration>
+
+ |
+ Map of lower-cased ISO 3 currency codes to currency-specific configuration |
+
+
| 2 | ++ levels + | +
+
+
+ map<uint64, LevelConfiguration>
+
+ |
+ Map of numeric donation level IDs to level-specific badge configuration |
+
+
| 3 | ++ backup + | +
+
+
+ org.signal.chat.subscriptions.GetConfigurationResponse.BackupConfiguration
+
+
+ |
+ + + |
| 4 | ++ sepa_maximum_euros + | +
+
+
+ string
+
+ |
+ Maximum value of a one-time SEPA donation |
+
+
+ + message GetReceiptCredentialsRequest + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ subscriberId + | +
+
+
+ bytes
+
+ |
+ + + |
| 2 | ++ receiptCredentialRequest + | +
+
+
+ bytes
+
+ |
+ + + |
+ + message GetReceiptCredentialsResponse + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ success + | +
+
+
+ org.signal.chat.subscriptions.GetReceiptCredentialsResponse.GetReceiptCredentialsResult
+
+
+ |
+ + + |
| + 2 + | ++ subscriber_not_found + | +
+
+
+ org.signal.chat.errors.NotFound
+
+
+ |
+ + + |
| + 3 + | ++ subscriber_id_mismatch + | +
+
+
+ org.signal.chat.errors.FailedUnidentifiedAuthorization
+
+
+ |
+ subscriberId authentication failure |
+
+
| + 4 + | ++ no_paid_invoice + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ No invoice has been issued for this subscription OR invoice is in 'draft' or 'open' state |
+
+
| + 5 + | ++ payment_required + | +
+
+
+ org.signal.chat.subscriptions.GetReceiptCredentialsResponse.PaymentRequired
+
+
+ |
+ Invoice is in any state other than 'draft', 'open', or 'paid'; Charge failure details may be present |
+
+
| + 6 + | ++ 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 GetReceiptCredentialsResult
+
+
(Nested in org.signal.chat.subscriptions.GetReceiptCredentialsResponse
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ receiptCredentialResponse + | +
+
+
+ bytes
+
+ |
+ + + |
+ + message GetSubscriptionInformationRequest + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ subscriberId + | +
+
+
+ bytes
+
+ |
+ + + |
+ + message GetSubscriptionInformationResponse + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ success + | +
+
+
+ org.signal.chat.subscriptions.GetSubscriptionInformationResponse.Subscription
+
+
+ |
+ + + |
| + 2 + | ++ no_subscription + | +
+
+
+ google.protobuf.Empty
+
+ |
+ + + |
| + 3 + | ++ subscriber_not_found + | +
+
+
+ org.signal.chat.errors.NotFound
+
+
+ |
+ + + |
| + 4 + | ++ subscriber_id_mismatch + | +
+
+
+ org.signal.chat.errors.FailedUnidentifiedAuthorization
+
+
+ |
+ subscriberId authentication failure |
+
+
+
+ message LevelConfiguration
+
+
(Nested in org.signal.chat.subscriptions.GetConfigurationResponse
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ badge + | +
+
+
+ org.signal.chat.subscriptions.GetConfigurationResponse.Badge
+
+
+ |
+ + + |
+
+ message PaymentRequired
+
+
(Nested in org.signal.chat.subscriptions.GetReceiptCredentialsResponse
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ charge_failure + | +
+
+
+ optional
+
+ org.signal.chat.subscriptions.ChargeFailure
+
+
+ |
+ + + |
+
+ message PlayBillingPurchase
+
+
(Nested in org.signal.chat.subscriptions.SetIapSubscriptionRequest
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ purchase_token + | +
+
+
+ string
+
+ |
+ + + |
+
+ message SepaPaymentMethod
+
+
(Nested in org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ setupIntentId + | +
+
+
+ string
+
+ |
+ + + |
+ + message SetDefaultPaymentMethodRequest + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ subscriberId + | +
+
+
+ bytes
+
+ |
+ + + |
|
+
+ oneof request
+
+ |
+ |||
| + 2 + | ++ stripe + | +
+
+
+ org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest.StripePaymentMethod
+
+
+ |
+ + + |
| + 3 + | ++ braintree + | +
+
+
+ org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest.BraintreePaymentMethod
+
+
+ |
+ + + |
| + 4 + | ++ sepa + | +
+
+
+ org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest.SepaPaymentMethod
+
+
+ |
+ + + |
+ + message SetDefaultPaymentMethodResponse + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ success + | +
+
+
+ google.protobuf.Empty
+
+ |
+ + + |
| + 2 + | ++ subscriber_not_found + | +
+
+
+ org.signal.chat.errors.NotFound
+
+
+ |
+ + + |
| + 3 + | ++ subscriber_id_mismatch + | +
+
+
+ org.signal.chat.errors.FailedUnidentifiedAuthorization
+
+
+ |
+ subscriberId authentication failure |
+
+
| + 4 + | ++ payment_method_not_set_up + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ + + |
+ + message SetIapSubscriptionRequest + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ subscriberId + | +
+
+
+ bytes
+
+ |
+ + + |
|
+
+ oneof request
+
+ |
+ |||
| + 2 + | ++ app_store + | +
+
+
+ org.signal.chat.subscriptions.SetIapSubscriptionRequest.AppStorePurchase
+
+
+ |
+ + + |
| + 3 + | ++ play_billing + | +
+
+
+ org.signal.chat.subscriptions.SetIapSubscriptionRequest.PlayBillingPurchase
+
+
+ |
+ + + |
+ + message SetIapSubscriptionResponse + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ success + | +
+
+
+ org.signal.chat.subscriptions.SetIapSubscriptionResponse.SetIapSubscriptionResult
+
+
+ |
+ + + |
| + 2 + | ++ subscriber_not_found + | +
+
+
+ org.signal.chat.errors.NotFound
+
+
+ |
+ + + |
| + 3 + | ++ subscriber_id_mismatch + | +
+
+
+ org.signal.chat.errors.FailedUnidentifiedAuthorization
+
+
+ |
+ subscriberId authentication failure |
+
+
| + 4 + | ++ subscription_processor_conflict + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ New payment processor does not match existing processor associated with the subscription |
+
+
| + 5 + | ++ payment_required + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ + + |
| + 6 + | ++ invalid_transaction + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ + + |
+
+ message SetIapSubscriptionResult
+
+
(Nested in org.signal.chat.subscriptions.SetIapSubscriptionResponse
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ level + | +
+
+
+ uint64
+
+ |
+ + + |
+ + message SetSubscriptionLevelRequest + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ subscriberId + | +
+
+
+ bytes
+
+ |
+ + + |
| 2 | ++ level + | +
+
+
+ uint64
+
+ |
+ + + |
| 3 | ++ currency + | +
+
+
+ string
+
+ |
+ + + |
| 4 | ++ idempotencyKey + | +
+
+
+ string
+
+ |
+ + + |
+ + message SetSubscriptionLevelResponse + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ success + | +
+
+
+ org.signal.chat.subscriptions.SetSubscriptionLevelResponse.SetSubscriptionLevelResult
+
+
+ |
+ + + |
| + 2 + | ++ subscriber_not_found + | +
+
+
+ org.signal.chat.errors.NotFound
+
+
+ |
+ + + |
| + 3 + | ++ subscriber_id_mismatch + | +
+
+
+ org.signal.chat.errors.FailedUnidentifiedAuthorization
+
+
+ |
+ subscriberId authentication failure |
+
+
| + 4 + | ++ subscription_processor_conflict + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ New payment processor does not match existing processor associated with the subscription |
+
+
| + 5 + | ++ payment_method_not_set_up + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ + + |
| + 6 + | ++ unsupported_operation + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ The payment processor does not support this operation |
+
+
| + 7 + | ++ unsupported_level + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ The requested level was invalid |
+
+
| + 8 + | ++ unsupported_currency + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ The requested currency was invalid |
+
+
| + 9 + | ++ payment_requires_action + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ The card could not be charged |
+
+
| + 10 + | ++ invalid_level_transition + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ Cannot transition from existing level to the requested level |
+
+
| + 11 + | ++ invalid_idempotency_key + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ The idempotency key was invalid or re-used with a modified request |
+
+
| + 12 + | ++ charge_failure + | +
+
+
+ org.signal.chat.subscriptions.ChargeFailure
+
+
+ |
+ The payment failed; see charge failure details |
+
+
+
+ message SetSubscriptionLevelResult
+
+
(Nested in org.signal.chat.subscriptions.SetSubscriptionLevelResponse
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ level + | +
+
+
+ uint64
+
+ |
+ + + |
+
+ message StripePaymentMethod
+
+
(Nested in org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest
+ )
+
+
+
+
+
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ paymentMethodToken + | +
+
+
+ string
+
+ |
+ + + |
+
+ message Subscription
+
+
(Nested in org.signal.chat.subscriptions.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 smallest unit |
+
+
| 8 | ++ status + | +
+
+
+ org.signal.chat.subscriptions.SubscriptionStatus
+
+
+ |
+ The subscription's status, mapped to Stripe's statuses. trialing will never be returned |
+
+
| 9 | ++ processor + | +
+
+
+ org.signal.chat.subscriptions.PaymentProvider
+
+
+ |
+ The payment provider associated with the subscription |
+
+
| 10 | ++ payment_method + | +
+
+
+ org.signal.chat.subscriptions.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.subscriptions.ChargeFailure
+
+
+ |
+ if present, contains information that may be interpreted to help the user fix a failure |
+
+
+ + message UpdateSubscriberRequest + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ subscriberId + | +
+
+
+ bytes
+
+ |
+ + + |
+ + message UpdateSubscriberResponse + + + +
+ +| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ success + | +
+
+
+ google.protobuf.Empty
+
+ |
+ + + |
| + 2 + | ++ subscriber_id_mismatch + | +
+
+
+ org.signal.chat.errors.FailedUnidentifiedAuthorization
+
+
+ |
+ subscriberId authentication failure |
+
+
+ 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. |
+