Rename `RedeemReceiptRequest` to help openapi
This commit is contained in:
parent
1df824db7c
commit
2046b02bd8
|
@ -121,9 +121,9 @@ public class ArchiveController {
|
||||||
.thenApply(Util.ASYNC_EMPTY_RESPONSE);
|
.thenApply(Util.ASYNC_EMPTY_RESPONSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public record RedeemReceiptRequest(
|
public record RedeemBackupReceiptRequest(
|
||||||
@Schema(description = "Presentation of a ZK receipt encoded in standard padded base64", implementation = String.class)
|
@Schema(description = "Presentation of a ZK receipt encoded in standard padded base64", implementation = String.class)
|
||||||
@JsonDeserialize(using = RedeemReceiptRequest.Deserializer.class)
|
@JsonDeserialize(using = RedeemBackupReceiptRequest.Deserializer.class)
|
||||||
@NotNull
|
@NotNull
|
||||||
ReceiptCredentialPresentation receiptCredentialPresentation) {
|
ReceiptCredentialPresentation receiptCredentialPresentation) {
|
||||||
|
|
||||||
|
@ -159,10 +159,10 @@ public class ArchiveController {
|
||||||
@ApiResponse(responseCode = "429", description = "Rate limited.")
|
@ApiResponse(responseCode = "429", description = "Rate limited.")
|
||||||
public CompletionStage<Response> redeemReceipt(
|
public CompletionStage<Response> redeemReceipt(
|
||||||
@Mutable @Auth final AuthenticatedAccount account,
|
@Mutable @Auth final AuthenticatedAccount account,
|
||||||
@Valid @NotNull final RedeemReceiptRequest redeemReceiptRequest) {
|
@Valid @NotNull final RedeemBackupReceiptRequest redeemBackupReceiptRequest) {
|
||||||
return this.backupAuthManager.redeemReceipt(
|
return this.backupAuthManager.redeemReceipt(
|
||||||
account.getAccount(),
|
account.getAccount(),
|
||||||
redeemReceiptRequest.receiptCredentialPresentation())
|
redeemBackupReceiptRequest.receiptCredentialPresentation())
|
||||||
.thenApply(Util.ASYNC_EMPTY_RESPONSE);
|
.thenApply(Util.ASYNC_EMPTY_RESPONSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue