Class: Stripe::V2::Billing::IntentCreateParams::Action::Remove

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

Defined Under Namespace

Classes: EffectiveAt

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(effective_at: nil, type: nil, invoice_discount_rule: nil, spend_modifier_rule: nil) ⇒ Remove

Returns a new instance of Remove.



394
395
396
397
398
399
400
401
402
403
404
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 394

def initialize(
  effective_at: nil,
  type: nil,
  invoice_discount_rule: nil,
  spend_modifier_rule: nil
)
  @effective_at = effective_at
  @type = type
  @invoice_discount_rule = invoice_discount_rule
  @spend_modifier_rule = spend_modifier_rule
end

Instance Attribute Details

#effective_atObject

When the remove action will take effect. If not specified, defaults to on_reserve.



386
387
388
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 386

def effective_at
  @effective_at
end

#invoice_discount_ruleObject

The ID of the discount rule to remove for future invoices.



390
391
392
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 390

def invoice_discount_rule
  @invoice_discount_rule
end

#spend_modifier_ruleObject

The ID of the spend modifier rule to remove.



392
393
394
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 392

def spend_modifier_rule
  @spend_modifier_rule
end

#typeObject

Type of the remove action.



388
389
390
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 388

def type
  @type
end