Beispiel #1
0
        public ApiBase(PoyntSDK sdk, Func <string> endPoint, Func <HttpClient> getHttpClient = null)
        {
            this.sdk           = sdk;
            this.endPoint      = endPoint;
            this.getHttpClient = getHttpClient ?? GetHttpClient;

            jsonSerializerSettings = new JsonSerializerSettings();
            jsonSerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
            jsonSerializerSettings.Converters.Add(new StringEnumConverter());
            jsonSerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Utc;
        }
Beispiel #2
0
 public ApiTransaction(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Beispiel #3
0
 public ApiBusiness(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Beispiel #4
0
 public ApiCustomer(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Beispiel #5
0
 public Api(PoyntSDK sdk, params string[] parents) : base(sdk, () => Constants.POYNT_API_HOST + EndpointConfig.Get <TModel>().Resolve(parents))
 {
     this.endPointRef = EndpointConfig.Get <TModel>();
 }
Beispiel #6
0
 public ApiWebhook(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Beispiel #7
0
 public ApiTax(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Beispiel #8
0
 public ApiNotification(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Beispiel #9
0
 public ApiVariant(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Beispiel #10
0
 public ApiProductSummary(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Beispiel #11
0
 public ApiHookDelivery(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Beispiel #12
0
 public ApiCatalogFull(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Beispiel #13
0
 public ApiCategory(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }