pub struct Recipient {
Show 14 fields pub id: RecipientId, pub active_account: Option<BankAccount>, pub cards: List<Card>, pub created: Option<Timestamp>, pub default_card: Option<Expandable<Card>>, pub deleted: bool, pub description: Option<String>, pub email: Option<String>, pub livemode: Option<bool>, pub metadata: Metadata, pub migrated_to: Option<Expandable<Account>>, pub name: Option<String>, pub rolled_back_from: Option<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<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<Expandable<Card>>

The default card to use for creating transfers to this recipient.

deleted: booldescription: Option<String>

An arbitrary string attached to the object.

Often useful for displaying to users.

email: Option<String>livemode: Option<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<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<String>

Full, legal name of the recipient.

rolled_back_from: Option<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.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

The canonical id type for this object.

The id of the object.

The object’s type, typically represented in wire format as the object property.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

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

Calls U::from(self).

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

Should always be Self

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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