1
0
mirror of https://github.com/google/nomulus synced 2026-04-29 04:17:15 +00: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:
jianglai
2017-06-16 12:41:19 -07:00
committed by Ben McIlwain
parent 7d2f53a6fe
commit d1ef4b9c37
3 changed files with 27 additions and 4 deletions

View File

@@ -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();
}