Class: Stripe::AccountService::UpdateParams::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.



980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
# File 'lib/stripe/services/account_service.rb', line 980

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



952
953
954
# File 'lib/stripe/services/account_service.rb', line 952

def address_city
  @address_city
end

#address_countryObject

Attribute for param field address_country



954
955
956
# File 'lib/stripe/services/account_service.rb', line 954

def address_country
  @address_country
end

#address_line1Object

Attribute for param field address_line1



956
957
958
# File 'lib/stripe/services/account_service.rb', line 956

def address_line1
  @address_line1
end

#address_line2Object

Attribute for param field address_line2



958
959
960
# File 'lib/stripe/services/account_service.rb', line 958

def address_line2
  @address_line2
end

#address_stateObject

Attribute for param field address_state



960
961
962
# File 'lib/stripe/services/account_service.rb', line 960

def address_state
  @address_state
end

#address_zipObject

Attribute for param field address_zip



962
963
964
# File 'lib/stripe/services/account_service.rb', line 962

def address_zip
  @address_zip
end

#currencyObject

Attribute for param field currency



964
965
966
# File 'lib/stripe/services/account_service.rb', line 964

def currency
  @currency
end

#cvcObject

Attribute for param field cvc



966
967
968
# File 'lib/stripe/services/account_service.rb', line 966

def cvc
  @cvc
end

#default_for_currencyObject

Attribute for param field default_for_currency



978
979
980
# File 'lib/stripe/services/account_service.rb', line 978

def default_for_currency
  @default_for_currency
end

#exp_monthObject

Attribute for param field exp_month



968
969
970
# File 'lib/stripe/services/account_service.rb', line 968

def exp_month
  @exp_month
end

#exp_yearObject

Attribute for param field exp_year



970
971
972
# File 'lib/stripe/services/account_service.rb', line 970

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.



976
977
978
# File 'lib/stripe/services/account_service.rb', line 976

def 
  @metadata
end

#nameObject

Attribute for param field name



972
973
974
# File 'lib/stripe/services/account_service.rb', line 972

def name
  @name
end

#numberObject

Attribute for param field number



974
975
976
# File 'lib/stripe/services/account_service.rb', line 974

def number
  @number
end

#objectObject

Attribute for param field object



950
951
952
# File 'lib/stripe/services/account_service.rb', line 950

def object
  @object
end