Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added fee ids to MasterPricer #36

Merged
merged 4 commits into from
Dec 28, 2016
Merged

Added fee ids to MasterPricer #36

merged 4 commits into from
Dec 28, 2016

Conversation

bimusiek
Copy link
Collaborator

Hey, I felt bad about just asking so I wanted to contribute a little bit.

Here is option to add FeeIds when searching in MasterPricer.

Possible options I saw in Amadeus.

FFI - shows fare family names from airlines (ex. Economy Saver)
UPH/UPB - upsell, so each recommendation gets reference to more expensive fares

Tell me if you want me to change anything!

Cheers, Mike.

@coveralls
Copy link

coveralls commented Dec 21, 2016

Coverage Status

Coverage increased (+0.0007%) to 99.789% when pulling 2422be2 on whatsahoy:master into 17596d8 on amabnl:master.

@coveralls
Copy link

coveralls commented Dec 21, 2016

Coverage Status

Coverage increased (+0.0007%) to 99.789% when pulling 19172ee on whatsahoy:master into 17596d8 on amabnl:master.

@DerMika
Copy link
Collaborator

DerMika commented Dec 21, 2016

Well, this is wonderful, thanks for contributing! :)

I'll go through the code tomorrow to see if everything looks good.

Copy link
Collaborator

@DerMika DerMika left a comment

Choose a reason for hiding this comment

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

Please see the remarks I made inline.

On top of that, I'd also like to have a sample in the docs (https://github.com/amabnl/amadeus-ws-client/blob/master/docs/samples/masterpricertravelboard.rst).

/**
* Set fee ids if needed
*
* @param string|null $currency
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like this PHPDoc needs some love.

class MPFeeId extends LoadParamsFromArray
{
/**
* Fee Type
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd like to have all possible Fee Types as constants "TYPE_*" here so users know what values are possible (and supported by Amadeus).

This is analogous what I do in other places, for example here

Here's the list of possible fee types:

Fare_MasterPricerTravelBoardSearch/fareOptions/feeIdDescription/feeId/feeType
Attribute type identification, coded codesets
Value	Description
ARP	Arp number
FBA	Free Baggage Allowance
FFI	Fare Family Information
NPS	No PNR Split
PTRAM	Price To Reach amount type
RTC	Half round trip combination
SBF	Search by FBA
SORT	Sorting option (FEE, NOFEE)
TOKEN	Token
UPB	Upsell per bound
UPH	Homogenous upsell

As seen here: https://webservices.amadeus.com/extranet/structures/viewMessageStructure.do?id=5769&serviceVersionId=4507&isQuery=true

@@ -62,8 +62,9 @@ class FareOptions
* @param array $corpCodesUniFares list of Corporate codes for Corporate Unifares
* @param bool $tickPreCheck Do Ticketability pre-check?
* @param string|null $currency Override Currency conversion
* @param array|null $flightOptions List of FeeIds
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd prefer to have the typed objects here, e.g. FeeId[]

@@ -33,4 +33,20 @@ class FeeId
public $feeType;
Copy link
Collaborator

Choose a reason for hiding this comment

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

$feeType and $feeIdNumber need phpdocs.

Also here I'd like to have the same list of constants of possible feeTypes.

@coveralls
Copy link

coveralls commented Dec 27, 2016

Coverage Status

Coverage increased (+0.0007%) to 99.789% when pulling 7103ea7 on whatsahoy:master into 17596d8 on amabnl:master.

@coveralls
Copy link

coveralls commented Dec 27, 2016

Coverage Status

Coverage increased (+0.0007%) to 99.789% when pulling 6f32977 on whatsahoy:master into 17596d8 on amabnl:master.

@bimusiek
Copy link
Collaborator Author

@DerMika Hey, I believe I did all changes you requested :) Tell me please if I missed something.

Copy link
Collaborator

@DerMika DerMika left a comment

Choose a reason for hiding this comment

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

Looks good! There's only one small change I'd like: that you used the FeeId::TYPE_* constants in your sample in the docs.

That gives whoever is reading the docs the information that there are constants available to choose from. Otherwise they'd have to dig in the code to find that out.

@bimusiek
Copy link
Collaborator Author

@DerMika Updated.

@coveralls
Copy link

coveralls commented Dec 28, 2016

Coverage Status

Coverage increased (+0.0007%) to 99.789% when pulling 6130a5b on whatsahoy:master into 17596d8 on amabnl:master.

@DerMika DerMika merged commit 277b7ec into amabnl:master Dec 28, 2016
@DerMika
Copy link
Collaborator

DerMika commented Dec 28, 2016

Wonderful, Thanks again for your help! I've merged your PR.

DerMika added a commit that referenced this pull request Dec 28, 2016
@DerMika DerMika added this to the 1.2.0 milestone Nov 6, 2017
atomy pushed a commit to mlamm/amadeus-ws-client that referenced this pull request Nov 26, 2018
…AN-755-switch-to-json-log-format-of-nginx to master

* commit '150a8e6c2eb85062546720896176bde13e79335e':
  (change) field type of some properties access log
  (change) log format of nginx access log to json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants