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.



1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
# File 'lib/stripe/services/account_service.rb', line 1149

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



1121
1122
1123
# File 'lib/stripe/services/account_service.rb', line 1121

def address_city
  @address_city
end

#address_countryObject

Attribute for param field address_country



1123
1124
1125
# File 'lib/stripe/services/account_service.rb', line 1123

def address_country
  @address_country
end

#address_line1Object

Attribute for param field address_line1



1125
1126
1127
# File 'lib/stripe/services/account_service.rb', line 1125

def address_line1
  @address_line1
end

#address_line2Object

Attribute for param field address_line2



1127
1128
1129
# File 'lib/stripe/services/account_service.rb', line 1127

def address_line2
  @address_line2
end

#address_stateObject

Attribute for param field address_state



1129
1130
1131
# File 'lib/stripe/services/account_service.rb', line 1129

def address_state
  @address_state
end

#address_zipObject

Attribute for param field address_zip



1131
1132
1133
# File 'lib/stripe/services/account_service.rb', line 1131

def address_zip
  @address_zip
end

#currencyObject

Attribute for param field currency



1133
1134
1135
# File 'lib/stripe/services/account_service.rb', line 1133

def currency
  @currency
end

#cvcObject

Attribute for param field cvc



1135
1136
1137
# File 'lib/stripe/services/account_service.rb', line 1135

def cvc
  @cvc
end

#default_for_currencyObject

Attribute for param field default_for_currency



1147
1148
1149
# File 'lib/stripe/services/account_service.rb', line 1147

def default_for_currency
  @default_for_currency
end

#exp_monthObject

Attribute for param field exp_month



1137
1138
1139
# File 'lib/stripe/services/account_service.rb', line 1137

def exp_month
  @exp_month
end

#exp_yearObject

Attribute for param field exp_year



1139
1140
1141
# File 'lib/stripe/services/account_service.rb', line 1139

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.



1145
1146
1147
# File 'lib/stripe/services/account_service.rb', line 1145

def 
  @metadata
end

#nameObject

Attribute for param field name



1141
1142
1143
# File 'lib/stripe/services/account_service.rb', line 1141

def name
  @name
end

#numberObject

Attribute for param field number



1143
1144
1145
# File 'lib/stripe/services/account_service.rb', line 1143

def number
  @number
end

#objectObject

Attribute for param field object



1119
1120
1121
# File 'lib/stripe/services/account_service.rb', line 1119

def object
  @object
end