-
Notifications
You must be signed in to change notification settings - Fork 1
/
BulkPaymentInitiationWithStatusResponse.java
273 lines (229 loc) · 12.9 KB
/
BulkPaymentInitiationWithStatusResponse.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
/*
* NextGenPSD2 XS2A Framework
* # Summary The **NextGenPSD2** *Framework Version 1.3.12* offers a modern, open, harmonised and interoperable set of Application Programming Interfaces (APIs) as the safest and most efficient way to provide data securely. The NextGenPSD2 Framework reduces XS2A complexity and costs, addresses the problem of multiple competing standards in Europe and, aligned with the goals of the Euro Retail Payments Board, enables European banking customers to benefit from innovative products and services ('Banking as a Service') by granting TPPs safe and secure (authenticated and authorised) access to their bank accounts and financial data. The possible Approaches are: * Redirect SCA Approach * OAuth SCA Approach * Decoupled SCA Approach * Embedded SCA Approach without SCA method * Embedded SCA Approach with only one SCA method available * Embedded SCA Approach with Selection of a SCA method Not every message defined in this API definition is necessary for all approaches. Furthermore this API definition does not differ between methods which are mandatory, conditional, or optional. Therefore for a particular implementation of a Berlin Group PSD2 compliant API it is only necessary to support a certain subset of the methods defined in this API definition. **Please have a look at the implementation guidelines if you are not sure which message has to be used for the approach you are going to use.** ## Some General Remarks Related to this version of the OpenAPI Specification: * **This API definition is based on the Implementation Guidelines of the Berlin Group PSD2 API.** It is not a replacement in any sense. The main specification is (at the moment) always the Implementation Guidelines of the Berlin Group PSD2 API. * **This API definition contains the REST-API for requests from the PISP to the ASPSP.** * **This API definition contains the messages for all different approaches defined in the Implementation Guidelines.** * According to the OpenAPI-Specification [https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md] \"If in is \"header\" and the name field is \"Accept\", \"Content-Type\" or \"Authorization\", the parameter definition SHALL be ignored.\" The element \"Accept\" will not be defined in this file at any place. The elements \"Content-Type\" and \"Authorization\" are implicitly defined by the OpenApi tags \"content\" and \"security\". * There are several predefined types which might occur in payment initiation messages, but are not used in the standard JSON messages in the Implementation Guidelines. Therefore they are not used in the corresponding messages in this file either. We added them for the convenience of the user. If there is a payment product, which needs these fields, one can easily use the predefined types. But the ASPSP need not to accept them in general. * **We omit the definition of all standard HTTP header elements (mandatory/optional/conditional) except they are mentioned in the Implementation Guidelines.** Therefore the implementer might add these in his own realisation of a PSD2 complient API in addition to the elements defined in this file. ## General Remarks on Data Types The Berlin Group definition of UTF-8 strings in context of the PSD2 API has to support at least the following characters a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 / - ? : ( ) . , ' + Space
*
* OpenAPI spec version: 1.3.12_2022-07-01
* Contact: info@berlin-group.org
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package de.adorsys.psd2.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import de.adorsys.psd2.client.model.AccountReference;
import de.adorsys.psd2.client.model.PaymentInitiationBulkElementJson;
import de.adorsys.psd2.client.model.TppMessageGeneric;
import de.adorsys.psd2.client.model.TransactionStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
/**
* Generic JSON response body consistion of the corresponding bulk payment initiation JSON body together with an optional transaction status field.
*/
@Schema(description = "Generic JSON response body consistion of the corresponding bulk payment initiation JSON body together with an optional transaction status field. ")
public class BulkPaymentInitiationWithStatusResponse {
@SerializedName("batchBookingPreferred")
private Boolean batchBookingPreferred = null;
@SerializedName("requestedExecutionDate")
private LocalDate requestedExecutionDate = null;
@SerializedName("acceptorTransactionDateTime")
private OffsetDateTime acceptorTransactionDateTime = null;
@SerializedName("debtorAccount")
private AccountReference debtorAccount = null;
@SerializedName("paymentInformationId")
private String paymentInformationId = null;
@SerializedName("payments")
private List<PaymentInitiationBulkElementJson> payments = new ArrayList<>();
@SerializedName("transactionStatus")
private TransactionStatus transactionStatus = null;
@SerializedName("tppMessages")
private List<TppMessageGeneric> tppMessages = null;
public BulkPaymentInitiationWithStatusResponse batchBookingPreferred(Boolean batchBookingPreferred) {
this.batchBookingPreferred = batchBookingPreferred;
return this;
}
/**
* Get batchBookingPreferred
* @return batchBookingPreferred
**/
@Schema(description = "")
public Boolean getBatchBookingPreferred() {
return batchBookingPreferred;
}
public void setBatchBookingPreferred(Boolean batchBookingPreferred) {
this.batchBookingPreferred = batchBookingPreferred;
}
public BulkPaymentInitiationWithStatusResponse requestedExecutionDate(LocalDate requestedExecutionDate) {
this.requestedExecutionDate = requestedExecutionDate;
return this;
}
/**
* Get requestedExecutionDate
* @return requestedExecutionDate
**/
@Schema(description = "")
public LocalDate getRequestedExecutionDate() {
return requestedExecutionDate;
}
public void setRequestedExecutionDate(LocalDate requestedExecutionDate) {
this.requestedExecutionDate = requestedExecutionDate;
}
public BulkPaymentInitiationWithStatusResponse acceptorTransactionDateTime(OffsetDateTime acceptorTransactionDateTime) {
this.acceptorTransactionDateTime = acceptorTransactionDateTime;
return this;
}
/**
* Get acceptorTransactionDateTime
* @return acceptorTransactionDateTime
**/
@Schema(description = "")
public OffsetDateTime getAcceptorTransactionDateTime() {
return acceptorTransactionDateTime;
}
public void setAcceptorTransactionDateTime(OffsetDateTime acceptorTransactionDateTime) {
this.acceptorTransactionDateTime = acceptorTransactionDateTime;
}
public BulkPaymentInitiationWithStatusResponse debtorAccount(AccountReference debtorAccount) {
this.debtorAccount = debtorAccount;
return this;
}
/**
* Get debtorAccount
* @return debtorAccount
**/
@Schema(required = true, description = "")
public AccountReference getDebtorAccount() {
return debtorAccount;
}
public void setDebtorAccount(AccountReference debtorAccount) {
this.debtorAccount = debtorAccount;
}
public BulkPaymentInitiationWithStatusResponse paymentInformationId(String paymentInformationId) {
this.paymentInformationId = paymentInformationId;
return this;
}
/**
* Get paymentInformationId
* @return paymentInformationId
**/
@Schema(description = "")
public String getPaymentInformationId() {
return paymentInformationId;
}
public void setPaymentInformationId(String paymentInformationId) {
this.paymentInformationId = paymentInformationId;
}
public BulkPaymentInitiationWithStatusResponse payments(List<PaymentInitiationBulkElementJson> payments) {
this.payments = payments;
return this;
}
public BulkPaymentInitiationWithStatusResponse addPaymentsItem(PaymentInitiationBulkElementJson paymentsItem) {
this.payments.add(paymentsItem);
return this;
}
/**
* A list of generic JSON bodies payment initiations for bulk payments via JSON. Note: Some fields from single payments do not occur in a bulk payment element
* @return payments
**/
@Schema(required = true, description = "A list of generic JSON bodies payment initiations for bulk payments via JSON. Note: Some fields from single payments do not occur in a bulk payment element ")
public List<PaymentInitiationBulkElementJson> getPayments() {
return payments;
}
public void setPayments(List<PaymentInitiationBulkElementJson> payments) {
this.payments = payments;
}
public BulkPaymentInitiationWithStatusResponse transactionStatus(TransactionStatus transactionStatus) {
this.transactionStatus = transactionStatus;
return this;
}
/**
* Get transactionStatus
* @return transactionStatus
**/
@Schema(description = "")
public TransactionStatus getTransactionStatus() {
return transactionStatus;
}
public void setTransactionStatus(TransactionStatus transactionStatus) {
this.transactionStatus = transactionStatus;
}
public BulkPaymentInitiationWithStatusResponse tppMessages(List<TppMessageGeneric> tppMessages) {
this.tppMessages = tppMessages;
return this;
}
public BulkPaymentInitiationWithStatusResponse addTppMessagesItem(TppMessageGeneric tppMessagesItem) {
if (this.tppMessages == null) {
this.tppMessages = new ArrayList<>();
}
this.tppMessages.add(tppMessagesItem);
return this;
}
/**
* Messages to the TPP on operational issues.
* @return tppMessages
**/
@Schema(description = "Messages to the TPP on operational issues.")
public List<TppMessageGeneric> getTppMessages() {
return tppMessages;
}
public void setTppMessages(List<TppMessageGeneric> tppMessages) {
this.tppMessages = tppMessages;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BulkPaymentInitiationWithStatusResponse bulkPaymentInitiationWithStatusResponse = (BulkPaymentInitiationWithStatusResponse) o;
return Objects.equals(this.batchBookingPreferred, bulkPaymentInitiationWithStatusResponse.batchBookingPreferred) &&
Objects.equals(this.requestedExecutionDate, bulkPaymentInitiationWithStatusResponse.requestedExecutionDate) &&
Objects.equals(this.acceptorTransactionDateTime, bulkPaymentInitiationWithStatusResponse.acceptorTransactionDateTime) &&
Objects.equals(this.debtorAccount, bulkPaymentInitiationWithStatusResponse.debtorAccount) &&
Objects.equals(this.paymentInformationId, bulkPaymentInitiationWithStatusResponse.paymentInformationId) &&
Objects.equals(this.payments, bulkPaymentInitiationWithStatusResponse.payments) &&
Objects.equals(this.transactionStatus, bulkPaymentInitiationWithStatusResponse.transactionStatus) &&
Objects.equals(this.tppMessages, bulkPaymentInitiationWithStatusResponse.tppMessages);
}
@Override
public int hashCode() {
return Objects.hash(batchBookingPreferred, requestedExecutionDate, acceptorTransactionDateTime, debtorAccount, paymentInformationId, payments, transactionStatus, tppMessages);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BulkPaymentInitiationWithStatusResponse {\n");
sb.append(" batchBookingPreferred: ").append(toIndentedString(batchBookingPreferred)).append("\n");
sb.append(" requestedExecutionDate: ").append(toIndentedString(requestedExecutionDate)).append("\n");
sb.append(" acceptorTransactionDateTime: ").append(toIndentedString(acceptorTransactionDateTime)).append("\n");
sb.append(" debtorAccount: ").append(toIndentedString(debtorAccount)).append("\n");
sb.append(" paymentInformationId: ").append(toIndentedString(paymentInformationId)).append("\n");
sb.append(" payments: ").append(toIndentedString(payments)).append("\n");
sb.append(" transactionStatus: ").append(toIndentedString(transactionStatus)).append("\n");
sb.append(" tppMessages: ").append(toIndentedString(tppMessages)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}