Struct rust_woocommerce::controllers::refunds::RefundCreateBuilder
source · pub struct RefundCreateBuilder<A, I> { /* private fields */ }Implementations§
source§impl<A, I> RefundCreateBuilder<A, I>
impl<A, I> RefundCreateBuilder<A, I>
sourcepub fn amount(
self,
amount: impl Into<String>
) -> RefundCreateBuilder<WithAmount, I>
pub fn amount( self, amount: impl Into<String> ) -> RefundCreateBuilder<WithAmount, I>
Total refund amount. Optional. If this parameter is provided, it will take precedence over line item totals, even when total of line items does not matches with this amount.
sourcepub fn refunded_by(self, refunded_by: i32) -> Self
pub fn refunded_by(self, refunded_by: i32) -> Self
User ID of user who created the refund.
sourcepub fn api_refund(self) -> Self
pub fn api_refund(self) -> Self
When true, the payment gateway API is used to generate the refund. Default is true. This method set false
sourcepub fn api_restock(self) -> Self
pub fn api_restock(self) -> Self
When true, the selected line items are restocked Default is true. This method set false
source§impl<A> RefundCreateBuilder<A, NoItems>
impl<A> RefundCreateBuilder<A, NoItems>
source§impl<A> RefundCreateBuilder<A, WithItems>
impl<A> RefundCreateBuilder<A, WithItems>
source§impl RefundCreateBuilder<NoAmount, WithItems>
impl RefundCreateBuilder<NoAmount, WithItems>
pub fn build(self) -> RefundCreate
source§impl RefundCreateBuilder<WithAmount, WithItems>
impl RefundCreateBuilder<WithAmount, WithItems>
pub fn build(self) -> RefundCreate
source§impl RefundCreateBuilder<WithAmount, NoItems>
impl RefundCreateBuilder<WithAmount, NoItems>
pub fn build(self) -> RefundCreate
Trait Implementations§
Auto Trait Implementations§
impl<A, I> Freeze for RefundCreateBuilder<A, I>
impl<A, I> RefUnwindSafe for RefundCreateBuilder<A, I>where
A: RefUnwindSafe,
I: RefUnwindSafe,
impl<A, I> Send for RefundCreateBuilder<A, I>
impl<A, I> Sync for RefundCreateBuilder<A, I>
impl<A, I> Unpin for RefundCreateBuilder<A, I>
impl<A, I> UnwindSafe for RefundCreateBuilder<A, I>where
A: UnwindSafe,
I: UnwindSafe,
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