Ejemplo n.º 1
0
        public MivaConfig(MivaCredentials credentials, ThrottlingOptions throttlingOptions, NetworkOptions networkOptions)
        {
            Condition.Requires(credentials, "credentials").IsNotNull();
            Condition.Requires(throttlingOptions, "throttlingOptions").IsNotNull();
            Condition.Requires(networkOptions, "networkOptions").IsNotNull();

            this.Credentials              = credentials;
            this.ThrottlingOptions        = throttlingOptions;
            this.NetworkOptions           = networkOptions;
            this.ApiBaseUrl               = $"{ credentials.StoreUrl }/{ credentials.RootDirectory }/json.mvc";
            this.InventoryUpdateBatchSize = 100;
            this.OrdersPageSize           = 10;
            this.ProductsPageSize         = 100;
        }
Ejemplo n.º 2
0
 public MivaConfig(MivaCredentials credentials) : this(credentials, ThrottlingOptions.MivaDefaultThrottlingOptions, NetworkOptions.MivaDefaultNetworkOptions)
 {
 }