import { APIResource } from "../../core/resource.js"; import * as DimensionalPriceGroupsAPI from "./dimensional-price-groups.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class ExternalDimensionalPriceGroupID extends APIResource { /** * This endpoint returns a dimensional price group identified by the external ID * you assigned it, rather than by its Orb ID. A dimensional price group partitions * the result of a billable metric by a set of dimensions, and the prices in the * group specify which partition their usage is derived from. * * @example * ```ts * const dimensionalPriceGroup = * await client.dimensionalPriceGroups.externalDimensionalPriceGroupID.retrieve( * 'external_dimensional_price_group_id', * ); * ``` */ retrieve(externalDimensionalPriceGroupID: string, options?: RequestOptions): APIPromise; /** * This endpoint can be used to update the `external_dimensional_price_group_id` * and `metadata` of an existing dimensional price group. Other fields on a * dimensional price group are currently immutable. * * @example * ```ts * const dimensionalPriceGroup = * await client.dimensionalPriceGroups.externalDimensionalPriceGroupID.update( * 'external_dimensional_price_group_id', * ); * ``` */ update(externalDimensionalPriceGroupID: string, body: ExternalDimensionalPriceGroupIDUpdateParams, options?: RequestOptions): APIPromise; } export interface ExternalDimensionalPriceGroupIDUpdateParams { /** * An optional user-defined ID for this dimensional price group resource, used * throughout the system as an alias for this dimensional price group. Use this * field to identify a dimensional price group by an existing identifier in your * system. */ external_dimensional_price_group_id?: string | null; /** * User-specified key/value pairs for the resource. Individual keys can be removed * by setting the value to `null`, and the entire metadata mapping can be cleared * by setting `metadata` to `null`. */ metadata?: { [key: string]: string | null; } | null; } export declare namespace ExternalDimensionalPriceGroupID { export { type ExternalDimensionalPriceGroupIDUpdateParams as ExternalDimensionalPriceGroupIDUpdateParams }; } //# sourceMappingURL=external-dimensional-price-group-id.d.ts.map