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. | |
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. |