예제 #1
0
        public OverpaymentAllocation Add(OverpaymentAllocation allocation)
        {
            var endpoint = string.Format("/api.xro/2.0/Overpayments/{0}/Allocations", allocation.Overpayment.Id);

            return((OverpaymentAllocation)Add(allocation, endpoint));
        }
예제 #2
0
        public async Task <OverpaymentAllocation> AddAsync(OverpaymentAllocation allocation)
        {
            var endpoint = string.Format("/api.xro/2.0/Overpayments/{0}/Allocations", allocation.Overpayment.Id);

            return(await AddAsync(allocation, endpoint).ConfigureAwait(false) as OverpaymentAllocation);
        }
예제 #3
0
        public async Task <OverpaymentAllocation> AddAsync(OverpaymentAllocation allocation)
        {
            var endpoint = $"{_endpointBase}/Overpayments/{allocation.Overpayment.Id}/Allocations";

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