lib/stigg/generated/operations.rb in stigg-api-client-1.51.2 vs lib/stigg/generated/operations.rb in stigg-api-client-1.52.0

- old
+ new

@@ -254,27 +254,11 @@ id refId displayName } scheduleVariables { - __typename - ... on DowngradeChangeVariables { - addonRefIds - billingPeriod - downgradePlanRefId - } - ... on BillingPeriodChangeVariables { - billingPeriod - } - ... on UnitAmountChangeVariables { - newUnitAmount - featureId - } - ... on AddonChangeVariables { - addonRefId - newQuantity - } + ...ScheduleVariablesFragment } } GRAPHQL SubscriptionFutureUpdateData = <<~GRAPHQL @@ -286,27 +270,11 @@ id refId displayName } scheduleVariables { - __typename - ... on DowngradeChangeVariables { - addonRefIds - billingPeriod - downgradePlanRefId - } - ... on BillingPeriodChangeVariables { - billingPeriod - } - ... on UnitAmountChangeVariables { - newUnitAmount - featureId - } - ... on AddonChangeVariables { - addonRefId - newQuantity - } + ...ScheduleVariablesFragment } } GRAPHQL SubscriptionInvoiceFragment = <<~GRAPHQL @@ -1049,27 +1017,11 @@ refId displayName pricingType } scheduleVariables { - __typename - ... on DowngradeChangeVariables { - addonRefIds - billingPeriod - downgradePlanRefId - } - ... on BillingPeriodChangeVariables { - billingPeriod - } - ... on UnitAmountChangeVariables { - newUnitAmount - featureId - } - ... on AddonChangeVariables { - addonRefId - newQuantity - } + ...ScheduleVariablesFragment } } GRAPHQL CustomerPortalEntitlementFragment = <<~GRAPHQL @@ -1318,10 +1270,52 @@ currentUsage nextResetDate timestamp } GRAPHQL + + ScheduleVariablesFragment = <<~GRAPHQL + fragment ScheduleVariablesFragment on ScheduleVariables { + __typename + ... on PlanChangeVariables { + planRefId + changeType + billingPeriod + billableFeatures { + featureId + quantity + } + addons { + addonRefId + quantity + } + } + ... on DowngradeChangeVariables { + downgradePlanRefId + billingPeriod + billableFeatures { + featureId + quantity + } + addons { + addonRefId + quantity + } + } + ... on BillingPeriodChangeVariables { + billingPeriod + } + ... on UnitAmountChangeVariables { + newUnitAmount + featureId + } + ... on AddonChangeVariables { + addonRefId + newQuantity + } + } + GRAPHQL end module Mutation ProvisionCustomer = <<~GRAPHQL mutation ($input: ProvisionCustomerInput!) { @@ -1431,10 +1425,11 @@ #{Fragment::ProductFragment} #{Fragment::PackageEntitlementFragment} #{Fragment::AddonFragment} #{Fragment::OveragePriceFragment} #{Fragment::SubscriptionScheduledUpdateData} + #{Fragment::ScheduleVariablesFragment} #{Fragment::SubscriptionFutureUpdateData} #{Fragment::EntitlementFragment} #{Fragment::ResetPeriodConfigurationFragment} #{Fragment::FeatureFragment} GRAPHQL @@ -1620,10 +1615,11 @@ #{Fragment::ProductFragment} #{Fragment::PackageEntitlementFragment} #{Fragment::AddonFragment} #{Fragment::OveragePriceFragment} #{Fragment::SubscriptionScheduledUpdateData} + #{Fragment::ScheduleVariablesFragment} #{Fragment::SubscriptionFutureUpdateData} GRAPHQL GetCustomerStatistics = <<~GRAPHQL query ($input: GetCustomerByRefIdInput!) { @@ -1650,10 +1646,11 @@ #{Fragment::ProductFragment} #{Fragment::PackageEntitlementFragment} #{Fragment::AddonFragment} #{Fragment::OveragePriceFragment} #{Fragment::SubscriptionScheduledUpdateData} + #{Fragment::ScheduleVariablesFragment} #{Fragment::SubscriptionFutureUpdateData} GRAPHQL GetCoupons = <<~GRAPHQL query { @@ -1694,10 +1691,11 @@ #{Fragment::SubscriptionFragment} #{Fragment::SubscriptionInvoiceFragment} #{Fragment::CustomerResourceFragment} #{Fragment::TotalPriceFragment} #{Fragment::SubscriptionScheduledUpdateData} + #{Fragment::ScheduleVariablesFragment} #{Fragment::SubscriptionFutureUpdateData} #{Fragment::PaywallCalculatedPricePointsFragment} GRAPHQL GetEntitlements = <<~GRAPHQL @@ -1753,10 +1751,11 @@ #{Fragment::CustomerPortalFragment} #{Fragment::CustomerPortalSubscriptionFragment} #{Fragment::CustomerPortalSubscriptionPriceFragment} #{Fragment::CustomerPortalSubscriptionAddonFragment} #{Fragment::CustomerPortalSubscriptionScheduledUpdateDataFragment} + #{Fragment::ScheduleVariablesFragment} #{Fragment::CustomerPortalEntitlementFragment} #{Fragment::ResetPeriodConfigurationFragment} #{Fragment::FeatureFragment} #{Fragment::CustomerPortalPromotionalEntitlementFragment} #{Fragment::CustomerPortalBillingInformationFragment} @@ -1790,9 +1789,10 @@ #{Fragment::ProductFragment} #{Fragment::PackageEntitlementFragment} #{Fragment::AddonFragment} #{Fragment::OveragePriceFragment} #{Fragment::SubscriptionScheduledUpdateData} + #{Fragment::ScheduleVariablesFragment} #{Fragment::SubscriptionFutureUpdateData} GRAPHQL GetMockPaywall = <<~GRAPHQL query ($input: GetPaywallInput!) {