Class: Stripe::Issuing::CardCreateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/issuing/card_create_params.rb

Defined Under Namespace

Classes: Pin, Shipping, SpendingControls

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(cardholder: nil, currency: nil, exp_month: nil, exp_year: nil, expand: nil, financial_account: nil, metadata: nil, personalization_design: nil, pin: nil, replacement_for: nil, replacement_reason: nil, second_line: nil, shipping: nil, spending_controls: nil, status: nil, type: nil) ⇒ CardCreateParams

Returns a new instance of CardCreateParams.



176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
# File 'lib/stripe/params/issuing/card_create_params.rb', line 176

def initialize(
  cardholder: nil,
  currency: nil,
  exp_month: nil,
  exp_year: nil,
  expand: nil,
  financial_account: nil,
  metadata: nil,
  personalization_design: nil,
  pin: nil,
  replacement_for: nil,
  replacement_reason: nil,
  second_line: nil,
  shipping: nil,
  spending_controls: nil,
  status: nil,
  type: nil
)
  @cardholder = cardholder
  @currency = currency
  @exp_month = exp_month
  @exp_year = exp_year
  @expand = expand
  @financial_account = 
  @metadata = 
  @personalization_design = personalization_design
  @pin = pin
  @replacement_for = replacement_for
  @replacement_reason = replacement_reason
  @second_line = second_line
  @shipping = shipping
  @spending_controls = spending_controls
  @status = status
  @type = type
end

Instance Attribute Details

#cardholderObject

The [Cardholder](stripe.com/docs/api#issuing_cardholder_object) object with which the card will be associated.



144
145
146
# File 'lib/stripe/params/issuing/card_create_params.rb', line 144

def cardholder
  @cardholder
end

#currencyObject

The currency for the card.



146
147
148
# File 'lib/stripe/params/issuing/card_create_params.rb', line 146

def currency
  @currency
end

#exp_monthObject

The desired expiration month (1-12) for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates).



148
149
150
# File 'lib/stripe/params/issuing/card_create_params.rb', line 148

def exp_month
  @exp_month
end

#exp_yearObject

The desired 4-digit expiration year for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates).



150
151
152
# File 'lib/stripe/params/issuing/card_create_params.rb', line 150

def exp_year
  @exp_year
end

#expandObject

Specifies which fields in the response should be expanded.



152
153
154
# File 'lib/stripe/params/issuing/card_create_params.rb', line 152

def expand
  @expand
end

#financial_accountObject

The new financial account ID the card will be associated with. This field allows a card to be reassigned to a different financial account.



154
155
156
# File 'lib/stripe/params/issuing/card_create_params.rb', line 154

def 
  @financial_account
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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.



156
157
158
# File 'lib/stripe/params/issuing/card_create_params.rb', line 156

def 
  @metadata
end

#personalization_designObject

The personalization design object belonging to this card.



158
159
160
# File 'lib/stripe/params/issuing/card_create_params.rb', line 158

def personalization_design
  @personalization_design
end

#pinObject

The desired PIN for this card.



160
161
162
# File 'lib/stripe/params/issuing/card_create_params.rb', line 160

def pin
  @pin
end

#replacement_forObject

The card this is meant to be a replacement for (if any).



162
163
164
# File 'lib/stripe/params/issuing/card_create_params.rb', line 162

def replacement_for
  @replacement_for
end

#replacement_reasonObject

If ‘replacement_for` is specified, this should indicate why that card is being replaced.



164
165
166
# File 'lib/stripe/params/issuing/card_create_params.rb', line 164

def replacement_reason
  @replacement_reason
end

#second_lineObject

The second line to print on the card. Max length: 24 characters.



166
167
168
# File 'lib/stripe/params/issuing/card_create_params.rb', line 166

def second_line
  @second_line
end

#shippingObject

The address where the card will be shipped.



168
169
170
# File 'lib/stripe/params/issuing/card_create_params.rb', line 168

def shipping
  @shipping
end

#spending_controlsObject

Rules that control spending for this card. Refer to our [documentation](stripe.com/docs/issuing/controls/spending-controls) for more details.



170
171
172
# File 'lib/stripe/params/issuing/card_create_params.rb', line 170

def spending_controls
  @spending_controls
end

#statusObject

Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to ‘inactive`.



172
173
174
# File 'lib/stripe/params/issuing/card_create_params.rb', line 172

def status
  @status
end

#typeObject

The type of card to issue. Possible values are ‘physical` or `virtual`.



174
175
176
# File 'lib/stripe/params/issuing/card_create_params.rb', line 174

def type
  @type
end