Skip to content

Commit

Permalink
Adiciona construtor no Item que não recebe o reference_id
Browse files Browse the repository at this point in the history
Signed-off-by: Manoel Campos <[email protected]>
  • Loading branch information
manoelcampos committed Jan 12, 2024
1 parent 0300810 commit 286cac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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>br.com.competeaqui</groupId>
<artifactId>pagseguro-api</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>

<name>PagSeguro Java API</name>
<description>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/br/com/competeaqui/pagseguro/data/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@
* @see PixOrder
*/
public record Item(@NonNull String name, int quantity, int unit_amount, String reference_id) {
public Item(final String name, final int quantity, final int unit_amount){
this(name, quantity, unit_amount, null);
}
}

0 comments on commit 286cac4

Please sign in to comment.