-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Fixes optional price behavior #91
Fixes optional price behavior #91
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also adapt the tests.
@@ -55,20 +55,18 @@ const createParseJourney = (profile, opt, data) => { | |||
// targetCtx: 'D', | |||
// buttonText: 'To offer selection' | |||
// } ] | |||
res.price = {amount: null, hint: 'No pricing information available.'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please assign null
as the default value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added null
as default
Technically someone could rely one the behaviour that, if |
Right this is a breaking change... |
Sorry, I just noticed that I have added this behaviour in 8677a1c on branch |
As described in fptf amount and currency should be required. If amount is not available the whole price object is nil