Uses of Record Class
com.irurueta.authserver.authorization.domain.sms.SmsSpendCap
Packages that use SmsSpendCap
Package
Description
Phones and text messages: the phone number value object, the phone a user verified, the ports to send messages,
keep phones and pending verifications, record the spend, and the policy that caps the cost.
-
Uses of SmsSpendCap in com.irurueta.authserver.authorization.domain.sms
Methods in com.irurueta.authserver.authorization.domain.sms that return SmsSpendCapModifier and TypeMethodDescriptionSmsCostPolicy.dailyCap()Gets the cap of a day, as the ledger checks it.SmsCostPolicy.windowCap()Gets the cap of the short window, as the ledger checks it.Methods in com.irurueta.authserver.authorization.domain.sms with parameters of type SmsSpendCapModifier and TypeMethodDescriptionbooleanSmsCostLedgerRepository.tryRecord(Instant sentAt, String country, long costMicros, SmsSpendCap windowCap, SmsSpendCap dailyCap) Records a message only when it keeps the spend within both caps, atomically: of concurrent callers, the ones whose messages would together exceed a cap are refused, so a budget is never overshot.