Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeAsset = "Asset" TypeDigital = "Digital" TypeService = "Service" TypePayment = "Payment" TypeRecurrent = "Recurrent" )
View Source
const ( ShippingTypeCorreios = "Correios" ShippingFixedPrice = "FixedAmount" ShippingFree = "Free" ShippingTypeWithoutShippingPickUp = "WithoutShippingPickUp" ShippingTypeWithoutShipping = "WithoutShipping" )
View Source
const ( IntervalMonthly = "Monthly" IntervalBimonthly = "Bimonthly" IntervalQuarterly = "Quarterly" IntervalSemiAnnual = "SemiAnnual" IntervalAnnual = "Annual" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { AccessToken string // contains filtered or unexported fields }
func (*Client) CreateLink ¶
func (c *Client) CreateLink(link Link) (result LinkCreated, err error)
func (*Client) DeleteLink ¶
type Link ¶
type Link struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` ShowDescription bool `json:"showDescription,omitempty"` Price int `json:"price,omitempty"` ExpirationDate string `json:"expirationDate,omitempty"` Weight int `json:"weight,omitempty"` SoftDescriptor string `json:"softDescriptor,omitempty"` MaxNumberOfInstallments string `json:"maxNumberOfInstallments,omitempty"` Type string `json:"type,omitempty"` Shipping Shipping `json:"shipping,omitempty"` Recurrency Recurrency `json:"recurrent,omitempty"` // Non documented fields Quantity int `json:"quantity,omitempty"` Sku string `json:"sku,omitempty"` }
type LinkCreated ¶
type Recurrency ¶
Click to show internal directories.
Click to hide internal directories.