mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 03:58:34 +02:00
Add extra logic for all relevant flows
This CL enhances various domain flows (check, create, delete, renew, restore, transfer, update) so that they invoke the appropriate methods on the object implementing the TLD's RegistryExtraFlowLogic (if any). TldSpecificLogicProxy is also updated to invoke RegistryExtraFlowLogic proxy (if any) to fetch the appropriate price. The tests use a made-up extra flow logic object which can be attached to a test TLD to make sure that the proper routines are being invoked. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=132486734
This commit is contained in:
parent
a6db24c8bb
commit
95cc7ab3d8
46 changed files with 1173 additions and 394 deletions
|
@ -21,6 +21,7 @@ import static google.registry.model.ofy.ObjectifyService.ofy;
|
|||
import static google.registry.pricing.PricingEngineProxy.getPricesForDomainName;
|
||||
import static google.registry.testing.DatastoreHelper.assertBillingEvents;
|
||||
import static google.registry.testing.DatastoreHelper.createTld;
|
||||
import static google.registry.testing.DatastoreHelper.createTlds;
|
||||
import static google.registry.testing.DatastoreHelper.deleteTld;
|
||||
import static google.registry.testing.DatastoreHelper.getHistoryEntries;
|
||||
import static google.registry.testing.DatastoreHelper.newContactResource;
|
||||
|
@ -104,6 +105,7 @@ import google.registry.model.billing.BillingEvent.Reason;
|
|||
import google.registry.model.domain.DomainResource;
|
||||
import google.registry.model.domain.GracePeriod;
|
||||
import google.registry.model.domain.LrpToken;
|
||||
import google.registry.model.domain.TestExtraLogicManager;
|
||||
import google.registry.model.domain.launch.ApplicationStatus;
|
||||
import google.registry.model.domain.launch.LaunchNotice;
|
||||
import google.registry.model.domain.rgp.GracePeriodStatus;
|
||||
|
@ -134,7 +136,7 @@ public class DomainCreateFlowTest extends ResourceFlowTestCase<DomainCreateFlow,
|
|||
|
||||
@Before
|
||||
public void initCreateTest() throws Exception {
|
||||
createTld("tld");
|
||||
createTlds("tld", "flags");
|
||||
persistResource(Registry.get("tld").asBuilder()
|
||||
.setReservedLists(persistReservedList(
|
||||
"tld-reserved",
|
||||
|
@ -142,6 +144,7 @@ public class DomainCreateFlowTest extends ResourceFlowTestCase<DomainCreateFlow,
|
|||
"anchor,RESERVED_FOR_ANCHOR_TENANT,2fooBAR"))
|
||||
.build());
|
||||
persistClaimsList(ImmutableMap.of("example-one", CLAIMS_KEY));
|
||||
RegistryExtraFlowLogicProxy.setOverride("flags", TestExtraLogicManager.class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1604,4 +1607,20 @@ public class DomainCreateFlowTest extends ResourceFlowTestCase<DomainCreateFlow,
|
|||
.build());
|
||||
doSuccessfulTest("tld", "domain_create_response.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_flags_feeMismatch() throws Exception {
|
||||
persistContactsAndHosts();
|
||||
setEppInput("domain_create_flags.xml", ImmutableMap.of("FEE", "12"));
|
||||
thrown.expect(FeesMismatchException.class);
|
||||
runFlow();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_flags() throws Exception {
|
||||
persistContactsAndHosts();
|
||||
setEppInput("domain_create_flags.xml", ImmutableMap.of("FEE", "42"));
|
||||
thrown.expect(IllegalArgumentException.class, "flag1,flag2");
|
||||
runFlow();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ import static google.registry.flows.domain.DomainTransferFlowTestCase.persistWit
|
|||
import static google.registry.model.EppResourceUtils.loadByUniqueId;
|
||||
import static google.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static google.registry.testing.DatastoreHelper.assertBillingEvents;
|
||||
import static google.registry.testing.DatastoreHelper.createTld;
|
||||
import static google.registry.testing.DatastoreHelper.createTlds;
|
||||
import static google.registry.testing.DatastoreHelper.getOnlyHistoryEntryOfType;
|
||||
import static google.registry.testing.DatastoreHelper.getOnlyPollMessage;
|
||||
import static google.registry.testing.DatastoreHelper.getPollMessages;
|
||||
|
@ -56,6 +56,7 @@ import google.registry.model.billing.BillingEvent.Reason;
|
|||
import google.registry.model.contact.ContactResource;
|
||||
import google.registry.model.domain.DomainResource;
|
||||
import google.registry.model.domain.GracePeriod;
|
||||
import google.registry.model.domain.TestExtraLogicManager;
|
||||
import google.registry.model.domain.rgp.GracePeriodStatus;
|
||||
import google.registry.model.eppcommon.ProtocolDefinition.ServiceExtension;
|
||||
import google.registry.model.eppcommon.StatusValue;
|
||||
|
@ -100,7 +101,9 @@ public class DomainDeleteFlowTest extends ResourceFlowTestCase<DomainDeleteFlow,
|
|||
|
||||
@Before
|
||||
public void initDomainTest() throws Exception {
|
||||
createTld("tld");
|
||||
createTlds("tld", "flags");
|
||||
// For flags extension tests.
|
||||
RegistryExtraFlowLogicProxy.setOverride("flags", TestExtraLogicManager.class);
|
||||
}
|
||||
|
||||
private void setupSuccessfulTest() throws Exception {
|
||||
|
@ -696,4 +699,12 @@ public class DomainDeleteFlowTest extends ResourceFlowTestCase<DomainDeleteFlow,
|
|||
persistResource(newDomainResource(getUniqueIdFromCommand()));
|
||||
runFlow();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_flags() throws Exception {
|
||||
setEppInput("domain_delete_flags.xml");
|
||||
setupSuccessfulTest();
|
||||
thrown.expect(IllegalArgumentException.class, "deleted");
|
||||
runFlow();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ import static google.registry.flows.domain.DomainTransferFlowTestCase.persistWit
|
|||
import static google.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static google.registry.testing.DatastoreHelper.assertBillingEvents;
|
||||
import static google.registry.testing.DatastoreHelper.createTld;
|
||||
import static google.registry.testing.DatastoreHelper.createTlds;
|
||||
import static google.registry.testing.DatastoreHelper.getOnlyHistoryEntryOfType;
|
||||
import static google.registry.testing.DatastoreHelper.newDomainResource;
|
||||
import static google.registry.testing.DatastoreHelper.persistActiveDomain;
|
||||
|
@ -53,6 +54,7 @@ import google.registry.model.billing.BillingEvent.Flag;
|
|||
import google.registry.model.billing.BillingEvent.Reason;
|
||||
import google.registry.model.domain.DomainResource;
|
||||
import google.registry.model.domain.GracePeriod;
|
||||
import google.registry.model.domain.TestExtraLogicManager;
|
||||
import google.registry.model.domain.rgp.GracePeriodStatus;
|
||||
import google.registry.model.eppcommon.StatusValue;
|
||||
import google.registry.model.poll.PollMessage;
|
||||
|
@ -85,7 +87,9 @@ public class DomainRenewFlowTest extends ResourceFlowTestCase<DomainRenewFlow, D
|
|||
|
||||
@Before
|
||||
public void initDomainTest() {
|
||||
createTld("tld");
|
||||
createTlds("tld", "flags");
|
||||
// For flags extension tests.
|
||||
RegistryExtraFlowLogicProxy.setOverride("flags", TestExtraLogicManager.class);
|
||||
}
|
||||
|
||||
private void persistDomain(StatusValue... statusValues) throws Exception {
|
||||
|
@ -607,4 +611,12 @@ public class DomainRenewFlowTest extends ResourceFlowTestCase<DomainRenewFlow, D
|
|||
persistDomain();
|
||||
runFlow();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_flags() throws Exception {
|
||||
setEppInput("domain_renew_flags.xml");
|
||||
persistDomain();
|
||||
thrown.expect(IllegalArgumentException.class, "renewed");
|
||||
runFlow();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,10 +18,12 @@ import static com.google.common.truth.Truth.assertThat;
|
|||
import static google.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static google.registry.testing.DatastoreHelper.assertBillingEvents;
|
||||
import static google.registry.testing.DatastoreHelper.createTld;
|
||||
import static google.registry.testing.DatastoreHelper.createTlds;
|
||||
import static google.registry.testing.DatastoreHelper.getOnlyHistoryEntryOfType;
|
||||
import static google.registry.testing.DatastoreHelper.getPollMessages;
|
||||
import static google.registry.testing.DatastoreHelper.newDomainResource;
|
||||
import static google.registry.testing.DatastoreHelper.persistActiveDomain;
|
||||
import static google.registry.testing.DatastoreHelper.persistDeletedDomain;
|
||||
import static google.registry.testing.DatastoreHelper.persistReservedList;
|
||||
import static google.registry.testing.DatastoreHelper.persistResource;
|
||||
import static google.registry.testing.DomainResourceSubject.assertAboutDomains;
|
||||
|
@ -54,6 +56,7 @@ import google.registry.model.billing.BillingEvent.Flag;
|
|||
import google.registry.model.billing.BillingEvent.Reason;
|
||||
import google.registry.model.domain.DomainResource;
|
||||
import google.registry.model.domain.GracePeriod;
|
||||
import google.registry.model.domain.TestExtraLogicManager;
|
||||
import google.registry.model.domain.rgp.GracePeriodStatus;
|
||||
import google.registry.model.eppcommon.StatusValue;
|
||||
import google.registry.model.poll.PollMessage;
|
||||
|
@ -82,7 +85,9 @@ public class DomainRestoreRequestFlowTest extends
|
|||
|
||||
@Before
|
||||
public void initDomainTest() {
|
||||
createTld("tld");
|
||||
createTlds("tld", "flags");
|
||||
// For flags extension tests.
|
||||
RegistryExtraFlowLogicProxy.setOverride("flags", TestExtraLogicManager.class);
|
||||
}
|
||||
|
||||
void persistPendingDeleteDomain() throws Exception {
|
||||
|
@ -446,6 +451,13 @@ public class DomainRestoreRequestFlowTest extends
|
|||
runFlow();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_fullyDeleted() throws Exception {
|
||||
thrown.expect(ResourceToMutateDoesNotExistException.class);
|
||||
persistDeletedDomain(getUniqueIdFromCommand(), clock.nowUtc());
|
||||
runFlow();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_withChange() throws Exception {
|
||||
thrown.expect(RestoreCommandIncludesChangesException.class);
|
||||
|
@ -539,4 +551,12 @@ public class DomainRestoreRequestFlowTest extends
|
|||
persistPendingDeleteDomain();
|
||||
runFlow();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_flags() throws Exception {
|
||||
setEppInput("domain_update_restore_request_flags.xml");
|
||||
persistPendingDeleteDomain();
|
||||
thrown.expect(IllegalArgumentException.class, "restored");
|
||||
runFlow();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ package google.registry.flows.domain;
|
|||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static google.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static google.registry.testing.DatastoreHelper.assertBillingEvents;
|
||||
import static google.registry.testing.DatastoreHelper.createTld;
|
||||
import static google.registry.testing.DatastoreHelper.deleteResource;
|
||||
import static google.registry.testing.DatastoreHelper.getOnlyHistoryEntryOfType;
|
||||
import static google.registry.testing.DatastoreHelper.getOnlyPollMessage;
|
||||
|
@ -61,6 +62,7 @@ import google.registry.model.contact.ContactAuthInfo;
|
|||
import google.registry.model.domain.DomainAuthInfo;
|
||||
import google.registry.model.domain.DomainResource;
|
||||
import google.registry.model.domain.GracePeriod;
|
||||
import google.registry.model.domain.TestExtraLogicManager;
|
||||
import google.registry.model.domain.rgp.GracePeriodStatus;
|
||||
import google.registry.model.eppcommon.AuthInfo.PasswordAuth;
|
||||
import google.registry.model.eppcommon.StatusValue;
|
||||
|
@ -95,6 +97,8 @@ public class DomainTransferRequestFlowTest
|
|||
setEppInput("domain_transfer_request.xml");
|
||||
setClientIdForFlow("NewRegistrar");
|
||||
setupDomain("tld");
|
||||
createTld("flags");
|
||||
RegistryExtraFlowLogicProxy.setOverride("flags", TestExtraLogicManager.class);
|
||||
}
|
||||
|
||||
private void assertTransferRequested(EppResource resource) throws Exception {
|
||||
|
@ -760,4 +764,13 @@ public class DomainTransferRequestFlowTest
|
|||
domain.asBuilder().addStatusValue(StatusValue.PENDING_DELETE).build());
|
||||
doFailingTest("domain_transfer_request.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_flags() throws Exception {
|
||||
setEppInput("domain_transfer_request_flags.xml");
|
||||
setupDomain("example", "flags");
|
||||
eppLoader.replaceAll("JD1234-REP", contact.getRepoId());
|
||||
thrown.expect(IllegalArgumentException.class, "add:flag1,flag2;remove:flag3,flag4");
|
||||
runFlow();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1185,7 +1185,7 @@ public class DomainUpdateFlowTest extends ResourceFlowTestCase<DomainUpdateFlow,
|
|||
setEppInput("domain_update_addremove_flags.xml");
|
||||
persistReferencedEntities();
|
||||
persistDomain();
|
||||
thrown.expect(UnimplementedExtensionException.class);
|
||||
thrown.expect(IllegalArgumentException.class, "add:flag1,flag2;remove:flag3,flag4");
|
||||
runFlow();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,221 @@
|
|||
// Copyright 2016 The Domain Registry Authors. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package google.registry.flows.domain;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static google.registry.testing.DatastoreHelper.createTlds;
|
||||
import static google.registry.testing.DatastoreHelper.newDomainResource;
|
||||
import static google.registry.testing.DatastoreHelper.persistActiveDomain;
|
||||
import static google.registry.testing.DatastoreHelper.persistResource;
|
||||
import static google.registry.util.DateTimeUtils.START_OF_TIME;
|
||||
import static org.joda.money.CurrencyUnit.USD;
|
||||
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.collect.ImmutableSortedMap;
|
||||
import com.googlecode.objectify.Key;
|
||||
import google.registry.flows.ResourceMutateFlow.ResourceToMutateDoesNotExistException;
|
||||
import google.registry.model.domain.DomainResource;
|
||||
import google.registry.model.domain.GracePeriod;
|
||||
import google.registry.model.domain.TestExtraLogicManager;
|
||||
import google.registry.model.domain.fee.BaseFee.FeeType;
|
||||
import google.registry.model.domain.fee.Fee;
|
||||
import google.registry.model.domain.rgp.GracePeriodStatus;
|
||||
import google.registry.model.eppcommon.StatusValue;
|
||||
import google.registry.model.ofy.Ofy;
|
||||
import google.registry.model.poll.PollMessage;
|
||||
import google.registry.model.registry.Registry;
|
||||
import google.registry.model.reporting.HistoryEntry;
|
||||
import google.registry.pricing.PricingEngineProxy;
|
||||
import google.registry.testing.AppEngineRule;
|
||||
import google.registry.testing.ExceptionRule;
|
||||
import google.registry.testing.FakeClock;
|
||||
import google.registry.testing.InjectRule;
|
||||
import google.registry.testing.ShardableTestCase;
|
||||
import java.math.BigDecimal;
|
||||
import org.joda.money.CurrencyUnit;
|
||||
import org.joda.money.Money;
|
||||
import org.joda.time.DateTime;
|
||||
import org.junit.Before;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
||||
@RunWith(JUnit4.class)
|
||||
public class TldSpecificLogicProxyTest extends ShardableTestCase {
|
||||
|
||||
@Rule
|
||||
public final InjectRule inject = new InjectRule();
|
||||
|
||||
@Rule
|
||||
public final ExceptionRule thrown = new ExceptionRule();
|
||||
|
||||
@Rule
|
||||
public final AppEngineRule appEngine = AppEngineRule.builder().withDatastore().build();
|
||||
|
||||
final FakeClock clock = new FakeClock(DateTime.parse("2010-01-01T10:00:00Z"));
|
||||
|
||||
Money basicCreateCost;
|
||||
|
||||
@Before
|
||||
public void before() throws Exception {
|
||||
inject.setStaticField(Ofy.class, "clock", clock);
|
||||
createTlds("tld", "eap", "test");
|
||||
RegistryExtraFlowLogicProxy.setOverride("test", TestExtraLogicManager.class);
|
||||
DateTime a = clock.nowUtc().minusDays(1);
|
||||
DateTime b = clock.nowUtc().plusDays(1);
|
||||
persistResource(
|
||||
Registry.get("eap")
|
||||
.asBuilder()
|
||||
.setEapFeeSchedule(
|
||||
ImmutableSortedMap.of(
|
||||
START_OF_TIME, Money.of(USD, 0),
|
||||
a, Money.of(USD, 100),
|
||||
b, Money.of(USD, 50)))
|
||||
.build());
|
||||
basicCreateCost =
|
||||
PricingEngineProxy.getPricesForDomainName("example.tld", clock.nowUtc()).getCreateCost();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_basicCreatePrice() throws Exception {
|
||||
TldSpecificLogicProxy.EppCommandOperations createPrice =
|
||||
TldSpecificLogicProxy.getCreatePrice(
|
||||
Registry.get("tld"), "example.tld", "clientIdentifer", clock.nowUtc(), 1, null);
|
||||
assertThat(createPrice.getTotalCost()).isEqualTo(basicCreateCost);
|
||||
assertThat(createPrice.getFees()).hasSize(1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_eap() throws Exception {
|
||||
TldSpecificLogicProxy.EppCommandOperations createPrice =
|
||||
TldSpecificLogicProxy.getCreatePrice(
|
||||
Registry.get("eap"), "example.eap", "clientIdentifier", clock.nowUtc(), 1, null);
|
||||
assertThat(createPrice.getTotalCost()).isEqualTo(basicCreateCost.plus(Money.of(USD, 100)));
|
||||
assertThat(createPrice.getCurrency()).isEqualTo(USD);
|
||||
assertThat(createPrice.getFees().get(0))
|
||||
.isEqualTo(Fee.create(basicCreateCost.getAmount(), FeeType.CREATE));
|
||||
assertThat(createPrice.getFees().get(1))
|
||||
.isEqualTo(
|
||||
Fee.create(Money.of(USD, 100).getAmount(), FeeType.EAP, clock.nowUtc().plusDays(1)));
|
||||
assertThat(createPrice.getFees())
|
||||
.containsExactly(
|
||||
Fee.create(basicCreateCost.getAmount(), FeeType.CREATE),
|
||||
Fee.create(Money.of(USD, 100).getAmount(), FeeType.EAP, clock.nowUtc().plusDays(1)))
|
||||
.inOrder();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_extraLogic_createPrice() throws Exception {
|
||||
TldSpecificLogicProxy.EppCommandOperations price =
|
||||
TldSpecificLogicProxy.getCreatePrice(
|
||||
Registry.get("test"), "create-54.test", "clientIdentifier", clock.nowUtc(), 3, null);
|
||||
assertThat(price.getCurrency()).isEqualTo(CurrencyUnit.USD);
|
||||
assertThat(price.getFees()).hasSize(1);
|
||||
assertThat(price.getFees().get(0).getCost()).isEqualTo(new BigDecimal(54));
|
||||
assertThat(price.getFees().get(0).getDescription()).isEqualTo("create");
|
||||
assertThat(price.getCredits()).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_extraLogic_renewPrice() throws Exception {
|
||||
persistActiveDomain("renew--13.test");
|
||||
TldSpecificLogicProxy.EppCommandOperations price =
|
||||
TldSpecificLogicProxy.getRenewPrice(
|
||||
Registry.get("test"), "renew--13.test", "clientIdentifier", clock.nowUtc(), 1, null);
|
||||
assertThat(price.getCurrency()).isEqualTo(CurrencyUnit.USD);
|
||||
assertThat(price.getFees()).isEmpty();
|
||||
assertThat(price.getCredits()).hasSize(1);
|
||||
assertThat(price.getCredits().get(0).getCost()).isEqualTo(new BigDecimal(-13));
|
||||
assertThat(price.getCredits().get(0).getDescription()).isEqualTo("renew");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_extraLogic_renewPrice_noDomain() throws Exception {
|
||||
thrown.expect(ResourceToMutateDoesNotExistException.class);
|
||||
TldSpecificLogicProxy.getRenewPrice(
|
||||
Registry.get("test"), "renew--13.test", "clientIdentifier", clock.nowUtc(), 1, null);
|
||||
}
|
||||
|
||||
void persistPendingDeleteDomain(String domainName, DateTime now) throws Exception {
|
||||
DomainResource domain = newDomainResource(domainName);
|
||||
HistoryEntry historyEntry = persistResource(
|
||||
new HistoryEntry.Builder()
|
||||
.setType(HistoryEntry.Type.DOMAIN_DELETE)
|
||||
.setParent(domain)
|
||||
.build());
|
||||
domain = persistResource(domain.asBuilder()
|
||||
.setRegistrationExpirationTime(now.plusYears(5).plusDays(45))
|
||||
.setDeletionTime(now.plusDays(35))
|
||||
.addGracePeriod(GracePeriod.create(
|
||||
GracePeriodStatus.REDEMPTION, now.plusDays(1), "foo", null))
|
||||
.setStatusValues(ImmutableSet.of(StatusValue.PENDING_DELETE))
|
||||
.setDeletePollMessage(Key.create(persistResource(
|
||||
new PollMessage.OneTime.Builder()
|
||||
.setClientId("TheRegistrar")
|
||||
.setEventTime(now.plusDays(5))
|
||||
.setParent(historyEntry)
|
||||
.build())))
|
||||
.build());
|
||||
clock.advanceOneMilli();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_extraLogic_restorePrice() throws Exception {
|
||||
persistPendingDeleteDomain("renew-13.test", clock.nowUtc());
|
||||
TldSpecificLogicProxy.EppCommandOperations price =
|
||||
TldSpecificLogicProxy.getRestorePrice(
|
||||
Registry.get("test"), "renew-13.test", "clientIdentifier", clock.nowUtc(), null);
|
||||
assertThat(price.getCurrency()).isEqualTo(CurrencyUnit.USD);
|
||||
assertThat(price.getFees()).hasSize(2);
|
||||
assertThat(price.getFees().get(0).getCost()).isEqualTo(new BigDecimal(13));
|
||||
assertThat(price.getFees().get(0).getDescription()).isEqualTo("renew");
|
||||
assertThat(price.getFees().get(1).getDescription()).isEqualTo("restore");
|
||||
assertThat(price.getCredits()).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_extraLogic_restorePrice_noDomain() throws Exception {
|
||||
thrown.expect(ResourceToMutateDoesNotExistException.class);
|
||||
TldSpecificLogicProxy.getRestorePrice(
|
||||
Registry.get("test"), "renew-13.test", "clientIdentifier", clock.nowUtc(), null);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_extraLogic_transferPrice() throws Exception {
|
||||
persistActiveDomain("renew-26.test");
|
||||
TldSpecificLogicProxy.EppCommandOperations price =
|
||||
TldSpecificLogicProxy.getTransferPrice(
|
||||
Registry.get("test"), "renew-26.test", "clientIdentifier", clock.nowUtc(), 2, null);
|
||||
assertThat(price.getCurrency()).isEqualTo(CurrencyUnit.USD);
|
||||
assertThat(price.getFees()).hasSize(1);
|
||||
assertThat(price.getFees().get(0).getCost()).isEqualTo(new BigDecimal(26));
|
||||
assertThat(price.getFees().get(0).getDescription()).isEqualTo("renew");
|
||||
assertThat(price.getCredits()).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_extraLogic_updatePrice() throws Exception {
|
||||
persistActiveDomain("update-13.test");
|
||||
TldSpecificLogicProxy.EppCommandOperations price =
|
||||
TldSpecificLogicProxy.getUpdatePrice(
|
||||
Registry.get("test"), "update-13.test", "clientIdentifier", clock.nowUtc(), null);
|
||||
assertThat(price.getCurrency()).isEqualTo(CurrencyUnit.USD);
|
||||
assertThat(price.getFees()).hasSize(1);
|
||||
assertThat(price.getFees().get(0).getCost()).isEqualTo(new BigDecimal(13));
|
||||
assertThat(price.getFees().get(0).getDescription()).isEqualTo("update");
|
||||
assertThat(price.getCredits()).isEmpty();
|
||||
}
|
||||
}
|
|
@ -46,7 +46,7 @@
|
|||
<fee:currency>USD</fee:currency>
|
||||
<fee:command>update</fee:command>
|
||||
<fee:period unit="y">1</fee:period>
|
||||
<fee:fee description="renew">11.00</fee:fee>
|
||||
<fee:fee description="update">0.00</fee:fee>
|
||||
</fee:cd>
|
||||
</fee:chkData>
|
||||
</extension>
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
</fee:object>
|
||||
<fee:command name="update">
|
||||
<fee:period unit="y">1</fee:period>
|
||||
<fee:fee description="renew">11.00</fee:fee>
|
||||
<fee:fee description="update">0.00</fee:fee>
|
||||
</fee:command>
|
||||
</fee:cd>
|
||||
</fee:chkData>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<fee:command>update</fee:command>
|
||||
<fee:currency>USD</fee:currency>
|
||||
<fee:period unit="y">1</fee:period>
|
||||
<fee:fee description="renew">100.00</fee:fee>
|
||||
<fee:fee description="update">0.00</fee:fee>
|
||||
<fee:class>premium</fee:class>
|
||||
</fee:cd>
|
||||
</fee:chkData>
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
</fee:object>
|
||||
<fee:command name="update">
|
||||
<fee:period unit="y">1</fee:period>
|
||||
<fee:fee description="renew">100.00</fee:fee>
|
||||
<fee:fee description="update">0.00</fee:fee>
|
||||
<fee:class>premium</fee:class>
|
||||
</fee:command>
|
||||
</fee:cd>
|
||||
|
|
32
javatests/google/registry/flows/domain/testdata/domain_create_flags.xml
vendored
Normal file
32
javatests/google/registry/flows/domain/testdata/domain_create_flags.xml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<command>
|
||||
<create>
|
||||
<domain:create
|
||||
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||
<domain:name>create-42.flags</domain:name>
|
||||
<domain:period unit="y">2</domain:period>
|
||||
<domain:ns>
|
||||
<domain:hostObj>ns1.example.net</domain:hostObj>
|
||||
<domain:hostObj>ns2.example.net</domain:hostObj>
|
||||
</domain:ns>
|
||||
<domain:registrant>jd1234</domain:registrant>
|
||||
<domain:contact type="admin">sh8013</domain:contact>
|
||||
<domain:contact type="tech">sh8013</domain:contact>
|
||||
<domain:authInfo>
|
||||
<domain:pw>2fooBAR</domain:pw>
|
||||
</domain:authInfo>
|
||||
</domain:create>
|
||||
</create>
|
||||
<extension>
|
||||
<fee:create xmlns:fee="urn:ietf:params:xml:ns:fee-0.6">
|
||||
<fee:currency>USD</fee:currency>
|
||||
<fee:fee>%FEE%</fee:fee>
|
||||
</fee:create>
|
||||
<flags:create xmlns:flags="urn:google:params:xml:ns:flags-0.1">
|
||||
<flags:flag>flag1</flags:flag>
|
||||
<flags:flag>flag2</flags:flag>
|
||||
</flags:create>
|
||||
</extension>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
11
javatests/google/registry/flows/domain/testdata/domain_delete_flags.xml
vendored
Normal file
11
javatests/google/registry/flows/domain/testdata/domain_delete_flags.xml
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<command>
|
||||
<delete>
|
||||
<domain:delete
|
||||
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||
<domain:name>example.flags</domain:name>
|
||||
</domain:delete>
|
||||
</delete>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
13
javatests/google/registry/flows/domain/testdata/domain_renew_flags.xml
vendored
Normal file
13
javatests/google/registry/flows/domain/testdata/domain_renew_flags.xml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<command>
|
||||
<renew>
|
||||
<domain:renew
|
||||
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||
<domain:name>example.flags</domain:name>
|
||||
<domain:curExpDate>2000-04-03</domain:curExpDate>
|
||||
<domain:period unit="y">5</domain:period>
|
||||
</domain:renew>
|
||||
</renew>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
27
javatests/google/registry/flows/domain/testdata/domain_transfer_request_flags.xml
vendored
Normal file
27
javatests/google/registry/flows/domain/testdata/domain_transfer_request_flags.xml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<command>
|
||||
<transfer op="request">
|
||||
<domain:transfer
|
||||
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||
<domain:name>example.flags</domain:name>
|
||||
<domain:period unit="y">1</domain:period>
|
||||
<domain:authInfo>
|
||||
<domain:pw roid="JD1234-REP">2fooBAR</domain:pw>
|
||||
</domain:authInfo>
|
||||
</domain:transfer>
|
||||
</transfer>
|
||||
<extension>
|
||||
<flags:transfer xmlns:flags="urn:google:params:xml:ns:flags-0.1">
|
||||
<flags:add>
|
||||
<flags:flag>flag1</flags:flag>
|
||||
<flags:flag>flag2</flags:flag>
|
||||
</flags:add>
|
||||
<flags:rem>
|
||||
<flags:flag>flag3</flags:flag>
|
||||
<flags:flag>flag4</flags:flag>
|
||||
</flags:rem>
|
||||
</flags:transfer>
|
||||
</extension>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
17
javatests/google/registry/flows/domain/testdata/domain_update_restore_request_flags.xml
vendored
Normal file
17
javatests/google/registry/flows/domain/testdata/domain_update_restore_request_flags.xml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<command>
|
||||
<update>
|
||||
<domain:update
|
||||
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||
<domain:name>example.flags</domain:name>
|
||||
<domain:chg/>
|
||||
</domain:update>
|
||||
</update>
|
||||
<extension>
|
||||
<rgp:update xmlns:rgp="urn:ietf:params:xml:ns:rgp-1.0">
|
||||
<rgp:restore op="request"/>
|
||||
</rgp:update>
|
||||
</extension>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
|
@ -14,13 +14,24 @@
|
|||
|
||||
package google.registry.model.domain;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkArgument;
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
import com.google.common.base.Ascii;
|
||||
import com.google.common.base.Joiner;
|
||||
import com.google.common.base.Splitter;
|
||||
import com.google.common.collect.Iterables;
|
||||
import google.registry.flows.EppException;
|
||||
import google.registry.flows.EppException.UnimplementedExtensionException;
|
||||
import google.registry.flows.domain.RegistryExtraFlowLogic;
|
||||
import google.registry.model.domain.fee.BaseFee;
|
||||
import google.registry.model.domain.fee.BaseFee.FeeType;
|
||||
import google.registry.model.domain.fee.Credit;
|
||||
import google.registry.model.domain.fee.Fee;
|
||||
import google.registry.model.domain.flags.FlagsCreateCommandExtension;
|
||||
import google.registry.model.domain.flags.FlagsTransferCommandExtension;
|
||||
import google.registry.model.domain.flags.FlagsUpdateCommandExtension;
|
||||
import google.registry.model.eppinput.EppInput;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
|
@ -29,6 +40,8 @@ import org.joda.time.DateTime;
|
|||
*/
|
||||
public class TestExtraLogicManager implements RegistryExtraFlowLogic {
|
||||
|
||||
private String messageToThrow = null;
|
||||
|
||||
@Override
|
||||
public List<String> getExtensionFlags(
|
||||
DomainResource domainResource, String clientIdentifier, DateTime asOfDate) {
|
||||
|
@ -41,23 +54,166 @@ public class TestExtraLogicManager implements RegistryExtraFlowLogic {
|
|||
return components.subList(1, components.size());
|
||||
}
|
||||
|
||||
BaseFee domainNameToFeeOrCredit(String domainName) {
|
||||
// The second-level domain should be of the form "description-price", where description is the
|
||||
// description string of the fee or credit, and price is the price (credit if negative, fee
|
||||
// otherwise). To make sure this is a valid domain name, don't use any spaces, and limit prices
|
||||
// to integers. Don't use a two-character description for credits, since it is illegal to have
|
||||
// both the third and fourth characters of a domain name label be hyphens.
|
||||
List<String> components =
|
||||
Splitter.on('-').limit(2).splitToList(
|
||||
Iterables.getFirst(Splitter.on('.').split(domainName), ""));
|
||||
checkArgument(components.size() == 2, "Domain name must be of the form description-price.tld");
|
||||
int price = Integer.parseInt(components.get(1));
|
||||
if (price < 0) {
|
||||
return Credit.create(
|
||||
new BigDecimal(price), FeeType.valueOf(Ascii.toUpperCase(components.get(0))));
|
||||
} else {
|
||||
return Fee.create(
|
||||
new BigDecimal(price), FeeType.valueOf(Ascii.toUpperCase(components.get(0))));
|
||||
}
|
||||
}
|
||||
|
||||
/** Computes the expected create cost, for use in fee challenges and the like. */
|
||||
@Override
|
||||
public BaseFee getCreateFeeOrCredit(
|
||||
String domainName,
|
||||
String clientIdentifier,
|
||||
DateTime asOfDate,
|
||||
int years,
|
||||
EppInput eppInput) throws EppException {
|
||||
return domainNameToFeeOrCredit(domainName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for a create command. Any changes should not be persisted to
|
||||
* Datastore until commitAdditionalLogicChanges is called.
|
||||
*/
|
||||
@Override
|
||||
public void performAdditionalDomainCreateLogic(
|
||||
DomainResource domain,
|
||||
String clientIdentifier,
|
||||
DateTime asOfDate,
|
||||
int years,
|
||||
EppInput eppInput) throws EppException {
|
||||
FlagsCreateCommandExtension flags =
|
||||
eppInput.getSingleExtension(FlagsCreateCommandExtension.class);
|
||||
if (flags == null) {
|
||||
return;
|
||||
}
|
||||
messageToThrow = Joiner.on(',').join(flags.getFlags());
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for a delete command. Any changes should not be persisted to
|
||||
* Datastore until commitAdditionalLogicChanges is called.
|
||||
*/
|
||||
@Override
|
||||
public void performAdditionalDomainDeleteLogic(
|
||||
DomainResource domainResource,
|
||||
String clientIdentifier,
|
||||
DateTime asOfDate,
|
||||
EppInput eppInput) throws EppException {
|
||||
messageToThrow = "deleted";
|
||||
}
|
||||
|
||||
/** Computes the expected renewal cost, for use in fee challenges and the like. */
|
||||
@Override
|
||||
public BaseFee getRenewFeeOrCredit(
|
||||
DomainResource domain,
|
||||
String clientIdentifier,
|
||||
DateTime asOfDate,
|
||||
int years,
|
||||
EppInput eppInput) throws EppException {
|
||||
return domainNameToFeeOrCredit(domain.getFullyQualifiedDomainName());
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for a renew command. Any changes should not be persisted
|
||||
* to Datastore until commitAdditionalLogicChanges is called.
|
||||
*/
|
||||
@Override
|
||||
public void performAdditionalDomainRenewLogic(
|
||||
DomainResource domainResource,
|
||||
String clientIdentifier,
|
||||
DateTime asOfDate,
|
||||
int years,
|
||||
EppInput eppInput) throws EppException {
|
||||
messageToThrow = "renewed";
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for a restore command. Any changes should not be persisted
|
||||
* to Datastore until commitAdditionalLogicChanges is called.
|
||||
*/
|
||||
@Override
|
||||
public void performAdditionalDomainRestoreLogic(
|
||||
DomainResource domainResource,
|
||||
String clientIdentifier,
|
||||
DateTime asOfDate,
|
||||
EppInput eppInput) throws EppException {
|
||||
messageToThrow = "restored";
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for a transfer command. Any changes should not be persisted
|
||||
* to Datastore until commitAdditionalLogicChanges is called.
|
||||
*/
|
||||
@Override
|
||||
public void performAdditionalDomainTransferLogic(
|
||||
DomainResource domainResource,
|
||||
String clientIdentifier,
|
||||
DateTime asOfDate,
|
||||
int years,
|
||||
EppInput eppInput) throws EppException {
|
||||
FlagsTransferCommandExtension flags =
|
||||
eppInput.getSingleExtension(FlagsTransferCommandExtension.class);
|
||||
if (flags == null) {
|
||||
return;
|
||||
}
|
||||
messageToThrow =
|
||||
"add:"
|
||||
+ Joiner.on(',').join(flags.getAddFlags().getFlags())
|
||||
+ ";remove:"
|
||||
+ Joiner.on(',').join(flags.getRemoveFlags().getFlags());
|
||||
}
|
||||
|
||||
/** Computes the expected update cost, for use in fee challenges and the like. */
|
||||
@Override
|
||||
public BaseFee getUpdateFeeOrCredit(
|
||||
DomainResource domain,
|
||||
String clientIdentifier,
|
||||
DateTime asOfDate,
|
||||
EppInput eppInput) throws EppException {
|
||||
return domainNameToFeeOrCredit(domain.getFullyQualifiedDomainName());
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for an update command. Any changes should not be persisted
|
||||
* to Datastore until commitAdditionalLogicChanges is called.
|
||||
*/
|
||||
@Override
|
||||
public void performAdditionalDomainUpdateLogic(
|
||||
DomainResource domainResource,
|
||||
String clientIdentifier,
|
||||
DateTime asOfDate,
|
||||
EppInput eppInput) throws EppException {
|
||||
FlagsUpdateCommandExtension updateFlags =
|
||||
FlagsUpdateCommandExtension flags =
|
||||
eppInput.getSingleExtension(FlagsUpdateCommandExtension.class);
|
||||
if (updateFlags == null) {
|
||||
if (flags == null) {
|
||||
return;
|
||||
}
|
||||
// Throw this exception as a signal to the test that we got this far.
|
||||
throw new UnimplementedExtensionException();
|
||||
messageToThrow =
|
||||
"add:"
|
||||
+ Joiner.on(',').join(flags.getAddFlags().getFlags())
|
||||
+ ";remove:"
|
||||
+ Joiner.on(',').join(flags.getRemoveFlags().getFlags());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void commitAdditionalDomainUpdates() {
|
||||
return;
|
||||
public void commitAdditionalLogicChanges() {
|
||||
checkNotNull(messageToThrow);
|
||||
// Throw a specific exception as a signal to the test code that we made it through to here.
|
||||
throw new IllegalArgumentException(messageToThrow);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,106 +0,0 @@
|
|||
// Copyright 2016 The Domain Registry Authors. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package google.registry.pricing;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static google.registry.testing.DatastoreHelper.createTld;
|
||||
import static google.registry.testing.DatastoreHelper.persistResource;
|
||||
import static google.registry.util.DateTimeUtils.START_OF_TIME;
|
||||
import static org.joda.money.CurrencyUnit.USD;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableSortedMap;
|
||||
import google.registry.model.domain.fee.BaseFee.FeeType;
|
||||
import google.registry.model.domain.fee.Fee;
|
||||
import google.registry.model.ofy.Ofy;
|
||||
import google.registry.model.registry.Registry;
|
||||
import google.registry.testing.AppEngineRule;
|
||||
import google.registry.testing.FakeClock;
|
||||
import google.registry.testing.InjectRule;
|
||||
import org.joda.money.Money;
|
||||
import org.joda.time.DateTime;
|
||||
import org.junit.Before;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
||||
@RunWith(JUnit4.class)
|
||||
public class TldSpecificLogicProxyTest {
|
||||
|
||||
@Rule
|
||||
public final InjectRule inject = new InjectRule();
|
||||
|
||||
@Rule
|
||||
public final AppEngineRule appEngine = AppEngineRule.builder().withDatastore().build();
|
||||
|
||||
final FakeClock clock = new FakeClock(DateTime.parse("2010-01-01T10:00:00Z"));
|
||||
|
||||
Money basicCreateCost;
|
||||
|
||||
@Before
|
||||
public void before() throws Exception {
|
||||
inject.setStaticField(Ofy.class, "clock", clock);
|
||||
createTld("tld");
|
||||
|
||||
createTld("eap");
|
||||
DateTime a = clock.nowUtc().minusDays(1);
|
||||
DateTime b = clock.nowUtc().plusDays(1);
|
||||
persistResource(
|
||||
Registry.get("eap")
|
||||
.asBuilder()
|
||||
.setEapFeeSchedule(
|
||||
ImmutableSortedMap.of(
|
||||
START_OF_TIME, Money.of(USD, 0),
|
||||
a, Money.of(USD, 100),
|
||||
b, Money.of(USD, 50)))
|
||||
.build());
|
||||
|
||||
basicCreateCost =
|
||||
PricingEngineProxy.getPricesForDomainName("example.tld", clock.nowUtc()).getCreateCost();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTldSpecificLogicEngine() {
|
||||
TldSpecificLogicProxy.EppCommandOperations createPrice =
|
||||
TldSpecificLogicProxy.getCreatePrice(
|
||||
Registry.get("tld"), "example.tld", clock.nowUtc(), 1);
|
||||
assertThat(createPrice.getTotalCost()).isEqualTo(basicCreateCost);
|
||||
assertThat(createPrice.getFees()).hasSize(1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTldSpecificLogicEngineEap() {
|
||||
TldSpecificLogicProxy.EppCommandOperations createPrice =
|
||||
TldSpecificLogicProxy.getCreatePrice(
|
||||
Registry.get("eap"), "example.eap", clock.nowUtc(), 1);
|
||||
assertThat(createPrice.getTotalCost()).isEqualTo(basicCreateCost.plus(Money.of(USD, 100)));
|
||||
assertThat(createPrice.getCurrency()).isEqualTo(USD);
|
||||
assertThat(createPrice.getFees().get(0))
|
||||
.isEqualTo(Fee.create(basicCreateCost.getAmount(), FeeType.CREATE));
|
||||
assertThat(createPrice.getFees().get(1))
|
||||
.isEqualTo(
|
||||
Fee.create(
|
||||
Money.of(USD, 100).getAmount(), FeeType.EAP, clock.nowUtc().plusDays(1)));
|
||||
assertThat(createPrice.getFees())
|
||||
.isEqualTo(
|
||||
ImmutableList.of(
|
||||
Fee.create(basicCreateCost.getAmount(), FeeType.CREATE),
|
||||
Fee.create(
|
||||
Money.of(USD, 100).getAmount(),
|
||||
FeeType.EAP,
|
||||
clock.nowUtc().plusDays(1))));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue