This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated Model objects. - Updated Samples. - Updated Tests.
- Loading branch information
Jay Patel
committed
Jul 13, 2016
1 parent
9534bcb
commit c714f77
Showing
48 changed files
with
3,336 additions
and
2,897 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
namespace PayPal\Api; | ||
|
||
use PayPal\Common\PayPalModel; | ||
use PayPal\Validation\UrlValidator; | ||
|
||
/** | ||
* Class FileAttachment | ||
* | ||
* File attached to an invoice or template | ||
* | ||
* @package PayPal\Api | ||
* | ||
* @property string name | ||
* @property string url | ||
*/ | ||
class FileAttachment extends PayPalModel | ||
{ | ||
/** | ||
* Name of the file attached. | ||
* | ||
* @param string $name | ||
* | ||
* @return $this | ||
*/ | ||
public function setName($name) | ||
{ | ||
$this->name = $name; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Name of the file attached. | ||
* | ||
* @return string | ||
*/ | ||
public function getName() | ||
{ | ||
return $this->name; | ||
} | ||
|
||
/** | ||
* URL of the attached file that can be downloaded. | ||
* | ||
* @param string $url | ||
* @throws \InvalidArgumentException | ||
* @return $this | ||
*/ | ||
public function setUrl($url) | ||
{ | ||
UrlValidator::validate($url, "Url"); | ||
$this->url = $url; | ||
return $this; | ||
} | ||
|
||
/** | ||
* URL of the attached file that can be downloaded. | ||
* | ||
* @return string | ||
*/ | ||
public function getUrl() | ||
{ | ||
return $this->url; | ||
} | ||
|
||
} |
Oops, something went wrong.