From 1d97203f57a164c62aadf335cde195ae69a27249 Mon Sep 17 00:00:00 2001 From: Brinda Sivalingam Date: Mon, 24 Feb 2020 14:15:22 -0800 Subject: [PATCH 1/5] Add new data classes for MV 47 --- src/Data/IPPAccount.php | 15 + src/Data/IPPBill.php | 12 + src/Data/IPPBillPayment.php | 12 + src/Data/IPPCreditCardPaymentTxn.php | 84 ++ src/Data/IPPCreditMemo.php | 8 +- src/Data/IPPInvoice.php | 12 + src/Data/IPPLine.php | 2 +- src/Data/IPPSalesTransaction.php | 22 +- src/Data/IPPTag.php | 58 + src/Data/IPPTaxAgency.php | 12 + src/Data/IPPTaxCode.php | 8 +- src/Data/IPPTaxPayment.php | 105 ++ src/Data/IPPTaxReturn.php | 24 +- src/Data/IPPTransaction.php | 13 + src/Data/IPPTxnTaxDetail.php | 19 + src/Data/IPPVendorCredit.php | 12 + src/Facades/FacadeClassMapper.php | 2 +- src/XSD/Finance.xsd | 1662 ++++++++++++++------------ src/XSD/IntuitBaseTypes.xsd | 3 + src/XSD/IntuitNamesTypes.xsd | 8 + src/XSD/IntuitRestServiceDef.xsd | 3 + 21 files changed, 1325 insertions(+), 771 deletions(-) create mode 100644 src/Data/IPPCreditCardPaymentTxn.php create mode 100644 src/Data/IPPTag.php create mode 100644 src/Data/IPPTaxPayment.php diff --git a/src/Data/IPPAccount.php b/src/Data/IPPAccount.php index a6ceb5ae..94154e4c 100644 --- a/src/Data/IPPAccount.php +++ b/src/Data/IPPAccount.php @@ -205,6 +205,21 @@ classification an account classified. Suggested examples of * @var string */ public $AccountSubType; + /** + * @Definition + Product: QBO + Description: Internal use only: Account purpose indicates the mapping of the + chart-of-account to a purpose (eg: DEFAULT_QB_CASH_CHECKING_ACCOUNT). A chart-of-account + can have multiple account purpose mapping. + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlMaxOccurs unbounded + * @xmlName AccountPurposes + * @var com\intuit\schema\finance\v3\IPPReferenceType + */ + public $AccountPurposes; /** * @br * @ul diff --git a/src/Data/IPPBill.php b/src/Data/IPPBill.php index d0698123..c23481f8 100644 --- a/src/Data/IPPBill.php +++ b/src/Data/IPPBill.php @@ -94,6 +94,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) * @var com\intuit\schema\finance\v3\IPPPhysicalAddress */ public $ShipAddr; + /** + * @Definition + Product: QBO + Description: Vendor Mailing Address + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName VendorAddr + * @var com\intuit\schema\finance\v3\IPPPhysicalAddress + */ + public $VendorAddr; /** * @Definition Product: ALL diff --git a/src/Data/IPPBillPayment.php b/src/Data/IPPBillPayment.php index 7c5d4aa1..a3a2c744 100644 --- a/src/Data/IPPBillPayment.php +++ b/src/Data/IPPBillPayment.php @@ -54,6 +54,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) * @var com\intuit\schema\finance\v3\IPPReferenceType */ public $VendorRef; + /** + * @Definition + Product: QBO + Description: Vendor Mailing Address + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName VendorAddr + * @var com\intuit\schema\finance\v3\IPPPhysicalAddress + */ + public $VendorAddr; /** * @Definition Optional AP account specification for bill payment transactions. Most small businesses have a single AP diff --git a/src/Data/IPPCreditCardPaymentTxn.php b/src/Data/IPPCreditCardPaymentTxn.php new file mode 100644 index 00000000..b5c42ab8 --- /dev/null +++ b/src/Data/IPPCreditCardPaymentTxn.php @@ -0,0 +1,84 @@ + $initPropVal) + { + if (property_exists('IPPCreditCardPaymentTxn',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPCreditCardPaymentTxn',$initPropName)) + { + $this->{$initPropName} = $initPropVal; + } + else + { + if ($verbose) + echo "Property does not exist ($initPropName) in class (".get_class($this).")"; + } + } + } + + + /** + * @Definition Credit Card account for which a payment is being entered. + Must be a Credit Card account. + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName CreditCardAccountRef + * @var com\intuit\schema\finance\v3\IPPReferenceType + */ + public $CreditCardAccountRef; + /** + * @Definition Bank account used to pay the Credit Card balance. + Must be a Bank account. + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName BankAccountRef + * @var com\intuit\schema\finance\v3\IPPReferenceType + */ + public $BankAccountRef; + /** + * @Definition Total amount of the payment. Denominated in the currency of the credit card account. + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName Amount + * @var float + */ + public $Amount; + /** + * @Definition Internal use only: extension place holder for + CreditCardPayment + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlName CreditCardPaymentEx + * @var com\intuit\schema\finance\v3\IPPIntuitAnyType + */ + public $CreditCardPaymentEx; + + +} // end class IPPCreditCardPaymentTxn diff --git a/src/Data/IPPCreditMemo.php b/src/Data/IPPCreditMemo.php index b96addef..103e4f7f 100644 --- a/src/Data/IPPCreditMemo.php +++ b/src/Data/IPPCreditMemo.php @@ -55,10 +55,10 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) public $RemainingCredit; /** * @Definition - Product: ALL - Description: A credit memo needs to have an invoice number to save successfully - Applicable for IN Region. - + Product: ALL + Description: A credit memo needs to have an invoice number to save successfully + Applicable for IN Region. + * @xmlType element * @xmlNamespace http://schema.intuit.com/finance/v3 * @xmlMinOccurs 0 diff --git a/src/Data/IPPInvoice.php b/src/Data/IPPInvoice.php index 893772c9..d1e33c0d 100644 --- a/src/Data/IPPInvoice.php +++ b/src/Data/IPPInvoice.php @@ -247,6 +247,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) * @var string */ public $InvoiceLink; + /** + * @Definition + Product: QBO + Description: QBO: Message displayed to customer about payment Instructions. eg: bank account info. + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName PaymentDetailsMessage + * @var string + */ + public $PaymentDetailsMessage; /** * @Definition Product: QBO diff --git a/src/Data/IPPLine.php b/src/Data/IPPLine.php index 9ecc4eab..1ff8c218 100644 --- a/src/Data/IPPLine.php +++ b/src/Data/IPPLine.php @@ -126,7 +126,7 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) which depends on the type of the line. It can represent the received amount or received quantity based on the line type detail. ReadOnly field for Purchase Order. - Applies to existing and new entities. + Applies to existing and new entities. * @xmlType element * @xmlNamespace http://schema.intuit.com/finance/v3 diff --git a/src/Data/IPPSalesTransaction.php b/src/Data/IPPSalesTransaction.php index 0eab3d6d..e0ed4ec8 100644 --- a/src/Data/IPPSalesTransaction.php +++ b/src/Data/IPPSalesTransaction.php @@ -134,10 +134,10 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) public $ShipAddr; /** * @Definition - Product: QBO - Description: Specifies whether - shipping address is in free-form or structured-form (city/state etc.) - + Product: QBO + Description: Specifies whether + shipping address is in free-form or structured-form (city/state etc.) + * @xmlType element * @xmlNamespace http://schema.intuit.com/finance/v3 * @xmlMinOccurs 0 @@ -147,13 +147,13 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) public $FreeFormAddress; /** * @Definition - Product: ALL - Description: QBO: Shipping from address - of the Invoice.[br]See [a - href="http://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0060_Financial_Management_Services_(v3)/01000_Using_Data_Service_Entities#Addresses"]Addresses[/a] - Description: QBW: Identifies the address where the goods are shipped - from. For transactions without shipping, it represents the address where the sale took place. - + Product: ALL + Description: QBO: Shipping from address + of the Invoice.[br]See [a + href="http://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0060_Financial_Management_Services_(v3)/01000_Using_Data_Service_Entities#Addresses"]Addresses[/a] + Description: QBW: Identifies the address where the goods are shipped + from. For transactions without shipping, it represents the address where the sale took place. + * @xmlType element * @xmlNamespace http://schema.intuit.com/finance/v3 * @xmlMinOccurs 0 diff --git a/src/Data/IPPTag.php b/src/Data/IPPTag.php new file mode 100644 index 00000000..b5865285 --- /dev/null +++ b/src/Data/IPPTag.php @@ -0,0 +1,58 @@ + $initPropVal) + { + if (property_exists('IPPTag',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPTag',$initPropName)) + { + $this->{$initPropName} = $initPropVal; + } + else + { + if ($verbose) + echo "Property does not exist ($initPropName) in class (".get_class($this).")"; + } + } + } + + + /** + * @Definition + Product: ALL + Description: The name of the tag. + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlMaxOccurs 1 + * @xmlName Name + * @var string + */ + public $Name; + + +} // end class IPPTag diff --git a/src/Data/IPPTaxAgency.php b/src/Data/IPPTaxAgency.php index d291db0c..3287b396 100644 --- a/src/Data/IPPTaxAgency.php +++ b/src/Data/IPPTaxAgency.php @@ -143,6 +143,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) * @var com\intuit\schema\finance\v3\IPPIntuitAnyType */ public $TaxAgencyExt; + /** + * @Definition + Product: QBO + Description: Tax agency config. Identify if the agency is System generated or User created. + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName TaxAgencyConfig + * @var string + */ + public $TaxAgencyConfig; } // end class IPPTaxAgency diff --git a/src/Data/IPPTaxCode.php b/src/Data/IPPTaxCode.php index faf9c7ef..519cb6f3 100644 --- a/src/Data/IPPTaxCode.php +++ b/src/Data/IPPTaxCode.php @@ -100,10 +100,10 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) public $Active; /** * @Definition - Product: QBW - Description: True if Taxcode needs to be hidden. Active tax codes can be hidden from the display using this. - Filterable: ALL - + Product: QBW + Description: True if Taxcode needs to be hidden. Active tax codes can be hidden from the display using this. + Filterable: ALL + * @xmlType element * @xmlNamespace http://schema.intuit.com/finance/v3 * @xmlMinOccurs 0 diff --git a/src/Data/IPPTaxPayment.php b/src/Data/IPPTaxPayment.php new file mode 100644 index 00000000..6a619f7e --- /dev/null +++ b/src/Data/IPPTaxPayment.php @@ -0,0 +1,105 @@ + $initPropVal) + { + if (property_exists('IPPTaxPayment',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPTaxPayment',$initPropName)) + { + $this->{$initPropName} = $initPropVal; + } + else + { + if ($verbose) + echo "Property does not exist ($initPropName) in class (".get_class($this).")"; + } + } + } + + + /** + * @Definition + Product: QBO + Description: The tax payment date + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName PaymentDate + * @var string + */ + public $PaymentDate; + /** + * @Definition + Product: QBO + Description: Account ID from which the payment was made (or refund was moved to) + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName PaymentAccountRef + * @var com\intuit\schema\finance\v3\IPPReferenceType + */ + public $PaymentAccountRef; + /** + * @Definition + Product: QBO + Description: Specifies the tax payment amount paid towards a filed tax return. + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName PaymentAmount + * @var float + */ + public $PaymentAmount; + /** + * @Definition + Product: QBO + Description: Memo/Description added for this payment. + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName Description + * @var string + */ + public $Description; + /** + * @Definition + Product: QBO + Description: Indicate if this transaction is a refund. Returns false for the tax payment. + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName Refund + * @var boolean + */ + public $Refund; + + +} // end class IPPTaxPayment diff --git a/src/Data/IPPTaxReturn.php b/src/Data/IPPTaxReturn.php index 742a6572..732dfe8b 100644 --- a/src/Data/IPPTaxReturn.php +++ b/src/Data/IPPTaxReturn.php @@ -161,9 +161,9 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) public $AgencyRef; /** * @Definition - Product: QBO - Description: Represents the status of the filing of the tax return - + Product: QBO + Description: Represents the status of the filing of the tax return + * @xmlType element * @xmlNamespace http://schema.intuit.com/finance/v3 * @xmlMinOccurs 0 @@ -173,9 +173,9 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) public $TaxReturnStatus; /** * @Definition - Product: QBO - Description: Represents the failure reason of tax return e-filing with agency - + Product: QBO + Description: Represents the failure reason of tax return e-filing with agency + * @xmlType element * @xmlNamespace http://schema.intuit.com/finance/v3 * @xmlMinOccurs 0 @@ -197,9 +197,9 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) public $EFileErrorFixByDate; /** * @Definition - Product: QBO - Description: Represents the payment method used while e-filing tax return with agency - + Product: QBO + Description: Represents the payment method used while e-filing tax return with agency + * @xmlType element * @xmlNamespace http://schema.intuit.com/finance/v3 * @xmlMinOccurs 0 @@ -209,9 +209,9 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) public $AgencyPaymentMethod; /** * @Definition - Product: QBO - Description: Represents the tax return code with the partner - + Product: QBO + Description: Represents the tax return code with the partner + * @xmlType element * @xmlNamespace http://schema.intuit.com/finance/v3 * @xmlMinOccurs 0 diff --git a/src/Data/IPPTransaction.php b/src/Data/IPPTransaction.php index 612fd0be..0dde9d31 100644 --- a/src/Data/IPPTransaction.php +++ b/src/Data/IPPTransaction.php @@ -299,6 +299,19 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) * @var string */ public $TransactionLocationType; + /** + * @Definition + Product: QBO + Descripton: List of tags used to identify the transaction. + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlMaxOccurs unbounded + * @xmlName Tag + * @var com\intuit\schema\finance\v3\IPPTag + */ + public $Tag; } // end class IPPTransaction diff --git a/src/Data/IPPTxnTaxDetail.php b/src/Data/IPPTxnTaxDetail.php index d3e29772..3a947c3f 100644 --- a/src/Data/IPPTxnTaxDetail.php +++ b/src/Data/IPPTxnTaxDetail.php @@ -122,6 +122,25 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) * @var com\intuit\schema\finance\v3\IPPLine */ public $TaxLine; + /** + * @Definition + Product: All + Description: This is a boolean which defines if developer intends to use + Automated Sales Tax or tax code that they have provided in the payload. + If the v3 developer sets this to true, then txn going in QBO will always + have AST rates. In case this flag is set to false, then it will depend on the + QBO user pref - AllowPartnerTaxOverride, which tells if QBO user wants to allow + v3 app to override AST rates or not. If user allows v3 apps to override AST, + then the txn will get saved with v3 app specified rates. + [span style="display: none"] I18n: US [/span] + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName UseAutomatedSalesTax + * @var boolean + */ + public $UseAutomatedSalesTax; } // end class IPPTxnTaxDetail diff --git a/src/Data/IPPVendorCredit.php b/src/Data/IPPVendorCredit.php index b686174b..865ed96a 100644 --- a/src/Data/IPPVendorCredit.php +++ b/src/Data/IPPVendorCredit.php @@ -39,6 +39,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE) } + /** + * @Definition + Product: QBO + Description: Vendor Mailing Address + + * @xmlType element + * @xmlNamespace http://schema.intuit.com/finance/v3 + * @xmlMinOccurs 0 + * @xmlName VendorAddr + * @var com\intuit\schema\finance\v3\IPPPhysicalAddress + */ + public $VendorAddr; /** * @Definition Internal use only: extension place holder for Bill extensible element to qualify account. diff --git a/src/Facades/FacadeClassMapper.php b/src/Facades/FacadeClassMapper.php index 5d318f25..84c3c2b6 100644 --- a/src/Facades/FacadeClassMapper.php +++ b/src/Facades/FacadeClassMapper.php @@ -46,7 +46,7 @@ public static function IPPReferenceTypeNameEntity(){ //IPPItem 'UOMSetRef','IncomeAccountRef','ExpenseAccountRef','COGSAccountRef','AssetAccountRef','PrefVendorRef','SalesTaxCodeRef','PurchaseTaxCodeRef', //IPPCreditMemeo - 'InvoiceRef' + 'InvoiceRef', 'CreditCardAccountRef' ]; } diff --git a/src/XSD/Finance.xsd b/src/XSD/Finance.xsd index b9c276a8..65f8f68b 100644 --- a/src/XSD/Finance.xsd +++ b/src/XSD/Finance.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://schema.intuit.com/finance/v3" + elementFormDefault="qualified" attributeFormDefault="unqualified"> @@ -702,7 +702,7 @@ Product: QBO Description: Use Fixed asset - phone for phone equipment you use for - work. + work. @@ -711,7 +711,7 @@ Product: QBO Description: Use Fixed asset - photo/video for cameras, photography, - and video equipment you buy for work. + and video equipment you buy for work. @@ -729,7 +729,7 @@ Product: QBO Description: Use Fixed asset - other tools/equipment for the cost of - tools and equipment needed for work. + tools and equipment needed for work. @@ -2022,7 +2022,7 @@ - + Product: QBO @@ -2055,7 +2055,7 @@ - + Product: QBO @@ -2087,7 +2087,7 @@ - + Product: QBO @@ -2799,7 +2799,7 @@ - + Product: QBO @@ -2847,7 +2847,7 @@ - + Product: QBO @@ -3187,6 +3187,7 @@ + @@ -3757,29 +3758,29 @@ - - Enumeration of the filing status that a TaxReturn can have - - - - - - - - - - - - Enumeration of payment methods that can be used to pay tax agency - - - - - - - - - + + Enumeration of the filing status that a TaxReturn can have + + + + + + + + + + + + Enumeration of payment methods that can be used to pay tax agency + + + + + + + + + Enumeration of Reasons to review AST Taxes @@ -3797,6 +3798,7 @@ + @@ -3913,7 +3915,7 @@ + minOccurs="1" maxOccurs="1"> Product: QBO @@ -3923,7 +3925,7 @@ + minOccurs="1" maxOccurs="1"> Product: QBO @@ -3933,7 +3935,7 @@ + minOccurs="1" maxOccurs="1"> Product: QBO @@ -3943,7 +3945,7 @@ + minOccurs="1" maxOccurs="1"> Product: QBO @@ -3964,7 +3966,7 @@ + minOccurs="0"> Product: ALL @@ -3979,14 +3981,14 @@ + minOccurs="0"> Company Address as described in preference + minOccurs="0"> Address of the company as given to th customer, sometimes the address given to the customer mail address is @@ -3994,20 +3996,20 @@ + minOccurs="0"> Legal Address given to the government for any government communication + minOccurs="0"> CompanyEmail Address + minOccurs="0"> Email Address published to customer for communication if different from CompanyEmailAddress @@ -4015,19 +4017,19 @@ + minOccurs="0"> Company URL + minOccurs="0"> Primary Phone number + minOccurs="0" maxOccurs="unbounded"> Product: QBW @@ -4038,7 +4040,7 @@ + minOccurs="0"> Product: QBW @@ -4048,7 +4050,7 @@ + minOccurs="0"> Product: QBW @@ -4059,7 +4061,7 @@ + minOccurs="0"> Product: QBW @@ -4068,7 +4070,7 @@ + minOccurs="0"> Product: QBW @@ -4080,7 +4082,7 @@ + minOccurs="0"> Product: QBW @@ -4090,7 +4092,7 @@ + minOccurs="0"> Product: ALL @@ -4099,7 +4101,7 @@ + minOccurs="0"> Product: ALL @@ -4108,7 +4110,7 @@ + minOccurs="0"> Product: ALL @@ -4117,7 +4119,7 @@ + minOccurs="0"> Product: ALL @@ -4147,7 +4149,7 @@ + minOccurs="0"> Product: ALL @@ -4156,7 +4158,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: ALL @@ -4165,7 +4167,7 @@ + minOccurs="0"> Product: ALL @@ -4190,7 +4192,7 @@ + minOccurs="0"> Product: ALL @@ -4199,7 +4201,7 @@ + minOccurs="0" maxOccurs="1"> Product: ALL @@ -4208,28 +4210,28 @@ + minOccurs="0"> Comma separated list of languages + minOccurs="0"> Default time zone for the company + minOccurs="0"> Specifies if the company support multibyte or not + maxOccurs="unbounded"> Any other preference not covered in base is covered as name value pair, for detailed explanation look at the @@ -4237,7 +4239,7 @@ + type="IntuitAnyType"> Product: ALL @@ -4257,7 +4259,7 @@ + minOccurs="0"> Product: ALL @@ -4272,14 +4274,14 @@ + minOccurs="0"> Company Address as described in preference + minOccurs="0"> Address of the company as given to th customer, sometimes the address given to the customer mail address is @@ -4287,20 +4289,20 @@ + minOccurs="0"> Legal Address given to the government for any government communication + minOccurs="0"> CompanyEmail Address + minOccurs="0"> Email Address published to customer for communication if different from CompanyEmailAddress @@ -4308,19 +4310,19 @@ + minOccurs="0"> Company URL + minOccurs="0"> Primary Phone number + minOccurs="0" maxOccurs="unbounded"> Product: QBW @@ -4331,7 +4333,7 @@ + minOccurs="0"> Product: QBW @@ -4341,7 +4343,7 @@ + minOccurs="0"> Product: QBW @@ -4352,7 +4354,7 @@ + minOccurs="0"> Product: QBW @@ -4361,7 +4363,7 @@ + minOccurs="0"> Product: QBW @@ -4373,7 +4375,7 @@ + minOccurs="0"> Product: QBW @@ -4383,7 +4385,7 @@ + minOccurs="0"> Product: ALL @@ -4392,7 +4394,7 @@ + minOccurs="0"> Product: ALL @@ -4401,7 +4403,7 @@ + minOccurs="0"> Product: ALL @@ -4410,7 +4412,7 @@ + minOccurs="0"> Product: ALL @@ -4440,7 +4442,7 @@ + minOccurs="0"> Product: ALL @@ -4449,7 +4451,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: ALL @@ -4458,7 +4460,7 @@ + minOccurs="0"> Product: ALL @@ -4483,7 +4485,7 @@ + minOccurs="0"> Product: ALL @@ -4492,7 +4494,7 @@ + minOccurs="0" maxOccurs="1"> Product: ALL @@ -4501,7 +4503,7 @@ + minOccurs="0" maxOccurs="1"> Product: QBW @@ -4510,28 +4512,28 @@ + minOccurs="0"> Comma separated list of languages + minOccurs="0"> Default time zone for the company + minOccurs="0"> Specifies if the company support multibyte or not + maxOccurs="unbounded"> Any other preference not covered in base is covered as name value pair, for detailed explanation look at the @@ -4548,7 +4550,7 @@ + type="IntuitAnyType"> Product: ALL @@ -4622,7 +4624,7 @@ + minOccurs="0"> Product: QBO @@ -4633,7 +4635,7 @@ + minOccurs="0"> Product: ALL @@ -4645,7 +4647,7 @@ + minOccurs="0"> Product: ALL @@ -4661,7 +4663,7 @@ + minOccurs="0"> Product: ALL @@ -4692,7 +4694,7 @@ + maxOccurs="unbounded"> Product: ALL @@ -4702,7 +4704,7 @@ + maxOccurs="unbounded"> Product: QBW @@ -4716,7 +4718,7 @@ + minOccurs="0"> Product: ALL @@ -4749,7 +4751,7 @@ + minOccurs="0"> Description: refer TaxFormTypeEnum. Tax Form Type holds data related to Tax @@ -4760,7 +4762,7 @@ + minOccurs="0"> Description: Tax Form Num holds data related to Tax Information based on @@ -4771,7 +4773,7 @@ + minOccurs="0"> Product: QBO @@ -4783,6 +4785,15 @@ + + + + Product: QBO + Descripton: List of tags used to identify the transaction. + + + @@ -4809,7 +4820,7 @@ + minOccurs="0"> Product: QBW @@ -4822,7 +4833,7 @@ + minOccurs="0"> Product: All @@ -4851,7 +4862,7 @@ + maxOccurs="unbounded"> Product: ALL @@ -4859,6 +4870,21 @@ + + + + Product: All + Description: This is a boolean which defines if developer intends to use + Automated Sales Tax or tax code that they have provided in the payload. + If the v3 developer sets this to true, then txn going in QBO will always + have AST rates. In case this flag is set to false, then it will depend on the + QBO user pref - AllowPartnerTaxOverride, which tells if QBO user wants to allow + v3 app to override AST rates or not. If user allows v3 apps to override AST, + then the txn will get saved with v3 app specified rates. + [span style="display: none"] I18n: US [/span] + + + @@ -4873,7 +4899,7 @@ + minOccurs="0"> Product: QBO @@ -4884,7 +4910,7 @@ + minOccurs="0"> Product: ALL @@ -4897,7 +4923,7 @@ + minOccurs="0"> Product: ALL @@ -4917,7 +4943,7 @@ + minOccurs="0"> Product: ALL @@ -4932,7 +4958,7 @@ + minOccurs="0"> Product: ALL @@ -4948,31 +4974,31 @@ - - - - Product: QBO - Description: Specifies whether - shipping address is in free-form or structured-form (city/state etc.) - - - - - - - Product: ALL - Description: QBO: Shipping from address - of the Invoice.[br]See [a - href="http://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0060_Financial_Management_Services_(v3)/01000_Using_Data_Service_Entities#Addresses"]Addresses[/a] - Description: QBW: Identifies the address where the goods are shipped - from. For transactions without shipping, it represents the address where the sale took place. - - - - + + + + Product: QBO + Description: Specifies whether + shipping address is in free-form or structured-form (city/state etc.) + + + + + + + Product: ALL + Description: QBO: Shipping from address + of the Invoice.[br]See [a + href="http://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0060_Financial_Management_Services_(v3)/01000_Using_Data_Service_Entities#Addresses"]Addresses[/a] + Description: QBW: Identifies the address where the goods are shipped + from. For transactions without shipping, it represents the address where the sale took place. + + + + Product: QBW @@ -4983,7 +5009,7 @@ + minOccurs="0"> Product: QBW @@ -4994,7 +5020,7 @@ + minOccurs="0"> Product: QBW @@ -5030,7 +5056,7 @@ + minOccurs="0"> Product: QBW @@ -5067,7 +5093,7 @@ + minOccurs="0"> Product: QBW @@ -5087,7 +5113,7 @@ + minOccurs="0"> Product: QBW @@ -5098,7 +5124,7 @@ + minOccurs="0"> Product: QBO @@ -5127,7 +5153,7 @@ + minOccurs="0"> Product: ALL @@ -5142,7 +5168,7 @@ + minOccurs="0"> Product: QBO @@ -5154,7 +5180,7 @@ + minOccurs="0"> Product: QBW @@ -5165,7 +5191,7 @@ + minOccurs="0"> Product: ALL @@ -5176,7 +5202,7 @@ + minOccurs="0"> Product: ALL @@ -5187,7 +5213,7 @@ + minOccurs="0"> Product: QBO @@ -5209,7 +5235,7 @@ + minOccurs="0"> Product: QBO @@ -5230,7 +5256,7 @@ + minOccurs="0"> Product: QBO @@ -5251,7 +5277,7 @@ + minOccurs="0"> Product: QBW @@ -5279,7 +5305,7 @@ + minOccurs="0"> Product: QBO @@ -5297,7 +5323,7 @@ + minOccurs="0"> Product: ALL @@ -5308,7 +5334,7 @@ + minOccurs="0"> Product: ALL @@ -5319,7 +5345,7 @@ + minOccurs="0"> Product: QBO @@ -5331,7 +5357,7 @@ + minOccurs="0"> Product: QBO @@ -5344,7 +5370,7 @@ + minOccurs="0"> Product: ALL @@ -5355,7 +5381,7 @@ + minOccurs="0"> Product: ALL @@ -5367,7 +5393,7 @@ + minOccurs="0"> Product: ALL @@ -5382,7 +5408,7 @@ + minOccurs="0"> Product: QBO @@ -5391,7 +5417,7 @@ + minOccurs="0"> Product: QBO @@ -5402,7 +5428,7 @@ + minOccurs="0"> Product: QBO @@ -5413,7 +5439,7 @@ + minOccurs="0"> Product: QBO @@ -5425,7 +5451,7 @@ + minOccurs="0"> Product: ALL @@ -5481,7 +5507,7 @@ + maxOccurs="1"> Product: QBO @@ -5491,7 +5517,7 @@ + minOccurs="0"> Product: QBO @@ -5501,7 +5527,7 @@ + minOccurs="0"> Product: QBO @@ -5512,7 +5538,7 @@ + minOccurs="0"> Product: QBO @@ -5523,7 +5549,7 @@ + minOccurs="0"> Product: QBO @@ -5534,7 +5560,7 @@ + minOccurs="0"> Product: QBO @@ -5544,7 +5570,7 @@ + minOccurs="0"> Product: QBO @@ -5582,7 +5608,7 @@ + minOccurs="0" maxOccurs="1"> Product: ALL @@ -5608,6 +5634,15 @@ + + + + Product: QBO + Description: QBO: Message displayed to customer about payment Instructions. eg: bank account info. + + + + @@ -5658,7 +5693,7 @@ + minOccurs="0" maxOccurs="1"> Extension entity for SalesReceipt @@ -5686,7 +5721,7 @@ + minOccurs="0"> Date by which estimate must be accepted before invalidation. @@ -5695,7 +5730,7 @@ + minOccurs="0"> Name of customer who accepted the estimate. QBO @@ -5704,7 +5739,7 @@ + minOccurs="0"> Date estimate was accepted. QBO only field. @@ -5712,7 +5747,7 @@ + minOccurs="0" maxOccurs="1"> Extension entity for Estimate @@ -5734,7 +5769,7 @@ + nillable="false" minOccurs="0"> Product: QBO @@ -5744,7 +5779,7 @@ + minOccurs="0"> Product: QBO @@ -5754,7 +5789,7 @@ + minOccurs="0"> Product: QBO @@ -5764,7 +5799,7 @@ + minOccurs="0"> Product: QBO @@ -5774,7 +5809,7 @@ + minOccurs="0"> Product: QBO @@ -5784,7 +5819,7 @@ + minOccurs="0"> Product: QBO @@ -5795,7 +5830,7 @@ + minOccurs="0"> Product: QBO @@ -5806,7 +5841,7 @@ + minOccurs="0"> Product: QBO @@ -5817,7 +5852,7 @@ + minOccurs="0"> Product: QBO @@ -5877,7 +5912,7 @@ + maxOccurs="unbounded"> Product: ALL @@ -5888,7 +5923,7 @@ + minOccurs="0" maxOccurs="1"> Product: ALL @@ -5928,7 +5963,7 @@ + minOccurs="0"> Product: QBW @@ -5979,12 +6014,12 @@ which depends on the type of the line. It can represent the received amount or received quantity based on the line type detail. ReadOnly field for Purchase Order. - Applies to existing and new entities. + Applies to existing and new entities. + maxOccurs="unbounded"> Product: ALL @@ -5995,7 +6030,7 @@ + minOccurs="0" maxOccurs="1"> Product: ALL @@ -6143,7 +6178,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: QBW @@ -6163,6 +6198,28 @@ + + + + Product: ALL + Description: A Tag applied to a transaction + + + + + + + + + Product: ALL + Description: The name of the tag. + + + + + + + @@ -6173,7 +6230,7 @@ + minOccurs="0"> Product: ALL @@ -6184,7 +6241,7 @@ + minOccurs="0"> Product: ALL @@ -6194,7 +6251,7 @@ + minOccurs="0"> Product: ALL @@ -6205,7 +6262,7 @@ + minOccurs="0"> Product: ALL @@ -6240,7 +6297,7 @@ + minOccurs="0"> Product: ALL @@ -6250,7 +6307,7 @@ + minOccurs="0"> Product: ALL @@ -6260,7 +6317,7 @@ + minOccurs="0" maxOccurs="1"> Product: ALL @@ -6292,7 +6349,7 @@ + minOccurs="0"> Product: QBO @@ -6309,7 +6366,7 @@ + minOccurs="0"> Product: ALL @@ -6330,7 +6387,7 @@ + minOccurs="0"> Product: QBO @@ -6340,7 +6397,7 @@ + minOccurs="0"> Product: QBO @@ -6350,7 +6407,7 @@ + minOccurs="0"> Product: QBO @@ -6391,7 +6448,7 @@ + minOccurs="0"> Specifies whether the asset is new or used. This will aid in calculating depreciation.[br /] @@ -6403,7 +6460,7 @@ + minOccurs="0"> User entered purchase description for the fixed asset which may include user entered information to further @@ -6411,7 +6468,7 @@ + minOccurs="0"> Specifies the date the asset was purchased or acquired.[br /] @@ -6422,7 +6479,7 @@ + minOccurs="0"> Specifies the asset's purchase price. @@ -6435,7 +6492,7 @@ + minOccurs="0"> Indicates the Fixed Asset account that tracks the current value of the asset. If the same account is used for @@ -6460,14 +6517,14 @@ + minOccurs="0"> Specifies the amount for which the asset was sold. + minOccurs="0"> Additional expenses incurred during the sale of the asset. @@ -6486,21 +6543,21 @@ + minOccurs="0"> The serial number of the asset. For a vehicle, it can be the VIN. + minOccurs="0"> The date the warranty for the asset expires. + minOccurs="0"> Any description of the asset, like maker, brand, and so on. @@ -6520,7 +6577,7 @@ + minOccurs="0"> QBW only: The total cost of the fixed asset. This can include the cost of improvements or repairs. This @@ -6529,7 +6586,7 @@ + minOccurs="0"> QBW only: the total amount of depreciation expense since the fixed asset was acquired as of the end of the @@ -6538,7 +6595,7 @@ + minOccurs="0"> QBW only: the asset's cost or basis less accumulated depreciation as of the end of the year. Maintained @@ -6546,7 +6603,7 @@ + minOccurs="0"> Internal use only: extension place holder for FixedAsset @@ -6576,7 +6633,7 @@ + minOccurs="0"> Product: ALL @@ -6596,7 +6653,7 @@ + minOccurs="0"> Product: ALL @@ -6607,7 +6664,7 @@ + minOccurs="0"> Product: ALL @@ -6645,7 +6702,7 @@ + minOccurs="0"> Product: ALL @@ -6656,7 +6713,7 @@ + minOccurs="0"> Product: ALL @@ -6666,7 +6723,7 @@ + minOccurs="0"> Product: ALL @@ -6676,7 +6733,7 @@ + minOccurs="0"> Product: ALL @@ -6708,7 +6765,7 @@ + minOccurs="0"> Product: QBO @@ -6718,7 +6775,7 @@ + minOccurs="0"> Product: QBO @@ -6727,7 +6784,7 @@ + minOccurs="0"> Product: QBO @@ -6736,7 +6793,7 @@ + minOccurs="0"> Product: ALL @@ -6761,7 +6818,7 @@ + minOccurs="0"> Product: ALL @@ -6771,7 +6828,7 @@ + minOccurs="0"> Product: ALL @@ -6781,7 +6838,7 @@ + minOccurs="0"> Product: QBO @@ -6791,7 +6848,7 @@ + minOccurs="0"> Product: ALL @@ -6816,7 +6873,7 @@ + minOccurs="0"> Product: ALL @@ -6827,7 +6884,7 @@ + minOccurs="0"> Product: ALL @@ -6848,7 +6905,7 @@ + minOccurs="0"> Product: ALL @@ -6873,7 +6930,7 @@ + minOccurs="0"> Product: ALL @@ -6898,7 +6955,7 @@ + minOccurs="0"> Product: ALL @@ -6945,7 +7002,7 @@ + minOccurs="0"> Product: ALL @@ -6967,14 +7024,14 @@ - - - Product: QBW - Description: True if Taxcode needs to be hidden. Active tax codes can be hidden from the display using this. - Filterable: ALL - - - + + + Product: QBW + Description: True if Taxcode needs to be hidden. Active tax codes can be hidden from the display using this. + Filterable: ALL + + + @@ -6995,7 +7052,7 @@ + minOccurs="0"> Product: ALL @@ -7006,7 +7063,7 @@ + minOccurs="0"> Product: ALL @@ -7017,7 +7074,7 @@ + minOccurs="0"> Product: QBO @@ -7027,7 +7084,7 @@ + minOccurs="0"> Product: ALL @@ -7043,7 +7100,7 @@ + minOccurs="0"> Product: ALL @@ -7052,7 +7109,7 @@ + minOccurs="0"> Product: ALL @@ -7081,7 +7138,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: All @@ -7145,7 +7202,7 @@ + minOccurs="0"> Product: QBW @@ -7167,7 +7224,7 @@ + minOccurs="0"> Product: ALL @@ -7177,7 +7234,7 @@ + minOccurs="0"> Product: ALL @@ -7188,7 +7245,7 @@ + minOccurs="0"> Product: ALL @@ -7198,7 +7255,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: QBO @@ -7208,7 +7265,7 @@ + minOccurs="0"> Product: QBO @@ -7223,7 +7280,7 @@ + minOccurs="0"> Product: QBO @@ -7233,7 +7290,7 @@ + minOccurs="0"> Product: ALL @@ -7263,7 +7320,7 @@ + minOccurs="0"> Product: QBO @@ -7282,7 +7339,7 @@ + minOccurs="0"> Product: ALL @@ -7303,7 +7360,7 @@ + minOccurs="0" maxOccurs="1"> Product: QBW @@ -7342,7 +7399,7 @@ + minOccurs="0"> Product: ALL @@ -7361,7 +7418,7 @@ + minOccurs="0" maxOccurs="1"> Product: QBO @@ -7377,7 +7434,7 @@ + minOccurs="0" maxOccurs="1"> Product: QBO @@ -7387,7 +7444,7 @@ + minOccurs="0" maxOccurs="1"> Product: QBO @@ -7407,7 +7464,7 @@ + minOccurs="0"> Product: ALL @@ -7428,7 +7485,7 @@ + minOccurs="0"> Product: ALL @@ -7438,7 +7495,7 @@ + minOccurs="0"> Product: ALL @@ -7448,7 +7505,7 @@ + minOccurs="0"> Product: ALL @@ -7458,7 +7515,7 @@ + minOccurs="0"> Product: ALL @@ -7486,7 +7543,7 @@ + minOccurs="0"> Product: ALL @@ -7496,7 +7553,7 @@ + minOccurs="0"> Product: QBO @@ -7506,7 +7563,7 @@ + minOccurs="0"> Product: ALL @@ -7536,7 +7593,7 @@ + minOccurs="0"> Product: ALL @@ -7546,7 +7603,7 @@ + minOccurs="0"> Product: ALL @@ -7556,7 +7613,7 @@ + minOccurs="0"> Product: ALL @@ -7584,7 +7641,7 @@ + minOccurs="0"> Product: QBO @@ -7594,7 +7651,7 @@ + minOccurs="0"> Product: QBO @@ -7604,7 +7661,7 @@ + minOccurs="0"> Product: ALL @@ -7625,7 +7682,7 @@ + minOccurs="0"> Product: ALL @@ -7645,7 +7702,7 @@ + minOccurs="0"> Product: ALL @@ -7655,7 +7712,7 @@ + minOccurs="0"> Product: ALL @@ -7665,7 +7722,7 @@ + minOccurs="0"> Product: QBO @@ -7675,7 +7732,7 @@ + minOccurs="0"> Product: QBO @@ -7685,7 +7742,7 @@ + minOccurs="0"> Product: QBO @@ -7704,7 +7761,7 @@ + minOccurs="0"> Product: ALL @@ -7716,7 +7773,7 @@ + minOccurs="0"> Product: QBO @@ -7726,7 +7783,7 @@ + minOccurs="0"> Product: ALL @@ -7785,7 +7842,7 @@ + minOccurs="0"> Product: ALL @@ -7797,7 +7854,7 @@ + minOccurs="0"> Product: ALL @@ -7807,7 +7864,7 @@ + minOccurs="0"> Product: ALL @@ -7865,7 +7922,7 @@ + minOccurs="0"> Product: ALL @@ -7884,7 +7941,7 @@ + minOccurs="0"> Product: ALL @@ -7912,7 +7969,7 @@ + minOccurs="0"> Product: ALL @@ -7956,7 +8013,7 @@ + minOccurs="0"> Product: ALL @@ -7966,7 +8023,7 @@ + minOccurs="0"> Product: ALL @@ -7976,7 +8033,7 @@ + minOccurs="0"> Product: ALL @@ -7990,7 +8047,7 @@ + minOccurs="0"> Product: ALL @@ -8003,7 +8060,7 @@ + minOccurs="0"> Product: ALL @@ -8015,7 +8072,7 @@ + minOccurs="0"> Product: ALL @@ -8037,7 +8094,7 @@ + minOccurs="0"> Product: ALL @@ -8049,7 +8106,7 @@ + minOccurs="0"> Product: ALL @@ -8062,7 +8119,7 @@ + minOccurs="0"> Product: QBO @@ -8072,6 +8129,17 @@ + + + + Product: QBO + Description: Internal use only: Account purpose indicates the mapping of the + chart-of-account to a purpose (eg: DEFAULT_QB_CASH_CHECKING_ACCOUNT). A chart-of-account + can have multiple account purpose mapping. + + + @@ -8097,7 +8165,7 @@ + minOccurs="0"> Product: QBO @@ -8120,7 +8188,7 @@ + minOccurs="0"> Product: ALL @@ -8130,7 +8198,7 @@ + minOccurs="0"> Product: ALL @@ -8141,7 +8209,7 @@ + minOccurs="0"> Product: ALL @@ -8153,7 +8221,7 @@ + minOccurs="0"> Product: ALL @@ -8165,7 +8233,7 @@ + minOccurs="0"> Product: ALL @@ -8175,7 +8243,7 @@ + minOccurs="0"> Product: ALL @@ -8185,7 +8253,7 @@ + minOccurs="0"> Product: QBW @@ -8197,7 +8265,7 @@ + minOccurs="0"> Product: ALL @@ -8224,7 +8292,7 @@ + minOccurs="0"> Product: QBO @@ -8235,7 +8303,7 @@ + type="IntuitAnyType"> Product: ALL @@ -8261,7 +8329,7 @@ + minOccurs="0"> Product: ALL @@ -8281,7 +8349,7 @@ + minOccurs="0" /> @@ -8291,7 +8359,7 @@ + minOccurs="0" /> If false or null it represents a CreditCard @@ -8308,9 +8376,9 @@ + minOccurs="0" /> + minOccurs="0"> Address to which the payment should be sent. @@ -8325,7 +8393,7 @@ + minOccurs="0"> ReadToPrint is a flag indicating if the Check is ready for printing @@ -8409,9 +8477,9 @@ + minOccurs="0" /> + minOccurs="0" /> @@ -8423,7 +8491,7 @@ + minOccurs="0"> Specifies the account reference. Check should have bank account, CreditCard should specify credit card account @@ -8431,7 +8499,7 @@ + minOccurs="0"> Product: ALL @@ -8441,7 +8509,7 @@ + minOccurs="0"> Product: ALL @@ -8453,7 +8521,7 @@ + minOccurs="0"> Required element. No defaults. Expense Type can be Cash, Check or CreditCard @@ -8465,12 +8533,12 @@ + minOccurs="0" /> + minOccurs="0" /> + minOccurs="0"> Specifies the party to whom a expense is associated with. Can be Customer, Vendor, Employee (or OtherName @@ -8488,7 +8556,7 @@ + minOccurs="0"> Address to which the payment should be sent.Output only. @@ -8528,7 +8596,7 @@ + minOccurs="0"> PrintStatus if to be printed or already printed information @@ -8536,7 +8604,7 @@ + minOccurs="0"> Product: QBO @@ -8547,7 +8615,7 @@ + minOccurs="0"> Internal use only: extension place holder for Purchase. @@ -8583,7 +8651,7 @@ + minOccurs="0"> Product: ALL @@ -8593,7 +8661,7 @@ + minOccurs="0"> Specifies which AP account the bill will be credited to. Many/most small businesses have a single AP @@ -8622,7 +8690,7 @@ + minOccurs="0"> Product: QBW @@ -8632,7 +8700,7 @@ + minOccurs="0"> Product: QBW @@ -8649,7 +8717,7 @@ + minOccurs="0"> Product: QBO @@ -8673,7 +8741,7 @@ + minOccurs="0"> Product: QBW @@ -8682,7 +8750,7 @@ + minOccurs="0"> SalesTerm Reference for the bill @@ -8696,7 +8764,7 @@ + minOccurs="0"> Address to which the payment should be sent. [b]QuickBooks Notes[/b][br /] @@ -8705,12 +8773,20 @@ + minOccurs="0"> Address to which the vendor shipped or will ship any goods associated with the purchase. + + + + Product: QBO + Description: Vendor Mailing Address + + + @@ -8725,7 +8801,7 @@ + minOccurs="0"> Product: ALL @@ -8741,7 +8817,7 @@ + type="IntuitAnyType"> Internal use only: extension place holder for Bill. @@ -8777,8 +8853,16 @@ + + + + Product: QBO + Description: Vendor Mailing Address + + + + minOccurs="0"> Internal use only: extension place holder for Bill extensible element to qualify account. @@ -8829,14 +8913,14 @@ + minOccurs="0"> Represents Customer (or Job)Reference + minOccurs="0"> Identifies the party or location that the payment is to be remitted to or sent to. @@ -8847,7 +8931,7 @@ + minOccurs="0"> ARAccountReferenceGroup Identifies the AR Account to be used for this Credit Memo. @@ -8859,7 +8943,7 @@ + minOccurs="0" /> Date when the Charge is to be paid. @@ -8884,7 +8968,7 @@ + minOccurs="0"> Internal use only: extension place holder for StatementCharge @@ -8922,14 +9006,14 @@ + minOccurs="0"> Reference to parent class entity + minOccurs="0"> Product: ALL @@ -8951,7 +9035,7 @@ + minOccurs="0"> Internal use only: extension place holder for Class extensible element @@ -8986,7 +9070,7 @@ + minOccurs="0"> The description of the Journal Code @@ -8999,7 +9083,7 @@ + minOccurs="0"> Internal use only: extension place holder for Journal Code extensible element @@ -9020,7 +9104,7 @@ + minOccurs="0"> Product: ALL @@ -9031,7 +9115,7 @@ + minOccurs="0"> Identifies the party or location that the payment is to be remitted to or sent to. @@ -9042,7 +9126,7 @@ + minOccurs="0"> ARAccountReferenceGroup Identifies the AR Account to be used for this Payment. @@ -9054,7 +9138,7 @@ + minOccurs="0"> Optional asset account specification to designate the account the payment money needs to be deposited @@ -9066,7 +9150,7 @@ + minOccurs="0"> Product: ALL @@ -9076,7 +9160,7 @@ + minOccurs="0"> Product: ALL @@ -9088,7 +9172,7 @@ + minOccurs="0"> Product: ALL @@ -9101,9 +9185,9 @@ + minOccurs="0" /> + minOccurs="0" /> @@ -9121,7 +9205,7 @@ + minOccurs="0"> Indicates the amount that has not been applied to pay amounts owed for sales transactions. @@ -9132,7 +9216,7 @@ + minOccurs="0"> Indicates that the payment should be processed by merchant account service. Valid for QBO companies with credit @@ -9142,7 +9226,7 @@ + minOccurs="0"> Internal use only: extension place holder for Payment @@ -9188,7 +9272,7 @@ + minOccurs="0"> Internal use only: extension place holder for PaymentMethod @@ -9245,7 +9329,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: ALL @@ -9276,7 +9360,7 @@ + minOccurs="0"> Specifies the Department is a SubDepartment or Not. True if subdepartment, false or null if it is top-level @@ -9285,14 +9369,14 @@ + minOccurs="0"> Reference to parent class entity + minOccurs="0"> Product: ALL @@ -9312,7 +9396,7 @@ + minOccurs="0"> Internal use only: extension place holder for DepartmentEx extensible element @@ -9337,7 +9421,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: ALL @@ -9438,7 +9522,7 @@ + minOccurs="0"> Product: QBW @@ -9476,7 +9560,7 @@ + minOccurs="0"> Product: ALL @@ -9496,7 +9580,7 @@ + minOccurs="0"> Product: ALL @@ -9519,7 +9603,7 @@ + minOccurs="0"> Product: ALL @@ -9530,7 +9614,7 @@ + minOccurs="0" maxOccurs="1"> Product: ALL @@ -9540,7 +9624,7 @@ + minOccurs="0"> Product: ALL @@ -9552,7 +9636,7 @@ + minOccurs="0"> Product: ALL @@ -9578,7 +9662,7 @@ + minOccurs="0"> Product: ALL @@ -9588,7 +9672,7 @@ + minOccurs="0"> Product: ALL @@ -9598,7 +9682,7 @@ + minOccurs="0"> Product: ALL @@ -9611,7 +9695,7 @@ + minOccurs="0"> Product: ALL @@ -9621,7 +9705,7 @@ + minOccurs="0"> Product: ALL @@ -9632,7 +9716,7 @@ + minOccurs="0"> Product: ALL @@ -9642,7 +9726,7 @@ + minOccurs="0"> Product: ALL @@ -9659,7 +9743,7 @@ + minOccurs="0"> Product: ALL @@ -9671,7 +9755,7 @@ + minOccurs="0"> Product: ALL @@ -9686,7 +9770,7 @@ + minOccurs="0"> Product: ALL @@ -9705,7 +9789,7 @@ + minOccurs="0"> Product: QBO @@ -9715,7 +9799,7 @@ + minOccurs="0"> Product: ALL @@ -9726,7 +9810,7 @@ + minOccurs="0"> Product: ALL @@ -9737,7 +9821,7 @@ + minOccurs="0"> Product: ALL @@ -9747,7 +9831,7 @@ + minOccurs="0"> Product: ALL @@ -9760,7 +9844,7 @@ + minOccurs="0"> Product: ALL @@ -9772,7 +9856,7 @@ + minOccurs="0"> Product: ALL @@ -9784,7 +9868,7 @@ + minOccurs="0"> Product: ALL @@ -9795,7 +9879,7 @@ + minOccurs="0"> Product: ALL @@ -9806,7 +9890,7 @@ + minOccurs="0"> Product: ALL @@ -9821,7 +9905,7 @@ + minOccurs="0"> Product: ALL @@ -9834,7 +9918,7 @@ + minOccurs="0"> Product: QBW @@ -9845,7 +9929,7 @@ + minOccurs="0"> Product: ALL @@ -9858,7 +9942,7 @@ + minOccurs="0"> Product: ALL @@ -9868,7 +9952,7 @@ + minOccurs="0"> Product: ALL @@ -9878,7 +9962,7 @@ + minOccurs="0"> Product: ALL @@ -9889,7 +9973,7 @@ + minOccurs="0"> Product: QBO @@ -9899,7 +9983,7 @@ + minOccurs="0"> Product: QBO @@ -9909,7 +9993,7 @@ + minOccurs="0"> Product: QBO @@ -9919,7 +10003,7 @@ + minOccurs="0"> Product: QBO @@ -9931,7 +10015,7 @@ + minOccurs="0"> Internal use only: extension place holder for Item @@ -10035,7 +10119,7 @@ + minOccurs="0"> Product: ALL @@ -10065,7 +10149,7 @@ + minOccurs="0"> Product: ALL @@ -10080,7 +10164,7 @@ + minOccurs="0"> Product: ALL @@ -10095,7 +10179,7 @@ + minOccurs="0"> Product: ALL @@ -10108,7 +10192,7 @@ + minOccurs="0"> Product: ALL @@ -10123,7 +10207,7 @@ + minOccurs="0"> Product: ALL @@ -10139,11 +10223,11 @@ + minOccurs="0" /> + minOccurs="0" /> + minOccurs="0"> [b]QuickBooks Notes[/b][br /] @@ -10153,14 +10237,14 @@ + minOccurs="0"> Address to which the payment should be sent. + minOccurs="0"> Internal use only: extension place holder for BillPaymentCheck. @@ -10171,11 +10255,11 @@ + minOccurs="0" /> + minOccurs="0" /> + minOccurs="0"> Internal use only: extension place holder for BillPayTypeCreditCard @@ -10193,7 +10277,7 @@ + minOccurs="0"> Identifies the party or organization that originated the purchase of the goods, services or BillPayment. @@ -10204,8 +10288,16 @@ + + + + Product: QBO + Description: Vendor Mailing Address + + + + minOccurs="0"> Optional AP account specification for bill payment transactions. Most small businesses have a single AP @@ -10219,7 +10311,7 @@ + minOccurs="0"> Filterable: QBW @@ -10228,9 +10320,9 @@ + minOccurs="0" /> + minOccurs="0" /> @@ -10246,7 +10338,7 @@ + minOccurs="0"> Internal use only: extension place holder for BillPay @@ -10259,7 +10351,7 @@ + minOccurs="0"> AccountReferenceGroup Identifies the Asset Account (bank account) to be used for this Cash back. @@ -10283,7 +10375,7 @@ + minOccurs="0"> DepositToAccountReferenceGroup Identifies the Asset Account (bank account) to be used for this Deposit. @@ -10294,9 +10386,9 @@ + minOccurs="0" /> + minOccurs="0"> Product: QBO @@ -10316,7 +10408,7 @@ + minOccurs="0"> Product: ALL @@ -10330,7 +10422,7 @@ + minOccurs="0"> Internal use only: extension place holder for Deposit @@ -10351,14 +10443,14 @@ + minOccurs="0"> Must be a Balance Sheet account. + minOccurs="0"> Must be a Balance Sheet account. @@ -10371,7 +10463,7 @@ + minOccurs="0" /> Internal use only: extension place holder for @@ -10392,7 +10484,7 @@ + minOccurs="0"> Represents the TaxCode Reference with respect to the purchase[br /] @@ -10400,9 +10492,9 @@ + minOccurs="0" /> + minOccurs="0"> Information about the Customer and actual Job or Project the expense must be reimbursed for. @@ -10410,7 +10502,7 @@ + minOccurs="0" /> The nominal date by which the bill must be @@ -10419,14 +10511,14 @@ + minOccurs="0"> The date when the delivery of the product is expected. + minOccurs="0"> Address to which the payment should be sent. [b]QuickBooks Notes[/b][br /] @@ -10435,7 +10527,7 @@ + minOccurs="0"> Product: QBO @@ -10445,24 +10537,24 @@ + minOccurs="0"> DropShip to Entity Reference + minOccurs="0" /> + minOccurs="0"> Address to which the vendor shipped or will ship any goods associated with the purchase. + minOccurs="0" /> "Free On Board", specifies the terms between @@ -10475,7 +10567,7 @@ + minOccurs="0"> The email address to which this purchase order is/was sent. @@ -10486,13 +10578,13 @@ + minOccurs="0" /> + minOccurs="0" /> + minOccurs="0" /> + minOccurs="0"> The entire transaction, or individual items are manually closed, i.e. they may not be received. @@ -10500,9 +10592,9 @@ + minOccurs="0" /> + minOccurs="0"> Internal use only: extension place holder for PurchaseOrder @@ -10539,7 +10631,7 @@ + minOccurs="0"> Product: QBW @@ -10550,7 +10642,7 @@ + minOccurs="0"> Internal use only: extension place holder for SalesOrder @@ -10570,7 +10662,7 @@ + minOccurs="0"> Indicates the total credit amount still available to apply towards the payment. @@ -10581,16 +10673,16 @@ - - - Product: ALL - Description: A credit memo needs to have an invoice number to save successfully - Applicable for IN Region. - - + + + Product: ALL + Description: A credit memo needs to have an invoice number to save successfully + Applicable for IN Region. + + + minOccurs="0"> Internal use only: extension place holder for CreditMemo @@ -10610,7 +10702,7 @@ + minOccurs="0"> Indicates the total credit amount still available to apply towards the payment. @@ -10621,7 +10713,7 @@ + minOccurs="0"> Internal use only: extension place holder for Refund @@ -10631,6 +10723,46 @@ + + + Financial transaction representing recording of a Credit Card balance payment. + + + + + + + + Credit Card account for which a payment is being entered. + Must be a Credit Card account. + + + + + + Bank account used to pay the Credit Card balance. + Must be a Bank account. + + + + + + Total amount of the payment. Denominated in the currency of the credit card account. + + + + + + Internal use only: extension place holder for + CreditCardPayment + + + + + + Describes the properties of currencies defined in @@ -10692,7 +10824,7 @@ + minOccurs="0"> Specifies how many decimal places can be shown. Usually there will be 2, or 0 for currencies without "cents". @@ -10702,7 +10834,7 @@ + minOccurs="0"> Used for display purpose, can be a comma or a period. @@ -10711,14 +10843,14 @@ + minOccurs="0"> Used for display purpose to specify where to show the Currency Symbol. + minOccurs="0"> [b][i]QuickBooks Notes[/i][/b] [br /] @@ -10730,10 +10862,10 @@ + minOccurs="0" /> + minOccurs="0"> Internal use only: extension place holder for Currency @@ -10784,7 +10916,7 @@ + minOccurs="0"> Internal use only: extension place holder for Company Currency @@ -10803,7 +10935,7 @@ + minOccurs="0"> Product: QBO @@ -10816,7 +10948,7 @@ + minOccurs="0"> Product: QBO @@ -10847,7 +10979,7 @@ + minOccurs="0"> Internal use only: extension place holder for Exchange Rate @@ -10872,7 +11004,7 @@ + minOccurs="0"> Product: QBW @@ -10904,7 +11036,7 @@ + minOccurs="0"> Product: QBW @@ -10917,7 +11049,7 @@ + minOccurs="0"> Product: QBW @@ -10930,7 +11062,7 @@ + minOccurs="0"> Product: QBW @@ -10954,7 +11086,7 @@ + minOccurs="0"> Product: QBW @@ -11012,7 +11144,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: QBW @@ -11023,7 +11155,7 @@ + minOccurs="0"> Product: QBW @@ -11033,7 +11165,7 @@ + minOccurs="0"> Internal use only: extension place holder for PriceLevel @@ -11056,10 +11188,10 @@ + minOccurs="0" /> + minOccurs="0"> Product: QBW @@ -11069,7 +11201,7 @@ + minOccurs="0"> Product: QBW @@ -11082,7 +11214,7 @@ + minOccurs="0"> Internal use only: extension place holder for PriceLevelPerItem @@ -11119,7 +11251,7 @@ + minOccurs="0"> Internal use only: extension place holder for CustomerMsg @@ -11139,7 +11271,7 @@ + minOccurs="0"> Indicates that the Journal Entry is after-the-fact entry to make changes to specific accounts. @@ -11147,7 +11279,7 @@ + minOccurs="0"> Valid only if the company file is set up to use Multi-Currency feature. @@ -11164,7 +11296,7 @@ + minOccurs="0"> Valid only if the company file is set up to use Multi-Currency feature. @@ -11194,7 +11326,7 @@ + minOccurs="0"> Product: ALL @@ -11208,7 +11340,7 @@ + minOccurs="0"> Internal use only: extension place holder for JournalEntry @@ -11240,7 +11372,7 @@ + minOccurs="0" /> The name of the person who performed the work. @@ -11252,21 +11384,21 @@ + minOccurs="0"> Specifies the employee whose time is being recorded. + minOccurs="0"> Specifies the vendor whose time is being recorded. + minOccurs="0"> Specifies the Payee whose time is being recorded. @@ -11274,21 +11406,21 @@ + minOccurs="0"> Represents Customer (or Job)Reference + minOccurs="0"> Represents Department Reference. + minOccurs="0"> [br /] @@ -11297,9 +11429,9 @@ + minOccurs="0" /> + minOccurs="0"> The payroll item determines how much the employee should be paid for doing the work specified by the Item @@ -11311,7 +11443,7 @@ + minOccurs="0"> Billable status of the time recorded @@ -11324,7 +11456,7 @@ + minOccurs="0"> Hourly bill rate of the employee or vendor for this time activity. @@ -11364,7 +11496,7 @@ + minOccurs="0"> Time work started. [b]QuickBooks Notes[/b][br /] @@ -11381,14 +11513,14 @@ + minOccurs="0"> Description of work completed during time activity. + minOccurs="0"> Internal use only: extension place holder for TimeActivity. @@ -11433,7 +11565,7 @@ + minOccurs="0"> Product: QBW @@ -11443,7 +11575,7 @@ + minOccurs="0"> Product: QBW @@ -11461,7 +11593,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: QBW @@ -11470,7 +11602,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: QBW @@ -11479,7 +11611,7 @@ + minOccurs="0"> Internal use only: extension place holder for InventorySite @@ -11519,7 +11651,7 @@ + minOccurs="0"> Internal use only: extension place holder for ShipMethod @@ -11597,7 +11729,7 @@ + minOccurs="0"> Product: QBW @@ -11607,7 +11739,7 @@ + minOccurs="0"> Internal use only: extension place holder for Task @@ -11664,7 +11796,7 @@ + minOccurs="0"> Product: ALL @@ -11674,7 +11806,7 @@ + minOccurs="0"> Product: QBO @@ -11711,7 +11843,7 @@ + maxOccurs="unbounded"> Any other properties not covered in base is covered as name value pair, for detailed explanation look at the @@ -11719,7 +11851,7 @@ + minOccurs="0"> Internal use only: extension place holder for user alert @@ -11732,7 +11864,7 @@ + minOccurs="0"> Product: ALL @@ -11742,7 +11874,7 @@ + minOccurs="0"> Product: ALL @@ -11756,14 +11888,14 @@ + minOccurs="0" /> + minOccurs="0" /> + minOccurs="0" /> + minOccurs="0"> Product: QBW @@ -11775,7 +11907,7 @@ + minOccurs="0"> Product: QBW @@ -11786,7 +11918,7 @@ + minOccurs="0"> Product: QBW @@ -11795,7 +11927,7 @@ + minOccurs="0"> Product: QBW @@ -11806,7 +11938,7 @@ + minOccurs="0"> Product: QBW @@ -11821,7 +11953,7 @@ + minOccurs="0"> Product:QBW @@ -11837,7 +11969,7 @@ + minOccurs="0"> Product:QBW @@ -11845,7 +11977,7 @@ + minOccurs="0"> Product:QBW @@ -11857,7 +11989,7 @@ + minOccurs="0"> Product:QBW @@ -11868,7 +12000,7 @@ + minOccurs="0"> Product:QBW @@ -11887,25 +12019,25 @@ + minOccurs="0"> QBW: Only QBW supported + minOccurs="0"> Product:QBO Default ARAccount + minOccurs="0"> Product:QBO Default APAccount + minOccurs="0"> Product:QBW @@ -11914,7 +12046,7 @@ + minOccurs="0"> Product:QBO @@ -11924,7 +12056,7 @@ + minOccurs="0"> Product: QBO @@ -11933,7 +12065,7 @@ + minOccurs="0"> Product:All @@ -11942,7 +12074,7 @@ + minOccurs="0"> Product:QBO @@ -11952,14 +12084,14 @@ + minOccurs="0"> QBW: ONLY. Enable auto journal entry number + minOccurs="0"> Product:All @@ -11968,7 +12100,7 @@ + minOccurs="0"> Product:All @@ -11991,7 +12123,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: QBW @@ -12000,7 +12132,7 @@ + minOccurs="0"> Product:QBO @@ -12017,7 +12149,7 @@ + minOccurs="0"> QBW: ONLY. MLI available @@ -12028,55 +12160,55 @@ + minOccurs="0"> QBW: Only QBW supported + minOccurs="0"> QBW: only + type="xs:boolean" minOccurs="0"> QBW: only + type="xs:boolean" minOccurs="0"> QBW: only + type="xs:boolean" minOccurs="0"> QBW: only + minOccurs="0"> QBW: only + minOccurs="0"> QBW: ONLY. + minOccurs="0"> QBW: only + minOccurs="0"> Product: QBW @@ -12086,7 +12218,7 @@ + minOccurs="0"> Product: QBW @@ -12113,7 +12245,7 @@ + minOccurs="0"> Product:QBO @@ -12123,7 +12255,7 @@ + minOccurs="0"> Product:QBW @@ -12132,7 +12264,7 @@ + minOccurs="0"> Product:QBO @@ -12142,7 +12274,7 @@ + minOccurs="0"> Product:QBO @@ -12151,7 +12283,7 @@ + minOccurs="0"> Product:QBW. Possible values are Disabled,SinglePerItem and MultiplePerItem @@ -12165,7 +12297,7 @@ + minOccurs="0"> Product:All @@ -12173,7 +12305,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product:QBO @@ -12182,7 +12314,7 @@ + minOccurs="0"> Product:QBo @@ -12191,7 +12323,7 @@ + minOccurs="0"> Product:QBO @@ -12200,7 +12332,7 @@ + minOccurs="0"> Product:QBO @@ -12209,7 +12341,7 @@ + minOccurs="0"> Product:QBO @@ -12225,7 +12357,7 @@ + minOccurs="0"> Product:QBO @@ -12234,19 +12366,19 @@ + minOccurs="0"> QBO:Enable specifying Discount + minOccurs="0"> QBO:Default Discount account + minOccurs="0"> Product:All @@ -12255,7 +12387,7 @@ + minOccurs="0"> Product:QBO @@ -12264,7 +12396,7 @@ + minOccurs="0"> Product:QBO @@ -12273,7 +12405,7 @@ + minOccurs="0"> Product:QBO @@ -12283,7 +12415,7 @@ + minOccurs="0"> Product:QBO @@ -12292,7 +12424,7 @@ + minOccurs="0"> Product:QBO @@ -12302,7 +12434,7 @@ + minOccurs="0"> Product:QBO @@ -12311,7 +12443,7 @@ + minOccurs="0"> Product:QBO @@ -12320,7 +12452,7 @@ + minOccurs="0"> Product:QBO @@ -12329,7 +12461,7 @@ + minOccurs="0"> Product:QBO @@ -12338,7 +12470,7 @@ + minOccurs="0"> Product:QBO @@ -12348,7 +12480,7 @@ + minOccurs="0"> Product:QBO @@ -12357,7 +12489,7 @@ + minOccurs="0"> Product:QBO Default Delivery Method of Invoice and other sales forms - Print, Email are normal options @@ -12365,7 +12497,7 @@ + minOccurs="0"> Product:ALL @@ -12374,7 +12506,7 @@ + minOccurs="0"> Product:All @@ -12383,7 +12515,7 @@ + minOccurs="0"> Product:QBW @@ -12392,7 +12524,7 @@ + minOccurs="0"> Product:QBW @@ -12404,7 +12536,7 @@ + minOccurs="0"> Product:QBW @@ -12414,7 +12546,7 @@ + minOccurs="0"> Product:All @@ -12422,14 +12554,14 @@ + minOccurs="0"> QBW: used by QB desktop, not used by QBO + minOccurs="0"> QBW: used by QB desktop, not used by QBO @@ -12442,7 +12574,7 @@ + minOccurs="0"> Product:QBO @@ -12459,7 +12591,7 @@ + minOccurs="0"> Product:All @@ -12468,7 +12600,7 @@ + minOccurs="0"> Product:All @@ -12477,7 +12609,7 @@ + minOccurs="0"> Product:All @@ -12486,7 +12618,7 @@ + minOccurs="0"> Product:All @@ -12495,7 +12627,7 @@ + minOccurs="0"> Product:All @@ -12505,7 +12637,7 @@ + minOccurs="0"> Product:All @@ -12515,7 +12647,7 @@ + minOccurs="0"> Product:All @@ -12533,7 +12665,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product:QBW @@ -12542,7 +12674,7 @@ + minOccurs="0"> Product:All @@ -12551,7 +12683,7 @@ + minOccurs="0"> Product:QBO @@ -12559,7 +12691,7 @@ + minOccurs="0"> Product:QBW @@ -12567,7 +12699,7 @@ + minOccurs="0"> Product:QBW @@ -12575,7 +12707,7 @@ + minOccurs="0"> Cloud Max Length: 4000 @@ -12594,7 +12726,7 @@ + minOccurs="0"> Product:QBO @@ -12603,14 +12735,14 @@ + minOccurs="0"> Product:QBO Default TimeItem Id + minOccurs="0"> Product:QBO @@ -12619,7 +12751,7 @@ + minOccurs="0"> Product:QBO @@ -12628,7 +12760,7 @@ + minOccurs="0"> Product:All @@ -12637,7 +12769,7 @@ + minOccurs="0"> Product:QBW @@ -12647,7 +12779,7 @@ + minOccurs="0"> Product:QBW @@ -12657,7 +12789,7 @@ + minOccurs="0"> Product:QBW @@ -12674,7 +12806,7 @@ + minOccurs="0" type="NameValue"> Specifies Preferences classified as email messages are classified as Name-Value pair @@ -12691,7 +12823,7 @@ + type="EmailMessage"> Product:QBO @@ -12701,7 +12833,7 @@ + type="EmailMessage"> Product:QBO @@ -12711,7 +12843,7 @@ + type="EmailMessage"> Product:QBO @@ -12728,7 +12860,7 @@ + minOccurs="0" type="NameValue"> Specifies Preferences classified as email messages are classified as Name-Value pair @@ -12743,7 +12875,7 @@ + minOccurs="0"> Product:All @@ -12752,7 +12884,7 @@ + minOccurs="0"> Product:QBW @@ -12773,7 +12905,7 @@ + minOccurs="0" type="NameValue"> Specifies extension of Preference entity to allow extension of Name-Value pair based extension at the top @@ -12792,52 +12924,52 @@ + minOccurs="0"> Accounting info Preferences + minOccurs="0"> Accounting info Preferences + minOccurs="0"> Product and Service Preferences + minOccurs="0"> Sales Form Preferences + minOccurs="0"> Email messages Preferences + minOccurs="0"> Printable document preferences + minOccurs="0"> Vendor and purchases Preferences + minOccurs="0"> Vendor and purchases Preferences @@ -12849,25 +12981,25 @@ + minOccurs="0"> FinanceCharges Preferences + minOccurs="0"> Currency Preferences + minOccurs="0"> Report Preferences + type="OtherPrefs"> Specifies extension of Preference entity to allow extension of Name-Value pair based extension at the top @@ -12894,7 +13026,7 @@ + minOccurs="1"> A reference to the UOM entity that defines the set of related units from which the specified Unit is used. @@ -12933,7 +13065,7 @@ + minOccurs="0"> [br /] @@ -12942,7 +13074,7 @@ + minOccurs="0" maxOccurs="unbounded" /> @@ -13041,7 +13173,7 @@ + minOccurs="0"> FullPath FileAccess URI of the attachment, output only @@ -13049,7 +13181,7 @@ + minOccurs="0"> Output only. TempDownload URI which can be directly downloaded by clients @@ -13063,7 +13195,7 @@ + minOccurs="0"> ContentType of the attachment @@ -13109,7 +13241,7 @@ + minOccurs="0"> FullPath FileAccess URI of the attachment thumbnail if the attachment file is of a content type with @@ -13118,7 +13250,7 @@ + minOccurs="0"> Output only. Thumbnail TempDownload URI which can be directly downloaded by clients. This is only available if @@ -13127,7 +13259,7 @@ + type="IntuitAnyType"> Specifies extension entity to allow extension @@ -13172,7 +13304,7 @@ + minOccurs="0"> Reference Number of downloaded transaction @@ -13194,7 +13326,7 @@ + minOccurs="0"> Product: ALL @@ -13203,7 +13335,7 @@ + minOccurs="0"> Product: ALL @@ -13213,7 +13345,7 @@ + minOccurs="0"> Product: ALL @@ -13222,7 +13354,7 @@ + minOccurs="0" maxOccurs="unbounded"> Details of OLB transactions @@ -13254,7 +13386,7 @@ + minOccurs="0"> Product: ALL @@ -13263,7 +13395,7 @@ + maxOccurs="unbounded"> List of OLB transactions @@ -13276,7 +13408,7 @@ + minOccurs="0"> Product: ALL @@ -13285,14 +13417,14 @@ + minOccurs="0"> Account details that contains possibly credit card number, last 5 digits + minOccurs="0"> True when the AccountId is linked to an IPP app and false when the AccountId is delinked from the IPP app @@ -13306,7 +13438,7 @@ + minOccurs="0"> The last bank balance. This field is optional. @@ -13321,7 +13453,7 @@ + maxOccurs="unbounded"> Product: ALL @@ -13340,7 +13472,7 @@ + maxOccurs="1"> Product: QBO @@ -13349,7 +13481,7 @@ + maxOccurs="1"> Product: QBO @@ -13358,7 +13490,7 @@ + maxOccurs="1"> Product: QBO @@ -13367,7 +13499,7 @@ + minOccurs="0" maxOccurs="1"> Product: QBO @@ -13376,7 +13508,7 @@ + minOccurs="0" maxOccurs="1"> Product: QBO @@ -13385,7 +13517,7 @@ + maxOccurs="1"> Product: QBO @@ -13394,7 +13526,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: QBO @@ -13414,7 +13546,7 @@ + maxOccurs="1"> Product: QBO @@ -13423,7 +13555,7 @@ + maxOccurs="1"> Product: QBO @@ -13433,7 +13565,7 @@ + minOccurs="0" maxOccurs="1"> Product: QBO @@ -13442,7 +13574,7 @@ + minOccurs="0" maxOccurs="1"> Product: QBO @@ -13451,7 +13583,7 @@ + minOccurs="0" maxOccurs="1"> Product: QBO @@ -13460,7 +13592,7 @@ + minOccurs="0" maxOccurs="1"> Product: QBO @@ -13482,7 +13614,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: QBO @@ -13491,7 +13623,7 @@ + minOccurs="0" maxOccurs="unbounded"> Product: QBO @@ -13517,7 +13649,7 @@ + minOccurs="0" maxOccurs="1"> Product: QBO Description: Customer Reference @@ -13554,14 +13686,14 @@ + minOccurs="0"> Represents Customer (or Job)Reference + minOccurs="0"> Identifies the party or location that the payment is @@ -13572,7 +13704,7 @@ + minOccurs="0"> ARAccountReferenceGroup Identifies the AR Account to @@ -13584,7 +13716,7 @@ + minOccurs="0" /> Date when the Charge is to be paid. @@ -13609,7 +13741,7 @@ + minOccurs="0"> Internal use only: extension place holder for ChargeCredit @@ -13632,7 +13764,7 @@ + minOccurs="0"> Product: QBO @@ -13677,28 +13809,28 @@ + minOccurs="0"> Specifies the payment amount paid to tax agency + minOccurs="0"> Specifies the final Tax Amount due to the Tax Agency for a Filing + minOccurs="0"> Specifies the FRS Amount due to the Tax Agency for a Filing Period. Applicable for UK only. + minOccurs="0"> Specifies the PayGWithheld Amount due to the Tax Agency for a Filing Period. Applicable for AU only. @@ -13706,7 +13838,7 @@ + minOccurs="0"> Product: QBO @@ -13716,22 +13848,22 @@ - - - Product: QBO - Description: Represents the status of the filing of the tax return - - - - - - - Product: QBO - Description: Represents the failure reason of tax return e-filing with agency - - - - + + + Product: QBO + Description: Represents the status of the filing of the tax return + + + + + + + Product: QBO + Description: Represents the failure reason of tax return e-filing with agency + + + + Product: QBO @@ -13739,22 +13871,22 @@ - - - - Product: QBO - Description: Represents the payment method used while e-filing tax return with agency - - - - - - - Product: QBO - Description: Represents the tax return code with the partner - - - + + + + Product: QBO + Description: Represents the payment method used while e-filing tax return with agency + + + + + + + Product: QBO + Description: Represents the tax return code with the partner + + + @@ -13806,15 +13938,69 @@ - - - - - - - - - + + + + + + + + + + + + + + + Product: QBO + Description: Tax Payment/Refund made against filed taxReturn. + + + + + + + + + Product: QBO + Description: The tax payment date + + + + + + + Product: QBO + Description: Account ID from which the payment was made (or refund was moved to) + + + + + + + Product: QBO + Description: Specifies the tax payment amount paid towards a filed tax return. + + + + + + + Product: QBO + Description: Memo/Description added for this payment. + + + + + + + Product: QBO + Description: Indicate if this transaction is a refund. Returns false for the tax payment. + + + + + - + \ No newline at end of file diff --git a/src/XSD/IntuitBaseTypes.xsd b/src/XSD/IntuitBaseTypes.xsd index d5d17562..0ad7797c 100644 --- a/src/XSD/IntuitBaseTypes.xsd +++ b/src/XSD/IntuitBaseTypes.xsd @@ -1834,6 +1834,7 @@ + @@ -1866,8 +1867,10 @@ + + diff --git a/src/XSD/IntuitNamesTypes.xsd b/src/XSD/IntuitNamesTypes.xsd index 54a0a79f..34473c3a 100644 --- a/src/XSD/IntuitNamesTypes.xsd +++ b/src/XSD/IntuitNamesTypes.xsd @@ -1380,6 +1380,14 @@ + + + + Product: QBO + Description: Tax agency config. Identify if the agency is System generated or User created. + + + diff --git a/src/XSD/IntuitRestServiceDef.xsd b/src/XSD/IntuitRestServiceDef.xsd index 8d8c881e..cc919666 100644 --- a/src/XSD/IntuitRestServiceDef.xsd +++ b/src/XSD/IntuitRestServiceDef.xsd @@ -22,6 +22,7 @@ + @@ -33,6 +34,7 @@ + @@ -76,6 +78,7 @@ + From d50400f11c853798df0bf8d5103c111fd8a932ca Mon Sep 17 00:00:00 2001 From: Brinda Sivalingam Date: Mon, 24 Feb 2020 15:45:47 -0800 Subject: [PATCH 2/5] Update the MV and useragent. --- src/Core/CoreConstants.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/CoreConstants.php b/src/Core/CoreConstants.php index 9fad3934..f56caafd 100644 --- a/src/Core/CoreConstants.php +++ b/src/Core/CoreConstants.php @@ -7,7 +7,7 @@ class CoreConstants { //Set the default minor version - const DEFAULT_SDK_MINOR_VERSION = "45"; + const DEFAULT_SDK_MINOR_VERSION = "47"; const DEFAULT_LOGGINGLOCATION = "/tmp/IdsLogs"; const PHP_CLASS_PREFIX = 'IPP'; @@ -298,7 +298,7 @@ class CoreConstants * The Request source header value. * @var string REQUESTSOURCEHEADER */ - const USERAGENT = "V3PHPSDK5.3.4"; + const USERAGENT = "V3PHPSDK5.3.5"; public static function getType($string, $return=1) { From 0b46a4d590733d0f25cbff13f8a6a13dad54b5aa Mon Sep 17 00:00:00 2001 From: Brinda Sivalingam Date: Wed, 4 Mar 2020 17:59:39 -0800 Subject: [PATCH 3/5] Add ability to handle the new entity. --- src/DataService/DataService.php | 25 ++++++- src/Facades/FacadeClassMapper.php | 6 +- src/_Samples/CreditCardPaymentCreate.php | 90 ++++++++++++++++++++++++ src/_Samples/CreditCardPaymentDelete.php | 81 +++++++++++++++++++++ src/_Samples/CreditCardPaymentRead.php | 79 +++++++++++++++++++++ src/_Samples/CreditCardPaymentUpdate.php | 83 ++++++++++++++++++++++ 6 files changed, 360 insertions(+), 4 deletions(-) create mode 100644 src/_Samples/CreditCardPaymentCreate.php create mode 100644 src/_Samples/CreditCardPaymentDelete.php create mode 100644 src/_Samples/CreditCardPaymentRead.php create mode 100644 src/_Samples/CreditCardPaymentUpdate.php diff --git a/src/DataService/DataService.php b/src/DataService/DataService.php index 78245403..6eaeb30a 100644 --- a/src/DataService/DataService.php +++ b/src/DataService/DataService.php @@ -614,6 +614,10 @@ private static function removeNameSpaceFromPhpClassName($phpClassName) */ private function sendRequestParseResponseBodyAndHandleHttpError($entity, $uri, $httpsPostBody, $CALLINGMETHOD, $boundaryString = null, $email = null) { + if ($this->isCreditCardPaymentTxn($entity)) { + $uri = str_replace("creditcardpaymenttxn", "creditcardpayment", $uri); + } + switch ($CALLINGMETHOD) { case DataService::DELETE: case DataService::ADD: @@ -739,6 +743,9 @@ public function FindById($entity, $Id = null) return $this->sendRequestParseResponseBodyAndHandleHttpError($entity, $uri, null, DataService::FINDBYID); }else if(is_string($entity) && isset($Id)){ $uri = implode(CoreConstants::SLASH_CHAR, array('company', $this->serviceContext->realmId, strtolower($entity), $Id)); + if ($this->isCreditCardPaymentTxn($entity)) { + $uri = str_replace("creditcardpaymenttxn", "creditcardpayment", $uri); + } $requestParameters = new RequestParameters($uri, 'GET', CoreConstants::CONTENTTYPE_APPLICATIONXML, null); $restRequestHandler = $this->getRestHandler(); list($responseCode, $responseBody) = $restRequestHandler->sendRequest($requestParameters, null, null, $this->isThrownExceptionOnError()); @@ -775,14 +782,14 @@ public function Add($entity) $this->verifyOperationAccess($entity, __FUNCTION__); if ($this->isJsonOnly($entity)) { $this->forceJsonSerializers(); - } + } + $httpsPostBody = $this->executeObjectSerializer($entity, $urlResource); // Builds resource Uri $resourceURI = implode(CoreConstants::SLASH_CHAR, array('company', $this->serviceContext->realmId, $urlResource)); - $uri = $this->handleTaxService($entity, $resourceURI); - + $uri = $this->handleTaxService($entity, $resourceURI); // Send request return $this->sendRequestParseResponseBodyAndHandleHttpError($entity, $uri, $httpsPostBody, DataService::ADD); } @@ -1326,6 +1333,18 @@ private function isTaxServiceSafe($entity) return class_exists($IPPTaxServiceClassWIthNameSpace) && ($entity instanceof $IPPTaxServiceClassWIthNameSpace); } + private function isCreditCardPaymentTxn($entity) + { + $IPPCreditCardPaymentTxnClassWIthNameSpace = "QuickBooksOnline\\API\\Data\\IPPCreditCardPaymentTxn"; + + if (class_exists($IPPCreditCardPaymentTxnClassWIthNameSpace) && ($entity instanceof $IPPCreditCardPaymentTxnClassWIthNameSpace)) + return true; + else if (is_string($entity) && $entity == "CreditCardPaymentTxn") + return true; + + return false; + } + /** * Methods provides workaround to successfully process TaxService response * @param $entity diff --git a/src/Facades/FacadeClassMapper.php b/src/Facades/FacadeClassMapper.php index 84c3c2b6..11f4b93e 100644 --- a/src/Facades/FacadeClassMapper.php +++ b/src/Facades/FacadeClassMapper.php @@ -46,7 +46,11 @@ public static function IPPReferenceTypeNameEntity(){ //IPPItem 'UOMSetRef','IncomeAccountRef','ExpenseAccountRef','COGSAccountRef','AssetAccountRef','PrefVendorRef','SalesTaxCodeRef','PurchaseTaxCodeRef', //IPPCreditMemeo - 'InvoiceRef', 'CreditCardAccountRef' + 'InvoiceRef', + //IPPCreditCardPaymentTxn + 'CreditCardAccountRef', + //IPPTaxPayment + 'PaymentAccountRef' ]; } diff --git a/src/_Samples/CreditCardPaymentCreate.php b/src/_Samples/CreditCardPaymentCreate.php new file mode 100644 index 00000000..8a7c8bb2 --- /dev/null +++ b/src/_Samples/CreditCardPaymentCreate.php @@ -0,0 +1,90 @@ + 'oauth2', + 'ClientID' => "ABQaXZTbHvQDB5aq0Gx9yDo8tjgyHxn393oN3uHyTNR6D7qxG5", + 'ClientSecret' => "oyl9ysQw9E8ni5wWg9dBaSDM7mTqRoO5jioAe1B1", + 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..DuLVn_D6oQ-wzYpB8pHKdg.yfA_Z4QcdxKy9It0uDqI_GXID6kRCUePOCXQzVuLqgXtOKG4mc-DjLfsZvN_dl9c315xF8damPVcVRCheHOCpu7VZyztc_9oDc0V8WTE4zFPyvPRwbzNiDUIyLBRj9CwuMP9QXgXqIdsDIHYkidJSBgQlEnhJaocC35QHFCpsF1f6Qxra76uC2dulcvqYpWsZWSvvYRly9thXaA0LDM5dV1O6VGSuQ4xyUewk9hbL0Em7LAVgud9fx6F69JvFjxPtM0RYWFguvxV9IhV3h0Eb2-eSub6B7dMxXVq6-K1X09VDw3NUFYbtlBIzlfmNHYBpU4oY7NdZZ0w7e3MSpHHpSKtYMU-Ux1qpQ_J9O8eC4N2DZrk50AF5_sx3710BT-ehjsu0dV1ie6_3fGzGjnORWccqepmW0_cYNWjyeAfWtjq2MLDCFE51gLhH-E8Mc8umOAq0cMFHwaC7TxsphstfSap9fNbndyD2p_8MknZuR217A45I42VJjv1Q4eB9L6LNLGlmDkXQWWiuHsTiZqgIQac_0idn38qP97y0mlEET0VJ8gYcqkQE-toGSuDVPK3rtfEOf01lCrni5HU5WxEc7C8b5UWp6hu15gh7TVXsfiAjNyxB4HM6J9flq3YZnYD6jwB_eEvYV_bTKsNTeCJ8cbxjy9ZKOHlk7GcgMzmROF2F5hBu5DQ4zqP-9su9UYivjeRdrxSK1uYc3YHhDKjY4KWUll3rBuNLYwomCN3IhM.SlNfwiJKlCuB78Tlic3WWw', + 'refreshTokenKey' => "AB11592029660juiMaK6LLvNzAwJtJU2y2MVxXgmOylKA2q2G0", + 'QBORealmID' => "4620816365026056700", + 'baseUrl' => "development" + )); + +$dataService->setLogLocation("/Users/bsivalingam/Desktop/newFolderForLog"); + + +$OAuth2LoginHelper = $dataService->getOAuth2LoginHelper(); + +$accessToken = $OAuth2LoginHelper->refreshToken(); +$error = $OAuth2LoginHelper->getLastError(); +if ($error) { + echo "The Status code is: " . $error->getHttpStatusCode() . "\n"; + echo "The Helper message is: " . $error->getOAuthHelperError() . "\n"; + echo "The Response message is: " . $error->getResponseBody() . "\n"; + return; +} +$dataService->updateOAuth2Token($accessToken); + + +$dataService->setLogLocation("/Users/bsivalingam/Desktop/newFolderForLog"); + +// Iterate through all Accounts, even if it takes multiple pages +$i = 1; +while (1) { + + $ccp = new IPPCreditCardPaymentTxn(); + $ccp->TxnDate = "2019-10-15"; + + $BankAccountRef = new IPPReferenceType(); + $BankAccountRef->value = "35"; + $BankAccountRef->name = "null"; + $ccp->BankAccountRef = $BankAccountRef; + + $CreditCardAccountRef = new IPPReferenceType(); + $CreditCardAccountRef->value = "41"; + $CreditCardAccountRef->name = "null"; + $ccp->CreditCardAccountRef = $CreditCardAccountRef; + $ccp->Amount = 10; + + $result = $dataService->add($ccp); + + echo "\n Result id is: " .$result->Id . "\n \n"; + $error = $dataService->getLastError(); +if ($error) { + echo "The Status code is: " . $error->getHttpStatusCode() . "\n"; + echo "The Helper message is: " . $error->getOAuthHelperError() . "\n"; + echo "The Response message is: " . $error->getResponseBody() . "\n"; +} else { + var_dump($result); +} + exit; +} + +/* + +Example output: + +Account[0]: Travel Meals + * Id: NG:42315 + * AccountType: Expense + * AccountSubType: + +Account[1]: COGs + * Id: NG:40450 + * AccountType: Cost of Goods Sold + * AccountSubType: + +... + +*/ + ?> diff --git a/src/_Samples/CreditCardPaymentDelete.php b/src/_Samples/CreditCardPaymentDelete.php new file mode 100644 index 00000000..3dc6b3da --- /dev/null +++ b/src/_Samples/CreditCardPaymentDelete.php @@ -0,0 +1,81 @@ + 'oauth2', + 'ClientID' => "ABQaXZTbHvQDB5aq0Gx9yDo8tjgyHxn393oN3uHyTNR6D7qxG5", + 'ClientSecret' => "oyl9ysQw9E8ni5wWg9dBaSDM7mTqRoO5jioAe1B1", + 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..DuLVn_D6oQ-wzYpB8pHKdg.yfA_Z4QcdxKy9It0uDqI_GXID6kRCUePOCXQzVuLqgXtOKG4mc-DjLfsZvN_dl9c315xF8damPVcVRCheHOCpu7VZyztc_9oDc0V8WTE4zFPyvPRwbzNiDUIyLBRj9CwuMP9QXgXqIdsDIHYkidJSBgQlEnhJaocC35QHFCpsF1f6Qxra76uC2dulcvqYpWsZWSvvYRly9thXaA0LDM5dV1O6VGSuQ4xyUewk9hbL0Em7LAVgud9fx6F69JvFjxPtM0RYWFguvxV9IhV3h0Eb2-eSub6B7dMxXVq6-K1X09VDw3NUFYbtlBIzlfmNHYBpU4oY7NdZZ0w7e3MSpHHpSKtYMU-Ux1qpQ_J9O8eC4N2DZrk50AF5_sx3710BT-ehjsu0dV1ie6_3fGzGjnORWccqepmW0_cYNWjyeAfWtjq2MLDCFE51gLhH-E8Mc8umOAq0cMFHwaC7TxsphstfSap9fNbndyD2p_8MknZuR217A45I42VJjv1Q4eB9L6LNLGlmDkXQWWiuHsTiZqgIQac_0idn38qP97y0mlEET0VJ8gYcqkQE-toGSuDVPK3rtfEOf01lCrni5HU5WxEc7C8b5UWp6hu15gh7TVXsfiAjNyxB4HM6J9flq3YZnYD6jwB_eEvYV_bTKsNTeCJ8cbxjy9ZKOHlk7GcgMzmROF2F5hBu5DQ4zqP-9su9UYivjeRdrxSK1uYc3YHhDKjY4KWUll3rBuNLYwomCN3IhM.SlNfwiJKlCuB78Tlic3WWw', + 'refreshTokenKey' => "AB11592029660juiMaK6LLvNzAwJtJU2y2MVxXgmOylKA2q2G0", + 'QBORealmID' => "4620816365026056700", + 'baseUrl' => "development" + )); + +$dataService->setLogLocation("/Users/bsivalingam/Desktop/newFolderForLog"); + + +$OAuth2LoginHelper = $dataService->getOAuth2LoginHelper(); + +$accessToken = $OAuth2LoginHelper->refreshToken(); +$error = $OAuth2LoginHelper->getLastError(); +if ($error) { + echo "The Status code is: " . $error->getHttpStatusCode() . "\n"; + echo "The Helper message is: " . $error->getOAuthHelperError() . "\n"; + echo "The Response message is: " . $error->getResponseBody() . "\n"; + return; +} +$dataService->updateOAuth2Token($accessToken); + + +$dataService->setLogLocation("/Users/bsivalingam/Desktop/newFolderForLog"); + +// Iterate through all Accounts, even if it takes multiple pages +$i = 1; +while (1) { + + $ccp = new IPPCreditCardPaymentTxn(); + $ccp->Id = "157"; + + $ccpObj = $dataService->FindById($ccp, "157"); + + $result = $dataService->Delete($ccpObj); + + echo "\n Result id is: " .$result->Id . "\n \n"; + $error = $dataService->getLastError(); +if ($error) { + echo "The Status code is: " . $error->getHttpStatusCode() . "\n"; + echo "The Helper message is: " . $error->getOAuthHelperError() . "\n"; + echo "The Response message is: " . $error->getResponseBody() . "\n"; +} else { + var_dump($result); +} + exit; +} + +/* + +Example output: + +Account[0]: Travel Meals + * Id: NG:42315 + * AccountType: Expense + * AccountSubType: + +Account[1]: COGs + * Id: NG:40450 + * AccountType: Cost of Goods Sold + * AccountSubType: + +... + +*/ + ?> diff --git a/src/_Samples/CreditCardPaymentRead.php b/src/_Samples/CreditCardPaymentRead.php new file mode 100644 index 00000000..f53fef5b --- /dev/null +++ b/src/_Samples/CreditCardPaymentRead.php @@ -0,0 +1,79 @@ + 'oauth2', + 'ClientID' => "ABQaXZTbHvQDB5aq0Gx9yDo8tjgyHxn393oN3uHyTNR6D7qxG5", + 'ClientSecret' => "oyl9ysQw9E8ni5wWg9dBaSDM7mTqRoO5jioAe1B1", + 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..DuLVn_D6oQ-wzYpB8pHKdg.yfA_Z4QcdxKy9It0uDqI_GXID6kRCUePOCXQzVuLqgXtOKG4mc-DjLfsZvN_dl9c315xF8damPVcVRCheHOCpu7VZyztc_9oDc0V8WTE4zFPyvPRwbzNiDUIyLBRj9CwuMP9QXgXqIdsDIHYkidJSBgQlEnhJaocC35QHFCpsF1f6Qxra76uC2dulcvqYpWsZWSvvYRly9thXaA0LDM5dV1O6VGSuQ4xyUewk9hbL0Em7LAVgud9fx6F69JvFjxPtM0RYWFguvxV9IhV3h0Eb2-eSub6B7dMxXVq6-K1X09VDw3NUFYbtlBIzlfmNHYBpU4oY7NdZZ0w7e3MSpHHpSKtYMU-Ux1qpQ_J9O8eC4N2DZrk50AF5_sx3710BT-ehjsu0dV1ie6_3fGzGjnORWccqepmW0_cYNWjyeAfWtjq2MLDCFE51gLhH-E8Mc8umOAq0cMFHwaC7TxsphstfSap9fNbndyD2p_8MknZuR217A45I42VJjv1Q4eB9L6LNLGlmDkXQWWiuHsTiZqgIQac_0idn38qP97y0mlEET0VJ8gYcqkQE-toGSuDVPK3rtfEOf01lCrni5HU5WxEc7C8b5UWp6hu15gh7TVXsfiAjNyxB4HM6J9flq3YZnYD6jwB_eEvYV_bTKsNTeCJ8cbxjy9ZKOHlk7GcgMzmROF2F5hBu5DQ4zqP-9su9UYivjeRdrxSK1uYc3YHhDKjY4KWUll3rBuNLYwomCN3IhM.SlNfwiJKlCuB78Tlic3WWw', + 'refreshTokenKey' => "AB11592029660juiMaK6LLvNzAwJtJU2y2MVxXgmOylKA2q2G0", + 'QBORealmID' => "4620816365026056700", + 'baseUrl' => "development" + )); + +$dataService->setLogLocation("/Users/bsivalingam/Desktop/newFolderForLog"); + + +$OAuth2LoginHelper = $dataService->getOAuth2LoginHelper(); + +$accessToken = $OAuth2LoginHelper->refreshToken(); +$error = $OAuth2LoginHelper->getLastError(); +if ($error) { + echo "The Status code is: " . $error->getHttpStatusCode() . "\n"; + echo "The Helper message is: " . $error->getOAuthHelperError() . "\n"; + echo "The Response message is: " . $error->getResponseBody() . "\n"; + return; +} +$dataService->updateOAuth2Token($accessToken); + + +$dataService->setLogLocation("/Users/bsivalingam/Desktop/newFolderForLog"); + +// Iterate through all Accounts, even if it takes multiple pages +$i = 1; +while (1) { + + $ccp = new IPPCreditCardPaymentTxn(); + $ccp->Id = "159"; + + $result = $dataService->FindById("CreditCardPaymentTxn", "159"); + + echo "\n Result id is: " .$result->Id . "\n \n"; + $error = $dataService->getLastError(); + if ($error) { + echo "The Status code is: " . $error->getHttpStatusCode() . "\n"; + echo "The Helper message is: " . $error->getOAuthHelperError() . "\n"; + echo "The Response message is: " . $error->getResponseBody() . "\n"; + } else { + var_dump($result); + } + exit; +} + +/* + +Example output: + +Account[0]: Travel Meals + * Id: NG:42315 + * AccountType: Expense + * AccountSubType: + +Account[1]: COGs + * Id: NG:40450 + * AccountType: Cost of Goods Sold + * AccountSubType: + +... + +*/ + ?> diff --git a/src/_Samples/CreditCardPaymentUpdate.php b/src/_Samples/CreditCardPaymentUpdate.php new file mode 100644 index 00000000..cde646e1 --- /dev/null +++ b/src/_Samples/CreditCardPaymentUpdate.php @@ -0,0 +1,83 @@ + 'oauth2', + 'ClientID' => "ABQaXZTbHvQDB5aq0Gx9yDo8tjgyHxn393oN3uHyTNR6D7qxG5", + 'ClientSecret' => "oyl9ysQw9E8ni5wWg9dBaSDM7mTqRoO5jioAe1B1", + 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..DuLVn_D6oQ-wzYpB8pHKdg.yfA_Z4QcdxKy9It0uDqI_GXID6kRCUePOCXQzVuLqgXtOKG4mc-DjLfsZvN_dl9c315xF8damPVcVRCheHOCpu7VZyztc_9oDc0V8WTE4zFPyvPRwbzNiDUIyLBRj9CwuMP9QXgXqIdsDIHYkidJSBgQlEnhJaocC35QHFCpsF1f6Qxra76uC2dulcvqYpWsZWSvvYRly9thXaA0LDM5dV1O6VGSuQ4xyUewk9hbL0Em7LAVgud9fx6F69JvFjxPtM0RYWFguvxV9IhV3h0Eb2-eSub6B7dMxXVq6-K1X09VDw3NUFYbtlBIzlfmNHYBpU4oY7NdZZ0w7e3MSpHHpSKtYMU-Ux1qpQ_J9O8eC4N2DZrk50AF5_sx3710BT-ehjsu0dV1ie6_3fGzGjnORWccqepmW0_cYNWjyeAfWtjq2MLDCFE51gLhH-E8Mc8umOAq0cMFHwaC7TxsphstfSap9fNbndyD2p_8MknZuR217A45I42VJjv1Q4eB9L6LNLGlmDkXQWWiuHsTiZqgIQac_0idn38qP97y0mlEET0VJ8gYcqkQE-toGSuDVPK3rtfEOf01lCrni5HU5WxEc7C8b5UWp6hu15gh7TVXsfiAjNyxB4HM6J9flq3YZnYD6jwB_eEvYV_bTKsNTeCJ8cbxjy9ZKOHlk7GcgMzmROF2F5hBu5DQ4zqP-9su9UYivjeRdrxSK1uYc3YHhDKjY4KWUll3rBuNLYwomCN3IhM.SlNfwiJKlCuB78Tlic3WWw', + 'refreshTokenKey' => "AB11592029660juiMaK6LLvNzAwJtJU2y2MVxXgmOylKA2q2G0", + 'QBORealmID' => "4620816365026056700", + 'baseUrl' => "development" + )); + +$dataService->setLogLocation("/Users/bsivalingam/Desktop/newFolderForLog"); + + +$OAuth2LoginHelper = $dataService->getOAuth2LoginHelper(); + +$accessToken = $OAuth2LoginHelper->refreshToken(); +$error = $OAuth2LoginHelper->getLastError(); +if ($error) { + echo "The Status code is: " . $error->getHttpStatusCode() . "\n"; + echo "The Helper message is: " . $error->getOAuthHelperError() . "\n"; + echo "The Response message is: " . $error->getResponseBody() . "\n"; + return; +} +$dataService->updateOAuth2Token($accessToken); + + +$dataService->setLogLocation("/Users/bsivalingam/Desktop/newFolderForLog"); + +// Iterate through all Accounts, even if it takes multiple pages +$i = 1; +while (1) { + + $ccp = new IPPCreditCardPaymentTxn(); + $ccp->Id = "157"; + $ccpObj = $dataService->FindById($ccp, "157"); + + echo "\n Value before update is: " . $ccpObj->CreditCardAccountRef . "\n \n"; + + $ccpObj->CreditCardAccountRef = 41; + $result = $dataService->Update($ccpObj); + + echo "\n Value after update is: " . $result->CreditCardAccountRef . "\n \n"; + $error = $dataService->getLastError(); +if ($error) { + echo "The Status code is: " . $error->getHttpStatusCode() . "\n"; + echo "The Helper message is: " . $error->getOAuthHelperError() . "\n"; + echo "The Response message is: " . $error->getResponseBody() . "\n"; +} else { + var_dump($result); +} + exit; +} + +/* + +Example output: + +Account[0]: Travel Meals + * Id: NG:42315 + * AccountType: Expense + * AccountSubType: + +Account[1]: COGs + * Id: NG:40450 + * AccountType: Cost of Goods Sold + * AccountSubType: + +... + +*/ + ?> From 217fb2d4fdbf6747c7b0060dcb1ab23c7f4e57e4 Mon Sep 17 00:00:00 2001 From: Brinda Sivalingam Date: Wed, 4 Mar 2020 18:32:52 -0800 Subject: [PATCH 4/5] Update variable name and test. --- src/DataService/DataService.php | 4 ++-- src/_Samples/CreditCardPaymentCreate.php | 4 ++-- src/_Samples/CreditCardPaymentDelete.php | 8 ++++---- src/_Samples/CreditCardPaymentRead.php | 4 ++-- src/_Samples/CreditCardPaymentUpdate.php | 11 +++++------ 5 files changed, 15 insertions(+), 16 deletions(-) diff --git a/src/DataService/DataService.php b/src/DataService/DataService.php index 6eaeb30a..6f787e60 100644 --- a/src/DataService/DataService.php +++ b/src/DataService/DataService.php @@ -1335,9 +1335,9 @@ private function isTaxServiceSafe($entity) private function isCreditCardPaymentTxn($entity) { - $IPPCreditCardPaymentTxnClassWIthNameSpace = "QuickBooksOnline\\API\\Data\\IPPCreditCardPaymentTxn"; + $IPPCreditCardPaymentTxnClass = "QuickBooksOnline\\API\\Data\\IPPCreditCardPaymentTxn"; - if (class_exists($IPPCreditCardPaymentTxnClassWIthNameSpace) && ($entity instanceof $IPPCreditCardPaymentTxnClassWIthNameSpace)) + if (class_exists($IPPCreditCardPaymentTxnClass) && ($entity instanceof $IPPCreditCardPaymentTxnClass)) return true; else if (is_string($entity) && $entity == "CreditCardPaymentTxn") return true; diff --git a/src/_Samples/CreditCardPaymentCreate.php b/src/_Samples/CreditCardPaymentCreate.php index 8a7c8bb2..67b72a25 100644 --- a/src/_Samples/CreditCardPaymentCreate.php +++ b/src/_Samples/CreditCardPaymentCreate.php @@ -14,8 +14,8 @@ 'auth_mode' => 'oauth2', 'ClientID' => "ABQaXZTbHvQDB5aq0Gx9yDo8tjgyHxn393oN3uHyTNR6D7qxG5", 'ClientSecret' => "oyl9ysQw9E8ni5wWg9dBaSDM7mTqRoO5jioAe1B1", - 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..DuLVn_D6oQ-wzYpB8pHKdg.yfA_Z4QcdxKy9It0uDqI_GXID6kRCUePOCXQzVuLqgXtOKG4mc-DjLfsZvN_dl9c315xF8damPVcVRCheHOCpu7VZyztc_9oDc0V8WTE4zFPyvPRwbzNiDUIyLBRj9CwuMP9QXgXqIdsDIHYkidJSBgQlEnhJaocC35QHFCpsF1f6Qxra76uC2dulcvqYpWsZWSvvYRly9thXaA0LDM5dV1O6VGSuQ4xyUewk9hbL0Em7LAVgud9fx6F69JvFjxPtM0RYWFguvxV9IhV3h0Eb2-eSub6B7dMxXVq6-K1X09VDw3NUFYbtlBIzlfmNHYBpU4oY7NdZZ0w7e3MSpHHpSKtYMU-Ux1qpQ_J9O8eC4N2DZrk50AF5_sx3710BT-ehjsu0dV1ie6_3fGzGjnORWccqepmW0_cYNWjyeAfWtjq2MLDCFE51gLhH-E8Mc8umOAq0cMFHwaC7TxsphstfSap9fNbndyD2p_8MknZuR217A45I42VJjv1Q4eB9L6LNLGlmDkXQWWiuHsTiZqgIQac_0idn38qP97y0mlEET0VJ8gYcqkQE-toGSuDVPK3rtfEOf01lCrni5HU5WxEc7C8b5UWp6hu15gh7TVXsfiAjNyxB4HM6J9flq3YZnYD6jwB_eEvYV_bTKsNTeCJ8cbxjy9ZKOHlk7GcgMzmROF2F5hBu5DQ4zqP-9su9UYivjeRdrxSK1uYc3YHhDKjY4KWUll3rBuNLYwomCN3IhM.SlNfwiJKlCuB78Tlic3WWw', - 'refreshTokenKey' => "AB11592029660juiMaK6LLvNzAwJtJU2y2MVxXgmOylKA2q2G0", + 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..cPqdQNffhx2nig6znQekUA.mB3fxjqhLE1AgbcB7bxv9WxS1W8To0eFO9bpkmiO4XHcqjari0Pwxuuj9LqEalgxCKRre0RtW5W5iT89-YLr6rmx57Sj-ML1I3x6jk2d2fZectYuwHyERPqHMPyODZxcHFvPBSi5EL4NHck_R60JMHPhfLmH57gtcUO16iAs2U4J008gVZQ3v42c2qUtn7ZqUJNkAPcW75Uuh3Hq4njerqBqLKlQ3TGdEL1MZlxTy1O1c5zLM4Fb-P2IoPAp8RZxITUOc-uZg7BVQ0RVkC8V_gT2ooljfMTcS0Lwh9-IBOuPgo8SdXDXZ8oRes5vx_F1sMNBw5BzX5laX1U_Ot-l1LWc2w8XF3_mUpH6wiTSoxxzz5o2vhsuRmS8UcdQTsnhFiskvquW3bvAbh85c0tc4H82Uop3W_3kIdiFC64ZN4evDcXsMOjTXe9LNne8vw6gCzRX4L6Wx0wCS9AE80xKahW_qzoNTTxkbsIZh6ScQmBeXYpOeE8KHFYbk9-af2cc9ctG0J3u-dka3XLUNis6rg-hTmxPsYx6HUWXEQ0laCNrVeHWIsv6yvkuqkPvll8QSBsm5x_b33bNwuFTV0CQqaixC-xkzUCIv8JbDIbsVewMN-GXxRxp_17oCY69joF5HIAu-5NjRjpIRrU36uPJj6_0clBrFVwOtYGAT-zvqRnKPiUMQqRJ8T3TaNHIrQBy1S8O10xPVskaBHDPD638tTp73DlDgjxlwMaKTpXQlnI.UmSkfwDljLJJw6aVQOimAg', + 'refreshTokenKey' => "AB11592100222CtcTHTZItiMfHgtdtCQW6tv6iKH7PzgpvZdAS", 'QBORealmID' => "4620816365026056700", 'baseUrl' => "development" )); diff --git a/src/_Samples/CreditCardPaymentDelete.php b/src/_Samples/CreditCardPaymentDelete.php index 3dc6b3da..c8e96251 100644 --- a/src/_Samples/CreditCardPaymentDelete.php +++ b/src/_Samples/CreditCardPaymentDelete.php @@ -14,8 +14,8 @@ 'auth_mode' => 'oauth2', 'ClientID' => "ABQaXZTbHvQDB5aq0Gx9yDo8tjgyHxn393oN3uHyTNR6D7qxG5", 'ClientSecret' => "oyl9ysQw9E8ni5wWg9dBaSDM7mTqRoO5jioAe1B1", - 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..DuLVn_D6oQ-wzYpB8pHKdg.yfA_Z4QcdxKy9It0uDqI_GXID6kRCUePOCXQzVuLqgXtOKG4mc-DjLfsZvN_dl9c315xF8damPVcVRCheHOCpu7VZyztc_9oDc0V8WTE4zFPyvPRwbzNiDUIyLBRj9CwuMP9QXgXqIdsDIHYkidJSBgQlEnhJaocC35QHFCpsF1f6Qxra76uC2dulcvqYpWsZWSvvYRly9thXaA0LDM5dV1O6VGSuQ4xyUewk9hbL0Em7LAVgud9fx6F69JvFjxPtM0RYWFguvxV9IhV3h0Eb2-eSub6B7dMxXVq6-K1X09VDw3NUFYbtlBIzlfmNHYBpU4oY7NdZZ0w7e3MSpHHpSKtYMU-Ux1qpQ_J9O8eC4N2DZrk50AF5_sx3710BT-ehjsu0dV1ie6_3fGzGjnORWccqepmW0_cYNWjyeAfWtjq2MLDCFE51gLhH-E8Mc8umOAq0cMFHwaC7TxsphstfSap9fNbndyD2p_8MknZuR217A45I42VJjv1Q4eB9L6LNLGlmDkXQWWiuHsTiZqgIQac_0idn38qP97y0mlEET0VJ8gYcqkQE-toGSuDVPK3rtfEOf01lCrni5HU5WxEc7C8b5UWp6hu15gh7TVXsfiAjNyxB4HM6J9flq3YZnYD6jwB_eEvYV_bTKsNTeCJ8cbxjy9ZKOHlk7GcgMzmROF2F5hBu5DQ4zqP-9su9UYivjeRdrxSK1uYc3YHhDKjY4KWUll3rBuNLYwomCN3IhM.SlNfwiJKlCuB78Tlic3WWw', - 'refreshTokenKey' => "AB11592029660juiMaK6LLvNzAwJtJU2y2MVxXgmOylKA2q2G0", + 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..cPqdQNffhx2nig6znQekUA.mB3fxjqhLE1AgbcB7bxv9WxS1W8To0eFO9bpkmiO4XHcqjari0Pwxuuj9LqEalgxCKRre0RtW5W5iT89-YLr6rmx57Sj-ML1I3x6jk2d2fZectYuwHyERPqHMPyODZxcHFvPBSi5EL4NHck_R60JMHPhfLmH57gtcUO16iAs2U4J008gVZQ3v42c2qUtn7ZqUJNkAPcW75Uuh3Hq4njerqBqLKlQ3TGdEL1MZlxTy1O1c5zLM4Fb-P2IoPAp8RZxITUOc-uZg7BVQ0RVkC8V_gT2ooljfMTcS0Lwh9-IBOuPgo8SdXDXZ8oRes5vx_F1sMNBw5BzX5laX1U_Ot-l1LWc2w8XF3_mUpH6wiTSoxxzz5o2vhsuRmS8UcdQTsnhFiskvquW3bvAbh85c0tc4H82Uop3W_3kIdiFC64ZN4evDcXsMOjTXe9LNne8vw6gCzRX4L6Wx0wCS9AE80xKahW_qzoNTTxkbsIZh6ScQmBeXYpOeE8KHFYbk9-af2cc9ctG0J3u-dka3XLUNis6rg-hTmxPsYx6HUWXEQ0laCNrVeHWIsv6yvkuqkPvll8QSBsm5x_b33bNwuFTV0CQqaixC-xkzUCIv8JbDIbsVewMN-GXxRxp_17oCY69joF5HIAu-5NjRjpIRrU36uPJj6_0clBrFVwOtYGAT-zvqRnKPiUMQqRJ8T3TaNHIrQBy1S8O10xPVskaBHDPD638tTp73DlDgjxlwMaKTpXQlnI.UmSkfwDljLJJw6aVQOimAg', + 'refreshTokenKey' => "AB11592100222CtcTHTZItiMfHgtdtCQW6tv6iKH7PzgpvZdAS", 'QBORealmID' => "4620816365026056700", 'baseUrl' => "development" )); @@ -43,9 +43,9 @@ while (1) { $ccp = new IPPCreditCardPaymentTxn(); - $ccp->Id = "157"; + $ccp->Id = "159"; - $ccpObj = $dataService->FindById($ccp, "157"); + $ccpObj = $dataService->FindById($ccp, "159"); $result = $dataService->Delete($ccpObj); diff --git a/src/_Samples/CreditCardPaymentRead.php b/src/_Samples/CreditCardPaymentRead.php index f53fef5b..73c8e199 100644 --- a/src/_Samples/CreditCardPaymentRead.php +++ b/src/_Samples/CreditCardPaymentRead.php @@ -14,8 +14,8 @@ 'auth_mode' => 'oauth2', 'ClientID' => "ABQaXZTbHvQDB5aq0Gx9yDo8tjgyHxn393oN3uHyTNR6D7qxG5", 'ClientSecret' => "oyl9ysQw9E8ni5wWg9dBaSDM7mTqRoO5jioAe1B1", - 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..DuLVn_D6oQ-wzYpB8pHKdg.yfA_Z4QcdxKy9It0uDqI_GXID6kRCUePOCXQzVuLqgXtOKG4mc-DjLfsZvN_dl9c315xF8damPVcVRCheHOCpu7VZyztc_9oDc0V8WTE4zFPyvPRwbzNiDUIyLBRj9CwuMP9QXgXqIdsDIHYkidJSBgQlEnhJaocC35QHFCpsF1f6Qxra76uC2dulcvqYpWsZWSvvYRly9thXaA0LDM5dV1O6VGSuQ4xyUewk9hbL0Em7LAVgud9fx6F69JvFjxPtM0RYWFguvxV9IhV3h0Eb2-eSub6B7dMxXVq6-K1X09VDw3NUFYbtlBIzlfmNHYBpU4oY7NdZZ0w7e3MSpHHpSKtYMU-Ux1qpQ_J9O8eC4N2DZrk50AF5_sx3710BT-ehjsu0dV1ie6_3fGzGjnORWccqepmW0_cYNWjyeAfWtjq2MLDCFE51gLhH-E8Mc8umOAq0cMFHwaC7TxsphstfSap9fNbndyD2p_8MknZuR217A45I42VJjv1Q4eB9L6LNLGlmDkXQWWiuHsTiZqgIQac_0idn38qP97y0mlEET0VJ8gYcqkQE-toGSuDVPK3rtfEOf01lCrni5HU5WxEc7C8b5UWp6hu15gh7TVXsfiAjNyxB4HM6J9flq3YZnYD6jwB_eEvYV_bTKsNTeCJ8cbxjy9ZKOHlk7GcgMzmROF2F5hBu5DQ4zqP-9su9UYivjeRdrxSK1uYc3YHhDKjY4KWUll3rBuNLYwomCN3IhM.SlNfwiJKlCuB78Tlic3WWw', - 'refreshTokenKey' => "AB11592029660juiMaK6LLvNzAwJtJU2y2MVxXgmOylKA2q2G0", + 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..cPqdQNffhx2nig6znQekUA.mB3fxjqhLE1AgbcB7bxv9WxS1W8To0eFO9bpkmiO4XHcqjari0Pwxuuj9LqEalgxCKRre0RtW5W5iT89-YLr6rmx57Sj-ML1I3x6jk2d2fZectYuwHyERPqHMPyODZxcHFvPBSi5EL4NHck_R60JMHPhfLmH57gtcUO16iAs2U4J008gVZQ3v42c2qUtn7ZqUJNkAPcW75Uuh3Hq4njerqBqLKlQ3TGdEL1MZlxTy1O1c5zLM4Fb-P2IoPAp8RZxITUOc-uZg7BVQ0RVkC8V_gT2ooljfMTcS0Lwh9-IBOuPgo8SdXDXZ8oRes5vx_F1sMNBw5BzX5laX1U_Ot-l1LWc2w8XF3_mUpH6wiTSoxxzz5o2vhsuRmS8UcdQTsnhFiskvquW3bvAbh85c0tc4H82Uop3W_3kIdiFC64ZN4evDcXsMOjTXe9LNne8vw6gCzRX4L6Wx0wCS9AE80xKahW_qzoNTTxkbsIZh6ScQmBeXYpOeE8KHFYbk9-af2cc9ctG0J3u-dka3XLUNis6rg-hTmxPsYx6HUWXEQ0laCNrVeHWIsv6yvkuqkPvll8QSBsm5x_b33bNwuFTV0CQqaixC-xkzUCIv8JbDIbsVewMN-GXxRxp_17oCY69joF5HIAu-5NjRjpIRrU36uPJj6_0clBrFVwOtYGAT-zvqRnKPiUMQqRJ8T3TaNHIrQBy1S8O10xPVskaBHDPD638tTp73DlDgjxlwMaKTpXQlnI.UmSkfwDljLJJw6aVQOimAg', + 'refreshTokenKey' => "AB11592100222CtcTHTZItiMfHgtdtCQW6tv6iKH7PzgpvZdAS", 'QBORealmID' => "4620816365026056700", 'baseUrl' => "development" )); diff --git a/src/_Samples/CreditCardPaymentUpdate.php b/src/_Samples/CreditCardPaymentUpdate.php index cde646e1..623989c8 100644 --- a/src/_Samples/CreditCardPaymentUpdate.php +++ b/src/_Samples/CreditCardPaymentUpdate.php @@ -9,13 +9,12 @@ use QuickBooksOnline\API\Data\IPPCreditCardPaymentTxn; use QuickBooksOnline\API\Data\IPPReferenceType; - $dataService = DataService::Configure(array( 'auth_mode' => 'oauth2', 'ClientID' => "ABQaXZTbHvQDB5aq0Gx9yDo8tjgyHxn393oN3uHyTNR6D7qxG5", 'ClientSecret' => "oyl9ysQw9E8ni5wWg9dBaSDM7mTqRoO5jioAe1B1", - 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..DuLVn_D6oQ-wzYpB8pHKdg.yfA_Z4QcdxKy9It0uDqI_GXID6kRCUePOCXQzVuLqgXtOKG4mc-DjLfsZvN_dl9c315xF8damPVcVRCheHOCpu7VZyztc_9oDc0V8WTE4zFPyvPRwbzNiDUIyLBRj9CwuMP9QXgXqIdsDIHYkidJSBgQlEnhJaocC35QHFCpsF1f6Qxra76uC2dulcvqYpWsZWSvvYRly9thXaA0LDM5dV1O6VGSuQ4xyUewk9hbL0Em7LAVgud9fx6F69JvFjxPtM0RYWFguvxV9IhV3h0Eb2-eSub6B7dMxXVq6-K1X09VDw3NUFYbtlBIzlfmNHYBpU4oY7NdZZ0w7e3MSpHHpSKtYMU-Ux1qpQ_J9O8eC4N2DZrk50AF5_sx3710BT-ehjsu0dV1ie6_3fGzGjnORWccqepmW0_cYNWjyeAfWtjq2MLDCFE51gLhH-E8Mc8umOAq0cMFHwaC7TxsphstfSap9fNbndyD2p_8MknZuR217A45I42VJjv1Q4eB9L6LNLGlmDkXQWWiuHsTiZqgIQac_0idn38qP97y0mlEET0VJ8gYcqkQE-toGSuDVPK3rtfEOf01lCrni5HU5WxEc7C8b5UWp6hu15gh7TVXsfiAjNyxB4HM6J9flq3YZnYD6jwB_eEvYV_bTKsNTeCJ8cbxjy9ZKOHlk7GcgMzmROF2F5hBu5DQ4zqP-9su9UYivjeRdrxSK1uYc3YHhDKjY4KWUll3rBuNLYwomCN3IhM.SlNfwiJKlCuB78Tlic3WWw', - 'refreshTokenKey' => "AB11592029660juiMaK6LLvNzAwJtJU2y2MVxXgmOylKA2q2G0", + 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..cPqdQNffhx2nig6znQekUA.mB3fxjqhLE1AgbcB7bxv9WxS1W8To0eFO9bpkmiO4XHcqjari0Pwxuuj9LqEalgxCKRre0RtW5W5iT89-YLr6rmx57Sj-ML1I3x6jk2d2fZectYuwHyERPqHMPyODZxcHFvPBSi5EL4NHck_R60JMHPhfLmH57gtcUO16iAs2U4J008gVZQ3v42c2qUtn7ZqUJNkAPcW75Uuh3Hq4njerqBqLKlQ3TGdEL1MZlxTy1O1c5zLM4Fb-P2IoPAp8RZxITUOc-uZg7BVQ0RVkC8V_gT2ooljfMTcS0Lwh9-IBOuPgo8SdXDXZ8oRes5vx_F1sMNBw5BzX5laX1U_Ot-l1LWc2w8XF3_mUpH6wiTSoxxzz5o2vhsuRmS8UcdQTsnhFiskvquW3bvAbh85c0tc4H82Uop3W_3kIdiFC64ZN4evDcXsMOjTXe9LNne8vw6gCzRX4L6Wx0wCS9AE80xKahW_qzoNTTxkbsIZh6ScQmBeXYpOeE8KHFYbk9-af2cc9ctG0J3u-dka3XLUNis6rg-hTmxPsYx6HUWXEQ0laCNrVeHWIsv6yvkuqkPvll8QSBsm5x_b33bNwuFTV0CQqaixC-xkzUCIv8JbDIbsVewMN-GXxRxp_17oCY69joF5HIAu-5NjRjpIRrU36uPJj6_0clBrFVwOtYGAT-zvqRnKPiUMQqRJ8T3TaNHIrQBy1S8O10xPVskaBHDPD638tTp73DlDgjxlwMaKTpXQlnI.UmSkfwDljLJJw6aVQOimAg', + 'refreshTokenKey' => "AB11592100222CtcTHTZItiMfHgtdtCQW6tv6iKH7PzgpvZdAS", 'QBORealmID' => "4620816365026056700", 'baseUrl' => "development" )); @@ -43,12 +42,12 @@ while (1) { $ccp = new IPPCreditCardPaymentTxn(); - $ccp->Id = "157"; - $ccpObj = $dataService->FindById($ccp, "157"); + $ccp->Id = "159"; + $ccpObj = $dataService->FindById($ccp, "159"); echo "\n Value before update is: " . $ccpObj->CreditCardAccountRef . "\n \n"; - $ccpObj->CreditCardAccountRef = 41; + $ccpObj->CreditCardAccountRef = 42; $result = $dataService->Update($ccpObj); echo "\n Value after update is: " . $result->CreditCardAccountRef . "\n \n"; From 79d32adeb016efadc7e1d739e729e631e551155b Mon Sep 17 00:00:00 2001 From: Brinda Sivalingam Date: Wed, 4 Mar 2020 19:08:39 -0800 Subject: [PATCH 5/5] Add samples/test for tax payment entity. --- src/_Samples/TaxPaymentRead.php | 66 +++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 src/_Samples/TaxPaymentRead.php diff --git a/src/_Samples/TaxPaymentRead.php b/src/_Samples/TaxPaymentRead.php new file mode 100644 index 00000000..931b9246 --- /dev/null +++ b/src/_Samples/TaxPaymentRead.php @@ -0,0 +1,66 @@ + 'oauth2', + 'ClientID' => "ABQaXZTbHvQDB5aq0Gx9yDo8tjgyHxn393oN3uHyTNR6D7qxG5", + 'ClientSecret' => "oyl9ysQw9E8ni5wWg9dBaSDM7mTqRoO5jioAe1B1", + 'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..6pMovzpSpoNsgy7z5gTY0w.u32jONYb1BdbCz17HlgtR2ALYPon_zvu-Y7bN--IuFMvi6j7XbzSC_Sq2CJ-fC7ah2qvckGV423_zpR5hvSuZZj91i2pT-Nn02A4gn0Qa8xBRbYp25q7e1HQeBfDKVvXqtu1jp-eYVw3I_pLIo_9vFenWhXDhCIeX_F7h_SdwSTg5NBns-fbEeJjtQIzBb32OPiR5GF3jdlVWKkbD4coWK5eECX_zc_NqzRf90Pi-Qa0lRUiDjzhc_kFpOEw_769Z5QzyKwoUKMSpX9DlBRR1VOnZ65-_bo4vjR4vexG7C9bnDRnT57mAQCjsXpNHh30Dh8R6LG2ouOpH6r95VNXj9AcqH0Yz17oKqgN2ybdE7ZGvNhvUZ5mH2vvOzQA0atJ21V_f9NlyjTAGqMC8ElqbnMWpjoadI9hKm6czBvjGzrP74k6bTvUfMVgUm5o3Fv5fZFqhSB_wjVq3VZ22IlgvuCnGvMP5JCJFGYkDw7jIuZ-_Csc3xs8F6Gp-xpIpVTD_shZGiyJzaoVFpUVHOILz33fT6Y8tK2jkBZWx5qMFcOg5yJIVwhJuPP-s6-ITLKCrQEDoUq2s9jCS1bJrVx0w01JTxIUqSZ1fa7o5a0aglpCfhK1fR93Gzm9DhminAsLP4bPk3AiasDW4NRYkJvVKBWlAdtCUNN5I3I0wuLEAsJohuoMeOSiwCljrzoD8xRZ5RIF49ejXzbRkx6ElL54Sfsz6grbywb0tXrwI8gAFgw.ph40cT69OamUtVWrxUx4Ew', + 'refreshTokenKey' => "AB11592103437dnbIY7IzrGzuWKWpmcmeNETNFUdzmz0290S2Z", + 'QBORealmID' => "4620816365037746310", + 'baseUrl' => "development" + )); + +$dataService->setLogLocation("/Users/bsivalingam/Desktop/newFolderForLog"); + +// Iterate through all Accounts, even if it takes multiple pages +$i = 1; +while (1) { + + $taxPayment = new IPPTaxPayment(); + $taxPayment->Id = 174; + + $result1 = $dataService->FindById($taxPayment); + + $result2 = $dataService->FindById("TaxPayment", 173); + + echo "\n Result id is: " .$result1->Id . "\n \n"; + echo "\n Result id is: " .$result2->Id . "\n \n"; + $error = $dataService->getLastError(); +if ($error) { + echo "The Status code is: " . $error->getHttpStatusCode() . "\n"; + echo "The Helper message is: " . $error->getOAuthHelperError() . "\n"; + echo "The Response message is: " . $error->getResponseBody() . "\n"; +} else { + var_dump([$result1, $result2]); +} + exit; +} + +/* + +Example output: + +Account[0]: Travel Meals + * Id: NG:42315 + * AccountType: Expense + * AccountSubType: + +Account[1]: COGs + * Id: NG:40450 + * AccountType: Cost of Goods Sold + * AccountSubType: + +... + +*/ + ?>