mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 12:31:08 +02:00
Allow partial update of billing account map
When doing update_registrar, it is now possible to only specify the currencies and the account ids that need updating. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=159262119
This commit is contained in:
parent
7d2f53a6fe
commit
d1ef4b9c37
3 changed files with 27 additions and 4 deletions
|
@ -698,8 +698,8 @@ public class Registrar extends ImmutableObject implements Buildable, Jsonifiable
|
|||
ImmutableMap.Builder<CurrencyUnit, BillingAccountEntry> billingAccountMapBuilder =
|
||||
new ImmutableMap.Builder<>();
|
||||
for (Map.Entry<CurrencyUnit, String> entry : billingAccountMap.entrySet()) {
|
||||
CurrencyUnit key = entry.getKey();
|
||||
billingAccountMapBuilder.put(key, new BillingAccountEntry(key, entry.getValue()));
|
||||
billingAccountMapBuilder.put(
|
||||
entry.getKey(), new BillingAccountEntry(entry.getKey(), entry.getValue()));
|
||||
}
|
||||
getInstance().billingAccountMap = billingAccountMapBuilder.build();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue