social-common / pragma.order / OrderProviderPlugin /
OrderProviderPlugin #
interface OrderProviderPlugin : PragmaServicePlugin
Plugin for syncing orders to Pragma from a third party provider.
Functions #
| Name | Summary | 
|---|---|
 Human-readable name of the third party provider. Used for logging metrics. e.g. "Steam", "Twitch"  | |
 Third party provider type identifier. Used for indexing OrderProviderPlugin objects in OrderProviderPluginCollection.  | |
 Logs a metric and throws the OrderProviderUnexpectedResponseApplicationError. Called when there is an issue communicating with the third party provider.  | |
 Logs a metric and throws the OrderProviderUnexpectedResponseApplicationError. Called when there is an issue communicating with the third party provider.  | |
 Registers any background polling tasks onto the provided BackgroundManager. Called a single time when the primary pragma.order.OrderService instance starts up. An example usage of this method includes registering a background task to poll a third party provider refund endpoint to check for and process new refunds.  | |
 Fetches entitlements from the third party provider and syncs them as Pragma orders. References OrderMappingSpecs.json to map provider entitlements to Pragma sku ids.  |