Skip to content

Commit 1dc20d3

Browse files
authored
Merge pull request #291 from intuit/make-schema-changes
Make schema changes
2 parents e9b4f7a + 79d32ad commit 1dc20d3

28 files changed

+1751
-776
lines changed

src/Core/CoreConstants.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class CoreConstants
88
{
99
//Set the default minor version
10-
const DEFAULT_SDK_MINOR_VERSION = "45";
10+
const DEFAULT_SDK_MINOR_VERSION = "47";
1111
const DEFAULT_LOGGINGLOCATION = "/tmp/IdsLogs";
1212

1313
const PHP_CLASS_PREFIX = 'IPP';
@@ -298,7 +298,7 @@ class CoreConstants
298298
* The Request source header value.
299299
* @var string REQUESTSOURCEHEADER
300300
*/
301-
const USERAGENT = "V3PHPSDK5.3.4";
301+
const USERAGENT = "V3PHPSDK5.3.5";
302302

303303
public static function getType($string, $return=1)
304304
{

src/Data/IPPAccount.php

+15
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,21 @@ classification an account classified. Suggested examples of
205205
* @var string
206206
*/
207207
public $AccountSubType;
208+
/**
209+
* @Definition
210+
Product: QBO
211+
Description: Internal use only: Account purpose indicates the mapping of the
212+
chart-of-account to a purpose (eg: DEFAULT_QB_CASH_CHECKING_ACCOUNT). A chart-of-account
213+
can have multiple account purpose mapping.
214+
215+
* @xmlType element
216+
* @xmlNamespace http://schema.intuit.com/finance/v3
217+
* @xmlMinOccurs 0
218+
* @xmlMaxOccurs unbounded
219+
* @xmlName AccountPurposes
220+
* @var com\intuit\schema\finance\v3\IPPReferenceType
221+
*/
222+
public $AccountPurposes;
208223
/**
209224
* @br
210225
* @ul

src/Data/IPPBill.php

+12
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
9494
* @var com\intuit\schema\finance\v3\IPPPhysicalAddress
9595
*/
9696
public $ShipAddr;
97+
/**
98+
* @Definition
99+
Product: QBO
100+
Description: Vendor Mailing Address
101+
102+
* @xmlType element
103+
* @xmlNamespace http://schema.intuit.com/finance/v3
104+
* @xmlMinOccurs 0
105+
* @xmlName VendorAddr
106+
* @var com\intuit\schema\finance\v3\IPPPhysicalAddress
107+
*/
108+
public $VendorAddr;
97109
/**
98110
* @Definition
99111
Product: ALL

src/Data/IPPBillPayment.php

+12
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
5454
* @var com\intuit\schema\finance\v3\IPPReferenceType
5555
*/
5656
public $VendorRef;
57+
/**
58+
* @Definition
59+
Product: QBO
60+
Description: Vendor Mailing Address
61+
62+
* @xmlType element
63+
* @xmlNamespace http://schema.intuit.com/finance/v3
64+
* @xmlMinOccurs 0
65+
* @xmlName VendorAddr
66+
* @var com\intuit\schema\finance\v3\IPPPhysicalAddress
67+
*/
68+
public $VendorAddr;
5769
/**
5870
* @Definition Optional AP account specification for bill
5971
payment transactions. Most small businesses have a single AP

src/Data/IPPCreditCardPaymentTxn.php

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

src/Data/IPPCreditMemo.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
5555
public $RemainingCredit;
5656
/**
5757
* @Definition
58-
Product: ALL
59-
Description: A credit memo needs to have an invoice number to save successfully
60-
Applicable for IN Region.
61-
58+
Product: ALL
59+
Description: A credit memo needs to have an invoice number to save successfully
60+
Applicable for IN Region.
61+
6262
* @xmlType element
6363
* @xmlNamespace http://schema.intuit.com/finance/v3
6464
* @xmlMinOccurs 0

src/Data/IPPInvoice.php

+12
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
247247
* @var string
248248
*/
249249
public $InvoiceLink;
250+
/**
251+
* @Definition
252+
Product: QBO
253+
Description: QBO: Message displayed to customer about payment Instructions. eg: bank account info.
254+
255+
* @xmlType element
256+
* @xmlNamespace http://schema.intuit.com/finance/v3
257+
* @xmlMinOccurs 0
258+
* @xmlName PaymentDetailsMessage
259+
* @var string
260+
*/
261+
public $PaymentDetailsMessage;
250262
/**
251263
* @Definition
252264
Product: QBO

src/Data/IPPLine.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
126126
which depends on the type of the line. It can represent the
127127
received amount or received quantity
128128
based on the line type detail. ReadOnly field for Purchase Order.
129-
Applies to existing and new entities.
129+
Applies to existing and new entities.
130130
131131
* @xmlType element
132132
* @xmlNamespace http://schema.intuit.com/finance/v3

src/Data/IPPSalesTransaction.php

+11-11
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
134134
public $ShipAddr;
135135
/**
136136
* @Definition
137-
Product: QBO
138-
Description: Specifies whether
139-
shipping address is in free-form or structured-form (city/state etc.)
140-
137+
Product: QBO
138+
Description: Specifies whether
139+
shipping address is in free-form or structured-form (city/state etc.)
140+
141141
* @xmlType element
142142
* @xmlNamespace http://schema.intuit.com/finance/v3
143143
* @xmlMinOccurs 0
@@ -147,13 +147,13 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
147147
public $FreeFormAddress;
148148
/**
149149
* @Definition
150-
Product: ALL
151-
Description: QBO: Shipping from address
152-
of the Invoice.[br]See [a
153-
href="http://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0060_Financial_Management_Services_(v3)/01000_Using_Data_Service_Entities#Addresses"]Addresses[/a]
154-
Description: QBW: Identifies the address where the goods are shipped
155-
from. For transactions without shipping, it represents the address where the sale took place.
156-
150+
Product: ALL
151+
Description: QBO: Shipping from address
152+
of the Invoice.[br]See [a
153+
href="http://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0060_Financial_Management_Services_(v3)/01000_Using_Data_Service_Entities#Addresses"]Addresses[/a]
154+
Description: QBW: Identifies the address where the goods are shipped
155+
from. For transactions without shipping, it represents the address where the sale took place.
156+
157157
* @xmlType element
158158
* @xmlNamespace http://schema.intuit.com/finance/v3
159159
* @xmlMinOccurs 0

src/Data/IPPTag.php

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?php
2+
namespace QuickBooksOnline\API\Data;
3+
4+
/**
5+
* @xmlNamespace http://schema.intuit.com/finance/v3
6+
* @xmlType IntuitEntity
7+
* @xmlName IPPTag
8+
* @var IPPTag
9+
* @xmlDefinition
10+
Product: ALL
11+
Description: A Tag applied to a transaction
12+
13+
*/
14+
class IPPTag
15+
extends IPPIntuitEntity {
16+
17+
/**
18+
* Initializes this object, optionally with pre-defined property values
19+
*
20+
* Initializes this object and it's property members, using the dictionary
21+
* of key/value pairs passed as an optional argument.
22+
*
23+
* @param dictionary $keyValInitializers key/value pairs to be populated into object's properties
24+
* @param boolean $verbose specifies whether object should echo warnings
25+
*/
26+
public function __construct($keyValInitializers=array(), $verbose=FALSE)
27+
{
28+
foreach($keyValInitializers as $initPropName => $initPropVal)
29+
{
30+
if (property_exists('IPPTag',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPTag',$initPropName))
31+
{
32+
$this->{$initPropName} = $initPropVal;
33+
}
34+
else
35+
{
36+
if ($verbose)
37+
echo "Property does not exist ($initPropName) in class (".get_class($this).")";
38+
}
39+
}
40+
}
41+
42+
43+
/**
44+
* @Definition
45+
Product: ALL
46+
Description: The name of the tag.
47+
48+
* @xmlType element
49+
* @xmlNamespace http://schema.intuit.com/finance/v3
50+
* @xmlMinOccurs 0
51+
* @xmlMaxOccurs 1
52+
* @xmlName Name
53+
* @var string
54+
*/
55+
public $Name;
56+
57+
58+
} // end class IPPTag

src/Data/IPPTaxAgency.php

+12
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
143143
* @var com\intuit\schema\finance\v3\IPPIntuitAnyType
144144
*/
145145
public $TaxAgencyExt;
146+
/**
147+
* @Definition
148+
Product: QBO
149+
Description: Tax agency config. Identify if the agency is System generated or User created.
150+
151+
* @xmlType element
152+
* @xmlNamespace http://schema.intuit.com/finance/v3
153+
* @xmlMinOccurs 0
154+
* @xmlName TaxAgencyConfig
155+
* @var string
156+
*/
157+
public $TaxAgencyConfig;
146158

147159

148160
} // end class IPPTaxAgency

src/Data/IPPTaxCode.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
100100
public $Active;
101101
/**
102102
* @Definition
103-
Product: QBW
104-
Description: True if Taxcode needs to be hidden. Active tax codes can be hidden from the display using this.
105-
Filterable: ALL
106-
103+
Product: QBW
104+
Description: True if Taxcode needs to be hidden. Active tax codes can be hidden from the display using this.
105+
Filterable: ALL
106+
107107
* @xmlType element
108108
* @xmlNamespace http://schema.intuit.com/finance/v3
109109
* @xmlMinOccurs 0

0 commit comments

Comments
 (0)