tracking-code-which-will-go-to-the-HEAD Aklamio Sales createRequest

Namespace

createRequest

createRequest

Members

# static aid

# static checkoutLocation

# static currencyCode

# static email

# static encryptedEmail

# static items

# static keyNonce

# static metainfo

# static orderRef

# static partnerId

# static test

# static trackingAttribution

Methods

# static addItem(item)

Adds a new item
Parameters:
Name Type Description
item ITEM

# static getFlatRequestFields() → {Object}

Get the request plain fields that are going to be processed by the server
flattened object with specified keys
Object

# static send()

Sends request object to aklamio server
Promise

# static setAID(id)

Setter for AID
Parameters:
Name Type Description
id string

# static setCurrencyCode(currencyCode)

Setter for ISO currency code Eg. EUR, USD
Parameters:
Name Type Description
currencyCode string

# static setEmail(email)

Setter for email
Parameters:
Name Type Description
email string

# static setEncryptedEmail(EncryptedEmail)

Setter for encrypted email
Parameters:
Name Type Description
EncryptedEmail string

# static setItems(items)

Set the items for the request
Parameters:
Name Type Description
items Array.<Object>

# static setMetainfo(Meta)

Setter for Meta Info
Parameters:
Name Type Description
Meta Array miscellaneuos information eg. agent Id

# static setNonce(key)

Sets a (unified) sso private key for secure transmission (Optional) - To be chosen by partner
Parameters:
Name Type Description
key number

# static setTest(test)

Sets the Test attribute
Parameters:
Name Type Description
test boolean

# static setTrackingAttribution(trackingAttribution)

Setter for tracking attribution
Parameters:
Name Type Description
trackingAttribution string | boolean

# static validate() → {boolean|Object}

Validates the request based on field restrictions and specific conditions
returns boolean or an error object
boolean | Object