pub struct CreatePaymentIntentTransferData {
pub amount: Option<i64>,
pub destination: String,
}
Expand description
The parameters that you can use to automatically create a Transfer. Learn more about the use case for connected accounts.
Fields§
§amount: Option<i64>
The amount that will be transferred automatically when a charge succeeds. The amount is capped at the total transaction amount and if no amount is set, the full amount is transferred.
If you intend to collect a fee and you need a more robust reporting experience, using application_fee_amount. might be a better fit for your integration.
destination: String
If 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 CreatePaymentIntentTransferData
impl Clone for CreatePaymentIntentTransferData
Source§fn clone(&self) -> CreatePaymentIntentTransferData
fn clone(&self) -> CreatePaymentIntentTransferData
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 moreAuto Trait Implementations§
impl Freeze for CreatePaymentIntentTransferData
impl RefUnwindSafe for CreatePaymentIntentTransferData
impl Send for CreatePaymentIntentTransferData
impl Sync for CreatePaymentIntentTransferData
impl Unpin for CreatePaymentIntentTransferData
impl UnwindSafe for CreatePaymentIntentTransferData
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