public class

PurchasePathRequest

extends Object
java.lang.Object
   ↳ com.usebutton.sdk.purchasepath.PurchasePathRequest

Class Overview

A Purchase Path request defines the parameters for a Purchase Path fetch.

Summary

Public Constructors
PurchasePathRequest(String url)
Creates a new Purchase Path request with the given url.
Public Methods
String getOfferId()
The Button-provided identifier for the offer backing this Purchase Path request.
String getPlacementId()
An optional description of the instance of a button that triggers this request.
String getPubRef()
An optional token to be associated with all downstream orders, transactions and webhooks.
String getUrl()
A merchant URL to a product, category or just the homepage.
void setOfferId(String offerId)
void setPlacementId(String placementId)
void setPubRef(String pubRef)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PurchasePathRequest (String url)

Creates a new Purchase Path request with the given url.

Parameters
url the merchant url.

Public Methods

public String getOfferId ()

The Button-provided identifier for the offer backing this Purchase Path request.

public String getPlacementId ()

An optional description of the instance of a button that triggers this request.

public String getPubRef ()

An optional token to be associated with all downstream orders, transactions and webhooks. (Max 100 chars.)

public String getUrl ()

A merchant URL to a product, category or just the homepage.

public void setOfferId (String offerId)

public void setPlacementId (String placementId)

public void setPubRef (String pubRef)