cl.transbank.transaccioncompleta.model.MallFullTransactionInstallmentsDetails 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
package cl.transbank.transaccioncompleta.model;
import cl.transbank.transaccioncompleta.MallFullTransactionInstallmentsRequest;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class MallFullTransactionInstallmentsDetails {
private List detailList = new ArrayList<>();
private MallFullTransactionInstallmentsDetails() {}
public static MallFullTransactionInstallmentsDetails build() {
return new MallFullTransactionInstallmentsDetails();
}
public static MallFullTransactionInstallmentsDetails build(String commerceCode, String buyOrder,byte installmentsNumber) {
return MallFullTransactionInstallmentsDetails.build().add(commerceCode, buyOrder, installmentsNumber);
}
public MallFullTransactionInstallmentsDetails add(String commerceCode, String buyOrder,byte installmentsNumber) {
detailList.add(new MallFullTransactionInstallmentsDetails.Detail(commerceCode, buyOrder, installmentsNumber));
return this;
}
public boolean remove(String commerceCode, String buyOrder,byte installmentsNumber) {
return getDetails().remove(new MallFullTransactionInstallmentsDetails.Detail(commerceCode, buyOrder, installmentsNumber));
}
public List getDetails() {
return Collections.unmodifiableList(detailList);
}
public class Detail extends MallFullTransactionInstallmentsRequest {
Detail(String commerceCode, String buyOrder,byte installmentsNumber){
super(commerceCode, buyOrder, installmentsNumber);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy