com.stripe.model
Class Invoice
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.APIResource
com.stripe.model.Invoice
public class Invoice
- extends APIResource
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)
|
Invoice
public Invoice()
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.