mirror of
https://github.com/google/nomulus
synced 2026-01-09 07:33:42 +00:00
Create a separate billing event when EAP is applied
When EAP is involed we current have one billing event for domain create that has the create fee and EAP fee lumped together. Change it to record two separate billing events for each. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=132335349
This commit is contained in:
@@ -42,6 +42,7 @@ import google.registry.model.domain.DomainRenewData;
|
||||
import google.registry.model.domain.DomainResource;
|
||||
import google.registry.model.domain.GracePeriod;
|
||||
import google.registry.model.domain.Period;
|
||||
import google.registry.model.domain.fee.BaseFee.FeeType;
|
||||
import google.registry.model.domain.fee.Fee;
|
||||
import google.registry.model.domain.fee.FeeTransformCommandExtension;
|
||||
import google.registry.model.domain.rgp.GracePeriodStatus;
|
||||
@@ -174,13 +175,16 @@ public class DomainRenewFlow extends OwnedResourceMutateFlow<DomainResource, Ren
|
||||
return createOutput(
|
||||
Success,
|
||||
DomainRenewData.create(
|
||||
newResource.getFullyQualifiedDomainName(),
|
||||
newResource.getRegistrationExpirationTime()),
|
||||
(feeRenew == null) ? null : ImmutableList.of(
|
||||
feeRenew.createResponseBuilder()
|
||||
.setCurrency(renewCost.getCurrencyUnit())
|
||||
.setFees(ImmutableList.of(Fee.create(renewCost.getAmount(), "renew")))
|
||||
.build()));
|
||||
newResource.getFullyQualifiedDomainName(), newResource.getRegistrationExpirationTime()),
|
||||
(feeRenew == null)
|
||||
? null
|
||||
: ImmutableList.of(
|
||||
feeRenew
|
||||
.createResponseBuilder()
|
||||
.setCurrency(renewCost.getCurrencyUnit())
|
||||
.setFees(
|
||||
ImmutableList.of(Fee.create(renewCost.getAmount(), FeeType.RENEW)))
|
||||
.build()));
|
||||
}
|
||||
|
||||
/** The domain has a pending transfer on it and so can't be explicitly renewed. */
|
||||
|
||||
Reference in New Issue
Block a user