mockapi

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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

func (a *MockAPI) AddAddress(ad *sdbi.Address, headers *api.Headers) *api.ResponseID

AddAddress AddAddress

func (*MockAPI) AddAdminUser

func (a *MockAPI) AddAdminUser(u *api.User, headers *api.Headers) *api.Response

AddAdminUser AddAdminUser

func (*MockAPI) AddCart

func (a *MockAPI) AddCart(c *sdbi.Cart, headers *api.Headers) *api.ResponseID

AddCart AddCart

func (*MockAPI) AddCartItem

func (a *MockAPI) AddCartItem(ci *sdbi.CartItem, cid int64, headers *api.Headers) *api.ResponseID

AddCartItem AddCartItem

func (*MockAPI) AddCategory

func (a *MockAPI) AddCategory(c *sdbi.Category, headers *api.Headers) *api.ResponseID

AddCategory AddCategory

func (*MockAPI) AddCustomer

func (a *MockAPI) AddCustomer(c *sdbi.Customer, headers *api.Headers) *api.ResponseID

AddCustomer AddCustomer

func (*MockAPI) AddCustomerUser

func (a *MockAPI) AddCustomerUser(u *api.User, headers *api.Headers) *api.Response

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

func (a *MockAPI) AddInstance(i *sdbi.Instances, headers *api.Headers) *api.Response

AddInstance AddInstance

func (*MockAPI) AddInsurance

func (a *MockAPI) AddInsurance(i *sdbi.Insurance, headers *api.Headers) *api.ResponseID

AddInsurance AddInsurance

func (*MockAPI) AddLocalDatastore

func (a *MockAPI) AddLocalDatastore(d *sdbi.LocalDataStore, headers *api.Headers) *api.Response

AddLocalDatastore AddLocalDatastore

func (*MockAPI) AddOrder

func (a *MockAPI) AddOrder(o *sdbi.Order, headers *api.Headers) *api.ResponseID

AddOrder AddOrder

func (*MockAPI) AddOrderComments

func (a *MockAPI) AddOrderComments(c *sdbi.OrderComment, headers *api.Headers) *api.ResponseID

AddOrderComments AddOrderComments

func (*MockAPI) AddOrderItem

func (a *MockAPI) AddOrderItem(i *sdbi.OrderItem, headers *api.Headers) *api.ResponseID

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) AddPlugin

func (a *MockAPI) AddPlugin(p *sdbi.Plugins, headers *api.Headers) *api.ResponseID

AddPlugin AddPlugin

func (*MockAPI) AddProduct

func (a *MockAPI) AddProduct(p *sdbi.Product, headers *api.Headers) *api.ResponseID

AddProduct AddProduct

func (*MockAPI) AddProductCategory

func (a *MockAPI) AddProductCategory(pc *sdbi.ProductCategory, headers *api.Headers) *api.Response

AddProductCategory AddProductCategory

func (*MockAPI) AddRegion

func (a *MockAPI) AddRegion(r *sdbi.Region, headers *api.Headers) *api.ResponseID

AddRegion AddRegion

func (*MockAPI) AddShipment

func (a *MockAPI) AddShipment(s *sdbi.Shipment, headers *api.Headers) *api.ResponseID

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) AddStore

func (a *MockAPI) AddStore(s *sdbi.Store, headers *api.Headers) *api.ResponseID

AddStore AddStore

func (*MockAPI) AddStorePlugin

func (a *MockAPI) AddStorePlugin(sp *sdbi.StorePlugins, headers *api.Headers) *api.ResponseID

AddStorePlugin AddStorePlugin

func (*MockAPI) AddSubRegion

func (a *MockAPI) AddSubRegion(s *sdbi.SubRegion, headers *api.Headers) *api.ResponseID

AddSubRegion AddSubRegion

func (*MockAPI) AddTaxRate

func (a *MockAPI) AddTaxRate(t *sdbi.TaxRate, headers *api.Headers) *api.ResponseID

AddTaxRate AddTaxRate

func (*MockAPI) AddVisit

func (a *MockAPI) AddVisit(v *sdbi.Visitor, headers *api.Headers) *api.Response

AddVisit AddVisit

func (*MockAPI) AddZoneZip

func (a *MockAPI) AddZoneZip(z *sdbi.ZoneZip, headers *api.Headers) *api.ResponseID

AddZoneZip AddZoneZip

func (*MockAPI) AdminUpdateUser

func (a *MockAPI) AdminUpdateUser(u *api.User, headers *api.Headers) *api.Response

AdminUpdateUser AdminUpdateUser

func (*MockAPI) DeleteAddress

func (a *MockAPI) DeleteAddress(id int64, cid int64, headers *api.Headers) *api.Response

DeleteAddress DeleteAddress

func (*MockAPI) DeleteCart

func (a *MockAPI) DeleteCart(id int64, cid int64, headers *api.Headers) *api.Response

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

func (a *MockAPI) DeleteCategory(id int64, headers *api.Headers) *api.Response

DeleteCategory DeleteCategory

func (*MockAPI) DeleteCustomer

func (a *MockAPI) DeleteCustomer(id int64, headers *api.Headers) *api.Response

DeleteCustomer DeleteCustomer

func (*MockAPI) DeleteDistributor

func (a *MockAPI) DeleteDistributor(id int64, headers *api.Headers) *api.Response

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

func (a *MockAPI) DeleteInsurance(id int64, headers *api.Headers) *api.Response

DeleteInsurance DeleteInsurance

func (*MockAPI) DeleteOrder

func (a *MockAPI) DeleteOrder(id int64, headers *api.Headers) *api.Response

DeleteOrder DeleteOrder

func (*MockAPI) DeleteOrderItem

func (a *MockAPI) DeleteOrderItem(id int64, headers *api.Headers) *api.Response

DeleteOrderItem DeleteOrderItem

func (*MockAPI) DeletePaymentGateway

func (a *MockAPI) DeletePaymentGateway(id int64, headers *api.Headers) *api.Response

DeletePaymentGateway DeletePaymentGateway

func (*MockAPI) DeletePlugin

func (a *MockAPI) DeletePlugin(id int64, headers *api.Headers) *api.Response

DeletePlugin DeletePlugin

func (*MockAPI) DeleteProduct

func (a *MockAPI) DeleteProduct(id int64, headers *api.Headers) *api.Response

DeleteProduct DeleteProduct

func (*MockAPI) DeleteProductCategory

func (a *MockAPI) DeleteProductCategory(pc *sdbi.ProductCategory, headers *api.Headers) *api.Response

DeleteProductCategory DeleteProductCategory

func (*MockAPI) DeleteRegion

func (a *MockAPI) DeleteRegion(id int64, headers *api.Headers) *api.Response

DeleteRegion DeleteRegion

func (*MockAPI) DeleteShipment

func (a *MockAPI) DeleteShipment(id int64, headers *api.Headers) *api.Response

DeleteShipment DeleteShipment

func (*MockAPI) DeleteShipmentBox

func (a *MockAPI) DeleteShipmentBox(id int64, headers *api.Headers) *api.Response

DeleteShipmentBox DeleteShipmentBox

func (*MockAPI) DeleteShipmentItem

func (a *MockAPI) DeleteShipmentItem(id int64, headers *api.Headers) *api.Response

DeleteShipmentItem DeleteShipmentItem

func (*MockAPI) DeleteShippingCarrier

func (a *MockAPI) DeleteShippingCarrier(id int64, headers *api.Headers) *api.Response

DeleteShippingCarrier DeleteShippingCarrier

func (*MockAPI) DeleteShippingMethod

func (a *MockAPI) DeleteShippingMethod(id int64, headers *api.Headers) *api.Response

DeleteShippingMethod DeleteShippingMethod

func (*MockAPI) DeleteStore

func (a *MockAPI) DeleteStore(sname string, localDomain string, headers *api.Headers) *api.Response

DeleteStore DeleteStore

func (*MockAPI) DeleteStorePlugin

func (a *MockAPI) DeleteStorePlugin(id int64, headers *api.Headers) *api.Response

DeleteStorePlugin DeleteStorePlugin

func (*MockAPI) DeleteSubRegion

func (a *MockAPI) DeleteSubRegion(id int64, headers *api.Headers) *api.Response

DeleteSubRegion DeleteSubRegion

func (*MockAPI) DeleteTaxRate

func (a *MockAPI) DeleteTaxRate(id int64, headers *api.Headers) *api.Response

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

func (a *MockAPI) GetAddress(id int64, cid int64, headers *api.Headers) *sdbi.Address

GetAddress GetAddress

func (*MockAPI) GetAddressList

func (a *MockAPI) GetAddressList(cid int64, headers *api.Headers) *[]sdbi.Address

GetAddressList GetAddressList

func (*MockAPI) GetAdminUsers

func (a *MockAPI) GetAdminUsers(headers *api.Headers) *[]api.UserResponse

GetAdminUsers GetAdminUsers

func (*MockAPI) GetCart

func (a *MockAPI) GetCart(cid int64, headers *api.Headers) *sdbi.Cart

GetCart GetCart

func (*MockAPI) GetCartItem

func (a *MockAPI) GetCartItem(cid int64, prodID int64, headers *api.Headers) *sdbi.CartItem

GetCartItem GetCartItem

func (*MockAPI) GetCartItemList

func (a *MockAPI) GetCartItemList(cartID int64, cid int64, headers *api.Headers) *[]sdbi.CartItem

GetCartItemList GetCartItemList

func (*MockAPI) GetCategory

func (a *MockAPI) GetCategory(id int64, headers *api.Headers) *sdbi.Category

GetCategory GetCategory

func (*MockAPI) GetCategoryList

func (a *MockAPI) GetCategoryList(headers *api.Headers) *[]sdbi.Category

GetCategoryList GetCategoryList

func (*MockAPI) GetCustomer

func (a *MockAPI) GetCustomer(email string, headers *api.Headers) *sdbi.Customer

GetCustomer GetCustomer

func (*MockAPI) GetCustomerID

func (a *MockAPI) GetCustomerID(id int64, headers *api.Headers) *sdbi.Customer

GetCustomerID GetCustomerID

func (*MockAPI) GetCustomerList

func (a *MockAPI) GetCustomerList(start int64, end int64, headers *api.Headers) *[]sdbi.Customer

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

func (a *MockAPI) GetDistributor(id int64, headers *api.Headers) *sdbi.Distributor

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

func (a *MockAPI) GetHierarchicalCategoryList(headers *api.Headers) *[]sdbi.Category

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

func (a *MockAPI) GetInstanceList(dataStoreName string, headers *api.Headers) *[]sdbi.Instances

GetInstanceList GetInstanceList

func (*MockAPI) GetInsurance

func (a *MockAPI) GetInsurance(id int64, headers *api.Headers) *sdbi.Insurance

GetInsurance GetInsurance

func (*MockAPI) GetInsuranceList

func (a *MockAPI) GetInsuranceList(headers *api.Headers) *[]sdbi.Insurance

GetInsuranceList GetInsuranceList

func (*MockAPI) GetLocalDatastore

func (a *MockAPI) GetLocalDatastore(dataStoreName string, headers *api.Headers) *sdbi.LocalDataStore

GetLocalDatastore GetLocalDatastore

func (*MockAPI) GetNew

func (a *MockAPI) GetNew() api.API

GetNew GetNew

func (*MockAPI) GetOrder

func (a *MockAPI) GetOrder(id int64, headers *api.Headers) *sdbi.Order

GetOrder GetOrder

func (*MockAPI) GetOrderCommentList

func (a *MockAPI) GetOrderCommentList(orderID int64, headers *api.Headers) *[]sdbi.OrderComment

GetOrderCommentList GetOrderCommentList

func (*MockAPI) GetOrderCountData

func (a *MockAPI) GetOrderCountData(headers *api.Headers) *[]sdbi.OrderCountData

GetOrderCountData GetOrderCountData

func (*MockAPI) GetOrderItem

func (a *MockAPI) GetOrderItem(id int64, headers *api.Headers) *sdbi.OrderItem

GetOrderItem GetOrderItem

func (*MockAPI) GetOrderItemList

func (a *MockAPI) GetOrderItemList(orderID int64, headers *api.Headers) *[]sdbi.OrderItem

GetOrderItemList GetOrderItemList

func (*MockAPI) GetOrderList

func (a *MockAPI) GetOrderList(cid int64, headers *api.Headers) *[]sdbi.Order

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

func (a *MockAPI) GetPaymentGateway(id int64, headers *api.Headers) *sdbi.PaymentGateway

GetPaymentGateway GetPaymentGateway

func (*MockAPI) GetPaymentGatewayByName added in v1.1.0

func (a *MockAPI) GetPaymentGatewayByName(name string, headers *api.Headers) *sdbi.PaymentGateway

GetPaymentGatewayByName GetPaymentGatewayByName

func (*MockAPI) GetPaymentGateways

func (a *MockAPI) GetPaymentGateways(headers *api.Headers) *[]sdbi.PaymentGateway

GetPaymentGateways GetPaymentGateways

func (*MockAPI) GetPlugin

func (a *MockAPI) GetPlugin(id int64, headers *api.Headers) *sdbi.Plugins

GetPlugin GetPlugin

func (*MockAPI) GetPluginList

func (a *MockAPI) GetPluginList(start int64, end int64, headers *api.Headers) *[]sdbi.Plugins

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

func (a *MockAPI) GetProductByID(id int64, headers *api.Headers) *sdbi.Product

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

func (a *MockAPI) GetProductBySku(sku string, did int64, headers *api.Headers) *sdbi.Product

GetProductBySku GetProductBySku

func (*MockAPI) GetProductCategoryList

func (a *MockAPI) GetProductCategoryList(productID int64, headers *api.Headers) []int64

GetProductCategoryList GetProductCategoryList

func (*MockAPI) GetProductIDList

func (a *MockAPI) GetProductIDList(headers *api.Headers) *[]int64

GetProductIDList GetProductIDList

func (*MockAPI) GetProductIDListByCategories

func (a *MockAPI) GetProductIDListByCategories(idReq *api.ProdIDReq, headers *api.Headers) *[]int64

GetProductIDListByCategories GetProductIDListByCategories

func (*MockAPI) GetProductList

func (a *MockAPI) GetProductList(start int64, end int64, headers *api.Headers) *[]sdbi.Product

GetProductList GetProductList

func (*MockAPI) GetProductManufacturerListByCatID

func (a *MockAPI) GetProductManufacturerListByCatID(catID int64, headers *api.Headers) *[]string

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) GetRegion

func (a *MockAPI) GetRegion(id int64, headers *api.Headers) *sdbi.Region

GetRegion GetRegion

func (*MockAPI) GetRegionList

func (a *MockAPI) GetRegionList(headers *api.Headers) *[]sdbi.Region

GetRegionList GetRegionList

func (*MockAPI) GetShipment

func (a *MockAPI) GetShipment(id int64, headers *api.Headers) *sdbi.Shipment

GetShipment GetShipment

func (*MockAPI) GetShipmentBox

func (a *MockAPI) GetShipmentBox(id int64, headers *api.Headers) *sdbi.ShipmentBox

GetShipmentBox GetShipmentBox

func (*MockAPI) GetShipmentBoxList

func (a *MockAPI) GetShipmentBoxList(shipmentID int64, headers *api.Headers) *[]sdbi.ShipmentBox

GetShipmentBoxList GetShipmentBoxList

func (*MockAPI) GetShipmentItem

func (a *MockAPI) GetShipmentItem(id int64, headers *api.Headers) *sdbi.ShipmentItem

GetShipmentItem GetShipmentItem

func (*MockAPI) GetShipmentItemList

func (a *MockAPI) GetShipmentItemList(shipmentID int64, headers *api.Headers) *[]sdbi.ShipmentItem

GetShipmentItemList GetShipmentItemList

func (*MockAPI) GetShipmentItemListByBox

func (a *MockAPI) GetShipmentItemListByBox(boxNumber int64, shipmentID int64, headers *api.Headers) *[]sdbi.ShipmentItem

GetShipmentItemListByBox GetShipmentItemListByBox

func (*MockAPI) GetShipmentList

func (a *MockAPI) GetShipmentList(orderID int64, headers *api.Headers) *[]sdbi.Shipment

GetShipmentList GetShipmentList

func (*MockAPI) GetShippingCarrier

func (a *MockAPI) GetShippingCarrier(id int64, headers *api.Headers) *sdbi.ShippingCarrier

GetShippingCarrier GetShippingCarrier

func (*MockAPI) GetShippingCarrierList

func (a *MockAPI) GetShippingCarrierList(headers *api.Headers) *[]sdbi.ShippingCarrier

GetShippingCarrierList GetShippingCarrierList

func (*MockAPI) GetShippingMethod

func (a *MockAPI) GetShippingMethod(id int64, headers *api.Headers) *sdbi.ShippingMethod

GetShippingMethod GetShippingMethod

func (*MockAPI) GetShippingMethodList

func (a *MockAPI) GetShippingMethodList(headers *api.Headers) *[]sdbi.ShippingMethod

GetShippingMethodList GetShippingMethodList

func (*MockAPI) GetStore

func (a *MockAPI) GetStore(sname string, localDomain string, headers *api.Headers) *sdbi.Store

GetStore GetStore

func (*MockAPI) GetStoreOrderList

func (a *MockAPI) GetStoreOrderList(headers *api.Headers) *[]sdbi.Order

GetStoreOrderList GetStoreOrderList

func (*MockAPI) GetStoreOrderListByStatus

func (a *MockAPI) GetStoreOrderListByStatus(status string, headers *api.Headers) *[]sdbi.Order

GetStoreOrderListByStatus GetStoreOrderListByStatus

func (*MockAPI) GetStorePlugin

func (a *MockAPI) GetStorePlugin(id int64, headers *api.Headers) *sdbi.StorePlugins

GetStorePlugin GetStorePlugin

func (*MockAPI) GetStorePluginList

func (a *MockAPI) GetStorePluginList(headers *api.Headers) *[]sdbi.StorePlugins

GetStorePluginList GetStorePluginList

func (*MockAPI) GetSubCategoryList

func (a *MockAPI) GetSubCategoryList(catID int64, headers *api.Headers) *[]sdbi.Category

GetSubCategoryList GetSubCategoryList

func (*MockAPI) GetSubRegion

func (a *MockAPI) GetSubRegion(id int64, headers *api.Headers) *sdbi.SubRegion

GetSubRegion GetSubRegion

func (*MockAPI) GetSubRegionList

func (a *MockAPI) GetSubRegionList(regionID int64, headers *api.Headers) *[]sdbi.SubRegion

GetSubRegionList GetSubRegionList

func (*MockAPI) GetTaxRate

func (a *MockAPI) GetTaxRate(country string, state string, headers *api.Headers) *[]sdbi.TaxRate

GetTaxRate GetTaxRate

func (*MockAPI) GetTaxRateList

func (a *MockAPI) GetTaxRateList(headers *api.Headers) *[]sdbi.TaxRate

GetTaxRateList GetTaxRateList

func (*MockAPI) GetUser

func (a *MockAPI) GetUser(u *api.User, headers *api.Headers) *api.UserResponse

GetUser GetUser

func (*MockAPI) GetUsersByCustomer

func (a *MockAPI) GetUsersByCustomer(cid int64, headers *api.Headers) *[]api.UserResponse

GetUsersByCustomer GetUsersByCustomer

func (*MockAPI) GetVisitorData

func (a *MockAPI) GetVisitorData(headers *api.Headers) *[]sdbi.VisitorData

GetVisitorData GetVisitorData

func (*MockAPI) GetZoneZipListByExclusion

func (a *MockAPI) GetZoneZipListByExclusion(exID int64, headers *api.Headers) *[]sdbi.ZoneZip

GetZoneZipListByExclusion GetZoneZipListByExclusion

func (*MockAPI) GetZoneZipListByInclusion

func (a *MockAPI) GetZoneZipListByInclusion(incID int64, headers *api.Headers) *[]sdbi.ZoneZip

GetZoneZipListByInclusion GetZoneZipListByInclusion

func (*MockAPI) OverrideProxy

func (a *MockAPI) OverrideProxy(proxy px.Proxy)

OverrideProxy OverrideProxy

func (*MockAPI) ProductSearch added in v1.2.0

func (a *MockAPI) ProductSearch(p *sdbi.ProductSearch, headers *api.Headers) *[]sdbi.Product

ProductSearch ProductSearch

func (*MockAPI) ResetCustomerUserPassword

func (a *MockAPI) ResetCustomerUserPassword(u *api.User, headers *api.Headers) *api.CustomerPasswordResponse

ResetCustomerUserPassword ResetCustomerUserPassword

func (*MockAPI) SetAPIKey

func (a *MockAPI) SetAPIKey(key string)

SetAPIKey SetAPIKey

func (*MockAPI) SetLogLever

func (a *MockAPI) SetLogLever(level int)

SetLogLever SetLogLever

func (*MockAPI) SetLogger added in v0.1.1

func (a *MockAPI) SetLogger(l *lg.Logger)

SetLogger SetLogger

func (*MockAPI) SetRestURL

func (a *MockAPI) SetRestURL(url string)

SetRestURL SetRestURL

func (*MockAPI) SetStore

func (a *MockAPI) SetStore(storeName string, localDomain string)

SetStore SetStore

func (*MockAPI) SetStoreID

func (a *MockAPI) SetStoreID(sid int64)

SetStoreID SetStoreID

func (*MockAPI) UpdateAddress

func (a *MockAPI) UpdateAddress(ad *sdbi.Address, headers *api.Headers) *api.Response

UpdateAddress UpdateAddress

func (*MockAPI) UpdateCart

func (a *MockAPI) UpdateCart(c *sdbi.Cart, headers *api.Headers) *api.Response

UpdateCart UpdateCart

func (*MockAPI) UpdateCartItem

func (a *MockAPI) UpdateCartItem(ci *sdbi.CartItem, cid int64, headers *api.Headers) *api.Response

UpdateCartItem UpdateCartItem

func (*MockAPI) UpdateCategory

func (a *MockAPI) UpdateCategory(c *sdbi.Category, headers *api.Headers) *api.Response

UpdateCategory UpdateCategory

func (*MockAPI) UpdateCustomer

func (a *MockAPI) UpdateCustomer(c *sdbi.Customer, headers *api.Headers) *api.Response

UpdateCustomer UpdateCustomer

func (*MockAPI) UpdateDataStoreWriteLock

func (a *MockAPI) UpdateDataStoreWriteLock(w *sdbi.DataStoreWriteLock, headers *api.Headers) *api.Response

UpdateDataStoreWriteLock UpdateDataStoreWriteLock

func (*MockAPI) UpdateDistributor

func (a *MockAPI) UpdateDistributor(d *sdbi.Distributor, headers *api.Headers) *api.Response

UpdateDistributor UpdateDistributor

func (*MockAPI) UpdateInstance

func (a *MockAPI) UpdateInstance(i *sdbi.Instances, headers *api.Headers) *api.Response

UpdateInstance UpdateInstance

func (*MockAPI) UpdateInsurance

func (a *MockAPI) UpdateInsurance(i *sdbi.Insurance, headers *api.Headers) *api.Response

UpdateInsurance UpdateInsurance

func (*MockAPI) UpdateLocalDatastore

func (a *MockAPI) UpdateLocalDatastore(d *sdbi.LocalDataStore, headers *api.Headers) *api.Response

UpdateLocalDatastore UpdateLocalDatastore

func (*MockAPI) UpdateOrder

func (a *MockAPI) UpdateOrder(o *sdbi.Order, headers *api.Headers) *api.Response

UpdateOrder UpdateOrder

func (*MockAPI) UpdateOrderItem

func (a *MockAPI) UpdateOrderItem(i *sdbi.OrderItem, headers *api.Headers) *api.Response

UpdateOrderItem UpdateOrderItem

func (*MockAPI) UpdatePaymentGateway

func (a *MockAPI) UpdatePaymentGateway(pgw *sdbi.PaymentGateway, headers *api.Headers) *api.Response

UpdatePaymentGateway UpdatePaymentGateway

func (*MockAPI) UpdatePlugin

func (a *MockAPI) UpdatePlugin(p *sdbi.Plugins, headers *api.Headers) *api.Response

UpdatePlugin UpdatePlugin

func (*MockAPI) UpdateProduct

func (a *MockAPI) UpdateProduct(p *sdbi.Product, headers *api.Headers) *api.Response

UpdateProduct UpdateProduct

func (*MockAPI) UpdateProductQuantity

func (a *MockAPI) UpdateProductQuantity(p *sdbi.Product, headers *api.Headers) *api.Response

UpdateProductQuantity UpdateProductQuantity

func (*MockAPI) UpdateRegion

func (a *MockAPI) UpdateRegion(r *sdbi.Region, headers *api.Headers) *api.Response

UpdateRegion UpdateRegion

func (*MockAPI) UpdateShipment

func (a *MockAPI) UpdateShipment(s *sdbi.Shipment, headers *api.Headers) *api.Response

UpdateShipment UpdateShipment

func (*MockAPI) UpdateShipmentBox

func (a *MockAPI) UpdateShipmentBox(sb *sdbi.ShipmentBox, headers *api.Headers) *api.Response

UpdateShipmentBox UpdateShipmentBox

func (*MockAPI) UpdateShipmentItem

func (a *MockAPI) UpdateShipmentItem(si *sdbi.ShipmentItem, headers *api.Headers) *api.Response

UpdateShipmentItem UpdateShipmentItem

func (*MockAPI) UpdateShippingCarrier

func (a *MockAPI) UpdateShippingCarrier(c *sdbi.ShippingCarrier, headers *api.Headers) *api.Response

UpdateShippingCarrier UpdateShippingCarrier

func (*MockAPI) UpdateShippingMethod

func (a *MockAPI) UpdateShippingMethod(s *sdbi.ShippingMethod, headers *api.Headers) *api.Response

UpdateShippingMethod UpdateShippingMethod

func (*MockAPI) UpdateStore

func (a *MockAPI) UpdateStore(s *sdbi.Store, headers *api.Headers) *api.Response

UpdateStore UpdateStore

func (*MockAPI) UpdateStorePlugin

func (a *MockAPI) UpdateStorePlugin(sp *sdbi.StorePlugins, headers *api.Headers) *api.Response

UpdateStorePlugin UpdateStorePlugin

func (*MockAPI) UpdateSubRegion

func (a *MockAPI) UpdateSubRegion(s *sdbi.SubRegion, headers *api.Headers) *api.Response

UpdateSubRegion UpdateSubRegion

func (*MockAPI) UpdateTaxRate

func (a *MockAPI) UpdateTaxRate(t *sdbi.TaxRate, headers *api.Headers) *api.Response

UpdateTaxRate UpdateTaxRate

func (*MockAPI) UpdateUser

func (a *MockAPI) UpdateUser(u *api.User, headers *api.Headers) *api.Response

UpdateUser UpdateUser

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL