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.

getFulfillmentHistoryRecordsOperatorV1

suspend fun getFulfillmentHistoryRecordsOperatorV1(session: OperatorSession, request: FulfillmentRpc.GetFulfillmentHistoryRecordsOperatorV1Request): FulfillmentRpc.GetFulfillmentHistoryRecordsOperatorV1Response

Returns a list of pragma.order.FulfillmentHistoryRecord objects associated with the given pragmaPlayerId and orderId.

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.

getOperationInfoOperatorV1

suspend fun getOperationInfoOperatorV1(session: OperatorSession, request: FulfillmentRpc.GetOperationInfoOperatorV1Request): FulfillmentRpc.GetOperationInfoOperatorV1Response

Returns the fulfillment and revocation operations for the given sku id from FulfillmentMappingSpecs.json as json serialized strings.