# frozen_string_literal: true module Stigg module Fragment CouponFragment = <<~GRAPHQL fragment CouponFragment on Coupon { id discountValue type additionalMetaData refId name description createdAt updatedAt billingId billingLinkUrl type status syncStates { vendorIdentifier status } customers { id } } GRAPHQL PriceFragment = <<~GRAPHQL fragment PriceFragment on Price { billingModel billingPeriod billingId minUnitQuantity maxUnitQuantity billingCountryCode price { amount currency } tiersMode tiers { upTo unitPrice { amount currency } } feature { refId featureUnits featureUnitsPlural displayName description } } GRAPHQL TotalPriceFragment = <<~GRAPHQL fragment TotalPriceFragment on CustomerSubscriptionTotalPrice { subTotal { amount currency } total { amount currency } } GRAPHQL PackageEntitlementFragment = <<~GRAPHQL fragment PackageEntitlementFragment on PackageEntitlement { usageLimit hasUnlimitedUsage featureId resetPeriod hiddenFromWidgets isCustom displayNameOverride feature { featureType meterType featureUnits featureUnitsPlural displayName description refId additionalMetaData } } GRAPHQL AddonFragment = <<~GRAPHQL fragment AddonFragment on Addon { id refId billingId displayName description additionalMetaData entitlements { ...PackageEntitlementFragment } prices { ...PriceFragment } pricingType } GRAPHQL PlanFragment = <<~GRAPHQL fragment PlanFragment on Plan { id refId displayName description billingId versionNumber additionalMetaData product { ...ProductFragment } basePlan { refId displayName } entitlements { ...PackageEntitlementFragment } inheritedEntitlements { ...PackageEntitlementFragment } compatibleAddons { ...AddonFragment } prices { ...PriceFragment } pricingType defaultTrialConfig { duration units } } GRAPHQL CustomerResourceFragment = <<~GRAPHQL fragment CustomerResourceFragment on CustomerResource { resourceId } GRAPHQL SlimSubscriptionFragment = <<~GRAPHQL fragment SlimSubscriptionFragment on CustomerSubscription { id refId status additionalMetaData billingId billingLinkUrl effectiveEndDate currentBillingPeriodEnd pricingType latestInvoice { ...SubscriptionInvoiceFragment } paymentCollection resource { ...CustomerResourceFragment } experimentInfo { name id groupName groupType } prices { usageLimit price { ...PriceFragment } } totalPrice { ...TotalPriceFragment } plan { id refId } addons { quantity addon { id refId } } customer { id refId } } GRAPHQL SubscriptionScheduledUpdateData = <<~GRAPHQL fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate { subscriptionScheduleType scheduleStatus scheduledExecutionTime targetPackage { id refId displayName } scheduleVariables { ... on DowngradeChangeVariables { addonRefIds billingPeriod downgradePlanRefId } ... on BillingPeriodChangeVariables { billingPeriod } ... on UnitAmountChangeVariables { newUnitAmount featureId } ... on AddonChangeVariables { addonRefId newQuantity } } } GRAPHQL SubscriptionFutureUpdateData = <<~GRAPHQL fragment SubscriptionFutureUpdateData on SubscriptionFutureUpdate { subscriptionScheduleType scheduleStatus scheduledExecutionTime targetPackage { id refId displayName } scheduleVariables { ... on DowngradeChangeVariables { addonRefIds billingPeriod downgradePlanRefId } ... on BillingPeriodChangeVariables { billingPeriod } ... on UnitAmountChangeVariables { newUnitAmount featureId } ... on AddonChangeVariables { addonRefId newQuantity } } } GRAPHQL SubscriptionInvoiceFragment = <<~GRAPHQL fragment SubscriptionInvoiceFragment on SubscriptionInvoice { billingId status createdAt updatedAt requiresAction paymentUrl errorMessage } GRAPHQL SubscriptionFragment = <<~GRAPHQL fragment SubscriptionFragment on CustomerSubscription { id startDate endDate trialEndDate cancellationDate effectiveEndDate status refId currentBillingPeriodEnd additionalMetaData billingId billingLinkUrl latestInvoice { ...SubscriptionInvoiceFragment } paymentCollection resource { ...CustomerResourceFragment } experimentInfo { name groupType groupName id } prices { usageLimit price { ...PriceFragment } } totalPrice { ...TotalPriceFragment } pricingType plan { ...PlanFragment } addons { id quantity addon { ...AddonFragment } } scheduledUpdates { ...SubscriptionScheduledUpdateData } futureUpdates { ...SubscriptionFutureUpdateData } } GRAPHQL PromotionalEntitlementFragment = <<~GRAPHQL fragment PromotionalEntitlementFragment on PromotionalEntitlement { status usageLimit featureId hasUnlimitedUsage resetPeriod endDate isVisible feature { featureType meterType featureUnits featureUnitsPlural displayName description refId additionalMetaData } } GRAPHQL SlimCustomerFragment = <<~GRAPHQL fragment SlimCustomerFragment on Customer { id name email createdAt updatedAt refId billingId additionalMetaData } GRAPHQL CustomerFragment = <<~GRAPHQL fragment CustomerFragment on Customer { ...SlimCustomerFragment hasPaymentMethod hasActiveSubscription defaultPaymentExpirationMonth defaultPaymentExpirationYear defaultPaymentMethodLast4Digits trialedPlans { productId productRefId planRefId planId } experimentInfo { groupType groupName id name } coupon { ...CouponFragment } eligibleForTrial { productId productRefId eligible } promotionalEntitlements { ...PromotionalEntitlementFragment } } GRAPHQL CustomerWithSubscriptionsFragment = <<~GRAPHQL fragment CustomerWithSubscriptionsFragment on Customer { ...CustomerFragment subscriptions { ...SubscriptionFragment } } GRAPHQL SubscriptionPreviewFragment = <<~GRAPHQL fragment SubscriptionPreviewFragment on SubscriptionPreview { subTotal { amount currency } totalExcludingTax { amount currency } total { amount currency } taxDetails { displayName percentage inclusive } tax { amount currency } billingPeriodRange { start end } discount { type value durationType durationInMonths } subscription { subTotal { amount currency } totalExcludingTax { amount currency } total { amount currency } tax { amount currency } } proration { prorationDate credit { amount currency } debit { amount currency } netAmount { amount currency } } } GRAPHQL FeatureFragment = <<~GRAPHQL fragment FeatureFragment on EntitlementFeature { featureType meterType featureUnits featureUnitsPlural description displayName refId } GRAPHQL ResetPeriodConfigurationFragment = <<~GRAPHQL fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration { __typename ... on MonthlyResetPeriodConfig { monthlyAccordingTo } ... on WeeklyResetPeriodConfig { weeklyAccordingTo } } GRAPHQL UsageUpdatedFragment = <<~GRAPHQL fragment UsageUpdatedFragment on UsageMeasurementUpdated { customerId resourceId featureId currentUsage nextResetDate } GRAPHQL EntitlementFragment = <<~GRAPHQL fragment EntitlementFragment on Entitlement { isGranted accessDeniedReason customerId resourceId usageLimit hasUnlimitedUsage currentUsage requestedUsage entitlementUpdatedAt usageUpdatedAt nextResetDate resetPeriod resetPeriodConfiguration { ...ResetPeriodConfigurationFragment } feature { ...FeatureFragment } } GRAPHQL PaywallPackageEntitlementFragment = <<~GRAPHQL fragment PaywallPackageEntitlementFragment on PackageEntitlement { usageLimit hasUnlimitedUsage featureId resetPeriod hiddenFromWidgets displayNameOverride feature { featureType meterType featureUnits featureUnitsPlural displayName description refId additionalMetaData } } GRAPHQL PaywallAddonFragment = <<~GRAPHQL fragment PaywallAddonFragment on Addon { id refId billingId displayName description additionalMetaData billingId entitlements { ...PaywallPackageEntitlementFragment } prices { ...PriceFragment } additionalMetaData pricingType } GRAPHQL PaywallPlanFragment = <<~GRAPHQL fragment PaywallPlanFragment on Plan { id refId description displayName billingId product { ...ProductFragment } basePlan { refId displayName } entitlements { ...PaywallPackageEntitlementFragment } additionalMetaData inheritedEntitlements { ...PaywallPackageEntitlementFragment } prices { ...PriceFragment } pricingType defaultTrialConfig { duration units } compatibleAddons { ...PaywallAddonFragment } } GRAPHQL TypographyConfigurationFragment = <<~GRAPHQL fragment TypographyConfigurationFragment on TypographyConfiguration { fontFamily h1 { ...FontVariantFragment } h2 { ...FontVariantFragment } h3 { ...FontVariantFragment } body { ...FontVariantFragment } } GRAPHQL FontVariantFragment = <<~GRAPHQL fragment FontVariantFragment on FontVariant { fontSize fontWeight } GRAPHQL LayoutConfigurationFragment = <<~GRAPHQL fragment LayoutConfigurationFragment on PaywallLayoutConfiguration { alignment planWidth planMargin planPadding } GRAPHQL PaywallConfigurationFragment = <<~GRAPHQL fragment PaywallConfigurationFragment on PaywallConfiguration { palette { primary textColor backgroundColor borderColor currentPlanBackground } typography { ...TypographyConfigurationFragment } layout { ...LayoutConfigurationFragment } customCss } GRAPHQL PaywallCurrency = <<~GRAPHQL fragment PaywallCurrency on PaywallCurrency { code symbol } GRAPHQL ProductFragment = <<~GRAPHQL fragment ProductFragment on Product { refId displayName description additionalMetaData productSettings { downgradePlan { refId displayName } } } GRAPHQL EntitlementsUpdatedPayload = <<~GRAPHQL fragment EntitlementsUpdatedPayload on EntitlementsUpdated { customerId resourceId entitlements { ...EntitlementFragment } } GRAPHQL EntitlementUsageUpdated = <<~GRAPHQL fragment EntitlementUsageUpdated on UsageUpdated { usage { ...UsageUpdatedFragment } entitlement { ...EntitlementFragment } } GRAPHQL CustomerPortalFragment = <<~GRAPHQL fragment CustomerPortalFragment on CustomerPortal { subscriptions { ...CustomerPortalSubscriptionFragment } entitlements { ...CustomerPortalEntitlement } promotionalEntitlements { ...CustomerPortalPromotionalEntitlement } billingInformation { ...CustomerPortalBillingInformation } showWatermark billingPortalUrl canUpgradeSubscription configuration { ...CustomerPortalConfigurationFragment } resource { ...CustomerResourceFragment } } GRAPHQL CustomerPortalConfigurationFragment = <<~GRAPHQL fragment CustomerPortalConfigurationFragment on CustomerPortalConfiguration { palette { primary textColor backgroundColor borderColor currentPlanBackground iconsColor paywallBackgroundColor } typography { ...TypographyConfigurationFragment } customCss } GRAPHQL CustomerPortalSubscriptionPriceFragment = <<~GRAPHQL fragment CustomerPortalSubscriptionPriceFragment on CustomerPortalSubscriptionPrice { billingPeriod billingModel price { amount currency } feature { id refId displayName featureUnits featureUnitsPlural } } GRAPHQL CustomerPortalSubscriptionFragment = <<~GRAPHQL fragment CustomerPortalSubscriptionFragment on CustomerPortalSubscription { subscriptionId planName pricingType prices { ...CustomerPortalSubscriptionPriceFragment } pricing { unitQuantity billingPeriod billingModel pricingType usageBasedEstimatedBill price { amount currency } feature { featureUnits featureUnitsPlural displayName } } status trialRemainingDays billingPeriodRange { start end } totalPrice { subTotal { amount currency } total { amount currency } addonsTotal { amount currency } } addons { ...CustomerPortalSubscriptionAddon } scheduledUpdates { ...CustomerPortalSubscriptionScheduledUpdateData } } GRAPHQL CustomerPortalSubscriptionAddon = <<~GRAPHQL fragment CustomerPortalSubscriptionAddon on CustomerPortalAddon { addonId description displayName quantity } GRAPHQL CustomerPortalSubscriptionScheduledUpdateData = <<~GRAPHQL fragment CustomerPortalSubscriptionScheduledUpdateData on SubscriptionScheduledUpdate { subscriptionScheduleType scheduleStatus scheduledExecutionTime targetPackage { id refId displayName pricingType } scheduleVariables { ... on DowngradeChangeVariables { addonRefIds billingPeriod downgradePlanRefId } ... on BillingPeriodChangeVariables { billingPeriod } ... on UnitAmountChangeVariables { newUnitAmount featureId } ... on AddonChangeVariables { addonRefId newQuantity } } } GRAPHQL CustomerPortalEntitlement = <<~GRAPHQL fragment CustomerPortalEntitlement on Entitlement { isGranted usageLimit currentUsage hasUnlimitedUsage nextResetDate resetPeriod resetPeriodConfiguration { ...ResetPeriodConfigurationFragment } feature { ...FeatureFragment } } GRAPHQL CustomerPortalPromotionalEntitlement = <<~GRAPHQL fragment CustomerPortalPromotionalEntitlement on CustomerPortalPromotionalEntitlement { displayName hasUnlimitedUsage usageLimit period startDate endDate } GRAPHQL CustomerPortalBillingInformation = <<~GRAPHQL fragment CustomerPortalBillingInformation on CustomerPortalBillingInformation { email name defaultPaymentMethodLast4Digits defaultPaymentMethodId defaultPaymentMethodLast4Digits defaultPaymentExpirationMonth defaultPaymentExpirationYear } GRAPHQL MockPaywallPlanFragment = <<~GRAPHQL fragment MockPaywallPlanFragment on PaywallPlan { refId description displayName billingId additionalMetaData product { refId displayName description additionalMetaData } basePlan { refId displayName } entitlements { ...MockPaywallPackageEntitlementFragment } inheritedEntitlements { ...MockPaywallPackageEntitlementFragment } prices { ...MockPaywallPriceFragment } pricingType defaultTrialConfig { duration units } compatibleAddons { ...MockPaywallAddonFragment } } GRAPHQL MockPaywallPackageEntitlementFragment = <<~GRAPHQL fragment MockPaywallPackageEntitlementFragment on Entitlement { usageLimit hasUnlimitedUsage resetPeriod hiddenFromWidgets displayNameOverride feature { featureType meterType featureUnits featureUnitsPlural displayName description refId additionalMetaData } } GRAPHQL MockPaywallPriceFragment = <<~GRAPHQL fragment MockPaywallPriceFragment on PaywallPrice { billingModel billingPeriod billingId minUnitQuantity maxUnitQuantity billingCountryCode price { amount currency } tiersMode tiers { upTo unitPrice { amount currency } } feature { refId featureUnits featureUnitsPlural displayName } } GRAPHQL PaywallCalculatedPricePointsFragment = <<~GRAPHQL fragment PaywallCalculatedPricePointsFragment on PaywallPricePoint { planId additionalChargesMayApply billingPeriod amount currency billingCountryCode feature { refId featureUnits featureUnitsPlural displayName description } } GRAPHQL MockPaywallAddonFragment = <<~GRAPHQL fragment MockPaywallAddonFragment on PaywallAddon { refId displayName description additionalMetaData billingId entitlements { ...MockPaywallPackageEntitlementFragment } prices { ...MockPaywallPriceFragment } pricingType } GRAPHQL PaywallFragment = <<~GRAPHQL fragment PaywallFragment on Paywall { plans { ...PlanFragment } currency { ...PaywallCurrency } configuration { ...PaywallConfigurationFragment } customer { ...CustomerFragment } activeSubscriptions { ...SubscriptionFragment } resource { ...CustomerResourceFragment } paywallCalculatedPricePoints { ...PaywallCalculatedPricePointsFragment } } GRAPHQL UsageHistoryFragment = <<~GRAPHQL fragment UsageHistoryFragment on UsageHistory { startDate endDate usageMeasurements { date value isResetPoint } } GRAPHQL end module Mutation ProvisionCustomer = <<~GRAPHQL mutation ($input: ProvisionCustomerInput!) { provisionCustomer(input: $input) { customer { ...SlimCustomerFragment } subscriptionDecisionStrategy subscription { ...SlimSubscriptionFragment } } } #{Fragment::SlimCustomerFragment} #{Fragment::SlimSubscriptionFragment} #{Fragment::SubscriptionInvoiceFragment} #{Fragment::CustomerResourceFragment} #{Fragment::PriceFragment} #{Fragment::TotalPriceFragment} GRAPHQL ImportCustomerBulk = <<~GRAPHQL mutation ($input: ImportCustomerBulk!) { importCustomersBulk(input: $input) } GRAPHQL ImportCustomer = <<~GRAPHQL mutation ($input: ImportCustomerInput!) { importCustomer: importOneCustomer(input: $input) { ...SlimCustomerFragment } } #{Fragment::SlimCustomerFragment} GRAPHQL UpdateCustomer = <<~GRAPHQL mutation ($input: UpdateCustomerInput!) { updateCustomer: updateOneCustomer(input: $input) { ...SlimCustomerFragment } } #{Fragment::SlimCustomerFragment} GRAPHQL ProvisionSubscription = <<~GRAPHQL mutation ($input: ProvisionSubscriptionInput!) { provisionSubscription: provisionSubscriptionV2(input: $input) { checkoutUrl status subscription { ...SlimSubscriptionFragment } } } #{Fragment::SlimSubscriptionFragment} #{Fragment::SubscriptionInvoiceFragment} #{Fragment::CustomerResourceFragment} #{Fragment::PriceFragment} #{Fragment::TotalPriceFragment} GRAPHQL ImportSubscriptionsBulk = <<~GRAPHQL mutation ($input: ImportSubscriptionsBulk!) { importSubscriptionsBulk(input: $input) } GRAPHQL UpdateSubscription = <<~GRAPHQL mutation ($input: UpdateSubscriptionInput!) { updateSubscription: updateOneSubscription(input: $input) { ...SlimSubscriptionFragment } } #{Fragment::SlimSubscriptionFragment} #{Fragment::SubscriptionInvoiceFragment} #{Fragment::CustomerResourceFragment} #{Fragment::PriceFragment} #{Fragment::TotalPriceFragment} GRAPHQL CancelSubscription = <<~GRAPHQL mutation ($input: SubscriptionCancellationInput!) { cancelSubscription(input: $input) { ...SlimSubscriptionFragment } } #{Fragment::SlimSubscriptionFragment} #{Fragment::SubscriptionInvoiceFragment} #{Fragment::CustomerResourceFragment} #{Fragment::PriceFragment} #{Fragment::TotalPriceFragment} GRAPHQL EstimateSubscription = <<~GRAPHQL mutation ($input: EstimateSubscriptionInput!) { estimateSubscription(input: $input) { ...SubscriptionPreviewFragment } } #{Fragment::SubscriptionPreviewFragment} GRAPHQL EstimateSubscriptionUpdate = <<~GRAPHQL mutation ($input: EstimateSubscriptionUpdateInput!) { estimateSubscriptionUpdate(input: $input) { ...SubscriptionPreviewFragment } } #{Fragment::SubscriptionPreviewFragment} GRAPHQL CancelSubscriptionUpdates = <<~GRAPHQL mutation ( $input: SubscriptionUpdateScheduleCancellationInput! ) { cancelSchedule(input: $input) } GRAPHQL ReportUsage = <<~GRAPHQL mutation ($input: UsageMeasurementCreateInput!) { createUsageMeasurement(usageMeasurement: $input) { id currentUsage nextResetDate timestamp } } GRAPHQL ReportEvent = <<~GRAPHQL mutation ($input: UsageEventsReportInput!) { reportEvent(events: $input) } GRAPHQL ReportEntitlementCheckRequested = <<~GRAPHQL mutation ( $entitlementCheckRequested: EntitlementCheckRequested! ) { reportEntitlementCheckRequested( entitlementCheckRequested: $entitlementCheckRequested ) } GRAPHQL CreateSubscription = <<~GRAPHQL mutation ($input: SubscriptionInput!) { createSubscription(subscription: $input) { ...SlimSubscriptionFragment } } #{Fragment::SlimSubscriptionFragment} #{Fragment::SubscriptionInvoiceFragment} #{Fragment::CustomerResourceFragment} #{Fragment::PriceFragment} #{Fragment::TotalPriceFragment} GRAPHQL MigrateSubscriptionToLatest = <<~GRAPHQL mutation ($input: SubscriptionMigrationInput!) { migrateSubscriptionToLatest(input: $input) { subscriptionId } } GRAPHQL ArchiveCustomer = <<~GRAPHQL mutation ($input: ArchiveCustomerInput!) { archiveCustomer(input: $input) { customerId } } GRAPHQL end module Query GetCustomerById = <<~GRAPHQL query ($input: GetCustomerByRefIdInput!) { getCustomerByRefId(input: $input) { ...CustomerWithSubscriptionsFragment } } #{Fragment::CustomerWithSubscriptionsFragment} #{Fragment::CustomerFragment} #{Fragment::SlimCustomerFragment} #{Fragment::CouponFragment} #{Fragment::PromotionalEntitlementFragment} #{Fragment::SubscriptionFragment} #{Fragment::SubscriptionInvoiceFragment} #{Fragment::CustomerResourceFragment} #{Fragment::PriceFragment} #{Fragment::TotalPriceFragment} #{Fragment::PlanFragment} #{Fragment::ProductFragment} #{Fragment::PackageEntitlementFragment} #{Fragment::AddonFragment} #{Fragment::SubscriptionScheduledUpdateData} #{Fragment::SubscriptionFutureUpdateData} GRAPHQL GetActiveSubscriptions = <<~GRAPHQL query ($input: GetActiveSubscriptionsInput!) { getActiveSubscriptions(input: $input) { ...SubscriptionFragment } } #{Fragment::SubscriptionFragment} #{Fragment::SubscriptionInvoiceFragment} #{Fragment::CustomerResourceFragment} #{Fragment::PriceFragment} #{Fragment::TotalPriceFragment} #{Fragment::PlanFragment} #{Fragment::ProductFragment} #{Fragment::PackageEntitlementFragment} #{Fragment::AddonFragment} #{Fragment::SubscriptionScheduledUpdateData} #{Fragment::SubscriptionFutureUpdateData} GRAPHQL GetCoupons = <<~GRAPHQL query { coupons(filter: { status: { eq: ACTIVE } }, paging: { first: 50 }) { edges { node { ...CouponFragment } } } } #{Fragment::CouponFragment} GRAPHQL GetPaywall = <<~GRAPHQL query ($input: GetPaywallInput!) { paywall(input: $input) { ...PaywallFragment } } #{Fragment::PaywallFragment} #{Fragment::PlanFragment} #{Fragment::ProductFragment} #{Fragment::PackageEntitlementFragment} #{Fragment::AddonFragment} #{Fragment::PriceFragment} #{Fragment::PaywallCurrency} #{Fragment::PaywallConfigurationFragment} #{Fragment::TypographyConfigurationFragment} #{Fragment::FontVariantFragment} #{Fragment::LayoutConfigurationFragment} #{Fragment::CustomerFragment} #{Fragment::SlimCustomerFragment} #{Fragment::CouponFragment} #{Fragment::PromotionalEntitlementFragment} #{Fragment::SubscriptionFragment} #{Fragment::SubscriptionInvoiceFragment} #{Fragment::CustomerResourceFragment} #{Fragment::TotalPriceFragment} #{Fragment::SubscriptionScheduledUpdateData} #{Fragment::SubscriptionFutureUpdateData} #{Fragment::PaywallCalculatedPricePointsFragment} GRAPHQL GetEntitlements = <<~GRAPHQL query ($query: FetchEntitlementsQuery!) { entitlements: cachedEntitlements(query: $query) { ...EntitlementFragment } } #{Fragment::EntitlementFragment} #{Fragment::ResetPeriodConfigurationFragment} #{Fragment::FeatureFragment} GRAPHQL GetEntitlement = <<~GRAPHQL query ($query: FetchEntitlementQuery!) { entitlement(query: $query) { ...EntitlementFragment } } #{Fragment::EntitlementFragment} #{Fragment::ResetPeriodConfigurationFragment} #{Fragment::FeatureFragment} GRAPHQL GetProducts = <<~GRAPHQL query { products(paging: { first: 50 }) { edges { node { ...ProductFragment } } } } #{Fragment::ProductFragment} GRAPHQL GetSdkConfiguration = <<~GRAPHQL query { sdkConfiguration { sentryDsn isWidgetWatermarkEnabled } } GRAPHQL GetCustomerPortalByRefId = <<~GRAPHQL query ($input: CustomerPortalInput!) { customerPortal(input: $input) { ...CustomerPortalFragment } } #{Fragment::CustomerPortalFragment} #{Fragment::CustomerPortalSubscriptionFragment} #{Fragment::CustomerPortalSubscriptionPriceFragment} #{Fragment::CustomerPortalSubscriptionAddon} #{Fragment::CustomerPortalSubscriptionScheduledUpdateData} #{Fragment::CustomerPortalEntitlement} #{Fragment::ResetPeriodConfigurationFragment} #{Fragment::FeatureFragment} #{Fragment::CustomerPortalPromotionalEntitlement} #{Fragment::CustomerPortalBillingInformation} #{Fragment::CustomerPortalConfigurationFragment} #{Fragment::TypographyConfigurationFragment} #{Fragment::FontVariantFragment} #{Fragment::CustomerResourceFragment} GRAPHQL GetMockPaywall = <<~GRAPHQL query ($input: GetPaywallInput!) { mockPaywall(input: $input) { plans { ...MockPaywallPlanFragment } configuration { ...PaywallConfigurationFragment } } } #{Fragment::MockPaywallPlanFragment} #{Fragment::MockPaywallPackageEntitlementFragment} #{Fragment::MockPaywallPriceFragment} #{Fragment::MockPaywallAddonFragment} #{Fragment::PaywallConfigurationFragment} #{Fragment::TypographyConfigurationFragment} #{Fragment::FontVariantFragment} #{Fragment::LayoutConfigurationFragment} GRAPHQL UsageHistory = <<~GRAPHQL query ($usageHistoryInput: UsageHistoryInput!) { usageHistory(usageHistoryInput: $usageHistoryInput) { ...UsageHistoryFragment } } #{Fragment::UsageHistoryFragment} GRAPHQL EntitlementsUpdated = <<~GRAPHQL subscription { entitlementsUpdated { ...EntitlementsUpdatedPayload } } #{Fragment::EntitlementsUpdatedPayload} #{Fragment::EntitlementFragment} #{Fragment::ResetPeriodConfigurationFragment} #{Fragment::FeatureFragment} GRAPHQL UsageUpdated = <<~GRAPHQL subscription { usageUpdated { ...EntitlementUsageUpdated } } #{Fragment::EntitlementUsageUpdated} #{Fragment::UsageUpdatedFragment} #{Fragment::EntitlementFragment} #{Fragment::ResetPeriodConfigurationFragment} #{Fragment::FeatureFragment} GRAPHQL end end