1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class PaymentOptions
9 *
10 * Payment options requested for this purchase unit
11 *
12 * @package PayPal\Api
13 *
14 * @property string allowed_payment_method
15 */
16 class PaymentOptions extends PayPalModel
17 {
18 /**
19 * Payment method requested for this purchase unit
20 * Valid Values: ["UNRESTRICTED", "INSTANT_FUNDING_SOURCE", "IMMEDIATE_PAY"]
21 *
22 * @param string $allowed_payment_method
23 *
24 * @return $this
25 */
26 public function setAllowedPaymentMethod($allowed_payment_method)
27 {
28 $this->allowed_payment_method = $allowed_payment_method;
29 return $this;
30 }
31
32 /**
33 * Payment method requested for this purchase unit
34 *
35 * @return string
36 */
37 public function getAllowedPaymentMethod()
38 {
39 return $this->allowed_payment_method;
40 }
41
42 /**
43 * Indicator if this payment request is a recurring payment. Only supported when the `payment_method` is set to `credit_card`
44 * @deprecated Not publicly available
45 * @param bool $recurring_flag
46 *
47 * @return $this
48 */
49 public function setRecurringFlag($recurring_flag)
50 {
51 $this->recurring_flag = $recurring_flag;
52 return $this;
53 }
54
55 /**
56 * Indicator if this payment request is a recurring payment. Only supported when the `payment_method` is set to `credit_card`
57 * @deprecated Not publicly available
58 * @return bool
59 */
60 public function getRecurringFlag()
61 {
62 return $this->recurring_flag;
63 }
64
65 /**
66 * Indicator if fraud management filters (fmf) should be skipped for this transaction. Only supported when the `payment_method` is set to `credit_card`
67 * @deprecated Not publicly available
68 * @param bool $skip_fmf
69 *
70 * @return $this
71 */
72 public function setSkipFmf($skip_fmf)
73 {
74 $this->skip_fmf = $skip_fmf;
75 return $this;
76 }
77
78 /**
79 * Indicator if fraud management filters (fmf) should be skipped for this transaction. Only supported when the `payment_method` is set to `credit_card`
80 * @deprecated Not publicly available
81 * @return bool
82 */
83 public function getSkipFmf()
84 {
85 return $this->skip_fmf;
86 }
87
88 }
89