social / pragma.order / OrderService / syncOrdersOperatorV1 /

syncOrdersOperatorV1 #

suspend fun syncOrdersOperatorV1(operatorSession: OperatorSession, request: OrderRpc.SyncOrdersOperatorV1Request): OrderRpc.SyncOrdersOperatorV1Response

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.