kiotviet-client-sdk - v0.4.0
    Preparing search index...

    Class CustomerHandler

    Index

    Constructors

    Methods

    • Delete a customer

      Parameters

      • customerId: number

        The ID of the customer to delete Documentation: DELETE /customers/{id}

      Returns Promise<void>

    • Get customer by contact number

      Parameters

      • contactNumber: string

        The customer's contact number

      Returns Promise<Customer | null>

    • Get a customer by their ID

      Parameters

      • customerId: number

        The ID of the customer to retrieve Documentation: GET /customers/{id}

      Returns Promise<Customer>

    • Update an existing customer

      Parameters

      • customerId: number

        The ID of the customer to update

      • customerData: Partial<CustomerUpdateParams>

        The customer data to update Documentation: PUT /customers/{id}

      Returns Promise<Customer>