tech.carpentum.sdk.payment.model.FailureReasonCode 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 FILE IS GENERATED, DO NOT MODIFY IT MANUALLY!!!
package tech.carpentum.sdk.payment.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.*;
/**
*
* * `SYSTEM` - Internal error. Contact support for more info.
* `PAYMENT_PROCESS_ERROR` - There has been error in payment process. Contact support for more info.
* `ENTITY_EXPIRED` - When entity (incoming payment, outgoing payment) has expired.
* `DIFFERENT_AMOUNT_CONFIRMED` - Customer sent different amount then requested.
* `CURRENCY_NOT_SUPPORTED` - The selected currency is not supported by merchant.
* `CURRENCY_PRECISION_EXCEEDED` - The provided payment amount exceeds the smallest fractional unit allowed for the specified currency.
* `PAYMENT_METHOD_NOT_FOUND` - No payment method has been found for seleceted payment criteria. Verify your product configuration and contact support for further details.
* `PAYMENT_METHOD_ERROR` - A processing error has been encountered for payment. An unexpected scenario with required operator intervention, contact support for further details.
* `PAYMENT_OPERATOR_NOT_FOUND` - The payment operator has not been found.
* `PAYMENT_OPERATOR_CODE_INVALID` - The selected payment operator is not supported by a used payment method.
* `PAYMENT_CHANNEL_NO_ACTIVE_FOUND`- No active payment channel that can accept the payment has been found.
* `PAYMENT_CHANNEL_NO_OPENED_FOUND` - No opened payment channel that can accept the payment has been found.
* `PAYMENT_CHANNEL_NO_SEGMENT_FOUND` - No payment channel that can accept the payment with the specified segment has been found.
* `PAYMENT_CHANNEL_AMOUNT_LIMITS` - No payment channel with amount limits suitable for the payment amount has been found. Limits can be found with [`GET /payment-options`](#operations-Payments-getPaymentOptions) API.
* `PAYMENT_CHANNEL_DAILY_LIMITS` - All the suitable channels reached their daily limits on payment amount. Select different payment method or contact support for limits adjustments.
* `IP_DENIED` - The provided IP address is denied. It is either found in the blacklist or is not found in the whitelist.
* `BALANCE_INSUFFICIENT` - The balance is not sufficient for payout.
* `INVALID_ACCOUNT_NUMBER` - Account number is invalid or does not exist.
* `INVALID_ACCOUNT_NAME` - Account name provided in the payment does not match the name assigned to the account.
* `INCORRECT_CURRENCY` - Paid in different currency than payorder currency.
*
*
*
* The model class is immutable.
*
* Use static {@link #of} method to create a new model class instance.
*/
public interface FailureReasonCode {
FailureReasonCode PAYMENT_METHOD_NOT_FOUND = FailureReasonCode.of("PAYMENT_METHOD_NOT_FOUND");
FailureReasonCode IP_DENIED = FailureReasonCode.of("IP_DENIED");
FailureReasonCode PAYMENT_PROCESS_ERROR = FailureReasonCode.of("PAYMENT_PROCESS_ERROR");
FailureReasonCode DIFFERENT_AMOUNT_CONFIRMED = FailureReasonCode.of("DIFFERENT_AMOUNT_CONFIRMED");
FailureReasonCode PAYMENT_OPERATOR_NOT_FOUND = FailureReasonCode.of("PAYMENT_OPERATOR_NOT_FOUND");
FailureReasonCode INVALID_ACCOUNT_NUMBER = FailureReasonCode.of("INVALID_ACCOUNT_NUMBER");
FailureReasonCode INVALID_ACCOUNT_NAME = FailureReasonCode.of("INVALID_ACCOUNT_NAME");
FailureReasonCode PAYMENT_CHANNEL_NO_ACTIVE_FOUND = FailureReasonCode.of("PAYMENT_CHANNEL_NO_ACTIVE_FOUND");
FailureReasonCode PAYMENT_CHANNEL_DAILY_LIMITS = FailureReasonCode.of("PAYMENT_CHANNEL_DAILY_LIMITS");
FailureReasonCode PAYMENT_CHANNEL_NO_OPENED_FOUND = FailureReasonCode.of("PAYMENT_CHANNEL_NO_OPENED_FOUND");
FailureReasonCode SYSTEM = FailureReasonCode.of("SYSTEM");
FailureReasonCode PAYMENT_CHANNEL_NO_SEGMENT_FOUND = FailureReasonCode.of("PAYMENT_CHANNEL_NO_SEGMENT_FOUND");
FailureReasonCode PAYMENT_OPERATOR_CODE_INVALID = FailureReasonCode.of("PAYMENT_OPERATOR_CODE_INVALID");
FailureReasonCode CURRENCY_PRECISION_EXCEEDED = FailureReasonCode.of("CURRENCY_PRECISION_EXCEEDED");
FailureReasonCode CURRENCY_NOT_SUPPORTED = FailureReasonCode.of("CURRENCY_NOT_SUPPORTED");
FailureReasonCode BALANCE_INSUFFICIENT = FailureReasonCode.of("BALANCE_INSUFFICIENT");
FailureReasonCode INCORRECT_CURRENCY = FailureReasonCode.of("INCORRECT_CURRENCY");
FailureReasonCode PAYMENT_METHOD_ERROR = FailureReasonCode.of("PAYMENT_METHOD_ERROR");
FailureReasonCode PAYMENT_CHANNEL_AMOUNT_LIMITS = FailureReasonCode.of("PAYMENT_CHANNEL_AMOUNT_LIMITS");
FailureReasonCode ENTITY_EXPIRED = FailureReasonCode.of("ENTITY_EXPIRED");
@NotNull String getValue();
static FailureReasonCode of(@NotNull String value) {
return new FailureReasonCodeImpl(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy