Beispiel #1
0
        public Api WithHost(string host)
        {
            this.Host = host;

            this.campaigns       = null;
            this.customers       = null;
            this.distributions   = null;
            this.events          = null;
            this.orders          = null;
            this.products        = null;
            this.promotions      = null;
            this.redemptions     = null;
            this.segments        = null;
            this.validations     = null;
            this.validationRules = null;
            this.vouchers        = null;
            this.consents        = null;

            if (host == null)
            {
                this.Host = Core.Constants.HostApi;
            }

            return(this);
        }
Beispiel #2
0
        public Api WithPort(int?port)
        {
            this.Port = port;

            this.campaigns       = null;
            this.customers       = null;
            this.distributions   = null;
            this.events          = null;
            this.orders          = null;
            this.products        = null;
            this.promotions      = null;
            this.redemptions     = null;
            this.segments        = null;
            this.validations     = null;
            this.validationRules = null;
            this.vouchers        = null;
            this.consents        = null;

            return(this);
        }
Beispiel #3
0
        public Api WithVersion(ApiVersion apiVersion)
        {
            this.Version = apiVersion;

            this.campaigns       = null;
            this.customers       = null;
            this.distributions   = null;
            this.events          = null;
            this.orders          = null;
            this.products        = null;
            this.promotions      = null;
            this.redemptions     = null;
            this.segments        = null;
            this.validations     = null;
            this.validationRules = null;
            this.vouchers        = null;
            this.consents        = null;

            return(this);
        }
Beispiel #4
0
        public Api WithoutSSL()
        {
            this.Secure = false;

            this.campaigns       = null;
            this.customers       = null;
            this.distributions   = null;
            this.events          = null;
            this.orders          = null;
            this.products        = null;
            this.promotions      = null;
            this.redemptions     = null;
            this.segments        = null;
            this.validations     = null;
            this.validationRules = null;
            this.vouchers        = null;
            this.consents        = null;

            return(this);
        }