pub struct TransactionRevise<'a> { /* private fields */ }
Implementations§
Source§impl<'a> TransactionRevise<'a>
impl<'a> TransactionRevise<'a>
pub fn new(client: &'a Paddle, transaction_id: impl Into<TransactionID>) -> Self
Sourcepub fn customer_name(&mut self, name: impl Into<String>) -> &mut Self
pub fn customer_name(&mut self, name: impl Into<String>) -> &mut Self
Revised name of the customer for this transaction.
Sourcepub fn business_name(&mut self, name: impl Into<String>) -> &mut Self
pub fn business_name(&mut self, name: impl Into<String>) -> &mut Self
Revised name of the business for this transaction.
Sourcepub fn business_tax_identifier(
&mut self,
tax_identifier: impl Into<String>,
) -> &mut Self
pub fn business_tax_identifier( &mut self, tax_identifier: impl Into<String>, ) -> &mut Self
Revised tax or VAT number for this transaction.
You can’t remove a valid tax or VAT number, only replace it with another valid one.
Paddle automatically creates an adjustment to refund any tax where applicable.
Sourcepub fn address_first_line(&mut self, first_line: impl Into<String>) -> &mut Self
pub fn address_first_line(&mut self, first_line: impl Into<String>) -> &mut Self
Revised first line of the address for this transaction.
Sourcepub fn address_second_line(
&mut self,
second_line: impl Into<String>,
) -> &mut Self
pub fn address_second_line( &mut self, second_line: impl Into<String>, ) -> &mut Self
Revised second line of the address for this transaction.
Sourcepub fn address_city(&mut self, city: impl Into<String>) -> &mut Self
pub fn address_city(&mut self, city: impl Into<String>) -> &mut Self
Revised city of the address for this transaction.
Sourcepub fn address_region(&mut self, region: impl Into<String>) -> &mut Self
pub fn address_region(&mut self, region: impl Into<String>) -> &mut Self
Revised region of the address for this transaction.
Sourcepub async fn send(&self) -> Result<SuccessResponse<Transaction>, Error>
pub async fn send(&self) -> Result<SuccessResponse<Transaction>, Error>
Send the request to Paddle and return the response.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TransactionRevise<'a>
impl<'a> RefUnwindSafe for TransactionRevise<'a>
impl<'a> Send for TransactionRevise<'a>
impl<'a> Sync for TransactionRevise<'a>
impl<'a> Unpin for TransactionRevise<'a>
impl<'a> UnwindSafe for TransactionRevise<'a>
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