コード例 #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);
        }