pub struct CreateToken<'a> {
pub account: Option<CreateTokenAccount>,
pub card: Option<CreateTokenCardUnion>,
pub customer: Option<CustomerId>,
pub cvc_update: Option<CreateTokenCvcUpdate>,
pub expand: &'a [&'a str],
pub person: Option<CreateTokenPerson>,
pub pii: Option<CreateTokenPii>,
}
Expand description
The parameters for Token::create
.
Fields§
§account: Option<CreateTokenAccount>
Information for the account this token will represent.
card: Option<CreateTokenCardUnion>
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.
customer: Option<CustomerId>
The customer (owned by the application’s account) for which to create a token.
This can be used only with an OAuth access token or Stripe-Account header. For more details, see Cloning Saved Payment Methods.
cvc_update: Option<CreateTokenCvcUpdate>
The updated CVC value this token will represent.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
person: Option<CreateTokenPerson>
Information for the person this token will represent.
pii: Option<CreateTokenPii>
The PII this token will represent.
Implementations§
source§impl<'a> CreateToken<'a>
impl<'a> CreateToken<'a>
Trait Implementations§
source§impl<'a> Clone for CreateToken<'a>
impl<'a> Clone for CreateToken<'a>
source§fn clone(&self) -> CreateToken<'a>
fn clone(&self) -> CreateToken<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more