/// <param name='operations'>
 /// Reference to the Pltkw3msApiUI2.ApiPayment.IPaymentStatus.
 /// </param>
 /// <param name='orderId'>
 /// Required.
 /// </param>
 public static string GetPaymentStatusByOrderid(this IPaymentStatus operations, string orderId)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IPaymentStatus)s).GetPaymentStatusByOrderidAsync(orderId);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the Pltkw3msApiPayment class.
 /// </summary>
 /// <param name='rootHandler'>
 /// Optional. The http client handler used to handle http transport.
 /// </param>
 /// <param name='handlers'>
 /// Optional. The set of delegating handlers to insert in the http
 /// client pipeline.
 /// </param>
 public Pltkw3msApiPayment(HttpClientHandler rootHandler, params DelegatingHandler[] handlers)
     : base(rootHandler, handlers)
 {
     this._payment       = new Payment(this);
     this._paymentStatus = new PaymentStatus(this);
     this._values        = new Values(this);
     this._baseUri       = new Uri("https://microsoft-apiapp6c15607b882d4821888b71d1deb4d725.azurewebsites.net");
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the Pltkw3msApiPayment class.
 /// </summary>
 public Pltkw3msApiPayment()
     : base()
 {
     this._payment       = new Payment(this);
     this._paymentStatus = new PaymentStatus(this);
     this._values        = new Values(this);
     this._baseUri       = new Uri("https://microsoft-apiapp6c15607b882d4821888b71d1deb4d725.azurewebsites.net");
 }
Esempio n. 4
0
        public PaymentStatusViewModel(IPaymentStatus paymentStatusStore, IPageService pageService)
        {
            _paymentStatusStore = paymentStatusStore;
            _pageService        = pageService;

            LoadDataCommand     = new Command(async() => await LoadData());
            AddPaymentStatus    = new Command(async() => await AddPaymentStatuses());
            SelectPaymentStatus = new Command <PaymentStatusTableViewModel>(async c => await SelectPaymentStatuses(c));
            DeletePaymentStatus = new Command <PaymentStatusTableViewModel>(async c => await DeletePaymentStatuses(c));
        }
Esempio n. 5
0
        public PaymentStatusDetailViewModel(PaymentStatusTableViewModel viewModel, IPaymentStatus paymentStatusStore, IPageService pageService)
        {
            if (viewModel == null)
            {
                throw new ArgumentNullException(nameof(viewModel));
            }

            _pageService        = pageService;
            _paymentStatusStore = paymentStatusStore;

            SaveCommand = new Command(async() => await Save());

            PaymentStatus = new PaymentStatus
            {
                id         = viewModel.Id,
                studentID  = viewModel.StudentID,
                courseID   = viewModel.CourseID,
                amountPaid = viewModel.AmountPaid,
                fee        = viewModel.Fee,
                date       = viewModel.Date
            };
        }
 public PaymentStatusController(IPaymentStatus paymentStatus)
 {
     _paymentStatus = paymentStatus;
 }
        /// <param name='operations'>
        /// Reference to the Pltkw3msApiUI2.ApiPayment.IPaymentStatus.
        /// </param>
        /// <param name='orderId'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <string> GetPaymentStatusByOrderidAsync(this IPaymentStatus operations, string orderId, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <string> result = await operations.GetPaymentStatusByOrderidWithOperationResponseAsync(orderId, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }