Copied!
  • property string $name
  • property int $quantity
  • property string $description
  • property string $sku
  • property ?\PHPFUI\PayPal\Currency $tax
  • property string $category
  • property ?\PHPFUI\PayPal\Currency $unit_amount
CloneableInstantiable
Methods
public __construct(string $name, int $quantity, PHPFUI\PayPal\Currency $unit_amount)
public PHPFUI\PayPal\Base::__get(string $field) : ?mixed
 

Unset fields will return null

public PHPFUI\PayPal\Base::__set(string $field, ?mixed $value) : void
public PHPFUI\PayPal\Base::getData() : array
 
  • return array<string,mixed>
public PHPFUI\PayPal\Base::getJSON() : string
public PHPFUI\PayPal\Base::getValidFields() : array
 

Return all the valid fields for the object. Index is field name and value is the type.

  • return array<string,string>
Properties
protected static array $validFields = ['name' => 'string', 'quantity' => 'integer', 'description' => 'string', 'sku' => 'string', 'tax' => 'PHPFUI\PayPal\Currency', 'category' => ['DIGITAL_GOODS', 'PHYSICAL_GOODS'], 'unit_amount' => 'PHPFUI\PayPal\Currency']
 
  • var array<string,string|string[]>
Properties
protected static array $validFields = ['name' => 'string', 'quantity' => 'integer', 'description' => 'string', 'sku' => 'string', 'tax' => 'PHPFUI\PayPal\Currency', 'category' => ['DIGITAL_GOODS', 'PHYSICAL_GOODS'], 'unit_amount' => 'PHPFUI\PayPal\Currency']
 
  • var array<string,string|string[]>
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration