lib/stigg/generated/operations.rb in stigg-api-client-2.49.0 vs lib/stigg/generated/operations.rb in stigg-api-client-2.62.0
- old
+ new
@@ -730,10 +730,107 @@
isPlanDowngrade
hasScheduledUpdates
}
GRAPHQL
+ SubscriptionInvoicePreviewFragment = <<~GRAPHQL
+ fragment SubscriptionInvoicePreviewFragment on SubscriptionInvoicePreview {
+ amountDue {
+ amount
+ currency
+ }
+ minimumSpendAdjustment {
+ amount
+ currency
+ }
+ total {
+ amount
+ currency
+ }
+ totalExcludingTax {
+ amount
+ currency
+ }
+ subTotal {
+ amount
+ currency
+ }
+ subTotalExcludingTax {
+ amount
+ currency
+ }
+ tax {
+ amount
+ currency
+ }
+ taxDetails {
+ displayName
+ percentage
+ inclusive
+ }
+ discount {
+ amount
+ currency
+ }
+ discountDetails {
+ name
+ type
+ value
+ durationType
+ durationInMonths
+ }
+ credits {
+ initial {
+ amount
+ currency
+ }
+ used {
+ amount
+ currency
+ }
+ remaining {
+ amount
+ currency
+ }
+ }
+ lastUpdatedAt
+ lines {
+ type
+ description
+ costDescription
+ amount {
+ amount
+ currency
+ }
+ unitPrice {
+ amount
+ currency
+ }
+ quantity
+ proration
+ price {
+ ...PriceFragment
+ }
+ usageLimit
+ period {
+ start
+ end
+ }
+ hasSoftLimit
+ lines {
+ type
+ description
+ costDescription
+ quantity
+ proration
+ usageLimit
+ hasSoftLimit
+ }
+ }
+ }
+ GRAPHQL
+
FeatureFragment = <<~GRAPHQL
fragment FeatureFragment on EntitlementFeature {
__typename
featureType
meterType
@@ -1607,9 +1704,20 @@
}
}
#{Fragment::SubscriptionPreviewV2Fragment}
#{Fragment::ImmediateSubscriptionPreviewInvoiceFragment}
#{Fragment::SubscriptionPreviewInvoiceFragment}
+ GRAPHQL
+
+ PreviewNextInvoice = <<~GRAPHQL
+ mutation PreviewNextInvoice($input: PreviewNextInvoiceInput!) {
+ previewNextInvoice(input: $input) {
+ ...SubscriptionInvoicePreviewFragment
+ }
+ }
+ #{Fragment::SubscriptionInvoicePreviewFragment}
+ #{Fragment::PriceFragment}
+ #{Fragment::PriceTierFragment}
GRAPHQL
CancelSubscriptionUpdates = <<~GRAPHQL
mutation CancelSubscriptionUpdates(
$input: SubscriptionUpdateScheduleCancellationInput!