public class PrintedReceipt
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<PrintedReceipt> |
CREATOR |
static byte |
ESC |
static byte |
PRINT_MODE |
Constructor and Description |
---|
PrintedReceipt() |
PrintedReceipt(android.os.Parcel parcel) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
convertReceiptToListOfStrings() |
int |
describeContents() |
java.util.List<PrintedReceiptLine> |
getBody() |
java.lang.String |
getBusinessName() |
java.util.List<PrintedReceiptLine> |
getFooter() |
android.graphics.Bitmap |
getFooterImage() |
java.util.List<PrintedReceiptLine> |
getHeader() |
android.graphics.Bitmap |
getHeaderImage() |
int |
getMaxTextLineLength() |
co.poynt.api.model.Phone |
getPhone() |
co.poynt.api.model.Address |
getStoreAddress() |
static java.lang.String |
justifyCenter(java.lang.String str,
int width,
char padWithChar) |
void |
printPrintedReceipLinetList(java.util.List<PrintedReceiptLine> inputList,
java.util.List<java.lang.String> result) |
void |
setBody(java.util.List<PrintedReceiptLine> body) |
void |
setBusinessName(java.lang.String businessName) |
void |
setFooter(java.util.List<PrintedReceiptLine> footer) |
void |
setFooterImage(android.graphics.Bitmap footerImage) |
void |
setHeader(java.util.List<PrintedReceiptLine> header) |
void |
setHeaderImage(android.graphics.Bitmap headerImage) |
void |
setHeaderInfo(java.lang.String businessName,
android.graphics.Bitmap headerImage,
co.poynt.api.model.Address storeAddress,
co.poynt.api.model.Phone phone) |
void |
setPhone(co.poynt.api.model.Phone phone) |
void |
setStoreAddress(co.poynt.api.model.Address storeAddress) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final byte ESC
public static final byte PRINT_MODE
public static final android.os.Parcelable.Creator<PrintedReceipt> CREATOR
public PrintedReceipt()
public PrintedReceipt(android.os.Parcel parcel)
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public android.graphics.Bitmap getHeaderImage()
public void setHeaderImage(android.graphics.Bitmap headerImage)
public co.poynt.api.model.Address getStoreAddress()
public void setStoreAddress(co.poynt.api.model.Address storeAddress)
public java.util.List<PrintedReceiptLine> getHeader()
public void setHeader(java.util.List<PrintedReceiptLine> header)
public java.util.List<PrintedReceiptLine> getBody()
public void setBody(java.util.List<PrintedReceiptLine> body)
public java.util.List<PrintedReceiptLine> getFooter()
public void setFooter(java.util.List<PrintedReceiptLine> footer)
public android.graphics.Bitmap getFooterImage()
public void setFooterImage(android.graphics.Bitmap footerImage)
public java.lang.String getBusinessName()
public void setBusinessName(java.lang.String businessName)
public co.poynt.api.model.Phone getPhone()
public void setPhone(co.poynt.api.model.Phone phone)
public void setHeaderInfo(java.lang.String businessName, android.graphics.Bitmap headerImage, co.poynt.api.model.Address storeAddress, co.poynt.api.model.Phone phone)
public java.util.List<java.lang.String> convertReceiptToListOfStrings()
public static java.lang.String justifyCenter(java.lang.String str, int width, char padWithChar)
public void printPrintedReceipLinetList(java.util.List<PrintedReceiptLine> inputList, java.util.List<java.lang.String> result)
public int getMaxTextLineLength()