I suspect there will be other occurrences of this but the variable type for $version in paymentIntentsCreatePaymentIntent() is documented to be a DateTime object:
@param \DateTime $version API version with format yyyy-mm-dd. Current version is 2022-04-07. Today's date will always give you the latest version. (required)
No type is enforced on the parameter itself:
public function paymentIntentsCreatePaymentIntent($version,
If a DateTime is passed through then a Bad Request is received. The documentation on docs.dojo.tech suggests to pass through the constant API_VERSION which is a string. This works fine so it just appears to be an issue with the PHPDocs.