Class: Stripe::ChargeCaptureParams::PaymentDetails::MoneyServices::AccountFunding::SenderDetails::DateOfBirth

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/charge_capture_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: nil, month: nil, year: nil) ⇒ DateOfBirth

Returns a new instance of DateOfBirth.



1749
1750
1751
1752
1753
# File 'lib/stripe/params/charge_capture_params.rb', line 1749

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

Instance Attribute Details

#dayObject

Day of birth, between 1 and 31.



1743
1744
1745
# File 'lib/stripe/params/charge_capture_params.rb', line 1743

def day
  @day
end

#monthObject

Month of birth, between 1 and 12.



1745
1746
1747
# File 'lib/stripe/params/charge_capture_params.rb', line 1745

def month
  @month
end

#yearObject

Four-digit year of birth.



1747
1748
1749
# File 'lib/stripe/params/charge_capture_params.rb', line 1747

def year
  @year
end