tech.carpentum.sdk.payment.internal.generated.model.CommaSeparatedCurrencyCodesImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of payment-client-v2 Show documentation
Show all versions of payment-client-v2 Show documentation
Carpentum Payment system Java SDK
The newest version!
//THE FILE IS GENERATED, DO NOT MODIFY IT MANUALLY!!!
package tech.carpentum.sdk.payment.internal.generated.model;
import com.squareup.moshi.JsonClass;
import java.util.Objects;
import java.util.Optional;
import org.jetbrains.annotations.NotNull;
import tech.carpentum.sdk.payment.internal.generated.model.*;
import tech.carpentum.sdk.payment.model.*;
/** CommaSeparatedCurrencyCodes
*
* List of requested currencies.
How to send multiple values please refer to [Query for multiple values](general.html#query-for-multiple-values) section.
For supported currencies please refer to [`GET /currencies`](#operations-Payments-getCurrencies).
*
*
*
* The model class is immutable.
*
* Use static {@link #of} method to create a new model class instance.
*/
@JsonClass(generateAdapter = false)
public class CommaSeparatedCurrencyCodesImpl implements CommaSeparatedCurrencyCodes {
private final @NotNull String value;
private final int hashCode;
private final String toString;
public CommaSeparatedCurrencyCodesImpl(@NotNull String value) {
this.value = Objects.requireNonNull(value, "Property 'CommaSeparatedCurrencyCodes' is required.");
this.hashCode = value.hashCode();
this.toString = String.valueOf(value);
}
@Override
public String getValue() {
return value;
}
@Override
public String toString() {
return toString;
}
@Override
public int hashCode() {
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof CommaSeparatedCurrencyCodesImpl)) {
return false;
}
CommaSeparatedCurrencyCodesImpl that = (CommaSeparatedCurrencyCodesImpl) obj;
if (!this.value.equals(that.value)) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy