forked from LiveCarta/PayPal-PHP-SDK
Removed Deprecated Getter and Setters
- Removed Deprecated Getter Setters from all Model Classes - All Camelcase getters and setters are removed. Please use first letter uppercase syntax - E.g. instead of using get_notify_url(), use getNotifyUrl() instead
This commit is contained in:
@@ -158,31 +158,6 @@ class Invoice extends PayPalResourceModel
|
||||
return $this->merchant_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Information about the merchant who is sending the invoice.
|
||||
*
|
||||
* @deprecated Instead use setMerchantInfo
|
||||
*
|
||||
* @param \PayPal\Api\MerchantInfo $merchant_info
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchant_info($merchant_info)
|
||||
{
|
||||
$this->merchant_info = $merchant_info;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Information about the merchant who is sending the invoice.
|
||||
* @deprecated Instead use getMerchantInfo
|
||||
*
|
||||
* @return \PayPal\Api\MerchantInfo
|
||||
*/
|
||||
public function getMerchant_info()
|
||||
{
|
||||
return $this->merchant_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Email address of invoice recipient (required) and optional billing information. (Note: We currently only allow one recipient).
|
||||
*
|
||||
@@ -236,31 +211,6 @@ class Invoice extends PayPalResourceModel
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Email address of invoice recipient (required) and optional billing information. (Note: We currently only allow one recipient).
|
||||
*
|
||||
* @deprecated Instead use setBillingInfo
|
||||
*
|
||||
* @param \PayPal\Api\BillingInfo $billing_info
|
||||
* @return $this
|
||||
*/
|
||||
public function setBilling_info($billing_info)
|
||||
{
|
||||
$this->billing_info = $billing_info;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Email address of invoice recipient (required) and optional billing information. (Note: We currently only allow one recipient).
|
||||
* @deprecated Instead use getBillingInfo
|
||||
*
|
||||
* @return \PayPal\Api\BillingInfo
|
||||
*/
|
||||
public function getBilling_info()
|
||||
{
|
||||
return $this->billing_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shipping information for entities to whom items are being shipped.
|
||||
*
|
||||
@@ -284,31 +234,6 @@ class Invoice extends PayPalResourceModel
|
||||
return $this->shipping_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shipping information for entities to whom items are being shipped.
|
||||
*
|
||||
* @deprecated Instead use setShippingInfo
|
||||
*
|
||||
* @param \PayPal\Api\ShippingInfo $shipping_info
|
||||
* @return $this
|
||||
*/
|
||||
public function setShipping_info($shipping_info)
|
||||
{
|
||||
$this->shipping_info = $shipping_info;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shipping information for entities to whom items are being shipped.
|
||||
* @deprecated Instead use getShippingInfo
|
||||
*
|
||||
* @return \PayPal\Api\ShippingInfo
|
||||
*/
|
||||
public function getShipping_info()
|
||||
{
|
||||
return $this->shipping_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* List of items included in the invoice. 100 items max per invoice.
|
||||
*
|
||||
@@ -385,31 +310,6 @@ class Invoice extends PayPalResourceModel
|
||||
return $this->invoice_date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Date on which the invoice was enabled. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
|
||||
*
|
||||
* @deprecated Instead use setInvoiceDate
|
||||
*
|
||||
* @param string $invoice_date
|
||||
* @return $this
|
||||
*/
|
||||
public function setInvoice_date($invoice_date)
|
||||
{
|
||||
$this->invoice_date = $invoice_date;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Date on which the invoice was enabled. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
|
||||
* @deprecated Instead use getInvoiceDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getInvoice_date()
|
||||
{
|
||||
return $this->invoice_date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional field to pass payment deadline for the invoice. Either term_type or due_date can be passed, but not both.
|
||||
*
|
||||
@@ -433,31 +333,6 @@ class Invoice extends PayPalResourceModel
|
||||
return $this->payment_term;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional field to pass payment deadline for the invoice. Either term_type or due_date can be passed, but not both.
|
||||
*
|
||||
* @deprecated Instead use setPaymentTerm
|
||||
*
|
||||
* @param \PayPal\Api\PaymentTerm $payment_term
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayment_term($payment_term)
|
||||
{
|
||||
$this->payment_term = $payment_term;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional field to pass payment deadline for the invoice. Either term_type or due_date can be passed, but not both.
|
||||
* @deprecated Instead use getPaymentTerm
|
||||
*
|
||||
* @return \PayPal\Api\PaymentTerm
|
||||
*/
|
||||
public function getPayment_term()
|
||||
{
|
||||
return $this->payment_term;
|
||||
}
|
||||
|
||||
/**
|
||||
* Invoice level discount in percent or amount.
|
||||
*
|
||||
@@ -504,31 +379,6 @@ class Invoice extends PayPalResourceModel
|
||||
return $this->shipping_cost;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shipping cost in percent or amount.
|
||||
*
|
||||
* @deprecated Instead use setShippingCost
|
||||
*
|
||||
* @param \PayPal\Api\ShippingCost $shipping_cost
|
||||
* @return $this
|
||||
*/
|
||||
public function setShipping_cost($shipping_cost)
|
||||
{
|
||||
$this->shipping_cost = $shipping_cost;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shipping cost in percent or amount.
|
||||
* @deprecated Instead use getShippingCost
|
||||
*
|
||||
* @return \PayPal\Api\ShippingCost
|
||||
*/
|
||||
public function getShipping_cost()
|
||||
{
|
||||
return $this->shipping_cost;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom amount applied on an invoice. If a label is included then the amount cannot be empty.
|
||||
*
|
||||
@@ -575,31 +425,6 @@ class Invoice extends PayPalResourceModel
|
||||
return $this->tax_calculated_after_discount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether tax is calculated before or after a discount. If false (the default), the tax is calculated before a discount. If true, the tax is calculated after a discount.
|
||||
*
|
||||
* @deprecated Instead use setTaxCalculatedAfterDiscount
|
||||
*
|
||||
* @param bool $tax_calculated_after_discount
|
||||
* @return $this
|
||||
*/
|
||||
public function setTax_calculated_after_discount($tax_calculated_after_discount)
|
||||
{
|
||||
$this->tax_calculated_after_discount = $tax_calculated_after_discount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether tax is calculated before or after a discount. If false (the default), the tax is calculated before a discount. If true, the tax is calculated after a discount.
|
||||
* @deprecated Instead use getTaxCalculatedAfterDiscount
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getTax_calculated_after_discount()
|
||||
{
|
||||
return $this->tax_calculated_after_discount;
|
||||
}
|
||||
|
||||
/**
|
||||
* A flag indicating whether the unit price includes tax. Default is false
|
||||
*
|
||||
@@ -623,31 +448,6 @@ class Invoice extends PayPalResourceModel
|
||||
return $this->tax_inclusive;
|
||||
}
|
||||
|
||||
/**
|
||||
* A flag indicating whether the unit price includes tax. Default is false
|
||||
*
|
||||
* @deprecated Instead use setTaxInclusive
|
||||
*
|
||||
* @param bool $tax_inclusive
|
||||
* @return $this
|
||||
*/
|
||||
public function setTax_inclusive($tax_inclusive)
|
||||
{
|
||||
$this->tax_inclusive = $tax_inclusive;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A flag indicating whether the unit price includes tax. Default is false
|
||||
* @deprecated Instead use getTaxInclusive
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getTax_inclusive()
|
||||
{
|
||||
return $this->tax_inclusive;
|
||||
}
|
||||
|
||||
/**
|
||||
* General terms of the invoice. 4000 characters max.
|
||||
*
|
||||
@@ -717,31 +517,6 @@ class Invoice extends PayPalResourceModel
|
||||
return $this->merchant_memo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bookkeeping memo that is private to the merchant. 150 characters max.
|
||||
*
|
||||
* @deprecated Instead use setMerchantMemo
|
||||
*
|
||||
* @param string $merchant_memo
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchant_memo($merchant_memo)
|
||||
{
|
||||
$this->merchant_memo = $merchant_memo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bookkeeping memo that is private to the merchant. 150 characters max.
|
||||
* @deprecated Instead use getMerchantMemo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchant_memo()
|
||||
{
|
||||
return $this->merchant_memo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Full URL of an external image to use as the logo. 4000 characters max.
|
||||
*
|
||||
@@ -766,31 +541,6 @@ class Invoice extends PayPalResourceModel
|
||||
return $this->logo_url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Full URL of an external image to use as the logo. 4000 characters max.
|
||||
*
|
||||
* @deprecated Instead use setLogoUrl
|
||||
*
|
||||
* @param string $logo_url
|
||||
* @return $this
|
||||
*/
|
||||
public function setLogo_url($logo_url)
|
||||
{
|
||||
$this->logo_url = $logo_url;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Full URL of an external image to use as the logo. 4000 characters max.
|
||||
* @deprecated Instead use getLogoUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLogo_url()
|
||||
{
|
||||
return $this->logo_url;
|
||||
}
|
||||
|
||||
/**
|
||||
* The total amount of the invoice.
|
||||
*
|
||||
@@ -814,31 +564,6 @@ class Invoice extends PayPalResourceModel
|
||||
return $this->total_amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* The total amount of the invoice.
|
||||
*
|
||||
* @deprecated Instead use setTotalAmount
|
||||
*
|
||||
* @param \PayPal\Api\Currency $total_amount
|
||||
* @return $this
|
||||
*/
|
||||
public function setTotal_amount($total_amount)
|
||||
{
|
||||
$this->total_amount = $total_amount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The total amount of the invoice.
|
||||
* @deprecated Instead use getTotalAmount
|
||||
*
|
||||
* @return \PayPal\Api\Currency
|
||||
*/
|
||||
public function getTotal_amount()
|
||||
{
|
||||
return $this->total_amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* List of payment details for the invoice.
|
||||
*
|
||||
@@ -892,31 +617,6 @@ class Invoice extends PayPalResourceModel
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List of payment details for the invoice.
|
||||
*
|
||||
* @deprecated Instead use setPaymentDetails
|
||||
*
|
||||
* @param \PayPal\Api\PaymentDetail $payment_details
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayment_details($payment_details)
|
||||
{
|
||||
$this->payment_details = $payment_details;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* List of payment details for the invoice.
|
||||
* @deprecated Instead use getPaymentDetails
|
||||
*
|
||||
* @return \PayPal\Api\PaymentDetail
|
||||
*/
|
||||
public function getPayment_details()
|
||||
{
|
||||
return $this->payment_details;
|
||||
}
|
||||
|
||||
/**
|
||||
* List of refund details for the invoice.
|
||||
*
|
||||
@@ -970,31 +670,6 @@ class Invoice extends PayPalResourceModel
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List of refund details for the invoice.
|
||||
*
|
||||
* @deprecated Instead use setRefundDetails
|
||||
*
|
||||
* @param \PayPal\Api\RefundDetail $refund_details
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefund_details($refund_details)
|
||||
{
|
||||
$this->refund_details = $refund_details;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* List of refund details for the invoice.
|
||||
* @deprecated Instead use getRefundDetails
|
||||
*
|
||||
* @return \PayPal\Api\RefundDetail
|
||||
*/
|
||||
public function getRefund_details()
|
||||
{
|
||||
return $this->refund_details;
|
||||
}
|
||||
|
||||
/**
|
||||
* Audit information for the invoice.
|
||||
*
|
||||
@@ -1041,31 +716,6 @@ class Invoice extends PayPalResourceModel
|
||||
return $this->additional_data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Any miscellaneous invoice data. 4000 characters max.
|
||||
*
|
||||
* @deprecated Instead use setAdditionalData
|
||||
*
|
||||
* @param string $additional_data
|
||||
* @return $this
|
||||
*/
|
||||
public function setAdditional_data($additional_data)
|
||||
{
|
||||
$this->additional_data = $additional_data;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Any miscellaneous invoice data. 4000 characters max.
|
||||
* @deprecated Instead use getAdditionalData
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAdditional_data()
|
||||
{
|
||||
return $this->additional_data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new invoice by passing the details for the invoice, including the merchant_info, to the request URI.
|
||||
*
|
||||
@@ -1288,20 +938,6 @@ class Invoice extends PayPalResourceModel
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use getAll instead
|
||||
*
|
||||
* List some or all invoices for a merchant according to optional query string parameters specified.
|
||||
*
|
||||
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
|
||||
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
|
||||
* @return InvoiceSearchResponse
|
||||
*/
|
||||
public static function get_all($apiContext = null, $restCall = null)
|
||||
{
|
||||
return self::getAll(null, $apiContext, $restCall);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fully update an invoice by passing the invoice ID to the request URI. In addition, pass a complete invoice object in the request JSON. Partial updates are not supported.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user