Class: Stripe::BalanceSettingsUpdateParams::Payments::Payouts::Schedule

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/balance_settings_update_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil) ⇒ Schedule

Returns a new instance of Schedule.



16
17
18
19
20
# File 'lib/stripe/params/balance_settings_update_params.rb', line 16

def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil)
  @interval = interval
  @monthly_payout_days = monthly_payout_days
  @weekly_payout_days = weekly_payout_days
end

Instance Attribute Details

#intervalObject

How frequently available funds are paid out. One of: ‘daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.



10
11
12
# File 'lib/stripe/params/balance_settings_update_params.rb', line 10

def interval
  @interval
end

#monthly_payout_daysObject

The days of the month when available funds are paid out, specified as an array of numbers between 1–31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if ‘interval` is `monthly`.



12
13
14
# File 'lib/stripe/params/balance_settings_update_params.rb', line 12

def monthly_payout_days
  @monthly_payout_days
end

#weekly_payout_daysObject

The days of the week when available funds are paid out, specified as an array, e.g., [‘monday`, `tuesday`]. Required and applicable only if `interval` is `weekly`.



14
15
16
# File 'lib/stripe/params/balance_settings_update_params.rb', line 14

def weekly_payout_days
  @weekly_payout_days
end