|
| 1 | +<?php |
| 2 | +namespace FedEx\ValidationAvailabilityAndCommitmentService\ComplexType; |
| 3 | + |
| 4 | +use FedEx\AbstractComplexType; |
| 5 | + |
| 6 | +/** |
| 7 | + * The descriptive data regarding the result of the submitted transaction. |
| 8 | + * |
| 9 | + * @author Jeremy Dunn <[email protected]> |
| 10 | + * @package PHP FedEx API wrapper |
| 11 | + * @subpackage Validation Availability And Commitment Service Service |
| 12 | + * |
| 13 | + * @property \FedEx\ValidationAvailabilityAndCommitmentService\SimpleType\NotificationSeverityType|string $Severity |
| 14 | + * @property string $Source |
| 15 | + * @property string $Code |
| 16 | + * @property string $Message |
| 17 | + * @property string $LocalizedMessage |
| 18 | + * @property NotificationParameter[] $MessageParameters |
| 19 | +
|
| 20 | + */ |
| 21 | +class Notification extends AbstractComplexType |
| 22 | +{ |
| 23 | + /** |
| 24 | + * Name of this complex type |
| 25 | + * |
| 26 | + * @var string |
| 27 | + */ |
| 28 | + protected $name = 'Notification'; |
| 29 | + |
| 30 | + /** |
| 31 | + * The severity of this notification. This can indicate success or failure or some other information about the request. The values that can be returned are SUCCESS - Your transaction succeeded with no other applicable information. NOTE - Additional information that may be of interest to you about your transaction. WARNING - Additional information that you need to know about your transaction that you may need to take action on. ERROR - Information about an error that occurred while processing your transaction. FAILURE - FedEx was unable to process your transaction at this time due to a system failure. Please try again later |
| 32 | + * |
| 33 | + * @param \FedEx\ValidationAvailabilityAndCommitmentService\SimpleType\NotificationSeverityType|string $severity |
| 34 | + * @return $this |
| 35 | + */ |
| 36 | + public function setSeverity($severity) |
| 37 | + { |
| 38 | + $this->values['Severity'] = $severity; |
| 39 | + return $this; |
| 40 | + } |
| 41 | + |
| 42 | + /** |
| 43 | + * Indicates the source of this notification. Combined with the Code it uniquely identifies this notification |
| 44 | + * |
| 45 | + * @param string $source |
| 46 | + * @return $this |
| 47 | + */ |
| 48 | + public function setSource($source) |
| 49 | + { |
| 50 | + $this->values['Source'] = $source; |
| 51 | + return $this; |
| 52 | + } |
| 53 | + |
| 54 | + /** |
| 55 | + * A code that represents this notification. Combined with the Source it uniquely identifies this notification. |
| 56 | + * |
| 57 | + * @param string $code |
| 58 | + * @return $this |
| 59 | + */ |
| 60 | + public function setCode($code) |
| 61 | + { |
| 62 | + $this->values['Code'] = $code; |
| 63 | + return $this; |
| 64 | + } |
| 65 | + |
| 66 | + /** |
| 67 | + * Human-readable text that explains this notification. |
| 68 | + * |
| 69 | + * @param string $message |
| 70 | + * @return $this |
| 71 | + */ |
| 72 | + public function setMessage($message) |
| 73 | + { |
| 74 | + $this->values['Message'] = $message; |
| 75 | + return $this; |
| 76 | + } |
| 77 | + |
| 78 | + /** |
| 79 | + * The translated message. The language and locale specified in the ClientDetail. Localization are used to determine the representation. Currently only supported in a TrackReply. |
| 80 | + * |
| 81 | + * @param string $localizedMessage |
| 82 | + * @return $this |
| 83 | + */ |
| 84 | + public function setLocalizedMessage($localizedMessage) |
| 85 | + { |
| 86 | + $this->values['LocalizedMessage'] = $localizedMessage; |
| 87 | + return $this; |
| 88 | + } |
| 89 | + |
| 90 | + /** |
| 91 | + * A collection of name/value pairs that provide specific data to help the client determine the nature of an error (or warning, etc.) without having to parse the message string. |
| 92 | + * |
| 93 | + * @param NotificationParameter[] $messageParameters |
| 94 | + * @return $this |
| 95 | + */ |
| 96 | + public function setMessageParameters(array $messageParameters) |
| 97 | + { |
| 98 | + $this->values['MessageParameters'] = $messageParameters; |
| 99 | + return $this; |
| 100 | + } |
| 101 | +} |
0 commit comments