Documentation
¶
Index ¶
Constants ¶
View Source
const ( MERCHANT_ORDER = "merchant_order" PAYMENT = "payment" )
Variables ¶
View Source
var OrderStatus = struct { CLOSED string OPENED string EXPIRED string }{ CLOSED: "closed", OPENED: "opened", EXPIRED: "expired", }
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Order ¶
type Order struct { Id int64 `json:"id"` ExternalReference string `json:"external_reference"` PreferenceId string `json:"preference_id"` OrderStatus string `json:"order_status"` Status string `json:"status"` }
func GetMerchantOrder ¶
func (*Order) IsTotallyPaid ¶
type Preference ¶
type Preference struct { ID string `json:"id,omitempty"` InitPoint string `json:"init_point,omitempty"` ExternalReference string `json:"external_reference"` Items []Item `json:"items"` }
func CreatePreference ¶
func CreatePreference(preference Preference) (Preference, error)
Click to show internal directories.
Click to hide internal directories.