Struct stripe::Recipient [−][src]
pub struct Recipient {Show 14 fields
pub id: RecipientId,
pub active_account: Option<Box<BankAccount>>,
pub cards: List<Card>,
pub created: Option<Timestamp>,
pub default_card: Option<Box<Expandable<Card>>>,
pub deleted: bool,
pub description: Option<Box<String>>,
pub email: Option<Box<String>>,
pub livemode: Option<Box<bool>>,
pub metadata: Metadata,
pub migrated_to: Option<Box<Expandable<Account>>>,
pub name: Option<Box<String>>,
pub rolled_back_from: Option<Box<Expandable<Account>>>,
pub type_: Option<RecipientType>,
}
Expand description
The resource representing a Stripe “TransferRecipient”.
Fields
id: RecipientId
Unique identifier for the object.
active_account: Option<Box<BankAccount>>
Hash describing the current account on the recipient, if there is one.
cards: List<Card>
created: Option<Timestamp>
Time at which the object was created.
Measured in seconds since the Unix epoch.
default_card: Option<Box<Expandable<Card>>>
The default card to use for creating transfers to this recipient.
deleted: bool
description: Option<Box<String>>
An arbitrary string attached to the object.
Often useful for displaying to users.
email: Option<Box<String>>
livemode: Option<Box<bool>>
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
metadata: Metadata
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
migrated_to: Option<Box<Expandable<Account>>>
The ID of the Custom account this recipient was migrated to.
If set, the recipient can no longer be updated, nor can transfers be made to it: use the Custom account instead.
name: Option<Box<String>>
Full, legal name of the recipient.
rolled_back_from: Option<Box<Expandable<Account>>>
type_: Option<RecipientType>
Type of the recipient, one of individual
or corporation
.
Implementations
Returns a list of your recipients.
The recipients are returned sorted by creation date, with the most recently created recipients appearing first.
Creates a new Recipient
object and verifies the recipient’s identity.
Also verifies the recipient’s bank account information or debit card, if either is provided.
Retrieves the details of an existing recipient.
You need only supply the unique recipient identifier that was returned upon recipient creation.
pub fn update(
client: &Client,
id: &RecipientId,
params: UpdateRecipient<'_>
) -> Response<Recipient>
pub fn update(
client: &Client,
id: &RecipientId,
params: UpdateRecipient<'_>
) -> Response<Recipient>
Updates the specified recipient by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
If you update the name or tax ID, the identity verification will automatically be rerun. If you update the bank account, the bank account validation will automatically be rerun.
Permanently deletes a recipient.
It cannot be undone.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Recipient
impl UnwindSafe for Recipient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more