Follow up to https://github.com/stripe/stripe-java/pull/1909. In that PR, we made stripeVersion immutable and changed addBetaVersion to modify a new variable. In that process, we removed the ability for a user to set multiple different beta versions. This PR restores this functionality.
What
replaces stripeVersion with stripeVersionWithBetaHeaders when constructing the new stripeVersionWithBetaHeaders in addBetaVersion
added test for adding multiple different beta versions
Why
Follow up to https://github.com/stripe/stripe-java/pull/1909. In that PR, we made stripeVersion immutable and changed addBetaVersion to modify a new variable. In that process, we removed the ability for a user to set multiple different beta versions. This PR restores this functionality.
What
stripeVersion
withstripeVersionWithBetaHeaders
when constructing the newstripeVersionWithBetaHeaders
inaddBetaVersion