Esempio n. 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;
        }
Esempio n. 2
0
 public ApiTransaction(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Esempio n. 3
0
 public ApiBusiness(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Esempio n. 4
0
 public ApiCustomer(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Esempio n. 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>();
 }
Esempio n. 6
0
 public ApiWebhook(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Esempio n. 7
0
 public ApiTax(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Esempio n. 8
0
 public ApiNotification(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Esempio n. 9
0
 public ApiVariant(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Esempio n. 10
0
 public ApiProductSummary(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Esempio n. 11
0
 public ApiHookDelivery(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Esempio n. 12
0
 public ApiCatalogFull(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }
Esempio n. 13
0
 public ApiCategory(PoyntSDK sdk, params string[] parents) : base(sdk, parents)
 {
 }