com.ingenico.direct.domain.PaymentProductFieldFormElement Maven / Gradle / Ivy
/*
* This class was auto-generated from the API references found at
* https://support.direct.ingenico.com/documentation/api/reference
*/
package com.ingenico.direct.domain;
import java.util.List;
/**
* Object detailing the type of form element that should be used to present the field
*/
public class PaymentProductFieldFormElement {
private String type = null;
private List valueMapping = null;
/**
* Type of form element to be used. The following types can be returned:
* * text - A normal text input field
* * list - A list of values that the customer needs to choose from, is detailed in the valueMapping array
* * currency - Currency fields should be split into two fields, with the second one being specifically for the cents
* * boolean - Boolean fields should offer the customer a choice, like accepting the terms and conditions of a product.
* * date - let the customer pick a date.
*/
public String getType() {
return type;
}
/**
* Type of form element to be used. The following types can be returned:
* * text - A normal text input field
* * list - A list of values that the customer needs to choose from, is detailed in the valueMapping array
* * currency - Currency fields should be split into two fields, with the second one being specifically for the cents
* * boolean - Boolean fields should offer the customer a choice, like accepting the terms and conditions of a product.
* * date - let the customer pick a date.
*/
public void setType(String value) {
this.type = value;
}
/**
* Deprecated: This field is not used by any payment product
*/
public List getValueMapping() {
return valueMapping;
}
/**
* Deprecated: This field is not used by any payment product
*/
public void setValueMapping(List value) {
this.valueMapping = value;
}
}