Struct Card

Source
pub struct Card {
Show 22 fields pub address_city: Option<String>, pub address_line1: Option<String>, pub address_line2: Option<String>, pub address_state: Option<String>, pub address_zip: Option<String>, pub address_zip_check: Option<CardAddressZipCheck>, pub brand: CardBrand, pub country: Option<String>, pub created: i64, pub customer: Option<String>, pub cvc_check: Option<CardCvcCheck>, pub email: Option<String>, pub exp_month: i64, pub exp_year: i64, pub fingerprint: String, pub id: CardId, pub last4: String, pub livemode: bool, pub metadata: Option<Metadata>, pub name: Option<String>, pub phone: Option<String>, pub three_d_secure_status: Option<CardThreeDSecureStatus>,
}
Expand description

クレジットカードの情報を表すcardオブジェクト

For more details see <https://pay.jp/docs/api>.

Fields§

§address_city: Option<String>

請求先住所(市区町村)

§address_line1: Option<String>

請求先住所(番地)

§address_line2: Option<String>

請求先住所(建物名)

§address_state: Option<String>

請求先住所(都道府県)

§address_zip: Option<String>

請求先住所(郵便番号)

§address_zip_check: Option<CardAddressZipCheck>

郵便番号の検証結果

§brand: CardBrand

カードブランド名

§country: Option<String>

2桁のISOコード(e.g. JP)

§created: i64

カード作成時のタイムスタンプ

§customer: Option<String>

このカードを保有する顧客ID

§cvc_check: Option<CardCvcCheck>

セキュリティコードの検証結果

§email: Option<String>

メールアドレス 2024年8月以降、3Dセキュア認証の際にphoneまたはemailのデータ入力が求められます。.

§exp_month: i64

有効期限月

§exp_year: i64

有効期限年

§fingerprint: String

このクレジットカード番号に紐づく値。 同一番号のカードからは同一の値が生成されることが保証されており、 トークン化の度にトークンIDは変わりますが、この値は変わりません。.

§id: CardId

car_で始まり一意なオブジェクトを示す文字列

§last4: String

カード番号の下四桁

§livemode: bool

本番環境かどうか

§metadata: Option<Metadata>§name: Option<String>

カード保有者名

§phone: Option<String>

E.164形式の電話番号 (e.g. 090-0123-4567(日本) => “+819001234567”) 2024年8月以降、3Dセキュア認証の際にphoneまたはemailのデータ入力が求められます。.

§three_d_secure_status: Option<CardThreeDSecureStatus>

3Dセキュアの利用状況

Trait Implementations§

Source§

impl Clone for Card

Source§

fn clone(&self) -> Card

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Card

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deserialize for Card

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

The only correct implementation of this method is: Read more
Source§

impl FromValueOpt for Card

Source§

impl Object for Card

Source§

type Id = CardId

The canonical id type for this object.
Source§

fn id(&self) -> &Self::Id

The id of the object.
Source§

fn into_id(self) -> Self::Id

The owned id of the object.
Source§

impl ObjectDeser for Card

Auto Trait Implementations§

§

impl Freeze for Card

§

impl RefUnwindSafe for Card

§

impl Send for Card

§

impl Sync for Card

§

impl Unpin for Card

§

impl UnwindSafe for Card

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more