public class TemplateData extends PayPalModel
| Constructor and Description |
|---|
TemplateData()
Default Constructor
|
TemplateData(MerchantInfo merchantInfo)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Boolean |
getAllowPartialPayment()
Indicates whether the invoice allows a partial payment.
|
java.util.List<FileAttachment> |
getAttachments()
List of files attached to the invoice.
|
java.util.List<BillingInfo> |
getBillingInfo()
The required invoice recipient email address and any optional billing information.
|
java.util.List<java.lang.String> |
getCcInfo()
For invoices sent by email, one or more email addresses to which to send a Cc: copy of the notification.
|
CustomAmount |
getCustom()
The custom amount to apply on an invoice.
|
Cost |
getDiscount()
The invoice level discount, as a percent or an amount value.
|
java.util.List<InvoiceItem> |
getItems()
The list of items to include in the invoice.
|
java.lang.String |
getLogoUrl()
Full URL of an external image to use as the logo.
|
MerchantInfo |
getMerchantInfo()
Information about the merchant who is sending the invoice.
|
java.lang.String |
getMerchantMemo()
A private bookkeeping memo for the merchant.
|
Currency |
getMinimumAmountDue()
If `allow_partial_payment` is set to `true`, the minimum amount allowed for a partial payment.
|
java.lang.String |
getNote()
Note to the payer.
|
PaymentTerm |
getPaymentTerm()
Optional.
|
java.lang.String |
getReference()
Reference data, such as PO number, to add to the invoice.
|
ShippingCost |
getShippingCost()
The shipping cost, as a percent or an amount value.
|
ShippingInfo |
getShippingInfo()
The shipping information for entities to whom items are being shipped.
|
java.lang.Boolean |
getTaxCalculatedAfterDiscount()
Indicates whether tax is calculated before or after a discount.
|
java.lang.Boolean |
getTaxInclusive()
Indicates whether the unit price includes tax.
|
java.lang.String |
getTerms()
General terms of the invoice.
|
Currency |
getTotalAmount()
The total amount of the invoice.
|
int |
hashCode() |
TemplateData |
setAllowPartialPayment(java.lang.Boolean allowPartialPayment)
Indicates whether the invoice allows a partial payment.
|
TemplateData |
setAttachments(java.util.List<FileAttachment> attachments)
List of files attached to the invoice.
|
TemplateData |
setBillingInfo(java.util.List<BillingInfo> billingInfo)
The required invoice recipient email address and any optional billing information.
|
TemplateData |
setCcInfo(java.util.List<java.lang.String> ccInfo)
For invoices sent by email, one or more email addresses to which to send a Cc: copy of the notification.
|
TemplateData |
setCustom(CustomAmount custom)
The custom amount to apply on an invoice.
|
TemplateData |
setDiscount(Cost discount)
The invoice level discount, as a percent or an amount value.
|
TemplateData |
setItems(java.util.List<InvoiceItem> items)
The list of items to include in the invoice.
|
TemplateData |
setLogoUrl(java.lang.String logoUrl)
Full URL of an external image to use as the logo.
|
TemplateData |
setMerchantInfo(MerchantInfo merchantInfo)
Information about the merchant who is sending the invoice.
|
TemplateData |
setMerchantMemo(java.lang.String merchantMemo)
A private bookkeeping memo for the merchant.
|
TemplateData |
setMinimumAmountDue(Currency minimumAmountDue)
If `allow_partial_payment` is set to `true`, the minimum amount allowed for a partial payment.
|
TemplateData |
setNote(java.lang.String note)
Note to the payer.
|
TemplateData |
setPaymentTerm(PaymentTerm paymentTerm)
Optional.
|
TemplateData |
setReference(java.lang.String reference)
Reference data, such as PO number, to add to the invoice.
|
TemplateData |
setShippingCost(ShippingCost shippingCost)
The shipping cost, as a percent or an amount value.
|
TemplateData |
setShippingInfo(ShippingInfo shippingInfo)
The shipping information for entities to whom items are being shipped.
|
TemplateData |
setTaxCalculatedAfterDiscount(java.lang.Boolean taxCalculatedAfterDiscount)
Indicates whether tax is calculated before or after a discount.
|
TemplateData |
setTaxInclusive(java.lang.Boolean taxInclusive)
Indicates whether the unit price includes tax.
|
TemplateData |
setTerms(java.lang.String terms)
General terms of the invoice.
|
TemplateData |
setTotalAmount(Currency totalAmount)
The total amount of the invoice.
|
toJSON, toStringpublic TemplateData()
public TemplateData(MerchantInfo merchantInfo)
public MerchantInfo getMerchantInfo()
public java.util.List<BillingInfo> getBillingInfo()
public java.util.List<java.lang.String> getCcInfo()
public ShippingInfo getShippingInfo()
public java.util.List<InvoiceItem> getItems()
public PaymentTerm getPaymentTerm()
public java.lang.String getReference()
public Cost getDiscount()
public ShippingCost getShippingCost()
public CustomAmount getCustom()
public java.lang.Boolean getAllowPartialPayment()
public Currency getMinimumAmountDue()
public java.lang.Boolean getTaxCalculatedAfterDiscount()
public java.lang.Boolean getTaxInclusive()
public java.lang.String getTerms()
public java.lang.String getNote()
public java.lang.String getMerchantMemo()
public java.lang.String getLogoUrl()
public Currency getTotalAmount()
public java.util.List<FileAttachment> getAttachments()
public TemplateData setMerchantInfo(MerchantInfo merchantInfo)
public TemplateData setBillingInfo(java.util.List<BillingInfo> billingInfo)
public TemplateData setCcInfo(java.util.List<java.lang.String> ccInfo)
public TemplateData setShippingInfo(ShippingInfo shippingInfo)
public TemplateData setItems(java.util.List<InvoiceItem> items)
public TemplateData setPaymentTerm(PaymentTerm paymentTerm)
public TemplateData setReference(java.lang.String reference)
public TemplateData setDiscount(Cost discount)
public TemplateData setShippingCost(ShippingCost shippingCost)
public TemplateData setCustom(CustomAmount custom)
public TemplateData setAllowPartialPayment(java.lang.Boolean allowPartialPayment)
public TemplateData setMinimumAmountDue(Currency minimumAmountDue)
public TemplateData setTaxCalculatedAfterDiscount(java.lang.Boolean taxCalculatedAfterDiscount)
public TemplateData setTaxInclusive(java.lang.Boolean taxInclusive)
public TemplateData setTerms(java.lang.String terms)
public TemplateData setNote(java.lang.String note)
public TemplateData setMerchantMemo(java.lang.String merchantMemo)
public TemplateData setLogoUrl(java.lang.String logoUrl)
public TemplateData setTotalAmount(Currency totalAmount)
public TemplateData setAttachments(java.util.List<FileAttachment> attachments)
public boolean equals(java.lang.Object o)
equals in class PayPalModelprotected boolean canEqual(java.lang.Object other)
canEqual in class PayPalModelpublic int hashCode()
hashCode in class PayPalModel