1
0
mirror of https://github.com/google/nomulus synced 2026-01-04 04:04:22 +00:00

Add setFee(List<Fee>) method to BaseFeeResponse

We need a flavor that accepts a list in order to set this from data returned
from the pricing system.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=125078913
This commit is contained in:
mmuller
2016-06-16 11:02:49 -07:00
committed by Ben McIlwain
parent 61f37b756a
commit 0306b81040

View File

@@ -84,9 +84,15 @@ public class BaseFeeResponse extends ImmutableObject {
return thisCastToDerived();
}
public B setFee(List<Fee> fees) {
getInstance().fee = forceEmptyToNull(ImmutableList.copyOf(fees));
return thisCastToDerived();
}
public B setClass(String feeClass) {
getInstance().feeClass = feeClass;
return thisCastToDerived();
}
}
}