Class: Stripe::SubscriptionService::UpdateParams::PauseCollection

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(behavior: nil, resumes_at: nil) ⇒ PauseCollection

Returns a new instance of PauseCollection.



289
290
291
292
# File 'lib/stripe/services/subscription_service.rb', line 289

def initialize(behavior: nil, resumes_at: nil)
  @behavior = behavior
  @resumes_at = resumes_at
end

Instance Attribute Details

#behaviorObject

The payment collection behavior for this subscription while paused. One of ‘keep_as_draft`, `mark_uncollectible`, or `void`.



285
286
287
# File 'lib/stripe/services/subscription_service.rb', line 285

def behavior
  @behavior
end

#resumes_atObject

The time after which the subscription will resume collecting payments.



287
288
289
# File 'lib/stripe/services/subscription_service.rb', line 287

def resumes_at
  @resumes_at
end