Exemple #1
0
        public PrepaymentAllocation Add(PrepaymentAllocation allocation)
        {
            var endpoint = string.Format("/api.xro/2.0/Prepayments/{0}/Allocations", allocation.Prepayment.Id);

            return((PrepaymentAllocation)Add(allocation, endpoint));
        }
        public async Task <PrepaymentAllocation> AddAsync(PrepaymentAllocation allocation)
        {
            var endpoint = string.Format("/api.xro/2.0/Prepayments/{0}/Allocations", allocation.Prepayment.Id);

            return(await AddAsync(allocation, endpoint).ConfigureAwait(false) as PrepaymentAllocation);
        }
Exemple #3
0
        public async Task <PrepaymentAllocation> AddAsync(PrepaymentAllocation allocation)
        {
            var endpoint = $"{_endpointBase}/Prepayments/{allocation.Prepayment.Id}/Allocations";

            return(await AddAsync(allocation, endpoint).ConfigureAwait(false) as PrepaymentAllocation);
        }