Class: Stripe::AccountService::CreateParams::Card

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/account_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#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, exp_month: nil, exp_year: nil, name: nil, number: nil, metadata: nil, default_for_currency: nil) ⇒ Card

Returns a new instance of Card.



3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
# File 'lib/stripe/services/account_service.rb', line 3215

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,
  exp_month: nil,
  exp_year: nil,
  name: nil,
  number: nil,
  metadata: nil,
  default_for_currency: 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
  @exp_month = exp_month
  @exp_year = exp_year
  @name = name
  @number = number
  @metadata = 
  @default_for_currency = default_for_currency
end

Instance Attribute Details

#address_cityObject

Attribute for param field address_city



3187
3188
3189
# File 'lib/stripe/services/account_service.rb', line 3187

def address_city
  @address_city
end

#address_countryObject

Attribute for param field address_country



3189
3190
3191
# File 'lib/stripe/services/account_service.rb', line 3189

def address_country
  @address_country
end

#address_line1Object

Attribute for param field address_line1



3191
3192
3193
# File 'lib/stripe/services/account_service.rb', line 3191

def address_line1
  @address_line1
end

#address_line2Object

Attribute for param field address_line2



3193
3194
3195
# File 'lib/stripe/services/account_service.rb', line 3193

def address_line2
  @address_line2
end

#address_stateObject

Attribute for param field address_state



3195
3196
3197
# File 'lib/stripe/services/account_service.rb', line 3195

def address_state
  @address_state
end

#address_zipObject

Attribute for param field address_zip



3197
3198
3199
# File 'lib/stripe/services/account_service.rb', line 3197

def address_zip
  @address_zip
end

#currencyObject

Attribute for param field currency



3199
3200
3201
# File 'lib/stripe/services/account_service.rb', line 3199

def currency
  @currency
end

#cvcObject

Attribute for param field cvc



3201
3202
3203
# File 'lib/stripe/services/account_service.rb', line 3201

def cvc
  @cvc
end

#default_for_currencyObject

Attribute for param field default_for_currency



3213
3214
3215
# File 'lib/stripe/services/account_service.rb', line 3213

def default_for_currency
  @default_for_currency
end

#exp_monthObject

Attribute for param field exp_month



3203
3204
3205
# File 'lib/stripe/services/account_service.rb', line 3203

def exp_month
  @exp_month
end

#exp_yearObject

Attribute for param field exp_year



3205
3206
3207
# File 'lib/stripe/services/account_service.rb', line 3205

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.



3211
3212
3213
# File 'lib/stripe/services/account_service.rb', line 3211

def 
  @metadata
end

#nameObject

Attribute for param field name



3207
3208
3209
# File 'lib/stripe/services/account_service.rb', line 3207

def name
  @name
end

#numberObject

Attribute for param field number



3209
3210
3211
# File 'lib/stripe/services/account_service.rb', line 3209

def number
  @number
end

#objectObject

Attribute for param field object



3185
3186
3187
# File 'lib/stripe/services/account_service.rb', line 3185

def object
  @object
end