/// <summary> /// 連携サービス一覧の取得 <h2 id=\"\">概要</h2> <p>連携しているサービス一覧を取得する</p> <h2 id=\"_2\">定義</h2> <ul> <li>type <ul> <li>bank_account : 銀行口座</li> <li>credit_card : クレジットカード</li> <li>wallet : その他の決済口座</li> </ul> </li> </ul> /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="offset">取得レコードのオフセット (デフォルト: 0) (optional)</param> /// <param name="limit">取得レコードの件数 (デフォルト: 20, 最小: 1, 最大: 500) (optional)</param> /// <param name="type">サービス種別 (optional)</param> /// <returns>ApiResponse of InlineResponse2001</returns> public Freee.Accounting.Client.ApiResponse <InlineResponse2001> GetBanksWithHttpInfo(int?offset = default(int?), int?limit = default(int?), string type = default(string)) { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; var localVarContentType = Freee.Accounting.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Freee.Accounting.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (offset != null) { localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "offset", offset)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } if (type != null) { localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "type", type)); } // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = this.Client.Get <InlineResponse2001>("/api/1/banks", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetBanks", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// 連携サービス一覧の取得 <h2 id=\"\">概要</h2> <p>連携しているサービス一覧を取得する</p> <h2 id=\"_2\">定義</h2> <ul> <li>type <ul> <li>bank_account : 銀行口座</li> <li>credit_card : クレジットカード</li> <li>wallet : その他の決済口座</li> </ul> </li> </ul> /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="offset">開始位置 (optional)</param> /// <param name="limit">取得上限数,最大500件 (optional)</param> /// <param name="type">サービス種別 (optional)</param> /// <returns>Task of ApiResponse (BanksIndexResponse)</returns> public async System.Threading.Tasks.Task <Freee.Accounting.Client.ApiResponse <BanksIndexResponse> > GetBanksAsyncWithHttpInfo(int?offset = default(int?), int?limit = default(int?), string type = default(string)) { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; foreach (var _contentType in _contentTypes) { localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType); } foreach (var _accept in _accepts) { localVarRequestOptions.HeaderParameters.Add("Accept", _accept); } if (offset != null) { localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "offset", offset)); } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } if (type != null) { localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "type", type)); } // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync <BanksIndexResponse>("/api/1/banks", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetBanks", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// 事業所に所属するユーザー一覧の取得 <h2 id=\"\">概要</h2> <p>事業所に所属するユーザーの一覧を取得する</p> /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="companyId">事業所ID</param> /// <param name="limit">取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 3000) (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (InlineResponse20015)</returns> public async System.Threading.Tasks.Task <Freee.Accounting.Client.ApiResponse <InlineResponse20015> > GetUsersWithHttpInfoAsync(int companyId, int?limit = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; var localVarContentType = Freee.Accounting.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Freee.Accounting.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "company_id", companyId)); if (limit != null) { localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); } // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync <InlineResponse20015>("/api/1/users", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUsers", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// ユーザー情報の更新 <h2 id=\"\">概要</h2> <p>ユーザー情報を更新する</p> /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userParams">ユーザー情報の更新 (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (UserResponse)</returns> public async System.Threading.Tasks.Task <Freee.Accounting.Client.ApiResponse <UserResponse> > UpdateUserWithHttpInfoAsync(UserParams userParams = default(UserParams), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { "application/json", "application/x-www-form-urlencoded" }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; var localVarContentType = Freee.Accounting.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Freee.Accounting.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = userParams; // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync <UserResponse>("/api/1/users/me", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateUser", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// フォーム用選択項目情報の取得 <h2 id=\"\">概要</h2> <p>指定した事業所のフォーム用選択項目情報を取得する</p> /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="companyId">事業所ID</param> /// <param name="includes">取得する項目(項目: account_item) (optional)</param> /// <returns>ApiResponse of SelectablesIndexResponse</returns> public Freee.Accounting.Client.ApiResponse <SelectablesIndexResponse> GetFormsSelectablesWithHttpInfo(int companyId, string includes = default(string)) { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; var localVarContentType = Freee.Accounting.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Freee.Accounting.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "company_id", companyId)); if (includes != null) { localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "includes", includes)); } // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = this.Client.Get <SelectablesIndexResponse>("/api/1/forms/selectables", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetFormsSelectables", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// 税区分コードの取得 <h2 id=\"\">概要</h2> <p>税区分コードを取得する</p> /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="code">税区分コード</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (TaxResponse)</returns> public async System.Threading.Tasks.Task <Freee.Accounting.Client.ApiResponse <TaxResponse> > GetTaxCodeWithHttpInfoAsync(int code, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; var localVarContentType = Freee.Accounting.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Freee.Accounting.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("code", Freee.Accounting.Client.ClientUtils.ParameterToString(code)); // path parameter // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync <TaxResponse>("/api/1/taxes/codes/{code}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetTaxCode", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// 申請経路の取得 <h2 id=\"\">概要</h2> <p>指定した事業所の申請経路を取得する</p> <p>各種申請APIの使い方については、<a href=\"https://developer.freee.co.jp/tips/accounting-approval-requests\" target=\"_blank\">会計freeeの各種申請APIの使い方</a>をご参照ください</p> <h2 id=\"\">注意点</h2> <ul> <li> <p>申請経路、承認者の指定として部門役職データ連携を活用し、以下のいずれかを利用している各種申請と申請経路はAPI経由で参照は可能ですが、作成と更新、承認ステータスの変更ができません。</p> <ul> <li>役職指定(申請者の所属部門)</li> <li>役職指定(申請時に部門指定)</li> <li>部門および役職指定</li> </ul> </li> <li>個人アカウントの場合は、プレミアムプランでご利用できます。</li> <li>法人アカウントの場合は、ベーシックプラン、プロフェッショナルプラン、エンタープライズプランでご利用できます。</li> </ul> /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="id">経路申請ID</param> /// <param name="companyId">事業所ID</param> /// <returns>ApiResponse of ApprovalFlowRouteResponse</returns> public Freee.Accounting.Client.ApiResponse <ApprovalFlowRouteResponse> GetApprovalFlowRouteWithHttpInfo(int id, int companyId) { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; var localVarContentType = Freee.Accounting.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Freee.Accounting.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("id", Freee.Accounting.Client.ClientUtils.ParameterToString(id)); // path parameter localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "company_id", companyId)); // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = this.Client.Get <ApprovalFlowRouteResponse>("/api/1/approval_flow_routes/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetApprovalFlowRoute", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// ユーザー情報の更新 <h2 id=\"\">概要</h2> <p>ユーザー情報を更新する</p> /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="parameters">ユーザー情報の更新 (optional)</param> /// <returns>ApiResponse of UsersUpdateResponse</returns> public Freee.Accounting.Client.ApiResponse <UsersUpdateResponse> UpdateUserWithHttpInfo(UserUpdateParams parameters = default(UserUpdateParams)) { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { "application/json" }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; var localVarContentType = Freee.Accounting.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Freee.Accounting.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = parameters; // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = this.Client.Put <UsersUpdateResponse>("/api/1/users/me", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateUser", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// ログインユーザ情報の取得 <h2 id=\"\">概要</h2> <p>ユーザの情報を取得する</p> /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="companies">取得情報にユーザが所属する事業所一覧を含める (optional)</param> /// <returns>Task of ApiResponse (UsersMeResponse)</returns> public async System.Threading.Tasks.Task <Freee.Accounting.Client.ApiResponse <UsersMeResponse> > GetUsersMeAsyncWithHttpInfo(bool?companies = default(bool?)) { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; foreach (var _contentType in _contentTypes) { localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType); } foreach (var _accept in _accepts) { localVarRequestOptions.HeaderParameters.Add("Accept", _accept); } if (companies != null) { localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "companies", companies)); } // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync <UsersMeResponse>("/api/1/users/me", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetUsersMe", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// 税区分コード一覧の取得 <h2 id=\"\">概要</h2> <p>税区分コード一覧を取得する</p> /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <returns>ApiResponse of InlineResponse20012</returns> public Freee.Accounting.Client.ApiResponse <InlineResponse20012> GetTaxCodesWithHttpInfo() { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; var localVarContentType = Freee.Accounting.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Freee.Accounting.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = this.Client.Get <InlineResponse20012>("/api/1/taxes/codes", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetTaxCodes", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// ユーザー情報の更新 <h2 id=\"\">概要</h2> <p>ユーザー情報を更新する</p> /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="parameters">ユーザー情報の更新 (optional)</param> /// <returns>Task of ApiResponse (UsersUpdateResponse)</returns> public async System.Threading.Tasks.Task <Freee.Accounting.Client.ApiResponse <UsersUpdateResponse> > UpdateUserAsyncWithHttpInfo(UserUpdateParams parameters = default(UserUpdateParams)) { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { "application/json" }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; foreach (var _contentType in _contentTypes) { localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType); } foreach (var _accept in _accepts) { localVarRequestOptions.HeaderParameters.Add("Accept", _accept); } localVarRequestOptions.Data = parameters; // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync <UsersUpdateResponse>("/api/1/users/me", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UpdateUser", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// 税区分コード詳細一覧の取得 /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="companyId">事業所ID</param> /// <returns>Task of ApiResponse (TaxesCompaniesResponse)</returns> public async System.Threading.Tasks.Task <Freee.Accounting.Client.ApiResponse <TaxesCompaniesResponse> > GetTaxesCompaniesAsyncWithHttpInfo(int companyId) { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; foreach (var _contentType in _contentTypes) { localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType); } foreach (var _accept in _accepts) { localVarRequestOptions.HeaderParameters.Add("Accept", _accept); } localVarRequestOptions.PathParameters.Add("company_id", Freee.Accounting.Client.ClientUtils.ParameterToString(companyId)); // path parameter // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync <TaxesCompaniesResponse>("/api/1/taxes/companies/{company_id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetTaxesCompanies", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// 申請経路一覧の取得 <h2 id=\"\">概要</h2> <p>指定した事業所の申請経路一覧を取得する</p> <p>各種申請APIの使い方については、<a href=\"https://developer.freee.co.jp/tips/accounting-approval-requests\" target=\"_blank\">会計freeeの各種申請APIの使い方</a>をご参照ください</p> <h2 id=\"\">注意点</h2> <ul> <li> <p>申請経路、承認者の指定として部門役職データ連携を活用し、以下のいずれかを利用している各種申請と申請経路はAPI経由で参照は可能ですが、作成と更新、承認ステータスの変更ができません。</p> <ul> <li>役職指定(申請者の所属部門)</li> <li>役職指定(申請時に部門指定)</li> <li>部門および役職指定</li> </ul> </li> <li>個人アカウントの場合は、プレミアムプランでご利用できます。</li> <li>法人アカウントの場合は、ベーシックプラン、プロフェッショナルプラン、エンタープライズプランでご利用できます。</li> </ul> /// </summary> /// <exception cref="Freee.Accounting.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="companyId">事業所ID</param> /// <param name="includedUserId">経路に含まれるユーザーのユーザーID (optional)</param> /// <param name="usage">申請種別(各申請種別が使用できる申請経路に絞り込めます。例えば、ApprovalRequest を指定すると、各種申請が使用できる申請経路に絞り込めます。) * `TxnApproval` - 仕訳承認 * `ExpenseApplication` - 経費精算 * `PaymentRequest` - 支払依頼 * `ApprovalRequest` - 各種申請 * `DocApproval` - 請求書等 (見積書・納品書・請求書・発注書) (optional)</param> /// <param name="requestFormId">申請フォームID request_form_id指定時はusage条件をApprovalRequestに指定してください。指定しない場合無効になります。 (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApprovalFlowRoutesIndexResponse)</returns> public async System.Threading.Tasks.Task <Freee.Accounting.Client.ApiResponse <ApprovalFlowRoutesIndexResponse> > GetApprovalFlowRoutesWithHttpInfoAsync(int companyId, int?includedUserId = default(int?), string usage = default(string), int?requestFormId = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Freee.Accounting.Client.RequestOptions localVarRequestOptions = new Freee.Accounting.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; var localVarContentType = Freee.Accounting.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Freee.Accounting.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "company_id", companyId)); if (includedUserId != null) { localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "included_user_id", includedUserId)); } if (usage != null) { localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "usage", usage)); } if (requestFormId != null) { localVarRequestOptions.QueryParameters.Add(Freee.Accounting.Client.ClientUtils.ParameterToMultiMap("", "request_form_id", requestFormId)); } // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync <ApprovalFlowRoutesIndexResponse>("/api/1/approval_flow_routes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetApprovalFlowRoutes", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }