Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public void Init()
 {
     this._locationsService = new SquareLocationsService(this.Config, this.Credentials);
 }