Class Simplepay::Support::SubscriptionPeriod
In: lib/simplepay/support/subscription_period.rb
Parent: Interval
RuntimeError Error Service Standard Marketplace Donation Subscription MarketplacePolicy Interval SubscriptionPeriod BillingFrequency Comparable Field Service Epoch Currency Amount Boolean ResponseStatusCode Services Authentication FormHelper NotificationHelper RailsHelper Helpers Interval Currency Support Boolean Simplepay dot/f_2.png

Methods

to_s  

Constants

ALLOWED_INTERVALS = Simplepay::Intervals + ['forever']
ALLOWED_QUANTITY_RANGE = (1...1000)   Limited to 3 digits.

Public Instance methods

See Simplepay::Support::Interval.to_s for more information.

If the subscription lasts "forever" then Amazon does not need an interval string.

[Source]

# File lib/simplepay/support/subscription_period.rb, line 18
      def to_s
        super unless interval == 'forever'
      end

[Validate]