Пример #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);
        }
Пример #2
0
 public Api WithoutSSL()
 {
     this.Secure      = false;
     this.redemptions = null;
     this.products    = null;
     this.vouchers    = null;
     this.customers   = null;
     this.campaigns   = null;
     return(this);
 }
Пример #3
0
        public Api WithEndpoint(string endpoint)
        {
            this.Endpoint    = endpoint;
            this.redemptions = null;
            this.products    = null;
            this.vouchers    = null;
            this.customers   = null;
            this.campaigns   = null;

            if (endpoint == null)
            {
                this.Endpoint = Core.Constants.EndpointApi;
            }

            return(this);
        }
Пример #4
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);
        }
Пример #5
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);
        }
Пример #6
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);
        }