|
1 | 1 | package com.adyen.model.nexo; |
2 | 2 |
|
| 3 | +import com.google.gson.annotations.SerializedName; |
3 | 4 | import io.swagger.v3.oas.annotations.media.Schema; |
4 | 5 | import java.util.ArrayList; |
5 | 6 | import java.util.List; |
6 | | -import javax.xml.bind.annotation.XmlAccessType; |
7 | | -import javax.xml.bind.annotation.XmlAccessorType; |
8 | | -import javax.xml.bind.annotation.XmlElement; |
9 | | -import javax.xml.bind.annotation.XmlSchemaType; |
10 | | -import javax.xml.bind.annotation.XmlType; |
11 | 7 | import javax.xml.datatype.XMLGregorianCalendar; |
12 | 8 |
|
13 | 9 | /** |
|
39 | 35 | * </complexType> |
40 | 36 | * </pre> |
41 | 37 | */ |
42 | | -@XmlAccessorType(XmlAccessType.FIELD) |
43 | | -@XmlType( |
44 | | - name = "LoginRequest", |
45 | | - propOrder = {"dateTime", "saleSoftware", "saleTerminalData"}) |
46 | 38 | public class LoginRequest { |
47 | 39 |
|
48 | 40 | /** The Date time. */ |
49 | | - @XmlElement(name = "DateTime", required = true) |
| 41 | + @SerializedName("DateTime") |
50 | 42 | @Schema(description = "Date and Time") |
51 | | - @XmlSchemaType(name = "dateTime") |
52 | 43 | protected XMLGregorianCalendar dateTime; |
53 | 44 |
|
54 | 45 | /** The Sale software. */ |
55 | | - @XmlElement(name = "SaleSoftware", required = true) |
| 46 | + @SerializedName("SaleSoftware") |
56 | 47 | @Schema( |
57 | 48 | description = |
58 | 49 | "Information related to the software of the Sale System which manages the Sale to POI protocol.") |
59 | 50 | protected SaleSoftware saleSoftware; |
60 | 51 |
|
61 | 52 | /** The Sale terminal data. */ |
62 | | - @XmlElement(name = "SaleTerminalData") |
| 53 | + @SerializedName("SaleTerminalData") |
63 | 54 | @Schema( |
64 | 55 | description = |
65 | 56 | "Information related to the software and hardware feature of the Sale Terminal. --Rule: Present if the login involve a Sale Terminal") |
66 | 57 | protected SaleTerminalData saleTerminalData; |
67 | 58 |
|
68 | 59 | /** The Training mode flag. */ |
69 | | - @XmlElement(name = "TrainingModeFlag") |
| 60 | + @SerializedName("TrainingModeFlag") |
70 | 61 | @Schema( |
71 | 62 | description = |
72 | 63 | "Training mode --Rule: The POI does not realise the transaction with the Acquirer") |
73 | 64 | protected Boolean trainingModeFlag; |
74 | 65 |
|
75 | 66 | /** The Operator language. */ |
76 | | - @XmlElement(name = "OperatorLanguage", required = true) |
| 67 | + @SerializedName("OperatorLanguage") |
77 | 68 | @Schema( |
78 | 69 | description = |
79 | 70 | "Language of the Cashier or Operator. --Rule: Default value for Device type displays") |
80 | 71 | protected String operatorLanguage; |
81 | 72 |
|
82 | 73 | /** The Operator id. */ |
83 | | - @XmlElement(name = "OperatorID") |
| 74 | + @SerializedName("OperatorID") |
84 | 75 | @Schema( |
85 | 76 | description = |
86 | 77 | "Identification of the Cashier or Operator. --Rule: 4 conditions to send it: a) the Sale System wants the POI log it in the transaction log b) because of reconciliation") |
87 | 78 | protected String operatorID; |
88 | 79 |
|
89 | 80 | /** The Shift number. */ |
90 | | - @XmlElement(name = "ShiftNumber") |
| 81 | + @SerializedName("ShiftNumber") |
91 | 82 | @Schema(description = "Shift number. --Rule: Same as OperatorID") |
92 | 83 | protected String shiftNumber; |
93 | 84 |
|
94 | 85 | /** The Token requested. */ |
95 | | - @XmlElement(name = "TokenRequestedType") |
| 86 | + @SerializedName("TokenRequestedType") |
96 | 87 | @Schema( |
97 | 88 | description = |
98 | 89 | "Type of token replacing the PAN of a payment card to identify the payment mean of the customer. --Rule: If a token is requested during the the session.") |
99 | 90 | protected TokenRequestedType tokenRequestedType; |
100 | 91 |
|
101 | 92 | /** The Customer order req. */ |
102 | | - @XmlElement(name = "CustomerOrderReq") |
| 93 | + @SerializedName("CustomerOrderReq") |
103 | 94 | @Schema( |
104 | 95 | description = |
105 | 96 | "List of customer orders must be sent in response message. --Rule: If customer orders must be listed in Card Acquisition and Payment response messages during the session.") |
106 | 97 | protected List<CustomerOrderReqType> customerOrderReq; |
107 | 98 |
|
108 | 99 | /** The Poi serial number. */ |
109 | | - @XmlElement(name = "POISerialNumber") |
| 100 | + @SerializedName("POISerialNumber") |
110 | 101 | @Schema( |
111 | 102 | description = |
112 | 103 | "Serial number of a POI Terminal --Rule: If the login involve a POI Terminal and not the first Login to the POI System") |
|
0 commit comments