pub struct AdjustmentItem {
pub item_id: TransactionItemID,
pub type: AdjustmentItemType,
pub amount: Option<String>,
pub proration: Option<Proration>,
pub totals: AdjustmentItemTotals,
}
Fields§
§item_id: TransactionItemID
Unique Paddle ID for this transaction item, prefixed with txnitm_
. Used when working with adjustments.
type: AdjustmentItemType
Type of adjustment for this transaction item. tax
adjustments are automatically created by Paddle.
Include amount
when creating a partial
adjustment.
amount: Option<String>
Amount adjusted for this transaction item. Required when item type is partial
.
proration: Option<Proration>
How proration was calculated for this adjustment item.
totals: AdjustmentItemTotals
Breakdown of the total for an adjustment item.
Trait Implementations§
Source§impl Clone for AdjustmentItem
impl Clone for AdjustmentItem
Source§fn clone(&self) -> AdjustmentItem
fn clone(&self) -> AdjustmentItem
Returns a duplicate 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 Debug for AdjustmentItem
impl Debug for AdjustmentItem
Source§impl<'de> Deserialize<'de> for AdjustmentItem
impl<'de> Deserialize<'de> for AdjustmentItem
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
Auto Trait Implementations§
impl Freeze for AdjustmentItem
impl RefUnwindSafe for AdjustmentItem
impl Send for AdjustmentItem
impl Sync for AdjustmentItem
impl Unpin for AdjustmentItem
impl UnwindSafe for AdjustmentItem
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