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

attr_accessor, coerce_params, coerce_value, field_encodings, new, #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.



759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 759

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.



751
752
753
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 751

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.



747
748
749
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 747

def interval_count
  @interval_count
end

#monthObject

Specific configuration for determining billing dates when type=month.



753
754
755
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 753

def month
  @month
end

#typeObject

The frequency at which a cadence bills.



749
750
751
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 749

def type
  @type
end

#weekObject

Specific configuration for determining billing dates when type=week.



755
756
757
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 755

def week
  @week
end

#yearObject

Specific configuration for determining billing dates when type=year.



757
758
759
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 757

def year
  @year
end