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); }
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); }
@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; } }
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); }
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); }
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); }