diff --git a/grpc/org.signal.chat.purchase.html b/grpc/org.signal.chat.purchase.html index ddb53d577..dce89082d 100644 --- a/grpc/org.signal.chat.purchase.html +++ b/grpc/org.signal.chat.purchase.html @@ -70,6 +70,13 @@
+

+ + Service + LoginPurchase + +

+

Service @@ -242,6 +249,33 @@ +

+ + Message + CreateLoginReceiptCredentialRequest + +

+ + + +

+ + Message + CreateLoginReceiptCredentialResponse + +

+ + + +

+ + Message + CreateLoginReceiptCredentialResult + +

+ + +

Message @@ -638,6 +672,42 @@

+

+ service LoginPurchase + +

+ +
+

Service for one-time purchases of logins

+
+ + +
+ + + +
+

Obtain a ZK receipt credential for a completed one-time login payment.

+

The receipt credential can then be presented at registration

+
+ +
+ +
+ +
+ +

service OneTimeDonations @@ -2496,6 +2566,297 @@ depending on which processor was used

+
+ + +

+ + message CreateLoginReceiptCredentialRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + processor + + + + org.signal.chat.purchase.PaymentProvider + + +

The payment processor. Currently, only GOOGLE_PLAY_BILLING and +APPLE_APP_STORE are supported.

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:

+
    +
  • Level == 300 (The login level)
  • +
  • ExpirationTime % 86400 == 0
  • +
  • ExpirationTime == PurchaseTime + (5 * 366 * 86400) +/- (7 * 86400)
  • +
+ +
+ + + +
+ + +

+ + message CreateLoginReceiptCredentialResponse + + + +

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

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + receipt_credential_response + + + + bytes + +
+ +
+ + +
diff --git a/grpc/search.html b/grpc/search.html index 51ad32fb8..7198595d4 100644 --- a/grpc/search.html +++ b/grpc/search.html @@ -60,8 +60,8 @@