@@ -71,30 +71,34 @@ public final class JsonCommand {
71
71
private final Long creditBureauId ;
72
72
private final Long organisationCreditBureauId ;
73
73
private final String jobName ;
74
+ private final ExternalId loanExternalId ;
74
75
75
76
public static JsonCommand from (final String jsonCommand , final JsonElement parsedCommand , final FromJsonHelper fromApiJsonHelper ,
76
77
final String entityName , final Long resourceId , final Long subresourceId , final Long groupId , final Long clientId ,
77
78
final Long loanId , final Long savingsId , final String transactionId , final String url , final Long productId ,
78
- final Long creditBureauId , final Long organisationCreditBureauId , final String jobName ) {
79
+ final Long creditBureauId , final Long organisationCreditBureauId , final String jobName , final ExternalId loanExternalId ) {
79
80
return new JsonCommand (null , jsonCommand , parsedCommand , fromApiJsonHelper , entityName , resourceId , subresourceId , groupId ,
80
- clientId , loanId , savingsId , transactionId , url , productId , creditBureauId , organisationCreditBureauId , jobName );
81
+ clientId , loanId , savingsId , transactionId , url , productId , creditBureauId , organisationCreditBureauId , jobName ,
82
+ loanExternalId );
81
83
82
84
}
83
85
84
86
public static JsonCommand fromExistingCommand (final Long commandId , final String jsonCommand , final JsonElement parsedCommand ,
85
87
final FromJsonHelper fromApiJsonHelper , final String entityName , final Long resourceId , final Long subresourceId ,
86
- final String url , final Long productId , final Long creditBureauId , final Long organisationCreditBureauId ,
87
- final String jobName ) {
88
+ final String url , final Long productId , final Long creditBureauId , final Long organisationCreditBureauId , final String jobName ,
89
+ final ExternalId loanExternalId ) {
88
90
return new JsonCommand (commandId , jsonCommand , parsedCommand , fromApiJsonHelper , entityName , resourceId , subresourceId , null , null ,
89
- null , null , null , url , productId , creditBureauId , organisationCreditBureauId , jobName );
91
+ null , null , null , url , productId , creditBureauId , organisationCreditBureauId , jobName , loanExternalId );
90
92
}
91
93
92
94
public static JsonCommand fromExistingCommand (final Long commandId , final String jsonCommand , final JsonElement parsedCommand ,
93
95
final FromJsonHelper fromApiJsonHelper , final String entityName , final Long resourceId , final Long subresourceId ,
94
96
final Long groupId , final Long clientId , final Long loanId , final Long savingsId , final String transactionId , final String url ,
95
- final Long productId , Long creditBureauId , final Long organisationCreditBureauId , final String jobName ) {
97
+ final Long productId , Long creditBureauId , final Long organisationCreditBureauId , final String jobName ,
98
+ final ExternalId loanExternalId ) {
96
99
return new JsonCommand (commandId , jsonCommand , parsedCommand , fromApiJsonHelper , entityName , resourceId , subresourceId , groupId ,
97
- clientId , loanId , savingsId , transactionId , url , productId , creditBureauId , organisationCreditBureauId , jobName );
100
+ clientId , loanId , savingsId , transactionId , url , productId , creditBureauId , organisationCreditBureauId , jobName ,
101
+ loanExternalId );
98
102
99
103
}
100
104
@@ -103,21 +107,22 @@ public static JsonCommand fromExistingCommand(JsonCommand command, final JsonEle
103
107
return new JsonCommand (command .commandId , jsonCommand , parsedCommand , command .fromApiJsonHelper , command .entityName ,
104
108
command .resourceId , command .subresourceId , command .groupId , command .clientId , command .loanId , command .savingsId ,
105
109
command .transactionId , command .url , command .productId , command .creditBureauId , command .organisationCreditBureauId ,
106
- command .jobName );
110
+ command .jobName , command . loanExternalId );
107
111
}
108
112
109
113
public static JsonCommand fromExistingCommand (JsonCommand command , final JsonElement parsedCommand , final Long clientId ) {
110
114
final String jsonCommand = command .fromApiJsonHelper .toJson (parsedCommand );
111
115
return new JsonCommand (command .commandId , jsonCommand , parsedCommand , command .fromApiJsonHelper , command .entityName ,
112
116
command .resourceId , command .subresourceId , command .groupId , clientId , command .loanId , command .savingsId ,
113
117
command .transactionId , command .url , command .productId , command .creditBureauId , command .organisationCreditBureauId ,
114
- command .jobName );
118
+ command .jobName , command . loanExternalId );
115
119
}
116
120
117
121
public JsonCommand (final Long commandId , final String jsonCommand , final JsonElement parsedCommand ,
118
122
final FromJsonHelper fromApiJsonHelper , final String entityName , final Long resourceId , final Long subresourceId ,
119
123
final Long groupId , final Long clientId , final Long loanId , final Long savingsId , final String transactionId , final String url ,
120
- final Long productId , final Long creditBureauId , final Long organisationCreditBureauId , final String jobName ) {
124
+ final Long productId , final Long creditBureauId , final Long organisationCreditBureauId , final String jobName ,
125
+ final ExternalId loanExternalId ) {
121
126
122
127
this .commandId = commandId ;
123
128
this .jsonCommand = jsonCommand ;
@@ -136,6 +141,7 @@ public JsonCommand(final Long commandId, final String jsonCommand, final JsonEle
136
141
this .creditBureauId = creditBureauId ;
137
142
this .organisationCreditBureauId = organisationCreditBureauId ;
138
143
this .jobName = jobName ;
144
+ this .loanExternalId = loanExternalId ;
139
145
}
140
146
141
147
public static JsonCommand fromJsonElement (final Long resourceId , final JsonElement parsedCommand ) {
@@ -165,6 +171,7 @@ public JsonCommand(final Long resourceId, final JsonElement parsedCommand) {
165
171
this .creditBureauId = null ;
166
172
this .organisationCreditBureauId = null ;
167
173
this .jobName = null ;
174
+ this .loanExternalId = null ;
168
175
}
169
176
170
177
public JsonCommand (final Long resourceId , final JsonElement parsedCommand , final FromJsonHelper fromApiJsonHelper ) {
@@ -185,10 +192,12 @@ public JsonCommand(final Long resourceId, final JsonElement parsedCommand, final
185
192
this .creditBureauId = null ;
186
193
this .organisationCreditBureauId = null ;
187
194
this .jobName = null ;
195
+ this .loanExternalId = null ;
188
196
}
189
197
190
198
public static JsonCommand from (final String jsonCommand ) {
191
- return new JsonCommand (null , jsonCommand , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null );
199
+ return new JsonCommand (null , jsonCommand , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null ,
200
+ null );
192
201
193
202
}
194
203
0 commit comments