lib/stigg/generated/operations.rb in stigg-api-client-0.557.0 vs lib/stigg/generated/operations.rb in stigg-api-client-0.561.1
- old
+ new
@@ -429,10 +429,14 @@
}
total {
amount
currency
}
+ discountAmount {
+ amount
+ currency
+ }
taxDetails {
displayName
percentage
inclusive
}
@@ -465,10 +469,25 @@
}
tax {
amount
currency
}
+ discountAmount {
+ amount
+ currency
+ }
+ taxDetails {
+ displayName
+ percentage
+ inclusive
+ }
+ discount {
+ type
+ value
+ durationType
+ durationInMonths
+ }
}
proration {
prorationDate
credit {
amount
@@ -500,10 +519,115 @@
}
}
}
GRAPHQL
+ SubscriptionPreviewV2Fragment = <<~GRAPHQL
+ fragment SubscriptionPreviewV2Fragment on SubscriptionPreviewV2 {
+ total {
+ amount
+ currency
+ }
+ subTotal {
+ amount
+ currency
+ }
+ totalExcludingTax {
+ amount
+ currency
+ }
+ tax {
+ amount
+ currency
+ }
+ discount {
+ amount
+ currency
+ }
+ taxDetails {
+ displayName
+ percentage
+ inclusive
+ }
+ discountDetails {
+ type
+ value
+ durationType
+ durationInMonths
+ }
+ credits {
+ initial {
+ amount
+ currency
+ }
+ used {
+ amount
+ currency
+ }
+ remaining {
+ amount
+ currency
+ }
+ }
+ proration {
+ prorationDate
+ credit {
+ amount
+ currency
+ }
+ debit {
+ amount
+ currency
+ }
+ netAmount {
+ amount
+ currency
+ }
+ }
+
+ recurringSubscription {
+ subTotal {
+ amount
+ currency
+ }
+ totalExcludingTax {
+ amount
+ currency
+ }
+ total {
+ amount
+ currency
+ }
+ tax {
+ amount
+ currency
+ }
+ discount {
+ amount
+ currency
+ }
+ taxDetails {
+ displayName
+ percentage
+ inclusive
+ }
+ discountDetails {
+ type
+ value
+ durationType
+ durationInMonths
+ }
+ }
+ billingPeriodRange {
+ start
+ end
+ }
+ isPlanDowngrade
+ hasScheduledUpdates
+ }
+ GRAPHQL
+
FeatureFragment = <<~GRAPHQL
fragment FeatureFragment on EntitlementFeature {
featureType
meterType
featureUnits
@@ -1216,13 +1340,13 @@
GRAPHQL
PreviewSubscription = <<~GRAPHQL
mutation ($input: PreviewSubscriptionInput!) {
previewSubscription(input: $input) {
- ...SubscriptionPreviewFragment
+ ...SubscriptionPreviewV2Fragment
}
}
- #{Fragment::SubscriptionPreviewFragment}
+ #{Fragment::SubscriptionPreviewV2Fragment}
GRAPHQL
CancelSubscriptionUpdates = <<~GRAPHQL
mutation (
$input: SubscriptionUpdateScheduleCancellationInput!