Class: Stripe::V2::Billing::IntentCreateParams::CadenceData::BillingCycle

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

Defined Under Namespace

Classes: Day, Month, Week, Year

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(interval_count: nil, type: nil, day: nil, month: nil, week: nil, year: nil) ⇒ BillingCycle

Returns a new instance of BillingCycle.



587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 587

def initialize(
  interval_count: nil,
  type: nil,
  day: nil,
  month: nil,
  week: nil,
  year: nil
)
  @interval_count = interval_count
  @type = type
  @day = day
  @month = month
  @week = week
  @year = year
end

Instance Attribute Details

#dayObject

Specific configuration for determining billing dates when type=day.



579
580
581
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 579

def day
  @day
end

#interval_countObject

The number of intervals (specified in the interval attribute) between cadence billings. For example, type=month and interval_count=3 bills every 3 months. If this is not provided, it will default to 1.



575
576
577
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 575

def interval_count
  @interval_count
end

#monthObject

Specific configuration for determining billing dates when type=month.



581
582
583
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 581

def month
  @month
end

#typeObject

The frequency at which a cadence bills.



577
578
579
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 577

def type
  @type
end

#weekObject

Specific configuration for determining billing dates when type=week.



583
584
585
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 583

def week
  @week
end

#yearObject

Specific configuration for determining billing dates when type=year.



585
586
587
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 585

def year
  @year
end