/// <summary> /// Create a new settlement /// To create a settlement resource provide a completed order identifier and (optionally) a promise identifier. /// </summary> /// <param name="request">The <see cref="VirtualCardCreateSettlementRequest"/> object</param> /// <returns>A single <see cref="VirtualCardSettlement"/> object</returns> public async Task <VirtualCardSettlement> CreateSettlement(VirtualCardCreateSettlementRequest request) { var url = ApiUrlHelper.GetApiUrlForController(ApiSession.ApiUrl, ApiControllerUri); var response = await Post <VirtualCardSettlement>(url, request); return(response); }
public async Task <SettlementResponse> CreateSettlement(VirtualCardCreateSettlementRequest request) { var url = ApiUrlHelper.GetApiUrlForController(ApiSession.ApiUrl, ApiControllerUri); return(await Post <SettlementResponse>(url, request).ConfigureAwait(false)); }