Interface VelocityLimitParams.Period.Visitor
-
- All Implemented Interfaces:
public interface VelocityLimitParams.Period.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract TvisitTrailingWindow(Long trailingWindow)The size of the trailing window to calculate Spend Velocity over in seconds. abstract TvisitVelocityLimitParamsPeriodWindow(VelocityLimitParamsPeriodWindow velocityLimitParamsPeriodWindow)The window of time to calculate Spend Velocity over. Tunknown(JsonValue json)Maps an unknown variant of Period to a value of type T. -
-
Method Detail
-
visitTrailingWindow
abstract T visitTrailingWindow(Long trailingWindow)
The size of the trailing window to calculate Spend Velocity over in seconds. The minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
-
visitVelocityLimitParamsPeriodWindow
abstract T visitVelocityLimitParamsPeriodWindow(VelocityLimitParamsPeriodWindow velocityLimitParamsPeriodWindow)
The window of time to calculate Spend Velocity over.
DAY: Velocity over the current day since midnight Eastern Time.WEEK: Velocity over the current week since 00:00 / 12 AM on Monday in Eastern Time.MONTH: Velocity over the current month since 00:00 / 12 AM on the first of the month in Eastern Time.YEAR: Velocity over the current year since 00:00 / 12 AM on January 1st in Eastern Time.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Period to a value of type T.
An instance of Period can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-