diff --git a/src/main/java/com/qiwi/billpayments/sdk/PomInfo.java b/src/main/java/com/qiwi/billpayments/sdk/PomInfo.java new file mode 100644 index 0000000..48600da --- /dev/null +++ b/src/main/java/com/qiwi/billpayments/sdk/PomInfo.java @@ -0,0 +1,5 @@ +package com.qiwi.billpayments.sdk; + +public class PomInfo { + public static final String VERSION = "1.5.0"; +} diff --git a/src/main/java/com/qiwi/billpayments/sdk/model/out/BillResponse.java b/src/main/java/com/qiwi/billpayments/sdk/model/out/BillResponse.java index 69f7131..e5bbf74 100644 --- a/src/main/java/com/qiwi/billpayments/sdk/model/out/BillResponse.java +++ b/src/main/java/com/qiwi/billpayments/sdk/model/out/BillResponse.java @@ -19,6 +19,7 @@ public class BillResponse { private final ZonedDateTime expirationDateTime; private final String payUrl; private final CustomFields customFields; + private final String recipientPhoneNumber; @JsonCreator public BillResponse( @@ -31,7 +32,8 @@ public BillResponse( @JsonProperty("creationDateTime") ZonedDateTime creationDateTime, @JsonProperty("expirationDateTime") ZonedDateTime expirationDateTime, @JsonProperty("payUrl") String payUrl, - @JsonProperty("customFields") CustomFields customFields + @JsonProperty("customFields") CustomFields customFields, + @JsonProperty("recipientPhoneNumber") String recipientPhoneNumber ) { this.siteId = siteId; this.billId = billId; @@ -43,6 +45,7 @@ public BillResponse( this.expirationDateTime = expirationDateTime; this.payUrl = payUrl; this.customFields = customFields; + this.recipientPhoneNumber = recipientPhoneNumber; } public BillResponse withNewPayUrl(String payUrl) { @@ -56,7 +59,8 @@ public BillResponse withNewPayUrl(String payUrl) { this.creationDateTime, this.expirationDateTime, payUrl, - this.customFields + this.customFields, + this.recipientPhoneNumber ); } diff --git a/src/test/java/com/qiwi/billpayments/sdk/client/BillPaymentClientTest.java b/src/test/java/com/qiwi/billpayments/sdk/client/BillPaymentClientTest.java index 002bcfc..880db7a 100644 --- a/src/test/java/com/qiwi/billpayments/sdk/client/BillPaymentClientTest.java +++ b/src/test/java/com/qiwi/billpayments/sdk/client/BillPaymentClientTest.java @@ -60,7 +60,8 @@ public void testAppendSuccessUrl() throws Exception { ZonedDateTime.now(), ZonedDateTime.now(), "http://test.ru/", - new CustomFields("client", "version", null) + new CustomFields("client", "version", null), + "79999999999" ); //when