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

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

Defined Under Namespace

Classes: InvoiceDiscountRule

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(type: nil, invoice_discount_rule: nil) ⇒ Apply

Returns a new instance of Apply.



48
49
50
51
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 48

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

Instance Attribute Details

#invoice_discount_ruleObject

Details for applying a discount rule to future invoices.



46
47
48
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 46

def invoice_discount_rule
  @invoice_discount_rule
end

#typeObject

Type of the apply action details.



44
45
46
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 44

def type
  @type
end