pub struct OrdersCustomBatchRequestEntry {
pub order_id: Option<String>,
pub batch_id: Option<u32>,
pub ship_line_items: Option<OrdersCustomBatchRequestEntryShipLineItems>,
pub update_shipment: Option<OrdersCustomBatchRequestEntryUpdateShipment>,
pub merchant_id: Option<String>,
pub merchant_order_id: Option<String>,
pub cancel_line_item: Option<OrdersCustomBatchRequestEntryCancelLineItem>,
pub refund: Option<OrdersCustomBatchRequestEntryRefund>,
pub cancel: Option<OrdersCustomBatchRequestEntryCancel>,
pub operation_id: Option<String>,
pub method: Option<String>,
pub return_line_item: Option<OrdersCustomBatchRequestEntryReturnLineItem>,
}Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§order_id: Option<String>The ID of the order. Required for all methods beside getByMerchantOrderId.
batch_id: Option<u32>An entry ID, unique within the batch request.
ship_line_items: Option<OrdersCustomBatchRequestEntryShipLineItems>Required for shipLineItems method.
update_shipment: Option<OrdersCustomBatchRequestEntryUpdateShipment>Required for updateShipment method.
merchant_id: Option<String>The ID of the managing account.
merchant_order_id: Option<String>The merchant order id. Required for updateMerchantOrderId and getByMerchantOrderId methods.
cancel_line_item: Option<OrdersCustomBatchRequestEntryCancelLineItem>Required for cancelLineItem method.
refund: Option<OrdersCustomBatchRequestEntryRefund>Required for refund method.
cancel: Option<OrdersCustomBatchRequestEntryCancel>Required for cancel method.
operation_id: Option<String>The ID of the operation. Unique across all operations for a given order. Required for all methods beside get and getByMerchantOrderId.
method: Option<String>The method to apply.
return_line_item: Option<OrdersCustomBatchRequestEntryReturnLineItem>Required for returnLineItem method.
Trait Implementations§
source§impl Clone for OrdersCustomBatchRequestEntry
impl Clone for OrdersCustomBatchRequestEntry
source§fn clone(&self) -> OrdersCustomBatchRequestEntry
fn clone(&self) -> OrdersCustomBatchRequestEntry
Returns a copy 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 Default for OrdersCustomBatchRequestEntry
impl Default for OrdersCustomBatchRequestEntry
source§fn default() -> OrdersCustomBatchRequestEntry
fn default() -> OrdersCustomBatchRequestEntry
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OrdersCustomBatchRequestEntry
impl<'de> Deserialize<'de> for OrdersCustomBatchRequestEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for OrdersCustomBatchRequestEntry
Auto Trait Implementations§
impl Freeze for OrdersCustomBatchRequestEntry
impl RefUnwindSafe for OrdersCustomBatchRequestEntry
impl Send for OrdersCustomBatchRequestEntry
impl Sync for OrdersCustomBatchRequestEntry
impl Unpin for OrdersCustomBatchRequestEntry
impl UnwindSafe for OrdersCustomBatchRequestEntry
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more