social / pragma.order / OrderService / syncOrdersServiceV1 /

syncOrdersServiceV1 #

suspend fun syncOrdersServiceV1(serviceSession: ServiceSession, request: OrderRpc.SyncOrdersServiceV1Request): OrderRpc.SyncOrdersServiceV1Response

Syncs third party provider entitlements as Pragma orders for the given pragmaSocialId and list of providers. If there is no third party provider account linked to the given pragma social id, syncing for that provider will be skipped. Returns a list of orders that have been successfully synced since the given lastSyncedTimestampMillis or successfully synced during this rpc call if no lastSyncedTimestampMillis is provided.

Plugins

  • OrderProviderPlugin.syncOrders - Called to sync orders for a specific third party provider.

PragmaApplicationErrors

  • OrderRpc.OrderProviderUnexpectedResponseApplicationError when there is an issue communicating with the third party provider.

PragmaResultErrors pragma.PragmaError.OrderService_OrderProviderPluginMissing when a provider is requested for syncing but the corresponding plugin is not configured. pragma.PragmaError.OrderService_OrderStatusUpdateFailed when the order status fails to update in the database. pragma.PragmaError.OrderService_ProviderDetailsUpdateFailed when the provider details fail to update in the database. pragma.PragmaError.OrderService_InternalError when a service to service rpc call fails.