|
| 1 | +package com.sportradar.mbs.sdk.entities.request; |
| 2 | + |
| 3 | +import com.sportradar.mbs.sdk.entities.common.EndCustomer; |
| 4 | +import com.sportradar.mbs.sdk.entities.common.FinancialLimitType; |
| 5 | +import com.sportradar.mbs.sdk.entities.common.LimitFrequency; |
| 6 | +import com.sportradar.mbs.sdk.entities.common.Amount; |
| 7 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 8 | + |
| 9 | +/** |
| 10 | + * Represents a request to inform about a financial limit for an end customer. |
| 11 | + */ |
| 12 | +public class FinancialLimitInformRequest extends ContentRequest { |
| 13 | + |
| 14 | + /** |
| 15 | + * The financial amount associated with the limit. |
| 16 | + */ |
| 17 | + @JsonProperty("amount") |
| 18 | + private Amount amount; |
| 19 | + |
| 20 | + /** |
| 21 | + * Information about the end customer. |
| 22 | + */ |
| 23 | + @JsonProperty("endCustomer") |
| 24 | + private EndCustomer endCustomer; |
| 25 | + |
| 26 | + /** |
| 27 | + * The type of financial limit being informed about. |
| 28 | + */ |
| 29 | + @JsonProperty("limitType") |
| 30 | + private FinancialLimitType limitType; |
| 31 | + |
| 32 | + /** |
| 33 | + * The frequency of the limit enforcement. |
| 34 | + */ |
| 35 | + @JsonProperty("frequency") |
| 36 | + private LimitFrequency frequency; |
| 37 | + |
| 38 | + /** |
| 39 | + * Retrieves the financial amount associated with the limit. |
| 40 | + * |
| 41 | + * @return the amount instance |
| 42 | + */ |
| 43 | + public Amount getAmount() { |
| 44 | + return this.amount; |
| 45 | + } |
| 46 | + |
| 47 | + /** |
| 48 | + * Sets the financial amount associated with the limit. |
| 49 | + * |
| 50 | + * @param value the amount instance |
| 51 | + */ |
| 52 | + public void setAmount(Amount value) { |
| 53 | + this.amount = value; |
| 54 | + } |
| 55 | + |
| 56 | + /** |
| 57 | + * Retrieves the end customer information. |
| 58 | + * |
| 59 | + * @return the end customer instance |
| 60 | + */ |
| 61 | + public EndCustomer getEndCustomer() { |
| 62 | + return this.endCustomer; |
| 63 | + } |
| 64 | + |
| 65 | + /** |
| 66 | + * Sets the end customer information. |
| 67 | + * |
| 68 | + * @param value the end customer instance |
| 69 | + */ |
| 70 | + public void setEndCustomer(EndCustomer value) { |
| 71 | + this.endCustomer = value; |
| 72 | + } |
| 73 | + |
| 74 | + /** |
| 75 | + * Retrieves the type of financial limit. |
| 76 | + * |
| 77 | + * @return the financial limit type instance |
| 78 | + */ |
| 79 | + public FinancialLimitType getLimitType() { |
| 80 | + return this.limitType; |
| 81 | + } |
| 82 | + |
| 83 | + /** |
| 84 | + * Sets the type of financial limit. |
| 85 | + * |
| 86 | + * @param value the financial limit type instance |
| 87 | + */ |
| 88 | + public void setLimitType(FinancialLimitType value) { |
| 89 | + this.limitType = value; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * Retrieves the frequency of the financial limit enforcement. |
| 94 | + * |
| 95 | + * @return the frequency instance |
| 96 | + */ |
| 97 | + public LimitFrequency getFrequency() { |
| 98 | + return this.frequency; |
| 99 | + } |
| 100 | + |
| 101 | + /** |
| 102 | + * Sets the frequency of the financial limit enforcement. |
| 103 | + * |
| 104 | + * @param value the frequency instance |
| 105 | + */ |
| 106 | + public void setFrequency(LimitFrequency value) { |
| 107 | + this.frequency = value; |
| 108 | + } |
| 109 | + |
| 110 | + /** |
| 111 | + * Creates a new builder instance for constructing a {@code FinancialLimitInformRequest}. |
| 112 | + * |
| 113 | + * @return a new Builder instance |
| 114 | + */ |
| 115 | + public static Builder newBuilder() { |
| 116 | + return new Builder(); |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * Builder class for {@code FinancialLimitInformRequest} to facilitate object creation. |
| 121 | + */ |
| 122 | + public static class Builder { |
| 123 | + |
| 124 | + /** |
| 125 | + * Instance of {@code FinancialLimitInformRequest} being built. |
| 126 | + */ |
| 127 | + private final FinancialLimitInformRequest instance = new FinancialLimitInformRequest(); |
| 128 | + |
| 129 | + /** |
| 130 | + * Private constructor to enforce the use of {@code newBuilder()}. |
| 131 | + */ |
| 132 | + private Builder() { |
| 133 | + } |
| 134 | + |
| 135 | + /** |
| 136 | + * Builds and returns the {@code FinancialLimitInformRequest} instance. |
| 137 | + * |
| 138 | + * @return the constructed {@code FinancialLimitInformRequest} instance |
| 139 | + */ |
| 140 | + public FinancialLimitInformRequest build() { |
| 141 | + return this.instance; |
| 142 | + } |
| 143 | + |
| 144 | + /** |
| 145 | + * Sets the financial amount associated with the limit. |
| 146 | + * |
| 147 | + * @param value the amount instance |
| 148 | + * @return the builder instance |
| 149 | + */ |
| 150 | + public Builder setAmount(Amount value) { |
| 151 | + this.instance.setAmount(value); |
| 152 | + return this; |
| 153 | + } |
| 154 | + |
| 155 | + /** |
| 156 | + * Sets the end customer information. |
| 157 | + * |
| 158 | + * @param value the end customer instance |
| 159 | + * @return the builder instance |
| 160 | + */ |
| 161 | + public Builder setEndCustomer(EndCustomer value) { |
| 162 | + this.instance.setEndCustomer(value); |
| 163 | + return this; |
| 164 | + } |
| 165 | + |
| 166 | + /** |
| 167 | + * Sets the type of financial limit. |
| 168 | + * |
| 169 | + * @param value the financial limit type instance |
| 170 | + * @return the builder instance |
| 171 | + */ |
| 172 | + public Builder setLimitType(FinancialLimitType value) { |
| 173 | + this.instance.setLimitType(value); |
| 174 | + return this; |
| 175 | + } |
| 176 | + |
| 177 | + /** |
| 178 | + * Sets the frequency of the financial limit enforcement. |
| 179 | + * |
| 180 | + * @param value the frequency instance |
| 181 | + * @return the builder instance |
| 182 | + */ |
| 183 | + public Builder setFrequency(LimitFrequency value) { |
| 184 | + this.instance.setFrequency(value); |
| 185 | + return this; |
| 186 | + } |
| 187 | + } |
| 188 | +} |
0 commit comments