MCPcopy Create free account
hub / github.com/dailydotdev/apps / fetchPricingMetadata

Function fetchPricingMetadata

packages/shared/src/graphql/paddle.ts:192–200  ·  view source on GitHub ↗
(
  type: PurchaseType,
)

Source from the content-addressed store, hash-verified

190`;
191
192export const fetchPricingMetadata = async (
193 type: PurchaseType,
194): Promise<ProductPricingMetadata[]> => {
195 const { pricingMetadata } = await gqlClient.request<{
196 pricingMetadata: ProductPricingMetadata[];
197 }>(PRICING_METADATA_QUERY, { type });
198
199 return pricingMetadata;
200};
201
202export enum PricingCaptionColor {
203 Success = 'success',

Callers 2

StoreKitSubProviderFunction · 0.90
coresPricesQueryOptionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected