mirror of
https://github.com/google/nomulus.git
synced 2025-06-05 20:17:27 +02: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:
parent
61f37b756a
commit
0306b81040
1 changed files with 6 additions and 0 deletions
|
@ -84,9 +84,15 @@ public class BaseFeeResponse extends ImmutableObject {
|
||||||
return thisCastToDerived();
|
return thisCastToDerived();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public B setFee(List<Fee> fees) {
|
||||||
|
getInstance().fee = forceEmptyToNull(ImmutableList.copyOf(fees));
|
||||||
|
return thisCastToDerived();
|
||||||
|
}
|
||||||
|
|
||||||
public B setClass(String feeClass) {
|
public B setClass(String feeClass) {
|
||||||
getInstance().feeClass = feeClass;
|
getInstance().feeClass = feeClass;
|
||||||
return thisCastToDerived();
|
return thisCastToDerived();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue