blob: 7687b3cc6d59bdbd3f8afd713106ba4e13deb514 [file] [log] [blame]
/*
* Copyright 2017 The Mifos Initiative.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.mifos.individuallending.internal.service;
import io.mifos.individuallending.api.v1.domain.caseinstance.CaseParameters;
import io.mifos.portfolio.api.v1.domain.AccountAssignment;
import io.mifos.portfolio.service.internal.repository.CaseEntity;
import io.mifos.portfolio.service.internal.repository.ProductEntity;
import java.util.List;
/**
* @author Myrle Krantz
*/
public class DataContextOfAction {
private final ProductEntity product;
private final CaseEntity customerCase;
private final CaseParameters caseParameters;
private final List<AccountAssignment> oneTimeAccountAssignments;
DataContextOfAction(final ProductEntity product,
final CaseEntity customerCase,
final CaseParameters caseParameters,
final List<AccountAssignment> oneTimeAccountAssignments) {
this.product = product;
this.customerCase = customerCase;
this.caseParameters = caseParameters;
this.oneTimeAccountAssignments = oneTimeAccountAssignments;
}
public ProductEntity getProduct() {
return product;
}
public CaseEntity getCustomerCase() {
return customerCase;
}
public CaseParameters getCaseParameters() {
return caseParameters;
}
public List<AccountAssignment> getOneTimeAccountAssignments() {
return oneTimeAccountAssignments;
}
}