social / pragma.order / OrderService /
OrderService #
class OrderService(pragmaNode: PragmaNode, instanceId: UUID, orderManager: OrderManager = OrderManager(), orderSectionsBuilder: OrderSectionsBuilder = OrderSectionsBuilder(), timeProxy: TimeProxy = TimeProxy()) : DistributedService, ConfigHandler<OrderServiceConfig>
OrderService is responsible for Pragma order syncing and management.
Constructors #
OrderService | internal fun OrderService(pragmaNode: PragmaNode, instanceId: UUID, orderManager: OrderManager = OrderManager(), orderSectionsBuilder: OrderSectionsBuilder = OrderSectionsBuilder(), timeProxy: TimeProxy = TimeProxy()) |
Functions #
| Name | Summary |
|---|---|
Fetches and returns a list of OrderHistoryRecords associated with the given order ID. | |
Fetches and returns a list of OrderRecords associated with the given pragma social ID. | |
Fetches and returns a list of OrderRecords associated with the given pragma social ID. | |
Fetches and returns a list of OrderRecords associated with the given pragma social ID. | |
Provides a list of pragma.datarights.PersonalDataReportSection objects for use in the pragma.datarights.DataRightsService. | |
Reset plugins to clear any caches. Does not work for multinode; xbox order investigation | |
Sets the status on all unlinked orders granted by a provider to ORDER_STATUS_RECEIVED. This is used when an account re-links an id provider. | |
Sets the status on all received orders granted by a provider to ORDER_STATUS_REVOKED. This is used when an account deletes an id provider. | |
Sets the status on all received orders granted by a provider to ORDER_STATUS_UNLINKED. This is used when an account unlinks an id provider. | |
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. | |
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. | |
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. | |
Validates and updates an order plugin config using the dynamic config service. This RPC relies on reflecting out orderPlugins to do the work of figuring out what config belongs wholly to the plugin and what belongs in the shared location. |