Exemplo n.º 1
0
        public void ReverseCharge(ReversalDetailsVM reversalDetailsVM)
        {
            //Reversed amount is greater than the remaining charge amount reversal.

            var postReverseCharge = new Fusebill.ApiWrapper.Dto.Post.ReverseCharge
            {
                ChargeId = reversalDetailsVM.invoiceID,
                ReverseChargeOption = reversalDetailsVM.reverseOption,
                Reference = reversalDetailsVM.reference
            };

            var x = ApiClient.GetInvoicesByCustomerId(4622859, new ApiWrapper.QueryOptions()).Results[0].Charges[0].Id;

            if (reversalDetailsVM.reverseOption.Equals("Amount"))
            {
                postReverseCharge.ReverseChargeAmount = reversalDetailsVM.specificAmount;
            }

            ApiClient.PostReverseCharge(postReverseCharge);
        }
Exemplo n.º 2
0
        public void ReverseCharge(ReversalDetailsVM reversalDetailsVM)
        {
            //Reversed amount is greater than the remaining charge amount reversal.

            var postReverseCharge = new Fusebill.ApiWrapper.Dto.Post.ReverseCharge
            {
                ChargeId            = reversalDetailsVM.invoiceID,
                ReverseChargeOption = reversalDetailsVM.reverseOption,
                Reference           = reversalDetailsVM.reference
            };

            var x = ApiClient.GetInvoicesByCustomerId(4622859, new ApiWrapper.QueryOptions()).Results[0].Charges[0].Id;

            if (reversalDetailsVM.reverseOption.Equals("Amount"))
            {
                postReverseCharge.ReverseChargeAmount = reversalDetailsVM.specificAmount;
            }


            ApiClient.PostReverseCharge(postReverseCharge);
        }
Exemplo n.º 3
0
        public ReverseCharge PostReverseCharge(Fusebill.ApiWrapper.Dto.Post.ReverseCharge reverseCharge)
        {
            var url = RestUriBuilder.BuildUri("reverseCharges");

            return(PostEntity <Fusebill.ApiWrapper.Dto.Post.ReverseCharge, ReverseCharge>(url, reverseCharge));
        }