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));
        }
예제 #3
0
        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));
        }
예제 #4
0
 public virtual T Visit(CreditCardQueryRequest request)
 {
     return(DEFAULT_FUNC(request));
 }
 public string Visit(CreditCardQueryRequest request)
 {
     return(BuildUri(request.ApiVersion, "credit_cards"));
 }