18
18
*/
19
19
class Card extends BunqModel
20
20
{
21
+ /**
22
+ * Endpoint constants.
23
+ */
24
+ const ENDPOINT_URL_UPDATE = 'user/%s/card/%s ' ;
25
+ const ENDPOINT_URL_READ = 'user/%s/card/%s ' ;
26
+ const ENDPOINT_URL_LISTING = 'user/%s/card ' ;
27
+
21
28
/**
22
29
* Field constants.
23
30
*/
@@ -31,13 +38,6 @@ class Card extends BunqModel
31
38
const FIELD_PIN_CODE_ASSIGNMENT = 'pin_code_assignment ' ;
32
39
const FIELD_MONETARY_ACCOUNT_ID_FALLBACK = 'monetary_account_id_fallback ' ;
33
40
34
- /**
35
- * Endpoint constants.
36
- */
37
- const ENDPOINT_URL_UPDATE = 'user/%s/card/%s ' ;
38
- const ENDPOINT_URL_READ = 'user/%s/card/%s ' ;
39
- const ENDPOINT_URL_LISTING = 'user/%s/card ' ;
40
-
41
41
/**
42
42
* Object type.
43
43
*/
@@ -78,6 +78,13 @@ class Card extends BunqModel
78
78
*/
79
79
protected $ type ;
80
80
81
+ /**
82
+ * The sub-type of the card.
83
+ *
84
+ * @var string
85
+ */
86
+ protected $ subType ;
87
+
81
88
/**
82
89
* The second line of text on the card
83
90
*
@@ -184,6 +191,14 @@ class Card extends BunqModel
184
191
*/
185
192
protected $ monetaryAccountIdFallback ;
186
193
194
+ /**
195
+ * The country that is domestic to the card. Defaults to country of
196
+ * residence of user.
197
+ *
198
+ * @var string
199
+ */
200
+ protected $ country ;
201
+
187
202
/**
188
203
* Update the card details. Allow to change pin code, status, limits,
189
204
* country permissions and the monetary account connected to the card. When
@@ -363,6 +378,24 @@ public function setType($type)
363
378
$ this ->type = $ type ;
364
379
}
365
380
381
+ /**
382
+ * The sub-type of the card.
383
+ *
384
+ * @return string
385
+ */
386
+ public function getSubType ()
387
+ {
388
+ return $ this ->subType ;
389
+ }
390
+
391
+ /**
392
+ * @param string $subType
393
+ */
394
+ public function setSubType ($ subType )
395
+ {
396
+ $ this ->subType = $ subType ;
397
+ }
398
+
366
399
/**
367
400
* The second line of text on the card
368
401
*
@@ -622,4 +655,23 @@ public function setMonetaryAccountIdFallback($monetaryAccountIdFallback)
622
655
{
623
656
$ this ->monetaryAccountIdFallback = $ monetaryAccountIdFallback ;
624
657
}
658
+
659
+ /**
660
+ * The country that is domestic to the card. Defaults to country of
661
+ * residence of user.
662
+ *
663
+ * @return string
664
+ */
665
+ public function getCountry ()
666
+ {
667
+ return $ this ->country ;
668
+ }
669
+
670
+ /**
671
+ * @param string $country
672
+ */
673
+ public function setCountry ($ country )
674
+ {
675
+ $ this ->country = $ country ;
676
+ }
625
677
}
0 commit comments