class

App::Services::BillingService

Inherits Reference < Object

Constants

Log = ::Log.for(self)

Class methods

cancel_subscription(id : UUID)
Source
change_plan(org_id : UUID, new_plan_id : UUID)

Change plan for an org's subscription.

Source
charge_invoice(invoice_id : UUID, token : String | Nil = nil)
Source
configure(payment_provider : PaymentProvider | Nil = nil, notification_service : NotificationService | Nil = nil)
Source
create_subscription(org_id : UUID, plan_id : UUID, start_date : Time = Time.utc)
Source
payment_provider
Source
record_payment(invoice_id : UUID, amount : Int64, provider_key : String = "manual", provider_reference : String | Nil = nil)
Source