Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
* Fixed critical errors when working with Bill
  • Loading branch information
osk115 authored Jan 21, 2023
1 parent 9201853 commit d358c14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ru.osk.qiwi4j</groupId>
<artifactId>Qiwi4J</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>

<name>Qiwi4J</name>
<description>The unofficial SDK for the Qiwi payments written on Java</description>
Expand Down Expand Up @@ -66,6 +66,7 @@

<build>
<plugins>

<!-- Maven compiler plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -107,7 +108,6 @@
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>**/kotlin/**</exclude>
</excludes>
</filter>
</filters>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/ru/osk/qiwi4j/Qiwi4JClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public String createPaymentForm(PaymentForm paymentForm) {
}
}

public BillInfo createBill(Bill bill) {
public BillInfo createBill(Bill bill, String id) {
try {
return bill.create(secretKey);
return bill.create(secretKey, id);
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/ru/osk/qiwi4j/bill/Bill.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
import org.jetbrains.annotations.NotNull;
import ru.osk.qiwi4j.Qiwi4JClient;
import ru.osk.qiwi4j.bill.info.BillAmount;
import ru.osk.qiwi4j.bill.info.BillCustomer;
Expand All @@ -25,7 +24,6 @@
@FieldDefaults(level = AccessLevel.PRIVATE, makeFinal = true)
public class Bill {

String billId;
BillAmount amount;
ZonedDateTime expirationDateTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
Expand All @@ -39,7 +37,7 @@ public String getExpirationDateTime() {
return expirationDateTime.toString();
}

public BillInfo create(String secretKey) throws JsonProcessingException {
public BillInfo create(String secretKey, String billId) throws JsonProcessingException {

String billUrl = Qiwi4JClient.BILLS_URL + billId;

Expand Down

0 comments on commit d358c14

Please sign in to comment.