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