Skip to main content
Vindicia Knowledge Center

NameValuePair.fetchNameValueTypes

NameValuePair.fetchNameValueTypes

NameValuePair.fetchNameValueTypes

fetchNameValueTypes takes no input parameters and returns a types list, which is an array of strings. Each string represents the name of a client-accessible type that supports name/value pairs.

Object types may include: Account, AutoBill, BillingPlan, CurrencyAmount, PaymentMethod,Product, TimeInterval, Transaction, or WebSession.

Input

This method accepts no input parameters.

Output

return: an object of type Return that indicates the success or failure of the call.

types: an array of strings representing the types of objects that support name-value pairs.

Returns

This method returns the codes listed in Standard Return Codes.

Example

$nvp = new NameValuePair();
$response = $nvp->fetchNameValueTypes();

if ($response['returnCode'] == 200) {

$names = $response['types];
foreach ($types as $type) {

print "$type\n";

}

}

else {

print "Error: " . $response['returnString'] . "\n";

}

For Users

Learn More
For Users

Cashbox Features

Learn More
Cashbox Features
Back to Top