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.



1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
# File 'lib/stripe/services/account_service.rb', line 1081

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



1053
1054
1055
# File 'lib/stripe/services/account_service.rb', line 1053

def address_city
  @address_city
end

#address_countryObject

Attribute for param field address_country



1055
1056
1057
# File 'lib/stripe/services/account_service.rb', line 1055

def address_country
  @address_country
end

#address_line1Object

Attribute for param field address_line1



1057
1058
1059
# File 'lib/stripe/services/account_service.rb', line 1057

def address_line1
  @address_line1
end

#address_line2Object

Attribute for param field address_line2



1059
1060
1061
# File 'lib/stripe/services/account_service.rb', line 1059

def address_line2
  @address_line2
end

#address_stateObject

Attribute for param field address_state



1061
1062
1063
# File 'lib/stripe/services/account_service.rb', line 1061

def address_state
  @address_state
end

#address_zipObject

Attribute for param field address_zip



1063
1064
1065
# File 'lib/stripe/services/account_service.rb', line 1063

def address_zip
  @address_zip
end

#currencyObject

Attribute for param field currency



1065
1066
1067
# File 'lib/stripe/services/account_service.rb', line 1065

def currency
  @currency
end

#cvcObject

Attribute for param field cvc



1067
1068
1069
# File 'lib/stripe/services/account_service.rb', line 1067

def cvc
  @cvc
end

#default_for_currencyObject

Attribute for param field default_for_currency



1079
1080
1081
# File 'lib/stripe/services/account_service.rb', line 1079

def default_for_currency
  @default_for_currency
end

#exp_monthObject

Attribute for param field exp_month



1069
1070
1071
# File 'lib/stripe/services/account_service.rb', line 1069

def exp_month
  @exp_month
end

#exp_yearObject

Attribute for param field exp_year



1071
1072
1073
# File 'lib/stripe/services/account_service.rb', line 1071

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.



1077
1078
1079
# File 'lib/stripe/services/account_service.rb', line 1077

def 
  @metadata
end

#nameObject

Attribute for param field name



1073
1074
1075
# File 'lib/stripe/services/account_service.rb', line 1073

def name
  @name
end

#numberObject

Attribute for param field number



1075
1076
1077
# File 'lib/stripe/services/account_service.rb', line 1075

def number
  @number
end

#objectObject

Attribute for param field object



1051
1052
1053
# File 'lib/stripe/services/account_service.rb', line 1051

def object
  @object
end