public async Task <ClaimResponse> OpenClaim(string policyId = null, string policyHolderId = null) { // "policy_id": "8349345c-a6c5-4bf9-8ebb-6bbfc1628715", // "incident_type": "Theft", // "incident_cause": "Device stolen during burglary", // "incident_date": "2017-10-16T10:12:02.872Z", // "app_data": { // "key1": "value 1" // "key2": "value 2" // }, // "requested_amount": 13000000 dynamic data = new ExpandoObject(); if (policyId != null) { data.policy_id = policyId; } data.policyholder_id = policyHolderId; return(await _root.PostAsync <ClaimResponse>($"claims", data)); }
public async Task <QuoteItem <T> > CreateQuote <T>(object opts) where T : class, IInsurable { return(await _root.PostAsync <QuoteItem <T> >("quotes", opts)); }