示例#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);
        }