import * as utils from "../internal/utils"; import * as operations from "../sdk/models/operations"; import { SDKConfiguration } from "./sdk"; import { AxiosRequestConfig } from "axios"; /** * Bill credit notes */ export declare class BillCreditNotes { private sdkConfiguration; constructor(sdkConfig: SDKConfiguration); /** * Create bill credit note * * @remarks * The *Create bill credit note* endpoint creates a new [bill credit note](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) for a given company's connection. * * [Bill credit notes](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit. * * **Integration-specific behaviour** * * Required data may vary by integration. To see what data to post, first call [Get create/update bill credit note model](https://docs.codat.io/accounting-api#/operations/get-create-update-billCreditNotes-model). * * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billCreditNotes) for integrations that support creating an account. * */ create(req: operations.CreateBillCreditNoteRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; /** * Get bill credit note * * @remarks * The *Get bill credit note* endpoint returns a single bill credit note for a given billCreditNoteId. * * [Bill credit notes](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit. * * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billCreditNotes) for integrations that support getting a specific bill credit note. * * Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). * */ get(req: operations.GetBillCreditNoteRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; /** * Get create/update bill credit note model * * @remarks * The *Get create/update bill credit note model* endpoint returns the expected data for the request payload when creating and updating a [bill credit note](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) for a given company and integration. * * [Bill credit notes](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit. * * **Integration-specific behaviour** * * See the *response examples* for integration-specific indicative models. * * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billCreditNotes) for integrations that support creating and updating a bill credit note. * */ getCreateUpdateModel(req: operations.GetCreateUpdateBillCreditNotesModelRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; /** * List bill credit notes * * @remarks * The *List bill credit notes* endpoint returns a list of [bill credit notes](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) for a given company's connection. * * [Bill credit notes](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit. * * Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). * */ list(req: operations.ListBillCreditNotesRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; /** * Update bill credit note * * @remarks * The *Update bill credit note* endpoint updates an existing [bill credit note](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) for a given company's connection. * * [Bill credit notes](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit. * * **Integration-specific behaviour** * * Required data may vary by integration. To see what data to post, first call [Get create/update bill credit note model](https://docs.codat.io/accounting-api#/operations/get-create-update-billCreditNotes-model). * * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billCreditNotes) for integrations that support creating an account. * */ update(req: operations.UpdateBillCreditNoteRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; /** * Upload bill credit note attachment * * @remarks * --- * stoplight-id: c26f5b1b19168 * --- * * The *Upload bill credit note attachment* endpoint uploads an attachment and assigns it against a specific `billCreditNoteId`. * * [Bill Credit Notes](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit. * * **Integration-specific behaviour** * * For more details on supported file types by integration see [Attachments](https://docs.codat.io/accounting-api#/schemas/Attachment). * * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billCreditNotes) for integrations that support uploading a bill credit note attachment. * */ uploadAttachment(req: operations.UploadBillCreditNoteAttachmentRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; }