|
| 1 | +// Code generated by sumup-java/codegen. DO NOT EDIT. |
| 2 | +package com.sumup.sdk.models; |
| 3 | + |
| 4 | +import java.util.Objects; |
| 5 | + |
| 6 | +/** |
| 7 | + * Optional object containing data for transactions from ERP integrators in Greece that comply with |
| 8 | + * the AADE 1155 protocol. When such regulatory/business requirements apply, this object must be |
| 9 | + * provided and contains the data needed to validate the transaction with the AADE signature |
| 10 | + * provider. |
| 11 | + */ |
| 12 | +public record CreateReaderCheckoutRequestAade( |
| 13 | + /** The identifier of the AADE signature provider. */ |
| 14 | + String providerId, |
| 15 | + |
| 16 | + /** The base64 encoded signature of the transaction data. */ |
| 17 | + String signature, |
| 18 | + |
| 19 | + /** The string containing the signed transaction data. */ |
| 20 | + String signatureData) { |
| 21 | + /** |
| 22 | + * Creates a builder for CreateReaderCheckoutRequestAade. |
| 23 | + * |
| 24 | + * @return Builder that constructs immutable CreateReaderCheckoutRequestAade instances. |
| 25 | + */ |
| 26 | + public static Builder builder() { |
| 27 | + return new Builder(); |
| 28 | + } |
| 29 | + |
| 30 | + /** Builder for CreateReaderCheckoutRequestAade instances. */ |
| 31 | + public static final class Builder { |
| 32 | + private String providerId; |
| 33 | + private String signature; |
| 34 | + private String signatureData; |
| 35 | + |
| 36 | + private Builder() {} |
| 37 | + |
| 38 | + /** |
| 39 | + * Sets the value for {@code providerId}. |
| 40 | + * |
| 41 | + * @param providerId The identifier of the AADE signature provider. |
| 42 | + * @return This builder instance. |
| 43 | + */ |
| 44 | + public Builder providerId(String providerId) { |
| 45 | + this.providerId = providerId; |
| 46 | + return this; |
| 47 | + } |
| 48 | + |
| 49 | + /** |
| 50 | + * Sets the value for {@code signature}. |
| 51 | + * |
| 52 | + * @param signature The base64 encoded signature of the transaction data. |
| 53 | + * @return This builder instance. |
| 54 | + */ |
| 55 | + public Builder signature(String signature) { |
| 56 | + this.signature = signature; |
| 57 | + return this; |
| 58 | + } |
| 59 | + |
| 60 | + /** |
| 61 | + * Sets the value for {@code signatureData}. |
| 62 | + * |
| 63 | + * @param signatureData The string containing the signed transaction data. |
| 64 | + * @return This builder instance. |
| 65 | + */ |
| 66 | + public Builder signatureData(String signatureData) { |
| 67 | + this.signatureData = signatureData; |
| 68 | + return this; |
| 69 | + } |
| 70 | + |
| 71 | + /** |
| 72 | + * Builds an immutable CreateReaderCheckoutRequestAade instance. |
| 73 | + * |
| 74 | + * @return Immutable CreateReaderCheckoutRequestAade. |
| 75 | + */ |
| 76 | + public CreateReaderCheckoutRequestAade build() { |
| 77 | + return new CreateReaderCheckoutRequestAade( |
| 78 | + Objects.requireNonNull(providerId, "providerId"), |
| 79 | + Objects.requireNonNull(signature, "signature"), |
| 80 | + Objects.requireNonNull(signatureData, "signatureData")); |
| 81 | + } |
| 82 | + } |
| 83 | +} |
0 commit comments