mirror of
https://github.com/google/nomulus
synced 2026-01-06 05:27:13 +00:00
Add escrow file import validation logic
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=129116064
This commit is contained in:
committed by
Justine Tunney
parent
f9636b6cea
commit
d3d33ccfdc
@@ -573,6 +573,16 @@ public class DatastoreHelper {
|
||||
.build());
|
||||
}
|
||||
|
||||
/** Creates a stripped-down {@link Registrar} with the specified clientId and ianaIdentifier */
|
||||
public static Registrar persistNewRegistrar(String clientId, long ianaIdentifier) {
|
||||
return persistSimpleResource(
|
||||
new Registrar.Builder()
|
||||
.setClientIdentifier(clientId)
|
||||
.setType(Registrar.Type.REAL)
|
||||
.setIanaIdentifier(ianaIdentifier)
|
||||
.build());
|
||||
}
|
||||
|
||||
private static Iterable<BillingEvent> getBillingEvents() {
|
||||
return Iterables.<BillingEvent>concat(
|
||||
ofy().load().type(BillingEvent.OneTime.class),
|
||||
|
||||
Reference in New Issue
Block a user