pub struct CaptureCharge { /* private fields */ }Expand description
認証状態となった処理待ちの支払い処理を確定させます。具体的には captured="false" となった支払いが該当します。.
Implementations§
Source§impl CaptureCharge
impl CaptureCharge
Sourcepub fn amount(self, amount: impl Into<i64>) -> Self
pub fn amount(self, amount: impl Into<i64>) -> Self
50~9,999,999の整数
これをセットすることで、支払い生成時の金額と異なる金額の支払い処理を行うことができます。. ただし支払い生成時の金額よりも少額である必要があるためご注意ください。.
セットした場合、レスポンスの amount_refunded に認証時の amount との差額が入ります。.
例えば、認証時に amount=500 で作成し、 amount=400 で支払い確定を行った場合、 amount_refunded=100 となり、確定金額が400円に変更された状態で支払いが確定されます。.
Source§impl CaptureCharge
impl CaptureCharge
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 CaptureCharge
impl Clone for CaptureCharge
Source§fn clone(&self) -> CaptureCharge
fn clone(&self) -> CaptureCharge
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 CaptureCharge
impl Debug for CaptureCharge
Source§impl PayjpRequest for CaptureCharge
impl PayjpRequest for CaptureCharge
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 CaptureCharge
impl RefUnwindSafe for CaptureCharge
impl Send for CaptureCharge
impl Sync for CaptureCharge
impl Unpin for CaptureCharge
impl UnwindSafe for CaptureCharge
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