Skip to content

Commit

Permalink
Merge pull request #20 from hopper/add-email-address-on-exercise
Browse files Browse the repository at this point in the history
Added email address on Create CFAR Exercise
  • Loading branch information
thsoud authored Jul 3, 2024
2 parents a7951da + 4433344 commit 56a7231
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,15 @@ Example:ABC123
Reference of the PNR in the airline system
</td>
</tr>
<tr>
<td>emailAddress</td>
<td>string
<p>
Example: [email protected]
<p>
Contact email address of the booking at exercise time
</td>
</tr>
<tr>
<td>airlineRefundPenalty
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public class CreateCfarContractExerciseRequest {
@SerializedName(SERIALIZED_NAME_PNR_REFERENCE)
private String pnrReference;

public static final String SERIALIZED_NAME_EMAIL_ADDRESS = "email_address";
@SerializedName(SERIALIZED_NAME_EMAIL_ADDRESS)
private String emailAddress;

public static final String SERIALIZED_NAME_AIRLINE_REFUND_PENALTY = "airline_refund_penalty";
@SerializedName(SERIALIZED_NAME_AIRLINE_REFUND_PENALTY)
private String airlineRefundPenalty;
Expand Down Expand Up @@ -135,6 +139,29 @@ public void setPnrReference(String pnrReference) {
}


public CreateCfarContractExerciseRequest emailAddress(String emailAddress) {

this.emailAddress = emailAddress;
return this;
}

/**
* Get emailAddress
* @return emailAddress
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = false, value = "")

public String getEmailAddress() {
return emailAddress;
}


public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
}


public CreateCfarContractExerciseRequest airlineRefundPenalty(String airlineRefundPenalty) {

this.airlineRefundPenalty = airlineRefundPenalty;
Expand Down Expand Up @@ -245,6 +272,7 @@ public boolean equals(Object o) {
return Objects.equals(this.contractId, createCfarContractExerciseRequest.contractId) &&
Objects.equals(this.itinerary, createCfarContractExerciseRequest.itinerary) &&
Objects.equals(this.pnrReference, createCfarContractExerciseRequest.pnrReference) &&
Objects.equals(this.emailAddress, createCfarContractExerciseRequest.emailAddress) &&
Objects.equals(this.airlineRefundPenalty, createCfarContractExerciseRequest.airlineRefundPenalty) &&
Objects.equals(this.airlineRefundMethod, createCfarContractExerciseRequest.airlineRefundMethod) &&
Objects.equals(this.currency, createCfarContractExerciseRequest.currency) &&
Expand All @@ -253,7 +281,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(contractId, itinerary, pnrReference, airlineRefundPenalty, airlineRefundMethod, currency, extAttributes);
return Objects.hash(contractId, itinerary, pnrReference, emailAddress, airlineRefundPenalty, airlineRefundMethod, currency, extAttributes);
}

@Override
Expand All @@ -263,6 +291,7 @@ public String toString() {
sb.append(" contractId: ").append(toIndentedString(contractId)).append("\n");
sb.append(" itinerary: ").append(toIndentedString(itinerary)).append("\n");
sb.append(" pnrReference: ").append(toIndentedString(pnrReference)).append("\n");
sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n");
sb.append(" airlineRefundPenalty: ").append(toIndentedString(airlineRefundPenalty)).append("\n");
sb.append(" airlineRefundMethod: ").append(toIndentedString(airlineRefundMethod)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
Expand Down

0 comments on commit 56a7231

Please sign in to comment.