|
6 | 6 | * @xmlType string
|
7 | 7 | * @xmlName IPPAPCreditCardOperationEnum
|
8 | 8 | * @var IPPAPCreditCardOperationEnum
|
9 |
| - * @xmlDefinition |
10 |
| - Product: ALL |
11 |
| - Description: Enumeration of Credit Card |
12 |
| - operation type: Charge or Credit. |
13 |
| -
|
| 9 | + * @xmlDefinition |
| 10 | + Product: ALL |
| 11 | + Description: Enumeration of Credit Card |
| 12 | + operation type: Charge or Credit. |
| 13 | + |
14 | 14 | */
|
15 | 15 | class IPPAPCreditCardOperationEnum
|
16 |
| -{ |
| 16 | + { |
| 17 | + |
| 18 | + /** |
| 19 | + * Initializes this object, optionally with pre-defined property values |
| 20 | + * |
| 21 | + * Initializes this object and it's property members, using the dictionary |
| 22 | + * of key/value pairs passed as an optional argument. |
| 23 | + * |
| 24 | + * @param dictionary $keyValInitializers key/value pairs to be populated into object's properties |
| 25 | + * @param boolean $verbose specifies whether object should echo warnings |
| 26 | + */ |
| 27 | + public function __construct($keyValInitializers=array(), $verbose=FALSE) |
| 28 | + { |
| 29 | + foreach($keyValInitializers as $initPropName => $initPropVal) |
| 30 | + { |
| 31 | + if (property_exists('IPPAPCreditCardOperationEnum',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPAPCreditCardOperationEnum',$initPropName)) |
| 32 | + { |
| 33 | + $this->{$initPropName} = $initPropVal; |
| 34 | + } |
| 35 | + else |
| 36 | + { |
| 37 | + if ($verbose) |
| 38 | + echo "Property does not exist ($initPropName) in class (".get_class($this).")"; |
| 39 | + } |
| 40 | + } |
| 41 | + } |
17 | 42 |
|
18 |
| - /** |
19 |
| - * Initializes this object, optionally with pre-defined property values |
20 |
| - * |
21 |
| - * Initializes this object and it's property members, using the dictionary |
22 |
| - * of key/value pairs passed as an optional argument. |
23 |
| - * |
24 |
| - * @param dictionary $keyValInitializers key/value pairs to be populated into object's properties |
25 |
| - * @param boolean $verbose specifies whether object should echo warnings |
26 |
| - */ |
27 |
| - public function __construct($keyValInitializers = array(), $verbose = false) |
28 |
| - { |
29 |
| - foreach ($keyValInitializers as $initPropName => $initPropVal) { |
30 |
| - if (property_exists('IPPAPCreditCardOperationEnum', $initPropName) || property_exists('QuickBooksOnline\API\Data\IPPAPCreditCardOperationEnum', $initPropName)) { |
31 |
| - $this->{$initPropName} = $initPropVal; |
32 |
| - } else { |
33 |
| - if ($verbose) { |
34 |
| - echo "Property does not exist ($initPropName) in class (".get_class($this).")"; |
35 |
| - } |
36 |
| - } |
37 |
| - } |
38 |
| - } |
| 43 | + /** |
| 44 | + * @xmlType value |
| 45 | + * @var string |
| 46 | + */ |
| 47 | + public $value; |
39 | 48 |
|
40 |
| - /** |
41 |
| - * @xmlType value |
42 |
| - * @var string |
43 |
| - */ |
44 |
| - public $value; |
45 | 49 | } // end class IPPAPCreditCardOperationEnum
|
0 commit comments