Class: Stripe::V2::Billing::IntentCreateParams::Action::Apply::EffectiveAt

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/billing/intent_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(timestamp: nil, type: nil) ⇒ EffectiveAt

Returns a new instance of EffectiveAt.



31
32
33
34
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 31

def initialize(timestamp: nil, type: nil)
  @timestamp = timestamp
  @type = type
end

Instance Attribute Details

#timestampObject

The timestamp at which the apply action will take effect. Only present if type is timestamp. Only allowed for discount actions.



27
28
29
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 27

def timestamp
  @timestamp
end

#typeObject

When the apply action will take effect.



29
30
31
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 29

def type
  @type
end