|
| 1 | +<?php |
| 2 | +namespace QuickBooksOnline\API\Data; |
| 3 | + |
| 4 | +/** |
| 5 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 6 | + * @xmlType |
| 7 | + * @xmlName IPPTxnApprovalInfo |
| 8 | + * @var IPPTxnApprovalInfo |
| 9 | + * @xmlDefinition Details of approval status for the specific transaction. |
| 10 | + */ |
| 11 | +class IPPTxnApprovalInfo |
| 12 | + { |
| 13 | + |
| 14 | + /** |
| 15 | + * Initializes this object, optionally with pre-defined property values |
| 16 | + * |
| 17 | + * Initializes this object and it's property members, using the dictionary |
| 18 | + * of key/value pairs passed as an optional argument. |
| 19 | + * |
| 20 | + * @param dictionary $keyValInitializers key/value pairs to be populated into object's properties |
| 21 | + * @param boolean $verbose specifies whether object should echo warnings |
| 22 | + */ |
| 23 | + public function __construct($keyValInitializers=array(), $verbose=FALSE) |
| 24 | + { |
| 25 | + foreach($keyValInitializers as $initPropName => $initPropVal) |
| 26 | + { |
| 27 | + if (property_exists('IPPTxnApprovalInfo',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPTxnApprovalInfo',$initPropName)) |
| 28 | + { |
| 29 | + $this->{$initPropName} = $initPropVal; |
| 30 | + } |
| 31 | + else |
| 32 | + { |
| 33 | + if ($verbose) |
| 34 | + echo "Property does not exist ($initPropName) in class (".get_class($this).")"; |
| 35 | + } |
| 36 | + } |
| 37 | + } |
| 38 | + |
| 39 | + |
| 40 | + /** |
| 41 | + * @Definition |
| 42 | + Product: QBO |
| 43 | + Description: Overall Approval Status, collective of all user approvals. |
| 44 | + InputType: QBO: ReadOnly |
| 45 | + |
| 46 | + * @xmlType element |
| 47 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 48 | + * @xmlMinOccurs 0 |
| 49 | + * @xmlName ApprovalStatus |
| 50 | + * @var string |
| 51 | + */ |
| 52 | + public $ApprovalStatus; |
| 53 | + /** |
| 54 | + * @Definition |
| 55 | + Product: QBO |
| 56 | + Description:ApprovalStatusDetail represents the detailed approval statuses of a transaction. For a given ApprovalStatus, ApprovalStatusDetail can have one of the many values described below. |
| 57 | + Following are the approval status and their possible detailed approval statuses: |
| 58 | + Approval Status - APPROVED |
| 59 | + Approval Status Detail - APPROVED,AUTO_APPROVED,FORCE_APPROVED,WORKFLOW_AUTO_APPROVED |
| 60 | +
|
| 61 | + Approval Status - REJECTED |
| 62 | + Approval Status Detail - REJECTED,WORKFLOW_AUTO_REJECTED |
| 63 | +
|
| 64 | + Approval Status - REQUIRES_APPROVAL |
| 65 | + Approval Status Detail - REQUIRES_APPROVAL,CANNOT_DETERMINE |
| 66 | +
|
| 67 | + Approval Status - PENDING_APPROVAL |
| 68 | + Approval Status Detail - PENDING_APPROVAL |
| 69 | +
|
| 70 | + Approval Status - IN_PROGRESS |
| 71 | + Approval Status Detail - IN_PROGRESS |
| 72 | + InputType: QBO: ReadOnly |
| 73 | + |
| 74 | + * @xmlType element |
| 75 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 76 | + * @xmlMinOccurs 0 |
| 77 | + * @xmlName ApprovalStatusDetail |
| 78 | + * @var string |
| 79 | + */ |
| 80 | + public $ApprovalStatusDetail; |
| 81 | + /** |
| 82 | + * @Definition |
| 83 | + Product: QBO |
| 84 | + Description: User-id of the user last updating the approval status. |
| 85 | + InputType: QBO: ReadOnly |
| 86 | + |
| 87 | + * @xmlType element |
| 88 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 89 | + * @xmlMinOccurs 0 |
| 90 | + * @xmlName LastChangedByUser |
| 91 | + * @var string |
| 92 | + */ |
| 93 | + public $LastChangedByUser; |
| 94 | + /** |
| 95 | + * @Definition |
| 96 | + Product: QBO |
| 97 | + Description: Date when the approval status was last updated. |
| 98 | + InputType: QBO: ReadOnly |
| 99 | + |
| 100 | + * @xmlType element |
| 101 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 102 | + * @xmlMinOccurs 0 |
| 103 | + * @xmlName LastChangedDate |
| 104 | + * @var string |
| 105 | + */ |
| 106 | + public $LastChangedDate; |
| 107 | + |
| 108 | + |
| 109 | +} // end class IPPTxnApprovalInfo |
0 commit comments