com.stripe.model
Class CustomerSubscriptionCollection

java.lang.Object
  extended by com.stripe.model.StripeObject
      extended by com.stripe.net.APIResource
          extended by com.stripe.model.CustomerSubscriptionCollection

public class CustomerSubscriptionCollection
extends APIResource

BETA ONLY (contact jim@stripe with questions)


Nested Class Summary
 
Nested classes/interfaces inherited from class com.stripe.net.APIResource
APIResource.RequestMethod
 
Field Summary
 
Fields inherited from class com.stripe.net.APIResource
CHARSET, GSON
 
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
 
Constructor Summary
CustomerSubscriptionCollection()
           
 
Method Summary
 CustomerSubscriptionCollection all(Map<String,Object> params)
           
 CustomerSubscriptionCollection all(Map<String,Object> params, String apiKey)
           
 CustomerSubscriptionCollection create(Map<String,Object> params)
           
 CustomerSubscriptionCollection create(Map<String,Object> params, String apiKey)
           
 Integer getCount()
           
 List<Subscription> getData()
           
 String getURL()
           
 Subscription retrieve(String id)
           
 Subscription retrieve(String id, String apiKey)
           
 
Methods inherited from class com.stripe.net.APIResource
_request, classURL, instanceURL, request, singleClassURL
 
Methods inherited from class com.stripe.model.StripeObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomerSubscriptionCollection

public CustomerSubscriptionCollection()
Method Detail

getData

public List<Subscription> getData()

getURL

public String getURL()

getCount

public Integer getCount()

all

public CustomerSubscriptionCollection all(Map<String,Object> params)
                                   throws AuthenticationException,
                                          InvalidRequestException,
                                          APIConnectionException,
                                          CardException,
                                          APIException
Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException

all

public CustomerSubscriptionCollection all(Map<String,Object> params,
                                          String apiKey)
                                   throws AuthenticationException,
                                          InvalidRequestException,
                                          APIConnectionException,
                                          CardException,
                                          APIException
Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException

retrieve

public Subscription retrieve(String id)
                      throws AuthenticationException,
                             InvalidRequestException,
                             APIConnectionException,
                             CardException,
                             APIException
Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException

retrieve

public Subscription retrieve(String id,
                             String apiKey)
                      throws AuthenticationException,
                             InvalidRequestException,
                             APIConnectionException,
                             CardException,
                             APIException
Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException

create

public CustomerSubscriptionCollection create(Map<String,Object> params)
                                      throws AuthenticationException,
                                             InvalidRequestException,
                                             APIConnectionException,
                                             CardException,
                                             APIException
Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException

create

public CustomerSubscriptionCollection create(Map<String,Object> params,
                                             String apiKey)
                                      throws AuthenticationException,
                                             InvalidRequestException,
                                             APIConnectionException,
                                             CardException,
                                             APIException
Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException


Copyright © 2014 Stripe. All rights reserved.