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.



2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
# File 'lib/stripe/services/account_service.rb', line 2988

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



2960
2961
2962
# File 'lib/stripe/services/account_service.rb', line 2960

def address_city
  @address_city
end

#address_countryObject

Attribute for param field address_country



2962
2963
2964
# File 'lib/stripe/services/account_service.rb', line 2962

def address_country
  @address_country
end

#address_line1Object

Attribute for param field address_line1



2964
2965
2966
# File 'lib/stripe/services/account_service.rb', line 2964

def address_line1
  @address_line1
end

#address_line2Object

Attribute for param field address_line2



2966
2967
2968
# File 'lib/stripe/services/account_service.rb', line 2966

def address_line2
  @address_line2
end

#address_stateObject

Attribute for param field address_state



2968
2969
2970
# File 'lib/stripe/services/account_service.rb', line 2968

def address_state
  @address_state
end

#address_zipObject

Attribute for param field address_zip



2970
2971
2972
# File 'lib/stripe/services/account_service.rb', line 2970

def address_zip
  @address_zip
end

#currencyObject

Attribute for param field currency



2972
2973
2974
# File 'lib/stripe/services/account_service.rb', line 2972

def currency
  @currency
end

#cvcObject

Attribute for param field cvc



2974
2975
2976
# File 'lib/stripe/services/account_service.rb', line 2974

def cvc
  @cvc
end

#default_for_currencyObject

Attribute for param field default_for_currency



2986
2987
2988
# File 'lib/stripe/services/account_service.rb', line 2986

def default_for_currency
  @default_for_currency
end

#exp_monthObject

Attribute for param field exp_month



2976
2977
2978
# File 'lib/stripe/services/account_service.rb', line 2976

def exp_month
  @exp_month
end

#exp_yearObject

Attribute for param field exp_year



2978
2979
2980
# File 'lib/stripe/services/account_service.rb', line 2978

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.



2984
2985
2986
# File 'lib/stripe/services/account_service.rb', line 2984

def 
  @metadata
end

#nameObject

Attribute for param field name



2980
2981
2982
# File 'lib/stripe/services/account_service.rb', line 2980

def name
  @name
end

#numberObject

Attribute for param field number



2982
2983
2984
# File 'lib/stripe/services/account_service.rb', line 2982

def number
  @number
end

#objectObject

Attribute for param field object



2958
2959
2960
# File 'lib/stripe/services/account_service.rb', line 2958

def object
  @object
end