diff --git a/grpc/index.html b/grpc/index.html index d5f5c40e1..710db2a10 100644 --- a/grpc/index.html +++ b/grpc/index.html @@ -236,6 +236,13 @@ header. If provided, the request will fail with a BAD_AUTHENTICATION +

+ + org.signal.chat.one_time_donations + +

+ +

org.signal.chat.payments diff --git a/grpc/org.signal.chat.donations.html b/grpc/org.signal.chat.donations.html index bc9f8ed58..f57cec331 100644 --- a/grpc/org.signal.chat.donations.html +++ b/grpc/org.signal.chat.donations.html @@ -80,6 +80,24 @@ +

+ + Message + CreateDonationPermitRequest + +

+ + + +

+ + Message + CreateDonationPermitResponse + +

+ + +

Message @@ -147,6 +165,27 @@ 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.

+
+
@@ -163,6 +202,106 @@ +
+ + +

+ + message CreateDonationPermitRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + donation_permit_request + + + + bytes + +

a serialized libsignal DonationPermitRequest

+ +
+ + + +
+ + +

+ + message CreateDonationPermitResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + donation_permit_response + + + + bytes + +

a serialized libsignal DonationPermitResponse

+ +
+ + +
diff --git a/grpc/org.signal.chat.one_time_donations.html b/grpc/org.signal.chat.one_time_donations.html new file mode 100644 index 000000000..c5783dd33 --- /dev/null +++ b/grpc/org.signal.chat.one_time_donations.html @@ -0,0 +1,1606 @@ + + + + + + Protobuf module documentation + + + + + + +
+ +
+ +
+

+ ← Back to packages +

+

+ + Package org.signal.chat.one_time_donations + +

+ + + +
+ +
+ + + +
+

+ Services +

+ + +
+ + +

+ service OneTimeDonations + +

+ +
+

Service for making one-time donation payments (boost and gift)

+

Note that these are siblings of the RPCs in the Subscriptions service. One-time payments do +not require the subscription management methods in that service, though the configuration at +Subscriptions.GetConfiguration is shared between subscription and one-time payments.

+
+ + +
+ + + +
+

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 CreateBoostReceiptCredentials

+
+ +
+ +
+ + + +
+

Create a PayPal one-time payment. +Once the payment is complete, call ConfirmPayPalBoost with the payment ID and token

+
+ +
+ + + +
+ + + +
+

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

+
+ +
+ +
+ +
+ + + + + +

+ Messages +

+ + + +
+ + +

+ + message AmountAboveSepaLimitError + + + +

+ +
+

The SEPA Direct Debit amount exceeds the allowed maximum.

+
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + maximum + + + + string + +

The maximum amount for a SEPA transaction

+ +
+ + + +
+ + +

+ + message AmountBelowMinimumError + + + +

+ +
+

The amount is below the minimum for the currency.

+
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + minimum + + + + string + +

The minimum amount for the currency

+ +
+ + + +
+ + +

+ + message ConfirmPayPalBoostRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
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.

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 + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + result + + + + org.signal.chat.one_time_donations.ConfirmPayPalBoostResponse.ConfirmPayPalBoostResult + + +
+ 2 + + amount_below_minimum + + + + org.signal.chat.one_time_donations.AmountBelowMinimumError + + +

The amount is below the minimum for the currency

+ 3 + + unsupported_currency + + + + org.signal.chat.errors.FailedPrecondition + + +

The requested currency is not supported for PayPal

+ 4 + + unsupported_level + + + + org.signal.chat.errors.FailedPrecondition + + +

The requested level is not a valid one-time donation level

+ +
+ + + +
+ + +

+ + message ConfirmPayPalBoostResult + +
(Nested in org.signal.chat.one_time_donations.ConfirmPayPalBoostResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + payment_id + + + + string + +
+ +
+ + + +
+ + +

+ + message CreateBoostReceiptCredentialsRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
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.subscriptions.PaymentProvider + + +

The processor that handled the payment

+ +
+ + + +
+ + +

+ + message CreateBoostReceiptCredentialsResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + result + + + + org.signal.chat.one_time_donations.CreateBoostReceiptCredentialsResponse.CreateBoostReceiptCredentialsResult + + +
+ 2 + + payment_still_processing + + + + org.signal.chat.errors.FailedPrecondition + + +

Payment is still processing; client should retry

+ 3 + + payment_required + + + + org.signal.chat.subscriptions.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 CreateBoostReceiptCredentialsResult + +
(Nested in org.signal.chat.one_time_donations.CreateBoostReceiptCredentialsResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + receipt_credential_response + + + + bytes + +
+ +
+ + + +
+ + +

+ + message CreateBoostRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
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

4 + payment_method + + + + org.signal.chat.subscriptions.PaymentMethod + + +

The payment method

5 + donation_permit + + + + bytes + +

A donation permit retrieved from Donations.createDonationPermit

+ +
+ + + +
+ + +

+ + message CreateBoostResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + client_secret + + + + string + +

A client secret that can be used to complete a stripe PaymentIntent

+ 2 + + amount_below_minimum + + + + org.signal.chat.one_time_donations.AmountBelowMinimumError + + +

The amount is below the minimum for the currency

+ 3 + + amount_above_sepa_limit + + + + org.signal.chat.one_time_donations.AmountAboveSepaLimitError + + +

The amount exceeds the maximum for SEPA Direct Debit

+ 4 + + unsupported_currency + + + + org.signal.chat.errors.FailedPrecondition + + +

The requested currency is not supported for the given payment method

+ 5 + + unsupported_level + + + + org.signal.chat.errors.FailedPrecondition + + +

The requested level is not a valid one-time donation level

+ 6 + + permit_rejected + + + + org.signal.chat.errors.FailedZkAuthentication + + +

Donation permit was invalid or already spent

+ +
+ + + +
+ + +

+ + message CreatePayPalBoostRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
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.

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 + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + result + + + + org.signal.chat.one_time_donations.CreatePayPalBoostResponse.CreatePayPalBoostResult + + +
+ 2 + + amount_below_minimum + + + + org.signal.chat.one_time_donations.AmountBelowMinimumError + + +

The amount is below the minimum for the currency

+ 3 + + unsupported_currency + + + + org.signal.chat.errors.FailedPrecondition + + +

The requested currency is not supported for PayPal

+ 4 + + unsupported_level + + + + org.signal.chat.errors.FailedPrecondition + + +

The requested level is not a valid one-time donation level

+ +
+ + + +
+ + +

+ + message CreatePayPalBoostResult + +
(Nested in org.signal.chat.one_time_donations.CreatePayPalBoostResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + approval_url + + + + string + +
2 + payment_id + + + + string + +
+ +
+ + + + + + + +
+ + + + \ No newline at end of file diff --git a/grpc/org.signal.chat.subscriptions.html b/grpc/org.signal.chat.subscriptions.html index cf43219b3..291413ef0 100644 --- a/grpc/org.signal.chat.subscriptions.html +++ b/grpc/org.signal.chat.subscriptions.html @@ -325,7 +325,7 @@

- + Message PaymentRequired @@ -1630,7 +1630,7 @@ depending on which processor was used

1 - subscriberId + subscriber_id @@ -1646,7 +1646,7 @@ other values will result in an INVALID_ARGUMENT error.

2 - paymentMethod + payment_method @@ -1659,6 +1659,21 @@ other values will result in an INVALID_ARGUMENT error.

+ + 3 + + donation_permit + + + + + bytes + + +

a libsignal DonationPermit from rpc Donations.CreateDonationPermit

+ + + @@ -1785,6 +1800,26 @@ other values will result in an INVALID_ARGUMENT error.

+ + + + + 5 + + + permit_rejected + + + + + org.signal.chat.errors.FailedZkAuthentication + + + +

The donation permit was expired or already spent

+ + + @@ -2562,9 +2597,9 @@ for display purposes only

payment_required - + - org.signal.chat.subscriptions.GetReceiptCredentialsResponse.PaymentRequired + org.signal.chat.subscriptions.PaymentRequired @@ -2891,12 +2926,9 @@ for display purposes only

-

+

- message PaymentRequired - -
(Nested in org.signal.chat.subscriptions.GetReceiptCredentialsResponse - ) + message PaymentRequired
@@ -4361,7 +4393,7 @@ for display purposes only

1 - subscriberId + subscriber_id @@ -4373,6 +4405,22 @@ for display purposes only

+ + 2 + + donation_permit + + + + + bytes + + +

A libsignal DonationPermit from rpc Donations.CreateDonationPermit. +Not required if the subscriber already exists.

+ + + @@ -4458,6 +4506,26 @@ for display purposes only

+ + + + + 3 + + + permit_rejected + + + + + org.signal.chat.errors.FailedZkAuthentication + + + +

The donation permit was expired or already spent

+ + + diff --git a/grpc/search.html b/grpc/search.html index ec9176da3..208208fba 100644 --- a/grpc/search.html +++ b/grpc/search.html @@ -60,8 +60,8 @@