pub struct CreditActivity {
pub amount_cents: i64,
pub balance_after_cents: i64,
pub credit_note: Option<CreditDocument>,
pub currency: String,
pub invoice: Option<CreditDocument>,
pub kind: CreditActivityKind,
pub occurred_at: String,
pub source: Option<CreditSource>,
pub wallet_transaction: Option<CreditActivityWalletTransaction>,
}Expand description
One change to the organization’s credit balance, on a credit note or granted.
Fields§
§amount_cents: i64How much the balance moved, in cents; kind says which way.
balance_after_cents: i64The organization’s credit balance once this entry applied, in cents.
credit_note: Option<CreditDocument>The credit note whose credit moved. Null for granted credit.
currency: StringISO currency code.
invoice: Option<CreditDocument>The invoice credit was applied to or restored from. Null otherwise.
kind: CreditActivityKind§occurred_at: StringISO 8601.
source: Option<CreditSource>Why the credit was issued: from the charge a credit note credits, or a grant. Null when it is neither: a credit note that credits no charge, or wallet credit an invoice used or that was voided.
wallet_transaction: Option<CreditActivityWalletTransaction>The wallet transaction that moved granted credit. Null for a credit note, and when ending the wallet voided what it had left.
Implementations§
Source§impl CreditActivity
impl CreditActivity
pub fn serialize<__S>(
__self: &CreditActivity,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> CreditActivity
impl<'de> CreditActivity
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreditActivity, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for CreditActivity
impl Clone for CreditActivity
Source§impl Debug for CreditActivity
impl Debug for CreditActivity
Source§impl<'de> Deserialize<'de> for CreditActivity
impl<'de> Deserialize<'de> for CreditActivity
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 CreditActivity
impl RefUnwindSafe for CreditActivity
impl Send for CreditActivity
impl Sync for CreditActivity
impl Unpin for CreditActivity
impl UnsafeUnpin for CreditActivity
impl UnwindSafe for CreditActivity
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