Class: Stripe::V2::Billing::IntentService::CreateParams::Action::Apply

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/v2/billing/intent_service.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.



65
66
67
68
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 65

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.



63
64
65
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 63

def invoice_discount_rule
  @invoice_discount_rule
end

#typeObject

Type of the apply action details.



61
62
63
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 61

def type
  @type
end