Example #1
0
 public JournalAccountModel Update(int businessId, JournalAccountModel model)
 {
     return(ApiRequest <JournalAccountModel, JournalAccountModel>($"/business/{businessId}/accounts/{model.Id}", model, Method.PUT));
 }
Example #2
0
 public JournalAccountModel Create(int businessId, JournalAccountModel model)
 {
     return(ApiRequest <JournalAccountModel, JournalAccountModel>($"/business/{businessId}/accounts", model, Method.POST));
 }
Example #3
0
 /// <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));
 }
Example #4
0
 /// <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));
 }
Example #5
0
 /// <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));
 }
Example #6
0
 /// <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));
 }