refund

package
v0.0.0-...-8b0bed9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Refund

type Refund struct {
	Expiration        time.Time       `json:"expiration" firestore:"expiration"`
	FeeAmount         float64         `json:"feeAmount" firestore:"feeAmount"`
	ID                string          `json:"id" firestore:"id"`
	IdempotencyKeys   map[string]bool `json:"idempotencyKeys" firestore:"idempotencyKeys"`
	Reason            string          `json:"reason" firestore:"reason"`
	RefundAmount      float64         `json:"refundAmount" firestore:"refundAmount"`
	SquarePaymentID   string          `json:"squarePaymentID" firestore:"squarePaymentID"`
	SquareOrderID     string          `json:"squareOrderID" firestore:"squareOrderID"`
	SquareUpdatedTime time.Time       `json:"squareUpdatedTime" firestore:"squareUpdatedTime"`
	Status            RefundStatus    `json:"status" firestore:"status"`
	Unlinked          bool            `json:"unlinked" firestore:"unlinked"`
}

func CreateInternalRefundFromSquareRefund

func CreateInternalRefundFromSquareRefund(squareRefund models.PaymentRefund) (*Refund, error)

type RefundStatus

type RefundStatus string
const (
	REFUND_STATUS_UNKNOWN   RefundStatus = ""
	REFUND_STATUS_PENDING   RefundStatus = "PENDING"
	REFUND_STATUS_REJECTED  RefundStatus = "REJECTED"
	REFUND_STATUS_COMPLETED RefundStatus = "COMPLETED"
	REFUND_STATUS_FAILED    RefundStatus = "FAILED"
)

Jump to

Keyboard shortcuts

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