( type: PurchaseType, )
| 185 | `; |
| 186 | |
| 187 | export const fetchPricingMetadata = async ( |
| 188 | type: PurchaseType, |
| 189 | ): Promise<ProductPricingMetadata[]> => { |
| 190 | const { pricingMetadata } = await gqlClient.request<{ |
| 191 | pricingMetadata: ProductPricingMetadata[]; |
| 192 | }>(PRICING_METADATA_QUERY, { type }); |
| 193 | |
| 194 | return pricingMetadata; |
| 195 | }; |
| 196 | |
| 197 | export enum PricingCaptionColor { |
| 198 | Success = 'success', |
no outgoing calls
no test coverage detected