Example #1
0
 public RoutesController(IHttpContextAccessor httpContextAccessor, IOrderFeedAPI orderFeedAPI, IKlaviyoAPI klaviyoAPI, IIOServiceContext context)
 {
     this._httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     this._orderFeedAPI        = orderFeedAPI ?? throw new ArgumentNullException(nameof(orderFeedAPI));
     this._klaviyoAPI          = klaviyoAPI ?? throw new ArgumentNullException(nameof(klaviyoAPI));
     this._context             = context ?? throw new ArgumentNullException(nameof(context));
 }
 public RoutesController(IHttpContextAccessor httpContextAccessor, IOrderFeedAPI orderFeedAPI, ITreasureDataAPI treasureDataAPI, IIOServiceContext context)
 {
     this._httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     this._orderFeedAPI        = orderFeedAPI ?? throw new ArgumentNullException(nameof(orderFeedAPI));
     this._treasureDataAPI     = treasureDataAPI ?? throw new ArgumentNullException(nameof(treasureDataAPI));
     this._context             = context ?? throw new ArgumentNullException(nameof(context));
 }
Example #3
0
 public RoutesController(IIOServiceContext context, IHttpContextAccessor httpContextAccessor, IGoogleDriveService googleDriveService, IVtexAPIService vtexAPIService, IDriveImportRepository driveImportRepository)
 {
     this._context               = context ?? throw new ArgumentNullException(nameof(context));
     this._httpContextAccessor   = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     this._googleDriveService    = googleDriveService ?? throw new ArgumentNullException(nameof(googleDriveService));
     this._vtexAPIService        = vtexAPIService ?? throw new ArgumentNullException(nameof(vtexAPIService));
     this._driveImportRepository = driveImportRepository ?? throw new ArgumentNullException(nameof(driveImportRepository));
 }
 public ProductReviewService(IProductReviewRepository productReviewRepository, IAppSettingsRepository appSettingsRepository, IIOServiceContext context)
 {
     _productReviewRepository = productReviewRepository ??
                                throw new ArgumentNullException(nameof(productReviewRepository));
     _appSettingsRepository = appSettingsRepository ??
                              throw new ArgumentNullException(nameof(appSettingsRepository));
     _context = context ??
                throw new ArgumentNullException(nameof(context));
 }
 public RoutesController(IIOServiceContext context, IHttpContextAccessor httpContextAccessor, IHttpClientFactory clientFactory, IGoogleSheetsService googleSheetsService, IVtexApiService vtexApiService, ISheetsCatalogImportRepository SheetsCatalogImportRepository)
 {
     this._context                       = context ?? throw new ArgumentNullException(nameof(context));
     this._httpContextAccessor           = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     this._clientFactory                 = clientFactory ?? throw new ArgumentNullException(nameof(clientFactory));
     this._googleSheetsService           = googleSheetsService ?? throw new ArgumentNullException(nameof(googleSheetsService));
     this._vtexApiService                = vtexApiService ?? throw new ArgumentNullException(nameof(vtexApiService));
     this._sheetsCatalogImportRepository = SheetsCatalogImportRepository ?? throw new ArgumentNullException(nameof(SheetsCatalogImportRepository));
 }
Example #6
0
        public OrderFeedAPI(IHttpContextAccessor httpContextAccessor, IHttpClientFactory clientFactory, IVtexEnvironmentVariableProvider environmentVariableProvider, IIOServiceContext context)
        {
            this._httpContextAccessor = httpContextAccessor ??
                                        throw new ArgumentNullException(nameof(httpContextAccessor));

            this._clientFactory = clientFactory ??
                                  throw new ArgumentNullException(nameof(clientFactory));

            this._environmentVariableProvider = environmentVariableProvider ??
                                                throw new ArgumentNullException(nameof(environmentVariableProvider));

            this._context = context ??
                            throw new ArgumentNullException(nameof(context));
        }
Example #7
0
        public TreasureDataAPI(IHttpContextAccessor httpContextAccessor, IHttpClientFactory clientFactory, IOrderFeedAPI orderFeedAPI, IIOServiceContext context)
        {
            this._httpContextAccessor = httpContextAccessor ??
                                        throw new ArgumentNullException(nameof(httpContextAccessor));

            this._clientFactory = clientFactory ??
                                  throw new ArgumentNullException(nameof(clientFactory));

            this._orderFeedAPI = orderFeedAPI ??
                                 throw new ArgumentNullException(nameof(orderFeedAPI));

            this._context = context ??
                            throw new ArgumentNullException(nameof(context));
        }
        public AffirmPaymentService(IPaymentRequestRepository paymentRequestRepository, IHttpContextAccessor httpContextAccessor, HttpClient httpClient, IIOServiceContext context)
        {
            this._paymentRequestRepository = paymentRequestRepository ??
                                             throw new ArgumentNullException(nameof(paymentRequestRepository));

            this._httpContextAccessor = httpContextAccessor ??
                                        throw new ArgumentNullException(nameof(httpContextAccessor));

            this._httpClient = httpClient ??
                               throw new ArgumentNullException(nameof(httpClient));

            this._context = context ??
                            throw new ArgumentNullException(nameof(context));
        }
        public SheetsCatalogImportRepository(IVtexEnvironmentVariableProvider environmentVariableProvider, IHttpContextAccessor httpContextAccessor, IHttpClientFactory clientFactory, IIOServiceContext context)
        {
            this._environmentVariableProvider = environmentVariableProvider ??
                                                throw new ArgumentNullException(nameof(environmentVariableProvider));

            this._httpContextAccessor = httpContextAccessor ??
                                        throw new ArgumentNullException(nameof(httpContextAccessor));

            this._clientFactory = clientFactory ??
                                  throw new ArgumentNullException(nameof(clientFactory));

            this._context = context ??
                            throw new ArgumentNullException(nameof(context));

            this._applicationName =
                $"{this._environmentVariableProvider.ApplicationVendor}.{this._environmentVariableProvider.ApplicationName}";
        }
Example #10
0
        public AffirmAPI(IHttpContextAccessor httpContextAccessor, HttpClient httpClient, bool isLive, IIOServiceContext context)
        {
            this._httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
            this._httpClient          = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
            this._context             = context ?? throw new ArgumentNullException(nameof(context));
            string prefix = isLive ? "api" : "sandbox";

            this.affirmBaseUrl = $"http://{prefix}.{AffirmConstants.AffirmUrlStub}/{AffirmConstants.AffirmApiVersion}";
            if (isLive)
            {
                this.katapultBaseUrl = $"http://{AffirmConstants.KatapultUrlStub}/{AffirmConstants.KatapultApiVersion}";
            }
            else
            {
                this.katapultBaseUrl = $"http://{prefix}.{AffirmConstants.KatapultUrlStub}/{AffirmConstants.KatapultApiVersion}";
            }
        }
        public ProductReviewRepository(IVtexEnvironmentVariableProvider environmentVariableProvider, IHttpContextAccessor httpContextAccessor, IHttpClientFactory clientFactory, IIOServiceContext context)
        {
            this._environmentVariableProvider = environmentVariableProvider ??
                                                throw new ArgumentNullException(nameof(environmentVariableProvider));

            this._httpContextAccessor = httpContextAccessor ??
                                        throw new ArgumentNullException(nameof(httpContextAccessor));

            this._clientFactory = clientFactory ??
                                  throw new ArgumentNullException(nameof(clientFactory));

            this._applicationName =
                $"{this._environmentVariableProvider.ApplicationVendor}.{this._environmentVariableProvider.ApplicationName}";

            this._context = context ??
                            throw new ArgumentNullException(nameof(context));

            AUTHORIZATION_HEADER_NAME = "Authorization";
        }
        public StorePickupService(IVtexEnvironmentVariableProvider environmentVariableProvider, IHttpContextAccessor httpContextAccessor, IHttpClientFactory clientFactory, IIOServiceContext context, ICryptoService cryptoService, IStorePickupRepository storePickupRepository)
        {
            this._environmentVariableProvider = environmentVariableProvider ??
                                                throw new ArgumentNullException(nameof(environmentVariableProvider));

            this._httpContextAccessor = httpContextAccessor ??
                                        throw new ArgumentNullException(nameof(httpContextAccessor));

            this._clientFactory = clientFactory ??
                                  throw new ArgumentNullException(nameof(clientFactory));

            this._context = context ??
                            throw new ArgumentNullException(nameof(context));

            this._cryptoService = cryptoService ??
                                  throw new ArgumentNullException(nameof(cryptoService));

            this._storePickupRepository = storePickupRepository ??
                                          throw new ArgumentNullException(nameof(storePickupRepository));

            this._applicationName =
                $"{this._environmentVariableProvider.ApplicationVendor}.{this._environmentVariableProvider.ApplicationName}";
        }
Example #13
0
 public RoutesController(IAffirmPaymentService affirmPaymentService, IIOServiceContext context)
 {
     this._affirmPaymentService = affirmPaymentService ?? throw new ArgumentNullException(nameof(affirmPaymentService));
     this._context = context ?? throw new ArgumentNullException(nameof(context));
 }
Example #14
0
 public EventsController(IIOServiceContext context, ITreasureDataAPI treasureDataAPI)
 {
     this._context         = context ?? throw new ArgumentNullException(nameof(context));
     this._treasureDataAPI = treasureDataAPI ?? throw new ArgumentNullException(nameof(treasureDataAPI));
 }
 public EventsController(IIOServiceContext context, IKlaviyoAPI klaviyoAPI)
 {
     this._context    = context ?? throw new ArgumentNullException(nameof(context));
     this._klaviyoAPI = klaviyoAPI ?? throw new ArgumentNullException(nameof(klaviyoAPI));
 }
Example #16
0
 public RoutesController(IHttpContextAccessor httpContextAccessor, IIOServiceContext context, IStorePickupService storePickupService)
 {
     this._httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     this._context             = context ?? throw new ArgumentNullException(nameof(context));
     this._storePickupService  = storePickupService ?? throw new ArgumentNullException(nameof(storePickupService));
 }
 public RoutesController(IIOServiceContext context, IProductService productService)
 {
     _context        = context;
     _productService = productService;
 }
Example #18
0
 public EventsController(IProductReviewService productReviewService, IIOServiceContext context)
 {
     this._productReviewService = productReviewService ?? throw new ArgumentNullException(nameof(productReviewService));
     this._context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public RoutesController(IFlowFinancePaymentService flowFinancePaymentService, IIOServiceContext context)
 {
     this._flowFinancePaymentService = flowFinancePaymentService ?? throw new ArgumentNullException(nameof(flowFinancePaymentService));
     this._context = context ?? throw new ArgumentNullException(nameof(context));
 }
Example #20
0
 public RoutesController(IIOServiceContext context)
 {
     this._context = context ?? throw new ArgumentNullException(nameof(context));
 }
Example #21
0
 public RoutesController(IIOServiceContext context, IWishListRepository wishListRepository)
 {
     this._context            = context ?? throw new ArgumentNullException(nameof(context));
     this._wishListRepository = wishListRepository ?? throw new ArgumentNullException(nameof(wishListRepository));
 }