Skip to content

Commit 06f5563

Browse files
authored
Update BarcodeOuput to reflect API doc (#308)
* Change BarcodeOuput's value to barcodeValue * Change QRCODE to QRCode * Remove unused import
1 parent 1487303 commit 06f5563

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/main/java/com/adyen/model/nexo/BarcodeType.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* <enumeration value="Code25"/>
2020
* <enumeration value="Code128"/>
2121
* <enumeration value="PDF417"/>
22-
* <enumeration value="QRCODE"/>
22+
* <enumeration value="QRCode"/>
2323
* </restriction>
2424
* </simpleType>
2525
* </pre>
@@ -60,7 +60,8 @@ public enum BarcodeType {
6060
/**
6161
* Qrcode barcode type.
6262
*/
63-
QRCODE("QRCODE");
63+
@XmlEnumValue("QRCode")
64+
QRCODE("QRCode");
6465
private final String value;
6566

6667
BarcodeType(String v) {

src/main/java/com/adyen/model/nexo/OutputBarcode.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import javax.xml.bind.annotation.XmlAccessorType;
55
import javax.xml.bind.annotation.XmlAttribute;
66
import javax.xml.bind.annotation.XmlType;
7-
import javax.xml.bind.annotation.XmlValue;
87

98

109
/**
@@ -26,15 +25,15 @@
2625
*/
2726
@XmlAccessorType(XmlAccessType.FIELD)
2827
@XmlType(name = "OutputBarcode", propOrder = {
29-
"value"
28+
"barcodeValue"
3029
})
3130
public class OutputBarcode {
3231

3332
/**
3433
* The Value.
3534
*/
36-
@XmlValue
37-
protected String value;
35+
@XmlAttribute(name = "BarcodeValue")
36+
protected String barcodeValue;
3837
/**
3938
* The Barcode.
4039
*/
@@ -47,16 +46,16 @@ public class OutputBarcode {
4746
* @return possible object is {@link String }
4847
*/
4948
public String getValue() {
50-
return value;
49+
return barcodeValue;
5150
}
5251

5352
/**
54-
* Sets the value of the value property.
53+
* Sets the value of the barcodeValue property.
5554
*
56-
* @param value allowed object is {@link String }
55+
* @param barcodeValue allowed object is {@link String }
5756
*/
58-
public void setValue(String value) {
59-
this.value = value;
57+
public void setBarcodeValue(String barcodeValue) {
58+
this.barcodeValue = barcodeValue;
6059
}
6160

6261
/**

0 commit comments

Comments
 (0)