Skip to content

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
* Удалено поле `phone` в классе `Bill`, из-за конфликтов в работе
* Добавлена возможность использовать `customFields`
  • Loading branch information
osk115 committed Jan 22, 2023
1 parent aadf36f commit 770f8ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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.2</version>
<version>1.0.3</version>

<name>Qiwi4J</name>
<description>The unofficial SDK for the Qiwi payments written on Java</description>
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/ru/osk/qiwi4j/bill/Bill.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import java.io.IOException;
import java.time.ZonedDateTime;
import java.util.Map;

@Getter
@Builder
Expand All @@ -27,11 +28,11 @@ public class Bill {
BillAmount amount;
ZonedDateTime expirationDateTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
String phone;
@JsonInclude(JsonInclude.Include.NON_NULL)
BillCustomer customer;
@JsonInclude(JsonInclude.Include.NON_NULL)
String comment;
@JsonInclude(JsonInclude.Include.NON_NULL)
Map<String, String> customFields;

public String getExpirationDateTime() {
return expirationDateTime.toString();
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/ru/osk/qiwi4j/bill/BillInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import ru.osk.qiwi4j.bill.info.BillRecipient;
import ru.osk.qiwi4j.bill.info.BillStatus;

import java.util.Map;

@Getter
@Builder
@AllArgsConstructor
Expand All @@ -27,5 +29,6 @@ public class BillInfo {
BillRecipient recipient;
BillCustomer customer;
String comment;
Map<String, String> customFields;

}

0 comments on commit 770f8ef

Please sign in to comment.