game / pragma.order / FulfillmentService / fulfillOrdersV1 /

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.

PragmaApplicationErrors

  • OrderRpc.OrderProviderUnexpectedResponseApplicationError when pragma.order.OrderService has an issue communicating with the third party provider.

PragmaResultErrors

  • pragma.PragmaError.FulfillmentService_UnexpectedOrderStatus when FulfillmentService receives an order to fulfill from OrderService with a status that it cannot handle.