Documentation
¶
Index ¶
- type MockAPI
- func (a *MockAPI) AddAddress(ad *sdbi.Address, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddAdminUser(u *api.User, headers *api.Headers) *api.Response
- func (a *MockAPI) AddCart(c *sdbi.Cart, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddCartItem(ci *sdbi.CartItem, cid int64, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddCategory(c *sdbi.Category, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddCustomer(c *sdbi.Customer, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddCustomerUser(u *api.User, headers *api.Headers) *api.Response
- func (a *MockAPI) AddDataStoreWriteLock(w *sdbi.DataStoreWriteLock, headers *api.Headers) *api.Response
- func (a *MockAPI) AddDistributor(d *sdbi.Distributor, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddExcludedSubRegion(e *sdbi.ExcludedSubRegion, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddIncludedSubRegion(e *sdbi.IncludedSubRegion, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddInstance(i *sdbi.Instances, headers *api.Headers) *api.Response
- func (a *MockAPI) AddInsurance(i *sdbi.Insurance, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddLocalDatastore(d *sdbi.LocalDataStore, headers *api.Headers) *api.Response
- func (a *MockAPI) AddOrder(o *sdbi.Order, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddOrderComments(c *sdbi.OrderComment, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddOrderItem(i *sdbi.OrderItem, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddOrderTransaction(t *sdbi.OrderTransaction, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddPaymentGateway(pgw *sdbi.PaymentGateway, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddPlugin(p *sdbi.Plugins, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddProduct(p *sdbi.Product, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddProductCategory(pc *sdbi.ProductCategory, headers *api.Headers) *api.Response
- func (a *MockAPI) AddRegion(r *sdbi.Region, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddShipment(s *sdbi.Shipment, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddShipmentBox(sb *sdbi.ShipmentBox, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddShipmentItem(si *sdbi.ShipmentItem, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddShippingCarrier(c *sdbi.ShippingCarrier, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddShippingMethod(s *sdbi.ShippingMethod, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddStore(s *sdbi.Store, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddStorePlugin(sp *sdbi.StorePlugins, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddSubRegion(s *sdbi.SubRegion, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddTaxRate(t *sdbi.TaxRate, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AddVisit(v *sdbi.Visitor, headers *api.Headers) *api.Response
- func (a *MockAPI) AddZoneZip(z *sdbi.ZoneZip, headers *api.Headers) *api.ResponseID
- func (a *MockAPI) AdminUpdateUser(u *api.User, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteAddress(id int64, cid int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteCart(id int64, cid int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteCartItem(id int64, prodID int64, cartID int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteCategory(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteCustomer(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteDistributor(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteExcludedSubRegion(id int64, regionID int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteIncludedSubRegion(id int64, regionID int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteInsurance(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteOrder(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteOrderItem(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeletePaymentGateway(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeletePlugin(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteProduct(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteProductCategory(pc *sdbi.ProductCategory, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteRegion(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteShipment(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteShipmentBox(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteShipmentItem(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteShippingCarrier(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteShippingMethod(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteStore(sname string, localDomain string, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteStorePlugin(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteSubRegion(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteTaxRate(id int64, headers *api.Headers) *api.Response
- func (a *MockAPI) DeleteZoneZip(id int64, incID int64, exID int64, headers *api.Headers) *api.Response
- func (a *MockAPI) GetAddress(id int64, cid int64, headers *api.Headers) *sdbi.Address
- func (a *MockAPI) GetAddressList(cid int64, headers *api.Headers) *[]sdbi.Address
- func (a *MockAPI) GetAdminUsers(headers *api.Headers) *[]api.UserResponse
- func (a *MockAPI) GetCart(cid int64, headers *api.Headers) *sdbi.Cart
- func (a *MockAPI) GetCartItem(cid int64, prodID int64, headers *api.Headers) *sdbi.CartItem
- func (a *MockAPI) GetCartItemList(cartID int64, cid int64, headers *api.Headers) *[]sdbi.CartItem
- func (a *MockAPI) GetCategory(id int64, headers *api.Headers) *sdbi.Category
- func (a *MockAPI) GetCategoryList(headers *api.Headers) *[]sdbi.Category
- func (a *MockAPI) GetCustomer(email string, headers *api.Headers) *sdbi.Customer
- func (a *MockAPI) GetCustomerID(id int64, headers *api.Headers) *sdbi.Customer
- func (a *MockAPI) GetCustomerList(start int64, end int64, headers *api.Headers) *[]sdbi.Customer
- func (a *MockAPI) GetCustomerUsers(headers *api.Headers) *[]api.UserResponse
- func (a *MockAPI) GetDataStoreWriteLock(dataStore string, headers *api.Headers) *sdbi.DataStoreWriteLock
- func (a *MockAPI) GetDistributor(id int64, headers *api.Headers) *sdbi.Distributor
- func (a *MockAPI) GetDistributorList(headers *api.Headers) *[]sdbi.Distributor
- func (a *MockAPI) GetExcludedSubRegionList(regionID int64, headers *api.Headers) *[]sdbi.ExcludedSubRegion
- func (a *MockAPI) GetHierarchicalCategoryList(headers *api.Headers) *[]sdbi.Category
- func (a *MockAPI) GetIncludedSubRegionList(regionID int64, headers *api.Headers) *[]sdbi.IncludedSubRegion
- func (a *MockAPI) GetInstance(name string, dataStoreName string, headers *api.Headers) *sdbi.Instances
- func (a *MockAPI) GetInstanceList(dataStoreName string, headers *api.Headers) *[]sdbi.Instances
- func (a *MockAPI) GetInsurance(id int64, headers *api.Headers) *sdbi.Insurance
- func (a *MockAPI) GetInsuranceList(headers *api.Headers) *[]sdbi.Insurance
- func (a *MockAPI) GetLocalDatastore(dataStoreName string, headers *api.Headers) *sdbi.LocalDataStore
- func (a *MockAPI) GetNew() api.API
- func (a *MockAPI) GetOrder(id int64, headers *api.Headers) *sdbi.Order
- func (a *MockAPI) GetOrderCommentList(orderID int64, headers *api.Headers) *[]sdbi.OrderComment
- func (a *MockAPI) GetOrderCountData(headers *api.Headers) *[]sdbi.OrderCountData
- func (a *MockAPI) GetOrderItem(id int64, headers *api.Headers) *sdbi.OrderItem
- func (a *MockAPI) GetOrderItemList(orderID int64, headers *api.Headers) *[]sdbi.OrderItem
- func (a *MockAPI) GetOrderList(cid int64, headers *api.Headers) *[]sdbi.Order
- func (a *MockAPI) GetOrderSalesData(headers *api.Headers) *[]sdbi.OrderSalesData
- func (a *MockAPI) GetOrderTransactionList(orderID int64, headers *api.Headers) *[]sdbi.OrderTransaction
- func (a *MockAPI) GetPaymentGateway(id int64, headers *api.Headers) *sdbi.PaymentGateway
- func (a *MockAPI) GetPaymentGatewayByName(name string, headers *api.Headers) *sdbi.PaymentGateway
- func (a *MockAPI) GetPaymentGateways(headers *api.Headers) *[]sdbi.PaymentGateway
- func (a *MockAPI) GetPlugin(id int64, headers *api.Headers) *sdbi.Plugins
- func (a *MockAPI) GetPluginList(start int64, end int64, headers *api.Headers) *[]sdbi.Plugins
- func (a *MockAPI) GetProductByCatAndManufacturer(catID int64, manf string, start int64, end int64, headers *api.Headers) *[]sdbi.Product
- func (a *MockAPI) GetProductByID(id int64, headers *api.Headers) *sdbi.Product
- func (a *MockAPI) GetProductByNameAndManufacturerName(manf string, name string, start int64, end int64, headers *api.Headers) *[]sdbi.Product
- func (a *MockAPI) GetProductBySku(sku string, did int64, headers *api.Headers) *sdbi.Product
- func (a *MockAPI) GetProductCategoryList(productID int64, headers *api.Headers) []int64
- func (a *MockAPI) GetProductIDList(headers *api.Headers) *[]int64
- func (a *MockAPI) GetProductIDListByCategories(idReq *api.ProdIDReq, headers *api.Headers) *[]int64
- func (a *MockAPI) GetProductList(start int64, end int64, headers *api.Headers) *[]sdbi.Product
- func (a *MockAPI) GetProductManufacturerListByCatID(catID int64, headers *api.Headers) *[]string
- func (a *MockAPI) GetProductManufacturerListByProductName(name string, headers *api.Headers) *[]string
- func (a *MockAPI) GetProductManufacturerListByProductSearch(attr string, headers *api.Headers) *[]string
- func (a *MockAPI) GetProductsByCaterory(catID int64, start int64, end int64, headers *api.Headers) *[]sdbi.Product
- func (a *MockAPI) GetProductsByName(name string, start int64, end int64, headers *api.Headers) *[]sdbi.Product
- func (a *MockAPI) GetProductsByPromoted(start int64, end int64, headers *api.Headers) *[]sdbi.Product
- func (a *MockAPI) GetRegion(id int64, headers *api.Headers) *sdbi.Region
- func (a *MockAPI) GetRegionList(headers *api.Headers) *[]sdbi.Region
- func (a *MockAPI) GetShipment(id int64, headers *api.Headers) *sdbi.Shipment
- func (a *MockAPI) GetShipmentBox(id int64, headers *api.Headers) *sdbi.ShipmentBox
- func (a *MockAPI) GetShipmentBoxList(shipmentID int64, headers *api.Headers) *[]sdbi.ShipmentBox
- func (a *MockAPI) GetShipmentItem(id int64, headers *api.Headers) *sdbi.ShipmentItem
- func (a *MockAPI) GetShipmentItemList(shipmentID int64, headers *api.Headers) *[]sdbi.ShipmentItem
- func (a *MockAPI) GetShipmentItemListByBox(boxNumber int64, shipmentID int64, headers *api.Headers) *[]sdbi.ShipmentItem
- func (a *MockAPI) GetShipmentList(orderID int64, headers *api.Headers) *[]sdbi.Shipment
- func (a *MockAPI) GetShippingCarrier(id int64, headers *api.Headers) *sdbi.ShippingCarrier
- func (a *MockAPI) GetShippingCarrierList(headers *api.Headers) *[]sdbi.ShippingCarrier
- func (a *MockAPI) GetShippingMethod(id int64, headers *api.Headers) *sdbi.ShippingMethod
- func (a *MockAPI) GetShippingMethodList(headers *api.Headers) *[]sdbi.ShippingMethod
- func (a *MockAPI) GetStore(sname string, localDomain string, headers *api.Headers) *sdbi.Store
- func (a *MockAPI) GetStoreOrderList(headers *api.Headers) *[]sdbi.Order
- func (a *MockAPI) GetStoreOrderListByStatus(status string, headers *api.Headers) *[]sdbi.Order
- func (a *MockAPI) GetStorePlugin(id int64, headers *api.Headers) *sdbi.StorePlugins
- func (a *MockAPI) GetStorePluginList(headers *api.Headers) *[]sdbi.StorePlugins
- func (a *MockAPI) GetSubCategoryList(catID int64, headers *api.Headers) *[]sdbi.Category
- func (a *MockAPI) GetSubRegion(id int64, headers *api.Headers) *sdbi.SubRegion
- func (a *MockAPI) GetSubRegionList(regionID int64, headers *api.Headers) *[]sdbi.SubRegion
- func (a *MockAPI) GetTaxRate(country string, state string, headers *api.Headers) *[]sdbi.TaxRate
- func (a *MockAPI) GetTaxRateList(headers *api.Headers) *[]sdbi.TaxRate
- func (a *MockAPI) GetUser(u *api.User, headers *api.Headers) *api.UserResponse
- func (a *MockAPI) GetUsersByCustomer(cid int64, headers *api.Headers) *[]api.UserResponse
- func (a *MockAPI) GetVisitorData(headers *api.Headers) *[]sdbi.VisitorData
- func (a *MockAPI) GetZoneZipListByExclusion(exID int64, headers *api.Headers) *[]sdbi.ZoneZip
- func (a *MockAPI) GetZoneZipListByInclusion(incID int64, headers *api.Headers) *[]sdbi.ZoneZip
- func (a *MockAPI) OverrideProxy(proxy px.Proxy)
- func (a *MockAPI) ProductSearch(p *sdbi.ProductSearch, headers *api.Headers) *[]sdbi.Product
- func (a *MockAPI) ResetCustomerUserPassword(u *api.User, headers *api.Headers) *api.CustomerPasswordResponse
- func (a *MockAPI) SetAPIKey(key string)
- func (a *MockAPI) SetLogLever(level int)
- func (a *MockAPI) SetLogger(l *lg.Logger)
- func (a *MockAPI) SetRestURL(url string)
- func (a *MockAPI) SetStore(storeName string, localDomain string)
- func (a *MockAPI) SetStoreID(sid int64)
- func (a *MockAPI) UpdateAddress(ad *sdbi.Address, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateCart(c *sdbi.Cart, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateCartItem(ci *sdbi.CartItem, cid int64, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateCategory(c *sdbi.Category, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateCustomer(c *sdbi.Customer, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateDataStoreWriteLock(w *sdbi.DataStoreWriteLock, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateDistributor(d *sdbi.Distributor, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateInstance(i *sdbi.Instances, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateInsurance(i *sdbi.Insurance, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateLocalDatastore(d *sdbi.LocalDataStore, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateOrder(o *sdbi.Order, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateOrderItem(i *sdbi.OrderItem, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdatePaymentGateway(pgw *sdbi.PaymentGateway, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdatePlugin(p *sdbi.Plugins, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateProduct(p *sdbi.Product, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateProductQuantity(p *sdbi.Product, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateRegion(r *sdbi.Region, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateShipment(s *sdbi.Shipment, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateShipmentBox(sb *sdbi.ShipmentBox, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateShipmentItem(si *sdbi.ShipmentItem, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateShippingCarrier(c *sdbi.ShippingCarrier, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateShippingMethod(s *sdbi.ShippingMethod, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateStore(s *sdbi.Store, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateStorePlugin(sp *sdbi.StorePlugins, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateSubRegion(s *sdbi.SubRegion, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateTaxRate(t *sdbi.TaxRate, headers *api.Headers) *api.Response
- func (a *MockAPI) UpdateUser(u *api.User, headers *api.Headers) *api.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPI ¶
type MockAPI struct {
MockUser *api.UserResponse
MockAddCustomerUserRes *api.Response
MockUpdateUserResp *api.Response
MockAdminUpdateUserResp *api.Response
MockUserList *[]api.UserResponse
MockAddAdminUserResp *api.Response
MockCustomerPasswordResp *api.CustomerPasswordResponse
MockCart *sdbi.Cart
MockAddCartResp *api.ResponseID
MockCartItemAddResp *api.ResponseID
MockCartItemUpdateResp *api.Response
MockCartItemList *[]sdbi.CartItem
MockCartItemDeleteResp *api.Response
MockCustomer *sdbi.Customer
MockAddCustomerResp *api.ResponseID
MockUpdateCustomerResp *api.Response
MockCustomerList *[]sdbi.Customer
MockAddAddressRes *api.ResponseID
MockUpdateAddressRes *api.Response
MockAddressList1 *[]sdbi.Address
MockAddressList2 *[]sdbi.Address
MockAddress *sdbi.Address
MockDeleteAddressRes *api.Response
MockProduct *sdbi.Product
MockAddProductResp *api.ResponseID
MockUpdateProductResp *api.Response
MockUpdateProductQuantityResp *api.Response
MockProductList *[]sdbi.Product
MockProductIDList *[]int64
MockDeleteProductResp *api.Response
MockAddOrderResp *api.ResponseID
MockUpdateOrderResp *api.Response
MockOrder *sdbi.Order
MockOrderList *[]sdbi.Order
MockOrderCountData *[]sdbi.OrderCountData
MockOrderSalesData *[]sdbi.OrderSalesData
MockAddOrderItemResp *api.ResponseID
MockOrderItemList *[]sdbi.OrderItem
MockOrderItem *sdbi.OrderItem
MockAddCommentResp *api.ResponseID
MockCommentList *[]sdbi.OrderComment
MockAddCategoryResp1 *api.ResponseID
MockAddCategoryResp2 *api.ResponseID
MockAddCategoryResp3 *api.ResponseID
MockAddCategoryResp4 *api.ResponseID
MockUpdateCategoryResp *api.Response
MockCategory *sdbi.Category
MockDeleteCategoryResp *api.Response
MockCategoryList *[]sdbi.Category
MockAddDistributorResp *api.ResponseID
MockUpdateDistributorResp *api.Response
MockDistributor *sdbi.Distributor
MockDistributorList *[]sdbi.Distributor
MockDeleteDistributorResp *api.Response
MockAddProductCategoryResp *api.Response
MockProductCategoryIDList []int64
MockAddShipmentResp *api.ResponseID
MockUpdateShipmentResp *api.Response
MockShipment *sdbi.Shipment
MockShipmentList *[]sdbi.Shipment
MockDeleteShipmentResp *api.Response
MockAddShipmentItemResp *api.ResponseID
MockShippingItemList *[]sdbi.ShipmentItem
MockShipmentBoxList *[]sdbi.ShipmentBox
MockAddInsuranceResp *api.ResponseID
MockUpdateInsuranceResp *api.Response
MockInsurance *sdbi.Insurance
MockInsuranceList *[]sdbi.Insurance
MockDeleteInsuranceResp *api.Response
MockAddPaymentGatewayResp *api.ResponseID
MockUpdatePaymentGatewayResp *api.Response
MockPaymentGateway *sdbi.PaymentGateway
MockPaymentGatewayList *[]sdbi.PaymentGateway
MockDeletePaymentGatewayResp *api.Response
MockAddPluginResp *api.ResponseID
MockUpdatePluginResp *api.Response
MockPlugin *sdbi.Plugins
MockPluginList *[]sdbi.Plugins
MockDeletePluginResp *api.Response
MockAddStorePluginResp *api.ResponseID
MockUpdateStorePluginResp *api.Response
MockStorePlugin *sdbi.StorePlugins
MockStorePluginList *[]sdbi.StorePlugins
MockDeleteStorePluginResp *api.Response
MockAddShippingCarrierResp *api.ResponseID
MockUpdateShippingCarrierResp *api.Response
MockShippingCarrier *sdbi.ShippingCarrier
MockShippingCarrierList *[]sdbi.ShippingCarrier
MockDeleteShippingCarrierResp *api.Response
MockAddShippingMethodResp *api.ResponseID
MockUpdateShippingMethodResp *api.Response
MockShippingMethod *sdbi.ShippingMethod
MockShippingMethodList *[]sdbi.ShippingMethod
MockDeleteShippingMethodResp *api.Response
MockAddRegionResp *api.ResponseID
MockUpdateRegionResp *api.Response
MockRegion *sdbi.Region
MockRegionList *[]sdbi.Region
MockDeleteRegionResp *api.Response
MockAddSubRegionResp *api.ResponseID
MockUpdateSubRegionResp *api.Response
MockSubRegion *sdbi.SubRegion
MockSubRegionList *[]sdbi.SubRegion
MockDeleteSubRegionResp *api.Response
MockAddExcludedSubRegionResp *api.ResponseID
MockUpdateExcludedSubRegionResp *api.Response
MockExcludedSubRegion *sdbi.ExcludedSubRegion
MockExcludedSubRegionList *[]sdbi.ExcludedSubRegion
MockDeleteExcludedSubRegionResp *api.Response
MockAddIncludedSubRegionResp *api.ResponseID
MockUpdateIncludedSubRegionResp *api.Response
MockIncludedSubRegion *sdbi.IncludedSubRegion
MockIncludedSubRegionList *[]sdbi.IncludedSubRegion
MockDeleteIncludedSubRegionResp *api.Response
MockAddZoneZipResp *api.ResponseID
MockUpdateZoneZipResp *api.Response
MockZoneZip *sdbi.ZoneZip
MockZoneZipList *[]sdbi.ZoneZip
MockDeleteZoneZipResp *api.Response
MockAddTaxRateResp *api.ResponseID
MockUpdateTaxRateResp *api.Response
MockTaxRate *sdbi.TaxRate
MockTaxRateList *[]sdbi.TaxRate
MockDeleteTaxRateResp *api.Response
MockStore *sdbi.Store
MockStoreUpdateResp *api.Response
MockManufactureList *[]string
MockOrderTransactionRes *api.ResponseID
MockOrderTransactionList *[]sdbi.OrderTransaction
MockAddVisitResp *api.Response
MockVisitorData *[]sdbi.VisitorData
// contains filtered or unexported fields
}
MockAPI MockAPI
func (*MockAPI) AddAddress ¶
AddAddress AddAddress
func (*MockAPI) AddAdminUser ¶
AddAdminUser AddAdminUser
func (*MockAPI) AddCartItem ¶
AddCartItem AddCartItem
func (*MockAPI) AddCategory ¶
AddCategory AddCategory
func (*MockAPI) AddCustomer ¶
AddCustomer AddCustomer
func (*MockAPI) AddCustomerUser ¶
AddCustomerUser AddCustomerUser
func (*MockAPI) AddDataStoreWriteLock ¶
func (a *MockAPI) AddDataStoreWriteLock(w *sdbi.DataStoreWriteLock, headers *api.Headers) *api.Response
AddDataStoreWriteLock AddDataStoreWriteLock
func (*MockAPI) AddDistributor ¶
func (a *MockAPI) AddDistributor(d *sdbi.Distributor, headers *api.Headers) *api.ResponseID
AddDistributor AddDistributor
func (*MockAPI) AddExcludedSubRegion ¶
func (a *MockAPI) AddExcludedSubRegion(e *sdbi.ExcludedSubRegion, headers *api.Headers) *api.ResponseID
AddExcludedSubRegion AddExcludedSubRegion
func (*MockAPI) AddIncludedSubRegion ¶
func (a *MockAPI) AddIncludedSubRegion(e *sdbi.IncludedSubRegion, headers *api.Headers) *api.ResponseID
AddIncludedSubRegion AddIncludedSubRegion
func (*MockAPI) AddInstance ¶
AddInstance AddInstance
func (*MockAPI) AddInsurance ¶
AddInsurance AddInsurance
func (*MockAPI) AddLocalDatastore ¶
AddLocalDatastore AddLocalDatastore
func (*MockAPI) AddOrderComments ¶
func (a *MockAPI) AddOrderComments(c *sdbi.OrderComment, headers *api.Headers) *api.ResponseID
AddOrderComments AddOrderComments
func (*MockAPI) AddOrderItem ¶
AddOrderItem AddOrderItem
func (*MockAPI) AddOrderTransaction ¶
func (a *MockAPI) AddOrderTransaction(t *sdbi.OrderTransaction, headers *api.Headers) *api.ResponseID
AddOrderTransaction AddOrderTransaction
func (*MockAPI) AddPaymentGateway ¶
func (a *MockAPI) AddPaymentGateway(pgw *sdbi.PaymentGateway, headers *api.Headers) *api.ResponseID
AddPaymentGateway AddPaymentGateway
func (*MockAPI) AddProduct ¶
AddProduct AddProduct
func (*MockAPI) AddProductCategory ¶
AddProductCategory AddProductCategory
func (*MockAPI) AddShipment ¶
AddShipment AddShipment
func (*MockAPI) AddShipmentBox ¶
func (a *MockAPI) AddShipmentBox(sb *sdbi.ShipmentBox, headers *api.Headers) *api.ResponseID
AddShipmentBox AddShipmentBox
func (*MockAPI) AddShipmentItem ¶
func (a *MockAPI) AddShipmentItem(si *sdbi.ShipmentItem, headers *api.Headers) *api.ResponseID
AddShipmentItem AddShipmentItem
func (*MockAPI) AddShippingCarrier ¶
func (a *MockAPI) AddShippingCarrier(c *sdbi.ShippingCarrier, headers *api.Headers) *api.ResponseID
AddShippingCarrier AddShippingCarrier
func (*MockAPI) AddShippingMethod ¶
func (a *MockAPI) AddShippingMethod(s *sdbi.ShippingMethod, headers *api.Headers) *api.ResponseID
AddShippingMethod AddShippingMethod
func (*MockAPI) AddStorePlugin ¶
func (a *MockAPI) AddStorePlugin(sp *sdbi.StorePlugins, headers *api.Headers) *api.ResponseID
AddStorePlugin AddStorePlugin
func (*MockAPI) AddSubRegion ¶
AddSubRegion AddSubRegion
func (*MockAPI) AddTaxRate ¶
AddTaxRate AddTaxRate
func (*MockAPI) AddZoneZip ¶
AddZoneZip AddZoneZip
func (*MockAPI) AdminUpdateUser ¶
AdminUpdateUser AdminUpdateUser
func (*MockAPI) DeleteAddress ¶
DeleteAddress DeleteAddress
func (*MockAPI) DeleteCart ¶
DeleteCart DeleteCart
func (*MockAPI) DeleteCartItem ¶
func (a *MockAPI) DeleteCartItem(id int64, prodID int64, cartID int64, headers *api.Headers) *api.Response
DeleteCartItem DeleteCartItem
func (*MockAPI) DeleteCategory ¶
DeleteCategory DeleteCategory
func (*MockAPI) DeleteCustomer ¶
DeleteCustomer DeleteCustomer
func (*MockAPI) DeleteDistributor ¶
DeleteDistributor DeleteDistributor
func (*MockAPI) DeleteExcludedSubRegion ¶
func (a *MockAPI) DeleteExcludedSubRegion(id int64, regionID int64, headers *api.Headers) *api.Response
DeleteExcludedSubRegion DeleteExcludedSubRegion
func (*MockAPI) DeleteIncludedSubRegion ¶
func (a *MockAPI) DeleteIncludedSubRegion(id int64, regionID int64, headers *api.Headers) *api.Response
DeleteIncludedSubRegion DeleteIncludedSubRegion
func (*MockAPI) DeleteInsurance ¶
DeleteInsurance DeleteInsurance
func (*MockAPI) DeleteOrder ¶
DeleteOrder DeleteOrder
func (*MockAPI) DeleteOrderItem ¶
DeleteOrderItem DeleteOrderItem
func (*MockAPI) DeletePaymentGateway ¶
DeletePaymentGateway DeletePaymentGateway
func (*MockAPI) DeletePlugin ¶
DeletePlugin DeletePlugin
func (*MockAPI) DeleteProduct ¶
DeleteProduct DeleteProduct
func (*MockAPI) DeleteProductCategory ¶
func (a *MockAPI) DeleteProductCategory(pc *sdbi.ProductCategory, headers *api.Headers) *api.Response
DeleteProductCategory DeleteProductCategory
func (*MockAPI) DeleteRegion ¶
DeleteRegion DeleteRegion
func (*MockAPI) DeleteShipment ¶
DeleteShipment DeleteShipment
func (*MockAPI) DeleteShipmentBox ¶
DeleteShipmentBox DeleteShipmentBox
func (*MockAPI) DeleteShipmentItem ¶
DeleteShipmentItem DeleteShipmentItem
func (*MockAPI) DeleteShippingCarrier ¶
DeleteShippingCarrier DeleteShippingCarrier
func (*MockAPI) DeleteShippingMethod ¶
DeleteShippingMethod DeleteShippingMethod
func (*MockAPI) DeleteStore ¶
DeleteStore DeleteStore
func (*MockAPI) DeleteStorePlugin ¶
DeleteStorePlugin DeleteStorePlugin
func (*MockAPI) DeleteSubRegion ¶
DeleteSubRegion DeleteSubRegion
func (*MockAPI) DeleteTaxRate ¶
DeleteTaxRate DeleteTaxRate
func (*MockAPI) DeleteZoneZip ¶
func (a *MockAPI) DeleteZoneZip(id int64, incID int64, exID int64, headers *api.Headers) *api.Response
DeleteZoneZip DeleteZoneZip
func (*MockAPI) GetAddress ¶
GetAddress GetAddress
func (*MockAPI) GetAddressList ¶
GetAddressList GetAddressList
func (*MockAPI) GetAdminUsers ¶
func (a *MockAPI) GetAdminUsers(headers *api.Headers) *[]api.UserResponse
GetAdminUsers GetAdminUsers
func (*MockAPI) GetCartItem ¶
GetCartItem GetCartItem
func (*MockAPI) GetCartItemList ¶
GetCartItemList GetCartItemList
func (*MockAPI) GetCategory ¶
GetCategory GetCategory
func (*MockAPI) GetCategoryList ¶
GetCategoryList GetCategoryList
func (*MockAPI) GetCustomer ¶
GetCustomer GetCustomer
func (*MockAPI) GetCustomerID ¶
GetCustomerID GetCustomerID
func (*MockAPI) GetCustomerList ¶
GetCustomerList GetCustomerList
func (*MockAPI) GetCustomerUsers ¶
func (a *MockAPI) GetCustomerUsers(headers *api.Headers) *[]api.UserResponse
GetCustomerUsers GetCustomerUsers
func (*MockAPI) GetDataStoreWriteLock ¶
func (a *MockAPI) GetDataStoreWriteLock(dataStore string, headers *api.Headers) *sdbi.DataStoreWriteLock
GetDataStoreWriteLock GetDataStoreWriteLock
func (*MockAPI) GetDistributor ¶
GetDistributor GetDistributor
func (*MockAPI) GetDistributorList ¶
func (a *MockAPI) GetDistributorList(headers *api.Headers) *[]sdbi.Distributor
GetDistributorList GetDistributorList
func (*MockAPI) GetExcludedSubRegionList ¶
func (a *MockAPI) GetExcludedSubRegionList(regionID int64, headers *api.Headers) *[]sdbi.ExcludedSubRegion
GetExcludedSubRegionList GetExcludedSubRegionList
func (*MockAPI) GetHierarchicalCategoryList ¶
GetHierarchicalCategoryList GetHierarchicalCategoryList
func (*MockAPI) GetIncludedSubRegionList ¶
func (a *MockAPI) GetIncludedSubRegionList(regionID int64, headers *api.Headers) *[]sdbi.IncludedSubRegion
GetIncludedSubRegionList GetIncludedSubRegionList
func (*MockAPI) GetInstance ¶
func (a *MockAPI) GetInstance(name string, dataStoreName string, headers *api.Headers) *sdbi.Instances
GetInstance GetInstance
func (*MockAPI) GetInstanceList ¶
GetInstanceList GetInstanceList
func (*MockAPI) GetInsurance ¶
GetInsurance GetInsurance
func (*MockAPI) GetInsuranceList ¶
GetInsuranceList GetInsuranceList
func (*MockAPI) GetLocalDatastore ¶
func (a *MockAPI) GetLocalDatastore(dataStoreName string, headers *api.Headers) *sdbi.LocalDataStore
GetLocalDatastore GetLocalDatastore
func (*MockAPI) GetOrderCommentList ¶
GetOrderCommentList GetOrderCommentList
func (*MockAPI) GetOrderCountData ¶
func (a *MockAPI) GetOrderCountData(headers *api.Headers) *[]sdbi.OrderCountData
GetOrderCountData GetOrderCountData
func (*MockAPI) GetOrderItem ¶
GetOrderItem GetOrderItem
func (*MockAPI) GetOrderItemList ¶
GetOrderItemList GetOrderItemList
func (*MockAPI) GetOrderList ¶
GetOrderList GetOrderList
func (*MockAPI) GetOrderSalesData ¶
func (a *MockAPI) GetOrderSalesData(headers *api.Headers) *[]sdbi.OrderSalesData
GetOrderSalesData GetOrderSalesData
func (*MockAPI) GetOrderTransactionList ¶
func (a *MockAPI) GetOrderTransactionList(orderID int64, headers *api.Headers) *[]sdbi.OrderTransaction
GetOrderTransactionList GetOrderTransactionList
func (*MockAPI) GetPaymentGateway ¶
GetPaymentGateway GetPaymentGateway
func (*MockAPI) GetPaymentGatewayByName ¶ added in v1.1.0
GetPaymentGatewayByName GetPaymentGatewayByName
func (*MockAPI) GetPaymentGateways ¶
func (a *MockAPI) GetPaymentGateways(headers *api.Headers) *[]sdbi.PaymentGateway
GetPaymentGateways GetPaymentGateways
func (*MockAPI) GetPluginList ¶
GetPluginList GetPluginList
func (*MockAPI) GetProductByCatAndManufacturer ¶
func (a *MockAPI) GetProductByCatAndManufacturer(catID int64, manf string, start int64, end int64, headers *api.Headers) *[]sdbi.Product
GetProductByCatAndManufacturer GetProductByCatAndManufacturer
func (*MockAPI) GetProductByID ¶
GetProductByID GetProductByID
func (*MockAPI) GetProductByNameAndManufacturerName ¶
func (a *MockAPI) GetProductByNameAndManufacturerName(manf string, name string, start int64, end int64, headers *api.Headers) *[]sdbi.Product
GetProductByNameAndManufacturerName GetProductByNameAndManufacturerName
func (*MockAPI) GetProductBySku ¶
GetProductBySku GetProductBySku
func (*MockAPI) GetProductCategoryList ¶
GetProductCategoryList GetProductCategoryList
func (*MockAPI) GetProductIDList ¶
GetProductIDList GetProductIDList
func (*MockAPI) GetProductIDListByCategories ¶
GetProductIDListByCategories GetProductIDListByCategories
func (*MockAPI) GetProductList ¶
GetProductList GetProductList
func (*MockAPI) GetProductManufacturerListByCatID ¶
GetProductManufacturerListByCatID GetProductManufacturerListByCatID
func (*MockAPI) GetProductManufacturerListByProductName ¶
func (a *MockAPI) GetProductManufacturerListByProductName(name string, headers *api.Headers) *[]string
GetProductManufacturerListByProductName GetProductManufacturerListByProductName
func (*MockAPI) GetProductManufacturerListByProductSearch ¶ added in v1.2.0
func (a *MockAPI) GetProductManufacturerListByProductSearch(attr string, headers *api.Headers) *[]string
GetProductManufacturerListByProductSearch GetProductManufacturerListByProductSearch
func (*MockAPI) GetProductsByCaterory ¶
func (a *MockAPI) GetProductsByCaterory(catID int64, start int64, end int64, headers *api.Headers) *[]sdbi.Product
GetProductsByCaterory GetProductsByCaterory
func (*MockAPI) GetProductsByName ¶
func (a *MockAPI) GetProductsByName(name string, start int64, end int64, headers *api.Headers) *[]sdbi.Product
GetProductsByName GetProductsByName
func (*MockAPI) GetProductsByPromoted ¶
func (a *MockAPI) GetProductsByPromoted(start int64, end int64, headers *api.Headers) *[]sdbi.Product
GetProductsByPromoted GetProductsByPromoted
func (*MockAPI) GetRegionList ¶
GetRegionList GetRegionList
func (*MockAPI) GetShipment ¶
GetShipment GetShipment
func (*MockAPI) GetShipmentBox ¶
GetShipmentBox GetShipmentBox
func (*MockAPI) GetShipmentBoxList ¶
GetShipmentBoxList GetShipmentBoxList
func (*MockAPI) GetShipmentItem ¶
GetShipmentItem GetShipmentItem
func (*MockAPI) GetShipmentItemList ¶
GetShipmentItemList GetShipmentItemList
func (*MockAPI) GetShipmentItemListByBox ¶
func (a *MockAPI) GetShipmentItemListByBox(boxNumber int64, shipmentID int64, headers *api.Headers) *[]sdbi.ShipmentItem
GetShipmentItemListByBox GetShipmentItemListByBox
func (*MockAPI) GetShipmentList ¶
GetShipmentList GetShipmentList
func (*MockAPI) GetShippingCarrier ¶
GetShippingCarrier GetShippingCarrier
func (*MockAPI) GetShippingCarrierList ¶
func (a *MockAPI) GetShippingCarrierList(headers *api.Headers) *[]sdbi.ShippingCarrier
GetShippingCarrierList GetShippingCarrierList
func (*MockAPI) GetShippingMethod ¶
GetShippingMethod GetShippingMethod
func (*MockAPI) GetShippingMethodList ¶
func (a *MockAPI) GetShippingMethodList(headers *api.Headers) *[]sdbi.ShippingMethod
GetShippingMethodList GetShippingMethodList
func (*MockAPI) GetStoreOrderList ¶
GetStoreOrderList GetStoreOrderList
func (*MockAPI) GetStoreOrderListByStatus ¶
GetStoreOrderListByStatus GetStoreOrderListByStatus
func (*MockAPI) GetStorePlugin ¶
GetStorePlugin GetStorePlugin
func (*MockAPI) GetStorePluginList ¶
func (a *MockAPI) GetStorePluginList(headers *api.Headers) *[]sdbi.StorePlugins
GetStorePluginList GetStorePluginList
func (*MockAPI) GetSubCategoryList ¶
GetSubCategoryList GetSubCategoryList
func (*MockAPI) GetSubRegion ¶
GetSubRegion GetSubRegion
func (*MockAPI) GetSubRegionList ¶
GetSubRegionList GetSubRegionList
func (*MockAPI) GetTaxRate ¶
GetTaxRate GetTaxRate
func (*MockAPI) GetTaxRateList ¶
GetTaxRateList GetTaxRateList
func (*MockAPI) GetUsersByCustomer ¶
GetUsersByCustomer GetUsersByCustomer
func (*MockAPI) GetVisitorData ¶
func (a *MockAPI) GetVisitorData(headers *api.Headers) *[]sdbi.VisitorData
GetVisitorData GetVisitorData
func (*MockAPI) GetZoneZipListByExclusion ¶
GetZoneZipListByExclusion GetZoneZipListByExclusion
func (*MockAPI) GetZoneZipListByInclusion ¶
GetZoneZipListByInclusion GetZoneZipListByInclusion
func (*MockAPI) OverrideProxy ¶
OverrideProxy OverrideProxy
func (*MockAPI) ProductSearch ¶ added in v1.2.0
ProductSearch ProductSearch
func (*MockAPI) ResetCustomerUserPassword ¶
func (a *MockAPI) ResetCustomerUserPassword(u *api.User, headers *api.Headers) *api.CustomerPasswordResponse
ResetCustomerUserPassword ResetCustomerUserPassword
func (*MockAPI) UpdateAddress ¶
UpdateAddress UpdateAddress
func (*MockAPI) UpdateCart ¶
UpdateCart UpdateCart
func (*MockAPI) UpdateCartItem ¶
UpdateCartItem UpdateCartItem
func (*MockAPI) UpdateCategory ¶
UpdateCategory UpdateCategory
func (*MockAPI) UpdateCustomer ¶
UpdateCustomer UpdateCustomer
func (*MockAPI) UpdateDataStoreWriteLock ¶
func (a *MockAPI) UpdateDataStoreWriteLock(w *sdbi.DataStoreWriteLock, headers *api.Headers) *api.Response
UpdateDataStoreWriteLock UpdateDataStoreWriteLock
func (*MockAPI) UpdateDistributor ¶
UpdateDistributor UpdateDistributor
func (*MockAPI) UpdateInstance ¶
UpdateInstance UpdateInstance
func (*MockAPI) UpdateInsurance ¶
UpdateInsurance UpdateInsurance
func (*MockAPI) UpdateLocalDatastore ¶
UpdateLocalDatastore UpdateLocalDatastore
func (*MockAPI) UpdateOrder ¶
UpdateOrder UpdateOrder
func (*MockAPI) UpdateOrderItem ¶
UpdateOrderItem UpdateOrderItem
func (*MockAPI) UpdatePaymentGateway ¶
func (a *MockAPI) UpdatePaymentGateway(pgw *sdbi.PaymentGateway, headers *api.Headers) *api.Response
UpdatePaymentGateway UpdatePaymentGateway
func (*MockAPI) UpdatePlugin ¶
UpdatePlugin UpdatePlugin
func (*MockAPI) UpdateProduct ¶
UpdateProduct UpdateProduct
func (*MockAPI) UpdateProductQuantity ¶
UpdateProductQuantity UpdateProductQuantity
func (*MockAPI) UpdateRegion ¶
UpdateRegion UpdateRegion
func (*MockAPI) UpdateShipment ¶
UpdateShipment UpdateShipment
func (*MockAPI) UpdateShipmentBox ¶
UpdateShipmentBox UpdateShipmentBox
func (*MockAPI) UpdateShipmentItem ¶
UpdateShipmentItem UpdateShipmentItem
func (*MockAPI) UpdateShippingCarrier ¶
func (a *MockAPI) UpdateShippingCarrier(c *sdbi.ShippingCarrier, headers *api.Headers) *api.Response
UpdateShippingCarrier UpdateShippingCarrier
func (*MockAPI) UpdateShippingMethod ¶
UpdateShippingMethod UpdateShippingMethod
func (*MockAPI) UpdateStore ¶
UpdateStore UpdateStore
func (*MockAPI) UpdateStorePlugin ¶
UpdateStorePlugin UpdateStorePlugin
func (*MockAPI) UpdateSubRegion ¶
UpdateSubRegion UpdateSubRegion
func (*MockAPI) UpdateTaxRate ¶
UpdateTaxRate UpdateTaxRate