com.stripe.model
Class Invoice

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

public class Invoice
extends APIResource


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
Invoice()
           
 
Method Summary
static InvoiceCollection all(Map<String,Object> params)
           
static InvoiceCollection all(Map<String,Object> params, String apiKey)
           
static Invoice create(Map<String,Object> params)
           
static Invoice create(Map<String,Object> params, String apiKey)
           
 Integer getAmountDue()
           
 Integer getAttemptCount()
           
 Boolean getAttempted()
           
 String getCharge()
           
 Boolean getClosed()
           
 Long getCreated()
           
 String getCurrency()
           
 String getCustomer()
           
 Long getDate()
           
 Discount getDiscount()
           
 Integer getEndingBalance()
           
 String getId()
           
 InvoiceLineItemCollection getLines()
           
 Boolean getLivemode()
           
 Long getNextPaymentAttempt()
           
 Boolean getPaid()
           
 Long getPeriodEnd()
           
 Long getPeriodStart()
           
 Integer getStartingBalance()
           
 Integer getSubtotal()
           
 Integer getTotal()
           
 Invoice pay()
           
 Invoice pay(String apiKey)
           
static Invoice retrieve(String id)
           
static Invoice retrieve(String id, String apiKey)
           
 void setAmountDue(Integer amountDue)
           
 void setAttemptCount(Integer attemptCount)
           
 void setAttempted(Boolean attempted)
           
 void setCharge(String charge)
           
 void setClosed(Boolean closed)
           
 void setCreated(Long created)
           
 void setCurrency(String currency)
           
 void setCustomer(String customer)
           
 void setDate(Long date)
           
 void setDiscount(Discount discount)
           
 void setEndingBalance(Integer endingBalance)
           
 void setId(String id)
           
 void setLivemode(Boolean livemode)
           
 void setNextPaymentAttempt(Long nextPaymentAttempt)
           
 void setPaid(Boolean paid)
           
 void setPeriodEnd(Long periodEnd)
           
 void setPeriodStart(Long periodStart)
           
 void setStartingBalance(Integer startingBalance)
           
 void setSubtotal(Integer subtotal)
           
 void setTotal(Integer total)
           
static Invoice upcoming(Map<String,Object> params)
           
static Invoice upcoming(Map<String,Object> params, String apiKey)
           
 Invoice update(Map<String,Object> params)
           
 Invoice update(Map<String,Object> params, 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

Invoice

public Invoice()
Method Detail

getSubtotal

public Integer getSubtotal()

setSubtotal

public void setSubtotal(Integer subtotal)

getTotal

public Integer getTotal()

setTotal

public void setTotal(Integer total)

getAmountDue

public Integer getAmountDue()

setAmountDue

public void setAmountDue(Integer amountDue)

getStartingBalance

public Integer getStartingBalance()

setStartingBalance

public void setStartingBalance(Integer startingBalance)

getEndingBalance

public Integer getEndingBalance()

setEndingBalance

public void setEndingBalance(Integer endingBalance)

getId

public String getId()

setId

public void setId(String id)

getCreated

public Long getCreated()

setCreated

public void setCreated(Long created)

getNextPaymentAttempt

public Long getNextPaymentAttempt()

setNextPaymentAttempt

public void setNextPaymentAttempt(Long nextPaymentAttempt)

getAttempted

public Boolean getAttempted()

setAttempted

public void setAttempted(Boolean attempted)

getCharge

public String getCharge()

setCharge

public void setCharge(String charge)

getClosed

public Boolean getClosed()

setClosed

public void setClosed(Boolean closed)

getCustomer

public String getCustomer()

setCustomer

public void setCustomer(String customer)

getDate

public Long getDate()

setDate

public void setDate(Long date)

getPaid

public Boolean getPaid()

setPaid

public void setPaid(Boolean paid)

getPeriodStart

public Long getPeriodStart()

setPeriodStart

public void setPeriodStart(Long periodStart)

getPeriodEnd

public Long getPeriodEnd()

setPeriodEnd

public void setPeriodEnd(Long periodEnd)

getDiscount

public Discount getDiscount()

setDiscount

public void setDiscount(Discount discount)

getLines

public InvoiceLineItemCollection getLines()

getLivemode

public Boolean getLivemode()

setLivemode

public void setLivemode(Boolean livemode)

getAttemptCount

public Integer getAttemptCount()

setAttemptCount

public void setAttemptCount(Integer attemptCount)

getCurrency

public String getCurrency()

setCurrency

public void setCurrency(String currency)

retrieve

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

create

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

all

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

upcoming

public static Invoice upcoming(Map<String,Object> params)
                        throws AuthenticationException,
                               InvalidRequestException,
                               APIConnectionException,
                               CardException,
                               APIException
Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException

pay

public Invoice pay()
            throws AuthenticationException,
                   InvalidRequestException,
                   APIConnectionException,
                   CardException,
                   APIException
Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException

update

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

retrieve

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

create

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

upcoming

public static Invoice upcoming(Map<String,Object> params,
                               String apiKey)
                        throws AuthenticationException,
                               InvalidRequestException,
                               APIConnectionException,
                               CardException,
                               APIException
Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException

all

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

update

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

pay

public Invoice pay(String apiKey)
            throws AuthenticationException,
                   InvalidRequestException,
                   APIConnectionException,
                   CardException,
                   APIException
Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException


Copyright © 2014 Stripe. All rights reserved.