public IList <CreditCard> ListCreditCards(string accessToken) { CreditCardQueryRequest request = new CreditCardQueryRequest(accessToken); CreditCardQueryResponse response = request.Accept(_engine) as CreditCardQueryResponse; return(response.CreditCards); }
public IResponse Visit(CreditCardQueryRequest request) { List <CreditCard> response = _restWrapper.Get <List <CreditCard> >(uri: GetEndpoint(request), accessTokenHeader: GetHeaderToken(request), actions: GetCustomResponseHandlers(request)); return(new CreditCardQueryResponse(response)); }
public IList <CreditCard> ListCreditCards(string accessToken) { CreditCardQueryRequest request = new CreditCardQueryRequest(accessToken); return(_restWrapper.Get <List <CreditCard> >( uri: BuildUri(request.ApiVersion, "credit_cards"), accessTokenHeader: FormatAccessTokenString(unspecifiedUserAccessToken: request.AccessToken), actions: null)); }
public virtual T Visit(CreditCardQueryRequest request) { return(DEFAULT_FUNC(request)); }
public string Visit(CreditCardQueryRequest request) { return(BuildUri(request.ApiVersion, "credit_cards")); }