Skip to content

Commit 92e1ae8

Browse files
Bump version to 2.15.26
1 parent 0211cd6 commit 92e1ae8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1440
-26
lines changed

README.md

Lines changed: 71 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The BlockChyp SDK is in Maven's Central Repository. Just add this snippet to you
2929
<dependency>
3030
<groupId>com.blockchyp</groupId>
3131
<artifactId>blockchyp-java</artifactId>
32-
<version>2.15.25</version>
32+
<version>2.15.26</version>
3333
</dependency>
3434
```
3535

@@ -38,7 +38,7 @@ The BlockChyp SDK is in Maven's Central Repository. Just add this snippet to you
3838
For the hipsters among you who've moved up to Gradle, try adding this snippet under dependencies in your Gradle build file.
3939

4040
```
41-
compile group: 'com.blockchyp', name: 'blockchyp-java', version:'2.15.25'
41+
compile group: 'com.blockchyp', name: 'blockchyp-java', version:'2.15.26'
4242
```
4343

4444
You'll also need the Maven plugin turned on. Make sure your Gradle build has something like this in it:
@@ -1326,6 +1326,75 @@ public class SendPaymentLinkExample {
13261326
}
13271327

13281328

1329+
```
1330+
1331+
#### Resend Payment Link
1332+
1333+
1334+
1335+
* **API Credential Types:** Merchant
1336+
* **Required Role:** Payment API Access
1337+
1338+
This API will resend a previously created payment link. An error is returned if the payment link is expired, has been
1339+
cancelled, or has already been paid.
1340+
1341+
1342+
1343+
1344+
```java
1345+
package com.blockchyp.client.examples;
1346+
1347+
1348+
1349+
import java.util.ArrayList;
1350+
import java.util.Collection;
1351+
1352+
import com.fasterxml.jackson.databind.ObjectMapper;
1353+
import com.fasterxml.jackson.databind.ObjectWriter;
1354+
1355+
import com.blockchyp.client.APICredentials;
1356+
import com.blockchyp.client.BlockChypClient;
1357+
import com.blockchyp.client.dto.ResendPaymentLinkRequest;
1358+
import com.blockchyp.client.dto.ResendPaymentLinkResponse;
1359+
1360+
1361+
public class ResendPaymentLinkExample {
1362+
1363+
@SuppressWarnings({ "rawtypes", "unchecked" })
1364+
public static void main(String[] args) throws Exception {
1365+
1366+
APICredentials creds = new APICredentials();
1367+
creds.setApiKey(System.getenv("BC_API_KEY"));
1368+
creds.setBearerToken(System.getenv("BC_BEARER_TOKEN"));
1369+
creds.setSigningKey(System.getenv("BC_SIGNING_KEY"));
1370+
1371+
BlockChypClient client = new BlockChypClient(creds);
1372+
1373+
// Set request parameters
1374+
ResendPaymentLinkRequest request = new ResendPaymentLinkRequest();
1375+
request.setLinkCode("<PAYMENT LINK CODE>");
1376+
1377+
// Send the request
1378+
ResendPaymentLinkResponse response = client.resendPaymentLink(request);
1379+
// View the result
1380+
System.out.println("Response: " + prettyPrint(response));
1381+
1382+
}
1383+
1384+
public static String prettyPrint(Object object) throws Exception {
1385+
1386+
ObjectWriter writer = new ObjectMapper()
1387+
.writer()
1388+
.withDefaultPrettyPrinter();
1389+
1390+
return object.getClass().getSimpleName()
1391+
+ ": "
1392+
+ writer.writeValueAsString(object);
1393+
1394+
}
1395+
}
1396+
1397+
13291398
```
13301399

13311400
#### Cancel Payment Link

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<groupId>com.blockchyp</groupId>
1010
<artifactId>blockchyp-java</artifactId>
11-
<version>2.15.25</version>
11+
<version>2.15.26</version>
1212
<packaging>jar</packaging>
1313

1414
<name>${project.groupId}:${project.artifactId}</name>

src/main/java/com/blockchyp/client/BlockChypClient.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@
112112
import com.blockchyp.client.dto.PaymentLinkResponse;
113113
import com.blockchyp.client.dto.CancelPaymentLinkRequest;
114114
import com.blockchyp.client.dto.CancelPaymentLinkResponse;
115+
import com.blockchyp.client.dto.ResendPaymentLinkRequest;
116+
import com.blockchyp.client.dto.ResendPaymentLinkResponse;
115117
import com.blockchyp.client.dto.CashDiscountRequest;
116118
import com.blockchyp.client.dto.CashDiscountResponse;
117119
import com.blockchyp.client.dto.TransactionHistoryRequest;
@@ -478,6 +480,18 @@ public PaymentLinkResponse sendPaymentLink(PaymentLinkRequest request) throws Ex
478480

479481
}
480482

483+
/**
484+
* Resends payment link.
485+
* @param request the request parameters.
486+
* @return {@link ResendPaymentLinkResponse}
487+
* @throws Exception exception if any errors occurred processing the request.
488+
*/
489+
public ResendPaymentLinkResponse resendPaymentLink(ResendPaymentLinkRequest request) throws Exception {
490+
491+
return (ResendPaymentLinkResponse) postGateway("/api/resend-payment-link", request, ResendPaymentLinkResponse.class);
492+
493+
}
494+
481495
/**
482496
* Cancels a payment link.
483497
* @param request the request parameters.

src/main/java/com/blockchyp/client/dto/AuthorizationRequest.java

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public class AuthorizationRequest implements ITimeoutRequest, ICoreRequest, IPay
3838

3939
private String destinationAccount;
4040

41+
private String testCase;
42+
4143
private String token;
4244

4345
private String track1;
@@ -70,8 +72,6 @@ public class AuthorizationRequest implements ITimeoutRequest, ICoreRequest, IPay
7072

7173
private String paymentType;
7274

73-
private String transactionId;
74-
7575
private String currencyCode;
7676

7777
private String amount;
@@ -98,6 +98,8 @@ public class AuthorizationRequest implements ITimeoutRequest, ICoreRequest, IPay
9898

9999
private boolean resetConnection;
100100

101+
private String transactionId;
102+
101103
private String onlineAuthCode;
102104

103105
private boolean enroll;
@@ -320,6 +322,27 @@ public String getDestinationAccount() {
320322
return this.destinationAccount;
321323
}
322324

325+
/**
326+
* Sets can include a code used to trigger simulated conditions for the purposes of
327+
* testing and certification.
328+
* @param value can include a code used to trigger simulated conditions for the
329+
* purposes of testing and certification. Valid for test merchant accounts only.
330+
*/
331+
public void setTestCase(String value) {
332+
this.testCase = value;
333+
}
334+
335+
/**
336+
* Gets can include a code used to trigger simulated conditions for the purposes of
337+
* testing and certification.
338+
* @return can include a code used to trigger simulated conditions for the purposes of
339+
* testing and certification. Valid for test merchant accounts only.
340+
*/
341+
@JsonProperty("testCase")
342+
public String getTestCase() {
343+
return this.testCase;
344+
}
345+
323346
/**
324347
* Sets the payment token to be used for this transaction.
325348
* @param value the payment token to be used for this transaction. This should be used
@@ -602,23 +625,6 @@ public String getPaymentType() {
602625
return this.paymentType;
603626
}
604627

605-
/**
606-
* Sets the ID of the previous transaction being referenced.
607-
* @param value the ID of the previous transaction being referenced.
608-
*/
609-
public void setTransactionId(String value) {
610-
this.transactionId = value;
611-
}
612-
613-
/**
614-
* Gets the ID of the previous transaction being referenced.
615-
* @return the ID of the previous transaction being referenced.
616-
*/
617-
@JsonProperty("transactionId")
618-
public String getTransactionId() {
619-
return this.transactionId;
620-
}
621-
622628
/**
623629
* Sets the transaction currency code.
624630
* @param value the transaction currency code.
@@ -867,6 +873,27 @@ public boolean isResetConnection() {
867873
return this.resetConnection;
868874
}
869875

876+
/**
877+
* Sets can be used to update a pre-auth to a new amount, sometimes called incremental
878+
* auth.
879+
* @param value can be used to update a pre-auth to a new amount, sometimes called
880+
* incremental auth.
881+
*/
882+
public void setTransactionId(String value) {
883+
this.transactionId = value;
884+
}
885+
886+
/**
887+
* Gets can be used to update a pre-auth to a new amount, sometimes called incremental
888+
* auth.
889+
* @return can be used to update a pre-auth to a new amount, sometimes called
890+
* incremental auth.
891+
*/
892+
@JsonProperty("transactionId")
893+
public String getTransactionId() {
894+
return this.transactionId;
895+
}
896+
870897
/**
871898
* Sets used to validate online gift card authorizations.
872899
* @param value used to validate online gift card authorizations.

src/main/java/com/blockchyp/client/dto/BalanceRequest.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public class BalanceRequest implements ITimeoutRequest, ICoreRequest, IPaymentMe
3636

3737
private String destinationAccount;
3838

39+
private String testCase;
40+
3941
private String token;
4042

4143
private String track1;
@@ -256,6 +258,27 @@ public String getDestinationAccount() {
256258
return this.destinationAccount;
257259
}
258260

261+
/**
262+
* Sets can include a code used to trigger simulated conditions for the purposes of
263+
* testing and certification.
264+
* @param value can include a code used to trigger simulated conditions for the
265+
* purposes of testing and certification. Valid for test merchant accounts only.
266+
*/
267+
public void setTestCase(String value) {
268+
this.testCase = value;
269+
}
270+
271+
/**
272+
* Gets can include a code used to trigger simulated conditions for the purposes of
273+
* testing and certification.
274+
* @return can include a code used to trigger simulated conditions for the purposes of
275+
* testing and certification. Valid for test merchant accounts only.
276+
*/
277+
@JsonProperty("testCase")
278+
public String getTestCase() {
279+
return this.testCase;
280+
}
281+
259282
/**
260283
* Sets the payment token to be used for this transaction.
261284
* @param value the payment token to be used for this transaction. This should be used

src/main/java/com/blockchyp/client/dto/BatchDetailsRequest.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public class BatchDetailsRequest implements ITimeoutRequest, ICoreRequest {
3636

3737
private String destinationAccount;
3838

39+
private String testCase;
40+
3941
private String batchId;
4042

4143
/**
@@ -222,6 +224,27 @@ public String getDestinationAccount() {
222224
return this.destinationAccount;
223225
}
224226

227+
/**
228+
* Sets can include a code used to trigger simulated conditions for the purposes of
229+
* testing and certification.
230+
* @param value can include a code used to trigger simulated conditions for the
231+
* purposes of testing and certification. Valid for test merchant accounts only.
232+
*/
233+
public void setTestCase(String value) {
234+
this.testCase = value;
235+
}
236+
237+
/**
238+
* Gets can include a code used to trigger simulated conditions for the purposes of
239+
* testing and certification.
240+
* @return can include a code used to trigger simulated conditions for the purposes of
241+
* testing and certification. Valid for test merchant accounts only.
242+
*/
243+
@JsonProperty("testCase")
244+
public String getTestCase() {
245+
return this.testCase;
246+
}
247+
225248
/**
226249
* Sets id for the batch to be retrieved.
227250
* @param value id for the batch to be retrieved.

src/main/java/com/blockchyp/client/dto/BatchHistoryRequest.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public class BatchHistoryRequest implements ITimeoutRequest, ICoreRequest {
3737

3838
private String destinationAccount;
3939

40+
private String testCase;
41+
4042
private Date startDate;
4143

4244
private Date endDate;
@@ -229,6 +231,27 @@ public String getDestinationAccount() {
229231
return this.destinationAccount;
230232
}
231233

234+
/**
235+
* Sets can include a code used to trigger simulated conditions for the purposes of
236+
* testing and certification.
237+
* @param value can include a code used to trigger simulated conditions for the
238+
* purposes of testing and certification. Valid for test merchant accounts only.
239+
*/
240+
public void setTestCase(String value) {
241+
this.testCase = value;
242+
}
243+
244+
/**
245+
* Gets can include a code used to trigger simulated conditions for the purposes of
246+
* testing and certification.
247+
* @return can include a code used to trigger simulated conditions for the purposes of
248+
* testing and certification. Valid for test merchant accounts only.
249+
*/
250+
@JsonProperty("testCase")
251+
public String getTestCase() {
252+
return this.testCase;
253+
}
254+
232255
/**
233256
* Sets optional start date filter for batch history.
234257
* @param value optional start date filter for batch history.

src/main/java/com/blockchyp/client/dto/BooleanPromptRequest.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public class BooleanPromptRequest implements ITimeoutRequest, ICoreRequest, ITer
3636

3737
private String destinationAccount;
3838

39+
private String testCase;
40+
3941
private String terminalName;
4042

4143
private boolean resetConnection;
@@ -230,6 +232,27 @@ public String getDestinationAccount() {
230232
return this.destinationAccount;
231233
}
232234

235+
/**
236+
* Sets can include a code used to trigger simulated conditions for the purposes of
237+
* testing and certification.
238+
* @param value can include a code used to trigger simulated conditions for the
239+
* purposes of testing and certification. Valid for test merchant accounts only.
240+
*/
241+
public void setTestCase(String value) {
242+
this.testCase = value;
243+
}
244+
245+
/**
246+
* Gets can include a code used to trigger simulated conditions for the purposes of
247+
* testing and certification.
248+
* @return can include a code used to trigger simulated conditions for the purposes of
249+
* testing and certification. Valid for test merchant accounts only.
250+
*/
251+
@JsonProperty("testCase")
252+
public String getTestCase() {
253+
return this.testCase;
254+
}
255+
233256
/**
234257
* Sets the name of the target payment terminal.
235258
* @param value the name of the target payment terminal.

0 commit comments

Comments
 (0)