
cl.transbank.webpay.transaccioncompleta.responses.MallFullTransactionInstallmentsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transbank-sdk-java Show documentation
Show all versions of transbank-sdk-java Show documentation
Tranbank API integration SDK for Java Projects
The newest version!
package cl.transbank.webpay.transaccioncompleta.responses;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* This class represents a response to an installments operation for a Mall Full transaction.
*/
public class MallFullTransactionInstallmentsResponse {
private List responseList = new ArrayList<>();
private MallFullTransactionInstallmentsResponse() {}
/**
* Builds a new MallFullTransactionInstallmentsResponse.
* @return A new MallFullTransactionInstallmentsResponse.
*/
public static MallFullTransactionInstallmentsResponse build() {
return new MallFullTransactionInstallmentsResponse();
}
/**
* Builds a new MallFullTransactionInstallmentsResponse with the provided list of responses.
* @param response The list of responses.
* @return A new MallFullTransactionInstallmentsResponse.
*/
public static MallFullTransactionInstallmentsResponse build(
MallFullTransactionInstallmentResponse response
) {
return MallFullTransactionInstallmentsResponse.build().add(response);
}
/**
* Adds a new item to the response list.
* @param response The response to add.
* @return The same MallFullTransactionInstallmentsResponse instance.
*/
public MallFullTransactionInstallmentsResponse add(
MallFullTransactionInstallmentResponse response
) {
responseList.add(response);
return this;
}
/**
* Removes an item from the response list.
* @param response The response to remove.
* @return True if the response was removed, false otherwise.
*/
public boolean remove(MallFullTransactionInstallmentResponse response) {
return getResponseList().remove(response);
}
/**
* Returns the response list.
* @return The response list.
*/
public List getResponseList() {
return Collections.unmodifiableList(responseList);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy