Class GeneratePaymentRequestDTO
java.lang.Object
xyz.tcheeric.cashu.voucher.app.dto.GeneratePaymentRequestDTO
Request DTO for generating a NUT-18V VoucherPaymentRequest.
This DTO encapsulates the parameters needed to create a payment request that can be displayed as a QR code or shared with customers for voucher payments.
Usage Example
GeneratePaymentRequestDTO request = GeneratePaymentRequestDTO.builder()
.issuerId("merchant123")
.amount(5000)
.unit("sat")
.description("Coffee purchase")
.singleUse(true)
.offlineVerification(false)
.build();
GeneratePaymentRequestResponse response = voucherService.generatePaymentRequest(request);
String qrContent = response.getEncodedRequest(); // vreqA...
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GeneratePaymentRequestDTO
public GeneratePaymentRequestDTO()
-