Class: Stripe::PaymentIntentConfirmParams::PaymentDetails::MoneyServices::BeneficiaryDetails::DateOfBirth

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_confirm_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.



2132
2133
2134
2135
2136
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 2132

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.



2126
2127
2128
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 2126

def day
  @day
end

#monthObject

Month of birth, between 1 and 12.



2128
2129
2130
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 2128

def month
  @month
end

#yearObject

Four-digit year of birth.



2130
2131
2132
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 2130

def year
  @year
end