public JournalAccountModel Update(int businessId, JournalAccountModel model) { return(ApiRequest <JournalAccountModel, JournalAccountModel>($"/business/{businessId}/accounts/{model.Id}", model, Method.PUT)); }
public JournalAccountModel Create(int businessId, JournalAccountModel model) { return(ApiRequest <JournalAccountModel, JournalAccountModel>($"/business/{businessId}/accounts", model, Method.POST)); }
/// <summary> /// Update an existing Journal Account /// </summary> /// <remarks> /// Update an existing journal account for the Business. /// </remarks> public JournalAccountModel UpdateAnExistingJournalAccount(int businessId, int id, JournalAccountModel request) { return(ApiRequest <JournalAccountModel, JournalAccountModel>($"/business/{businessId}/accounts/{id}", request, Method.PUT)); }
/// <summary> /// Create a new Journal Account /// </summary> /// <remarks> /// Create a new journal account for the Business. /// </remarks> public Task <JournalAccountModel> CreateANewJournalAccountAsync(int businessId, JournalAccountModel request, CancellationToken cancellationToken = default) { return(ApiRequestAsync <JournalAccountModel, JournalAccountModel>($"/business/{businessId}/accounts", request, Method.POST, cancellationToken)); }
/// <summary> /// Create a new Journal Account /// </summary> /// <remarks> /// Create a new journal account for the Business. /// </remarks> public JournalAccountModel CreateANewJournalAccount(int businessId, JournalAccountModel request) { return(ApiRequest <JournalAccountModel, JournalAccountModel>($"/business/{businessId}/accounts", request, Method.POST)); }
/// <summary> /// Update an existing Journal Account /// </summary> /// <remarks> /// Update an existing journal account for the Business. /// </remarks> public Task <JournalAccountModel> UpdateAnExistingJournalAccountAsync(int businessId, int id, JournalAccountModel request, CancellationToken cancellationToken = default) { return(ApiRequestAsync <JournalAccountModel, JournalAccountModel>($"/business/{businessId}/accounts/{id}", request, Method.PUT, cancellationToken)); }