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.



3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
# File 'lib/stripe/services/account_service.rb', line 3388

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



3360
3361
3362
# File 'lib/stripe/services/account_service.rb', line 3360

def address_city
  @address_city
end

#address_countryObject

Attribute for param field address_country



3362
3363
3364
# File 'lib/stripe/services/account_service.rb', line 3362

def address_country
  @address_country
end

#address_line1Object

Attribute for param field address_line1



3364
3365
3366
# File 'lib/stripe/services/account_service.rb', line 3364

def address_line1
  @address_line1
end

#address_line2Object

Attribute for param field address_line2



3366
3367
3368
# File 'lib/stripe/services/account_service.rb', line 3366

def address_line2
  @address_line2
end

#address_stateObject

Attribute for param field address_state



3368
3369
3370
# File 'lib/stripe/services/account_service.rb', line 3368

def address_state
  @address_state
end

#address_zipObject

Attribute for param field address_zip



3370
3371
3372
# File 'lib/stripe/services/account_service.rb', line 3370

def address_zip
  @address_zip
end

#currencyObject

Attribute for param field currency



3372
3373
3374
# File 'lib/stripe/services/account_service.rb', line 3372

def currency
  @currency
end

#cvcObject

Attribute for param field cvc



3374
3375
3376
# File 'lib/stripe/services/account_service.rb', line 3374

def cvc
  @cvc
end

#default_for_currencyObject

Attribute for param field default_for_currency



3386
3387
3388
# File 'lib/stripe/services/account_service.rb', line 3386

def default_for_currency
  @default_for_currency
end

#exp_monthObject

Attribute for param field exp_month



3376
3377
3378
# File 'lib/stripe/services/account_service.rb', line 3376

def exp_month
  @exp_month
end

#exp_yearObject

Attribute for param field exp_year



3378
3379
3380
# File 'lib/stripe/services/account_service.rb', line 3378

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.



3384
3385
3386
# File 'lib/stripe/services/account_service.rb', line 3384

def 
  @metadata
end

#nameObject

Attribute for param field name



3380
3381
3382
# File 'lib/stripe/services/account_service.rb', line 3380

def name
  @name
end

#numberObject

Attribute for param field number



3382
3383
3384
# File 'lib/stripe/services/account_service.rb', line 3382

def number
  @number
end

#objectObject

Attribute for param field object



3358
3359
3360
# File 'lib/stripe/services/account_service.rb', line 3358

def object
  @object
end