class BlackStack::InvoicingPaymentsProcessing::BasePlan
Constants
- CONSUMPTION_BY_TIME
- CONSUMPTION_BY_UNIT
- PAYMENT_PAY_AS_YOU_GO
- PAYMENT_SUBSCRIPTION
- PRODUCT_AGENCY
- PRODUCT_EDUCATION
- PRODUCT_OTHER
- PRODUCT_SOFTWARE
- PRODUCT_WAREHOUSE
Public Class Methods
consumption_type_description(type)
click to toggle source
# File lib/invoicing_payments_processing.rb, line 117 def self.consumption_type_description(type) return 'Pay as You Go' if type == CONSUMPTION_BY_UNIT return 'Subscription' if type == CONSUMPTION_BY_TIME end
consumption_types()
click to toggle source
# File lib/invoicing_payments_processing.rb, line 113 def self.consumption_types() [CONSUMPTION_BY_UNIT, CONSUMPTION_BY_TIME] end
payment_type_description(type)
click to toggle source
# File lib/invoicing_payments_processing.rb, line 107 def self.payment_type_description(type) return 'Pay as You Go' if type == PAYMENT_PAY_AS_YOU_GO return 'Subscription' if type == PAYMENT_SUBSCRIPTION end
payment_types()
click to toggle source
# File lib/invoicing_payments_processing.rb, line 103 def self.payment_types() [PAYMENT_PAY_AS_YOU_GO, PAYMENT_SUBSCRIPTION] end
product_type_icon(s)
click to toggle source
# File lib/invoicing_payments_processing.rb, line 127 def self.product_type_icon(s) return "icon-cloud" if s == PRODUCT_WAREHOUSE return "icon-desktop" if s == PRODUCT_SOFTWARE return "icon-coffee" if s == PRODUCT_AGENCY return "icon-book" if s == PRODUCT_EDUCATION return "icon-help" if s == PRODUCT_OTHER end
product_types()
click to toggle source
# File lib/invoicing_payments_processing.rb, line 123 def self.product_types() [PRODUCT_WAREHOUSE, PRODUCT_SOFTWARE, PRODUCT_AGENCY, PRODUCT_EDUCATION, PRODUCT_OTHER] end