• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Adyen / adyen-java-api-library / #3286

24 May 2024 12:08PM UTC coverage: 12.05%. First build
#3286

push

web-flow
Merge 8e2ea04f7 into 67f331171

10 of 150 new or added lines in 13 files covered. (6.67%)

12475 of 103524 relevant lines covered (12.05%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java
1
/*
2
 * Adyen Checkout API
3
 *
4
 * The version of the OpenAPI document: 71
5
 * 
6
 *
7
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
 * https://openapi-generator.tech
9
 * Do not edit the class manually.
10
 */
11

12

13
package com.adyen.model.checkout;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.fasterxml.jackson.annotation.JsonInclude;
20
import com.fasterxml.jackson.annotation.JsonProperty;
21
import com.fasterxml.jackson.annotation.JsonCreator;
22
import com.fasterxml.jackson.annotation.JsonTypeName;
23
import com.fasterxml.jackson.annotation.JsonValue;
24
import io.swagger.annotations.ApiModel;
25
import io.swagger.annotations.ApiModelProperty;
26
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27
import com.fasterxml.jackson.core.JsonProcessingException;
28

29

30
/**
31
 * AdditionalDataLodging
32
 */
33
@JsonPropertyOrder({
34
  AdditionalDataLodging.JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE,
35
  AdditionalDataLodging.JSON_PROPERTY_LODGING_CHECK_IN_DATE,
36
  AdditionalDataLodging.JSON_PROPERTY_LODGING_CHECK_OUT_DATE,
37
  AdditionalDataLodging.JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER,
38
  AdditionalDataLodging.JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR,
39
  AdditionalDataLodging.JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES,
40
  AdditionalDataLodging.JSON_PROPERTY_LODGING_FOLIO_NUMBER,
41
  AdditionalDataLodging.JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES,
42
  AdditionalDataLodging.JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR,
43
  AdditionalDataLodging.JSON_PROPERTY_LODGING_PREPAID_EXPENSES,
44
  AdditionalDataLodging.JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER,
45
  AdditionalDataLodging.JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS,
46
  AdditionalDataLodging.JSON_PROPERTY_LODGING_ROOM1_RATE,
47
  AdditionalDataLodging.JSON_PROPERTY_LODGING_TOTAL_ROOM_TAX,
48
  AdditionalDataLodging.JSON_PROPERTY_LODGING_TOTAL_TAX,
49
  AdditionalDataLodging.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION,
50
  AdditionalDataLodging.JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET
51
})
52

53
public class AdditionalDataLodging {
54
  public static final String JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE = "lodging.SpecialProgramCode";
55
  private String lodgingSpecialProgramCode;
56

57
  public static final String JSON_PROPERTY_LODGING_CHECK_IN_DATE = "lodging.checkInDate";
58
  private String lodgingCheckInDate;
59

60
  public static final String JSON_PROPERTY_LODGING_CHECK_OUT_DATE = "lodging.checkOutDate";
61
  private String lodgingCheckOutDate;
62

63
  public static final String JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER = "lodging.customerServiceTollFreeNumber";
64
  private String lodgingCustomerServiceTollFreeNumber;
65

66
  public static final String JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR = "lodging.fireSafetyActIndicator";
67
  private String lodgingFireSafetyActIndicator;
68

69
  public static final String JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES = "lodging.folioCashAdvances";
70
  private String lodgingFolioCashAdvances;
71

72
  public static final String JSON_PROPERTY_LODGING_FOLIO_NUMBER = "lodging.folioNumber";
73
  private String lodgingFolioNumber;
74

75
  public static final String JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES = "lodging.foodBeverageCharges";
76
  private String lodgingFoodBeverageCharges;
77

78
  public static final String JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR = "lodging.noShowIndicator";
79
  private String lodgingNoShowIndicator;
80

81
  public static final String JSON_PROPERTY_LODGING_PREPAID_EXPENSES = "lodging.prepaidExpenses";
82
  private String lodgingPrepaidExpenses;
83

84
  public static final String JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER = "lodging.propertyPhoneNumber";
85
  private String lodgingPropertyPhoneNumber;
86

87
  public static final String JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS = "lodging.room1.numberOfNights";
88
  private String lodgingRoom1NumberOfNights;
89

90
  public static final String JSON_PROPERTY_LODGING_ROOM1_RATE = "lodging.room1.rate";
91
  private String lodgingRoom1Rate;
92

93
  public static final String JSON_PROPERTY_LODGING_TOTAL_ROOM_TAX = "lodging.totalRoomTax";
94
  private String lodgingTotalRoomTax;
95

96
  public static final String JSON_PROPERTY_LODGING_TOTAL_TAX = "lodging.totalTax";
97
  private String lodgingTotalTax;
98

99
  public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION = "travelEntertainmentAuthData.duration";
100
  private String travelEntertainmentAuthDataDuration;
101

102
  public static final String JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET = "travelEntertainmentAuthData.market";
103
  private String travelEntertainmentAuthDataMarket;
104

105
  public AdditionalDataLodging() { 
×
106
  }
×
107

108
  public AdditionalDataLodging lodgingSpecialProgramCode(String lodgingSpecialProgramCode) {
NEW
109
    this.lodgingSpecialProgramCode = lodgingSpecialProgramCode;
×
NEW
110
    return this;
×
111
  }
112

113
   /**
114
   * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit
115
   * @return lodgingSpecialProgramCode
116
  **/
117
  @ApiModelProperty(value = "A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit")
118
  @JsonProperty(JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE)
119
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
120

121
  public String getLodgingSpecialProgramCode() {
NEW
122
    return lodgingSpecialProgramCode;
×
123
  }
124

125

126
 /**
127
  * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit
128
  *
129
  * @param lodgingSpecialProgramCode
130
  */ 
131
  @JsonProperty(JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE)
132
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
133
  public void setLodgingSpecialProgramCode(String lodgingSpecialProgramCode) {
NEW
134
    this.lodgingSpecialProgramCode = lodgingSpecialProgramCode;
×
NEW
135
  }
×
136

137

138
  public AdditionalDataLodging lodgingCheckInDate(String lodgingCheckInDate) {
139
    this.lodgingCheckInDate = lodgingCheckInDate;
×
140
    return this;
×
141
  }
142

143
   /**
144
   * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**.
145
   * @return lodgingCheckInDate
146
  **/
147
  @ApiModelProperty(value = "The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**.")
148
  @JsonProperty(JSON_PROPERTY_LODGING_CHECK_IN_DATE)
149
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
150

151
  public String getLodgingCheckInDate() {
152
    return lodgingCheckInDate;
×
153
  }
154

155

156
 /**
157
  * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**.
158
  *
159
  * @param lodgingCheckInDate
160
  */ 
161
  @JsonProperty(JSON_PROPERTY_LODGING_CHECK_IN_DATE)
162
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
163
  public void setLodgingCheckInDate(String lodgingCheckInDate) {
164
    this.lodgingCheckInDate = lodgingCheckInDate;
×
165
  }
×
166

167

168
  public AdditionalDataLodging lodgingCheckOutDate(String lodgingCheckOutDate) {
169
    this.lodgingCheckOutDate = lodgingCheckOutDate;
×
170
    return this;
×
171
  }
172

173
   /**
174
   * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**.
175
   * @return lodgingCheckOutDate
176
  **/
177
  @ApiModelProperty(value = "The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**.")
178
  @JsonProperty(JSON_PROPERTY_LODGING_CHECK_OUT_DATE)
179
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
180

181
  public String getLodgingCheckOutDate() {
182
    return lodgingCheckOutDate;
×
183
  }
184

185

186
 /**
187
  * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**.
188
  *
189
  * @param lodgingCheckOutDate
190
  */ 
191
  @JsonProperty(JSON_PROPERTY_LODGING_CHECK_OUT_DATE)
192
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
193
  public void setLodgingCheckOutDate(String lodgingCheckOutDate) {
194
    this.lodgingCheckOutDate = lodgingCheckOutDate;
×
195
  }
×
196

197

198
  public AdditionalDataLodging lodgingCustomerServiceTollFreeNumber(String lodgingCustomerServiceTollFreeNumber) {
199
    this.lodgingCustomerServiceTollFreeNumber = lodgingCustomerServiceTollFreeNumber;
×
200
    return this;
×
201
  }
202

203
   /**
204
   * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros.
205
   * @return lodgingCustomerServiceTollFreeNumber
206
  **/
207
  @ApiModelProperty(value = "The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros.")
208
  @JsonProperty(JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER)
209
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
210

211
  public String getLodgingCustomerServiceTollFreeNumber() {
212
    return lodgingCustomerServiceTollFreeNumber;
×
213
  }
214

215

216
 /**
217
  * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros.
218
  *
219
  * @param lodgingCustomerServiceTollFreeNumber
220
  */ 
221
  @JsonProperty(JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER)
222
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
223
  public void setLodgingCustomerServiceTollFreeNumber(String lodgingCustomerServiceTollFreeNumber) {
224
    this.lodgingCustomerServiceTollFreeNumber = lodgingCustomerServiceTollFreeNumber;
×
225
  }
×
226

227

228
  public AdditionalDataLodging lodgingFireSafetyActIndicator(String lodgingFireSafetyActIndicator) {
229
    this.lodgingFireSafetyActIndicator = lodgingFireSafetyActIndicator;
×
230
    return this;
×
231
  }
232

233
   /**
234
   * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character
235
   * @return lodgingFireSafetyActIndicator
236
  **/
237
  @ApiModelProperty(value = "Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character")
238
  @JsonProperty(JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR)
239
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
240

241
  public String getLodgingFireSafetyActIndicator() {
242
    return lodgingFireSafetyActIndicator;
×
243
  }
244

245

246
 /**
247
  * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character
248
  *
249
  * @param lodgingFireSafetyActIndicator
250
  */ 
251
  @JsonProperty(JSON_PROPERTY_LODGING_FIRE_SAFETY_ACT_INDICATOR)
252
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
253
  public void setLodgingFireSafetyActIndicator(String lodgingFireSafetyActIndicator) {
254
    this.lodgingFireSafetyActIndicator = lodgingFireSafetyActIndicator;
×
255
  }
×
256

257

258
  public AdditionalDataLodging lodgingFolioCashAdvances(String lodgingFolioCashAdvances) {
259
    this.lodgingFolioCashAdvances = lodgingFolioCashAdvances;
×
260
    return this;
×
261
  }
262

263
   /**
264
   * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters
265
   * @return lodgingFolioCashAdvances
266
  **/
267
  @ApiModelProperty(value = "The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters")
268
  @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES)
269
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
270

271
  public String getLodgingFolioCashAdvances() {
272
    return lodgingFolioCashAdvances;
×
273
  }
274

275

276
 /**
277
  * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters
278
  *
279
  * @param lodgingFolioCashAdvances
280
  */ 
281
  @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_CASH_ADVANCES)
282
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
283
  public void setLodgingFolioCashAdvances(String lodgingFolioCashAdvances) {
284
    this.lodgingFolioCashAdvances = lodgingFolioCashAdvances;
×
285
  }
×
286

287

288
  public AdditionalDataLodging lodgingFolioNumber(String lodgingFolioNumber) {
289
    this.lodgingFolioNumber = lodgingFolioNumber;
×
290
    return this;
×
291
  }
292

293
   /**
294
   * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space *Must not be all zeros.
295
   * @return lodgingFolioNumber
296
  **/
297
  @ApiModelProperty(value = "The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space *Must not be all zeros.")
298
  @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_NUMBER)
299
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
300

301
  public String getLodgingFolioNumber() {
302
    return lodgingFolioNumber;
×
303
  }
304

305

306
 /**
307
  * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space *Must not be all zeros.
308
  *
309
  * @param lodgingFolioNumber
310
  */ 
311
  @JsonProperty(JSON_PROPERTY_LODGING_FOLIO_NUMBER)
312
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
313
  public void setLodgingFolioNumber(String lodgingFolioNumber) {
314
    this.lodgingFolioNumber = lodgingFolioNumber;
×
315
  }
×
316

317

318
  public AdditionalDataLodging lodgingFoodBeverageCharges(String lodgingFoodBeverageCharges) {
319
    this.lodgingFoodBeverageCharges = lodgingFoodBeverageCharges;
×
320
    return this;
×
321
  }
322

323
   /**
324
   * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters
325
   * @return lodgingFoodBeverageCharges
326
  **/
327
  @ApiModelProperty(value = "Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters")
328
  @JsonProperty(JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES)
329
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
330

331
  public String getLodgingFoodBeverageCharges() {
332
    return lodgingFoodBeverageCharges;
×
333
  }
334

335

336
 /**
337
  * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters
338
  *
339
  * @param lodgingFoodBeverageCharges
340
  */ 
341
  @JsonProperty(JSON_PROPERTY_LODGING_FOOD_BEVERAGE_CHARGES)
342
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
343
  public void setLodgingFoodBeverageCharges(String lodgingFoodBeverageCharges) {
344
    this.lodgingFoodBeverageCharges = lodgingFoodBeverageCharges;
×
345
  }
×
346

347

348
  public AdditionalDataLodging lodgingNoShowIndicator(String lodgingNoShowIndicator) {
349
    this.lodgingNoShowIndicator = lodgingNoShowIndicator;
×
350
    return this;
×
351
  }
352

353
   /**
354
   * Indicates if the customer didn't check in for their booking.  Possible values:  * **Y**: the customer didn't check in  * **N**: the customer checked in
355
   * @return lodgingNoShowIndicator
356
  **/
357
  @ApiModelProperty(value = "Indicates if the customer didn't check in for their booking.  Possible values:  * **Y**: the customer didn't check in  * **N**: the customer checked in")
358
  @JsonProperty(JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR)
359
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
360

361
  public String getLodgingNoShowIndicator() {
362
    return lodgingNoShowIndicator;
×
363
  }
364

365

366
 /**
367
  * Indicates if the customer didn't check in for their booking.  Possible values:  * **Y**: the customer didn't check in  * **N**: the customer checked in
368
  *
369
  * @param lodgingNoShowIndicator
370
  */ 
371
  @JsonProperty(JSON_PROPERTY_LODGING_NO_SHOW_INDICATOR)
372
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
373
  public void setLodgingNoShowIndicator(String lodgingNoShowIndicator) {
374
    this.lodgingNoShowIndicator = lodgingNoShowIndicator;
×
375
  }
×
376

377

378
  public AdditionalDataLodging lodgingPrepaidExpenses(String lodgingPrepaidExpenses) {
379
    this.lodgingPrepaidExpenses = lodgingPrepaidExpenses;
×
380
    return this;
×
381
  }
382

383
   /**
384
   * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters
385
   * @return lodgingPrepaidExpenses
386
  **/
387
  @ApiModelProperty(value = "The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters")
388
  @JsonProperty(JSON_PROPERTY_LODGING_PREPAID_EXPENSES)
389
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
390

391
  public String getLodgingPrepaidExpenses() {
392
    return lodgingPrepaidExpenses;
×
393
  }
394

395

396
 /**
397
  * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters
398
  *
399
  * @param lodgingPrepaidExpenses
400
  */ 
401
  @JsonProperty(JSON_PROPERTY_LODGING_PREPAID_EXPENSES)
402
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
403
  public void setLodgingPrepaidExpenses(String lodgingPrepaidExpenses) {
404
    this.lodgingPrepaidExpenses = lodgingPrepaidExpenses;
×
405
  }
×
406

407

408
  public AdditionalDataLodging lodgingPropertyPhoneNumber(String lodgingPropertyPhoneNumber) {
409
    this.lodgingPropertyPhoneNumber = lodgingPropertyPhoneNumber;
×
410
    return this;
×
411
  }
412

413
   /**
414
   * The lodging property location's phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros.
415
   * @return lodgingPropertyPhoneNumber
416
  **/
417
  @ApiModelProperty(value = "The lodging property location's phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros.")
418
  @JsonProperty(JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER)
419
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
420

421
  public String getLodgingPropertyPhoneNumber() {
422
    return lodgingPropertyPhoneNumber;
×
423
  }
424

425

426
 /**
427
  * The lodging property location's phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros.
428
  *
429
  * @param lodgingPropertyPhoneNumber
430
  */ 
431
  @JsonProperty(JSON_PROPERTY_LODGING_PROPERTY_PHONE_NUMBER)
432
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
433
  public void setLodgingPropertyPhoneNumber(String lodgingPropertyPhoneNumber) {
434
    this.lodgingPropertyPhoneNumber = lodgingPropertyPhoneNumber;
×
435
  }
×
436

437

438
  public AdditionalDataLodging lodgingRoom1NumberOfNights(String lodgingRoom1NumberOfNights) {
439
    this.lodgingRoom1NumberOfNights = lodgingRoom1NumberOfNights;
×
440
    return this;
×
441
  }
442

443
   /**
444
   * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters
445
   * @return lodgingRoom1NumberOfNights
446
  **/
447
  @ApiModelProperty(value = "The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters")
448
  @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS)
449
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
450

451
  public String getLodgingRoom1NumberOfNights() {
452
    return lodgingRoom1NumberOfNights;
×
453
  }
454

455

456
 /**
457
  * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters
458
  *
459
  * @param lodgingRoom1NumberOfNights
460
  */ 
461
  @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_NUMBER_OF_NIGHTS)
462
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
463
  public void setLodgingRoom1NumberOfNights(String lodgingRoom1NumberOfNights) {
464
    this.lodgingRoom1NumberOfNights = lodgingRoom1NumberOfNights;
×
465
  }
×
466

467

468
  public AdditionalDataLodging lodgingRoom1Rate(String lodgingRoom1Rate) {
469
    this.lodgingRoom1Rate = lodgingRoom1Rate;
×
470
    return this;
×
471
  }
472

473
   /**
474
   * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number
475
   * @return lodgingRoom1Rate
476
  **/
477
  @ApiModelProperty(value = "The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number")
478
  @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_RATE)
479
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
480

481
  public String getLodgingRoom1Rate() {
482
    return lodgingRoom1Rate;
×
483
  }
484

485

486
 /**
487
  * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number
488
  *
489
  * @param lodgingRoom1Rate
490
  */ 
491
  @JsonProperty(JSON_PROPERTY_LODGING_ROOM1_RATE)
492
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
493
  public void setLodgingRoom1Rate(String lodgingRoom1Rate) {
494
    this.lodgingRoom1Rate = lodgingRoom1Rate;
×
495
  }
×
496

497

498
  public AdditionalDataLodging lodgingTotalRoomTax(String lodgingTotalRoomTax) {
499
    this.lodgingTotalRoomTax = lodgingTotalRoomTax;
×
500
    return this;
×
501
  }
502

503
   /**
504
   * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number
505
   * @return lodgingTotalRoomTax
506
  **/
507
  @ApiModelProperty(value = "The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number")
508
  @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_ROOM_TAX)
509
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
510

511
  public String getLodgingTotalRoomTax() {
512
    return lodgingTotalRoomTax;
×
513
  }
514

515

516
 /**
517
  * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number
518
  *
519
  * @param lodgingTotalRoomTax
520
  */ 
521
  @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_ROOM_TAX)
522
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
523
  public void setLodgingTotalRoomTax(String lodgingTotalRoomTax) {
524
    this.lodgingTotalRoomTax = lodgingTotalRoomTax;
×
525
  }
×
526

527

528
  public AdditionalDataLodging lodgingTotalTax(String lodgingTotalTax) {
529
    this.lodgingTotalTax = lodgingTotalTax;
×
530
    return this;
×
531
  }
532

533
   /**
534
   * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number
535
   * @return lodgingTotalTax
536
  **/
537
  @ApiModelProperty(value = "The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number")
538
  @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_TAX)
539
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
540

541
  public String getLodgingTotalTax() {
542
    return lodgingTotalTax;
×
543
  }
544

545

546
 /**
547
  * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number
548
  *
549
  * @param lodgingTotalTax
550
  */ 
551
  @JsonProperty(JSON_PROPERTY_LODGING_TOTAL_TAX)
552
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
553
  public void setLodgingTotalTax(String lodgingTotalTax) {
554
    this.lodgingTotalTax = lodgingTotalTax;
×
555
  }
×
556

557

558
  public AdditionalDataLodging travelEntertainmentAuthDataDuration(String travelEntertainmentAuthDataDuration) {
559
    this.travelEntertainmentAuthDataDuration = travelEntertainmentAuthDataDuration;
×
560
    return this;
×
561
  }
562

563
   /**
564
   * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters
565
   * @return travelEntertainmentAuthDataDuration
566
  **/
567
  @ApiModelProperty(value = "The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters")
568
  @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION)
569
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
570

571
  public String getTravelEntertainmentAuthDataDuration() {
572
    return travelEntertainmentAuthDataDuration;
×
573
  }
574

575

576
 /**
577
  * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters
578
  *
579
  * @param travelEntertainmentAuthDataDuration
580
  */ 
581
  @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_DURATION)
582
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
583
  public void setTravelEntertainmentAuthDataDuration(String travelEntertainmentAuthDataDuration) {
584
    this.travelEntertainmentAuthDataDuration = travelEntertainmentAuthDataDuration;
×
585
  }
×
586

587

588
  public AdditionalDataLodging travelEntertainmentAuthDataMarket(String travelEntertainmentAuthDataMarket) {
589
    this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket;
×
590
    return this;
×
591
  }
592

593
   /**
594
   * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message.  * Format: alphanumeric * Max length: 1 character
595
   * @return travelEntertainmentAuthDataMarket
596
  **/
597
  @ApiModelProperty(value = "Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message.  * Format: alphanumeric * Max length: 1 character")
598
  @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET)
599
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
600

601
  public String getTravelEntertainmentAuthDataMarket() {
602
    return travelEntertainmentAuthDataMarket;
×
603
  }
604

605

606
 /**
607
  * Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message.  * Format: alphanumeric * Max length: 1 character
608
  *
609
  * @param travelEntertainmentAuthDataMarket
610
  */ 
611
  @JsonProperty(JSON_PROPERTY_TRAVEL_ENTERTAINMENT_AUTH_DATA_MARKET)
612
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
613
  public void setTravelEntertainmentAuthDataMarket(String travelEntertainmentAuthDataMarket) {
614
    this.travelEntertainmentAuthDataMarket = travelEntertainmentAuthDataMarket;
×
615
  }
×
616

617

618
  /**
619
   * Return true if this AdditionalDataLodging object is equal to o.
620
   */
621
  @Override
622
  public boolean equals(Object o) {
623
    if (this == o) {
×
624
      return true;
×
625
    }
626
    if (o == null || getClass() != o.getClass()) {
×
627
      return false;
×
628
    }
629
    AdditionalDataLodging additionalDataLodging = (AdditionalDataLodging) o;
×
NEW
630
    return Objects.equals(this.lodgingSpecialProgramCode, additionalDataLodging.lodgingSpecialProgramCode) &&
×
NEW
631
        Objects.equals(this.lodgingCheckInDate, additionalDataLodging.lodgingCheckInDate) &&
×
632
        Objects.equals(this.lodgingCheckOutDate, additionalDataLodging.lodgingCheckOutDate) &&
×
633
        Objects.equals(this.lodgingCustomerServiceTollFreeNumber, additionalDataLodging.lodgingCustomerServiceTollFreeNumber) &&
×
634
        Objects.equals(this.lodgingFireSafetyActIndicator, additionalDataLodging.lodgingFireSafetyActIndicator) &&
×
635
        Objects.equals(this.lodgingFolioCashAdvances, additionalDataLodging.lodgingFolioCashAdvances) &&
×
636
        Objects.equals(this.lodgingFolioNumber, additionalDataLodging.lodgingFolioNumber) &&
×
637
        Objects.equals(this.lodgingFoodBeverageCharges, additionalDataLodging.lodgingFoodBeverageCharges) &&
×
638
        Objects.equals(this.lodgingNoShowIndicator, additionalDataLodging.lodgingNoShowIndicator) &&
×
639
        Objects.equals(this.lodgingPrepaidExpenses, additionalDataLodging.lodgingPrepaidExpenses) &&
×
640
        Objects.equals(this.lodgingPropertyPhoneNumber, additionalDataLodging.lodgingPropertyPhoneNumber) &&
×
641
        Objects.equals(this.lodgingRoom1NumberOfNights, additionalDataLodging.lodgingRoom1NumberOfNights) &&
×
642
        Objects.equals(this.lodgingRoom1Rate, additionalDataLodging.lodgingRoom1Rate) &&
×
643
        Objects.equals(this.lodgingTotalRoomTax, additionalDataLodging.lodgingTotalRoomTax) &&
×
644
        Objects.equals(this.lodgingTotalTax, additionalDataLodging.lodgingTotalTax) &&
×
645
        Objects.equals(this.travelEntertainmentAuthDataDuration, additionalDataLodging.travelEntertainmentAuthDataDuration) &&
×
646
        Objects.equals(this.travelEntertainmentAuthDataMarket, additionalDataLodging.travelEntertainmentAuthDataMarket);
×
647
  }
648

649
  @Override
650
  public int hashCode() {
NEW
651
    return Objects.hash(lodgingSpecialProgramCode, lodgingCheckInDate, lodgingCheckOutDate, lodgingCustomerServiceTollFreeNumber, lodgingFireSafetyActIndicator, lodgingFolioCashAdvances, lodgingFolioNumber, lodgingFoodBeverageCharges, lodgingNoShowIndicator, lodgingPrepaidExpenses, lodgingPropertyPhoneNumber, lodgingRoom1NumberOfNights, lodgingRoom1Rate, lodgingTotalRoomTax, lodgingTotalTax, travelEntertainmentAuthDataDuration, travelEntertainmentAuthDataMarket);
×
652
  }
653

654
  @Override
655
  public String toString() {
656
    StringBuilder sb = new StringBuilder();
×
657
    sb.append("class AdditionalDataLodging {\n");
×
NEW
658
    sb.append("    lodgingSpecialProgramCode: ").append(toIndentedString(lodgingSpecialProgramCode)).append("\n");
×
659
    sb.append("    lodgingCheckInDate: ").append(toIndentedString(lodgingCheckInDate)).append("\n");
×
660
    sb.append("    lodgingCheckOutDate: ").append(toIndentedString(lodgingCheckOutDate)).append("\n");
×
661
    sb.append("    lodgingCustomerServiceTollFreeNumber: ").append(toIndentedString(lodgingCustomerServiceTollFreeNumber)).append("\n");
×
662
    sb.append("    lodgingFireSafetyActIndicator: ").append(toIndentedString(lodgingFireSafetyActIndicator)).append("\n");
×
663
    sb.append("    lodgingFolioCashAdvances: ").append(toIndentedString(lodgingFolioCashAdvances)).append("\n");
×
664
    sb.append("    lodgingFolioNumber: ").append(toIndentedString(lodgingFolioNumber)).append("\n");
×
665
    sb.append("    lodgingFoodBeverageCharges: ").append(toIndentedString(lodgingFoodBeverageCharges)).append("\n");
×
666
    sb.append("    lodgingNoShowIndicator: ").append(toIndentedString(lodgingNoShowIndicator)).append("\n");
×
667
    sb.append("    lodgingPrepaidExpenses: ").append(toIndentedString(lodgingPrepaidExpenses)).append("\n");
×
668
    sb.append("    lodgingPropertyPhoneNumber: ").append(toIndentedString(lodgingPropertyPhoneNumber)).append("\n");
×
669
    sb.append("    lodgingRoom1NumberOfNights: ").append(toIndentedString(lodgingRoom1NumberOfNights)).append("\n");
×
670
    sb.append("    lodgingRoom1Rate: ").append(toIndentedString(lodgingRoom1Rate)).append("\n");
×
671
    sb.append("    lodgingTotalRoomTax: ").append(toIndentedString(lodgingTotalRoomTax)).append("\n");
×
672
    sb.append("    lodgingTotalTax: ").append(toIndentedString(lodgingTotalTax)).append("\n");
×
673
    sb.append("    travelEntertainmentAuthDataDuration: ").append(toIndentedString(travelEntertainmentAuthDataDuration)).append("\n");
×
674
    sb.append("    travelEntertainmentAuthDataMarket: ").append(toIndentedString(travelEntertainmentAuthDataMarket)).append("\n");
×
675
    sb.append("}");
×
676
    return sb.toString();
×
677
  }
678

679
  /**
680
   * Convert the given object to string with each line indented by 4 spaces
681
   * (except the first line).
682
   */
683
  private String toIndentedString(Object o) {
684
    if (o == null) {
×
685
      return "null";
×
686
    }
687
    return o.toString().replace("\n", "\n    ");
×
688
  }
689

690
/**
691
   * Create an instance of AdditionalDataLodging given an JSON string
692
   *
693
   * @param jsonString JSON string
694
   * @return An instance of AdditionalDataLodging
695
   * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataLodging
696
   */
697
  public static AdditionalDataLodging fromJson(String jsonString) throws JsonProcessingException {
698
    return JSON.getMapper().readValue(jsonString, AdditionalDataLodging.class);
×
699
  }
700
/**
701
  * Convert an instance of AdditionalDataLodging to an JSON string
702
  *
703
  * @return JSON string
704
  */
705
  public String toJson() throws JsonProcessingException {
706
    return JSON.getMapper().writeValueAsString(this);
×
707
  }
708
}
709

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc