dispute

package
v1.49.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type Dispute

type Dispute struct {
	mixin.Model[Dispute]

	Amount          int64                  `json:"amount"`
	Currency        currency.Type          `json:"currency"`
	Status          Status                 `json:"status"`
	ProviderRef     string                 `json:"providerRef"`
	Reason          string                 `json:"reason,omitempty"`
	EvidenceDueBy   time.Time              `json:"evidenceDueBy,omitempty"`
	PaymentIntentId string                 `json:"paymentIntentId,omitempty"`
	Evidence        *DisputeEvidence       `json:"evidence,omitempty"`
	Metadata        map[string]interface{} `json:"metadata,omitempty"`
	Created         time.Time              `json:"created,omitempty"`
}

Dispute represents a customer challenge to a charge.

func New

func New(db *datastore.Datastore) *Dispute

func (*Dispute) Defaults

func (d *Dispute) Defaults()

type DisputeEvidence

type DisputeEvidence struct {
	CustomerName         string `json:"customerName,omitempty"`
	CustomerEmailAddress string `json:"customerEmailAddress,omitempty"`
	ProductDescription   string `json:"productDescription,omitempty"`
	ServiceDate          string `json:"serviceDate,omitempty"`
	UncategorizedText    string `json:"uncategorizedText,omitempty"`
}

DisputeEvidence holds the evidence submitted for a dispute.

type Status

type Status string

Status represents the state of a dispute.

const (
	WarningNeedsResponse Status = "warning_needs_response"
	NeedsResponse        Status = "needs_response"
	UnderReview          Status = "under_review"
	Won                  Status = "won"
	Lost                 Status = "lost"
	WarningUnderReview   Status = "warning_under_review"
	WarningClosed        Status = "warning_closed"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL