Recipient Internal
Recipient Internal Communication API (proto file)
This document describes the gRPC API defined in the recipient_internal.proto file for recipient-related internal communication functionalities.
Dependencies
google/protobuf/empty.proto: Used for empty response messages.recipient_common.proto: Likely defines shared message types used across other services.
Services
The RecipientInternalService offers gRPC methods for managing recipient information and invoices.
Functions:
LinkRecipientToInvoice: Links a specified
Recipient(identified byrecipientIdwithin arecipientGroupId) to anInvoicewithin a particularcompanyId. The linkedRecipientGroupis returned in the response.UnlinkRecipientFromInvoice: Removes the link between a
Recipientand anInvoicebased on provided IDs andcompanyId. Returns an empty message on success.UnlinkRecipientsFromInvoices: Unlinks multiple
Recipientsfrom their respectiveInvoiceswithin a specifiedcompanyId. IDs of involvedRecipientGroupsandRecipientsare provided in separate lists. Returns an empty message on success.MatchRecipients: Matches
Recipientsbased on criteria provided in aMatchRecipientsRequest. Returns aRecipientGroupsResponsecontaining matchingRecipientGroupinformation.GetRecipientGroupById: Retrieves a specific
RecipientGroupby its uniqueid.GetRecipientGroupByInternalNumber: Retrieves a
RecipientGroupbased on itsinternalNumber.GetRecipientById: Retrieves a specific
Recipientby its uniqueid.GetRecipientGroups: Retrieves a list of
RecipientGroupsmatching provided IDs or containing specifiedRecipients.GetRecipients: Retrieves a list of
Recipientsmatching provided IDs.
Messages
LinkRecipientToInvoiceRequest:
recipientGroupId: Unique identifier of theRecipientGrouptheRecipientbelongs to.recipientId: Unique identifier of theRecipientto be linked.companyId: Identifier of the company theInvoicebelongs to.oldRecipientGroupId: (Optional) ID of the previously linkedRecipientGroup(if applicable).oldRecipientId: (Optional) ID of the previously linkedRecipient(if applicable).
UnlinkRecipientFromInvoiceRequest:
recipientGroupId: Unique identifier of theRecipientGroupcontaining theRecipientto be unlinked.recipientId: Unique identifier of theRecipientto be unlinked.companyId: Identifier of the company theInvoicebelongs to.
UnlinkRecipientsFromInvoicesRequest:
recipientGroupIds: List of IDs for theRecipientGroupscontaining theRecipientsto be unlinked.recipientIds: List of IDs for the specificRecipientsto be unlinked.companyId: Identifier of the company where the linkedInvoicesreside.
GetRecipientGroupsRequest:
recipientGroupIds: (Optional) List of IDs for the specificRecipientGroupsto be retrieved.recipientIds: (Optional) List of IDs forRecipientswhose containingRecipientGroupsshould be retrieved.
GetRecipientsRequest:
ids: List of IDs for the specificRecipientsto be retrieved.
RecipientsResponse:
recipients: List of matchingRecipientobjects as per the request.
GetRecipientGroupByInternalNumberRequest:
internalNumber: Internal identification number of theRecipientGroupto be retrieved.
RecipientGroup:
(Definition likely resides in
recipient_common.proto)Represents a recipient group entity with relevant attributes.
RecipientGroupsResponse:
recipientGroups: List of matchingRecipientGroupobjects as per the request.