Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.73 KB

File metadata and controls

30 lines (21 loc) · 1.73 KB

Transactable SaaS Client Library

Introduction

This library implements the SaaS Fulfillment API (v2) and Marketplace Metering Service API, as well as the Webhook.

Description

This is the core library that interacts with the marketplace APIs.

Source Code

The Project is located in the SaaS.SDK.Client folder. The project is composed of the following sections:

Section Name Description
Attributes Custom attribute used to annotate models
Configurations Model to hold API configuration
Contracts Interfaces that define the contract to be implemented
Exceptions Custom Exceptions
Helpers Classes with utility methods
Models Models to hold the request / response to / from marketplace 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 metering service API clients and consume the additional information related to the error.