Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Update Payouts to v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcoffey committed Oct 13, 2016
1 parent 3f98d9f commit 0f3a5e6
Show file tree
Hide file tree
Showing 12 changed files with 165 additions and 141 deletions.
8 changes: 4 additions & 4 deletions lib/PayPal/Api/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class Currency extends PayPalModel
{
/**
* 3 letter currency code as defined by ISO 4217.
* 3 letter currency code
*
* @param string $currency
*
Expand All @@ -32,7 +32,7 @@ public function setCurrency($currency)
}

/**
* 3 letter currency code as defined by ISO 4217.
* 3 letter currency code
*
* @return string
*/
Expand All @@ -42,7 +42,7 @@ public function getCurrency()
}

/**
* amount up to N digit after the decimals separator as defined in ISO 4217 for the appropriate currency code.
* amount upto 2 decimals represented as string
*
* @param string|double $value
*
Expand All @@ -57,7 +57,7 @@ public function setValue($value)
}

/**
* amount up to N digit after the decimals separator as defined in ISO 4217 for the appropriate currency code.
* amount upto 2 decimals represented as string
*
* @return string
*/
Expand Down
119 changes: 59 additions & 60 deletions lib/PayPal/Api/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Error extends PayPalModel
* Human readable, unique name of the error.
*
* @param string $name
*
*
* @return $this
*/
public function setName($name)
Expand Down Expand Up @@ -68,11 +68,59 @@ public function getPurchaseUnitReferenceId()
return $this->purchase_unit_reference_id;
}

/**
* PayPal internal error code.
*
* @deprecated Not publicly available
* @param string $code
*
* @return $this
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}

/**
* PayPal internal error code.
*
* @deprecated Not publicly available
* @return string
*/
public function getCode()
{
return $this->code;
}

/**
* PayPal internal identifier used for correlation purposes.
*
* @param string $debug_id
*
* @return $this
*/
public function setDebugId($debug_id)
{
$this->debug_id = $debug_id;
return $this;
}

/**
* PayPal internal identifier used for correlation purposes.
*
* @return string
*/
public function getDebugId()
{
return $this->debug_id;
}

/**
* Message describing the error.
*
* @param string $message
*
*
* @return $this
*/
public function setMessage($message)
Expand All @@ -92,35 +140,33 @@ public function getMessage()
}

/**
* PayPal internal error code.
*
* @deprecated Not publicly available
* @param string $code
* URI for detailed information related to this error for the developer.
*
* @param string $information_link
*
* @return $this
*/
public function setCode($code)
public function setInformationLink($information_link)
{
$this->code = $code;
$this->information_link = $information_link;
return $this;
}

/**
* PayPal internal error code.
* URI for detailed information related to this error for the developer.
*
* @deprecated Not publicly available
* @return string
*/
public function getCode()
public function getInformationLink()
{
return $this->code;
return $this->information_link;
}

/**
* Additional details of the error
*
* @param \PayPal\Api\ErrorDetails[] $details
*
*
* @return $this
*/
public function setDetails($details)
Expand Down Expand Up @@ -219,52 +265,6 @@ public function getFmfDetails()
return $this->fmf_details;
}

/**
* URI for detailed information related to this error for the developer.
*
* @param string $information_link
*
* @return $this
*/
public function setInformationLink($information_link)
{
$this->information_link = $information_link;
return $this;
}

/**
* URI for detailed information related to this error for the developer.
*
* @return string
*/
public function getInformationLink()
{
return $this->information_link;
}

/**
* PayPal internal identifier used for correlation purposes.
*
* @param string $debug_id
*
* @return $this
*/
public function setDebugId($debug_id)
{
$this->debug_id = $debug_id;
return $this;
}

/**
* PayPal internal identifier used for correlation purposes.
*
* @return string
*/
public function getDebugId()
{
return $this->debug_id;
}

/**
* Sets Links
*
Expand Down Expand Up @@ -317,5 +317,4 @@ public function removeLink($links)
array_diff($this->getLinks(), array($links))
);
}

}
20 changes: 10 additions & 10 deletions lib/PayPal/Api/Patch.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
/**
* Class Patch
*
* A JSON patch object used for applying partial updates to resources.
* A JSON Patch object used for doing partial updates to resources.
*
* @package PayPal\Api
*
* @property string op
* @property string path
* @property mixed value
* @property mixed value
* @property string from
*/
class Patch extends PayPalModel
Expand All @@ -23,7 +23,7 @@ class Patch extends PayPalModel
* Valid Values: ["add", "remove", "replace", "move", "copy", "test"]
*
* @param string $op
*
*
* @return $this
*/
public function setOp($op)
Expand All @@ -43,10 +43,10 @@ public function getOp()
}

/**
* String containing a JSON Pointer value that references a location within the target document where the operation is performed.
* string containing a JSON-Pointer value that references a location within the target document (the target location) where the operation is performed.
*
* @param string $path
*
*
* @return $this
*/
public function setPath($path)
Expand All @@ -56,7 +56,7 @@ public function setPath($path)
}

/**
* String containing a JSON Pointer value that references a location within the target document where the operation is performed.
* string containing a JSON-Pointer value that references a location within the target document (the target location) where the operation is performed.
*
* @return string
*/
Expand All @@ -68,8 +68,8 @@ public function getPath()
/**
* New value to apply based on the operation.
*
* @param mixed $value
*
* @param string $value
*
* @return $this
*/
public function setValue($value)
Expand All @@ -81,7 +81,7 @@ public function setValue($value)
/**
* New value to apply based on the operation.
*
* @return mixed
* @return string
*/
public function getValue()
{
Expand All @@ -92,7 +92,7 @@ public function getValue()
* A string containing a JSON Pointer value that references the location in the target document to move the value from.
*
* @param string $from
*
*
* @return $this
*/
public function setFrom($from)
Expand Down
10 changes: 5 additions & 5 deletions lib/PayPal/Api/PayoutBatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Class PayoutBatch
*
* The batch status as generated by PayPal.
* The PayPal-generated batch status.
*
* @package PayPal\Api
*
Expand All @@ -18,7 +18,7 @@
class PayoutBatch extends PayPalModel
{
/**
* A batch header that includes the generated batch status.
* A batch header. Includes the generated batch status.
*
* @param \PayPal\Api\PayoutBatchHeader $batch_header
*
Expand All @@ -31,7 +31,7 @@ public function setBatchHeader($batch_header)
}

/**
* A batch header that includes the generated batch status.
* A batch header. Includes the generated batch status.
*
* @return \PayPal\Api\PayoutBatchHeader
*/
Expand All @@ -41,7 +41,7 @@ public function getBatchHeader()
}

/**
* Array of the items in a batch payout.
* An array of items in a batch payout.
*
* @param \PayPal\Api\PayoutItemDetails[] $items
*
Expand All @@ -54,7 +54,7 @@ public function setItems($items)
}

/**
* Array of the items in a batch payout.
* An array of items in a batch payout.
*
* @return \PayPal\Api\PayoutItemDetails[]
*/
Expand Down
Loading

0 comments on commit 0f3a5e6

Please sign in to comment.