pub struct CreateBillingPortalConfiguration { /* private fields */ }
Expand description
Creates a configuration that describes the functionality and behavior of a PortalSession
Implementations§
Source§impl CreateBillingPortalConfiguration
impl CreateBillingPortalConfiguration
Sourcepub fn new(
features: impl Into<CreateBillingPortalConfigurationFeatures>,
) -> Self
pub fn new( features: impl Into<CreateBillingPortalConfigurationFeatures>, ) -> Self
Construct a new CreateBillingPortalConfiguration
.
Sourcepub fn business_profile(
self,
business_profile: impl Into<CreateBillingPortalConfigurationBusinessProfile>,
) -> Self
pub fn business_profile( self, business_profile: impl Into<CreateBillingPortalConfigurationBusinessProfile>, ) -> Self
The business information shown to customers in the portal.
Sourcepub fn default_return_url(self, default_return_url: impl Into<String>) -> Self
pub fn default_return_url(self, default_return_url: impl Into<String>) -> Self
The default URL to redirect customers to when they click on the portal’s link to return to your website. This can be overriden when creating the session.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn login_page(
self,
login_page: impl Into<CreateBillingPortalConfigurationLoginPage>,
) -> Self
pub fn login_page( self, login_page: impl Into<CreateBillingPortalConfigurationLoginPage>, ) -> Self
The hosted login page for this configuration. Learn more about the portal login page in our integration docs.
Sourcepub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
pub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
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.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata
.
Source§impl CreateBillingPortalConfiguration
impl CreateBillingPortalConfiguration
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for CreateBillingPortalConfiguration
impl Clone for CreateBillingPortalConfiguration
Source§fn clone(&self) -> CreateBillingPortalConfiguration
fn clone(&self) -> CreateBillingPortalConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more