Package com.clover.sdk.v3.payments.api
Class PaymentRequestIntentBuilder.ReceiptOptions
- java.lang.Object
-
- com.clover.sdk.v3.payments.api.PaymentRequestIntentBuilder.ReceiptOptions
-
- Enclosing class:
- PaymentRequestIntentBuilder
public static class PaymentRequestIntentBuilder.ReceiptOptions extends Object
Receipt options that allow the Integrator to control the receipt selection on a per-transaction level.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PaymentRequestIntentBuilder.ReceiptOptions.EmailReceiptOption
EmailReceiptOption that allows the Integrator to control the Email receipt option.static class
PaymentRequestIntentBuilder.ReceiptOptions.NoReceiptOption
PrintReceiptOption that allows the Integrator to control the Print receipt option.static class
PaymentRequestIntentBuilder.ReceiptOptions.PrintReceiptOption
PrintReceiptOption that allows the Integrator to control the Print receipt option.static class
PaymentRequestIntentBuilder.ReceiptOptions.SmsReceiptOption
SmsReceiptOption that allows the Integrator to control the Sms receipt option.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PaymentRequestIntentBuilder.ReceiptOptions
Default(boolean cloverShouldHandleReceipts)
Create ReceiptOptions with the default list of options displaying, with an option to have the Clover default receipt processing or not.static PaymentRequestIntentBuilder.ReceiptOptions
Instance(Boolean cloverShouldHandleReceipts, PaymentRequestIntentBuilder.ReceiptOptions.SmsReceiptOption smsReceiptOption, PaymentRequestIntentBuilder.ReceiptOptions.EmailReceiptOption emailReceiptOption, PaymentRequestIntentBuilder.ReceiptOptions.PrintReceiptOption printReceiptOption, PaymentRequestIntentBuilder.ReceiptOptions.NoReceiptOption noReceiptOption)
Builds a ReceiptOptions where some options may be specifiedstatic PaymentRequestIntentBuilder.ReceiptOptions
SkipReceiptSelection()
This will cause the UI flow to skip the receipt selection screen and no customer receipt will be processed
-
-
-
Method Detail
-
Default
public static PaymentRequestIntentBuilder.ReceiptOptions Default(boolean cloverShouldHandleReceipts)
Create ReceiptOptions with the default list of options displaying, with an option to have the Clover default receipt processing or not.- Parameters:
cloverShouldHandleReceipts
- - true-Clover will process a default Clover receipt(default), or false-will return the object with a REQUESTED value if a default Clover receipt isn't desired. For SMS and Email, an additional field containing the sms number or email address will also be returned.- Returns:
-
SkipReceiptSelection
public static PaymentRequestIntentBuilder.ReceiptOptions SkipReceiptSelection()
This will cause the UI flow to skip the receipt selection screen and no customer receipt will be processed- Returns:
-
Instance
public static PaymentRequestIntentBuilder.ReceiptOptions Instance(Boolean cloverShouldHandleReceipts, PaymentRequestIntentBuilder.ReceiptOptions.SmsReceiptOption smsReceiptOption, PaymentRequestIntentBuilder.ReceiptOptions.EmailReceiptOption emailReceiptOption, PaymentRequestIntentBuilder.ReceiptOptions.PrintReceiptOption printReceiptOption, PaymentRequestIntentBuilder.ReceiptOptions.NoReceiptOption noReceiptOption)
Builds a ReceiptOptions where some options may be specified- Parameters:
cloverShouldHandleReceipts
- - true-Clover will process a default Clover receipt(default), or false-will return the object with a REQUESTED value if a default Clover receipt isn't desired. For SMS and Email, an additional field containing the sms number or email address will also be returned.smsReceiptOption
- - @see SmsReceiptOptionemailReceiptOption
- - @see EmailReceiptOptionsprintReceiptOption
- - @see PrintReceiptOptionnoReceiptOption
- - @see NoReceiptOption- Returns:
-
-