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.



397
398
399
400
401
402
403
404
405
406
407
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 397

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.



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

def effective_at
  @effective_at
end

#invoice_discount_ruleObject

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



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

def invoice_discount_rule
  @invoice_discount_rule
end

#spend_modifier_ruleObject

The ID of the spend modifier rule to remove.



395
396
397
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 395

def spend_modifier_rule
  @spend_modifier_rule
end

#typeObject

Type of the remove action.



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

def type
  @type
end