File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
src/main/java/com/bunq/tinker Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 88import com .bunq .tinker .utils .ITinker ;
99import org .apache .commons .cli .CommandLine ;
1010import org .apache .commons .cli .ParseException ;
11-
1211import java .util .ArrayList ;
13- import java .util .List ;
1412
1513public class LinkCard implements ITinker {
1614
15+ /**
16+ * Input constants.
17+ */
18+ private static final String CARD_PIN_ASSIGNMENT_TYPE_PRIMARY = "PRIMARY" ;
19+
1720 /**
1821 * @param args
1922 *
@@ -31,7 +34,11 @@ public void run(String[] args) throws ParseException {
3134 String cardId = SharedLib .determineCardIdFromAllOptionOrStdIn (allOption );
3235 String accountId = SharedLib .determineAccountIdFromAllOptionOrStdIn (allOption );
3336
34- allCardPinAssignment .add (new CardPinAssignment ("PRIMARY" ,null , Integer .parseInt (accountId )));
37+ allCardPinAssignment .add (new CardPinAssignment (
38+ CARD_PIN_ASSIGNMENT_TYPE_PRIMARY ,
39+ null , /* pinCode */
40+ Integer .parseInt (accountId ))
41+ );
3542
3643 System .out .println ();
3744 System .out .println (" | Link Card: " + cardId );
@@ -45,12 +52,11 @@ public void run(String[] args) throws ParseException {
4552 null , /* pinCode */
4653 null , /* activationCode */
4754 null , /* status */
48- null , /* limit */
55+ null , /* cardLimit */
56+ null , /* cardLimitAtm */
4957 null , /* magStripePermissions */
5058 null , /* countryPermission */
51- null ,
52- allCardPinAssignment ,
53- null
59+ allCardPinAssignment
5460 );
5561
5662 System .out .println ();
You can’t perform that action at this time.
0 commit comments