Beispiel #1
0
        public async Task <CreateFulfillmentResponse> DeleteFulfillmentPolicy(CreateFulfillmentRequest createFulfillmentRequest)
        {
            var body = JsonConvert.SerializeObject(createFulfillmentRequest.marketplaceId);

            RestHelper helper   = new RestHelper(_deletionurlbyId);
            var        response = await helper.Delete(body);

            CreateFulfillmentResponse createFulfillmentResponse = JsonConvert.DeserializeObject <CreateFulfillmentResponse>(response);

            return(createFulfillmentResponse);
        }
Beispiel #2
0
        public async Task <CreateFulfillmentResponse> CreateFulfillmentPolicy(CreateFulfillmentRequest createFulfillmentRequest)
        {
            var body = JsonConvert.SerializeObject(createFulfillmentRequest);

            RestHelper helper   = new RestHelper(_url);
            var        response = await helper.Post(body);

            CreateFulfillmentResponse createFulfillmentResponse = JsonConvert.DeserializeObject <CreateFulfillmentResponse>(response);

            return(createFulfillmentResponse);
        }