|
| 1 | +<?php |
| 2 | +namespace QuickBooksOnline\API\Data; |
| 3 | + |
| 4 | +/** |
| 5 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 6 | + * @xmlType Transaction |
| 7 | + * @xmlName IPPCreditCardPaymentTxn |
| 8 | + * @var IPPCreditCardPaymentTxn |
| 9 | + * @xmlDefinition Financial transaction representing recording of a Credit Card balance payment. |
| 10 | + |
| 11 | + */ |
| 12 | +class IPPCreditCardPaymentTxn |
| 13 | + extends IPPTransaction { |
| 14 | + |
| 15 | + /** |
| 16 | + * Initializes this object, optionally with pre-defined property values |
| 17 | + * |
| 18 | + * Initializes this object and it's property members, using the dictionary |
| 19 | + * of key/value pairs passed as an optional argument. |
| 20 | + * |
| 21 | + * @param dictionary $keyValInitializers key/value pairs to be populated into object's properties |
| 22 | + * @param boolean $verbose specifies whether object should echo warnings |
| 23 | + */ |
| 24 | + public function __construct($keyValInitializers=array(), $verbose=FALSE) |
| 25 | + { |
| 26 | + foreach($keyValInitializers as $initPropName => $initPropVal) |
| 27 | + { |
| 28 | + if (property_exists('IPPCreditCardPaymentTxn',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPCreditCardPaymentTxn',$initPropName)) |
| 29 | + { |
| 30 | + $this->{$initPropName} = $initPropVal; |
| 31 | + } |
| 32 | + else |
| 33 | + { |
| 34 | + if ($verbose) |
| 35 | + echo "Property does not exist ($initPropName) in class (".get_class($this).")"; |
| 36 | + } |
| 37 | + } |
| 38 | + } |
| 39 | + |
| 40 | + |
| 41 | + /** |
| 42 | + * @Definition Credit Card account for which a payment is being entered. |
| 43 | + Must be a Credit Card account. |
| 44 | + |
| 45 | + * @xmlType element |
| 46 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 47 | + * @xmlMinOccurs 0 |
| 48 | + * @xmlName CreditCardAccountRef |
| 49 | + * @var com\intuit\schema\finance\v3\IPPReferenceType |
| 50 | + */ |
| 51 | + public $CreditCardAccountRef; |
| 52 | + /** |
| 53 | + * @Definition Bank account used to pay the Credit Card balance. |
| 54 | + Must be a Bank account. |
| 55 | + |
| 56 | + * @xmlType element |
| 57 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 58 | + * @xmlMinOccurs 0 |
| 59 | + * @xmlName BankAccountRef |
| 60 | + * @var com\intuit\schema\finance\v3\IPPReferenceType |
| 61 | + */ |
| 62 | + public $BankAccountRef; |
| 63 | + /** |
| 64 | + * @Definition Total amount of the payment. Denominated in the currency of the credit card account. |
| 65 | + |
| 66 | + * @xmlType element |
| 67 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 68 | + * @xmlMinOccurs 0 |
| 69 | + * @xmlName Amount |
| 70 | + * @var float |
| 71 | + */ |
| 72 | + public $Amount; |
| 73 | + /** |
| 74 | + * @Definition Internal use only: extension place holder for |
| 75 | + CreditCardPayment |
| 76 | + * @xmlType element |
| 77 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 78 | + * @xmlName CreditCardPaymentEx |
| 79 | + * @var com\intuit\schema\finance\v3\IPPIntuitAnyType |
| 80 | + */ |
| 81 | + public $CreditCardPaymentEx; |
| 82 | + |
| 83 | + |
| 84 | +} // end class IPPCreditCardPaymentTxn |
0 commit comments