Class: Stripe::PaymentIntentCreateParams::PaymentDetails::MoneyServices::BeneficiaryDetails::DateOfBirth

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

Returns a new instance of DateOfBirth.



2146
2147
2148
2149
2150
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2146

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.



2140
2141
2142
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2140

def day
  @day
end

#monthObject

Month of birth, between 1 and 12.



2142
2143
2144
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2142

def month
  @month
end

#yearObject

Four-digit year of birth.



2144
2145
2146
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2144

def year
  @year
end