dispute

package
v1.37.4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 5 Imported by: 0

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