Class: Stripe::Token::CreateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/resources/token.rb

Defined Under Namespace

Classes: Account, BankAccount, Card, CvcUpdate, Person, Pii

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(account: nil, bank_account: nil, card: nil, customer: nil, cvc_update: nil, expand: nil, person: nil, pii: nil) ⇒ CreateParams

Returns a new instance of CreateParams.



1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
# File 'lib/stripe/resources/token.rb', line 1143

def initialize(
  account: nil,
  bank_account: nil,
  card: nil,
  customer: nil,
  cvc_update: nil,
  expand: nil,
  person: nil,
  pii: nil
)
  @account = 
  @bank_account = 
  @card = card
  @customer = customer
  @cvc_update = cvc_update
  @expand = expand
  @person = person
  @pii = pii
end

Instance Attribute Details

#accountObject

Information for the account this token represents.



1127
1128
1129
# File 'lib/stripe/resources/token.rb', line 1127

def 
  @account
end

#bank_accountObject

The bank account this token will represent.



1129
1130
1131
# File 'lib/stripe/resources/token.rb', line 1129

def 
  @bank_account
end

#cardObject

The card this token will represent. If you also pass in a customer, the card must be the ID of a card belonging to the customer. Otherwise, if you do not pass in a customer, this is a dictionary containing a user’s credit card details, with the options described below.



1131
1132
1133
# File 'lib/stripe/resources/token.rb', line 1131

def card
  @card
end

#customerObject

Create a token for the customer, which is owned by the application’s account. You can only use this with an [OAuth access token](stripe.com/docs/connect/standard-accounts) or [Stripe-Account header](stripe.com/docs/connect/authentication). Learn more about [cloning saved payment methods](stripe.com/docs/connect/cloning-saved-payment-methods).



1133
1134
1135
# File 'lib/stripe/resources/token.rb', line 1133

def customer
  @customer
end

#cvc_updateObject

The updated CVC value this token represents.



1135
1136
1137
# File 'lib/stripe/resources/token.rb', line 1135

def cvc_update
  @cvc_update
end

#expandObject

Specifies which fields in the response should be expanded.



1137
1138
1139
# File 'lib/stripe/resources/token.rb', line 1137

def expand
  @expand
end

#personObject

Information for the person this token represents.



1139
1140
1141
# File 'lib/stripe/resources/token.rb', line 1139

def person
  @person
end

#piiObject

The PII this token represents.



1141
1142
1143
# File 'lib/stripe/resources/token.rb', line 1141

def pii
  @pii
end