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" )
Click to show internal directories.
Click to hide internal directories.