pub struct CreateFromCalculationTaxTransaction { /* private fields */ }Expand description
Creates a Tax Transaction from a calculation, if that calculation hasn’t expired. Calculations expire after 90 days.
Implementations§
Source§impl CreateFromCalculationTaxTransaction
impl CreateFromCalculationTaxTransaction
Sourcepub fn new(calculation: impl Into<String>, reference: impl Into<String>) -> Self
pub fn new(calculation: impl Into<String>, reference: impl Into<String>) -> Self
Construct a new CreateFromCalculationTaxTransaction.
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 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.
Sourcepub fn posted_at(self, posted_at: impl Into<Timestamp>) -> Self
pub fn posted_at(self, posted_at: impl Into<Timestamp>) -> Self
The Unix timestamp representing when the tax liability is assumed or reduced, which determines the liability posting period and handling in tax liability reports.
The timestamp must fall within the tax_date and the current time, unless the tax_date is scheduled in advance.
Defaults to the current time.
Source§impl CreateFromCalculationTaxTransaction
impl CreateFromCalculationTaxTransaction
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 CreateFromCalculationTaxTransaction
impl Clone for CreateFromCalculationTaxTransaction
Source§fn clone(&self) -> CreateFromCalculationTaxTransaction
fn clone(&self) -> CreateFromCalculationTaxTransaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more