/// <summary> /// Categorize an Uncategorized transaction as credit note refund. /// </summary> /// <param name="transactionId">The id of the transaction.</param> /// <param name="creditNoteRefund">The credit note refund data to use.</param> /// <returns>A response indicating whether the request was successful.</returns> public async Task <bool> CategorizeAsCreditNoteRefund(string transactionId, CreditNoteRefund creditNoteRefund) { var response = await PostDataAsync <CreditNoteRefund, ZohoBooksMessage> (string.Format("uncategorized/{0}/categorize/creditnoterefunds", transactionId), creditNoteRefund, OrganizationIdFilter); return(response.Code == 0); }
/// <summary> /// Update the refunded transaction. /// </summary> /// <param name="creditnoteId">The id of the credit note to refund.</param> /// <param name="creditNoteRefundId">The id of the refund to change.</param> /// <param name="creditnoteRefund">Credit note data to update with.</param> /// <returns>The credit note after it is refunded.</returns> public async Task <CreditNoteRefund> UpdateCreditNoteRefundAsync(string creditnoteId, string creditnoteRefundId, CreditNoteRefund creditNoteRefund) { var response = await PutDataAsync <CreditNoteRefund, ZohoBooksResponse <CreditNoteRefund> > (string.Format("{0}/refunds/{1}", creditnoteId, creditnoteRefundId), creditNoteRefund, OrganizationIdFilter); return(response.Resource); }