Documentation
¶
Index ¶
Constants ¶
View Source
const ( Cancelled Status = "cancelled" Credit = "credit" Disputed = "disputed" Failed = "failed" Fraudulent = "fraudulent" Paid = "paid" Refunded = "refunded" Unpaid = "unpaid" )
View Source
const ( Stripe Type = "stripe" Affirm = "affirm" PayPal = "paypal" )
Variables ¶
View Source
var IgnoreFieldMismatch = datastore.IgnoreFieldMismatch
Functions ¶
This section is empty.
Types ¶
type Invoice ¶
type Invoice struct {
mixin.Model[Invoice]
// Immutable buyer data from time of payment, may or may not be associated
// with a user.
Buyer Buyer `json:"buyer"`
Type Type `json:"type"`
// Order this is associated with
OrderId string `json:"orderId,omitempty"`
Currency currency.Type `json:"currency"`
CampaignId string `json:"campaignId"`
Amount currency.Cents `json:"amount"`
AmountRefunded currency.Cents `json:"amountRefunded"`
Fee currency.Cents `json:"fee"`
AmountTransferred currency.Cents `json:"-"`
CurrencyTransferred currency.Type `json:"-"`
Description string `json:"description"`
Status Status `json:"status"`
// Client's browser, associated info
Client client.Client `json:"client"`
// Whether this payment has been captured or not
Captured bool `json:"captured"`
// Stripe livemode
Live bool `json:"live"`
// Internal testing flag
Test bool `json:"-"`
Metadata Map `json:"metadata" datastore:"-"`
Metadata_ string `json:"-" datastore:"-"`
}
Click to show internal directories.
Click to hide internal directories.