DVDisputes class

Disputes, their consequences, and their deadlines.

Constructors

DVDisputes({required DVDisputeStore store, required DVCommerce commerce, DVPayouts? payouts, DVDisputeRevocation revokeEntitlements = DVDisputeRevocation.onLoss, List<Duration> warnBefore = const <Duration>[Duration(days: 3), Duration(days: 1)], List<DVEvidenceItem> evidence(String reason)?, DateTime clock()?, DVLogger? logger})

Properties

commerce → DVCommerce
final
hashCode → int
The hash code for this object.
no setterinherited
payouts → DVPayouts?
final
revokeEntitlements → DVDisputeRevocation
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
store → DVDisputeStore
final
warnBefore → List<Duration>
How long before a deadline DV-COMMERCE-005 fires, once each.
final

Methods

accept(DVDisputeEvent event) → Future<DVDisputeResult>
Applies a verified dispute event.
acceptStripeWebhook(DVStripeBillingProvider stripe, {required String payload, required String signatureHeader}) → Future<DVDisputeResult>
Verifies a Stripe webhook and applies it when it is a dispute event.
checkDeadlines() → Future<List<DVDispute>>
Announces every open dispute whose evidence deadline has come within a warnBefore threshold not yet announced, as DV-COMMERCE-005, and returns those disputes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordEvidence(String disputeId, String key) → Future<DVDispute>
Marks the evidence item key of dispute disputeId as provided.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

defaultEvidence(String reason) → List<DVEvidenceItem>
The evidence a response to a dispute for reason needs, by Stripe's evidence field names.