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); }
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); }
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); }
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); }