1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class Credit
9 *
10 * A resource representing a credit instrument.
11 *
12 * @package PayPal\Api
13 *
14 * @property string id
15 * @property string type
16 */
17 class Credit extends PayPalModel
18 {
19 /**
20 * Unique identifier of credit resource.
21 *
22 * @param string $id
23 *
24 * @return $this
25 */
26 public function setId($id)
27 {
28 $this->id = $id;
29 return $this;
30 }
31
32 /**
33 * Unique identifier of credit resource.
34 *
35 * @return string
36 */
37 public function getId()
38 {
39 return $this->id;
40 }
41
42 /**
43 * specifies type of credit
44 * Valid Values: ["BILL_ME_LATER", "PAYPAL_EXTRAS_MASTERCARD", "EBAY_MASTERCARD", "PAYPAL_SMART_CONNECT"]
45 *
46 * @param string $type
47 *
48 * @return $this
49 */
50 public function setType($type)
51 {
52 $this->type = $type;
53 return $this;
54 }
55
56 /**
57 * specifies type of credit
58 *
59 * @return string
60 */
61 public function getType()
62 {
63 return $this->type;
64 }
65
66 }
67