Skip to content

Commit 5e4cafc

Browse files
Merge pull request #561 from ManikaSaiKiran/v6.2.1-release
v3 Schema updates
2 parents 0c28bc3 + 43e8339 commit 5e4cafc

File tree

8 files changed

+350
-1
lines changed

8 files changed

+350
-1
lines changed

src/Core/CoreConstants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class CoreConstants
297297
* The Request source header value.
298298
* @var string REQUESTSOURCEHEADER
299299
*/
300-
const USERAGENT = "V3PHPSDK6.2.0";
300+
const USERAGENT = "V3PHPSDK6.2.1";
301301

302302
public static function getType($string, $return=1)
303303
{
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?php
2+
namespace QuickBooksOnline\API\Data;
3+
4+
/**
5+
* @xmlNamespace http://schema.intuit.com/finance/v3
6+
* @xmlType string
7+
* @xmlName IPPAgencyVerificationStatus
8+
* @var IPPAgencyVerificationStatus
9+
* @xmlDefinition
10+
Product: ALL
11+
Description: Subcontractor's agency verification status for CIS
12+
13+
*/
14+
class IPPAgencyVerificationStatus
15+
{
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('IPPAgencyVerificationStatus',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPAgencyVerificationStatus',$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+
* @xmlType value
44+
* @var string
45+
*/
46+
public $value;
47+
48+
} // end class IPPAgencyVerificationStatus
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?php
2+
namespace QuickBooksOnline\API\Data;
3+
4+
/**
5+
* @xmlNamespace http://schema.intuit.com/finance/v3
6+
* @xmlType
7+
* @xmlName IPPCustomExtensionAssociatedValues
8+
* @var IPPCustomExtensionAssociatedValues
9+
* @xmlDefinition
10+
Product: IES
11+
Description: Custom Extensions Values associated with entities like transactions
12+
13+
*/
14+
class IPPCustomExtensionAssociatedValues
15+
{
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('IPPCustomExtensionAssociatedValues',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPCustomExtensionAssociatedValues',$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: IES
46+
Description: Holds the key of the associated custom extension value. This key is a reference to the custom extension defined in Custom Extensions Service
47+
48+
* @xmlType element
49+
* @xmlNamespace http://schema.intuit.com/finance/v3
50+
* @xmlMinOccurs 0
51+
* @xmlName Key
52+
* @var string
53+
*/
54+
public $Key;
55+
/**
56+
* @Definition
57+
Product: IES
58+
Description: Holds the value of the associated custom extension value
59+
60+
* @xmlType element
61+
* @xmlNamespace http://schema.intuit.com/finance/v3
62+
* @xmlMinOccurs 0
63+
* @xmlName Value
64+
* @var string
65+
*/
66+
public $Value;
67+
68+
69+
} // end class IPPCustomExtensionAssociatedValues

src/Data/IPPCustomExtensions.php

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?php
2+
namespace QuickBooksOnline\API\Data;
3+
4+
/**
5+
* @xmlNamespace http://schema.intuit.com/finance/v3
6+
* @xmlType
7+
* @xmlName IPPCustomExtensions
8+
* @var IPPCustomExtensions
9+
* @xmlDefinition
10+
Product: IES
11+
Description: Custom extensions for user defined categories like dimensions
12+
13+
*/
14+
class IPPCustomExtensions
15+
{
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('IPPCustomExtensions',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPCustomExtensions',$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: IES
46+
Description: Holds type of the custom extension eg. DIMENSION
47+
48+
* @xmlType element
49+
* @xmlNamespace http://schema.intuit.com/finance/v3
50+
* @xmlMinOccurs 1
51+
* @xmlName ExtensionType
52+
* @var string
53+
*/
54+
public $ExtensionType;
55+
/**
56+
* @Definition
57+
Product: IES
58+
Description: Holds the key value pairs of the extension
59+
60+
* @xmlType element
61+
* @xmlNamespace http://schema.intuit.com/finance/v3
62+
* @xmlMinOccurs 0
63+
* @xmlMaxOccurs unbounded
64+
* @xmlName AssociatedValues
65+
* @var com\intuit\schema\finance\v3\IPPCustomExtensionAssociatedValues
66+
*/
67+
public $AssociatedValues;
68+
69+
70+
} // end class IPPCustomExtensions

src/Data/IPPLine.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,20 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
436436
* @var float
437437
*/
438438
public $HomeCostAmount;
439+
/**
440+
* @Definition
441+
Product: IES
442+
Description: Custom extensions of the transaction line
443+
Extensions like dimensions and other user defined categories
444+
445+
* @xmlType element
446+
* @xmlNamespace http://schema.intuit.com/finance/v3
447+
* @xmlMinOccurs 0
448+
* @xmlMaxOccurs unbounded
449+
* @xmlName CustomExtensions
450+
* @var com\intuit\schema\finance\v3\IPPCustomExtensions
451+
*/
452+
public $CustomExtensions;
439453

440454

441455
} // end class IPPLine

src/Data/IPPVendor.php

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,50 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
478478
* @var float
479479
*/
480480
public $CostRate;
481+
/**
482+
* @Definition
483+
Subcontractor's agency verification status for CIS
484+
485+
* @xmlType element
486+
* @xmlNamespace http://schema.intuit.com/finance/v3
487+
* @xmlMinOccurs 0
488+
* @xmlName AgencyVerificationStatus
489+
* @var com\intuit\schema\finance\v3\IPPAgencyVerificationStatus
490+
*/
491+
public $AgencyVerificationStatus;
492+
/**
493+
* @Definition
494+
Subcontractor's agency verification status detailed message for CIS
495+
496+
* @xmlType element
497+
* @xmlNamespace http://schema.intuit.com/finance/v3
498+
* @xmlMinOccurs 0
499+
* @xmlName AgencyVerificationStatusMsg
500+
* @var string
501+
*/
502+
public $AgencyVerificationStatusMsg;
503+
/**
504+
* @Definition
505+
Latest timestamp for subcontractor's agency verification for CIS
506+
507+
* @xmlType element
508+
* @xmlNamespace http://schema.intuit.com/finance/v3
509+
* @xmlMinOccurs 0
510+
* @xmlName AgencyVerificationTSUTC
511+
* @var string
512+
*/
513+
public $AgencyVerificationTSUTC;
514+
/**
515+
* @Definition
516+
Company registration number for CIS
517+
518+
* @xmlType element
519+
* @xmlNamespace http://schema.intuit.com/finance/v3
520+
* @xmlMinOccurs 0
521+
* @xmlName CompanyRegistrationNumber
522+
* @var string
523+
*/
524+
public $CompanyRegistrationNumber;
481525

482526

483527
} // end class IPPVendor

src/XSD/Finance.xsd

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6659,6 +6659,16 @@
66596659
The amount or equivalent paid or charged for a product/service when using multi-currency
66606660
</xs:documentation>
66616661
</xs:annotation>
6662+
</xs:element>
6663+
<xs:element name="CustomExtensions" type="CustomExtensions"
6664+
minOccurs="0" maxOccurs="unbounded">
6665+
<xs:annotation>
6666+
<xs:documentation>
6667+
Product: IES
6668+
Description: Custom extensions of the transaction line
6669+
Extensions like dimensions and other user defined categories
6670+
</xs:documentation>
6671+
</xs:annotation>
66626672
</xs:element>
66636673
</xs:sequence>
66646674
</xs:complexType>
@@ -14977,4 +14987,56 @@
1497714987
</xs:extension>
1497814988
</xs:complexContent>
1497914989
</xs:complexType>
14990+
<xs:complexType name="CustomExtensions">
14991+
<xs:annotation>
14992+
<xs:documentation>
14993+
Product: IES
14994+
Description: Custom extensions for user defined categories like dimensions
14995+
</xs:documentation>
14996+
</xs:annotation>
14997+
<xs:sequence>
14998+
<xs:element name="ExtensionType" type="xs:string" minOccurs="1">
14999+
<xs:annotation>
15000+
<xs:documentation>
15001+
Product: IES
15002+
Description: Holds type of the custom extension eg. DIMENSION
15003+
</xs:documentation>
15004+
</xs:annotation>
15005+
</xs:element>
15006+
<xs:element name="AssociatedValues" type="CustomExtensionAssociatedValues" minOccurs="0" maxOccurs="unbounded">
15007+
<xs:annotation>
15008+
<xs:documentation>
15009+
Product: IES
15010+
Description: Holds the key value pairs of the extension
15011+
</xs:documentation>
15012+
</xs:annotation>
15013+
</xs:element>
15014+
</xs:sequence>
15015+
</xs:complexType>
15016+
<xs:complexType name="CustomExtensionAssociatedValues">
15017+
<xs:annotation>
15018+
<xs:documentation>
15019+
Product: IES
15020+
Description: Custom Extensions Values associated with entities like transactions
15021+
</xs:documentation>
15022+
</xs:annotation>
15023+
<xs:sequence>
15024+
<xs:element name="Key" type="xs:string" minOccurs="0">
15025+
<xs:annotation>
15026+
<xs:documentation>
15027+
Product: IES
15028+
Description: Holds the key of the associated custom extension value. This key is a reference to the custom extension defined in Custom Extensions Service
15029+
</xs:documentation>
15030+
</xs:annotation>
15031+
</xs:element>
15032+
<xs:element name="Value" type="xs:string" minOccurs="0">
15033+
<xs:annotation>
15034+
<xs:documentation>
15035+
Product: IES
15036+
Description: Holds the value of the associated custom extension value
15037+
</xs:documentation>
15038+
</xs:annotation>
15039+
</xs:element>
15040+
</xs:sequence>
15041+
</xs:complexType>
1498015042
</xs:schema>

0 commit comments

Comments
 (0)