public virtual WePaySubscriptionPlanState Delete(SubscriptionPlanDeleteArguments arguments)
        {
            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(Urls.SubscriptionPlanDelete, AccessToken, parameters);

            return(WepayMapping <WePaySubscriptionPlanState> .MapFromJson(response));
        }
예제 #2
0
        public virtual WepayMFA Modify(UserMFAModify arguments)
        {
            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(Urls.UserMfaModify, AccessToken, parameters);

            return(WepayMapping <WepayMFA> .MapFromJson(response));
        }
예제 #3
0
        public virtual WePayWithdrawal Modify(WithdrawalModifyArguments arguments)
        {
            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(Urls.WithdrawalModify, AccessToken, parameters);

            return(WepayMapping <WePayWithdrawal> .MapFromJson(response));
        }
예제 #4
0
        public virtual WePaySubscriptionCharge[] Find(SubscriptionChargeFindArguments arguments)
        {
            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(Urls.SubscriptionChargeFind, AccessToken, parameters);

            return(WepayMapping <WePaySubscriptionCharge[]> .MapFromJson(response));
        }
예제 #5
0
        public virtual WepayMFAValidateCookie ValidateCookie(UserMFAValidateCookieArguments arguments)
        {
            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(Urls.UserMfacreateValidateCookie, AccessToken, parameters);

            return(WepayMapping <WepayMFAValidateCookie> .MapFromJson(response));
        }
예제 #6
0
        public virtual WePayUserSendConfirmation SendConfirmation(UserSendConfirmationArguments arguments)
        {
            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(Urls.UserSendConfirmation, AccessToken, parameters);

            return(WepayMapping <WePayUserSendConfirmation> .MapFromJson(response));
        }
예제 #7
0
        public virtual WePayCheckout Modify(CheckoutCreateArguments arguments)
        {
            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(Urls.CheckoutModify, AccessToken, parameters);

            return(WepayMapping <WePayCheckout> .MapFromJson(response));
        }
        public virtual WePayPreapprovalState Cancel(PreapprovalArguments arguments)
        {
            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(Urls.PreapprovalCancel, AccessToken, parameters);

            return(WepayMapping <WePayPreapprovalState> .MapFromJson(response));
        }
        public virtual WepayAccount Create(AccountCreateArgument arguments)
        {
            var url        = Urls.AccountCreate;
            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(url, AccessToken, parameters);

            return(WepayMapping <WepayAccount> .MapFromJson(response));
        }
예제 #10
0
        public virtual WePayCheckout Create(CheckoutCreateArguments arguments)
        {
            arguments.AccountId = arguments.AccountId.Equals(null) ? (AccountId == null ? WePayConfiguration.GetAccountId() : AccountId) : arguments.AccountId;
            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(Urls.CheckoutCreate, AccessToken, parameters);

            return(WepayMapping <WePayCheckout> .MapFromJson(response));
        }
        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));
        }
        public virtual WepayAccountMembership Remove(AccountMembershipRemoveArguments arguments)
        {
            arguments.AccountId = arguments.AccountId.Equals(null) ? (AccountId == null ? WePayConfiguration.GetAccountId() : AccountId) : arguments.AccountId;
            var url        = Urls.AccountMembershipRemove;
            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostStringBearer(url, AccessToken, parameters);

            return(WepayMapping <WepayAccountMembership> .MapFromJson(response));
        }
예제 #13
0
        public virtual WepayAppModify Modify(AppModifyArguments arguments)
        {
            arguments.ClientId     = arguments.ClientId.Equals(null) ? (ClientId == null ? WePayConfiguration.GetClientId() : ClientId) : arguments.ClientId;
            arguments.ClientSecret = string.IsNullOrWhiteSpace(arguments.ClientSecret) ? (string.IsNullOrWhiteSpace(ClientSecret) ? WePayConfiguration.GetClientSecret() : ClientSecret) : arguments.ClientSecret;

            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostString(Urls.AppModify, parameters);

            return(WepayMapping <WepayAppModify> .MapFromJson(response));
        }
        public virtual WePayCreditCardState Delete(CreditCardArguments arguments)
        {
            arguments.ClientId     = arguments.ClientId.Equals(null) ? (ClientId == null ? WePayConfiguration.GetClientId() : ClientId) : arguments.ClientId;
            arguments.ClientSecret = string.IsNullOrWhiteSpace(arguments.ClientSecret) ? (string.IsNullOrWhiteSpace(ClientSecret) ? WePayConfiguration.GetClientSecret() : ClientSecret) : arguments.ClientSecret;

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

            return(WepayMapping <WePayCreditCardState> .MapFromJson(response));
        }
예제 #15
0
        public virtual WePayUserRegisterd Register(UserRegisterArguments arguments)
        {
            arguments.ClientId     = arguments.ClientId.Equals(null) ? (ClientId == null ? WePayConfiguration.GetClientId() : ClientId) : arguments.ClientId;
            arguments.ClientSecret = string.IsNullOrWhiteSpace(arguments.ClientSecret) ? (string.IsNullOrWhiteSpace(ClientSecret) ? WePayConfiguration.GetClientSecret() : ClientSecret) : arguments.ClientSecret;

            if (string.IsNullOrWhiteSpace(arguments.Scope))
            {
                arguments.Scope = "collect_payments,manage_accounts,manage_subscriptions,preapprove_payments,send_money,view_user";
            }

            var parameters = ParameterBuilder.ApplyParameters(arguments);
            var response   = Requestor.PostString(Urls.UserRegister, parameters);

            return(WepayMapping <WePayUserRegisterd> .MapFromJson(response));
        }
예제 #16
0
        public virtual WepayMFA SendDefaultChallenge()
        {
            var response = Requestor.PostStringBearer(Urls.UserMfaSendDefaultChallenge, AccessToken);

            return(WepayMapping <WepayMFA> .MapFromJson(response));
        }
예제 #17
0
        public virtual WePayUser Get()
        {
            var response = Requestor.PostStringBearer(Urls.User, AccessToken);

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