Skip to content

Commit

Permalink
Merge pull request #416 from intuit/v6.0.2
Browse files Browse the repository at this point in the history
Release v6.0.2 : Minor Version 62
  • Loading branch information
abisalehalliprasan authored Aug 18, 2021
2 parents 32adb10 + 1363235 commit 036e8f1
Show file tree
Hide file tree
Showing 11 changed files with 16,245 additions and 15,929 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 = "59";
const DEFAULT_SDK_MINOR_VERSION = "62";
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.0.1";
const USERAGENT = "V3PHPSDK6.0.2";

public static function getType($string, $return=1)
{
Expand Down
45 changes: 45 additions & 0 deletions src/Data/IPPFinancingProductTypeEnum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
namespace QuickBooksOnline\API\Data;

/**
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlType string
* @xmlName IPPFinancingProductTypeEnum
* @var IPPFinancingProductTypeEnum
* @xmlDefinition Enumeration of financing Product Type applicable to Invoice
*/
class IPPFinancingProductTypeEnum
{

/**
* 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('IPPFinancingProductTypeEnum',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPFinancingProductTypeEnum',$initPropName))
{
$this->{$initPropName} = $initPropVal;
}
else
{
if ($verbose)
echo "Property does not exist ($initPropName) in class (".get_class($this).")";
}
}
}

/**
* @xmlType value
* @var string
*/
public $value;

} // end class IPPFinancingProductTypeEnum
48 changes: 48 additions & 0 deletions src/Data/IPPInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,54 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
* @var boolean
*/
public $SchedulePayEligible;
/**
* @Definition
Product: QBO
Description: Unique identifier for scheduled payment for invoice. Used to indicate if invoice has scheduled payment or not.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName ScheduledPaymentId
* @var string
*/
public $ScheduledPaymentId;
/**
* @Definition
Product: QBO
Description: Internal use only: Indicates whether gratuity is enabled for this invoice.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName GratuityEnabled
* @var boolean
*/
public $GratuityEnabled;
/**
* @Definition
Product: QBO
Description: Internal use only: Indicates invoice financing type.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName FinancingProductType
* @var com\intuit\schema\finance\v3\IPPFinancingProductTypeEnum
*/
public $FinancingProductType;
/**
* @Definition
Product: QBO
Description: Internal use only: Subscription payment setting for a Recurring Invoice
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName SubscriptionPaymentsSetting
* @var com\intuit\schema\finance\v3\IPPSubscriptionPaymentsSettingEnum
*/
public $SubscriptionPaymentsSetting;


} // end class IPPInvoice
15 changes: 15 additions & 0 deletions src/Data/IPPSalesTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,21 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
* @var boolean
*/
public $ApplyTaxAfterDiscount;
/**
* @Definition
Product: QBO
Description: During total tax override (when user specifies TxnTaxDetail.TotalTax),
if this is set to true, system overrides all taxes including the shipping tax,
otherwise (if false or null) only non shipping taxes are overridden and original shipping
tax is added to the total tax.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName ShippingTaxIncludedInTotalTax
* @var boolean
*/
public $ShippingTaxIncludedInTotalTax;
/**
* @Definition
Product: QBW
Expand Down
45 changes: 45 additions & 0 deletions src/Data/IPPSubscriptionPaymentsSettingEnum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
namespace QuickBooksOnline\API\Data;

/**
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlType string
* @xmlName IPPSubscriptionPaymentsSettingEnum
* @var IPPSubscriptionPaymentsSettingEnum
* @xmlDefinition Enumeration of subscription payment setting applicable to Invoice
*/
class IPPSubscriptionPaymentsSettingEnum
{

/**
* 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('IPPSubscriptionPaymentsSettingEnum',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPSubscriptionPaymentsSettingEnum',$initPropName))
{
$this->{$initPropName} = $initPropVal;
}
else
{
if ($verbose)
echo "Property does not exist ($initPropName) in class (".get_class($this).")";
}
}
}

/**
* @xmlType value
* @var string
*/
public $value;

} // end class IPPSubscriptionPaymentsSettingEnum
12 changes: 12 additions & 0 deletions src/Data/IPPTaxRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
* @var com\intuit\schema\finance\v3\IPPIntuitAnyType
*/
public $TaxRateEx;
/**
* @Definition
Product: QBO
Description: OriginalTaxRate represents the tax rate from which the current tax rate originated
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName OriginalTaxRate
* @var com\intuit\schema\finance\v3\IPPReferenceType
*/
public $OriginalTaxRate;


} // end class IPPTaxRate
21 changes: 21 additions & 0 deletions src/Data/IPPTimeActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,16 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
* @var integer
*/
public $Minutes;
/**
* @Definition Seconds worked; valid values are 0 - 59.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName Seconds
* @var integer
*/
public $Seconds;
/**
* @Definition Hours of break taken between start time and end
time.
Expand All @@ -235,6 +245,17 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
* @var integer
*/
public $BreakMinutes;
/**
* @Definition Seconds of break taken between start time and
end time. Valid values are 0 - 59.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName BreakSeconds
* @var integer
*/
public $BreakSeconds;
/**
* @Definition Time work started.
[b]QuickBooks Notes[/b][br /]
Expand Down
1 change: 1 addition & 0 deletions src/ReportService/ReportName.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ class ReportName
const JOURNALREPORT = "JournalReport";
const JOURNALREPORTFR = "JournalReportFR";
const TRIALBALANCEFR = "TrialBalanceFR";
const FECREPORT = "FECReport";
}
47 changes: 47 additions & 0 deletions src/ReportService/ReportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ class ReportService
private $subcol_pct_exp = null;
private $adjusted_gain_loss = null;
private $showrows = null;
private $add_due_date = null;
private $attachmentType = null;

public function getAdjustedGainLoss(){
return $this->adjusted_gain_loss;
Expand Down Expand Up @@ -980,6 +982,44 @@ public function setShowRows($showrows)
return $this;
}

/**
* @param null $add_due_date
*
* @return $this
*/
public function setDueDate($add_due_date)
{
$this->add_due_date = $add_due_date;
return $this;
}

/**
* @return null
*/
public function getDueDate()
{
return $this->add_due_date;
}

/**
* @param null $attachmentType
*
* @return $this
*/
public function setAttachmentType($attachmentType)
{
$this->attachmentType = $attachmentType;
return $this;
}

/**
* @return null
*/
public function getAttachmentType()
{
return $this->attachmentType;
}

/**
* Returns serializer for response objects
* @return IEntitySerializer
Expand Down Expand Up @@ -1217,6 +1257,13 @@ private function getReportQueryParameters()
array_push($uriParameterList, ["showrows", $this->getShowRows()]);
}

if (!is_null($this->add_due_date)) {
array_push($uriParameterList, ["add_due_date", $this->getDueDate()]);
}

if (!is_null($this->attachmentType)) {
array_push($uriParameterList, ["attachmentType", $this->getAttachmentType()]);
}

foreach ($uriParameterList as $uriParameter) {
if (strlen($uriParameterString) > 0) {
Expand Down
Loading

0 comments on commit 036e8f1

Please sign in to comment.