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.



2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
# File 'lib/stripe/services/account_service.rb', line 2963

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



2935
2936
2937
# File 'lib/stripe/services/account_service.rb', line 2935

def address_city
  @address_city
end

#address_countryObject

Attribute for param field address_country



2937
2938
2939
# File 'lib/stripe/services/account_service.rb', line 2937

def address_country
  @address_country
end

#address_line1Object

Attribute for param field address_line1



2939
2940
2941
# File 'lib/stripe/services/account_service.rb', line 2939

def address_line1
  @address_line1
end

#address_line2Object

Attribute for param field address_line2



2941
2942
2943
# File 'lib/stripe/services/account_service.rb', line 2941

def address_line2
  @address_line2
end

#address_stateObject

Attribute for param field address_state



2943
2944
2945
# File 'lib/stripe/services/account_service.rb', line 2943

def address_state
  @address_state
end

#address_zipObject

Attribute for param field address_zip



2945
2946
2947
# File 'lib/stripe/services/account_service.rb', line 2945

def address_zip
  @address_zip
end

#currencyObject

Attribute for param field currency



2947
2948
2949
# File 'lib/stripe/services/account_service.rb', line 2947

def currency
  @currency
end

#cvcObject

Attribute for param field cvc



2949
2950
2951
# File 'lib/stripe/services/account_service.rb', line 2949

def cvc
  @cvc
end

#default_for_currencyObject

Attribute for param field default_for_currency



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

def default_for_currency
  @default_for_currency
end

#exp_monthObject

Attribute for param field exp_month



2951
2952
2953
# File 'lib/stripe/services/account_service.rb', line 2951

def exp_month
  @exp_month
end

#exp_yearObject

Attribute for param field exp_year



2953
2954
2955
# File 'lib/stripe/services/account_service.rb', line 2953

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.



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

def 
  @metadata
end

#nameObject

Attribute for param field name



2955
2956
2957
# File 'lib/stripe/services/account_service.rb', line 2955

def name
  @name
end

#numberObject

Attribute for param field number



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

def number
  @number
end

#objectObject

Attribute for param field object



2933
2934
2935
# File 'lib/stripe/services/account_service.rb', line 2933

def object
  @object
end