pub struct Dispute {Show 14 fields
pub id: DisputeId,
pub amount: i64,
pub balance_transactions: Vec<BalanceTransaction>,
pub charge: Expandable<Charge>,
pub created: Timestamp,
pub currency: Currency,
pub evidence: DisputeEvidence,
pub evidence_details: DisputeEvidenceDetails,
pub is_charge_refundable: bool,
pub livemode: bool,
pub metadata: Metadata,
pub payment_intent: Option<Expandable<PaymentIntent>>,
pub reason: String,
pub status: DisputeStatus,
}
Expand description
The resource representing a Stripe “Dispute”.
For more details see https://stripe.com/docs/api/disputes/object
Fields
id: DisputeId
Unique identifier for the object.
amount: i64
Disputed amount.
Usually the amount of the charge, but can differ (usually because of currency fluctuation or because only part of the order is disputed).
balance_transactions: Vec<BalanceTransaction>
List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
charge: Expandable<Charge>
ID of the charge that was disputed.
created: Timestamp
Time at which the object was created.
Measured in seconds since the Unix epoch.
currency: Currency
Three-letter ISO currency code, in lowercase.
Must be a supported currency.
evidence: DisputeEvidence
evidence_details: DisputeEvidenceDetails
is_charge_refundable: bool
If true, it is still possible to refund the disputed payment.
Once the payment has been fully refunded, no further funds will be withdrawn from your Stripe account as a result of this dispute.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
metadata: Metadata
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
payment_intent: Option<Expandable<PaymentIntent>>
ID of the PaymentIntent that was disputed.
reason: String
Reason given by cardholder for dispute.
Possible values are bank_cannot_process
, check_returned
, credit_not_processed
, customer_initiated
, debit_not_authorized
, duplicate
, fraudulent
, general
, incorrect_account_details
, insufficient_funds
, product_not_received
, product_unacceptable
, subscription_canceled
, or unrecognized
.
Read more about dispute reasons.
status: DisputeStatus
Current status of dispute.
Possible values are warning_needs_response
, warning_under_review
, warning_closed
, needs_response
, under_review
, charge_refunded
, won
, or lost
.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Dispute
impl<'de> Deserialize<'de> for Dispute
sourcefn 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 RefUnwindSafe for Dispute
impl Send for Dispute
impl Sync for Dispute
impl Unpin for Dispute
impl UnwindSafe for Dispute
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more