java.lang.Object | |
↳ | com.usebutton.sdk.models.MerchantAction |
Defines a merchant link action for asynchronous resolution including redirects.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MerchantAction.OnCompleteListener | Interface definition for a callback to be invoked when a merchant action is complete. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | RESULT_CODE_ATTRIBUTED_ACTION_ENDED | An attributed action is available and was presented to the user. | |||||||||
int | RESULT_CODE_ERROR | An error was encountered while fetching the merchant action. | |||||||||
int | RESULT_CODE_NO_ACTION_STARTED | No attributed action is available and no fallback behavior was started. | |||||||||
int | RESULT_CODE_UNATTRIBUTED_ACTION_ENDED | No attributed action is available and a fallback behavior was presented to the user. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new merchant action with a URL.
| |||||||||||
Creates a new merchant action with a URL and a publisher reference.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a valid URL or `null` if invalid.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
An attributed action is available and was presented to the user.
An error was encountered while fetching the merchant action.
No attributed action is available and no fallback behavior was started.
No attributed action is available and a fallback behavior was presented to the user.
Creates a new merchant action with a URL.
url | The url of a merchant or link provider (may include redirects). |
---|
Creates a new merchant action with a URL and a publisher reference.
url | The url of a merchant or link provider (may include redirects). |
---|---|
publisherReference | A token to be associated with all downstream orders, transactions and webhooks. (Max 100 chars.) |
Returns a valid URL or `null` if invalid.