Transactable SaaS Client Library
This is the core library for the transactable SaaS SDK. It provides the implementation of the APIs
The Project is located in the Microsoft.Marketplace.SaaS.SDK.Client folder. The project is composed of the following sections:
|Attributes||Custom attribute used to annotate models|
|Configurations||Model to hold API configuration|
|Contracts||Interfaces that define the contract to be implemented|
|Helpers||Classes with utility methods|
|Models||Models to hold the request / response to / from APIs|
|Network||Comprises rest client implementation|
|Services||Implementation for the contracts defined in Contracts folder|
|WebHook||Contains the model for the payload received by the Webhook, a processor that decodes the action and delegates further processing to a handler ( implemented by client )|
Implementation Best Practices
- Implement IWebhookHandler to process the data received via Webhook and pass that to the WebhookProcessor.
- Catch custom exceptions thrown by the implementations of Fulfillment API and Metered API clients and consume the additional information related to the error.