Documentation ¶
Index ¶
- Constants
- type Bitcou
- func (b *Bitcou) AccountInfo(info string) (interface{}, error)
- func (b *Bitcou) Catalog(variantProductID string, country string, category int) (interface{}, error)
- func (b *Bitcou) Categories(id string) (interface{}, error)
- func (b *Bitcou) Countries(id string) (interface{}, error)
- func (b *Bitcou) Products(prodInfo ...string) (interface{}, error)
- func (b *Bitcou) Purchases(option OrderOperations, purchaseInfo []byte, id string) (interface{}, error)
- type CatalogFilter
- type MessageVerification
- type MyRoundTripper
- type OrderOperations
- type ProductFilter
- type PurchaseInput
Constants ¶
View Source
const ( FULL_PRODUCTS string = "FULL" COMPACT_PRODUCTS = "COMPACT" SINGLE_PRODUCT = "SINGLE_PRODUCT" )
Queries for products
View Source
const ( ACCOUNT_BALANCE string = "ACCOUNT_BALANCE" ACCOUNT_INFO = "ACCOUNT_INFO" )
Queries for account info
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitcou ¶
type Bitcou struct { URL string // contains filtered or unexported fields }
func (*Bitcou) AccountInfo ¶
func (*Bitcou) Categories ¶
type CatalogFilter ¶
type CatalogFilter struct { VariantProductID graphql.String `json:"variantProductID"` Country graphql.String `json:"country"` Category graphql.ID `json:"category"` }
type MessageVerification ¶
type MyRoundTripper ¶
type MyRoundTripper struct {
// contains filtered or unexported fields
}
type OrderOperations ¶
type OrderOperations string
Queries for purchases
const ( CREATE_ORDER OrderOperations = "CREATE_ORDER" GET_ORDER = "GET_ORDER" )
type ProductFilter ¶
type ProductFilter struct { Id graphql.ID `json:"id"` Country graphql.String `json:"country"` Category graphql.ID `json:"category"` }
type PurchaseInput ¶
type PurchaseInput struct { TransactionID string `json:"transactionID"` ProductID int `json:"productID"` TotalValue string `json:"totalValue"` UserInfo struct { Email string `json:"email"` Name string `json:"name"` Country string `json:"country"` PhoneCountryCode string `json:"phoneCountryCode"` PhoneNumber string `json:"phoneNumber"` ServiceNumber string `json:"serviceNumber"` } `json:"userInfo"` }
Click to show internal directories.
Click to hide internal directories.