public static interface NotificationsApiServiceGrpc.AsyncService
Service to manage notification subscriptions for merchants
Methods
createNotificationSubscription(CreateNotificationSubscriptionRequest request, StreamObserver<NotificationSubscription> responseObserver)
public default void createNotificationSubscription(CreateNotificationSubscriptionRequest request, StreamObserver<NotificationSubscription> responseObserver)
Creates a notification subscription for a merchant. We will allow the following types of notification subscriptions to exist together (per merchant as a subscriber per event type):
- Subscription for all managed accounts + subscription for self
- Multiple "partial" subscriptions for managed accounts + subscription for self we will not allow (per merchant as a subscriber per event type):
- multiple self subscriptions.
- multiple "all managed accounts" subscriptions.
- all and partial subscriptions at the same time.
- multiple partial subscriptions for the same target account
Parameters | |
---|---|
Name | Description |
request |
CreateNotificationSubscriptionRequest |
responseObserver |
io.grpc.stub.StreamObserver<NotificationSubscription> |
deleteNotificationSubscription(DeleteNotificationSubscriptionRequest request, StreamObserver<Empty> responseObserver)
public default void deleteNotificationSubscription(DeleteNotificationSubscriptionRequest request, StreamObserver<Empty> responseObserver)
Deletes a notification subscription for a merchant.
Parameters | |
---|---|
Name | Description |
request |
DeleteNotificationSubscriptionRequest |
responseObserver |
io.grpc.stub.StreamObserver<Empty> |
getNotificationSubscription(GetNotificationSubscriptionRequest request, StreamObserver<NotificationSubscription> responseObserver)
public default void getNotificationSubscription(GetNotificationSubscriptionRequest request, StreamObserver<NotificationSubscription> responseObserver)
Gets notification subscriptions for an account.
Parameters | |
---|---|
Name | Description |
request |
GetNotificationSubscriptionRequest |
responseObserver |
io.grpc.stub.StreamObserver<NotificationSubscription> |
listNotificationSubscriptions(ListNotificationSubscriptionsRequest request, StreamObserver<ListNotificationSubscriptionsResponse> responseObserver)
public default void listNotificationSubscriptions(ListNotificationSubscriptionsRequest request, StreamObserver<ListNotificationSubscriptionsResponse> responseObserver)
Gets all the notification subscriptions for a merchant.
Parameters | |
---|---|
Name | Description |
request |
ListNotificationSubscriptionsRequest |
responseObserver |
io.grpc.stub.StreamObserver<ListNotificationSubscriptionsResponse> |
updateNotificationSubscription(UpdateNotificationSubscriptionRequest request, StreamObserver<NotificationSubscription> responseObserver)
public default void updateNotificationSubscription(UpdateNotificationSubscriptionRequest request, StreamObserver<NotificationSubscription> responseObserver)
Updates an existing notification subscription for a merchant.
Parameters | |
---|---|
Name | Description |
request |
UpdateNotificationSubscriptionRequest |
responseObserver |
io.grpc.stub.StreamObserver<NotificationSubscription> |