import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; export declare class Batches extends ClientSDK { /** * Create a batch * * @remarks * Creates a new batch object for purchasing shipping labels for many shipments at once. Batches are created asynchronously. This means that the API response won't include your batch shipments yet. You need to retrieve the batch later to verify that all batch shipments are valid. */ create(request: components.BatchCreateRequest, options?: RequestOptions): Promise; /** * Retrieve a batch * * @remarks * Returns a batch using an object ID.
Batch shipments are displayed 100 at a time. You can iterate * through each `page` using the `?page= query` parameter. You can also filter based on batch shipment * status, for example, by passing a query param like `?object_results=creation_failed`.
* For more details on filtering results, see our guide on filtering. */ get(batchId: string, page?: number | undefined, results?: number | undefined, options?: RequestOptions): Promise; /** * Add shipments to a batch * * @remarks * Adds batch shipments to an existing batch. */ addShipments(requestBody: Array, batchId: string, options?: RequestOptions): Promise; /** * Purchase a batch * * @remarks * Purchases an existing batch with a status of `VALID`. * Once you send a POST request to the purchase endpoint the batch status will change to `PURCHASING`. * When all the shipments are purchased, the status will change to `PURCHASED` and you will receive a * `batch_purchased` webhook indicating that the batch has been purchased */ purchase(batchId: string, options?: RequestOptions): Promise; /** * Remove shipments from a batch * * @remarks * Removes shipments from an existing batch shipment. */ removeShipments(requestBody: Array, batchId: string, options?: RequestOptions): Promise; } //# sourceMappingURL=batches.d.ts.map