@nautical-commerce/graphql-schema 3.12.2 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7941,6 +7941,29 @@ type MarketplaceSubscription implements Node {
7941
7941
  plan: String
7942
7942
  }
7943
7943
 
7944
+ """Result of the marketplace subscription cancel mutation."""
7945
+ type MarketplaceSubscriptionCancel {
7946
+ """The subscription that was cancelled."""
7947
+ subscription: MarketplaceSubscription
7948
+
7949
+ """List of errors that occurred executing the mutation."""
7950
+ subscriptionErrors: [MarketplaceSubscriptionError!]!
7951
+ }
7952
+
7953
+ """Input for cancelling a marketplace subscription."""
7954
+ input MarketplaceSubscriptionCancelInput {
7955
+ """
7956
+ When the cancellation takes effect (immediate or at end of billing period).
7957
+ """
7958
+ mode: SubscriptionCancellationMode!
7959
+
7960
+ """Standard reason for the cancellation."""
7961
+ reasonCode: SubscriptionCancellationReason!
7962
+
7963
+ """Optional free-text detail (recommended when the reason is OTHER)."""
7964
+ reason: String = null
7965
+ }
7966
+
7944
7967
  """A connection to a list of items."""
7945
7968
  type MarketplaceSubscriptionCountableConnection {
7946
7969
  """Pagination data for this connection"""
@@ -7962,6 +7985,29 @@ type MarketplaceSubscriptionCountableEdge {
7962
7985
  node: MarketplaceSubscription!
7963
7986
  }
7964
7987
 
7988
+ """Represents errors from marketplace subscription operations."""
7989
+ type MarketplaceSubscriptionError {
7990
+ field: String
7991
+
7992
+ """The error message."""
7993
+ message: String!
7994
+
7995
+ """The error code."""
7996
+ code: MarketplaceSubscriptionErrorCode!
7997
+ }
7998
+
7999
+ """
8000
+ An enumeration of possible error codes for marketplace subscription operations.
8001
+ """
8002
+ enum MarketplaceSubscriptionErrorCode {
8003
+ GRAPHQL_ERROR
8004
+ INVALID
8005
+ NOT_FOUND
8006
+ REQUIRED
8007
+ NO_ACTIVE_SUBSCRIPTION
8008
+ PROVIDER_ERROR
8009
+ }
8010
+
7965
8011
  """Filter input for marketplace subscriptions"""
7966
8012
  input MarketplaceSubscriptionFilterInput {
7967
8013
  """Filter by active status."""
@@ -9772,6 +9818,11 @@ type Mutation {
9772
9818
  """Send invoice notification email to customer."""
9773
9819
  invoiceSendNotification(id: ID!): InvoiceSendNotification!
9774
9820
 
9821
+ """
9822
+ Cancel the current tenant's marketplace subscription. Internal Traide-staff tool (superuser only) — customers self-serve via the Stripe Customer Portal. Cancels the subscription in Stripe; the customer.subscription.deleted webhook performs the local deactivation. Choose IMMEDIATE or END_OF_PERIOD.
9823
+ """
9824
+ marketplaceSubscriptionCancel(input: MarketplaceSubscriptionCancelInput!): MarketplaceSubscriptionCancel!
9825
+
9775
9826
  """
9776
9827
  Update public metadata of an object. Appends or updates keys without replacing existing ones.
9777
9828
  """
@@ -20654,6 +20705,22 @@ input StripeClientPaymentData {
20654
20705
  paymentMethodToken: String = null
20655
20706
  }
20656
20707
 
20708
+ """When a subscription cancellation should take effect."""
20709
+ enum SubscriptionCancellationMode {
20710
+ IMMEDIATE
20711
+ END_OF_PERIOD
20712
+ }
20713
+
20714
+ """Reason a subscription was cancelled."""
20715
+ enum SubscriptionCancellationReason {
20716
+ CUSTOMER_REQUEST
20717
+ TOO_EXPENSIVE
20718
+ MISSING_FEATURES
20719
+ SWITCHED_SERVICE
20720
+ UNUSED
20721
+ OTHER
20722
+ }
20723
+
20657
20724
  """Customer Tax Certificate information."""
20658
20725
  type TaxCertificate {
20659
20726
  """Certificate ID"""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "3.12.2",
3
+ "version": "3.13.0",
4
4
  "description": "Traide API GraphQL Schema",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {