Struct stripe::BillingPortalSession
source · [−]pub struct BillingPortalSession {
pub id: BillingPortalSessionId,
pub configuration: Expandable<BillingPortalConfiguration>,
pub created: Timestamp,
pub customer: String,
pub livemode: bool,
pub locale: Option<BillingPortalSessionLocale>,
pub on_behalf_of: Option<String>,
pub return_url: Option<String>,
pub url: String,
}
Expand description
The resource representing a Stripe “PortalSession”.
Fields
id: BillingPortalSessionId
Unique identifier for the object.
configuration: Expandable<BillingPortalConfiguration>
The configuration used by this session, describing the features available.
created: Timestamp
Time at which the object was created.
Measured in seconds since the Unix epoch.
customer: String
The ID of the customer for this session.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
locale: Option<BillingPortalSessionLocale>
The IETF language tag of the locale Customer Portal is displayed in.
If blank or auto, the customer’s preferred_locales
or browser’s locale is used.
on_behalf_of: Option<String>
The account for which the session was created on behalf of.
When specified, only subscriptions and invoices with this on_behalf_of
account appear in the portal.
For more information, see the docs.
Use the Accounts API to modify the on_behalf_of
account’s branding settings, which the portal displays.
return_url: Option<String>
The URL to redirect customers to when they click on the portal’s link to return to your website.
url: String
The short-lived URL of the session that gives customers access to the customer portal.
Implementations
sourceimpl BillingPortalSession
impl BillingPortalSession
sourcepub fn create(
client: &Client,
params: CreateBillingPortalSession<'_>
) -> Response<BillingPortalSession>
pub fn create(
client: &Client,
params: CreateBillingPortalSession<'_>
) -> Response<BillingPortalSession>
Creates a session of the customer portal.
Trait Implementations
sourceimpl Clone for BillingPortalSession
impl Clone for BillingPortalSession
sourcefn clone(&self) -> BillingPortalSession
fn clone(&self) -> BillingPortalSession
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BillingPortalSession
impl Debug for BillingPortalSession
sourceimpl Default for BillingPortalSession
impl Default for BillingPortalSession
sourcefn default() -> BillingPortalSession
fn default() -> BillingPortalSession
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BillingPortalSession
impl<'de> Deserialize<'de> for BillingPortalSession
sourcefn 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
sourceimpl Object for BillingPortalSession
impl Object for BillingPortalSession
sourceimpl Serialize for BillingPortalSession
impl Serialize for BillingPortalSession
Auto Trait Implementations
impl RefUnwindSafe for BillingPortalSession
impl Send for BillingPortalSession
impl Sync for BillingPortalSession
impl Unpin for BillingPortalSession
impl UnwindSafe for BillingPortalSession
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more