Class: Kaui::Subscription

Inherits:
KillBillClient::Model::Subscription
  • Object
show all
Defined in:
app/models/kaui/subscription.rb

Instance Method Summary collapse

Instance Method Details

#cancel_entitlement_immediately(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object


3
4
5
6
7
8
9
# File 'app/models/kaui/subscription.rb', line 3

def cancel_entitlement_immediately(user = nil, reason = nil, comment = nil, options = {})
  requested_date                 = nil
  entitlement_policy             = 'IMMEDIATE'
  billing_policy                 = nil
  use_requested_date_for_billing = true
  cancel(user, reason, comment, requested_date, entitlement_policy, billing_policy, use_requested_date_for_billing, options)
end