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.



3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
# File 'lib/stripe/services/account_service.rb', line 3572

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



3531
3532
3533
# File 'lib/stripe/services/account_service.rb', line 3531

def address_city
  @address_city
end

#address_countryObject

Attribute for param field address_country



3534
3535
3536
# File 'lib/stripe/services/account_service.rb', line 3534

def address_country
  @address_country
end

#address_line1Object

Attribute for param field address_line1



3537
3538
3539
# File 'lib/stripe/services/account_service.rb', line 3537

def address_line1
  @address_line1
end

#address_line2Object

Attribute for param field address_line2



3540
3541
3542
# File 'lib/stripe/services/account_service.rb', line 3540

def address_line2
  @address_line2
end

#address_stateObject

Attribute for param field address_state



3543
3544
3545
# File 'lib/stripe/services/account_service.rb', line 3543

def address_state
  @address_state
end

#address_zipObject

Attribute for param field address_zip



3546
3547
3548
# File 'lib/stripe/services/account_service.rb', line 3546

def address_zip
  @address_zip
end

#currencyObject

Attribute for param field currency



3549
3550
3551
# File 'lib/stripe/services/account_service.rb', line 3549

def currency
  @currency
end

#cvcObject

Attribute for param field cvc



3552
3553
3554
# File 'lib/stripe/services/account_service.rb', line 3552

def cvc
  @cvc
end

#default_for_currencyObject

Attribute for param field default_for_currency



3570
3571
3572
# File 'lib/stripe/services/account_service.rb', line 3570

def default_for_currency
  @default_for_currency
end

#exp_monthObject

Attribute for param field exp_month



3555
3556
3557
# File 'lib/stripe/services/account_service.rb', line 3555

def exp_month
  @exp_month
end

#exp_yearObject

Attribute for param field exp_year



3558
3559
3560
# File 'lib/stripe/services/account_service.rb', line 3558

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.



3567
3568
3569
# File 'lib/stripe/services/account_service.rb', line 3567

def 
  @metadata
end

#nameObject

Attribute for param field name



3561
3562
3563
# File 'lib/stripe/services/account_service.rb', line 3561

def name
  @name
end

#numberObject

Attribute for param field number



3564
3565
3566
# File 'lib/stripe/services/account_service.rb', line 3564

def number
  @number
end

#objectObject

Attribute for param field object



3528
3529
3530
# File 'lib/stripe/services/account_service.rb', line 3528

def object
  @object
end