Class: Stripe::V2::Billing::ContractCreateParams::BillingCycleAnchor::Config

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

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_of_month: nil, hour: nil, minute: nil, month_of_year: nil, second: nil) ⇒ Config

Returns a new instance of Config.



21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 21

def initialize(
  day_of_month: nil,
  hour: nil,
  minute: nil,
  month_of_year: nil,
  second: nil
)
  @day_of_month = day_of_month
  @hour = hour
  @minute = minute
  @month_of_year = month_of_year
  @second = second
end

Instance Attribute Details

#day_of_monthObject

Day of month (1-31).



11
12
13
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 11

def day_of_month
  @day_of_month
end

#hourObject

Hour of day in UTC (0-23).



13
14
15
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 13

def hour
  @hour
end

#minuteObject

Minute of hour (0-59).



15
16
17
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 15

def minute
  @minute
end

#month_of_yearObject

Month of year (1-12).



17
18
19
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 17

def month_of_year
  @month_of_year
end

#secondObject

Second of minute (0-59).



19
20
21
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 19

def second
  @second
end