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