pub struct OrderLineItemPricingBlocklists {
pub blocked_discounts: Option<Vec<OrderLineItemPricingBlocklistsBlockedDiscount>>,
pub blocked_taxes: Option<Vec<OrderLineItemPricingBlocklistsBlockedTax>>,
}
Expand description
Describes pricing adjustments that are blocked from manual and automatic application to a line item.
For more information, see Apply Taxes and Discounts.
Fields§
§blocked_discounts: Option<Vec<OrderLineItemPricingBlocklistsBlockedDiscount>>
A list of discounts blocked from applying to the line item. Discounts can be blocked by the
discount_uid
(for ad hoc discounts) or the discount_catalog_object_id
(for catalog
discounts).
blocked_taxes: Option<Vec<OrderLineItemPricingBlocklistsBlockedTax>>
A list of taxes blocked from applying to the line item. Taxes can be blocked by the
tax_uid
(for ad hoc taxes) or the tax_catalog_object_id
(for catalog taxes).
Trait Implementations§
source§impl Clone for OrderLineItemPricingBlocklists
impl Clone for OrderLineItemPricingBlocklists
source§fn clone(&self) -> OrderLineItemPricingBlocklists
fn clone(&self) -> OrderLineItemPricingBlocklists
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 OrderLineItemPricingBlocklists
impl Default for OrderLineItemPricingBlocklists
source§fn default() -> OrderLineItemPricingBlocklists
fn default() -> OrderLineItemPricingBlocklists
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OrderLineItemPricingBlocklists
impl<'de> Deserialize<'de> for OrderLineItemPricingBlocklists
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
source§impl PartialEq<OrderLineItemPricingBlocklists> for OrderLineItemPricingBlocklists
impl PartialEq<OrderLineItemPricingBlocklists> for OrderLineItemPricingBlocklists
source§fn eq(&self, other: &OrderLineItemPricingBlocklists) -> bool
fn eq(&self, other: &OrderLineItemPricingBlocklists) -> bool
impl Eq for OrderLineItemPricingBlocklists
impl StructuralEq for OrderLineItemPricingBlocklists
impl StructuralPartialEq for OrderLineItemPricingBlocklists
Auto Trait Implementations§
impl RefUnwindSafe for OrderLineItemPricingBlocklists
impl Send for OrderLineItemPricingBlocklists
impl Sync for OrderLineItemPricingBlocklists
impl Unpin for OrderLineItemPricingBlocklists
impl UnwindSafe for OrderLineItemPricingBlocklists
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.