Skip to content

Commit

Permalink
Merge pull request #470 from sujitharamadass/Feb23Release
Browse files Browse the repository at this point in the history
MinorVersion 68 release
  • Loading branch information
sujitharamadass authored Feb 6, 2023
2 parents 2ab302e + 2d52978 commit 20ce804
Show file tree
Hide file tree
Showing 7 changed files with 223 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Core/CoreConstants.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class CoreConstants
{
//Set the default minor version
const DEFAULT_SDK_MINOR_VERSION = "65";
const DEFAULT_SDK_MINOR_VERSION = "68";
const DEFAULT_LOGGINGLOCATION = "/tmp/IdsLogs";

const PHP_CLASS_PREFIX = 'IPP';
Expand Down Expand Up @@ -297,7 +297,7 @@ class CoreConstants
* The Request source header value.
* @var string REQUESTSOURCEHEADER
*/
const USERAGENT = "V3PHPSDK6.1.0";
const USERAGENT = "V3PHPSDK6.1.1";

public static function getType($string, $return=1)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Data/IPPAccountSubTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @var IPPAccountSubTypeEnum
* @xmlDefinition
Product: QBO
Description: Use Other Debtors to group Accounts Receivable other than those from customers.
Description: Use Rent a room relief - Relief Claimed for relief claimed for rented room for landlords
* @xmlb Share Application Money Pending Allotment
*/
Expand Down
14 changes: 14 additions & 0 deletions src/Data/IPPLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,20 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
* @var com\intuit\schema\finance\v3\IPPIntuitAnyType
*/
public $LineEx;
/**
* @Definition
Product: ALL
Description: Project identifier
References to the project this line
is associated with
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName ProjectRef
* @var com\intuit\schema\finance\v3\IPPReferenceType
*/
public $ProjectRef;


} // end class IPPLine
82 changes: 82 additions & 0 deletions src/Data/IPPMXGlobalInfo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?php
namespace QuickBooksOnline\API\Data;

/**
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlType
* @xmlName IPPMXGlobalInfo
* @var IPPMXGlobalInfo
* @xmlDefinition
Product: QBO
Description: Global invoice data of a transaction which is required by CFDI4.0 in Mexico.
Visit http://omawww.sat.gob.mx/tramitesyservicios/Paginas/anexo_20_version3-3.htm and find the catalogues that contain the accepted values of Exportation, Periodicity, and Year.
*/
class IPPMXGlobalInfo
{

/**
* Initializes this object, optionally with pre-defined property values
*
* Initializes this object and it's property members, using the dictionary
* of key/value pairs passed as an optional argument.
*
* @param dictionary $keyValInitializers key/value pairs to be populated into object's properties
* @param boolean $verbose specifies whether object should echo warnings
*/
public function __construct($keyValInitializers=array(), $verbose=FALSE)
{
foreach($keyValInitializers as $initPropName => $initPropVal)
{
if (property_exists('IPPMXGlobalInfo',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPMXGlobalInfo',$initPropName))
{
$this->{$initPropName} = $initPropVal;
}
else
{
if ($verbose)
echo "Property does not exist ($initPropName) in class (".get_class($this).")";
}
}
}


/**
* @Definition
Product: QBO
Description: Periodicity of global invoice data which is required by CFDI4.0 in Mexico.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName Periodicity
* @var string
*/
public $Periodicity;
/**
* @Definition
Product: QBO
Description: Month of global invoice data which is required by CFDI4.0 in Mexico.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName Month
* @var string
*/
public $Month;
/**
* @Definition
Product: QBO
Description: Year of global invoice data which is required by CFDI4.0 in Mexico.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName Year
* @var string
*/
public $Year;


} // end class IPPMXGlobalInfo
14 changes: 14 additions & 0 deletions src/Data/IPPTimeActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,20 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
* @var com\intuit\schema\finance\v3\IPPReferenceType
*/
public $PayrollItemRef;
/**
* @Definition
Product: ALL
Description: Project identifier
References to the project this line
is associated with
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName ProjectRef
* @var com\intuit\schema\finance\v3\IPPReferenceType
*/
public $ProjectRef;
/**
* @Definition Billable status of the time recorded
Expand Down
14 changes: 14 additions & 0 deletions src/Data/IPPTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,20 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
* @var com\intuit\schema\finance\v3\IPPRecurringInfo
*/
public $RecurringInfo;
/**
* @Definition
Product: ALL
Description: Project identifier
References to the project this transaction
is associated with
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName ProjectRef
* @var com\intuit\schema\finance\v3\IPPReferenceType
*/
public $ProjectRef;


} // end class IPPTransaction
96 changes: 96 additions & 0 deletions src/XSD/Finance.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -2936,6 +2936,70 @@
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="RentARoomReliefRentsReceived">
<xs:annotation>
<xs:documentation>
Product: QBO
Description: Use Rent a room relief - Rents Received for rents receivable for UK landlords
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="UkTaxesWithheld">
<xs:annotation>
<xs:documentation>
Product: QBO
Description: Use UK Taxes withheld for tax withheld from non-resident landlords
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="ForeignTaxesIncurred">
<xs:annotation>
<xs:documentation>
Product: QBO
Description: Use Foreign Tax paid for foreign taxes for landlords
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="PremiumsReceived">
<xs:annotation>
<xs:documentation>
Product: QBO
Description: Use Premiums Received for premiums for the Grant of a lease for landlords
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="PremiumsPaid">
<xs:annotation>
<xs:documentation>
Product: QBO
Description: Use Premiums Paid for reverse premiums and inducements for landlords
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="FinanceCostsRestricted">
<xs:annotation>
<xs:documentation>
Product: QBO
Description: Use Finance Costs Restricted for residential property interest charged on finance for landlords
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="CarriedForwardRelief">
<xs:annotation>
<xs:documentation>
Product: QBO
Description: Use Carried Forward Relief for carried forward residential property interest charged on finance for landlords
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="RentARoomReliefReliefClaimed">
<xs:annotation>
<xs:documentation>
Product: QBO
Description: Use Rent a room relief - Relief Claimed for relief claimed for rented room for landlords
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="APCreditCardOperationEnum">
Expand Down Expand Up @@ -4954,6 +5018,17 @@
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ProjectRef" type="ReferenceType"
minOccurs="0">
<xs:annotation>
<xs:documentation>
Product: ALL
Description: Project identifier
References to the project this transaction
is associated with
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
Expand Down Expand Up @@ -6527,6 +6602,16 @@
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ProjectRef" type="ReferenceType" minOccurs="0">
<xs:annotation>
<xs:documentation>
Product: ALL
Description: Project identifier
References to the project this line
is associated with
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Tag">
Expand Down Expand Up @@ -12022,6 +12107,17 @@
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ProjectRef" type="ReferenceType"
minOccurs="0">
<xs:annotation>
<xs:documentation>
Product: ALL
Description: Project identifier
References to the project this line
is associated with
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BillableStatus" type="BillableStatusEnum"
minOccurs="0">
<xs:annotation>
Expand Down

0 comments on commit 20ce804

Please # to comment.