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