game / pragma.order / FulfillmentService /

FulfillmentService #

class FulfillmentService(pragmaNode: PragmaNode, instanceId: UUID, content: FulfillmentServiceContent = FulfillmentServiceContent(), timeProxy: TimeProxy = TimeProxy(), fulfillmentSectionsBuilder: FulfillmentSectionsBuilder = FulfillmentSectionsBuilder()) : DistributedService, ConfigHandler<FulfillmentService.FulfillmentServiceConfig>

FulfillmentService is responsible for fulfilling and revoking Pragma orders by issuing the configured pragma.playerdata.PlayerDataOperation

Constructors #

FulfillmentService

internal fun FulfillmentService(pragmaNode: PragmaNode, instanceId: UUID, content: FulfillmentServiceContent = FulfillmentServiceContent(), timeProxy: TimeProxy = TimeProxy(), fulfillmentSectionsBuilder: FulfillmentSectionsBuilder = FulfillmentSectionsBuilder())

Functions #

NameSummary

fulfillOrdersV1

suspend fun fulfillOrdersV1(session: PlayerSession, request: FulfillmentRpc.FulfillOrdersV1Request): FulfillmentRpc.FulfillOrdersV1Response

Fulfills Pragma orders. Triggers the pragma.order.OrderService to sync orders for the given pragmaPlayerId and providers. References the FulfillmentMappingSpecs.json content file to issue the correct pragma.playerdata.PlayerDataOperation. Returns a list of pragma.order.Fulfillment objects representing successfully fulfilled Pragma orders for this game shard.

getFulfillmentPersonalDataSectionsServiceV1

suspend fun getFulfillmentPersonalDataSectionsServiceV1(serviceSession: ServiceSession, request: FulfillmentRpc.GetFulfillmentPersonalDataSectionsServiceV1Request): FulfillmentRpc.GetFulfillmentPersonalDataSectionsServiceV1Response

Provides a list of pragma.datarights.PersonalDataReportSection objects for use in the pragma.datarights.DataRightsService.

getFulfillmentsOperatorV1

suspend fun getFulfillmentsOperatorV1(session: OperatorSession, request: FulfillmentRpc.GetFulfillmentsOperatorV1Request): FulfillmentRpc.GetFulfillmentsOperatorV1Response

Returns a list of pragma.order.Fulfillment objects associated with the given pragmaPlayerId.

getFulfillmentsPartnerV1

suspend fun getFulfillmentsPartnerV1(partnerSession: PartnerSession, request: FulfillmentRpc.GetFulfillmentsPartnerV1Request): FulfillmentRpc.GetFulfillmentsPartnerV1Response

Returns a list of pragma.order.Fulfillment objects associated with the given pragmaPlayerId.

getFulfillmentsServiceV1

suspend fun getFulfillmentsServiceV1(serviceSession: ServiceSession, request: FulfillmentRpc.GetFulfillmentsServiceV1Request): FulfillmentRpc.GetFulfillmentsServiceV1Response

Returns a list of pragma.order.Fulfillment objects associated with the given pragmaPlayerId.