/// <summary> /// 事業所の詳細情報の取得 /// </summary> /// <remarks> /// ユーザが所属する事業所の詳細を取得する /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// 事業所ID /// </param> /// <param name='details'> /// 取得情報に勘定科目・税区分コード・税区分・品目・取引先・部門・メモタグ・口座の一覧を含める /// </param> /// <param name='accountItems'> /// 取得情報に勘定科目一覧を含める /// </param> /// <param name='taxes'> /// 取得情報に税区分コード・税区分一覧を含める /// </param> /// <param name='items'> /// 取得情報に品目一覧を含める /// </param> /// <param name='partners'> /// 取得情報に取引先一覧を含める /// </param> /// <param name='sections'> /// 取得情報に部門一覧を含める /// </param> /// <param name='tags'> /// 取得情報にメモタグ一覧を含める /// </param> /// <param name='walletables'> /// 取得情報に口座一覧を含める /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CompaniesShowResponse> GetAsync(this ICompanies operations, int id, bool?details = default(bool?), bool?accountItems = default(bool?), bool?taxes = default(bool?), bool?items = default(bool?), bool?partners = default(bool?), bool?sections = default(bool?), bool?tags = default(bool?), bool?walletables = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(id, details, accountItems, taxes, items, partners, sections, tags, walletables, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get entity from spice_companies by key /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='spiceCompanyid'> /// key: spice_companyid /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MicrosoftDynamicsCRMspiceCompany> GetByKeyAsync(this ICompanies operations, string spiceCompanyid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByKeyWithHttpMessagesAsync(spiceCompanyid, select, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// 事業所情報の更新 /// </summary> /// <remarks> /// ユーザが所属する事業所の情報を更新する /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// 事業所ID /// </param> /// <param name='parameters'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CompaniesUpdateResponse> UpdateAsync(this ICompanies operations, int id, UpdateCompanyParams parameters = default(UpdateCompanyParams), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(id, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get entities from spice_companies /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='top'> /// </param> /// <param name='skip'> /// </param> /// <param name='search'> /// </param> /// <param name='filter'> /// </param> /// <param name='count'> /// </param> /// <param name='orderby'> /// Order items by property values /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CompaniesGetResponseModel> GetAsync(this ICompanies operations, int?top = default(int?), int?skip = default(int?), string search = default(string), string filter = default(string), bool?count = default(bool?), IList <string> orderby = default(IList <string>), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(top, skip, search, filter, count, orderby, select, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// 事業所一覧の取得 /// </summary> /// <remarks> /// ユーザが所属する事業所の一覧を取得する /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ListOKResponse> ListAsync(this ICompanies operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Add new entity to spice_companies /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// New entity /// </param> /// <param name='prefer'> /// Required in order for the service to return a JSON representation of the /// object. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MicrosoftDynamicsCRMspiceCompany> CreateAsync(this ICompanies operations, MicrosoftDynamicsCRMspiceCompany body, string prefer = "return=representation", CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(body, prefer, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Add new entity to spice_companies /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// New entity /// </param> /// <param name='prefer'> /// Required in order for the service to return a JSON representation of the /// object. /// </param> public static MicrosoftDynamicsCRMspiceCompany Create(this ICompanies operations, MicrosoftDynamicsCRMspiceCompany body, string prefer = "return=representation") { return(operations.CreateAsync(body, prefer).GetAwaiter().GetResult()); }
/// <summary> /// Get entities from spice_companies /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='top'> /// </param> /// <param name='skip'> /// </param> /// <param name='search'> /// </param> /// <param name='filter'> /// </param> /// <param name='count'> /// </param> /// <param name='orderby'> /// Order items by property values /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> public static CompaniesGetResponseModel Get(this ICompanies operations, int?top = default(int?), int?skip = default(int?), string search = default(string), string filter = default(string), bool?count = default(bool?), IList <string> orderby = default(IList <string>), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>)) { return(operations.GetAsync(top, skip, search, filter, count, orderby, select, expand).GetAwaiter().GetResult()); }
/// <summary> /// Update entity in spice_companies /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='spiceCompanyid'> /// key: spice_companyid /// </param> /// <param name='body'> /// New property values /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task UpdateAsync(this ICompanies operations, string spiceCompanyid, MicrosoftDynamicsCRMspiceCompany body, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.UpdateWithHttpMessagesAsync(spiceCompanyid, body, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Update entity in spice_companies /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='spiceCompanyid'> /// key: spice_companyid /// </param> /// <param name='body'> /// New property values /// </param> public static void Update(this ICompanies operations, string spiceCompanyid, MicrosoftDynamicsCRMspiceCompany body) { operations.UpdateAsync(spiceCompanyid, body).GetAwaiter().GetResult(); }
/// <summary> /// Delete entity from spice_companies /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='spiceCompanyid'> /// key: spice_companyid /// </param> /// <param name='ifMatch'> /// ETag /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this ICompanies operations, string spiceCompanyid, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(spiceCompanyid, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Add new entity to spice_companies /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// New entity /// </param> /// <param name='prefer'> /// Required in order for the service to return a JSON representation of the /// object. /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse <MicrosoftDynamicsCRMspiceCompany> CreateWithHttpMessages(this ICompanies operations, MicrosoftDynamicsCRMspiceCompany body, string prefer = "return=representation", Dictionary <string, List <string> > customHeaders = null) { return(operations.CreateWithHttpMessagesAsync(body, prefer, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Get entity from spice_companies by key /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='spiceCompanyid'> /// key: spice_companyid /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> public static MicrosoftDynamicsCRMspiceCompany GetByKey(this ICompanies operations, string spiceCompanyid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>)) { return(operations.GetByKeyAsync(spiceCompanyid, select, expand).GetAwaiter().GetResult()); }
/// <summary> /// Delete entity from spice_companies /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='spiceCompanyid'> /// key: spice_companyid of spice_company /// </param> /// <param name='ifMatch'> /// ETag /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse DeleteWithHttpMessages(this ICompanies operations, string spiceCompanyid, string ifMatch = default(string), Dictionary <string, List <string> > customHeaders = null) { return(operations.DeleteWithHttpMessagesAsync(spiceCompanyid, ifMatch, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Update entity in spice_companies /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='spiceCompanyid'> /// key: spice_companyid of spice_company /// </param> /// <param name='body'> /// New property values /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse UpdateWithHttpMessages(this ICompanies operations, string spiceCompanyid, MicrosoftDynamicsCRMspiceCompany body, Dictionary <string, List <string> > customHeaders = null) { return(operations.UpdateWithHttpMessagesAsync(spiceCompanyid, body, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Get entity from spice_companies by key /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='spiceCompanyid'> /// key: spice_companyid of spice_company /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse <MicrosoftDynamicsCRMspiceCompany> GetByKeyWithHttpMessages(this ICompanies operations, string spiceCompanyid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), Dictionary <string, List <string> > customHeaders = null) { return(operations.GetByKeyWithHttpMessagesAsync(spiceCompanyid, select, expand, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
public Manager(IGuests guests, ICompanies companies, ITemplates templates) { _guests = guests; _companies = companies; _templates = templates; }
/// <summary> /// Delete entity from spice_companies /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='spiceCompanyid'> /// key: spice_companyid /// </param> /// <param name='ifMatch'> /// ETag /// </param> public static void Delete(this ICompanies operations, string spiceCompanyid, string ifMatch = default(string)) { operations.DeleteAsync(spiceCompanyid, ifMatch).GetAwaiter().GetResult(); }
public PaymentService(int numberOfInstallments, Contract contract, ICompanies companies) { NumberOfInstallments = numberOfInstallments; Contract = contract; Companies = companies; }
/// <summary> /// Get entities from spice_companies /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='top'> /// </param> /// <param name='skip'> /// </param> /// <param name='search'> /// </param> /// <param name='filter'> /// </param> /// <param name='count'> /// </param> /// <param name='orderby'> /// Order items by property values /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse <MicrosoftDynamicsCRMspiceCompanyCollection> GetWithHttpMessages(this ICompanies operations, int?top = default(int?), int?skip = default(int?), string search = default(string), string filter = default(string), bool?count = default(bool?), IList <string> orderby = default(IList <string>), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), Dictionary <string, List <string> > customHeaders = null) { return(operations.GetWithHttpMessagesAsync(top, skip, search, filter, count, orderby, select, expand, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }