pub struct CreateCheckoutSessionPaymentIntentDataTransferData {
pub amount: Option<i64>,
pub destination: String,
}Expand description
The parameters used to automatically create a Transfer when the payment succeeds. For more information, see the PaymentIntents use case for connected accounts.
Fields§
§amount: Option<i64>The amount that will be transferred automatically when a charge succeeds.
destination: StringIf specified, successful charges will be attributed to the destination
account for tax reporting, and the funds from charges will be transferred
to the destination account. The ID of the resulting transfer will be
returned on the successful charge’s transfer field.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionPaymentIntentDataTransferData
impl Clone for CreateCheckoutSessionPaymentIntentDataTransferData
Source§fn clone(&self) -> CreateCheckoutSessionPaymentIntentDataTransferData
fn clone(&self) -> CreateCheckoutSessionPaymentIntentDataTransferData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for CreateCheckoutSessionPaymentIntentDataTransferData
impl StructuralPartialEq for CreateCheckoutSessionPaymentIntentDataTransferData
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionPaymentIntentDataTransferData
impl RefUnwindSafe for CreateCheckoutSessionPaymentIntentDataTransferData
impl Send for CreateCheckoutSessionPaymentIntentDataTransferData
impl Sync for CreateCheckoutSessionPaymentIntentDataTransferData
impl Unpin for CreateCheckoutSessionPaymentIntentDataTransferData
impl UnsafeUnpin for CreateCheckoutSessionPaymentIntentDataTransferData
impl UnwindSafe for CreateCheckoutSessionPaymentIntentDataTransferData
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