Ejemplo n.º 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);
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }