Skip to content

Commit 0c28bc3

Browse files
Merge pull request #533 from ManikaSaiKiran/phpJanRelease25
Updates for minorversion = 75 schema
2 parents b6c8ab7 + 4fcb887 commit 0c28bc3

File tree

7 files changed

+108
-5
lines changed

7 files changed

+108
-5
lines changed

src/Core/CoreConstants.php

Lines changed: 2 additions & 2 deletions
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 = "73";
10+
const DEFAULT_SDK_MINOR_VERSION = "75";
1111
const DEFAULT_LOGGINGLOCATION = "/tmp/IdsLogs";
1212

1313
const PHP_CLASS_PREFIX = 'IPP';
@@ -297,7 +297,7 @@ class CoreConstants
297297
* The Request source header value.
298298
* @var string REQUESTSOURCEHEADER
299299
*/
300-
const USERAGENT = "V3PHPSDK6.1.4";
300+
const USERAGENT = "V3PHPSDK6.2.0";
301301

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

src/Core/HttpClients/IntuitResponse.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ private function setFaultHandler($body, $httpResponseCode, $tid){
144144
//A standard message for now.
145145
//TO DO: Wait V3 Team to provide different message for different response.
146146
$this->faultHandler->setHelpMsg("Invalid auth/bad request (got a " . $httpResponseCode . ", expected HTTP/1.1 20X or a redirect)");
147-
if($this->getResponseContentType() != null && (strcasecmp($this->getResponseContentType(), CoreConstants::CONTENTTYPE_APPLICATIONXML) == 0 ||
148-
strcasecmp($this->getResponseContentType(), CoreConstants::CONTENTTYPE_TEXTXML) == 0)){
147+
if($this->getResponseContentType() != null &&
148+
( strcasecmp($this->getResponseContentType(), CoreConstants::CONTENTTYPE_APPLICATIONXML) == 0 ||
149+
strcasecmp($this->getResponseContentType(), CoreConstants::CONTENTTYPE_TEXTXML) == 0||
150+
strcasecmp($this->getResponseContentType(), CoreConstants::CONTENTTYPE_APPLICATIONXML_WITH_CHARSET) == 0)){
149151
$this->faultHandler->parseResponse($body);
150152
}
151153
}else{

src/Data/IPPAttachable.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,16 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
192192
* @var com\intuit\schema\finance\v3\IPPIntuitAnyType
193193
*/
194194
public $AttachableEx;
195+
/**
196+
* @Definition DocumentId of the uploaded attachment from Document Service
197+
198+
* @xmlType element
199+
* @xmlNamespace http://schema.intuit.com/finance/v3
200+
* @xmlMinOccurs 0
201+
* @xmlName documentId
202+
* @var string
203+
*/
204+
public $documentId;
195205

196206

197207
} // end class IPPAttachable

src/Data/IPPEntityStatusEnum.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
* @xmlType string
77
* @xmlName IPPEntityStatusEnum
88
* @var IPPEntityStatusEnum
9-
* @xmlDefinition Object failed to sync to QuickBooks
9+
* @xmlDefinition
10+
Product: ALL
11+
Description: Possible Status of an Entity.
12+
1013
*/
1114
class IPPEntityStatusEnum
1215
{

src/Data/IPPPayment.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
202202
* @var boolean
203203
*/
204204
public $ProcessPayment;
205+
/**
206+
* @Definition
207+
Product: ALL
208+
Description: Current only valid value is Prepayment.
209+
210+
* @xmlType element
211+
* @xmlNamespace http://schema.intuit.com/finance/v3
212+
* @xmlMinOccurs 0
213+
* @xmlName PaymentExtendedType
214+
* @var com\intuit\schema\finance\v3\IPPPaymentExtendedTypeEnum
215+
*/
216+
public $PaymentExtendedType;
205217
/**
206218
* @Definition Internal use only: extension place holder for
207219
Payment
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
namespace QuickBooksOnline\API\Data;
3+
4+
/**
5+
* @xmlNamespace http://schema.intuit.com/finance/v3
6+
* @xmlType string
7+
* @xmlName IPPPaymentExtendedTypeEnum
8+
* @var IPPPaymentExtendedTypeEnum
9+
* @xmlDefinition
10+
Product: ALL
11+
Description: Enumeration of extended
12+
payment types.
13+
14+
*/
15+
class IPPPaymentExtendedTypeEnum
16+
{
17+
18+
/**
19+
* Initializes this object, optionally with pre-defined property values
20+
*
21+
* Initializes this object and it's property members, using the dictionary
22+
* of key/value pairs passed as an optional argument.
23+
*
24+
* @param dictionary $keyValInitializers key/value pairs to be populated into object's properties
25+
* @param boolean $verbose specifies whether object should echo warnings
26+
*/
27+
public function __construct($keyValInitializers=array(), $verbose=FALSE)
28+
{
29+
foreach($keyValInitializers as $initPropName => $initPropVal)
30+
{
31+
if (property_exists('IPPPaymentExtendedTypeEnum',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPPaymentExtendedTypeEnum',$initPropName))
32+
{
33+
$this->{$initPropName} = $initPropVal;
34+
}
35+
else
36+
{
37+
if ($verbose)
38+
echo "Property does not exist ($initPropName) in class (".get_class($this).")";
39+
}
40+
}
41+
}
42+
43+
/**
44+
* @xmlType value
45+
* @var string
46+
*/
47+
public $value;
48+
49+
} // end class IPPPaymentExtendedTypeEnum

src/XSD/Finance.xsd

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3371,6 +3371,18 @@
33713371
<xs:enumeration value="Other" />
33723372
</xs:restriction>
33733373
</xs:simpleType>
3374+
<xs:simpleType name="PaymentExtendedTypeEnum">
3375+
<xs:annotation>
3376+
<xs:documentation>
3377+
Product: ALL
3378+
Description: Enumeration of extended
3379+
payment types.
3380+
</xs:documentation>
3381+
</xs:annotation>
3382+
<xs:restriction base="xs:string">
3383+
<xs:enumeration value="Prepayment" />
3384+
</xs:restriction>
3385+
</xs:simpleType>
33743386
<xs:simpleType name="BillPaymentTypeEnum">
33753387
<xs:annotation>
33763388
<xs:documentation>
@@ -9770,6 +9782,15 @@
97709782
</xs:documentation>
97719783
</xs:annotation>
97729784
</xs:element>
9785+
<xs:element name="PaymentExtendedType" type="PaymentExtendedTypeEnum"
9786+
minOccurs="0">
9787+
<xs:annotation>
9788+
<xs:documentation>
9789+
Product: ALL
9790+
Description: Current only valid value is Prepayment.
9791+
</xs:documentation>
9792+
</xs:annotation>
9793+
</xs:element>
97739794
<xs:element name="PaymentEx" type="IntuitAnyType"
97749795
minOccurs="0">
97759796
<xs:annotation>
@@ -14039,6 +14060,12 @@
1403914060
</xs:documentation>
1404014061
</xs:annotation>
1404114062
</xs:element>
14063+
<xs:element name="documentId" type="xs:string" minOccurs="0">
14064+
<xs:annotation>
14065+
<xs:documentation>DocumentId of the uploaded attachment from Document Service
14066+
</xs:documentation>
14067+
</xs:annotation>
14068+
</xs:element>
1404214069
</xs:sequence>
1404314070
</xs:extension>
1404414071
</xs:complexContent>

0 commit comments

Comments
 (0)