public interface IPoyntSecondScreenService
extends android.os.IInterface
Modifier and Type | Interface and Description |
---|---|
static class |
IPoyntSecondScreenService.Stub
Local-side IPC implementation stub class.
|
Modifier and Type | Method and Description |
---|---|
void |
captureCashback(long amount,
long tipAmount,
long cashbackAmountLimit,
java.lang.String currency,
boolean autoSubmit,
long autoSubmitTimeout,
IPoyntSecondScreenCashbackEntryListener listener)
Displays the cashback collection screen to the customer.
|
void |
captureCode(SecondScreenLabels negativeButtonLabel,
IPoyntSecondScreenCodeScanListener listener)
Displays the scan code (barcode, qrcode, etc.) screen to the customer.
|
void |
captureDccChoice(co.poynt.api.model.ExchangeRate exchangeRate,
java.lang.String stayID,
IPoyntSecondScreenDynamicCurrConversionListener listener)
Displays Dynamic Currency Conversion option
|
void |
captureEmailAddress(java.lang.String currentReceiptEmail,
SecondScreenLabels negativeButtonLabel,
SecondScreenLabels positiveButtonLabel,
IPoyntSecondScreenEmailEntryListener listener)
Displays the email address collection screen to the customer.
|
void |
capturePhone(java.lang.String currentPhone,
SecondScreenLabels negativeButtonLabel,
SecondScreenLabels positiveButtonLabel,
IPoyntSecondScreenPhoneEntryListener listener)
Deprecated.
in favor of capturePhoneWithOptions
|
void |
capturePhoneNumber(SecondScreenLabels negativeButtonLabel,
SecondScreenLabels positiveButtonLabel,
IPoyntSecondScreenPhoneEntryListener listener)
Displays the phone numer collection screen to the customer.
|
void |
capturePhoneWithOptions(java.lang.String currentPhone,
SecondScreenLabels negativeButtonLabel,
SecondScreenLabels positiveButtonLabel,
android.os.Bundle options,
IPoyntSecondScreenPhoneEntryListener listener)
Displays the phone numer collection screen to the customer.
|
void |
captureTip(co.poynt.api.model.Transaction transaction,
IPoyntSecondScreenTipCaptureListener listener)
Displays the tip collection screen to the customer.
|
void |
collectEmailAddress(java.lang.String currentReceiptEmail,
IPoyntSecondScreenEmailEntryListener listener)
Deprecated.
in favor of captureEmailAddress
|
void |
collectPhoneNumber(IPoyntSecondScreenPhoneEntryListener listener)
Deprecated.
in favor of capturePhoneNumber
|
void |
collectRating(int minValue,
int maxValue,
int increment,
java.lang.String message,
android.graphics.Bitmap logo,
android.graphics.Bitmap scaleImage,
IPoyntSecondScreenRatingEntryListener listener)
Collect rating from the user based on the given scale.
|
void |
collectTextEntry(java.lang.String initialText,
IPoyntSecondScreenTextEntryListener listener)
Displays the text collection screen to the customer.
|
void |
collectTip(co.poynt.api.model.Transaction transaction,
IPoyntSecondScreenTipEntryListener listener)
Deprecated.
in favor of captureTip
|
void |
displayMessage(java.lang.String messageLabel,
android.graphics.Bitmap backgroundImage)
Displays a message with a custom background
|
void |
displayWelcome(java.lang.String buttonLabel,
android.graphics.Bitmap topLogo,
IPoyntSecondScreenCheckInListener listener)
Displays the welcome screen to the customer with an optional Check-in button.
|
void |
scanCode(IPoyntSecondScreenCodeScanListener listener)
Deprecated.
in favor of captureCode
Displays the scan code (barcode, qrcode, etc.) screen to the customer.
|
void |
showCheckIn(java.lang.String buttonLabel,
android.graphics.Bitmap buttonBackground,
android.graphics.Bitmap backgroundImage,
IPoyntSecondScreenCheckInListener listener)
Displays a screen with an action button with the default text "CHECK-IN"
|
void |
showItem(java.util.List<co.poynt.api.model.OrderItem> items,
long totalAmount,
java.lang.String currency)
Displays the given list of items on the second screen.
|
void |
showOrder(co.poynt.api.model.Order order,
long totalAmount,
java.lang.String currency)
Displays the given order on the second screen.
|
void showItem(java.util.List<co.poynt.api.model.OrderItem> items, long totalAmount, java.lang.String currency) throws android.os.RemoteException
items
- List of OrderItem
s to displaytotalAmount
- Total amount of items in cents.currency
- Currency of the total amount.android.os.RemoteException
void collectTip(co.poynt.api.model.Transaction transaction, IPoyntSecondScreenTipEntryListener listener) throws android.os.RemoteException
transaction
- Transaction
callback
- IPoyntSecondScreenTipAndReceiptListener
android.os.RemoteException
void collectPhoneNumber(IPoyntSecondScreenPhoneEntryListener listener) throws android.os.RemoteException
callback
- IPoyntSecondScreenPhoneEntryListener
android.os.RemoteException
void collectEmailAddress(java.lang.String currentReceiptEmail, IPoyntSecondScreenEmailEntryListener listener) throws android.os.RemoteException
currentReceiptEmail
- customer's email on record (if available)callback
- IPoyntSecondScreenEmailEntryListener
android.os.RemoteException
void collectTextEntry(java.lang.String initialText, IPoyntSecondScreenTextEntryListener listener) throws android.os.RemoteException
initialText
- initial text (if available)callback
- IPoyntSecondScreenEmailEntryListener
android.os.RemoteException
void scanCode(IPoyntSecondScreenCodeScanListener listener) throws android.os.RemoteException
callback
- IPoyntSecondScreenCodeScanListener
android.os.RemoteException
void displayWelcome(java.lang.String buttonLabel, android.graphics.Bitmap topLogo, IPoyntSecondScreenCheckInListener listener) throws android.os.RemoteException
buttonLabel
- The label displayed on the button (defaults to "CHECK-IN")topLogo
- logo to display above the button labelcallback
- (@link IPoyntSecondScreenCheckInListener}android.os.RemoteException
void showOrder(co.poynt.api.model.Order order, long totalAmount, java.lang.String currency) throws android.os.RemoteException
order
- order Order
s to displaytotalAmount
- Total amount of items in cents.currency
- Currency of the total amount.android.os.RemoteException
void captureEmailAddress(java.lang.String currentReceiptEmail, SecondScreenLabels negativeButtonLabel, SecondScreenLabels positiveButtonLabel, IPoyntSecondScreenEmailEntryListener listener) throws android.os.RemoteException
currentReceiptEmail
- customer's email on record (if available)negativeButtonLabel
- optional parameter to select a label for the button which defaults to "CANCEL"positiveButtonLabel
- optional parameter to select a label for the button which defaults to "SEND"callback
- IPoyntSecondScreenEmailEntryListener
android.os.RemoteException
void capturePhoneNumber(SecondScreenLabels negativeButtonLabel, SecondScreenLabels positiveButtonLabel, IPoyntSecondScreenPhoneEntryListener listener) throws android.os.RemoteException
negativeButtonLabel
- optional parameter to select a label for the button which defaults to "CANCEL"positiveButtonLabel
- optional parameter to select a label for the button which defaults to "ENTER"callback
- IPoyntSecondScreenPhoneEntryListener
android.os.RemoteException
void captureCode(SecondScreenLabels negativeButtonLabel, IPoyntSecondScreenCodeScanListener listener) throws android.os.RemoteException
negativeButtonLabel
- label for the button on the screencallback
- IPoyntSecondScreenCodeScanListener
android.os.RemoteException
void captureTip(co.poynt.api.model.Transaction transaction, IPoyntSecondScreenTipCaptureListener listener) throws android.os.RemoteException
transaction
- Transaction
listener
- IPoyntSecondScreenTipCaptureListener
android.os.RemoteException
void collectRating(int minValue, int maxValue, int increment, java.lang.String message, android.graphics.Bitmap logo, android.graphics.Bitmap scaleImage, IPoyntSecondScreenRatingEntryListener listener) throws android.os.RemoteException
minValue
- minimum value of the scale (eg. 1)maxValue
- maximum value of the scale (eg. 5)increment
- by between min and max values (eg. value of 1 will display rating scale as 1 2 3 4 5)listener
- IPoyntSecondScreenRatingEntryListener
android.os.RemoteException
void capturePhone(java.lang.String currentPhone, SecondScreenLabels negativeButtonLabel, SecondScreenLabels positiveButtonLabel, IPoyntSecondScreenPhoneEntryListener listener) throws android.os.RemoteException
currentPhone
- customer's phone number on record (if available)negativeButtonLabel
- optional parameter to select a label for the button which defaults to "CANCEL"positiveButtonLabel
- optional parameter to select a label for the button which defaults to "ENTER"callback
- IPoyntSecondScreenPhoneEntryListener
android.os.RemoteException
void displayMessage(java.lang.String messageLabel, android.graphics.Bitmap backgroundImage) throws android.os.RemoteException
messageLabel
- custom message to dipslay on the second screenbackgroundImage
- full screen background imageandroid.os.RemoteException
void showCheckIn(java.lang.String buttonLabel, android.graphics.Bitmap buttonBackground, android.graphics.Bitmap backgroundImage, IPoyntSecondScreenCheckInListener listener) throws android.os.RemoteException
buttonLabel
- text of the button. If null is passed, the default "CHECK-IN" is displayedbuttonBackground
- background image for the button (800dp x 80dp). If null, the button has a default blue color.
If not null, the button background is set to transparent colorbackgroundImage
- background for the second screen (800dp x 480dp). If null, the default background
is used.android.os.RemoteException
void capturePhoneWithOptions(java.lang.String currentPhone, SecondScreenLabels negativeButtonLabel, SecondScreenLabels positiveButtonLabel, android.os.Bundle options, IPoyntSecondScreenPhoneEntryListener listener) throws android.os.RemoteException
currentPhone
- customer's phone number on record (if available)negativeButtonLabel
- optional parameter to select a label for the button which defaults to "CANCEL"positiveButtonLabel
- optional parameter to select a label for the button which defaults to "ENTER"options
- bundle to pass additional confirmation arguments. Support keys:
PROMPT - text prompt in the phone field. Default "ENTER PHONE NUMBER". Allowed values are
defined in SecondScreenStrings
callback
- IPoyntSecondScreenPhoneEntryListener
android.os.RemoteException
void captureCashback(long amount, long tipAmount, long cashbackAmountLimit, java.lang.String currency, boolean autoSubmit, long autoSubmitTimeout, IPoyntSecondScreenCashbackEntryListener listener) throws android.os.RemoteException
amount
- of the transaction (without cashback)tip
- amount (in addition to the amount)cashbackAmountLimit
- max cashback allowedcurrency
- autoSubmit
- apply timeout on the cashback collection screenautoSubmitTimeout
- timeout in millisecslistener
- IPoyntSecondScreenCashbackEntryListener
android.os.RemoteException
void captureDccChoice(co.poynt.api.model.ExchangeRate exchangeRate, java.lang.String stayID, IPoyntSecondScreenDynamicCurrConversionListener listener) throws android.os.RemoteException
exchangeRate
- stayID
- optional parameter used for lodging merchantslistener
- IPoyntSecondScreenDynamicCurrConversionListener
android.os.RemoteException