diff --git a/docs/history/1.4.3/Classes.html b/docs/history/1.4.3/Classes.html
new file mode 100644
index 0000000..ed1a2a1
--- /dev/null
+++ b/docs/history/1.4.3/Classes.html
@@ -0,0 +1,200 @@
+
+
+
+ Classes Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Classes Reference
+
+
+
+
+
+
+
+ Classes
+ The following classes are available globally.
+
+
+
+
+
+
+
+
+
+
+
+
+
ButtonMerchant
is the main entry point to the library.
+
+
To get started with your integration,
+get your application Id from from the Button Dashboard .
+and follow our simple integration guide
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objcMembers
+final public class ButtonMerchant : NSObject
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A concrete implementation of the ButtonProductCompatible protocol.
+
+
See more
+
+
+
+
+
+
+
+
+
+
+
+
+
Represents an order placed by the user to be reported using ButtonMerchant.reportOrder(order)
.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objcMembers
+final public class Order : NSObject , Codable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Classes/ButtonMerchant.html b/docs/history/1.4.3/Classes/ButtonMerchant.html
new file mode 100644
index 0000000..537ad93
--- /dev/null
+++ b/docs/history/1.4.3/Classes/ButtonMerchant.html
@@ -0,0 +1,553 @@
+
+
+
+ ButtonMerchant Class Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ ButtonMerchant Class Reference
+
+
+
+
+
+
+
+ ButtonMerchant
+
+
+
@objcMembers
+final public class ButtonMerchant : NSObject
+
+
+
+ ButtonMerchant
is the main entry point to the library.
+
+To get started with your integration,
+get your application Id from from the Button Dashboard .
+and follow our simple integration guide
+
+
+
+
+
+
+
+
+
+
+
+
+
The last tracked attributionToken
from an inbound Button attributed URL.
+
+
Attention
+ For attribution to work correctly, you must:
+
+
+Always access this token directly—never cache it .
+Never manage the lifecycle of this token—Button manages the token validity window server-side.
+Always include this value when reporting orders to your order API
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static var attributionToken : String ? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Configures ButtonMerchant with your application Id.
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static func configure ( applicationId : String )
+
+
+
+
+
Parameters
+
+
+
+
+
+ applicationId
+
+
+
+
+
Your application Id (required)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks the passed URL for a Button attribution and if present stores the token.
+
+
Attention
+
To correctly attribute customers, you must call this method with every
+incoming url
and userActivity
from the following UIApplicationDelegate
methods:
+
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static func trackIncomingURL ( _ url : URL )
+
+
+
+
+
Parameters
+
+
+
+
+
+ url
+
+
+
+
+
A URL that has entered your app from a third party source.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks the URL in the passed NSUserActivity for a Button attribution and if present stores the token.
+
+
Attention
+
To correctly attribute customers, you must call this method with every
+incoming userActivity
from the following UIApplicationDelegate
method:
+
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static func trackIncomingUserActivity ( _ userActivity : NSUserActivity )
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks to see if the user visited a url prior to installing your app.
+
+
If a url is found, your completion handler will be called with the url and you are responsible
+for navigating the user to the relevant content in your app. If a url is not found or an error occurs, your
+completion handler will be called without a url and you can continue with your normal launch sequence.
+
+
Attention
+
This method checks for a post-install url exactly one time after a user has installed your app.
+Subsequent calls will result in your completion handler being called without a url. You do not need to wait
+for the completion handler before continuing with your normal launch sequence but you should be prepared
+to handle a post-install url is one is found. All subsequent incoming urls will be routed to your
+UIApplicationDelegate
as usual.
+
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static func handlePostInstallURL ( _ completion : @escaping ( URL ?, Error ?) -> Void )
+
+
+
+
+
Parameters
+
+
+
+
+
+ completion
+
+
+
+
+
A completion block taking an optional url and optional error.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Reports an order to Button.
+
+
See also: Reporting Orders to Button
+(docs )
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static func reportOrder ( _ order : Order , completion : (( Error ?) -> Void )? = nil )
+
+
+
+
+
Parameters
+
+
+
+
+
+ order
+
+
+
+
+
Your order object to be reported.
+
+
+
+
+
+
+ completion
+
+
+
+
+
An optional completion block taking an optional error.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Discards the current session and all persisted data.
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static func clearAllData ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
An interface through which library features can be enabled/disabled.
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static var features : Configurable { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
An interface through which user activity can be reported.
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static var activity : Activity { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Deprecated.
+
+
This method is deprecated and will be removed in a future version. It is safe to remove your usage of this method.
+
+
+
+
Declaration
+
+
Swift
+
@available ( * , deprecated , message : "No longer supported. You can safely remove your usage of this method." )
+@objc
+public static func trackOrder ( _ order : Order , completion : (( Error ?) -> Void )? = nil )
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Classes/ButtonProduct.html b/docs/history/1.4.3/Classes/ButtonProduct.html
new file mode 100644
index 0000000..05e0469
--- /dev/null
+++ b/docs/history/1.4.3/Classes/ButtonProduct.html
@@ -0,0 +1,350 @@
+
+
+
+ ButtonProduct Class Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ ButtonProduct Class Reference
+
+
+
+
+
+
+
+ ButtonProduct
+
+ A concrete implementation of the ButtonProductCompatible protocol.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var id : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var upc : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var categories : [ String ]?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var name : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var currency : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var value : Int
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var quantity : Int
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var url : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var attributes : [ String : String ]?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Classes/Order.html b/docs/history/1.4.3/Classes/Order.html
new file mode 100644
index 0000000..49fd4d7
--- /dev/null
+++ b/docs/history/1.4.3/Classes/Order.html
@@ -0,0 +1,336 @@
+
+
+
+ Order Class Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Order Class Reference
+
+
+
+
+
+
+
+ Order
+
+
+
@objcMembers
+final public class Order : NSObject , Codable
+
+
+
+ Represents an order placed by the user to be reported using ButtonMerchant.reportOrder(order)
.
+
+
+
+
+
+
+
+
+
+
+
+
+
The ISO 4217 currency code (default is USD).
+
+
+
+
Declaration
+
+
Swift
+
public var currencyCode : String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The customer-facing order id.
+
+
+
+
Declaration
+
+
Swift
+
public var customerOrderId : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The customer related to the order
+
+
+
+
Declaration
+
+
Swift
+
public var customer : Customer ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Initializes an order object with the passed parameters.
+
+
+id: The order identifier (required).
+purchaseDate: The date of the purchase for the order.
+lineItems: A list of the line item details that comprise the order.
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public init ( id : String , purchaseDate : Date , lineItems : [ LineItem ])
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Represents a customer in the order.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objcMembers
+@objc ( BTNCustomer )
+final public class Customer : NSObject , Codable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Represents a line item in the order.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objcMembers
+@objc ( LineItem )
+final public class LineItem : NSObject , Codable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Deprecated.
+
+
If you’re migrating to client side order reporting, please use init(id:purchaseDate:lineItems:) instead.
+
+
+
+
Declaration
+
+
Swift
+
@available ( * , deprecated , message : "Use init(id:purchaseDate:lineItems:﹚ instead" )
+@objc
+public init ( id : String , amount : Int64 = 0 , currencyCode : String = "USD" )
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Classes/Order/Customer.html b/docs/history/1.4.3/Classes/Order/Customer.html
new file mode 100644
index 0000000..8c26cc3
--- /dev/null
+++ b/docs/history/1.4.3/Classes/Order/Customer.html
@@ -0,0 +1,207 @@
+
+
+
+ Customer Class Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Customer Class Reference
+
+
+
+
+
+
+
+ Customer
+
+
+
@objcMembers
+@objc ( BTNCustomer )
+final public class Customer : NSObject , Codable
+
+
+
+ Represents a customer in the order.
+
+
+
+
+
+
+
+
+
+
+
+
+
The SHA-256 hash of the transacting customer’s lowercase email, as a 64-character hex string.
+
+
Note : The value of the e-mail address must be converted to lowercase before
+computing the hash. The hash itself may use uppercase or lowercase hex characters.
+
+
+
+
Declaration
+
+
Swift
+
public var email : String ? { get set }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A flag indicating whether the customer is new (or not).
+
+
+
+
Declaration
+
+
Swift
+
public var isNew : Bool ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Initializes a customer object with the passed parameters.
+
+
+id: The id for your customer (required).
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public init ( id : String )
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Classes/Order/LineItem.html b/docs/history/1.4.3/Classes/Order/LineItem.html
new file mode 100644
index 0000000..b43d37f
--- /dev/null
+++ b/docs/history/1.4.3/Classes/Order/LineItem.html
@@ -0,0 +1,342 @@
+
+
+
+ LineItem Class Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ LineItem Class Reference
+
+
+
+
+
+
+
+ LineItem
+
+
+
@objcMembers
+@objc ( LineItem )
+final public class LineItem : NSObject , Codable
+
+
+
+ Represents a line item in the order.
+
+
+
+
+
+
+
+
+
+
+
+
+
The number of unique units represented by this line item (default is 1).
+
+
+
+
Declaration
+
+
Swift
+
public var quantity : Int
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Text describing the line item.
+
+
+
+
Declaration
+
+
Swift
+
public var itemDescription : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The Stock Keeping Unit of the line item.
+
+
+
+
Declaration
+
+
Swift
+
public var sku : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The Universal Product Code of the line item.
+
+
+
+
Declaration
+
+
Swift
+
public var upc : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The category of the line item.
+An ordered list of strings, starting with the topmost (or most general) category.
+
+
+
+
Declaration
+
+
Swift
+
public var category : [ String ]?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A key/value store for strings to specify additional information about a line item.
+
+
+
+
Declaration
+
+
Swift
+
public var attributes : [ String : String ]?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
An array of the line item details that comprise the order
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public init ( id : String , total : Int64 )
+
+
+
+
+
Parameters
+
+
+
+
+
+ id
+
+
+
+
+
The unique identifier for this line item, within the scope of this order.
+ This must be unique across all line-items within the order.
+ We suggest using the SKU or UPC of the product. (required)
+
+
+
+
+
+
+ total
+
+
+
+
+
The total price of all items bought in a particular line item. (required)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Enums.html b/docs/history/1.4.3/Enums.html
new file mode 100644
index 0000000..fcad5f2
--- /dev/null
+++ b/docs/history/1.4.3/Enums.html
@@ -0,0 +1,197 @@
+
+
+
+ Enumerations Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Enumerations Reference
+
+
+
+
+
+
+
+ Enumerations
+ The following enumerations are available globally.
+
+
+
+
+
+
+
+
+
+
+
+
+
Button Merchant Library Errors.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public enum ButtonMerchantError : Error
+
extension ButtonMerchantError : Equatable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Button Merchant Library Configuration Error.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public enum ConfigurationError : Error
+
extension ConfigurationError : Equatable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Button Merchant Library Configuration Error.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public enum NetworkError : Error
+
extension NetworkError : Equatable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Enums/ButtonMerchantError.html b/docs/history/1.4.3/Enums/ButtonMerchantError.html
new file mode 100644
index 0000000..f9ff570
--- /dev/null
+++ b/docs/history/1.4.3/Enums/ButtonMerchantError.html
@@ -0,0 +1,171 @@
+
+
+
+ ButtonMerchantError Enumeration Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ ButtonMerchantError Enumeration Reference
+
+
+
+
+
+
+
+ ButtonMerchantError
+
+
+
public enum ButtonMerchantError : Error
+
extension ButtonMerchantError : Equatable
+
+
+
+ Button Merchant Library Errors.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
case trackOrderDeprecationError
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
case noEventsError
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Enums/ConfigurationError.html b/docs/history/1.4.3/Enums/ConfigurationError.html
new file mode 100644
index 0000000..1302111
--- /dev/null
+++ b/docs/history/1.4.3/Enums/ConfigurationError.html
@@ -0,0 +1,176 @@
+
+
+
+ ConfigurationError Enumeration Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ ConfigurationError Enumeration Reference
+
+
+
+
+
+
+
+ ConfigurationError
+
+
+
public enum ConfigurationError : Error
+
extension ConfigurationError : Equatable
+
+
+
+ Button Merchant Library Configuration Error.
+
+
+
+
+
+
+
+
+
+
+
+
+
Library is not configured with an applicationId
+
+
+
+
+
Declaration
+
+
Swift
+
case noApplicationId
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
case invalidApplicationId ( appicationId : String )
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Enums/NetworkError.html b/docs/history/1.4.3/Enums/NetworkError.html
new file mode 100644
index 0000000..a396064
--- /dev/null
+++ b/docs/history/1.4.3/Enums/NetworkError.html
@@ -0,0 +1,144 @@
+
+
+
+ NetworkError Enumeration Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ NetworkError Enumeration Reference
+
+
+
+
+
+
+
+ NetworkError
+
+
+
public enum NetworkError : Error
+
extension NetworkError : Equatable
+
+
+
+ Button Merchant Library Configuration Error.
+
+
+
+
+
+
+
+
+
+
+
+
+
There was an unknown network error.
+
+
+
+
Declaration
+
+
Swift
+
case unknown
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Protocols.html b/docs/history/1.4.3/Protocols.html
new file mode 100644
index 0000000..edcb5ee
--- /dev/null
+++ b/docs/history/1.4.3/Protocols.html
@@ -0,0 +1,197 @@
+
+
+
+ Protocols Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Protocols Reference
+
+
+
+
+
+
+
+ Protocols
+ The following protocols are available globally.
+
+
+
+
+
+
+
+
+
+
+
+
+
A protocol through which user activities can be reported.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objc
+public protocol Activity : AnyObject
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A protocol that defines the product properties that may be provided when reporting user activity.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objc
+public protocol ButtonProductCompatible : AnyObject
+
+
+
+
+
+
+
+
+
+
+
+
+
+
An interface through which library features can be enabled/disabled.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objc
+public protocol Configurable : AnyObject
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Protocols/Activity.html b/docs/history/1.4.3/Protocols/Activity.html
new file mode 100644
index 0000000..d9d59aa
--- /dev/null
+++ b/docs/history/1.4.3/Protocols/Activity.html
@@ -0,0 +1,210 @@
+
+
+
+ Activity Protocol Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Activity Protocol Reference
+
+
+
+
+
+
+
+ Activity
+
+
+
@objc
+public protocol Activity : AnyObject
+
+
+
+ A protocol through which user activities can be reported.
+
+
+
+
+
+
+
+
+
+
+
+
+
Report that the user has viewed a product.
+
+
+product: The product being viewed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Report that the user added a product to their cart.
+
+
+product: The product added to the cart.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Report that the user viewed their cart.
+
+
+products: The list of products in the cart.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Protocols/ButtonProductCompatible.html b/docs/history/1.4.3/Protocols/ButtonProductCompatible.html
new file mode 100644
index 0000000..fdd0ee1
--- /dev/null
+++ b/docs/history/1.4.3/Protocols/ButtonProductCompatible.html
@@ -0,0 +1,360 @@
+
+
+
+ ButtonProductCompatible Protocol Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ ButtonProductCompatible Protocol Reference
+
+
+
+
+
+
+
+ ButtonProductCompatible
+
+
+
@objc
+public protocol ButtonProductCompatible : AnyObject
+
+
+
+ A protocol that defines the product properties that may be provided when reporting user activity.
+
+
+
+
+
+
+
+
+
+
+
+
+
The product identifier.
+
+
+
+
Declaration
+
+
Swift
+
var id : String ? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The UPC (Universal Product Code) of the product.
+
+
+
+
Declaration
+
+
Swift
+
var upc : String ? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A flat array of the names of the categories to which the product belongs.
+
+
+
+
Declaration
+
+
Swift
+
var categories : [ String ]? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The name of the product.
+
+
+
+
Declaration
+
+
Swift
+
var name : String ? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The ISO-4217 currency code in which the product’s value is reported.
+
+
+
+
Declaration
+
+
Swift
+
var currency : String ? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The value of the order. Includes any discounts, if applicable. Example: 1234 for $12.34.
+
+
+
+
Declaration
+
+
Swift
+
var value : Int { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The quantity of the product.
+
+
+
+
Declaration
+
+
Swift
+
var quantity : Int { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The URL of the product.
+
+
+
+
Declaration
+
+
Swift
+
var url : String ? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Any additional attributes to be included with the product.
+
+
+
+
Declaration
+
+
Swift
+
var attributes : [ String : String ]? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Protocols/Configurable.html b/docs/history/1.4.3/Protocols/Configurable.html
new file mode 100644
index 0000000..8d7511f
--- /dev/null
+++ b/docs/history/1.4.3/Protocols/Configurable.html
@@ -0,0 +1,146 @@
+
+
+
+ Configurable Protocol Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Configurable Protocol Reference
+
+
+
+
+
+
+
+ Configurable
+
+
+
@objc
+public protocol Configurable : AnyObject
+
+
+
+ An interface through which library features can be enabled/disabled.
+
+
+
+
+
+
+
+
+
+
+
+
+
Indicates whether or not the library will attach IFA to outgoing requests.
+
+
The default value is true
. If set to false
, or if the user has limited IFA usage in their device settings, the IFA will not be attached.
+
+
+
+
Declaration
+
+
Swift
+
var includesIFA : Bool { get set }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/Structs.html b/docs/history/1.4.3/Structs.html
new file mode 100644
index 0000000..3d80958
--- /dev/null
+++ b/docs/history/1.4.3/Structs.html
@@ -0,0 +1,142 @@
+
+
+
+ Structures Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Structures Reference
+
+
+
+
+
+
+
+ Structures
+ The following structures are available globally.
+
+
+
+
+
+
+
+
+
+
+
+
+
Button Merchant Library Version.
+
+
+
+
+
Declaration
+
+
Swift
+
public struct Version
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/badge.svg b/docs/history/1.4.3/badge.svg
new file mode 100644
index 0000000..19d671e
--- /dev/null
+++ b/docs/history/1.4.3/badge.svg
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ documentation
+
+
+ documentation
+
+
+ 95%
+
+
+ 95%
+
+
+
diff --git a/docs/history/1.4.3/css/highlight.css b/docs/history/1.4.3/css/highlight.css
new file mode 100644
index 0000000..d0db0e1
--- /dev/null
+++ b/docs/history/1.4.3/css/highlight.css
@@ -0,0 +1,200 @@
+/* Credit to https://gist.github.com/wataru420/2048287 */
+.highlight {
+ /* Comment */
+ /* Error */
+ /* Keyword */
+ /* Operator */
+ /* Comment.Multiline */
+ /* Comment.Preproc */
+ /* Comment.Single */
+ /* Comment.Special */
+ /* Generic.Deleted */
+ /* Generic.Deleted.Specific */
+ /* Generic.Emph */
+ /* Generic.Error */
+ /* Generic.Heading */
+ /* Generic.Inserted */
+ /* Generic.Inserted.Specific */
+ /* Generic.Output */
+ /* Generic.Prompt */
+ /* Generic.Strong */
+ /* Generic.Subheading */
+ /* Generic.Traceback */
+ /* Keyword.Constant */
+ /* Keyword.Declaration */
+ /* Keyword.Pseudo */
+ /* Keyword.Reserved */
+ /* Keyword.Type */
+ /* Literal.Number */
+ /* Literal.String */
+ /* Name.Attribute */
+ /* Name.Builtin */
+ /* Name.Class */
+ /* Name.Constant */
+ /* Name.Entity */
+ /* Name.Exception */
+ /* Name.Function */
+ /* Name.Namespace */
+ /* Name.Tag */
+ /* Name.Variable */
+ /* Operator.Word */
+ /* Text.Whitespace */
+ /* Literal.Number.Float */
+ /* Literal.Number.Hex */
+ /* Literal.Number.Integer */
+ /* Literal.Number.Oct */
+ /* Literal.String.Backtick */
+ /* Literal.String.Char */
+ /* Literal.String.Doc */
+ /* Literal.String.Double */
+ /* Literal.String.Escape */
+ /* Literal.String.Heredoc */
+ /* Literal.String.Interpol */
+ /* Literal.String.Other */
+ /* Literal.String.Regex */
+ /* Literal.String.Single */
+ /* Literal.String.Symbol */
+ /* Name.Builtin.Pseudo */
+ /* Name.Variable.Class */
+ /* Name.Variable.Global */
+ /* Name.Variable.Instance */
+ /* Literal.Number.Integer.Long */ }
+ .highlight .c {
+ color: #999988;
+ font-style: italic; }
+ .highlight .err {
+ color: #a61717;
+ background-color: #e3d2d2; }
+ .highlight .k {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .o {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .cm {
+ color: #999988;
+ font-style: italic; }
+ .highlight .cp {
+ color: #999999;
+ font-weight: bold; }
+ .highlight .c1 {
+ color: #999988;
+ font-style: italic; }
+ .highlight .cs {
+ color: #999999;
+ font-weight: bold;
+ font-style: italic; }
+ .highlight .gd {
+ color: #000000;
+ background-color: #ffdddd; }
+ .highlight .gd .x {
+ color: #000000;
+ background-color: #ffaaaa; }
+ .highlight .ge {
+ color: #000000;
+ font-style: italic; }
+ .highlight .gr {
+ color: #aa0000; }
+ .highlight .gh {
+ color: #999999; }
+ .highlight .gi {
+ color: #000000;
+ background-color: #ddffdd; }
+ .highlight .gi .x {
+ color: #000000;
+ background-color: #aaffaa; }
+ .highlight .go {
+ color: #888888; }
+ .highlight .gp {
+ color: #555555; }
+ .highlight .gs {
+ font-weight: bold; }
+ .highlight .gu {
+ color: #aaaaaa; }
+ .highlight .gt {
+ color: #aa0000; }
+ .highlight .kc {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .kd {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .kp {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .kr {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .kt {
+ color: #445588; }
+ .highlight .m {
+ color: #009999; }
+ .highlight .s {
+ color: #d14; }
+ .highlight .na {
+ color: #008080; }
+ .highlight .nb {
+ color: #0086B3; }
+ .highlight .nc {
+ color: #445588;
+ font-weight: bold; }
+ .highlight .no {
+ color: #008080; }
+ .highlight .ni {
+ color: #800080; }
+ .highlight .ne {
+ color: #990000;
+ font-weight: bold; }
+ .highlight .nf {
+ color: #990000; }
+ .highlight .nn {
+ color: #555555; }
+ .highlight .nt {
+ color: #000080; }
+ .highlight .nv {
+ color: #008080; }
+ .highlight .ow {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .w {
+ color: #bbbbbb; }
+ .highlight .mf {
+ color: #009999; }
+ .highlight .mh {
+ color: #009999; }
+ .highlight .mi {
+ color: #009999; }
+ .highlight .mo {
+ color: #009999; }
+ .highlight .sb {
+ color: #d14; }
+ .highlight .sc {
+ color: #d14; }
+ .highlight .sd {
+ color: #d14; }
+ .highlight .s2 {
+ color: #d14; }
+ .highlight .se {
+ color: #d14; }
+ .highlight .sh {
+ color: #d14; }
+ .highlight .si {
+ color: #d14; }
+ .highlight .sx {
+ color: #d14; }
+ .highlight .sr {
+ color: #009926; }
+ .highlight .s1 {
+ color: #d14; }
+ .highlight .ss {
+ color: #990073; }
+ .highlight .bp {
+ color: #999999; }
+ .highlight .vc {
+ color: #008080; }
+ .highlight .vg {
+ color: #008080; }
+ .highlight .vi {
+ color: #008080; }
+ .highlight .il {
+ color: #009999; }
diff --git a/docs/history/1.4.3/css/jazzy.css b/docs/history/1.4.3/css/jazzy.css
new file mode 100644
index 0000000..c3090c0
--- /dev/null
+++ b/docs/history/1.4.3/css/jazzy.css
@@ -0,0 +1,374 @@
+html, body, div, span, h1, h3, h4, p, a, code, em, img, ul, li, table, tbody, tr, td {
+ background: transparent;
+ border: 0;
+ margin: 0;
+ outline: 0;
+ padding: 0;
+ vertical-align: baseline; }
+
+body {
+ background-color: #f2f2f2;
+ font-family: Helvetica, freesans, Arial, sans-serif;
+ font-size: 14px;
+ -webkit-font-smoothing: subpixel-antialiased;
+ word-wrap: break-word; }
+
+h1, h2, h3 {
+ margin-top: 0.8em;
+ margin-bottom: 0.3em;
+ font-weight: 100;
+ color: black; }
+
+h1 {
+ font-size: 2.5em; }
+
+h2 {
+ font-size: 2em;
+ border-bottom: 1px solid #e2e2e2; }
+
+h4 {
+ font-size: 13px;
+ line-height: 1.5;
+ margin-top: 21px; }
+
+h5 {
+ font-size: 1.1em; }
+
+h6 {
+ font-size: 1.1em;
+ color: #777; }
+
+.section-name {
+ color: gray;
+ display: block;
+ font-family: Helvetica;
+ font-size: 22px;
+ font-weight: 100;
+ margin-bottom: 15px; }
+
+pre, code {
+ font: 0.95em Menlo, monospace;
+ color: #777;
+ word-wrap: normal; }
+
+p code, li code {
+ background-color: #eee;
+ padding: 2px 4px;
+ border-radius: 4px; }
+
+a {
+ color: #0088cc;
+ text-decoration: none; }
+
+ul {
+ padding-left: 15px; }
+
+li {
+ line-height: 1.8em; }
+
+img {
+ max-width: 100%; }
+
+blockquote {
+ margin-left: 0;
+ padding: 0 10px;
+ border-left: 4px solid #ccc; }
+
+.content-wrapper {
+ margin: 0 auto;
+ width: 980px; }
+
+header {
+ font-size: 0.85em;
+ line-height: 26px;
+ background-color: #414141;
+ position: fixed;
+ width: 100%;
+ z-index: 2; }
+ header img {
+ padding-right: 6px;
+ vertical-align: -4px;
+ height: 16px; }
+ header a {
+ color: #fff; }
+ header p {
+ float: left;
+ color: #999; }
+ header .header-right {
+ float: right;
+ margin-left: 16px; }
+
+#breadcrumbs {
+ background-color: #f2f2f2;
+ height: 27px;
+ padding-top: 17px;
+ position: fixed;
+ width: 100%;
+ z-index: 2;
+ margin-top: 26px; }
+ #breadcrumbs #carat {
+ height: 10px;
+ margin: 0 5px; }
+
+.sidebar {
+ background-color: #f9f9f9;
+ border: 1px solid #e2e2e2;
+ overflow-y: auto;
+ overflow-x: hidden;
+ position: fixed;
+ top: 70px;
+ bottom: 0;
+ width: 230px;
+ word-wrap: normal; }
+
+.nav-groups {
+ list-style-type: none;
+ background: #fff;
+ padding-left: 0; }
+
+.nav-group-name {
+ border-bottom: 1px solid #e2e2e2;
+ font-size: 1.1em;
+ font-weight: 100;
+ padding: 15px 0 15px 20px; }
+ .nav-group-name > a {
+ color: #333; }
+
+.nav-group-tasks {
+ margin-top: 5px; }
+
+.nav-group-task {
+ font-size: 0.9em;
+ list-style-type: none;
+ white-space: nowrap; }
+ .nav-group-task a {
+ color: #888; }
+
+.main-content {
+ background-color: #fff;
+ border: 1px solid #e2e2e2;
+ margin-left: 246px;
+ position: absolute;
+ overflow: hidden;
+ padding-bottom: 20px;
+ top: 70px;
+ width: 734px; }
+ .main-content p, .main-content a, .main-content code, .main-content em, .main-content ul, .main-content table, .main-content blockquote {
+ margin-bottom: 1em; }
+ .main-content p {
+ line-height: 1.8em; }
+ .main-content section .section:first-child {
+ margin-top: 0;
+ padding-top: 0; }
+ .main-content section .task-group-section .task-group:first-of-type {
+ padding-top: 10px; }
+ .main-content section .task-group-section .task-group:first-of-type .section-name {
+ padding-top: 15px; }
+ .main-content section .heading:before {
+ content: "";
+ display: block;
+ padding-top: 70px;
+ margin: -70px 0 0; }
+ .main-content .section-name p {
+ margin-bottom: inherit;
+ line-height: inherit; }
+ .main-content .section-name code {
+ background-color: inherit;
+ padding: inherit;
+ color: inherit; }
+
+.section {
+ padding: 0 25px; }
+
+.highlight {
+ background-color: #eee;
+ padding: 10px 12px;
+ border: 1px solid #e2e2e2;
+ border-radius: 4px;
+ overflow-x: auto; }
+
+.declaration .highlight {
+ overflow-x: initial;
+ padding: 0 40px 40px 0;
+ margin-bottom: -25px;
+ background-color: transparent;
+ border: none; }
+
+.section-name {
+ margin: 0;
+ margin-left: 18px; }
+
+.task-group-section {
+ padding-left: 6px;
+ border-top: 1px solid #e2e2e2; }
+
+.task-group {
+ padding-top: 0px; }
+
+.task-name-container a[name]:before {
+ content: "";
+ display: block;
+ padding-top: 70px;
+ margin: -70px 0 0; }
+
+.section-name-container {
+ position: relative;
+ display: inline-block; }
+ .section-name-container .section-name-link {
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ margin-bottom: 0; }
+ .section-name-container .section-name {
+ position: relative;
+ pointer-events: none;
+ z-index: 1; }
+ .section-name-container .section-name a {
+ pointer-events: auto; }
+
+.item {
+ padding-top: 8px;
+ width: 100%;
+ list-style-type: none; }
+ .item a[name]:before {
+ content: "";
+ display: block;
+ padding-top: 70px;
+ margin: -70px 0 0; }
+ .item code {
+ background-color: transparent;
+ padding: 0; }
+ .item .token, .item .direct-link {
+ display: inline-block;
+ text-indent: -20px;
+ padding-left: 3px;
+ margin-left: 35px;
+ font-size: 11.9px;
+ transition: all 300ms; }
+ .item .token-open {
+ margin-left: 20px; }
+ .item .discouraged {
+ text-decoration: line-through; }
+ .item .declaration-note {
+ font-size: .85em;
+ color: gray;
+ font-style: italic; }
+
+.pointer-container {
+ border-bottom: 1px solid #e2e2e2;
+ left: -23px;
+ padding-bottom: 13px;
+ position: relative;
+ width: 110%; }
+
+.pointer {
+ background: #f9f9f9;
+ border-left: 1px solid #e2e2e2;
+ border-top: 1px solid #e2e2e2;
+ height: 12px;
+ left: 21px;
+ top: -7px;
+ -webkit-transform: rotate(45deg);
+ -moz-transform: rotate(45deg);
+ -o-transform: rotate(45deg);
+ transform: rotate(45deg);
+ position: absolute;
+ width: 12px; }
+
+.height-container {
+ display: none;
+ left: -25px;
+ padding: 0 25px;
+ position: relative;
+ width: 100%;
+ overflow: hidden; }
+ .height-container .section {
+ background: #f9f9f9;
+ border-bottom: 1px solid #e2e2e2;
+ left: -25px;
+ position: relative;
+ width: 100%;
+ padding-top: 10px;
+ padding-bottom: 5px; }
+
+.aside, .language {
+ padding: 6px 12px;
+ margin: 12px 0;
+ border-left: 5px solid #dddddd;
+ overflow-y: hidden; }
+ .aside .aside-title, .language .aside-title {
+ font-size: 9px;
+ letter-spacing: 2px;
+ text-transform: uppercase;
+ padding-bottom: 0;
+ margin: 0;
+ color: #aaa;
+ -webkit-user-select: none; }
+ .aside p:last-child, .language p:last-child {
+ margin-bottom: 0; }
+
+.language {
+ border-left: 5px solid #cde9f4; }
+ .language .aside-title {
+ color: #4b8afb; }
+
+.aside-warning, .aside-deprecated, .aside-unavailable {
+ border-left: 5px solid #ff6666; }
+ .aside-warning .aside-title, .aside-deprecated .aside-title, .aside-unavailable .aside-title {
+ color: #ff0000; }
+
+.graybox {
+ border-collapse: collapse;
+ width: 100%; }
+ .graybox p {
+ margin: 0;
+ word-break: break-word;
+ min-width: 50px; }
+ .graybox td {
+ border: 1px solid #e2e2e2;
+ padding: 5px 25px 5px 10px;
+ vertical-align: middle; }
+ .graybox tr td:first-of-type {
+ text-align: right;
+ padding: 7px;
+ vertical-align: top;
+ word-break: normal;
+ width: 40px; }
+
+.slightly-smaller {
+ font-size: 0.9em; }
+
+#footer {
+ position: relative;
+ top: 10px;
+ bottom: 0px;
+ margin-left: 25px; }
+ #footer p {
+ margin: 0;
+ color: #aaa;
+ font-size: 0.8em; }
+
+html.dash header, html.dash #breadcrumbs, html.dash .sidebar {
+ display: none; }
+
+html.dash .main-content {
+ width: 980px;
+ margin-left: 0;
+ border: none;
+ width: 100%;
+ top: 0;
+ padding-bottom: 0; }
+
+html.dash .height-container {
+ display: block; }
+
+html.dash .item .token {
+ margin-left: 0; }
+
+html.dash .content-wrapper {
+ width: auto; }
+
+html.dash #footer {
+ position: static; }
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Info.plist b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Info.plist
new file mode 100644
index 0000000..49cb17c
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Info.plist
@@ -0,0 +1,20 @@
+
+
+
+
+ CFBundleIdentifier
+ com.jazzy.buttonmerchant
+ CFBundleName
+ ButtonMerchant
+ DocSetPlatformFamily
+ buttonmerchant
+ isDashDocset
+
+ dashIndexFilePath
+ index.html
+ isJavaScriptEnabled
+
+ DashDocSetFamily
+ dashtoc
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes.html
new file mode 100644
index 0000000..ed1a2a1
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes.html
@@ -0,0 +1,200 @@
+
+
+
+ Classes Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Classes Reference
+
+
+
+
+
+
+
+ Classes
+ The following classes are available globally.
+
+
+
+
+
+
+
+
+
+
+
+
+
ButtonMerchant
is the main entry point to the library.
+
+
To get started with your integration,
+get your application Id from from the Button Dashboard .
+and follow our simple integration guide
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objcMembers
+final public class ButtonMerchant : NSObject
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A concrete implementation of the ButtonProductCompatible protocol.
+
+
See more
+
+
+
+
+
+
+
+
+
+
+
+
+
Represents an order placed by the user to be reported using ButtonMerchant.reportOrder(order)
.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objcMembers
+final public class Order : NSObject , Codable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/ButtonMerchant.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/ButtonMerchant.html
new file mode 100644
index 0000000..537ad93
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/ButtonMerchant.html
@@ -0,0 +1,553 @@
+
+
+
+ ButtonMerchant Class Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ ButtonMerchant Class Reference
+
+
+
+
+
+
+
+ ButtonMerchant
+
+
+
@objcMembers
+final public class ButtonMerchant : NSObject
+
+
+
+ ButtonMerchant
is the main entry point to the library.
+
+To get started with your integration,
+get your application Id from from the Button Dashboard .
+and follow our simple integration guide
+
+
+
+
+
+
+
+
+
+
+
+
+
The last tracked attributionToken
from an inbound Button attributed URL.
+
+
Attention
+ For attribution to work correctly, you must:
+
+
+Always access this token directly—never cache it .
+Never manage the lifecycle of this token—Button manages the token validity window server-side.
+Always include this value when reporting orders to your order API
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static var attributionToken : String ? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Configures ButtonMerchant with your application Id.
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static func configure ( applicationId : String )
+
+
+
+
+
Parameters
+
+
+
+
+
+ applicationId
+
+
+
+
+
Your application Id (required)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks the passed URL for a Button attribution and if present stores the token.
+
+
Attention
+
To correctly attribute customers, you must call this method with every
+incoming url
and userActivity
from the following UIApplicationDelegate
methods:
+
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static func trackIncomingURL ( _ url : URL )
+
+
+
+
+
Parameters
+
+
+
+
+
+ url
+
+
+
+
+
A URL that has entered your app from a third party source.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks the URL in the passed NSUserActivity for a Button attribution and if present stores the token.
+
+
Attention
+
To correctly attribute customers, you must call this method with every
+incoming userActivity
from the following UIApplicationDelegate
method:
+
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static func trackIncomingUserActivity ( _ userActivity : NSUserActivity )
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks to see if the user visited a url prior to installing your app.
+
+
If a url is found, your completion handler will be called with the url and you are responsible
+for navigating the user to the relevant content in your app. If a url is not found or an error occurs, your
+completion handler will be called without a url and you can continue with your normal launch sequence.
+
+
Attention
+
This method checks for a post-install url exactly one time after a user has installed your app.
+Subsequent calls will result in your completion handler being called without a url. You do not need to wait
+for the completion handler before continuing with your normal launch sequence but you should be prepared
+to handle a post-install url is one is found. All subsequent incoming urls will be routed to your
+UIApplicationDelegate
as usual.
+
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static func handlePostInstallURL ( _ completion : @escaping ( URL ?, Error ?) -> Void )
+
+
+
+
+
Parameters
+
+
+
+
+
+ completion
+
+
+
+
+
A completion block taking an optional url and optional error.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Reports an order to Button.
+
+
See also: Reporting Orders to Button
+(docs )
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static func reportOrder ( _ order : Order , completion : (( Error ?) -> Void )? = nil )
+
+
+
+
+
Parameters
+
+
+
+
+
+ order
+
+
+
+
+
Your order object to be reported.
+
+
+
+
+
+
+ completion
+
+
+
+
+
An optional completion block taking an optional error.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Discards the current session and all persisted data.
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static func clearAllData ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
An interface through which library features can be enabled/disabled.
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static var features : Configurable { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
An interface through which user activity can be reported.
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public static var activity : Activity { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Deprecated.
+
+
This method is deprecated and will be removed in a future version. It is safe to remove your usage of this method.
+
+
+
+
Declaration
+
+
Swift
+
@available ( * , deprecated , message : "No longer supported. You can safely remove your usage of this method." )
+@objc
+public static func trackOrder ( _ order : Order , completion : (( Error ?) -> Void )? = nil )
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/ButtonProduct.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/ButtonProduct.html
new file mode 100644
index 0000000..05e0469
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/ButtonProduct.html
@@ -0,0 +1,350 @@
+
+
+
+ ButtonProduct Class Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ ButtonProduct Class Reference
+
+
+
+
+
+
+
+ ButtonProduct
+
+ A concrete implementation of the ButtonProductCompatible protocol.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var id : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var upc : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var categories : [ String ]?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var name : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var currency : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var value : Int
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var quantity : Int
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var url : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public var attributes : [ String : String ]?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/Order.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/Order.html
new file mode 100644
index 0000000..49fd4d7
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/Order.html
@@ -0,0 +1,336 @@
+
+
+
+ Order Class Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Order Class Reference
+
+
+
+
+
+
+
+ Order
+
+
+
@objcMembers
+final public class Order : NSObject , Codable
+
+
+
+ Represents an order placed by the user to be reported using ButtonMerchant.reportOrder(order)
.
+
+
+
+
+
+
+
+
+
+
+
+
+
The ISO 4217 currency code (default is USD).
+
+
+
+
Declaration
+
+
Swift
+
public var currencyCode : String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The customer-facing order id.
+
+
+
+
Declaration
+
+
Swift
+
public var customerOrderId : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The customer related to the order
+
+
+
+
Declaration
+
+
Swift
+
public var customer : Customer ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Initializes an order object with the passed parameters.
+
+
+id: The order identifier (required).
+purchaseDate: The date of the purchase for the order.
+lineItems: A list of the line item details that comprise the order.
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public init ( id : String , purchaseDate : Date , lineItems : [ LineItem ])
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Represents a customer in the order.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objcMembers
+@objc ( BTNCustomer )
+final public class Customer : NSObject , Codable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Represents a line item in the order.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objcMembers
+@objc ( LineItem )
+final public class LineItem : NSObject , Codable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Deprecated.
+
+
If you’re migrating to client side order reporting, please use init(id:purchaseDate:lineItems:) instead.
+
+
+
+
Declaration
+
+
Swift
+
@available ( * , deprecated , message : "Use init(id:purchaseDate:lineItems:﹚ instead" )
+@objc
+public init ( id : String , amount : Int64 = 0 , currencyCode : String = "USD" )
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/Order/Customer.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/Order/Customer.html
new file mode 100644
index 0000000..8c26cc3
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/Order/Customer.html
@@ -0,0 +1,207 @@
+
+
+
+ Customer Class Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Customer Class Reference
+
+
+
+
+
+
+
+ Customer
+
+
+
@objcMembers
+@objc ( BTNCustomer )
+final public class Customer : NSObject , Codable
+
+
+
+ Represents a customer in the order.
+
+
+
+
+
+
+
+
+
+
+
+
+
The SHA-256 hash of the transacting customer’s lowercase email, as a 64-character hex string.
+
+
Note : The value of the e-mail address must be converted to lowercase before
+computing the hash. The hash itself may use uppercase or lowercase hex characters.
+
+
+
+
Declaration
+
+
Swift
+
public var email : String ? { get set }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A flag indicating whether the customer is new (or not).
+
+
+
+
Declaration
+
+
Swift
+
public var isNew : Bool ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Initializes a customer object with the passed parameters.
+
+
+id: The id for your customer (required).
+
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public init ( id : String )
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/Order/LineItem.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/Order/LineItem.html
new file mode 100644
index 0000000..b43d37f
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Classes/Order/LineItem.html
@@ -0,0 +1,342 @@
+
+
+
+ LineItem Class Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ LineItem Class Reference
+
+
+
+
+
+
+
+ LineItem
+
+
+
@objcMembers
+@objc ( LineItem )
+final public class LineItem : NSObject , Codable
+
+
+
+ Represents a line item in the order.
+
+
+
+
+
+
+
+
+
+
+
+
+
The number of unique units represented by this line item (default is 1).
+
+
+
+
Declaration
+
+
Swift
+
public var quantity : Int
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Text describing the line item.
+
+
+
+
Declaration
+
+
Swift
+
public var itemDescription : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The Stock Keeping Unit of the line item.
+
+
+
+
Declaration
+
+
Swift
+
public var sku : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The Universal Product Code of the line item.
+
+
+
+
Declaration
+
+
Swift
+
public var upc : String ?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The category of the line item.
+An ordered list of strings, starting with the topmost (or most general) category.
+
+
+
+
Declaration
+
+
Swift
+
public var category : [ String ]?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A key/value store for strings to specify additional information about a line item.
+
+
+
+
Declaration
+
+
Swift
+
public var attributes : [ String : String ]?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
An array of the line item details that comprise the order
+
+
+
+
Declaration
+
+
Swift
+
@objc
+public init ( id : String , total : Int64 )
+
+
+
+
+
Parameters
+
+
+
+
+
+ id
+
+
+
+
+
The unique identifier for this line item, within the scope of this order.
+ This must be unique across all line-items within the order.
+ We suggest using the SKU or UPC of the product. (required)
+
+
+
+
+
+
+ total
+
+
+
+
+
The total price of all items bought in a particular line item. (required)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Enums.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Enums.html
new file mode 100644
index 0000000..fcad5f2
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Enums.html
@@ -0,0 +1,197 @@
+
+
+
+ Enumerations Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Enumerations Reference
+
+
+
+
+
+
+
+ Enumerations
+ The following enumerations are available globally.
+
+
+
+
+
+
+
+
+
+
+
+
+
Button Merchant Library Errors.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public enum ButtonMerchantError : Error
+
extension ButtonMerchantError : Equatable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Button Merchant Library Configuration Error.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public enum ConfigurationError : Error
+
extension ConfigurationError : Equatable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Button Merchant Library Configuration Error.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public enum NetworkError : Error
+
extension NetworkError : Equatable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Enums/ButtonMerchantError.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Enums/ButtonMerchantError.html
new file mode 100644
index 0000000..f9ff570
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Enums/ButtonMerchantError.html
@@ -0,0 +1,171 @@
+
+
+
+ ButtonMerchantError Enumeration Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ ButtonMerchantError Enumeration Reference
+
+
+
+
+
+
+
+ ButtonMerchantError
+
+
+
public enum ButtonMerchantError : Error
+
extension ButtonMerchantError : Equatable
+
+
+
+ Button Merchant Library Errors.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
case trackOrderDeprecationError
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
case noEventsError
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Enums/ConfigurationError.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Enums/ConfigurationError.html
new file mode 100644
index 0000000..1302111
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Enums/ConfigurationError.html
@@ -0,0 +1,176 @@
+
+
+
+ ConfigurationError Enumeration Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ ConfigurationError Enumeration Reference
+
+
+
+
+
+
+
+ ConfigurationError
+
+
+
public enum ConfigurationError : Error
+
extension ConfigurationError : Equatable
+
+
+
+ Button Merchant Library Configuration Error.
+
+
+
+
+
+
+
+
+
+
+
+
+
Library is not configured with an applicationId
+
+
+
+
+
Declaration
+
+
Swift
+
case noApplicationId
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
case invalidApplicationId ( appicationId : String )
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Enums/NetworkError.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Enums/NetworkError.html
new file mode 100644
index 0000000..a396064
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Enums/NetworkError.html
@@ -0,0 +1,144 @@
+
+
+
+ NetworkError Enumeration Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ NetworkError Enumeration Reference
+
+
+
+
+
+
+
+ NetworkError
+
+
+
public enum NetworkError : Error
+
extension NetworkError : Equatable
+
+
+
+ Button Merchant Library Configuration Error.
+
+
+
+
+
+
+
+
+
+
+
+
+
There was an unknown network error.
+
+
+
+
Declaration
+
+
Swift
+
case unknown
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Protocols.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Protocols.html
new file mode 100644
index 0000000..edcb5ee
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Protocols.html
@@ -0,0 +1,197 @@
+
+
+
+ Protocols Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Protocols Reference
+
+
+
+
+
+
+
+ Protocols
+ The following protocols are available globally.
+
+
+
+
+
+
+
+
+
+
+
+
+
A protocol through which user activities can be reported.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objc
+public protocol Activity : AnyObject
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A protocol that defines the product properties that may be provided when reporting user activity.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objc
+public protocol ButtonProductCompatible : AnyObject
+
+
+
+
+
+
+
+
+
+
+
+
+
+
An interface through which library features can be enabled/disabled.
+
+
See more
+
+
+
Declaration
+
+
Swift
+
@objc
+public protocol Configurable : AnyObject
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Protocols/Activity.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Protocols/Activity.html
new file mode 100644
index 0000000..d9d59aa
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Protocols/Activity.html
@@ -0,0 +1,210 @@
+
+
+
+ Activity Protocol Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Activity Protocol Reference
+
+
+
+
+
+
+
+ Activity
+
+
+
@objc
+public protocol Activity : AnyObject
+
+
+
+ A protocol through which user activities can be reported.
+
+
+
+
+
+
+
+
+
+
+
+
+
Report that the user has viewed a product.
+
+
+product: The product being viewed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Report that the user added a product to their cart.
+
+
+product: The product added to the cart.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Report that the user viewed their cart.
+
+
+products: The list of products in the cart.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Protocols/ButtonProductCompatible.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Protocols/ButtonProductCompatible.html
new file mode 100644
index 0000000..fdd0ee1
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Protocols/ButtonProductCompatible.html
@@ -0,0 +1,360 @@
+
+
+
+ ButtonProductCompatible Protocol Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ ButtonProductCompatible Protocol Reference
+
+
+
+
+
+
+
+ ButtonProductCompatible
+
+
+
@objc
+public protocol ButtonProductCompatible : AnyObject
+
+
+
+ A protocol that defines the product properties that may be provided when reporting user activity.
+
+
+
+
+
+
+
+
+
+
+
+
+
The product identifier.
+
+
+
+
Declaration
+
+
Swift
+
var id : String ? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The UPC (Universal Product Code) of the product.
+
+
+
+
Declaration
+
+
Swift
+
var upc : String ? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A flat array of the names of the categories to which the product belongs.
+
+
+
+
Declaration
+
+
Swift
+
var categories : [ String ]? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The name of the product.
+
+
+
+
Declaration
+
+
Swift
+
var name : String ? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The ISO-4217 currency code in which the product’s value is reported.
+
+
+
+
Declaration
+
+
Swift
+
var currency : String ? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The value of the order. Includes any discounts, if applicable. Example: 1234 for $12.34.
+
+
+
+
Declaration
+
+
Swift
+
var value : Int { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The quantity of the product.
+
+
+
+
Declaration
+
+
Swift
+
var quantity : Int { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The URL of the product.
+
+
+
+
Declaration
+
+
Swift
+
var url : String ? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Any additional attributes to be included with the product.
+
+
+
+
Declaration
+
+
Swift
+
var attributes : [ String : String ]? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Protocols/Configurable.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Protocols/Configurable.html
new file mode 100644
index 0000000..8d7511f
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Protocols/Configurable.html
@@ -0,0 +1,146 @@
+
+
+
+ Configurable Protocol Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Configurable Protocol Reference
+
+
+
+
+
+
+
+ Configurable
+
+
+
@objc
+public protocol Configurable : AnyObject
+
+
+
+ An interface through which library features can be enabled/disabled.
+
+
+
+
+
+
+
+
+
+
+
+
+
Indicates whether or not the library will attach IFA to outgoing requests.
+
+
The default value is true
. If set to false
, or if the user has limited IFA usage in their device settings, the IFA will not be attached.
+
+
+
+
Declaration
+
+
Swift
+
var includesIFA : Bool { get set }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Structs.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Structs.html
new file mode 100644
index 0000000..3d80958
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/Structs.html
@@ -0,0 +1,142 @@
+
+
+
+ Structures Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ Structures Reference
+
+
+
+
+
+
+
+ Structures
+ The following structures are available globally.
+
+
+
+
+
+
+
+
+
+
+
+
+
Button Merchant Library Version.
+
+
+
+
+
Declaration
+
+
Swift
+
public struct Version
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/css/highlight.css b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/css/highlight.css
new file mode 100644
index 0000000..d0db0e1
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/css/highlight.css
@@ -0,0 +1,200 @@
+/* Credit to https://gist.github.com/wataru420/2048287 */
+.highlight {
+ /* Comment */
+ /* Error */
+ /* Keyword */
+ /* Operator */
+ /* Comment.Multiline */
+ /* Comment.Preproc */
+ /* Comment.Single */
+ /* Comment.Special */
+ /* Generic.Deleted */
+ /* Generic.Deleted.Specific */
+ /* Generic.Emph */
+ /* Generic.Error */
+ /* Generic.Heading */
+ /* Generic.Inserted */
+ /* Generic.Inserted.Specific */
+ /* Generic.Output */
+ /* Generic.Prompt */
+ /* Generic.Strong */
+ /* Generic.Subheading */
+ /* Generic.Traceback */
+ /* Keyword.Constant */
+ /* Keyword.Declaration */
+ /* Keyword.Pseudo */
+ /* Keyword.Reserved */
+ /* Keyword.Type */
+ /* Literal.Number */
+ /* Literal.String */
+ /* Name.Attribute */
+ /* Name.Builtin */
+ /* Name.Class */
+ /* Name.Constant */
+ /* Name.Entity */
+ /* Name.Exception */
+ /* Name.Function */
+ /* Name.Namespace */
+ /* Name.Tag */
+ /* Name.Variable */
+ /* Operator.Word */
+ /* Text.Whitespace */
+ /* Literal.Number.Float */
+ /* Literal.Number.Hex */
+ /* Literal.Number.Integer */
+ /* Literal.Number.Oct */
+ /* Literal.String.Backtick */
+ /* Literal.String.Char */
+ /* Literal.String.Doc */
+ /* Literal.String.Double */
+ /* Literal.String.Escape */
+ /* Literal.String.Heredoc */
+ /* Literal.String.Interpol */
+ /* Literal.String.Other */
+ /* Literal.String.Regex */
+ /* Literal.String.Single */
+ /* Literal.String.Symbol */
+ /* Name.Builtin.Pseudo */
+ /* Name.Variable.Class */
+ /* Name.Variable.Global */
+ /* Name.Variable.Instance */
+ /* Literal.Number.Integer.Long */ }
+ .highlight .c {
+ color: #999988;
+ font-style: italic; }
+ .highlight .err {
+ color: #a61717;
+ background-color: #e3d2d2; }
+ .highlight .k {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .o {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .cm {
+ color: #999988;
+ font-style: italic; }
+ .highlight .cp {
+ color: #999999;
+ font-weight: bold; }
+ .highlight .c1 {
+ color: #999988;
+ font-style: italic; }
+ .highlight .cs {
+ color: #999999;
+ font-weight: bold;
+ font-style: italic; }
+ .highlight .gd {
+ color: #000000;
+ background-color: #ffdddd; }
+ .highlight .gd .x {
+ color: #000000;
+ background-color: #ffaaaa; }
+ .highlight .ge {
+ color: #000000;
+ font-style: italic; }
+ .highlight .gr {
+ color: #aa0000; }
+ .highlight .gh {
+ color: #999999; }
+ .highlight .gi {
+ color: #000000;
+ background-color: #ddffdd; }
+ .highlight .gi .x {
+ color: #000000;
+ background-color: #aaffaa; }
+ .highlight .go {
+ color: #888888; }
+ .highlight .gp {
+ color: #555555; }
+ .highlight .gs {
+ font-weight: bold; }
+ .highlight .gu {
+ color: #aaaaaa; }
+ .highlight .gt {
+ color: #aa0000; }
+ .highlight .kc {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .kd {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .kp {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .kr {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .kt {
+ color: #445588; }
+ .highlight .m {
+ color: #009999; }
+ .highlight .s {
+ color: #d14; }
+ .highlight .na {
+ color: #008080; }
+ .highlight .nb {
+ color: #0086B3; }
+ .highlight .nc {
+ color: #445588;
+ font-weight: bold; }
+ .highlight .no {
+ color: #008080; }
+ .highlight .ni {
+ color: #800080; }
+ .highlight .ne {
+ color: #990000;
+ font-weight: bold; }
+ .highlight .nf {
+ color: #990000; }
+ .highlight .nn {
+ color: #555555; }
+ .highlight .nt {
+ color: #000080; }
+ .highlight .nv {
+ color: #008080; }
+ .highlight .ow {
+ color: #000000;
+ font-weight: bold; }
+ .highlight .w {
+ color: #bbbbbb; }
+ .highlight .mf {
+ color: #009999; }
+ .highlight .mh {
+ color: #009999; }
+ .highlight .mi {
+ color: #009999; }
+ .highlight .mo {
+ color: #009999; }
+ .highlight .sb {
+ color: #d14; }
+ .highlight .sc {
+ color: #d14; }
+ .highlight .sd {
+ color: #d14; }
+ .highlight .s2 {
+ color: #d14; }
+ .highlight .se {
+ color: #d14; }
+ .highlight .sh {
+ color: #d14; }
+ .highlight .si {
+ color: #d14; }
+ .highlight .sx {
+ color: #d14; }
+ .highlight .sr {
+ color: #009926; }
+ .highlight .s1 {
+ color: #d14; }
+ .highlight .ss {
+ color: #990073; }
+ .highlight .bp {
+ color: #999999; }
+ .highlight .vc {
+ color: #008080; }
+ .highlight .vg {
+ color: #008080; }
+ .highlight .vi {
+ color: #008080; }
+ .highlight .il {
+ color: #009999; }
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/css/jazzy.css b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/css/jazzy.css
new file mode 100644
index 0000000..c3090c0
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/css/jazzy.css
@@ -0,0 +1,374 @@
+html, body, div, span, h1, h3, h4, p, a, code, em, img, ul, li, table, tbody, tr, td {
+ background: transparent;
+ border: 0;
+ margin: 0;
+ outline: 0;
+ padding: 0;
+ vertical-align: baseline; }
+
+body {
+ background-color: #f2f2f2;
+ font-family: Helvetica, freesans, Arial, sans-serif;
+ font-size: 14px;
+ -webkit-font-smoothing: subpixel-antialiased;
+ word-wrap: break-word; }
+
+h1, h2, h3 {
+ margin-top: 0.8em;
+ margin-bottom: 0.3em;
+ font-weight: 100;
+ color: black; }
+
+h1 {
+ font-size: 2.5em; }
+
+h2 {
+ font-size: 2em;
+ border-bottom: 1px solid #e2e2e2; }
+
+h4 {
+ font-size: 13px;
+ line-height: 1.5;
+ margin-top: 21px; }
+
+h5 {
+ font-size: 1.1em; }
+
+h6 {
+ font-size: 1.1em;
+ color: #777; }
+
+.section-name {
+ color: gray;
+ display: block;
+ font-family: Helvetica;
+ font-size: 22px;
+ font-weight: 100;
+ margin-bottom: 15px; }
+
+pre, code {
+ font: 0.95em Menlo, monospace;
+ color: #777;
+ word-wrap: normal; }
+
+p code, li code {
+ background-color: #eee;
+ padding: 2px 4px;
+ border-radius: 4px; }
+
+a {
+ color: #0088cc;
+ text-decoration: none; }
+
+ul {
+ padding-left: 15px; }
+
+li {
+ line-height: 1.8em; }
+
+img {
+ max-width: 100%; }
+
+blockquote {
+ margin-left: 0;
+ padding: 0 10px;
+ border-left: 4px solid #ccc; }
+
+.content-wrapper {
+ margin: 0 auto;
+ width: 980px; }
+
+header {
+ font-size: 0.85em;
+ line-height: 26px;
+ background-color: #414141;
+ position: fixed;
+ width: 100%;
+ z-index: 2; }
+ header img {
+ padding-right: 6px;
+ vertical-align: -4px;
+ height: 16px; }
+ header a {
+ color: #fff; }
+ header p {
+ float: left;
+ color: #999; }
+ header .header-right {
+ float: right;
+ margin-left: 16px; }
+
+#breadcrumbs {
+ background-color: #f2f2f2;
+ height: 27px;
+ padding-top: 17px;
+ position: fixed;
+ width: 100%;
+ z-index: 2;
+ margin-top: 26px; }
+ #breadcrumbs #carat {
+ height: 10px;
+ margin: 0 5px; }
+
+.sidebar {
+ background-color: #f9f9f9;
+ border: 1px solid #e2e2e2;
+ overflow-y: auto;
+ overflow-x: hidden;
+ position: fixed;
+ top: 70px;
+ bottom: 0;
+ width: 230px;
+ word-wrap: normal; }
+
+.nav-groups {
+ list-style-type: none;
+ background: #fff;
+ padding-left: 0; }
+
+.nav-group-name {
+ border-bottom: 1px solid #e2e2e2;
+ font-size: 1.1em;
+ font-weight: 100;
+ padding: 15px 0 15px 20px; }
+ .nav-group-name > a {
+ color: #333; }
+
+.nav-group-tasks {
+ margin-top: 5px; }
+
+.nav-group-task {
+ font-size: 0.9em;
+ list-style-type: none;
+ white-space: nowrap; }
+ .nav-group-task a {
+ color: #888; }
+
+.main-content {
+ background-color: #fff;
+ border: 1px solid #e2e2e2;
+ margin-left: 246px;
+ position: absolute;
+ overflow: hidden;
+ padding-bottom: 20px;
+ top: 70px;
+ width: 734px; }
+ .main-content p, .main-content a, .main-content code, .main-content em, .main-content ul, .main-content table, .main-content blockquote {
+ margin-bottom: 1em; }
+ .main-content p {
+ line-height: 1.8em; }
+ .main-content section .section:first-child {
+ margin-top: 0;
+ padding-top: 0; }
+ .main-content section .task-group-section .task-group:first-of-type {
+ padding-top: 10px; }
+ .main-content section .task-group-section .task-group:first-of-type .section-name {
+ padding-top: 15px; }
+ .main-content section .heading:before {
+ content: "";
+ display: block;
+ padding-top: 70px;
+ margin: -70px 0 0; }
+ .main-content .section-name p {
+ margin-bottom: inherit;
+ line-height: inherit; }
+ .main-content .section-name code {
+ background-color: inherit;
+ padding: inherit;
+ color: inherit; }
+
+.section {
+ padding: 0 25px; }
+
+.highlight {
+ background-color: #eee;
+ padding: 10px 12px;
+ border: 1px solid #e2e2e2;
+ border-radius: 4px;
+ overflow-x: auto; }
+
+.declaration .highlight {
+ overflow-x: initial;
+ padding: 0 40px 40px 0;
+ margin-bottom: -25px;
+ background-color: transparent;
+ border: none; }
+
+.section-name {
+ margin: 0;
+ margin-left: 18px; }
+
+.task-group-section {
+ padding-left: 6px;
+ border-top: 1px solid #e2e2e2; }
+
+.task-group {
+ padding-top: 0px; }
+
+.task-name-container a[name]:before {
+ content: "";
+ display: block;
+ padding-top: 70px;
+ margin: -70px 0 0; }
+
+.section-name-container {
+ position: relative;
+ display: inline-block; }
+ .section-name-container .section-name-link {
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ margin-bottom: 0; }
+ .section-name-container .section-name {
+ position: relative;
+ pointer-events: none;
+ z-index: 1; }
+ .section-name-container .section-name a {
+ pointer-events: auto; }
+
+.item {
+ padding-top: 8px;
+ width: 100%;
+ list-style-type: none; }
+ .item a[name]:before {
+ content: "";
+ display: block;
+ padding-top: 70px;
+ margin: -70px 0 0; }
+ .item code {
+ background-color: transparent;
+ padding: 0; }
+ .item .token, .item .direct-link {
+ display: inline-block;
+ text-indent: -20px;
+ padding-left: 3px;
+ margin-left: 35px;
+ font-size: 11.9px;
+ transition: all 300ms; }
+ .item .token-open {
+ margin-left: 20px; }
+ .item .discouraged {
+ text-decoration: line-through; }
+ .item .declaration-note {
+ font-size: .85em;
+ color: gray;
+ font-style: italic; }
+
+.pointer-container {
+ border-bottom: 1px solid #e2e2e2;
+ left: -23px;
+ padding-bottom: 13px;
+ position: relative;
+ width: 110%; }
+
+.pointer {
+ background: #f9f9f9;
+ border-left: 1px solid #e2e2e2;
+ border-top: 1px solid #e2e2e2;
+ height: 12px;
+ left: 21px;
+ top: -7px;
+ -webkit-transform: rotate(45deg);
+ -moz-transform: rotate(45deg);
+ -o-transform: rotate(45deg);
+ transform: rotate(45deg);
+ position: absolute;
+ width: 12px; }
+
+.height-container {
+ display: none;
+ left: -25px;
+ padding: 0 25px;
+ position: relative;
+ width: 100%;
+ overflow: hidden; }
+ .height-container .section {
+ background: #f9f9f9;
+ border-bottom: 1px solid #e2e2e2;
+ left: -25px;
+ position: relative;
+ width: 100%;
+ padding-top: 10px;
+ padding-bottom: 5px; }
+
+.aside, .language {
+ padding: 6px 12px;
+ margin: 12px 0;
+ border-left: 5px solid #dddddd;
+ overflow-y: hidden; }
+ .aside .aside-title, .language .aside-title {
+ font-size: 9px;
+ letter-spacing: 2px;
+ text-transform: uppercase;
+ padding-bottom: 0;
+ margin: 0;
+ color: #aaa;
+ -webkit-user-select: none; }
+ .aside p:last-child, .language p:last-child {
+ margin-bottom: 0; }
+
+.language {
+ border-left: 5px solid #cde9f4; }
+ .language .aside-title {
+ color: #4b8afb; }
+
+.aside-warning, .aside-deprecated, .aside-unavailable {
+ border-left: 5px solid #ff6666; }
+ .aside-warning .aside-title, .aside-deprecated .aside-title, .aside-unavailable .aside-title {
+ color: #ff0000; }
+
+.graybox {
+ border-collapse: collapse;
+ width: 100%; }
+ .graybox p {
+ margin: 0;
+ word-break: break-word;
+ min-width: 50px; }
+ .graybox td {
+ border: 1px solid #e2e2e2;
+ padding: 5px 25px 5px 10px;
+ vertical-align: middle; }
+ .graybox tr td:first-of-type {
+ text-align: right;
+ padding: 7px;
+ vertical-align: top;
+ word-break: normal;
+ width: 40px; }
+
+.slightly-smaller {
+ font-size: 0.9em; }
+
+#footer {
+ position: relative;
+ top: 10px;
+ bottom: 0px;
+ margin-left: 25px; }
+ #footer p {
+ margin: 0;
+ color: #aaa;
+ font-size: 0.8em; }
+
+html.dash header, html.dash #breadcrumbs, html.dash .sidebar {
+ display: none; }
+
+html.dash .main-content {
+ width: 980px;
+ margin-left: 0;
+ border: none;
+ width: 100%;
+ top: 0;
+ padding-bottom: 0; }
+
+html.dash .height-container {
+ display: block; }
+
+html.dash .item .token {
+ margin-left: 0; }
+
+html.dash .content-wrapper {
+ width: auto; }
+
+html.dash #footer {
+ position: static; }
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/img/carat.png b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/img/carat.png
new file mode 100755
index 0000000..29d2f7f
Binary files /dev/null and b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/img/carat.png differ
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/img/dash.png b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/img/dash.png
new file mode 100755
index 0000000..6f694c7
Binary files /dev/null and b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/img/dash.png differ
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/img/gh.png b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/img/gh.png
new file mode 100755
index 0000000..628da97
Binary files /dev/null and b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/img/gh.png differ
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/index.html b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/index.html
new file mode 100644
index 0000000..29a42e3
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/index.html
@@ -0,0 +1,149 @@
+
+
+
+ ButtonMerchant Reference
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ ButtonMerchant Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Documentation
+
+Documentation for the Merchant Library can be found on the Button Developer site .
+
+Reference docs are also available.
+Example
+
+To run the example project, clone the repo, run pod install
, and run the Example scheme.
+Installation
+
+ButtonMerchant is available through CocoaPods and Carthage .
+Swift Pacakage Manager
+
+In Xcode, navigate to File → Swift Packages → Add Package Dependency
+
+Enter the package repository URL:
+
+https://github.com/button/button-merchant-ios
+
+Note: Ensure to select ‘Up to Next Major’ version when prompted.
+CocoaPods
+
+Add this line to your Podfile:
+pod 'ButtonMerchant'
+
+Carthage
+
+Or, add this to your Cartfile:
+github "button/button-merchant-ios" ~> 1.0
+
+Author
+
+Button, Inc.
+License
+
+ButtonMerchant is available under the MIT license. See the LICENSE file for more info.
+Contributing
+
+We are looking forward to accepting your contributions to this project very soon!
+
+Until then, if you have something you would like to contribute, please get in touch .
+
+
+
+
+
+
+
+
+
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/js/jazzy.js b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/js/jazzy.js
new file mode 100755
index 0000000..1e55d6e
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/js/jazzy.js
@@ -0,0 +1,70 @@
+window.jazzy = {'docset': false}
+if (typeof window.dash != 'undefined') {
+ document.documentElement.className += ' dash'
+ window.jazzy.docset = true
+}
+if (navigator.userAgent.match(/xcode/i)) {
+ document.documentElement.className += ' xcode'
+ window.jazzy.docset = true
+}
+
+function toggleItem($link, $content) {
+ var animationDuration = 300;
+ $link.toggleClass('token-open');
+ $content.slideToggle(animationDuration);
+}
+
+function itemLinkToContent($link) {
+ return $link.parent().parent().next();
+}
+
+// On doc load + hash-change, open any targetted item
+function openCurrentItemIfClosed() {
+ if (window.jazzy.docset) {
+ return;
+ }
+ var $link = $(`a[name="${location.hash.substring(1)}"]`).nextAll('.token');
+ $content = itemLinkToContent($link);
+ if ($content.is(':hidden')) {
+ toggleItem($link, $content);
+ }
+}
+
+$(openCurrentItemIfClosed);
+$(window).on('hashchange', openCurrentItemIfClosed);
+
+// On item link ('token') click, toggle its discussion
+$('.token').on('click', function(event) {
+ if (window.jazzy.docset) {
+ return;
+ }
+ var $link = $(this);
+ toggleItem($link, itemLinkToContent($link));
+
+ // Keeps the document from jumping to the hash.
+ var href = $link.attr('href');
+ if (history.pushState) {
+ history.pushState({}, '', href);
+ } else {
+ location.hash = href;
+ }
+ event.preventDefault();
+});
+
+// Clicks on links to the current, closed, item need to open the item
+$("a:not('.token')").on('click', function() {
+ if (location == this.href) {
+ openCurrentItemIfClosed();
+ }
+});
+
+// KaTeX rendering
+if ("katex" in window) {
+ $($('.math').each( (_, element) => {
+ katex.render(element.textContent, element, {
+ displayMode: $(element).hasClass('m-block'),
+ throwOnError: false,
+ trust: true
+ });
+ }))
+}
diff --git a/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/js/jquery.min.js b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/js/jquery.min.js
new file mode 100644
index 0000000..a1c07fd
--- /dev/null
+++ b/docs/history/1.4.3/docsets/ButtonMerchant.docset/Contents/Resources/Documents/js/jquery.min.js
@@ -0,0 +1,2 @@
+/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */
+!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML=" ",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML=" ";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""," "],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/
+
+
+
+
+
+
+
+
+ ButtonMerchant Reference
+
+ ButtonMerchant Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Documentation
+
+Documentation for the Merchant Library can be found on the Button Developer site .
+
+Reference docs are also available.
+Example
+
+To run the example project, clone the repo, run pod install
, and run the Example scheme.
+Installation
+
+ButtonMerchant is available through CocoaPods and Carthage .
+Swift Pacakage Manager
+
+In Xcode, navigate to File → Swift Packages → Add Package Dependency
+
+Enter the package repository URL:
+
+https://github.com/button/button-merchant-ios
+
+Note: Ensure to select ‘Up to Next Major’ version when prompted.
+CocoaPods
+
+Add this line to your Podfile:
+pod 'ButtonMerchant'
+
+Carthage
+
+Or, add this to your Cartfile:
+github "button/button-merchant-ios" ~> 1.0
+
+Author
+
+Button, Inc.
+License
+
+ButtonMerchant is available under the MIT license. See the LICENSE file for more info.
+Contributing
+
+We are looking forward to accepting your contributions to this project very soon!
+
+Until then, if you have something you would like to contribute, please get in touch .
+
+
+
+
+
+
+
+
+