Add escrow file import validation logic

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=129116064
This commit is contained in:
Wolfgang Meyers 2016-08-02 10:56:27 -07:00 committed by Justine Tunney
parent f9636b6cea
commit d3d33ccfdc
11 changed files with 956 additions and 33 deletions

View file

@ -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),