pub struct Dispute {
pub id: String,
pub charge_ref: Option<String>,
pub payment_ref: String,
pub customer_ref: Option<String>,
pub amount: Money,
pub reason: Option<String>,
pub status: DisputeStatus,
pub provider_status: String,
pub evidence_due_by: Option<OffsetDateTime>,
pub is_charge_refundable: Option<bool>,
pub balance_transactions: Vec<String>,
}Expand description
A dispute against one payment (issue #602’s shape). payment_ref is the
id RefundRequest::payment_ref takes for the same provider (a Stripe
payment-intent, a Polar order), so a venture can tie the dispute to what
it sold; charge_ref is the provider’s underlying charge or payment id.
Fields§
§id: String§charge_ref: Option<String>§payment_ref: String§customer_ref: Option<String>The customer charged, named the way the adapter is configured to name customers (a provider id, or the venture’s own id where the adapter maps it), when the provider reports one.
amount: MoneyThe disputed amount.
reason: Option<String>The card network’s reason (fraudulent, product_not_received, …),
once the provider reports it.
status: DisputeStatus§provider_status: StringThe provider’s status string, verbatim.
evidence_due_by: Option<OffsetDateTime>The evidence deadline, when a response is wanted.
is_charge_refundable: Option<bool>Whether the disputed charge can still be refunded, when the provider says (Stripe does; Polar does not).
balance_transactions: Vec<String>The provider’s balance-transaction ids for the dispute, where it exposes them (Stripe); empty otherwise.
Implementations§
Trait Implementations§
impl Eq for Dispute
impl StructuralPartialEq for Dispute
Auto Trait Implementations§
impl Freeze for Dispute
impl RefUnwindSafe for Dispute
impl Send for Dispute
impl Sync for Dispute
impl Unpin for Dispute
impl UnsafeUnpin for Dispute
impl UnwindSafe for Dispute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.