forked from LiveCarta/PayPal-PHP-SDK
Cleaned up Code Comments and added Type-Hinting to all Class/Functions closes #42
This commit is contained in:
@@ -1,88 +1,119 @@
|
||||
<?php
|
||||
|
||||
namespace PayPal\Api;
|
||||
|
||||
use PayPal\Common\PPModel;
|
||||
use PayPal\Rest\ApiContext;
|
||||
|
||||
class Details extends PPModel {
|
||||
/**
|
||||
* Amount being charged for shipping.
|
||||
*
|
||||
* @param string $shipping
|
||||
*/
|
||||
public function setShipping($shipping) {
|
||||
$this->shipping = $shipping;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Class Details
|
||||
*
|
||||
* @property string shipping
|
||||
* @property string subtotal
|
||||
* @property string tax
|
||||
* @property string fee
|
||||
*/
|
||||
class Details extends PPModel
|
||||
{
|
||||
/**
|
||||
* Set Shipping
|
||||
* Amount being charged for shipping
|
||||
*
|
||||
* @param string $shipping
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setShipping($shipping)
|
||||
{
|
||||
$this->shipping = $shipping;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Amount being charged for shipping.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getShipping() {
|
||||
return $this->shipping;
|
||||
}
|
||||
/**
|
||||
* Get Shipping
|
||||
* Amount being charged for shipping
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getShipping()
|
||||
{
|
||||
return $this->shipping;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Subtotal
|
||||
* Sub-total (amount) of items being paid for
|
||||
*
|
||||
* @param string $subtotal
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSubtotal($subtotal)
|
||||
{
|
||||
$this->subtotal = $subtotal;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sub-total (amount) of items being paid for.
|
||||
*
|
||||
* @param string $subtotal
|
||||
*/
|
||||
public function setSubtotal($subtotal) {
|
||||
$this->subtotal = $subtotal;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Get Subtotal
|
||||
* Sub-total (amount) of items being paid for
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSubtotal()
|
||||
{
|
||||
return $this->subtotal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sub-total (amount) of items being paid for.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSubtotal() {
|
||||
return $this->subtotal;
|
||||
}
|
||||
/**
|
||||
* Set Tax
|
||||
* Amount being charged as tax
|
||||
*
|
||||
* @param string $tax
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTax($tax)
|
||||
{
|
||||
$this->tax = $tax;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Tax
|
||||
* Amount being charged as tax
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTax()
|
||||
{
|
||||
return $this->tax;
|
||||
}
|
||||
|
||||
/**
|
||||
* Amount being charged as tax.
|
||||
*
|
||||
* @param string $tax
|
||||
*/
|
||||
public function setTax($tax) {
|
||||
$this->tax = $tax;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Amount being charged as tax.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTax() {
|
||||
return $this->tax;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Fee charged by PayPal. In case of a refund, this is the fee amount refunded to the original receipient of the payment.
|
||||
*
|
||||
* @param string $fee
|
||||
*/
|
||||
public function setFee($fee) {
|
||||
$this->fee = $fee;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fee charged by PayPal. In case of a refund, this is the fee amount refunded to the original receipient of the payment.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFee() {
|
||||
return $this->fee;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Fee
|
||||
* Fee charged by PayPal
|
||||
* In case of a refund, this is the fee amount refunded to the original receipient of the payment
|
||||
*
|
||||
* @param string $fee
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFee($fee)
|
||||
{
|
||||
$this->fee = $fee;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Fee
|
||||
* Fee charged by PayPal
|
||||
* In case of a refund, this is the fee amount refunded to the original receipient of the payment
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFee()
|
||||
{
|
||||
return $this->fee;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user