public SquareItemsService(SquareConfig config, SquareMerchantCredentials credentials, ISquareLocationsService locationsService) : base(config, credentials) { Condition.Requires(locationsService, "locationsService").IsNotNull(); this._catalogApi = new CatalogApi(base.ApiConfiguration); this._inventoryApi = new InventoryApi(base.ApiConfiguration); this._locationsService = locationsService; }
public SquareOrdersService(SquareConfig config, SquareMerchantCredentials credentials, ISquareLocationsService locationsService, ISquareItemsService itemsService) : base(config, credentials) { Condition.Requires(locationsService, "locationsService").IsNotNull(); Condition.Requires(itemsService, "itemsService").IsNotNull(); _locationsService = locationsService; _itemsService = itemsService; _ordersApi = new OrdersApi(base.ApiConfiguration); }
public void Init() { this._locationsService = new SquareLocationsService(this.Config, this.Credentials); }