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

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

Defined Under Namespace

Classes: Address, DateOfBirth

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(account_reference: nil, address: nil, date_of_birth: nil, email: nil, given_name: nil, phone: nil, surname: nil) ⇒ BeneficiaryDetails

Returns a new instance of BeneficiaryDetails.



2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2167

def initialize(
  account_reference: nil,
  address: nil,
  date_of_birth: nil,
  email: nil,
  given_name: nil,
  phone: nil,
  surname: nil
)
  @account_reference = 
  @address = address
  @date_of_birth = date_of_birth
  @email = email
  @given_name = given_name
  @phone = phone
  @surname = surname
end

Instance Attribute Details

#account_referenceObject

An opaque identifier for the beneficiary's account (e.g. bank account number, card first6+last4, or other unique identifier).



2153
2154
2155
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2153

def 
  @account_reference
end

#addressObject

Address.



2155
2156
2157
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2155

def address
  @address
end

#date_of_birthObject

Date of birth.



2157
2158
2159
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2157

def date_of_birth
  @date_of_birth
end

#emailObject

Email address.



2159
2160
2161
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2159

def email
  @email
end

#given_nameObject

Given (first) name.



2161
2162
2163
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2161

def given_name
  @given_name
end

#phoneObject

Phone number.



2163
2164
2165
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2163

def phone
  @phone
end

#surnameObject

Surname (family name).



2165
2166
2167
# File 'lib/stripe/params/payment_intent_create_params.rb', line 2165

def surname
  @surname
end