public static Opportunity Create(Opportunity opportunity) { return(OpportunityResource.CreateAsync(opportunity).Result); }
public static Opportunity Show(long opportunityId, Embed[] embed = null) { return(OpportunityResource.ShowAsync(opportunityId, embed).Result); }
public static OpportunityWrapper ShowMultiple(long[] opportunityIds, Embed[] embed = null) { return(OpportunityResource.ShowMultipleAsync(opportunityIds, embed).Result); }
public static CaseWrapper ListAssociatedCases(long opportunityId, int page = 1, int perPage = 20, Embed[] embed = null) { return(OpportunityResource.ListAssociatedCasesAsync(opportunityId, page, perPage, embed).Result); }
public static OpportunityWrapper ListByParty(long partyId, int page = 1, int perPage = 20, Embed[] embed = null) { return(OpportunityResource.ListByPartyAsync(partyId, page, perPage, embed).Result); }
public static OpportunityWrapper List(DateTime?since = null, int page = 1, int perPage = 20, Embed[] embed = null) { return(OpportunityResource.ListAsync(since, page, perPage, embed).Result); }
public static bool RemoveAdditionalParty(long opportunityId, long partyId) { return(OpportunityResource.RemoveAdditionalPartyAsync(opportunityId, partyId).Result); }
public static PartyWrapper ListAdditionalParties(long opportunityId, int page = 1, int perPage = 20, Embed[] embed = null) { return(OpportunityResource.ListAdditionalPartiesAsync(opportunityId, page, perPage, embed).Result); }
public static OpportunityWrapper SearchOpportunities(string query, int page = 1, int perPage = 20) { return(OpportunityResource.SearchOpportunitiesAsync(query, page, perPage).Result); }
public static OpportunityWrapper ListDeleted(DateTime since) { return(OpportunityResource.ListDeletedAsync(since).Result); }
public static bool Delete(long opportunityId) { return(OpportunityResource.DeleteAsync(opportunityId).Result); }
public static Opportunity Update(long opportunityId, Opportunity opportunity) { return(OpportunityResource.UpdateAsync(opportunityId, opportunity).Result); }