public virtual WePaySubscriptionPlan[] Find(SubscriptionPlanFindArguments arguments)
        {
            arguments.AccountId = arguments.AccountId.Equals(null) ? (AccountId == null ? WePayConfiguration.GetAccountId() : AccountId) : arguments.AccountId;

            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(Urls.SubscriptionPlanFind, AccessToken, parameters);

            return(WepayMapping <WePaySubscriptionPlan[]> .MapFromJson(response));
        }
Exemplo n.º 2
0
        public virtual WePayWithdrawalCreated Create(WithdrawalCreateArguments arguments)
        {
            arguments.AccountId = arguments.AccountId.Equals(null) ? (AccountId == null ? WePayConfiguration.GetAccountId() : AccountId) : arguments.AccountId;

            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(Urls.WithdrawalCreate, AccessToken, parameters);

            return(WepayMapping <WePayWithdrawalCreated> .MapFromJson(response));
        }
        public virtual WepayAccountReserveDetails GetReserveDetails(AccountGetReserveDetailsArguments arguments)
        {
            arguments.AccountId = arguments.AccountId.Equals(null) ? (AccountId == null ? WePayConfiguration.GetAccountId() : AccountId) : arguments.AccountId;

            var url        = Urls.AccountModify;
            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(url, AccessToken, parameters);

            return(WepayMapping <WepayAccountReserveDetails> .MapFromJson(response));
        }