1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
# frozen_string_literal: true
module Faker
class Subscription < Base
##
# Produces the name of a subscription plan.
#
# @return [String]
#
# @example
# Faker::Subscription.plan #=> "Platinum"
#
# @faker.version 1.9.2
def self.plan
fetch('subscription.plans')
end
##
# Produces a subscription status.
#
# @return [String]
#
# @example
# Faker::Subscription.status #=> "Active"
#
# @faker.version 1.9.2
def self.status
fetch('subscription.statuses')
end
##
# Produces the name of a payment method.
#
# @return [String]
#
# @example
# Faker::Subscription.payment_method #=> "PayPal"
#
# @faker.version 1.9.2
def self.payment_method
fetch('subscription.payment_methods')
end
##
# Produces the name of a subscription term.
#
# @return [String]
#
# @example
# Faker::Subscription.subscription_term #=> "Annual"
#
# @faker.version 1.9.2
def self.subscription_term
fetch('subscription.subscription_terms')
end
##
# Produces the name of a payment term.
#
# @return [String]
#
# @example
# Faker::Subscription.payment_term #=> "Monthly"
#
# @faker.version 1.9.2
def self.payment_term
fetch('subscription.payment_terms')
end
end
end
|