Class: Stripe::BillingPortal::ConfigurationService::UpdateParams::Features

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/billing_portal/configuration_service.rb

Defined Under Namespace

Classes: CustomerUpdate, InvoiceHistory, PaymentMethodUpdate, SubscriptionCancel, SubscriptionUpdate

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(customer_update: nil, invoice_history: nil, payment_method_update: nil, subscription_cancel: nil, subscription_update: nil) ⇒ Features

Returns a new instance of Features.



392
393
394
395
396
397
398
399
400
401
402
403
404
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 392

def initialize(
  customer_update: nil,
  invoice_history: nil,
  payment_method_update: nil,
  subscription_cancel: nil,
  subscription_update: nil
)
  @customer_update = customer_update
  @invoice_history = invoice_history
  @payment_method_update = payment_method_update
  @subscription_cancel = subscription_cancel
  @subscription_update = subscription_update
end

Instance Attribute Details

#customer_updateObject

Information about updating the customer details in the portal.



382
383
384
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 382

def customer_update
  @customer_update
end

#invoice_historyObject

Information about showing the billing history in the portal.



384
385
386
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 384

def invoice_history
  @invoice_history
end

#payment_method_updateObject

Information about updating payment methods in the portal.



386
387
388
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 386

def payment_method_update
  @payment_method_update
end

#subscription_cancelObject

Information about canceling subscriptions in the portal.



388
389
390
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 388

def subscription_cancel
  @subscription_cancel
end

#subscription_updateObject

Information about updating subscriptions in the portal.



390
391
392
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 390

def subscription_update
  @subscription_update
end