com.ingenico.connect.gateway.sdk.java.domain.hostedcheckout.definitions.DisplayedData Maven / Gradle / Ivy
Show all versions of connect-sdk-java Show documentation
/*
* This class was auto-generated from the API references found at
* https://epayments-api.developer-ingenico.com/s2sapi/v1/
*/
package com.ingenico.connect.gateway.sdk.java.domain.hostedcheckout.definitions;
import java.util.List;
import com.ingenico.connect.gateway.sdk.java.domain.definitions.KeyValuePair;
public class DisplayedData {
private String displayedDataType = null;
private String renderingData = null;
private List showData = null;
/**
* Action merchants needs to take in the online payment process. Possible values are:
*
* - SHOW_INSTRUCTIONS - The consumer needs to be shown payment instruction using the details found in showData. Alternatively the instructions can be rendered by us using the renderingData
*
- SHOW_TRANSACTION_RESULTS - The consumer needs to be shown the transaction results using the details found in showData. Alternatively the instructions can be rendered by us using the renderingData
*
*/
public String getDisplayedDataType() {
return displayedDataType;
}
/**
* Action merchants needs to take in the online payment process. Possible values are:
*
* - SHOW_INSTRUCTIONS - The consumer needs to be shown payment instruction using the details found in showData. Alternatively the instructions can be rendered by us using the renderingData
*
- SHOW_TRANSACTION_RESULTS - The consumer needs to be shown the transaction results using the details found in showData. Alternatively the instructions can be rendered by us using the renderingData
*
*/
public void setDisplayedDataType(String value) {
this.displayedDataType = value;
}
/**
* This field contains the blob with data for the instructions rendering service.
* This service will be available at the following endpoint:
* http(s)://{{merchant specific subdomain}}.{{base MyCheckout hosted payment pages domain}}/instructions/{{merchantId}}/{{clientSessionId}}
*
This instructions page rendering service accepts the following parameters:
*
- renderingData (required, the content of this field)
*
- locale (optional, if present overrides default locale, e.g. "en_GB")
*
- variant (optional, code of a variant, if present overrides default variant, e.g. "100")
*
* You can offer a link to a consumer to see an instructions page for a payment done earlier. Because of the size of the renderingData this will need to be set in a web form as a value of a hidden field. Before presenting the link you need to obtain a clientSessionId by creating a session using the S2S API. You will need to use the MyCheckout hosted payment pages domain hosted in the same region as the API domain used for the createClientSession call.
* The renderingData is a String blob that is presented to you via the Server API as part of the merchantAction (if available, and non-redirect) in the JSON return values for the createPayment call or the getHostedCheckoutStatus call (merchantAction inside createdPaymentOutput when available).
* You are responsible to store the renderingData blob in order to be able to present the instructions page at a later time, when this information might no longer be available through Server API calls.
*/
public String getRenderingData() {
return renderingData;
}
/**
* This field contains the blob with data for the instructions rendering service.
*
This service will be available at the following endpoint:
* http(s)://{{merchant specific subdomain}}.{{base MyCheckout hosted payment pages domain}}/instructions/{{merchantId}}/{{clientSessionId}}
*
This instructions page rendering service accepts the following parameters:
*
- renderingData (required, the content of this field)
*
- locale (optional, if present overrides default locale, e.g. "en_GB")
*
- variant (optional, code of a variant, if present overrides default variant, e.g. "100")
*
* You can offer a link to a consumer to see an instructions page for a payment done earlier. Because of the size of the renderingData this will need to be set in a web form as a value of a hidden field. Before presenting the link you need to obtain a clientSessionId by creating a session using the S2S API. You will need to use the MyCheckout hosted payment pages domain hosted in the same region as the API domain used for the createClientSession call.
* The renderingData is a String blob that is presented to you via the Server API as part of the merchantAction (if available, and non-redirect) in the JSON return values for the createPayment call or the getHostedCheckoutStatus call (merchantAction inside createdPaymentOutput when available).
* You are responsible to store the renderingData blob in order to be able to present the instructions page at a later time, when this information might no longer be available through Server API calls.
*/
public void setRenderingData(String value) {
this.renderingData = value;
}
/**
* Array of key value pairs of data that needs to be shown to the consumer. This is returned for both the SHOW_INSTRUCTION as well as the SHOW_TRANSACTION_RESULTS actionType.
* Note: The returned value for the key BARCODE is a base64 encoded gif image. By prepending 'data:image/gif;base64,' this value can be used as the source of an HTML inline image.
*/
public List getShowData() {
return showData;
}
/**
* Array of key value pairs of data that needs to be shown to the consumer. This is returned for both the SHOW_INSTRUCTION as well as the SHOW_TRANSACTION_RESULTS actionType.
* Note: The returned value for the key BARCODE is a base64 encoded gif image. By prepending 'data:image/gif;base64,' this value can be used as the source of an HTML inline image.
*/
public void setShowData(List value) {
this.showData = value;
}
}