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(day: nil, interval_count: nil, month: nil, type: nil, week: nil, year: nil) ⇒ BillingCycle

Returns a new instance of BillingCycle.



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

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

Instance Attribute Details

#dayObject

Specific configuration for determining billing dates when type=day.



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

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.



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

def interval_count
  @interval_count
end

#monthObject

Specific configuration for determining billing dates when type=month.



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

def month
  @month
end

#typeObject

The frequency at which a cadence bills.



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

def type
  @type
end

#weekObject

Specific configuration for determining billing dates when type=week.



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

def week
  @week
end

#yearObject

Specific configuration for determining billing dates when type=year.



760
761
762
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 760

def year
  @year
end