pub struct CreateToken { /* private fields */ }Expand description
Create new token
Implementations§
Source§impl CreateToken
impl CreateToken
Sourcepub fn new(
card_cvc: impl Into<String>,
card_exp_month: impl Into<String>,
card_exp_year: impl Into<String>,
card_name: impl Into<String>,
card_number: impl Into<String>,
) -> Self
pub fn new( card_cvc: impl Into<String>, card_exp_month: impl Into<String>, card_exp_year: impl Into<String>, card_name: impl Into<String>, card_number: impl Into<String>, ) -> Self
Construct a new CreateToken.
pub fn card_address_city(self, card_address_city: impl Into<String>) -> Self
pub fn card_address_line1(self, card_address_line1: impl Into<String>) -> Self
pub fn card_address_line2(self, card_address_line2: impl Into<String>) -> Self
pub fn card_address_state(self, card_address_state: impl Into<String>) -> Self
pub fn card_address_zip(self, card_address_zip: impl Into<String>) -> Self
pub fn card_country(self, card_country: impl Into<String>) -> Self
Sourcepub fn card_email(self, card_email: impl Into<String>) -> Self
pub fn card_email(self, card_email: impl Into<String>) -> Self
メールアドレス 2024年8月以降、3Dセキュア認証の際にphoneまたはemailのデータ入力が求められます。.
Sourcepub fn card_phone(self, card_phone: impl Into<String>) -> Self
pub fn card_phone(self, card_phone: impl Into<String>) -> Self
E.164形式の電話番号 (e.g. 090-0123-4567(日本) => “+819001234567”) 2024年8月以降、3Dセキュア認証の際にphoneまたはemailのデータ入力が求められます。.
Sourcepub fn three_d_secure(self, three_d_secure: impl Into<bool>) -> Self
pub fn three_d_secure(self, three_d_secure: impl Into<bool>) -> Self
3Dセキュアを開始するかどうか 管理画面でトークン3Dセキュアを実施するモードが有効になっている時は無視されます。.
Source§impl CreateToken
impl CreateToken
Sourcepub async fn send<C: PayjpClient>(
&self,
client: &C,
) -> Result<<Self as PayjpRequest>::Output, C::Err>
pub async fn send<C: PayjpClient>( &self, client: &C, ) -> Result<<Self as PayjpRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: BlockingClient>(
&self,
client: &C,
) -> Result<<Self as PayjpRequest>::Output, C::Err>
pub fn send_blocking<C: BlockingClient>( &self, client: &C, ) -> Result<<Self as PayjpRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for CreateToken
impl Clone for CreateToken
Source§fn clone(&self) -> CreateToken
fn clone(&self) -> CreateToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateToken
impl Debug for CreateToken
Source§impl PayjpRequest for CreateToken
impl PayjpRequest for CreateToken
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizablePayjpRequest<Self::Output>
fn customize(&self) -> CustomizablePayjpRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for CreateToken
impl RefUnwindSafe for CreateToken
impl Send for CreateToken
impl Sync for CreateToken
impl Unpin for CreateToken
impl UnwindSafe for CreateToken
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more