Documentation
¶
Index ¶
- Constants
- Variables
- func DisplayPrice(t currency.Type, price currency.Cents) string
- func DisplayTitle(title string) string
- func FloatPrice(price currency.Cents) float64
- func SplitParagraph(text string) []string
- type Address
- type Adjustment
- type Availability
- type Buyer
- type Event
- type Interval
- type KYCStatus
- type Map
- type MassUnit
- type Media
- type MediaType
Constants ¶
View Source
const ( MediaVideo MediaType = "video" MediaImage = "image" MediaLiveStream = "livestream" MediaWebGL = "webgl" MediaAudio = "audio" MediaEmbed = "embed" )
View Source
const ( MassLbs MassUnit = "lb" MassKilo = "kg" MassGrams = "g" )
Variables ¶
View Source
var BuyerEmailOrPhoneRequired = errors.New("Buyer's Email or Phone is required.")
Functions ¶
func FloatPrice ¶
func SplitParagraph ¶
Types ¶
type Address ¶
type Adjustment ¶
type Availability ¶
type Buyer ¶
type Buyer struct {
Email string `json:"email,omitempty"`
UserId string `json:"userId,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
Company string `json:"company,omitempty"`
Phone string `json:"phone,omitempty"`
// Address Address `json:"address,omitempty"`
ShippingAddress Address `json:"shippingAddress,omitempty"`
BillingAddress Address `json:"billingAddress,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.