From 6721f43dfff7c887fc5b3ca0a44c49317e3b5d37 Mon Sep 17 00:00:00 2001 From: Quentin Aubert Date: Tue, 3 Dec 2024 16:12:23 +0100 Subject: [PATCH] FIX #776 --- daikoku/app/domain/SchemaDefinition.scala | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/daikoku/app/domain/SchemaDefinition.scala b/daikoku/app/domain/SchemaDefinition.scala index 19b39e58c..09dae2775 100644 --- a/daikoku/app/domain/SchemaDefinition.scala +++ b/daikoku/app/domain/SchemaDefinition.scala @@ -3251,6 +3251,22 @@ object SchemaDefinition { ) ) ) + lazy val ApiSubscriptionTransferSuccessType = new PossibleObject( + ObjectType( + "ApiSubscriptionTransferSuccess", + "A notification triggered when a checkout session is available", + interfaces[ + (DataStore, DaikokuActionContext[JsValue]), + ApiSubscriptionTransferSuccess + ](NotificationActionType), + fields[ + (DataStore, DaikokuActionContext[JsValue]), + ApiSubscriptionTransferSuccess + ]( + Field("subscription", StringType, resolve = _.value.subscription.value) + ) + ) + ) lazy val NotificationInterfaceType: ObjectType[ (DataStore, DaikokuActionContext[JsValue]), @@ -3361,7 +3377,8 @@ object SchemaDefinition { TransferApiOwnershipType, ApiSubscriptionRejectType, ApiSubscriptionAcceptType, - CheckoutForSubscriptionType + CheckoutForSubscriptionType, + ApiSubscriptionTransferSuccessType ) ) )