pub struct Returns { /* private fields */ }Implementations§
Source§impl Returns
impl Returns
pub fn new( shop_url: Arc<String>, version: Arc<String>, access_token: Arc<String>, callbacks: Arc<RequestCallbacks>, ) -> Self
pub fn with_ctx(ctx: ServiceContext) -> Self
pub async fn request( &self, order_id: &str, line_items: &[ReturnLineItemInput], ) -> Result<ReturnRequestResp, APIError>
pub async fn process( &self, return_id: &str, return_line_items: &[ReturnProcessLineInput], order_transactions: &[OrderTransactionInput], idempotency_key: &str, ) -> Result<ReturnProcessResp, APIError>
Auto Trait Implementations§
impl !RefUnwindSafe for Returns
impl !UnwindSafe for Returns
impl Freeze for Returns
impl Send for Returns
impl Sync for Returns
impl Unpin for Returns
impl UnsafeUnpin for Returns
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