NameValuePair.fetchNameValueTypes
Web Session Object
Transaction Object
Token Object
Season Set Object
Refund Object
RatePlan Object
Product Object
Payment Provider Object
Payment Method Object
NameValuePair Object
GiftCard Object
Entitlement Object
Chargeback Object
Campaign Object
BillingPlan Object
AutoBill Object
Address Object
Activity Object
Account Object
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