File tree 1 file changed +24
-0
lines changed 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,26 @@ public function setPlan($value)
33
33
return $ this ->setParameter ('plan ' , $ value );
34
34
}
35
35
36
+ /**
37
+ * Get the tax percent
38
+ *
39
+ * @return string
40
+ */
41
+ public function getTaxPercent ()
42
+ {
43
+ return $ this ->getParameter ('tax_percent ' );
44
+ }
45
+
46
+ /**
47
+ * Set the tax percentage
48
+ *
49
+ * @return CreateSubscriptionRequest provides a fluent interface.
50
+ */
51
+ public function setTaxPercent ($ value )
52
+ {
53
+ return $ this ->setParameter ('tax_percent ' , $ value );
54
+ }
55
+
36
56
public function getData ()
37
57
{
38
58
$ this ->validate ('customerReference ' , 'plan ' );
@@ -41,6 +61,10 @@ public function getData()
41
61
'plan ' => $ this ->getPlan ()
42
62
);
43
63
64
+ if ($ this ->parameters ->has ('tax_percent ' )) {
65
+ $ data ['tax_percent ' ] = (float )$ this ->getParameter ('tax_percent ' );
66
+ }
67
+
44
68
return $ data ;
45
69
}
46
70
You can’t perform that action at this time.
0 commit comments