Struct stripe::CreateBillingPortalSession
source · [−]pub struct CreateBillingPortalSession<'a> {
pub configuration: Option<&'a str>,
pub customer: CustomerId,
pub expand: &'a [&'a str],
pub locale: Option<BillingPortalSessionLocale>,
pub on_behalf_of: Option<&'a str>,
pub return_url: Option<&'a str>,
}Expand description
The parameters for BillingPortalSession::create.
Fields
configuration: Option<&'a str>The ID of an existing configuration to use for this session, describing its functionality and features.
If not specified, the session uses the default configuration.
customer: CustomerIdThe ID of an existing customer.
expand: &'a [&'a str]Specifies which fields in the response should be expanded.
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<&'a str>The on_behalf_of account to use for this session.
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<&'a str>The default URL to redirect customers to when they click on the portal’s link to return to your website.
Implementations
sourceimpl<'a> CreateBillingPortalSession<'a>
impl<'a> CreateBillingPortalSession<'a>
pub fn new(customer: CustomerId) -> Self
Trait Implementations
sourceimpl<'a> Clone for CreateBillingPortalSession<'a>
impl<'a> Clone for CreateBillingPortalSession<'a>
sourcefn clone(&self) -> CreateBillingPortalSession<'a>
fn clone(&self) -> CreateBillingPortalSession<'a>
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<'a> Debug for CreateBillingPortalSession<'a>
impl<'a> Debug for CreateBillingPortalSession<'a>
sourceimpl<'a> Serialize for CreateBillingPortalSession<'a>
impl<'a> Serialize for CreateBillingPortalSession<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CreateBillingPortalSession<'a>
impl<'a> Send for CreateBillingPortalSession<'a>
impl<'a> Sync for CreateBillingPortalSession<'a>
impl<'a> Unpin for CreateBillingPortalSession<'a>
impl<'a> UnwindSafe for CreateBillingPortalSession<'a>
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