pub struct CreateTaxRegistration { /* private fields */ }Expand description
Creates a new Tax Registration object.
Implementations§
Source§impl CreateTaxRegistration
impl CreateTaxRegistration
Sourcepub fn new(
active_from: impl Into<CreateTaxRegistrationActiveFrom>,
country: impl Into<String>,
country_options: impl Into<CreateTaxRegistrationCountryOptions>,
) -> Self
pub fn new( active_from: impl Into<CreateTaxRegistrationActiveFrom>, country: impl Into<String>, country_options: impl Into<CreateTaxRegistrationCountryOptions>, ) -> Self
Construct a new CreateTaxRegistration.
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 expires_at(self, expires_at: impl Into<Timestamp>) -> Self
pub fn expires_at(self, expires_at: impl Into<Timestamp>) -> Self
If set, the Tax Registration stops being active at this time. If not set, the Tax Registration will be active indefinitely. Timestamp measured in seconds since the Unix epoch.
Source§impl CreateTaxRegistration
impl CreateTaxRegistration
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 CreateTaxRegistration
impl Clone for CreateTaxRegistration
Source§fn clone(&self) -> CreateTaxRegistration
fn clone(&self) -> CreateTaxRegistration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateTaxRegistration
impl Debug for CreateTaxRegistration
Source§impl Serialize for CreateTaxRegistration
impl Serialize for CreateTaxRegistration
Source§impl StripeRequest for CreateTaxRegistration
impl StripeRequest for CreateTaxRegistration
Source§type Output = TaxRegistration
type Output = TaxRegistration
The data returned from the eventual API call.
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for CreateTaxRegistration
impl RefUnwindSafe for CreateTaxRegistration
impl Send for CreateTaxRegistration
impl Sync for CreateTaxRegistration
impl Unpin for CreateTaxRegistration
impl UnwindSafe for CreateTaxRegistration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more