mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Add escrow file import validation logic
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=129116064
This commit is contained in:
parent
f9636b6cea
commit
d3d33ccfdc
11 changed files with 956 additions and 33 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue