orb-billing
Version:
The official TypeScript library for the Orb API
25 lines • 1.09 kB
JavaScript
;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExternalPriceID = void 0;
const resource_1 = require("../../resource.js");
class ExternalPriceID extends resource_1.APIResource {
/**
* This endpoint allows you to update the `metadata` property on a price. If you
* pass null for the metadata value, it will clear any existing metadata for that
* price.
*/
update(externalPriceId, body, options) {
return this._client.put(`/prices/external_price_id/${externalPriceId}`, { body, ...options });
}
/**
* This endpoint returns a price given an external price id. See the
* [price creation API](/api-reference/price/create-price) for more information
* about external price aliases.
*/
fetch(externalPriceId, options) {
return this._client.get(`/prices/external_price_id/${externalPriceId}`, options);
}
}
exports.ExternalPriceID = ExternalPriceID;
//# sourceMappingURL=external-price-id.js.map