コード例 #1
0
 public ExternalAccount create(Map<String, Object> params, RequestOptions options)
     throws AuthenticationException, InvalidRequestException, APIConnectionException,
         CardException, APIException {
   String url = String.format("%s%s", Stripe.getApiBase(), this.getURL());
   return APIResource.request(
       APIResource.RequestMethod.POST, url, params, ExternalAccount.class, options);
 }
コード例 #2
0
 public ExternalAccount retrieve(String id, RequestOptions options)
     throws AuthenticationException, InvalidRequestException, APIConnectionException,
         CardException, APIException {
   String url = String.format("%s%s/%s", Stripe.getApiBase(), this.getURL(), id);
   return APIResource.request(
       APIResource.RequestMethod.GET, url, null, ExternalAccount.class, options);
 }
コード例 #3
0
 @Override
 public String getInstanceURL() {
   String result = super.getInstanceURL();
   if (result == null) {
     return String.format("%s/%s/%s", Stripe.getApiBase(), "v1/bitcoin/receivers", this.getId());
   } else {
     return result;
   }
 }
コード例 #4
0
 public static BitcoinReceiver retrieve(String id, RequestOptions options)
     throws AuthenticationException, InvalidRequestException, APIConnectionException,
         CardException, APIException {
   return request(
       RequestMethod.GET,
       String.format("%s/%s/%s", Stripe.getApiBase(), "v1/bitcoin/receivers", id),
       null,
       BitcoinReceiver.class,
       options);
 }
コード例 #5
0
 public static BitcoinReceiver create(Map<String, Object> params, RequestOptions options)
     throws AuthenticationException, InvalidRequestException, APIConnectionException,
         CardException, APIException {
   return request(
       RequestMethod.POST,
       String.format("%s/%s", Stripe.getApiBase(), "v1/bitcoin/receivers"),
       params,
       BitcoinReceiver.class,
       options);
 }
コード例 #6
0
 public static BitcoinReceiverCollection list(Map<String, Object> params, RequestOptions options)
     throws AuthenticationException, InvalidRequestException, APIConnectionException,
         CardException, APIException {
   String url = String.format("%s/%s", Stripe.getApiBase(), "v1/bitcoin/receivers");
   return requestCollection(url, params, BitcoinReceiverCollection.class, options);
 }