protected TComponents GetBookableOpportunityReference(OpportunityType opportunityType, Uri id) { var components = IdTemplate.GetOpportunityBookableIdComponents(id); if (components.OpportunityType != opportunityType) { throw new ArgumentOutOfRangeException("Provided opportunityType does not match provided id"); } return(components); }
protected Uri RenderOfferId(OpportunityType opportunityType, TComponents components) { return(IdTemplate.RenderOfferId(opportunityType, components)); }
/// <summary> /// Use OpportunityType from components /// </summary> /// <param name="components"></param> /// <returns></returns> protected Uri RenderOpportunityId(TComponents components) { return(IdTemplate.RenderOpportunityId(components)); }
/// <summary> /// Use OpportunityType from components /// </summary> /// <param name="components"></param> /// <returns></returns> protected Uri RenderOfferId(TComponents components) { return(IdTemplate.RenderOfferId(components)); }
/// <summary> /// Use OpportunityType from components /// </summary> /// <param name="components"></param> /// <returns></returns> protected string RenderOpportunityJsonLdType(TComponents components) { return(IdTemplate.RenderOpportunityJsonLdType(components)); }