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