public static final class NotificationsApiServiceGrpc.NotificationsApiServiceFutureStub extends AbstractFutureStub<NotificationsApiServiceGrpc.NotificationsApiServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service NotificationsApiService.
Service to manage notification subscriptions for merchants
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > NotificationsApiServiceGrpc.NotificationsApiServiceFutureStubMethods
build(Channel channel, CallOptions callOptions)
protected NotificationsApiServiceGrpc.NotificationsApiServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters | |
---|---|
Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
Returns | |
---|---|
Typ | Description |
NotificationsApiServiceGrpc.NotificationsApiServiceFutureStub |
createNotificationSubscription(CreateNotificationSubscriptionRequest request)
public ListenableFuture<NotificationSubscription> createNotificationSubscription(CreateNotificationSubscriptionRequest request)
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
Parameter | |
---|---|
Name | Description |
request |
CreateNotificationSubscriptionRequest |
Returns | |
---|---|
Typ | Description |
com.google.common.util.concurrent.ListenableFuture<NotificationSubscription> |
deleteNotificationSubscription(DeleteNotificationSubscriptionRequest request)
public ListenableFuture<Empty> deleteNotificationSubscription(DeleteNotificationSubscriptionRequest request)
Deletes a notification subscription for a merchant.
Parameter | |
---|---|
Name | Description |
request |
DeleteNotificationSubscriptionRequest |
Returns | |
---|---|
Typ | Description |
com.google.common.util.concurrent.ListenableFuture<Empty> |
getNotificationSubscription(GetNotificationSubscriptionRequest request)
public ListenableFuture<NotificationSubscription> getNotificationSubscription(GetNotificationSubscriptionRequest request)
Gets notification subscriptions for an account.
Parameter | |
---|---|
Name | Description |
request |
GetNotificationSubscriptionRequest |
Returns | |
---|---|
Typ | Description |
com.google.common.util.concurrent.ListenableFuture<NotificationSubscription> |
listNotificationSubscriptions(ListNotificationSubscriptionsRequest request)
public ListenableFuture<ListNotificationSubscriptionsResponse> listNotificationSubscriptions(ListNotificationSubscriptionsRequest request)
Gets all the notification subscriptions for a merchant.
Parameter | |
---|---|
Name | Description |
request |
ListNotificationSubscriptionsRequest |
Returns | |
---|---|
Typ | Description |
com.google.common.util.concurrent.ListenableFuture<ListNotificationSubscriptionsResponse> |
updateNotificationSubscription(UpdateNotificationSubscriptionRequest request)
public ListenableFuture<NotificationSubscription> updateNotificationSubscription(UpdateNotificationSubscriptionRequest request)
Updates an existing notification subscription for a merchant.
Parameter | |
---|---|
Name | Description |
request |
UpdateNotificationSubscriptionRequest |
Returns | |
---|---|
Typ | Description |
com.google.common.util.concurrent.ListenableFuture<NotificationSubscription> |