Class: Stripe::AccountCreateParams::Card

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/account_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(object: nil, address_city: nil, address_country: nil, address_line1: nil, address_line2: nil, address_state: nil, address_zip: nil, currency: nil, cvc: nil, default_for_currency: nil, exp_month: nil, exp_year: nil, metadata: nil, name: nil, number: nil) ⇒ Card

Returns a new instance of Card.



1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
# File 'lib/stripe/params/account_create_params.rb', line 1222

def initialize(
  object: nil,
  address_city: nil,
  address_country: nil,
  address_line1: nil,
  address_line2: nil,
  address_state: nil,
  address_zip: nil,
  currency: nil,
  cvc: nil,
  default_for_currency: nil,
  exp_month: nil,
  exp_year: nil,
  metadata: nil,
  name: nil,
  number: nil
)
  @object = object
  @address_city = address_city
  @address_country = address_country
  @address_line1 = address_line1
  @address_line2 = address_line2
  @address_state = address_state
  @address_zip = address_zip
  @currency = currency
  @cvc = cvc
  @default_for_currency = default_for_currency
  @exp_month = exp_month
  @exp_year = exp_year
  @metadata = 
  @name = name
  @number = number
end

Instance Attribute Details

#address_cityObject

Attribute for param field address_city



1194
1195
1196
# File 'lib/stripe/params/account_create_params.rb', line 1194

def address_city
  @address_city
end

#address_countryObject

Attribute for param field address_country



1196
1197
1198
# File 'lib/stripe/params/account_create_params.rb', line 1196

def address_country
  @address_country
end

#address_line1Object

Attribute for param field address_line1



1198
1199
1200
# File 'lib/stripe/params/account_create_params.rb', line 1198

def address_line1
  @address_line1
end

#address_line2Object

Attribute for param field address_line2



1200
1201
1202
# File 'lib/stripe/params/account_create_params.rb', line 1200

def address_line2
  @address_line2
end

#address_stateObject

Attribute for param field address_state



1202
1203
1204
# File 'lib/stripe/params/account_create_params.rb', line 1202

def address_state
  @address_state
end

#address_zipObject

Attribute for param field address_zip



1204
1205
1206
# File 'lib/stripe/params/account_create_params.rb', line 1204

def address_zip
  @address_zip
end

#currencyObject

Attribute for param field currency



1206
1207
1208
# File 'lib/stripe/params/account_create_params.rb', line 1206

def currency
  @currency
end

#cvcObject

Attribute for param field cvc



1208
1209
1210
# File 'lib/stripe/params/account_create_params.rb', line 1208

def cvc
  @cvc
end

#default_for_currencyObject

Attribute for param field default_for_currency



1210
1211
1212
# File 'lib/stripe/params/account_create_params.rb', line 1210

def default_for_currency
  @default_for_currency
end

#exp_monthObject

Attribute for param field exp_month



1212
1213
1214
# File 'lib/stripe/params/account_create_params.rb', line 1212

def exp_month
  @exp_month
end

#exp_yearObject

Attribute for param field exp_year



1214
1215
1216
# File 'lib/stripe/params/account_create_params.rb', line 1214

def exp_year
  @exp_year
end

#metadataObject

Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.



1216
1217
1218
# File 'lib/stripe/params/account_create_params.rb', line 1216

def 
  @metadata
end

#nameObject

Attribute for param field name



1218
1219
1220
# File 'lib/stripe/params/account_create_params.rb', line 1218

def name
  @name
end

#numberObject

Attribute for param field number



1220
1221
1222
# File 'lib/stripe/params/account_create_params.rb', line 1220

def number
  @number
end

#objectObject

Attribute for param field object



1192
1193
1194
# File 'lib/stripe/params/account_create_params.rb', line 1192

def object
  @object
end