Package-level declarations

Types

Link copied to clipboard
data class Address(    var guid: String,     var name: String,     var organization: String,     var streetAddress: String,     var addressLevel3: String,     var addressLevel2: String,     var addressLevel1: String,     var postalCode: String,     var country: String,     var tel: String,     var email: String,     var timeCreated: Long,     var timeLastUsed: Long?,     var timeLastModified: Long,     var timesUsed: Long)

What you get back as an address.

Link copied to clipboard
Link copied to clipboard
data class CreditCard(    var guid: String,     var ccName: String,     var ccNumberEnc: String,     var ccNumberLast4: String,     var ccExpMonth: Long,     var ccExpYear: Long,     var ccType: String,     var timeCreated: Long,     var timeLastUsed: Long?,     var timeLastModified: Long,     var timesUsed: Long)

What you get back as a credit-card.

Link copied to clipboard
interface Disposable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface StoreInterface
Link copied to clipboard
data class UpdatableAddressFields(    var name: String,     var organization: String,     var streetAddress: String,     var addressLevel3: String,     var addressLevel2: String,     var addressLevel1: String,     var postalCode: String,     var country: String,     var tel: String,     var email: String)

What you pass to create or update an address.

Link copied to clipboard
data class UpdatableCreditCardFields(    var ccName: String,     var ccNumberEnc: String,     var ccNumberLast4: String,     var ccExpMonth: Long,     var ccExpYear: Long,     var ccType: String)

What you pass to create or update a credit-card.

Functions

Link copied to clipboard

Create a new, random, encryption key.

Link copied to clipboard
fun decryptString(key: String, ciphertext: String): String

Decrypt an arbitrary string - key must have come from create_key() and ciphertext must have come from encrypt_string()

Link copied to clipboard
fun encryptString(key: String, cleartext: String): String

Encrypt an arbitrary string - key must have come from create_key()