Skip to content

[API-8172, API-8202] Adds $promotions and moves $iata_carrier_code - #119

Merged
iprysiazhnyi-sift merged 3 commits into
masterfrom
adds_promotions_add_iata_carrier_code
May 12, 2025
Merged

[API-8172, API-8202] Adds $promotions and moves $iata_carrier_code#119
iprysiazhnyi-sift merged 3 commits into
masterfrom
adds_promotions_add_iata_carrier_code

Conversation

@iprysiazhnyi-sift

@iprysiazhnyi-sift iprysiazhnyi-sift commented May 7, 2025

Copy link
Copy Markdown
Contributor

Purpose

Keep sift-java up to date with latest API changes

Technical overview

  • Added new $promotions field to the $update_account event
  • Moved $iata_carrier_code from $booking object to the $segment object level

@iprysiazhnyi-sift
iprysiazhnyi-sift marked this pull request as ready for review May 7, 2025 13:47

@echumak-sift echumak-sift left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I posted 2 comments, lgtm besides of that

/**
* Sets the IATA carrier code for the flight segment.
*
* <p>This field should only be set when the booking type is {@code $flight}.</p>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you think we need to assess where enhanced validation is needed and what that effort may be as a possible tech debt project?

@Expose @SerializedName("$currency_code") private String currencyCode;
@Expose @SerializedName("$exchange_rate") private ExchangeRate exchangeRate;
@Expose @SerializedName("$quantity") private Long quantity;
@Expose @SerializedName("$iata_carrier_code") private String iataCarrierCode;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we sure nobody started using $iata_carrier_code with booking $booking?

@iprysiazhnyi-sift
iprysiazhnyi-sift merged commit a4ff904 into master May 12, 2025
@iprysiazhnyi-sift
iprysiazhnyi-sift deleted the adds_promotions_add_iata_carrier_code branch May 12, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants