Skip to content

Commit

Permalink
Merge pull request #291 from intuit/make-schema-changes
Browse files Browse the repository at this point in the history
Make schema changes
  • Loading branch information
bsivalingam authored Mar 5, 2020
2 parents e9b4f7a + 79d32ad commit 1dc20d3
Show file tree
Hide file tree
Showing 28 changed files with 1,751 additions and 776 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 = "45";
const DEFAULT_SDK_MINOR_VERSION = "47";
const DEFAULT_LOGGINGLOCATION = "/tmp/IdsLogs";

const PHP_CLASS_PREFIX = 'IPP';
Expand Down Expand Up @@ -298,7 +298,7 @@ class CoreConstants
* The Request source header value.
* @var string REQUESTSOURCEHEADER
*/
const USERAGENT = "V3PHPSDK5.3.4";
const USERAGENT = "V3PHPSDK5.3.5";

public static function getType($string, $return=1)
{
Expand Down
15 changes: 15 additions & 0 deletions src/Data/IPPAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,21 @@ classification an account classified. Suggested examples of
* @var string
*/
public $AccountSubType;
/**
* @Definition
Product: QBO
Description: Internal use only: Account purpose indicates the mapping of the
chart-of-account to a purpose (eg: DEFAULT_QB_CASH_CHECKING_ACCOUNT). A chart-of-account
can have multiple account purpose mapping.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlMaxOccurs unbounded
* @xmlName AccountPurposes
* @var com\intuit\schema\finance\v3\IPPReferenceType
*/
public $AccountPurposes;
/**
* @br
* @ul
Expand Down
12 changes: 12 additions & 0 deletions src/Data/IPPBill.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
* @var com\intuit\schema\finance\v3\IPPPhysicalAddress
*/
public $ShipAddr;
/**
* @Definition
Product: QBO
Description: Vendor Mailing Address
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName VendorAddr
* @var com\intuit\schema\finance\v3\IPPPhysicalAddress
*/
public $VendorAddr;
/**
* @Definition
Product: ALL
Expand Down
12 changes: 12 additions & 0 deletions src/Data/IPPBillPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
* @var com\intuit\schema\finance\v3\IPPReferenceType
*/
public $VendorRef;
/**
* @Definition
Product: QBO
Description: Vendor Mailing Address
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName VendorAddr
* @var com\intuit\schema\finance\v3\IPPPhysicalAddress
*/
public $VendorAddr;
/**
* @Definition Optional AP account specification for bill
payment transactions. Most small businesses have a single AP
Expand Down
84 changes: 84 additions & 0 deletions src/Data/IPPCreditCardPaymentTxn.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?php
namespace QuickBooksOnline\API\Data;

/**
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlType Transaction
* @xmlName IPPCreditCardPaymentTxn
* @var IPPCreditCardPaymentTxn
* @xmlDefinition Financial transaction representing recording of a Credit Card balance payment.
*/
class IPPCreditCardPaymentTxn
extends IPPTransaction {

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


/**
* @Definition Credit Card account for which a payment is being entered.
Must be a Credit Card account.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName CreditCardAccountRef
* @var com\intuit\schema\finance\v3\IPPReferenceType
*/
public $CreditCardAccountRef;
/**
* @Definition Bank account used to pay the Credit Card balance.
Must be a Bank account.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName BankAccountRef
* @var com\intuit\schema\finance\v3\IPPReferenceType
*/
public $BankAccountRef;
/**
* @Definition Total amount of the payment. Denominated in the currency of the credit card account.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName Amount
* @var float
*/
public $Amount;
/**
* @Definition Internal use only: extension place holder for
CreditCardPayment
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlName CreditCardPaymentEx
* @var com\intuit\schema\finance\v3\IPPIntuitAnyType
*/
public $CreditCardPaymentEx;


} // end class IPPCreditCardPaymentTxn
8 changes: 4 additions & 4 deletions src/Data/IPPCreditMemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
public $RemainingCredit;
/**
* @Definition
Product: ALL
Description: A credit memo needs to have an invoice number to save successfully
Applicable for IN Region.
Product: ALL
Description: A credit memo needs to have an invoice number to save successfully
Applicable for IN Region.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
Expand Down
12 changes: 12 additions & 0 deletions src/Data/IPPInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
* @var string
*/
public $InvoiceLink;
/**
* @Definition
Product: QBO
Description: QBO: Message displayed to customer about payment Instructions. eg: bank account info.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName PaymentDetailsMessage
* @var string
*/
public $PaymentDetailsMessage;
/**
* @Definition
Product: QBO
Expand Down
2 changes: 1 addition & 1 deletion src/Data/IPPLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
which depends on the type of the line. It can represent the
received amount or received quantity
based on the line type detail. ReadOnly field for Purchase Order.
Applies to existing and new entities.
Applies to existing and new entities.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
Expand Down
22 changes: 11 additions & 11 deletions src/Data/IPPSalesTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
public $ShipAddr;
/**
* @Definition
Product: QBO
Description: Specifies whether
shipping address is in free-form or structured-form (city/state etc.)
Product: QBO
Description: Specifies whether
shipping address is in free-form or structured-form (city/state etc.)
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
Expand All @@ -147,13 +147,13 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
public $FreeFormAddress;
/**
* @Definition
Product: ALL
Description: QBO: Shipping from address
of the Invoice.[br]See [a
href="http://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0060_Financial_Management_Services_(v3)/01000_Using_Data_Service_Entities#Addresses"]Addresses[/a]
Description: QBW: Identifies the address where the goods are shipped
from. For transactions without shipping, it represents the address where the sale took place.
Product: ALL
Description: QBO: Shipping from address
of the Invoice.[br]See [a
href="http://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0060_Financial_Management_Services_(v3)/01000_Using_Data_Service_Entities#Addresses"]Addresses[/a]
Description: QBW: Identifies the address where the goods are shipped
from. For transactions without shipping, it represents the address where the sale took place.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
Expand Down
58 changes: 58 additions & 0 deletions src/Data/IPPTag.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php
namespace QuickBooksOnline\API\Data;

/**
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlType IntuitEntity
* @xmlName IPPTag
* @var IPPTag
* @xmlDefinition
Product: ALL
Description: A Tag applied to a transaction
*/
class IPPTag
extends IPPIntuitEntity {

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


/**
* @Definition
Product: ALL
Description: The name of the tag.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlMaxOccurs 1
* @xmlName Name
* @var string
*/
public $Name;


} // end class IPPTag
12 changes: 12 additions & 0 deletions src/Data/IPPTaxAgency.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,18 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
* @var com\intuit\schema\finance\v3\IPPIntuitAnyType
*/
public $TaxAgencyExt;
/**
* @Definition
Product: QBO
Description: Tax agency config. Identify if the agency is System generated or User created.
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
* @xmlName TaxAgencyConfig
* @var string
*/
public $TaxAgencyConfig;


} // end class IPPTaxAgency
8 changes: 4 additions & 4 deletions src/Data/IPPTaxCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ public function __construct($keyValInitializers=array(), $verbose=FALSE)
public $Active;
/**
* @Definition
Product: QBW
Description: True if Taxcode needs to be hidden. Active tax codes can be hidden from the display using this.
Filterable: ALL
Product: QBW
Description: True if Taxcode needs to be hidden. Active tax codes can be hidden from the display using this.
Filterable: ALL
* @xmlType element
* @xmlNamespace http://schema.intuit.com/finance/v3
* @xmlMinOccurs 0
Expand Down
Loading

0 comments on commit 1dc20d3

Please sign in to comment.