package com.commercetools.pspadapter.payone.mapping;

/**
 * @author fhaertig
 * @since 14.12.15
 */
public final class CustomFieldKeys {

    public static final String LANGUAGE_CODE_FIELD = "languageCode";
    public static final String REFERENCE_FIELD = "reference";
    public static final String REFERENCE_TEXT_FIELD = "referenceText";
    public static final String REDIRECT_URL_FIELD = "redirectUrl";
    public static final String SUCCESS_URL_FIELD = "successUrl";
    public static final String ERROR_URL_FIELD = "errorUrl";
    public static final String CANCEL_URL_FIELD = "cancelUrl";
    public static final String FORCE_3DSECURE_FIELD = "force3DSecure";
    public static final String CARD_DATA_PLACEHOLDER_FIELD = "cardDataPlaceholder";
    public static final String TRUNCATED_CARD_NUMBER_FIELD = "truncatedCardNumber";
    public static final String CARD_HOLDER_NAME_FIELD = "cardHolderName";
    public static final String CARD_EXPIRY_DATE_FIELD = "cardExpiryDate";
    public static final String CARD_NETWORK_FIELD = "cardNetwork";
    public static final String IBAN_FIELD = "IBAN";
    public static final String BIC_FIELD = "BIC";


    public static final String TIMESTAMP_FIELD = "timestamp";
    public static final String TRANSACTION_ID_FIELD = "transactionId";
    public static final String SEQUENCE_NUMBER_FIELD = "sequenceNumber";
    public static final String TX_ACTION_FIELD = "txAction";
    public static final String REQUEST_FIELD = "request";
    public static final String RESPONSE_FIELD = "response";

    public static final String NOTIFICATION_FIELD = "notification";
    public static final String MESSAGE_FIELD = "message";

    public static final String USER_ID_FIELD = "payoneUserId";

    public static final String PAID_FROM_NAME_FIELD = "paidFromAccountHolderName";
    public static final String PAID_FROM_IBAN_FIELD = "paidFromIBAN";
    public static final String PAID_FROM_BIC_FIELD = "paidFromBIC";
    public static final String REFUND_TO_NAME_FIELD = "refundToAccountHolderName";
    public static final String REFUND_TO_IBAN_FIELD = "refundToIBAN";
    public static final String REFUND_TO_BIC_FIELD = "refundToBIC";
    public static final String PAY_TO_NAME_FIELD = "paidToAccountHolderName";
    public static final String PAY_TO_IBAN_FIELD = "paidToIBAN";
    public static final String PAY_TO_BIC_FIELD = "paidToBIC";

    // Klarna
    public static final String GENDER_FIELD = "gender"; // KlarnaConstants.Gender
    public static final String IP = "ip"; // IP address, IPv4 or IPv6
    public static final String BIRTHDAY = "birthday"; // Date of birth (YYYYMMDD), Mandatory for DE, NE and AT

    // TODO: looks like not necessary to use custom fields and can be populated from billing address and other properties
    public static final String TELEPHONE_NUMBER = "telephonenumber";
    public static final String NARRATIVE_TEXT = "narrative_text"; // optional
    public static final String FINANCINGTYPE = "financingtype"; //KLV - Klarna Invoicing

    private CustomFieldKeys() {
    }
}

package com.commercetools.pspadapter.payone.mapping;

/**
 * @author fhaertig
 * @since 14.12.15
 */
public final class CustomFieldKeys {

    public static final String LANGUAGE_CODE_FIELD = "languageCode";
    public static final String REFERENCE_FIELD = "reference";
    public static final String REFERENCE_TEXT_FIELD = "referenceText";
    public static final String REDIRECT_URL_FIELD = "redirectUrl";
    public static final String SUCCESS_URL_FIELD = "successUrl";
    public static final String ERROR_URL_FIELD = "errorUrl";
    public static final String CANCEL_URL_FIELD = "cancelUrl";
    public static final String FORCE_3DSECURE_FIELD = "force3DSecure";
    public static final String CARD_DATA_PLACEHOLDER_FIELD = "cardDataPlaceholder";
    public static final String TRUNCATED_CARD_NUMBER_FIELD = "truncatedCardNumber";
    public static final String CARD_HOLDER_NAME_FIELD = "cardHolderName";
    public static final String CARD_EXPIRY_DATE_FIELD = "cardExpiryDate";
    public static final String CARD_NETWORK_FIELD = "cardNetwork";
    public static final String IBAN_FIELD = "IBAN";
    public static final String BIC_FIELD = "BIC";


    public static final String TIMESTAMP_FIELD = "timestamp";
    public static final String TRANSACTION_ID_FIELD = "transactionId";
    public static final String SEQUENCE_NUMBER_FIELD = "sequenceNumber";
    public static final String TX_ACTION_FIELD = "txAction";
    public static final String REQUEST_FIELD = "request";
    public static final String RESPONSE_FIELD = "response";

    public static final String NOTIFICATION_FIELD = "notification";
    public static final String MESSAGE_FIELD = "message";

    public static final String USER_ID_FIELD = "payoneUserId";

    public static final String PAID_FROM_NAME_FIELD = "paidFromAccountHolderName";
    public static final String PAID_FROM_IBAN_FIELD = "paidFromIBAN";
    public static final String PAID_FROM_BIC_FIELD = "paidFromBIC";
    public static final String REFUND_TO_NAME_FIELD = "refundToAccountHolderName";
    public static final String REFUND_TO_IBAN_FIELD = "refundToIBAN";
    public static final String REFUND_TO_BIC_FIELD = "refundToBIC";
    public static final String PAY_TO_NAME_FIELD = "paidToAccountHolderName";
    public static final String PAY_TO_IBAN_FIELD = "paidToIBAN";
    public static final String PAY_TO_BIC_FIELD = "paidToBIC";

    // Klarna
    public static final String GENDER_FIELD = "gender"; // KlarnaConstants.Gender
    public static final String IP = "ip"; // IP address, IPv4 or IPv6
    public static final String BIRTHDAY = "birthday"; // Date of birth (YYYYMMDD), Mandatory for DE, NE and AT

    private CustomFieldKeys() {
    }
}

remove redundant constants