Converts a payment frequency string to the corresponding PaymentFrequency enum variant. Used to create payment policies with different recurring intervals.
The string representation of the payment frequency
Optional
Required when frequency is "custom", specifies interval in seconds
The PaymentFrequency enum variant for the smart contract
Error if customIntervalSeconds is not provided for custom frequency
Converts a payment frequency string to the corresponding PaymentFrequency enum variant. Used to create payment policies with different recurring intervals.