Exemplo n.º 1
0
        public PayViewModel(IPaymentProcessing paymentProcessing)
        {
            this.paymentProcessing = paymentProcessing;

            BackToMainPageCommand = new MvxCommand(() => ShowViewModel <HomeViewModel>());
            PayCommand            = new MvxCommand(() => AddHeaderViewModel <CreditCardsForPayViewModel>());
        }
Exemplo n.º 2
0
        public PayHistoryViewModel(IPaymentProcessing paymentProcessing)
        {
            this.paymentProcessing = paymentProcessing;

            GetPayDateFrom = new DateTime(2016, 10, 5);
            GetPayDateTo   = DateTime.Now;

            backHomeCommand         = new MvxCommand(() => { ShowViewModel <HomeViewModel>(); });
            backToPayHistoryCommand = new MvxCommand(() => { ShowViewModel <PayHistoryViewModel>(); });

            openCalendarFromCommand = new MvxCommand(async() =>
            {
                GetPayDateFrom = await Mvx.Resolve <ICalendarDialog>().ShowDialogAsync(GetPayDateFrom);
                await LoadHistoryAsync();
            });
            openCalendarToCommand = new MvxCommand(async() =>
            {
                GetPayDateTo = await Mvx.Resolve <ICalendarDialog>().ShowDialogAsync(GetPayDateTo);
                await LoadHistoryAsync();
            });

            downloadHistoryCommand = new MvxCommand(() => ServerCommandWrapperAsync(() => DownloadPdfAsync()));

            History = new MvxObservableCollection <PayHistory>();
        }
Exemplo n.º 3
0
 public PaymentsController(
     IPaymentProcessing paymentProcessing,
     IPaymentRepository paymentRepository)
 {
     _paymentProcessing = paymentProcessing;
     _paymentRepository = paymentRepository;
 }
Exemplo n.º 4
0
        public CreditCardsViewModel(IPaymentProcessing paymentProcessing)
        {
            this.paymentProcessing = paymentProcessing;

            CloseCreditCardsCommand = new MvxCommand(() => ShowViewModel <ProfileViewModel>());
            AddCreditCardsCommand   = new MvxCommand(() => ShowViewModel <AddCreditCardViewModel>());
            CrediCards = new MvxObservableCollection <CreditCardAuthorizeDotNetViewModel>();
        }
        public AddCreditCardViewModel(IPaymentProcessing paymentProcessing, IStoredSettingsService storedSettingsService)
        {
            this.paymentProcessing     = paymentProcessing;
            this.storedSettingsService = storedSettingsService;

            CloseAddCreditCardCommand = new MvxCommand(async() => { await CloseAsync(); });
            SaveCreditCardCommand     = new MvxCommand(async() => { await SaveCrediCardAsync(); });
        }
        public CreditCardAuthorizeDotNetViewModel(PaymentProfile creditCard, IPaymentProcessing paymentProcessing, Action removeCreditCardFromList)
        {
            CreditCard                    = creditCard;
            this.paymentProcessing        = paymentProcessing;
            this.removeCreditCardFromList = removeCreditCardFromList;

            RemoveCreditCardCommand = new MvxCommand(async() => { await RemoveCreditCardAsync(); });
        }
 public SynchronisationService(IServerApiService serverApiService, IStoredSettingsService storedSettingsService, IPaymentProcessing paymentProcessing)
 {
     this.serverApiService      = serverApiService;
     this.storedSettingsService = storedSettingsService;
     this.paymentProcessing     = paymentProcessing;
 }
Exemplo n.º 8
0
 public CreditCardsForPayViewModel(IPaymentProcessing paymentProcessing) : base(paymentProcessing)
 {
     this.paymentProcessing = paymentProcessing;
     ItemSelectedCommand    = new MvxCommand <CreditCardAuthorizeDotNetViewModel>(selectedCard => PayForTrips(selectedCard));
 }