Document RPCs that require an Accept-Language header

This commit is contained in:
Ravi Khadiwala authored and Jon Chambers committed 2026-09-02 16:34:48 -04:00
1 parent 6209466d1d
commit 6ab0acadfd
2 files changed
+16 -2

No files matched your search

@@ -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
@@ -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) {}
}