From 6ab0acadfdd56731516221aeb45633d77fda0682 Mon Sep 17 00:00:00 2001 From: Ravi Khadiwala Date: Mon, 31 Aug 2026 15:09:54 -0500 Subject: [PATCH] Document RPCs that require an Accept-Language header --- .../proto/org/signal/chat/one_time_donations.proto | 8 +++++++- .../src/main/proto/org/signal/chat/subscriptions.proto | 10 +++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/service/src/main/proto/org/signal/chat/one_time_donations.proto b/service/src/main/proto/org/signal/chat/one_time_donations.proto index 11e53ab20..8ab95ff68 100644 --- a/service/src/main/proto/org/signal/chat/one_time_donations.proto +++ b/service/src/main/proto/org/signal/chat/one_time_donations.proto @@ -25,7 +25,13 @@ service OneTimeDonations { rpc CreateBoost(CreateBoostRequest) returns (CreateBoostResponse) {} // Create a PayPal one-time payment. - // Once the payment is complete, call ConfirmPayPalBoost with the payment ID and token + // + // Once the payment is complete, call ConfirmPayPalBoost with the payment ID + // and token. + // + // The presented billing agreement may be localized. Callers should set their + // language preferences via an "Accept-Language" header on the request: + // https://datatracker.ietf.org/doc/html/rfc3282#section-3 rpc CreatePayPalBoost(CreatePayPalBoostRequest) returns (CreatePayPalBoostResponse) {} // Confirm a PayPal one-time payment diff --git a/service/src/main/proto/org/signal/chat/subscriptions.proto b/service/src/main/proto/org/signal/chat/subscriptions.proto index a820bac4d..5948c1bb1 100644 --- a/service/src/main/proto/org/signal/chat/subscriptions.proto +++ b/service/src/main/proto/org/signal/chat/subscriptions.proto @@ -37,6 +37,10 @@ service Subscriptions { rpc CreatePaymentMethod(CreatePaymentMethodRequest) returns (CreatePaymentMethodResponse) {} // 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 an "Accept-Language" header on the request: + // https://datatracker.ietf.org/doc/html/rfc3282#section-3 rpc CreatePayPalPaymentMethod(CreatePayPalPaymentMethodRequest) returns (CreatePayPalPaymentMethodResponse) {} // Sets the default payment method for a subscriber. @@ -102,7 +106,11 @@ service Subscriptions { // associated with the old purchaseToken will be cancelled. rpc SetIapSubscription(SetIapSubscriptionRequest) returns (SetIapSubscriptionResponse) {} - // Returns a localized bank mandate for the specified bank transfer type + // 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 rpc GetBankMandate(GetBankMandateRequest) returns (GetBankMandateResponse) {} }