public virtual WePaySubscriptionPlanState Delete(SubscriptionPlanDeleteArguments arguments) { var parameters = ParameterBuilder.ApplyParameters(arguments); var response = Requestor.PostStringBearer(Urls.SubscriptionPlanDelete, AccessToken, parameters); return(WepayMapping <WePaySubscriptionPlanState> .MapFromJson(response)); }
public virtual WepayMFA Modify(UserMFAModify arguments) { var parameters = ParameterBuilder.ApplyParameters(arguments); var response = Requestor.PostStringBearer(Urls.UserMfaModify, AccessToken, parameters); return(WepayMapping <WepayMFA> .MapFromJson(response)); }
public virtual WePayWithdrawal Modify(WithdrawalModifyArguments arguments) { var parameters = ParameterBuilder.ApplyParameters(arguments); var response = Requestor.PostStringBearer(Urls.WithdrawalModify, AccessToken, parameters); return(WepayMapping <WePayWithdrawal> .MapFromJson(response)); }
public virtual WePaySubscriptionCharge[] Find(SubscriptionChargeFindArguments arguments) { var parameters = ParameterBuilder.ApplyParameters(arguments); var response = Requestor.PostStringBearer(Urls.SubscriptionChargeFind, AccessToken, parameters); return(WepayMapping <WePaySubscriptionCharge[]> .MapFromJson(response)); }
public virtual WepayMFAValidateCookie ValidateCookie(UserMFAValidateCookieArguments arguments) { var parameters = ParameterBuilder.ApplyParameters(arguments); var response = Requestor.PostStringBearer(Urls.UserMfacreateValidateCookie, AccessToken, parameters); return(WepayMapping <WepayMFAValidateCookie> .MapFromJson(response)); }
public virtual WePayUserSendConfirmation SendConfirmation(UserSendConfirmationArguments arguments) { var parameters = ParameterBuilder.ApplyParameters(arguments); var response = Requestor.PostStringBearer(Urls.UserSendConfirmation, AccessToken, parameters); return(WepayMapping <WePayUserSendConfirmation> .MapFromJson(response)); }
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)); }
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)); }
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)); }
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)); }
public virtual WepayMFA SendDefaultChallenge() { var response = Requestor.PostStringBearer(Urls.UserMfaSendDefaultChallenge, AccessToken); return(WepayMapping <WepayMFA> .MapFromJson(response)); }
public virtual WePayUser Get() { var response = Requestor.PostStringBearer(Urls.User, AccessToken); return(WepayMapping <WePayUser> .MapFromJson(response)); }